You can subscribe to this list here.
| 2002 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(361) |
Oct
(65) |
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2003 |
Jan
(798) |
Feb
(694) |
Mar
(586) |
Apr
(145) |
May
(24) |
Jun
(24) |
Jul
(56) |
Aug
(11) |
Sep
(138) |
Oct
(107) |
Nov
(58) |
Dec
(39) |
| 2004 |
Jan
(157) |
Feb
(24) |
Mar
(13) |
Apr
(14) |
May
(73) |
Jun
(106) |
Jul
(217) |
Aug
(91) |
Sep
(116) |
Oct
(357) |
Nov
(27) |
Dec
(272) |
| 2005 |
Jan
(97) |
Feb
(40) |
Mar
(167) |
Apr
(365) |
May
(344) |
Jun
(357) |
Jul
(407) |
Aug
(529) |
Sep
(204) |
Oct
(52) |
Nov
(80) |
Dec
(1) |
| 2006 |
Jan
(2) |
Feb
(1) |
Mar
(11) |
Apr
(112) |
May
(121) |
Jun
(86) |
Jul
(51) |
Aug
(48) |
Sep
(107) |
Oct
(20) |
Nov
(50) |
Dec
(11) |
| 2007 |
Jan
(7) |
Feb
(11) |
Mar
(8) |
Apr
(11) |
May
(2) |
Jun
(25) |
Jul
(67) |
Aug
(134) |
Sep
(54) |
Oct
(69) |
Nov
(10) |
Dec
(74) |
| 2008 |
Jan
(73) |
Feb
(81) |
Mar
(64) |
Apr
(98) |
May
(157) |
Jun
(68) |
Jul
(80) |
Aug
(108) |
Sep
(176) |
Oct
(107) |
Nov
(265) |
Dec
(60) |
| 2009 |
Jan
(149) |
Feb
(140) |
Mar
(195) |
Apr
(141) |
May
(53) |
Jun
(45) |
Jul
(98) |
Aug
(153) |
Sep
(160) |
Oct
(138) |
Nov
(139) |
Dec
(104) |
| 2010 |
Jan
(188) |
Feb
(259) |
Mar
(133) |
Apr
(104) |
May
(42) |
Jun
(121) |
Jul
(38) |
Aug
(223) |
Sep
(259) |
Oct
(255) |
Nov
(106) |
Dec
(157) |
| 2011 |
Jan
(202) |
Feb
(110) |
Mar
(261) |
Apr
(272) |
May
(218) |
Jun
(108) |
Jul
(141) |
Aug
(205) |
Sep
(326) |
Oct
(279) |
Nov
(368) |
Dec
(238) |
| 2012 |
Jan
(239) |
Feb
(3) |
Mar
|
Apr
(1) |
May
(2) |
Jun
|
Jul
(3) |
Aug
(6) |
Sep
(5) |
Oct
|
Nov
|
Dec
|
| 2013 |
Jan
(1) |
Feb
(3) |
Mar
(9) |
Apr
(10) |
May
|
Jun
(1) |
Jul
(3) |
Aug
(1) |
Sep
(2) |
Oct
(1) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
| 2015 |
Jan
(1) |
Feb
|
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
|
Aug
(1) |
Sep
(1) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
| 2016 |
Jan
|
Feb
(1) |
Mar
|
Apr
(2) |
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|
From: <ma...@us...> - 2012-01-30 22:41:30
|
Revision: 8841
http://xoops.svn.sourceforge.net/xoops/?rev=8841&view=rev
Author: mageg
Date: 2012-01-30 22:41:20 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
add avatars plugin
Added Paths:
-----------
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/about.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/avatar_custom.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/avatar_system.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/header.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/index.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/menu.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/class/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/class/form/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/class/form/avatar.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/class/form/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/class/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/css/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/css/admin.css
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/css/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/changelog.txt
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/credits.txt
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/install.txt
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/lang_diff.txt
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/licence.txt
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/readme.txt
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/icons/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/icons/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/icons/logo_large.png
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/icons/logo_small.png
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/images/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/images/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/images/logo.png
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/images/logo_small.png
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/include/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/include/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/include/install.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/language/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/language/english/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/language/english/admin.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/language/english/help/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/language/english/help/help.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/language/english/help/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/language/english/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/language/english/modinfo.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/language/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/templates/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/templates/admin/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/templates/admin/avatars_custom.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/templates/admin/avatars_system.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/templates/admin/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/templates/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/xoops_version.php
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars
___________________________________________________________________
Added: tsvn:autoprops
+ *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL;
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin
___________________________________________________________________
Added: tsvn:autoprops
+ *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL;
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/about.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/about.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/about.php 2012-01-30 22:41:20 UTC (rev 8841)
@@ -0,0 +1,27 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * avatars module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package avatar
+ * @since 2.6.0
+ * @author Mage Grégory (AKA Mage)
+ * @version $Id$
+ */
+include dirname(__FILE__) . '/header.php';
+$xoops->header();
+$aboutAdmin = new XoopsModuleAdmin();
+$aboutAdmin->renderNavigation('about.php');
+$aboutAdmin->renderabout('6KJ7RW5DR3VTJ', true);
+$xoops->footer();
\ No newline at end of file
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/about.php
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:keywords
+ Author Date Id Rev URL
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/avatar_custom.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/avatar_custom.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/avatar_custom.php 2012-01-30 22:41:20 UTC (rev 8841)
@@ -0,0 +1,186 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * avatars module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package avatar
+ * @since 2.6.0
+ * @author Mage Grégory (AKA Mage)
+ * @version $Id$
+ */
+include dirname(__FILE__) . '/header.php';
+// Get main instance
+$system = System::getInstance();
+// Check users rights
+if (!$xoops->isUser() || !$xoops->isModule() || !$xoops->user->isAdmin($xoops->module->mid())) {
+ exit(_NOPERM);
+}
+// Parameters
+$nb_avatars = $xoops->getModuleConfig('avatars_pager');
+$mimetypes = array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png', 'image/png');
+$upload_size = $xoops->getModuleConfig('avatars_imagefilesize');
+$width = $xoops->getModuleConfig('avatars_imagewidth');
+$height = $xoops->getModuleConfig('avatars_imageheight');
+// Get Action type
+$op = $system->cleanVars($_REQUEST, 'op', 'list', 'string');
+// Get avatar handler
+$avatar_Handler = $xoops->getHandlerAvatar();
+// Call Header
+$xoops->header('avatars_custom.html');
+
+$admin_page = new XoopsModuleAdmin();
+$admin_page->renderNavigation('avatars_system.php');
+
+switch ($op) {
+
+ case 'list':
+ default:
+ // Add Scripts
+ $xoops->theme->addScript('media/xoops/xoops.js');
+ // Define Stylesheet
+ $xoops->theme->addStylesheet('modules/avatars/css/admin.css');
+
+ $admin_page->addTips(_AM_AVATARS_CUSTOM_TIPS);
+ $admin_page->renderTips();
+ // Get start pager
+ $start = $system->cleanVars($_REQUEST, 'start', 0, 'int');
+ // Filter avatars
+ $criteria = new Criteria('avatar_type', 'C');
+ $avatar_count = $avatar_Handler->getCount($criteria);
+ $xoops->tpl->assign('avatar_count', $avatar_count);
+ // Get avatar list
+ $criteria->setStart($start);
+ $criteria->setLimit($nb_avatars);
+ $criteria->setSort("avatar_weight");
+ $criteria->setOrder("ASC");
+ $avatars_arr = $avatar_Handler->getObjects($criteria, true);
+ // Construct avatars array
+ $avatar_list = array();
+ $i = 0;
+ foreach (array_keys($avatars_arr) as $i) {
+ $avatar_list[$i] = $avatars_arr[$i]->getValues();
+ $user = $avatar_Handler->getUser($avatars_arr[$i]);
+ if (is_array($user) && isset($user[0])) {
+ $avatar_list[$i]['user'] = $user[0];
+ }
+ }
+ $xoops->tpl->assign('avatars_list', $avatar_list);
+ // Display Page Navigation
+ if ($avatar_count > $nb_avatars) {
+ $nav = new XoopsPageNav($avatar_count, $nb_avatars, $start, 'start', 'op=list');
+ $xoops->tpl->assign('nav_menu', $nav->renderNav(4));
+ }
+ break;
+
+ // Edit
+ case "edit":
+ $admin_page->addTips(sprintf(_AM_AVATARS_TIPS_FORM1, implode(', ', $mimetypes)) . sprintf(_AM_AVATARS_TIPS_FORM2, $upload_size / 1000) . sprintf(_AM_AVATARS_TIPS_FORM3, $width, $height));
+ $admin_page->addItemButton(_AM_AVATARS_LIST, 'avatar_custom.php', 'list');
+ $admin_page->renderTips();
+ $admin_page->renderButton();
+ // Create form
+ $obj = $avatar_Handler->get($system->cleanVars($_REQUEST, 'avatar_id', 0, 'int'));
+ $form = $xoops->getModuleForm($obj, 'avatar');
+ // Assign form
+ $xoops->tpl->assign('form', $form->render());
+ break;
+
+ // Save
+ case "save":
+ // Check security
+ if (!$xoops->security->check()) {
+ $xoops->redirect('avatar_custom.php', 3, implode('<br />', $xoops->security->getErrors()));
+ }
+ $uploader_avatars_img = new XoopsMediaUploader(XOOPS_UPLOAD_PATH . '/avatars', $mimetypes, $upload_size, $width, $height);
+ // Get avatar id
+ $avatar_id = $system->cleanVars($_POST, 'avatar_id', 0, 'int');
+ if ($avatar_id > 0) {
+ $obj = $avatar_Handler->get($avatar_id);
+ } else {
+ $obj = $avatar_Handler->create();
+ }
+ $obj->setVars($_POST);
+ $obj->setVar('avatar_type', 'C');
+ if ($uploader_avatars_img->fetchMedia('avatar_file')) {
+ $uploader_avatars_img->setPrefix('savt');
+ $uploader_avatars_img->fetchMedia('avatar_file');
+ if (!$uploader_avatars_img->upload()) {
+ $errors = $uploader_avatars_img->getErrors();
+ $xoops->redirect("javascript:history.go(-1)", 3, $errors);
+ } else {
+ $obj->setVar('avatar_mimetype', $uploader_avatars_img->getMediaType());
+ $obj->setVar('avatar_file', 'avatars/' . $uploader_avatars_img->getSavedFileName());
+ }
+ } else {
+ $file = $system->cleanVars($_POST, 'avatar_file', 'blank.gif', 'string');
+ $obj->setVar('avatar_file', 'avatars/' . $file);
+ }
+ if ($avatar_Handler->insert($obj)) {
+ $xoops->redirect('avatar_custom.php', 2, _AM_AVATARS_SAVE);
+ }
+ $xoops->error($obj->getHtmlErrors());
+ $form = $xoops->getModuleForm($obj, 'avatar');
+ $xoops->tpl->assign('form', $form->render());
+ break;
+
+ //Delete
+ case "delete":
+ $admin_page->addItemButton(_AM_AVATARS_LIST, 'avatar_custom.php', 'list');
+ $admin_page->renderButton();
+ $avatar_id = $system->cleanVars($_REQUEST, 'avatar_id', 0, 'int');
+ $obj = $avatar_Handler->get($avatar_id);
+ if (isset($_POST["ok"]) && $_POST["ok"] == 1) {
+ if (!$xoops->security->check()) {
+ $xoops->redirect("avatar_custom.php", 3, implode(",", $xoops->security->getErrors()));
+ }
+ if ($avatar_Handler->delete($obj)) {
+ // Delete file
+ $file = $obj->getVar('avatar_file');
+ if (is_file(XOOPS_UPLOAD_PATH . '/' . $file)) {
+ chmod(XOOPS_UPLOAD_PATH . '/' . $file, 0777);
+ unlink(XOOPS_UPLOAD_PATH . '/' . $file);
+ }
+ // Update member profil
+ $xoops->db->query("UPDATE " . $xoops->db->prefix('users') . " SET user_avatar='blank.gif' WHERE user_avatar='" . $file . "'");
+ $xoops->redirect("avatar_custom.php", 2, _AM_AVATARS_SAVE);
+ } else {
+ $xoops->error($obj->getHtmlErrors());
+ }
+ } else {
+ if ($avatar_id > 0) {
+ // Define Stylesheet
+ $xoops->theme->addStylesheet('modules/system/css/admin.css');
+ $msg = '<div class="spacer"><img src="' . XOOPS_UPLOAD_URL . '/' . $obj->getVar('avatar_file', 's') . '" alt="" /></div><div class="txtcenter bold">' . $obj->getVar('avatar_name', 's') . '</div>' . _AM_AVATARS_SUREDEL;
+ // Display message
+ $xoops->confirm(array('ok' => 1, 'op' => 'delete', 'avatar_id' => $avatar_id), 'avatar_custom.php', $msg);
+ } else {
+ $xoops->redirect('avatar_custom.php', 1, _AM_SYSTEM_DBERROR);
+ }
+ }
+ break;
+
+ case "update_display":
+ $avatar_id = $system->cleanVars($_POST, 'avatar_id', 0, 'int');
+ if ($avatar_id > 0) {
+ $obj = $avatar_Handler->get($avatar_id);
+ $old = $obj->getVar('avatar_display');
+ $obj->setVar('avatar_display', !$old);
+ if ($avatar_Handler->insert($obj)) {
+ exit;
+ }
+ echo $obj->getHtmlErrors();
+ }
+ break;
+}
+$xoops->footer();
\ No newline at end of file
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/avatar_custom.php
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:keywords
+ Author Date Id Rev URL
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/avatar_system.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/avatar_system.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/avatar_system.php 2012-01-30 22:41:20 UTC (rev 8841)
@@ -0,0 +1,200 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * avatars module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package avatar
+ * @since 2.6.0
+ * @author Mage Grégory (AKA Mage)
+ * @version $Id$
+ */
+include dirname(__FILE__) . '/header.php';
+// Get main instance
+$system = System::getInstance();
+// Check users rights
+if (!$xoops->isUser() || !$xoops->isModule() || !$xoops->user->isAdmin($xoops->module->mid())) {
+ exit(_NOPERM);
+}
+// Parameters
+$nb_avatars = $xoops->getModuleConfig('avatars_pager');
+$mimetypes = array('image/gif', 'image/jpeg', 'image/pjpeg', 'image/x-png', 'image/png');
+$upload_size = $xoops->getModuleConfig('avatars_imagefilesize');
+$width = $xoops->getModuleConfig('avatars_imagewidth');
+$height = $xoops->getModuleConfig('avatars_imageheight');
+// Get Action type
+$op = $system->cleanVars($_REQUEST, 'op', 'list', 'string');
+// Get avatar handler
+$avatar_Handler = $xoops->getHandlerAvatar();
+// Call Header
+$xoops->header('avatars_system.html');
+
+$admin_page = new XoopsModuleAdmin();
+$admin_page->renderNavigation('avatars_system.php');
+
+switch ($op) {
+
+ case 'list':
+ default:
+ // Add Scripts
+ $xoops->theme->addScript('media/xoops/xoops.js');
+ // Define Stylesheet
+ $xoops->theme->addStylesheet('modules/avatars/css/admin.css');
+
+ $admin_page->addTips(_AM_AVATARS_SYSTEM_TIPS);
+ $admin_page->addItemButton(_AM_AVATARS_ADD, 'avatar_system.php?op=new', 'add');
+ $admin_page->renderTips();
+ $admin_page->renderButton();
+ // Get start pager
+ $start = $system->cleanVars($_REQUEST, 'start', 0, 'int');
+ // Filter avatars
+ $criteria = new Criteria('avatar_type', 'S');
+ $avatar_count = $avatar_Handler->getCount($criteria);
+ $xoops->tpl->assign('avatar_count', $avatar_count);
+ // Get avatar list
+ $criteria->setStart($start);
+ $criteria->setLimit($nb_avatars);
+ $criteria->setSort("avatar_weight");
+ $criteria->setOrder("ASC");
+ $avatars_arr = $avatar_Handler->getObjects($criteria, true);
+ // Construct avatars array
+ $avatar_list = array();
+ $i = 0;
+ foreach (array_keys($avatars_arr) as $i) {
+ $avatar_list[$i] = $avatars_arr[$i]->getValues();
+ $avatar_list[$i]['count'] = count($avatar_Handler->getUser($avatars_arr[$i]));
+ }
+ $xoops->tpl->assign('avatars_list', $avatar_list);
+ // Display Page Navigation
+ if ($avatar_count > $nb_avatars) {
+ $nav = new XoopsPageNav($avatar_count, $nb_avatars, $start, 'start', 'op=list');
+ $xoops->tpl->assign('nav_menu', $nav->renderNav(4));
+ }
+ break;
+
+ // New
+ case "new":
+ $admin_page->addTips(sprintf(_AM_AVATARS_TIPS_FORM1, implode(', ', $mimetypes)) . sprintf(_AM_AVATARS_TIPS_FORM2, $upload_size / 1000) . sprintf(_AM_AVATARS_TIPS_FORM3, $width, $height));
+ $admin_page->addItemButton(_AM_AVATARS_LIST, 'avatar_system.php', 'list');
+ $admin_page->renderTips();
+ $admin_page->renderButton();
+ // Create form
+ $obj = $avatar_Handler->create();
+ $form = $xoops->getModuleForm($obj, 'avatar');
+ // Assign form
+ $xoops->tpl->assign('form', $form->render());
+ break;
+
+ // Edit
+ case "edit":
+ $admin_page->addTips(sprintf(_AM_AVATARS_TIPS_FORM1, implode(', ', $mimetypes)) . sprintf(_AM_AVATARS_TIPS_FORM2, $upload_size / 1000) . sprintf(_AM_AVATARS_TIPS_FORM3, $width, $height));
+ $admin_page->addItemButton(_AM_AVATARS_ADD, 'avatar_system.php?op=new', 'add');
+ $admin_page->addItemButton(_AM_AVATARS_LIST, 'avatar_system.php', 'list');
+ $admin_page->renderTips();
+ $admin_page->renderButton();
+ // Create form
+ $obj = $avatar_Handler->get($system->cleanVars($_REQUEST, 'avatar_id', 0, 'int'));
+ $form = $xoops->getModuleForm($obj, 'avatar');
+ // Assign form
+ $xoops->tpl->assign('form', $form->render());
+ break;
+
+ // Save
+ case "save":
+ // Check security
+ if (!$xoops->security->check()) {
+ $xoops->redirect('avatar_system.php', 3, implode('<br />', $xoops->security->getErrors()));
+ }
+ $uploader_avatars_img = new XoopsMediaUploader(XOOPS_UPLOAD_PATH . '/avatars', $mimetypes, $upload_size, $width, $height);
+ // Get avatar id
+ $avatar_id = $system->cleanVars($_POST, 'avatar_id', 0, 'int');
+ if ($avatar_id > 0) {
+ $obj = $avatar_Handler->get($avatar_id);
+ } else {
+ $obj = $avatar_Handler->create();
+ }
+ $obj->setVars($_POST);
+ $obj->setVar('avatar_type', 's');
+ if ($uploader_avatars_img->fetchMedia('avatar_file')) {
+ $uploader_avatars_img->setPrefix('savt');
+ $uploader_avatars_img->fetchMedia('avatar_file');
+ if (!$uploader_avatars_img->upload()) {
+ $errors = $uploader_avatars_img->getErrors();
+ $xoops->redirect("javascript:history.go(-1)", 3, $errors);
+ } else {
+ $obj->setVar('avatar_mimetype', $uploader_avatars_img->getMediaType());
+ $obj->setVar('avatar_file', 'avatars/' . $uploader_avatars_img->getSavedFileName());
+ }
+ } else {
+ $file = $system->cleanVars($_POST, 'avatar_file', 'blank.gif', 'string');
+ $obj->setVar('avatar_file', 'avatars/' . $file);
+ }
+ if ($avatar_Handler->insert($obj)) {
+ $xoops->redirect('avatar_system.php', 2, _AM_AVATARS_SAVE);
+ }
+ $xoops->error($obj->getHtmlErrors());
+ $form = $xoops->getModuleForm($obj, 'avatar');
+ $xoops->tpl->assign('form', $form->render());
+ break;
+
+ //Delete
+ case "delete":
+ $admin_page->addItemButton(_AM_AVATARS_ADD, 'avatar_system.php?op=new', 'add');
+ $admin_page->addItemButton(_AM_AVATARS_LIST, 'avatar_system.php', 'list');
+ $admin_page->renderButton();
+ $avatar_id = $system->cleanVars($_REQUEST, 'avatar_id', 0, 'int');
+ $obj = $avatar_Handler->get($avatar_id);
+ if (isset($_POST["ok"]) && $_POST["ok"] == 1) {
+ if (!$xoops->security->check()) {
+ $xoops->redirect("avatar_system.php", 3, implode(",", $xoops->security->getErrors()));
+ }
+ if ($avatar_Handler->delete($obj)) {
+ // Delete file
+ $file = $obj->getVar('avatar_file');
+ if (is_file(XOOPS_UPLOAD_PATH . '/' . $file)) {
+ chmod(XOOPS_UPLOAD_PATH . '/' . $file, 0777);
+ unlink(XOOPS_UPLOAD_PATH . '/' . $file);
+ }
+ // Update member profil
+ $xoops->db->query("UPDATE " . $xoops->db->prefix('users') . " SET user_avatar='blank.gif' WHERE user_avatar='" . $file . "'");
+ $xoops->redirect("avatar_system.php", 2, _AM_AVATARS_SAVE);
+ } else {
+ $xoops->error($obj->getHtmlErrors());
+ }
+ } else {
+ if ($avatar_id > 0) {
+ // Define Stylesheet
+ $xoops->theme->addStylesheet('modules/system/css/admin.css');
+ $msg = '<div class="spacer"><img src="' . XOOPS_UPLOAD_URL . '/' . $obj->getVar('avatar_file', 's') . '" alt="" /></div><div class="txtcenter bold">' . $obj->getVar('avatar_name', 's') . '</div>' . _AM_AVATARS_SUREDEL;
+ // Display message
+ $xoops->confirm(array('ok' => 1, 'op' => 'delete', 'avatar_id' => $avatar_id), 'avatar_system.php', $msg);
+ } else {
+ $xoops->redirect('avatar_system.php', 1, _AM_SYSTEM_DBERROR);
+ }
+ }
+ break;
+
+ case "update_display":
+ $avatar_id = $system->cleanVars($_POST, 'avatar_id', 0, 'int');
+ if ($avatar_id > 0) {
+ $obj = $avatar_Handler->get($avatar_id);
+ $old = $obj->getVar('avatar_display');
+ $obj->setVar('avatar_display', !$old);
+ if ($avatar_Handler->insert($obj)) {
+ exit;
+ }
+ echo $obj->getHtmlErrors();
+ }
+ break;
+}
+$xoops->footer();
\ No newline at end of file
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/avatar_system.php
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:keywords
+ Author Date Id Rev URL
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/header.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/header.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/header.php 2012-01-30 22:41:20 UTC (rev 8841)
@@ -0,0 +1,25 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * avatars module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package avatar
+ * @since 2.6.0
+ * @author Mage Grégory (AKA Mage)
+ * @version $Id$
+ */
+require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php';
+
+$xoops = Xoops::getInstance();
+XoopsLoad::load('system', 'system');
\ No newline at end of file
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/header.php
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:keywords
+ Author Date Id Rev URL
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/index.html
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/index.html (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/index.html 2012-01-30 22:41:20 UTC (rev 8841)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/index.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/index.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/index.php 2012-01-30 22:41:20 UTC (rev 8841)
@@ -0,0 +1,72 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * avatars module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package avatar
+ * @since 2.6.0
+ * @author Mage Grégory (AKA Mage)
+ * @version $Id$
+ */
+include dirname(__FILE__) . '/header.php';
+// Get avatars handler
+$avatar_Handler = $xoops->getHandlerAvatar();
+
+$xoops->header();
+// avatars not display system
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('avatar_display', 0));
+$criteria->add(new Criteria('avatar_type', 'S'));
+$avatars_notdisplay_s = $avatar_Handler->getCount($criteria);
+// avatars display system
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('avatar_display', 0, '!='));
+$criteria->add(new Criteria('avatar_type', 'S'));
+$avatars_display_s = $avatar_Handler->getCount($criteria);
+// total avatars system
+$avatars_total_s = $avatars_notdisplay_s + $avatars_display_s;
+// avatars not display custom
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('avatar_display', 0));
+$criteria->add(new Criteria('avatar_type', 'C'));
+$avatars_notdisplay_c = $avatar_Handler->getCount($criteria);
+// avatars display custom
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('avatar_display', 0, '!='));
+$criteria->add(new Criteria('avatar_type', 'C'));
+$avatars_display_c = $avatar_Handler->getCount($criteria);
+// total avatars custom
+$avatars_total_c = $avatars_notdisplay_c + $avatars_display_c;
+// folder path
+$folder_path = XOOPS_ROOT_PATH . '/uploads/avatars';
+
+$admin_page = new XoopsModuleAdmin();
+$admin_page->renderNavigation('index.php');
+
+$admin_page->addInfoBox(_MI_AVATARS_SYSTEM, 'avatar_system');
+$admin_page->addInfoBoxLine(sprintf(_AM_AVATARS_NBTOTAL_S, $avatars_total_s), 'avatar_system');
+$admin_page->addInfoBoxLine(sprintf(_AM_AVATARS_NBDISPLAY_S, '<span class="green">' . $avatars_display_s . '</span>'), 'avatar_system');
+$admin_page->addInfoBoxLine(sprintf(_AM_AVATARS_NBNOTDISPLAY_S, '<span class="red">' . $avatars_notdisplay_s . '</span>'), 'avatar_system');
+
+$admin_page->addInfoBox(_MI_AVATARS_CUSTOM, 'avatar_custom');
+$admin_page->addInfoBoxLine(sprintf(_AM_AVATARS_NBTOTAL_C, $avatars_total_c), 'avatar_custom');
+$admin_page->addInfoBoxLine(sprintf(_AM_AVATARS_NBDISPLAY_C, '<span class="green">' . $avatars_display_c . '</span>'), 'avatar_custom');
+$admin_page->addInfoBoxLine(sprintf(_AM_AVATARS_NBNOTDISPLAY_C, '<span class="red">' . $avatars_notdisplay_c . '</span>'), 'avatar_custom');
+
+$admin_page->addConfigBoxLine($folder_path, 'folder');
+$admin_page->addConfigBoxLine(array($folder_path, '777'), 'chmod');
+
+$admin_page->renderIndex();
+
+$xoops->footer();
\ No newline at end of file
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/index.php
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:keywords
+ Author Date Id Rev URL
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/menu.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/menu.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/menu.php 2012-01-30 22:41:20 UTC (rev 8841)
@@ -0,0 +1,40 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * avatars module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package avatar
+ * @since 2.6.0
+ * @author Mage Grégory (AKA Mage)
+ * @version $Id$
+ */
+$pathIcon32 = '../../media/xoops/images/icons/32/';
+
+$adminmenu = array();
+$i = 1;
+$adminmenu[$i]['title'] = _MI_AVATARS_INDEX;
+$adminmenu[$i]['link'] = "admin/index.php";
+$adminmenu[$i]['icon'] = $pathIcon32 . 'home.png';
+$i++;
+$adminmenu[$i]['title'] = _MI_AVATARS_SYSTEM;
+$adminmenu[$i]['link'] = "admin/avatar_system.php";
+$adminmenu[$i]['icon'] = $pathIcon32 . 'avatar_system.png';
+$i++;
+$adminmenu[$i]['title'] = _MI_AVATARS_CUSTOM;
+$adminmenu[$i]['link'] = "admin/avatar_custom.php";
+$adminmenu[$i]['icon'] = $pathIcon32 . 'avatar_custom.png';
+$i++;
+$adminmenu[$i]['title'] = _MI_AVATARS_ABOUT;
+$adminmenu[$i]['link'] = 'admin/about.php';
+$adminmenu[$i]['icon'] = $pathIcon32 . 'about.png';
\ No newline at end of file
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/admin/menu.php
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:keywords
+ Author Date Id Rev URL
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/class
___________________________________________________________________
Added: tsvn:autoprops
+ *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL;
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/class/form
___________________________________________________________________
Added: tsvn:autoprops
+ *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL;
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/class/form/avatar.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/class/form/avatar.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/class/form/avatar.php 2012-01-30 22:41:20 UTC (rev 8841)
@@ -0,0 +1,71 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * avatars module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package avatar
+ * @since 2.6.0
+ * @author Mage Gr\xE9gory (AKA Mage)
+ * @version $Id$
+ */
+
+defined('XOOPS_ROOT_PATH') or die('Restricted access');
+
+class AvatarsAvatarForm extends XoopsThemeForm
+{
+ public function __construct(XoopsAvatar &$obj)
+ {
+ if ($obj->isNew()) {
+ $blank_img = 'blank.gif';
+ } else {
+ $blank_img = str_replace('avatars/', '', $obj->getVar('avatar_file', 'e'));
+ }
+ $xoops = Xoops::getInstance();
+ // New and edit form
+ $title = $obj->isNew() ? sprintf(_AM_AVATARS_ADD) : sprintf(_AM_AVATARS_EDIT);
+
+ $action = $_SERVER['REQUEST_URI'];
+ parent::__construct($title , 'avatar_form', $action, "post", true);
+ $this->setExtra('enctype="multipart/form-data"');
+ // Name
+ $this->addElement(new XoopsFormText(_AM_AVATARS_NAME, 'avatar_name', 50, 255, $obj->getVar('avatar_name', 'e')), true);
+ // Upload part
+ $imgtray_img = new XoopsFormElementTray(_AM_AVATARS_FILE, '<br />');
+ $imageselect_img = new XoopsFormSelect(sprintf(_AM_AVATARS_IMAGE_PATH, XOOPS_UPLOAD_PATH . '/avatars/'), 'avatar_file', $blank_img);
+ $image_array_img = XoopsLists::getImgListAsArray(XOOPS_UPLOAD_PATH . '/avatars');
+ $imageselect_img->addOption("$blank_img", $blank_img);
+ foreach ($image_array_img as $image_img) {
+ $imageselect_img->addOption("$image_img", $image_img);
+ }
+ $imageselect_img->setExtra("onchange='showImgSelected(\"xo-avatar-img\", \"avatar_file\", \"avatars\", \"\", \"" . XOOPS_UPLOAD_URL . "\")'");
+ $imgtray_img->addElement($imageselect_img, false);
+ $imgtray_img->addElement(new XoopsFormLabel('', "<br /><img src='" . XOOPS_UPLOAD_URL . "/avatars/" . $blank_img . "' name='image_img' id='xo-avatar-img' alt='' />"));
+ $fileseltray_img = new XoopsFormElementTray('<br />', '<br /><br />');
+ $fileseltray_img->addElement(new XoopsFormFile(_AM_AVATARS_UPLOADS, 'avatar_file', $xoops->getModuleConfig('avatars_imagefilesize')), false);
+ $imgtray_img->addElement($fileseltray_img);
+ $this->addElement($imgtray_img);
+ // Weight
+ $this->addElement(new XoopsFormText(_AM_AVATARS_WEIGHT, 'avatar_weight', 3, 4, $obj->getVar('avatar_weight', 'e')));
+ // Display
+ $this->addElement(new XoopsFormRadioYN(_AM_AVATARS_DISPLAY, 'avatar_display', $obj->getVar('avatar_display', 'e'), _YES, _NO));
+ // Hidden
+ if ($obj->isNew()) {
+ $this->addElement(new XoopsFormHidden('avatar_type', 's'));
+ }
+ $this->addElement(new XoopsFormHidden('op', 'save'));
+ $this->addElement(new XoopsFormHidden('avatar_id', $obj->getVar('avatar_id', 'e')));
+ // Button
+ $this->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit'));
+ }
+}
\ No newline at end of file
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/class/form/avatar.php
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:keywords
+ Author Date Id Rev URL
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/class/form/index.html
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/class/form/index.html (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/class/form/index.html 2012-01-30 22:41:20 UTC (rev 8841)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/class/index.html
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/class/index.html (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/class/index.html 2012-01-30 22:41:20 UTC (rev 8841)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/css
___________________________________________________________________
Added: tsvn:autoprops
+ *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL;
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/css/admin.css
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/css/admin.css (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/css/admin.css 2012-01-30 22:41:20 UTC (rev 8841)
@@ -0,0 +1,21 @@
+.cp-avatar {
+ font-family: tahoma, Helvetica, sans-serif;
+ text-align: center;
+ background-color: #f4f4f4;
+ -moz-border-radius: 5px;
+ -khtml-border-radius: 5px;
+ -webkit-border-radius: 5px;
+ border: 1px solid #eeeeee;
+ border-radius: 5px;
+ box-shadow: 0 20px 10px -10px rgba(255, 255, 255, 0.3) inset;
+ color: #666666;
+ display: block;
+ float: left;
+ height: 155px !important;
+ margin: 3px;
+ padding: 5px;
+ text-decoration: none;
+ vertical-align: middle;
+ width: 150px !important;
+}
+.xo-thumbimg { height: 120px;}
\ No newline at end of file
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/css/index.html
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/css/index.html (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/css/index.html 2012-01-30 22:41:20 UTC (rev 8841)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs
___________________________________________________________________
Added: tsvn:autoprops
+ *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL;
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/changelog.txt
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/changelog.txt (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/changelog.txt 2012-01-30 22:41:20 UTC (rev 8841)
@@ -0,0 +1,3 @@
+Version 0.1
+-------------------
+Create avatars plugin
\ No newline at end of file
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/credits.txt
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/credits.txt (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/credits.txt 2012-01-30 22:41:20 UTC (rev 8841)
@@ -0,0 +1,3 @@
+Credits
+-------------------
+
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/index.html
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/index.html (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/index.html 2012-01-30 22:41:20 UTC (rev 8841)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/install.txt
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/install.txt (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/install.txt 2012-01-30 22:41:20 UTC (rev 8841)
@@ -0,0 +1,6 @@
+INSTALL/UNISTALL
+-------------------
+
+No special measures necessary, follow the standard installation process extract the module folder into the ../modules directory. Install the module through Admin -> System Module -> Modules.
+
+Detailed instructions on installing modules are available in the XOOPS Operations Manual (http://goo.gl/adT2i)
\ No newline at end of file
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/lang_diff.txt
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/lang_diff.txt (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/lang_diff.txt 2012-01-30 22:41:20 UTC (rev 8841)
@@ -0,0 +1,7 @@
+LANGUAGE DIFFERENCES
+-------------------
+
+Below are language differences from a version to next version.
+
+Release xxx
+-------------------
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/licence.txt
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/licence.txt (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/avatars/docs/licence.txt 2012-01-30 22:41:20 UTC (rev 8841)
@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; th...
[truncated message content] |
|
From: <dj...@us...> - 2012-01-30 20:14:53
|
Revision: 8840
http://xoops.svn.sourceforge.net/xoops/?rev=8840&view=rev
Author: djculex
Date: 2012-01-30 20:14:47 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
Modified Paths:
--------------
XoopsModules/smallworld/trunk/smallworld/css/smallworld.css
Modified: XoopsModules/smallworld/trunk/smallworld/css/smallworld.css
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/css/smallworld.css 2012-01-30 20:12:58 UTC (rev 8839)
+++ XoopsModules/smallworld/trunk/smallworld/css/smallworld.css 2012-01-30 20:14:47 UTC (rev 8840)
@@ -847,7 +847,7 @@
}
.smallworld_comment {
- width:330px;
+ width:98%;
height:35px;
font-size:11px;
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <dj...@us...> - 2012-01-30 20:13:05
|
Revision: 8839
http://xoops.svn.sourceforge.net/xoops/?rev=8839&view=rev
Author: djculex
Date: 2012-01-30 20:12:58 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
visitor avatar resize missing in a few files
Modified Paths:
--------------
XoopsModules/smallworld/trunk/smallworld/index.php
XoopsModules/smallworld/trunk/smallworld/message_ajax.php
XoopsModules/smallworld/trunk/smallworld/permalink.php
XoopsModules/smallworld/trunk/smallworld/templates/getlastmsg.html
XoopsModules/smallworld/trunk/smallworld/userprofile.php
Modified: XoopsModules/smallworld/trunk/smallworld/index.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/index.php 2012-01-30 17:54:13 UTC (rev 8838)
+++ XoopsModules/smallworld/trunk/smallworld/index.php 2012-01-30 20:12:58 UTC (rev 8839)
@@ -59,7 +59,7 @@
$myavatar = $Wall->Gravatar($id);
$myavatarlink = smallworld_getAvatarLink($id, $myavatar);
$myavatar_size = getimagesize($myavatarlink);
- $myavatar_highwide = smallworld_imageResize($myavatar_size[0], $myavatar_size[1], 50);
+ $myavatar_highwide = smallworld_imageResize($myavatar_size[0], $myavatar_size[1], 35);
//Get friends invitations
$getInvitations = $check->getRequests ($id);
Modified: XoopsModules/smallworld/trunk/smallworld/message_ajax.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/message_ajax.php 2012-01-30 17:54:13 UTC (rev 8838)
+++ XoopsModules/smallworld/trunk/smallworld/message_ajax.php 2012-01-30 20:12:58 UTC (rev 8839)
@@ -46,6 +46,8 @@
$myavatar = $Wall->Gravatar($id);
$myavatarlink = smallworld_getAvatarLink($id, $myavatar);
+ $myavatar_size = getimagesize($myavatarlink);
+ $myavatar_highwide = smallworld_imageResize($myavatar_size[0], $myavatar_size[1], 35);
$update=$_POST['update'];
@@ -108,6 +110,7 @@
$tpl->assign('pagename',$page);
$tpl->assign('myavatar',$myavatar);
$tpl->assign('myavatarlink',$myavatarlink);
+ $tpl->assign('myavatar_highwide',$myavatar_highwide);
$tpl->display(XOOPS_ROOT_PATH .'/modules/smallworld/templates/getlastmsg.html');
}
}
Modified: XoopsModules/smallworld/trunk/smallworld/permalink.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/permalink.php 2012-01-30 17:54:13 UTC (rev 8838)
+++ XoopsModules/smallworld/trunk/smallworld/permalink.php 2012-01-30 20:12:58 UTC (rev 8839)
@@ -57,7 +57,7 @@
$myavatar = $Wall->Gravatar($id);
$myavatarlink = smallworld_getAvatarLink($id, $myavatar);
$myavatar_size = getimagesize($myavatarlink);
- $myavatar_highwide = smallworld_imageResize($myavatar_size[0], $myavatar_size[1], 50);
+ $myavatar_highwide = smallworld_imageResize($myavatar_size[0], $myavatar_size[1], 35);
// Follow array here
$followers = Smallworld_array_flatten($Wall->getFollowers($id),0);
Modified: XoopsModules/smallworld/trunk/smallworld/templates/getlastmsg.html
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/templates/getlastmsg.html 2012-01-30 17:54:13 UTC (rev 8838)
+++ XoopsModules/smallworld/trunk/smallworld/templates/getlastmsg.html 2012-01-30 20:12:58 UTC (rev 8839)
@@ -107,7 +107,7 @@
<div class="smallworld_commentupdate" style='display:none' id='smallworld_commentbox<{$post.msg_id}>'>
<div class="smallworld_stcommentimg">
- <img src="<{$myavatarlink}>" class='smallworld_small_face' <{$comm[i].avatar_highwide}>/>
+ <img src="<{$myavatarlink}>" class='smallworld_small_face' <{$myavatar_highwide}>/>
</div>
<div class="smallworld_stcommenttext" >
<form method="post" action="">
Modified: XoopsModules/smallworld/trunk/smallworld/userprofile.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/userprofile.php 2012-01-30 17:54:13 UTC (rev 8838)
+++ XoopsModules/smallworld/trunk/smallworld/userprofile.php 2012-01-30 20:12:58 UTC (rev 8839)
@@ -96,12 +96,12 @@
$myavatar = $Wall->Gravatar($id); //profile owners data
$myavatarlink = smallworld_getAvatarLink($id, $myavatar); //profile owners data
$myavatar_size = getimagesize($myavatarlink);
- $myavatar_highwide = smallworld_imageResize($myavatar_size[0], $myavatar_size[1], 50);
+ $myavatar_highwide = smallworld_imageResize($myavatar_size[0], $myavatar_size[1], 35);
$visitorAvatar = $Wall->Gravatar($yourid);
$visitorAvatarlink = smallworld_getAvatarLink($yourid, $visitorAvatar);
$visitorAvatar_size = getimagesize($visitorAvatarlink);
- $visitorAvatar_highwide = smallworld_imageResize($visitorAvatar_size[0], $visitorAvatar_size[1], 50);
+ $visitorAvatar_highwide = smallworld_imageResize($visitorAvatar_size[0], $visitorAvatar_size[1], 35);
// Follow array here
$followers = $Wall->getFollowers($id);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <be...@us...> - 2012-01-30 17:54:24
|
Revision: 8838
http://xoops.svn.sourceforge.net/xoops/?rev=8838&view=rev
Author: beckmi
Date: 2012-01-30 17:54:13 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
Cleaning up folders
Removed Paths:
-------------
XoopsModules/TDMCreate/releases/1.37/releases/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <dj...@us...> - 2012-01-30 17:51:52
|
Revision: 8837
http://xoops.svn.sourceforge.net/xoops/?rev=8837&view=rev
Author: djculex
Date: 2012-01-30 17:51:44 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
- function to resize avatar proportionally
- Adjusted some css
- attached colorbox to all avatars & update images
- Some missing Js includes
- some missing language defines
Modified Paths:
--------------
XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php
XoopsModules/smallworld/trunk/smallworld/admin/main.php
XoopsModules/smallworld/trunk/smallworld/admin/useradmin.php
XoopsModules/smallworld/trunk/smallworld/class/profile.php
XoopsModules/smallworld/trunk/smallworld/comment_ajax.php
XoopsModules/smallworld/trunk/smallworld/css/smallworld.css
XoopsModules/smallworld/trunk/smallworld/friends.php
XoopsModules/smallworld/trunk/smallworld/include/functions.php
XoopsModules/smallworld/trunk/smallworld/index.php
XoopsModules/smallworld/trunk/smallworld/js/jquery.avatar_helper.js
XoopsModules/smallworld/trunk/smallworld/js/smallworld.js
XoopsModules/smallworld/trunk/smallworld/language/english/main.php
XoopsModules/smallworld/trunk/smallworld/loadmore.php
XoopsModules/smallworld/trunk/smallworld/message_ajax.php
XoopsModules/smallworld/trunk/smallworld/permalink.php
XoopsModules/smallworld/trunk/smallworld/smallworldshare.php
XoopsModules/smallworld/trunk/smallworld/templates/admin_useradmin.html
XoopsModules/smallworld/trunk/smallworld/templates/getlastcom.html
XoopsModules/smallworld/trunk/smallworld/templates/getlastmsg.html
XoopsModules/smallworld/trunk/smallworld/templates/getmore.html
XoopsModules/smallworld/trunk/smallworld/templates/smallworld_admin.html
XoopsModules/smallworld/trunk/smallworld/templates/smallworld_alluserstodiv.html
XoopsModules/smallworld/trunk/smallworld/templates/smallworld_friends_template.html
XoopsModules/smallworld/trunk/smallworld/templates/smallworld_index.html
XoopsModules/smallworld/trunk/smallworld/templates/smallworld_permalink.html
XoopsModules/smallworld/trunk/smallworld/templates/smallworld_share.html
XoopsModules/smallworld/trunk/smallworld/templates/smallworld_userprofile_imgupload.html
XoopsModules/smallworld/trunk/smallworld/templates/smallworld_userprofile_template.html
XoopsModules/smallworld/trunk/smallworld/userprofile.php
Modified: XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/admin/div_useradmin.php 2012-01-30 17:51:44 UTC (rev 8837)
@@ -36,6 +36,8 @@
$ai['username'] = $data['username'];
$ai['realname'] = $data['realname'];
$ai['userimage'] = smallworld_getAvatarLink ($data['userid'],$data['userimage']);
+ $ai['avatar_size'] = getimagesize($ai['userimage']);
+ $ai['avatar_highwide'] = smallworld_imageResize($ai['avatar_size'][0], $ai['avatar_size'][1], 50);
$ai['ip'] = $data['ip'];
$ai['complaint'] = $data['complaint'];
$ai['inspect_start'] = $data['inspect_start'];
@@ -54,6 +56,8 @@
$ani['username'] = $data['username'];
$ani['realname'] = $data['realname'];
$ani['userimage'] = smallworld_getAvatarLink ($data['userid'],$data['userimage']);
+ $ani['avatar_size'] = getimagesize($ani['userimage']);
+ $ani['avatar_highwide'] = smallworld_imageResize($ani['avatar_size'][0], $ani['avatar_size'][1], 50);
$ani['ip'] = $data['ip'];
$ani['complaint'] = $data['complaint'];
$ani['inspect_start'] = '';
Modified: XoopsModules/smallworld/trunk/smallworld/admin/main.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/admin/main.php 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/admin/main.php 2012-01-30 17:51:44 UTC (rev 8837)
@@ -74,6 +74,8 @@
$ai['username'] = $data['username'];
$ai['realname'] = $data['realname'];
$ai['userimage'] = smallworld_getAvatarLink ($data['userid'],$data['userimage']);
+ $ai['avatar_size'] = getimagesize($ai['userimage']);
+ $ai['avatar_highwide'] = smallworld_imageResize($ai['avatar_size'][0], $ai['avatar_size'][1], 50);
$ai['ip'] = $data['ip'];
$ai['complaint'] = $data['complaint'];
$ai['inspect_start'] = $data['inspect_start'];
@@ -92,6 +94,8 @@
$ani['username'] = $data['username'];
$ani['realname'] = $data['realname'];
$ani['userimage'] = smallworld_getAvatarLink ($data['userid'],$data['userimage']);
+ $ani['avatar_size'] = getimagesize($ani['userimage']);
+ $ani['avatar_highwide'] = smallworld_imageResize($ani['avatar_size'][0], $ani['avatar_size'][1], 50);
$ani['ip'] = $data['ip'];
$ani['complaint'] = $data['complaint'];
$ani['inspect_start'] = '';
Modified: XoopsModules/smallworld/trunk/smallworld/admin/useradmin.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/admin/useradmin.php 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/admin/useradmin.php 2012-01-30 17:51:44 UTC (rev 8837)
@@ -44,6 +44,8 @@
$ai['username'] = $data['username'];
$ai['realname'] = $data['realname'];
$ai['userimage'] = smallworld_getAvatarLink ($data['userid'],$data['userimage']);
+ $ai['avatar_size'] = getimagesize($ai['userimage']);
+ $ai['avatar_highwide'] = smallworld_imageResize($ai['avatar_size'][0], $ai['avatar_size'][1], 50);
$ai['ip'] = $data['ip'];
$ai['complaint'] = $data['complaint'];
$ai['inspect_start'] = $data['inspect_start'];
@@ -62,6 +64,8 @@
$ani['username'] = $data['username'];
$ani['realname'] = $data['realname'];
$ani['userimage'] = smallworld_getAvatarLink ($data['userid'],$data['userimage']);
+ $ani['avatar_size'] = getimagesize($ani['userimage']);
+ $ani['avatar_highwide'] = smallworld_imageResize($ani['avatar_size'][0], $ani['avatar_size'][1], 50);
$ani['ip'] = $data['ip'];
$ani['complaint'] = $data['complaint'];
$ani['inspect_start'] = '';
Modified: XoopsModules/smallworld/trunk/smallworld/class/profile.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/class/profile.php 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/class/profile.php 2012-01-30 17:51:44 UTC (rev 8837)
@@ -87,7 +87,9 @@
$hisorher = _SMALLWORLD_HISHER;
}
$avatar = $Wall->Gravatar($id);
- $user_img = "<img src='".smallworld_getAvatarLink($id, $avatar)."' id='smallworld_user_img' height='100px' width='100px'"."/></img>";
+ $avatar_size = getimagesize(smallworld_getAvatarLink($id, $avatar));
+ $avatar_highwide = smallworld_imageResize($avatar_size[0], $avatar_size[1], 100);
+ $user_img = "<img src='".smallworld_getAvatarLink($id, $avatar)."' id='smallworld_user_img' ".$avatar_highwide."/></img>";
$currentcity = $r['present_city'];
$currlng = $r['present_lng'];
Modified: XoopsModules/smallworld/trunk/smallworld/comment_ajax.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/comment_ajax.php 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/comment_ajax.php 2012-01-30 17:51:44 UTC (rev 8837)
@@ -59,6 +59,8 @@
$wc['myavatar_link']= $myavatarlink;
$wc['cface'] = $Wall->Gravatar($data['uid_fk']);
$wc['avatar_link'] = smallworld_getAvatarLink ($data['uid_fk'], $wc['cface']);
+ $wc['avatar_size'] = getimagesize($wc['myavatar_link']);
+ $wc['avatar_highwide'] = smallworld_imageResize($wc['avatar_size'][0], $wc['avatar_size'][1], 35);
$wc['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".Smallworld_getOwnerFromComment($cdata['msg_id_fk']);
$wc['compl_msg_lnk'] .= "&updid=".$cdata['msg_id_fk']."#".$cdata['com_id']."'>"._SMALLWORLD_COMP_MSG_LNK_DESC."</a>";
$wc['vote_up'] = $Wall->countVotesCom ('com', 'up', $data['msg_id_fk'],$data['com_id']);
Modified: XoopsModules/smallworld/trunk/smallworld/css/smallworld.css
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/css/smallworld.css 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/css/smallworld.css 2012-01-30 17:51:44 UTC (rev 8837)
@@ -335,6 +335,10 @@
width:550px;
}
+#smallworld_user_img {
+ text-align:center;
+}
+
/*-------- Register items ---------*/
#smallworld_divstepy-error {
@@ -730,9 +734,9 @@
.smallworld_stimg{
float:left;
- height:50px;
+ /*height:50px;*/
margin: 0 5px;
- width:50px;
+ /*width:50px;*/
border:solid 1px #dedede;
padding:3px;
}
@@ -800,8 +804,8 @@
.smallworld_stcommentimg {
float:left;
- height:35px;
- width:35px;
+ /*height:35px;*/
+ /*width:35px;*/
border:solid 1px #dedede;
padding:2px;
}
@@ -814,7 +818,6 @@
padding:3px;
display:block;
font-size:11px;
- width:80%;
}
.smallworld_stcommenttext b {
@@ -840,7 +843,7 @@
.smallworld_commentupdate {
background-color: #F2F2F2;
padding: 5px;
- width: 480px;
+ width: 100%;
}
.smallworld_comment {
@@ -851,11 +854,13 @@
/* faceb image*/
.smallworld_small_face {
- width:35px;height:35px
+ /*width:35px;*/
+ /*height:35px*/
}
.smallworld_big_face {
- width:50px;height:50px
+ /*width:50px;*/
+ /*height:50px*/
}
#smallworld_flashmessage {
Modified: XoopsModules/smallworld/trunk/smallworld/friends.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/friends.php 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/friends.php 2012-01-30 17:51:44 UTC (rev 8837)
@@ -118,6 +118,8 @@
$fp['friendname'] = Smallworld_getName($data['you']);
$fp['avatar'] = $Wall->Gravatar($data['you']);
$fp['avatar_link'] = smallworld_getAvatarLink ($data['you'], $fp['avatar']);
+ $fp['avatar_size'] = getimagesize($fp['avatar_link']);
+ $fp['avatar_highwide'] = smallworld_imageResize($fp['avatar_size'][0], $fp['avatar_size'][1], 50);
$xoopsTpl->append('pendingfriends', $fp);
}
} else {
@@ -130,6 +132,8 @@
$ff['friendname'] = Smallworld_getName($data['you']);
$ff['avatar'] = $Wall->Gravatar($data['you']);
$ff['avatar_link'] = smallworld_getAvatarLink ($data['you'], $ff['avatar']);
+ $ff['avatar_size'] = getimagesize($ff['avatar_link']);
+ $ff['avatar_highwide'] = smallworld_imageResize($ff['avatar_size'][0], $ff['avatar_size'][1], 50);
$xoopsTpl->append('verifiedfriends', $ff);
}
} else {
@@ -142,6 +146,8 @@
$fy['friendname'] = Smallworld_getName($data['you']);
$fy['avatar'] = $Wall->Gravatar($data['you']);
$fy['avatar_link'] = smallworld_getAvatarLink ($data['you'], $fy['avatar']);
+ $fy['avatar_size'] = getimagesize($fy['avatar_link']);
+ $fy['avatar_highwide'] = smallworld_imageResize($fy['avatar_size'][0], $fy['avatar_size'][1], 50);
$xoopsTpl->append('followingyou', $fy);
}
} else {
@@ -154,6 +160,8 @@
$fm['friendname'] = Smallworld_getName($data['me']);
$fm['avatar'] = $Wall->Gravatar($data['me']);
$fm['avatar_link'] = smallworld_getAvatarLink ($data['me'], $fm['avatar']);
+ $fm['avatar_size'] = getimagesize($fm['avatar_link']);
+ $fm['avatar_highwide'] = smallworld_imageResize($fm['avatar_size'][0], $fm['avatar_size'][1], 50);
$xoopsTpl->append('followingme', $fm);
}
@@ -207,6 +215,8 @@
$xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/ajaxupload.3.5.js');
$xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.avatar_helper.js');
$xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.innerfade.js');
+ $xoTheme->addScript(XOOPS_URL.'/modules/smallworld/js/jquery.colorbox.js');
+ $xoTheme->addStylesheet(XOOPS_URL.'/modules/smallworld/css/colorbox.css');
} else {
redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM);
Modified: XoopsModules/smallworld/trunk/smallworld/include/functions.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/include/functions.php 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/include/functions.php 2012-01-30 17:51:44 UTC (rev 8837)
@@ -322,10 +322,10 @@
if ($image == '' or $image=='Not specifiyed' AND $gender == '2') {
$link = XOOPS_URL."/modules/smallworld/images/ano_man.png";
}
- if ($image == 'blank.gif' or $image=='Not specifiyed' AND $gender == '0') {
+ if ($image == 'blank.gif' or $image=='Not specifiyed' AND $gender == '') {
$link = XOOPS_URL."/modules/smallworld/images/genderless.png";
}
- if ($image == '' or $image=='Not specifiyed' AND $gender == '0') {
+ if ($image == '' or $image=='Not specifiyed' AND $gender == '') {
$link = XOOPS_URL."/modules/smallworld/images/genderless.png";
}
return $link;
@@ -660,4 +660,25 @@
}
}
+
+//Function to resize images proportionally
+// Using imagesize($imageurl) returns $img[0], $img[1]
+// Target = new max height or width in px
+function smallworld_imageResize($width, $height, $target) {
+ //takes the larger size of the width and height and applies the
+ //formula accordingly...this is so this script will work
+ //dynamically with any size image
+ if ($width > $height) {
+ $percentage = ($target / $width);
+ } else {
+ $percentage = ($target / $height);
+ }
+ //gets the new value and applies the percentage, then rounds the value
+ $width = round($width * $percentage);
+ $height = round($height * $percentage);
+ //returns the new sizes in html image tag format...this is so you
+ //can plug this function inside an image tag and just get the
+
+ return "width=\"$width\" height=\"$height\"";
+}
?>
Modified: XoopsModules/smallworld/trunk/smallworld/index.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/index.php 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/index.php 2012-01-30 17:51:44 UTC (rev 8837)
@@ -58,6 +58,8 @@
$Wall = new Wall_Updates();
$myavatar = $Wall->Gravatar($id);
$myavatarlink = smallworld_getAvatarLink($id, $myavatar);
+ $myavatar_size = getimagesize($myavatarlink);
+ $myavatar_highwide = smallworld_imageResize($myavatar_size[0], $myavatar_size[1], 50);
//Get friends invitations
$getInvitations = $check->getRequests ($id);
@@ -79,6 +81,8 @@
$wm['priv'] = $data['priv'];
$wm['avatar'] = $Wall->Gravatar($data['uid_fk']);
$wm['avatar_link'] = smallworld_getAvatarLink ($data['uid_fk'], $wm['avatar']);
+ $wm['avatar_size'] = getimagesize($wm['avatar_link']);
+ $wm['avatar_highwide'] = smallworld_imageResize($wm['avatar_size'][0], $wm['avatar_size'][1], 50);
$wm['vote_up'] = $Wall->countVotes ('msg', 'up', $data['msg_id']);
$wm['vote_down'] = $Wall->countVotes ('msg', 'down', $data['msg_id']);
$wm['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".$data['uid_fk'];
@@ -101,7 +105,9 @@
$wc['uid'] = $cdata['uid_fk'];
$wc['myavatar'] = $Wall->Gravatar($id);
$wc['myavatar_link'] = $myavatarlink;
- $wc['cface'] = $Wall->Gravatar($cdata['uid_fk']);
+ $wc['avatar_size'] = getimagesize($wc['myavatar_link']);
+ $wc['avatar_highwide'] = smallworld_imageResize($wc['avatar_size'][0], $wc['avatar_size'][1], 35);
+ $wc['cface'] = $Wall->Gravatar($cdata['uid_fk']);
$wc['avatar_link'] = smallworld_getAvatarLink ($cdata['uid_fk'], $wc['cface']);
$wc['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".Smallworld_getOwnerFromComment($cdata['msg_id_fk']);
$wc['compl_msg_lnk'] .= "&updid=".$cdata['msg_id_fk']."#".$cdata['com_id']."'>"._SMALLWORLD_COMP_MSG_LNK_DESC."</a>";
@@ -122,6 +128,7 @@
$xoopsTpl->assign('check',1);
$xoopsTpl->assign('myavatar',$myavatar);
$xoopsTpl->assign('myavatarlink',$myavatarlink);
+ $xoopsTpl->assign('myavatar_highwide',$myavatar_highwide);
$xoopsTpl->assign('friendinvitations',$getInvitations);
} elseif ($profile == 0) {
Modified: XoopsModules/smallworld/trunk/smallworld/js/jquery.avatar_helper.js
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/js/jquery.avatar_helper.js 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/js/jquery.avatar_helper.js 2012-01-30 17:51:44 UTC (rev 8837)
@@ -20,6 +20,7 @@
response = xoops_smallworld.parseJSON( response );
if(response[0]==="success"){
xoops_smallworld("#smallworld_user_img").attr("src", smallworld_uploaddir+response[1]);
+ xoops_smallworld("#smallworld_user_img").css('height', '100px');
xoops_smallworld('div .UploadNewAvatar').hide();
//xoops_smallworld('#smallworld_user_img').replaceWith('<img src="'+smallworld_uploaddir+file+'" id="smallworld_user_img" height="140px" width="100px"'+file);
//xoops_smallworld('img#smallworld_user_img').appendTo('<img src="'+smallworld_uploaddir+file+'" id="smallworld_user_img" height="140px" width="100px"'+file).addClass('success');
Modified: XoopsModules/smallworld/trunk/smallworld/js/smallworld.js
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/js/smallworld.js 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/js/smallworld.js 2012-01-30 17:51:44 UTC (rev 8837)
@@ -12,7 +12,10 @@
* author 2011 Culex - homepage.: http://culex.dk & email.: cu...@cu...
*/
xoops_smallworld(function() {
- // GET pop for statistics
+ //Attach function for avatar
+ attachAvatarOpen ();
+
+ // GET pop for statistics
xoops_smallworld('#smallworld_statistics_lnk').live('click',function() {
if (xoops_smallworld('#smallworld_statistics_lnk').length) { // implies *not* zero
xoops_smallworld('#smallworldStatsDiv').show();
@@ -375,6 +378,7 @@
// Open avatar imagen in new window on click
xoops_smallworld(function() {
xoops_smallworld('#smallworld_user_img').css('cursor', 'pointer');
+ xoops_smallworld('#smallworld_user_img').css('margin', '0 10%');
xoops_smallworld('#smallworld_user_img').live('click',function(event) {
var url = xoops_smallworld(this).attr('src');
image = "<img src ='"+url+"' />";
@@ -829,4 +833,35 @@
xoops_smallworld('#smallworld_profileform-next-0').show();
xoops_smallworld('#smallworld_profileform-next-1').show();
}
+}
+
+function attachAvatarOpen () {
+ // Open comment and update avatar imagen in new window on click
+ xoops_smallworld(function() {
+ xoops_smallworld('.smallworld_big_face, .smallworld_small_face, .smallworldAttImg').css('cursor', 'pointer');
+ xoops_smallworld('.smallworld_big_face, .smallworld_small_face, .smallworldAttImg').live('click',function(event) {
+ var url = xoops_smallworld(this).attr('src');
+ image = "<img src ='"+url+"' />";
+ xoops_smallworld('<div id="lookingglassuseravatar">'+image+'</div>').appendTo('body');
+ event.preventDefault();
+ if (xoops_smallworld('#lookingglassuseravatar').length) { // implies *not* zero
+ xoops_smallworld('#lookingglassuseravatar').show();
+ xoops_smallworld.fn.colorbox({
+ width:"auto",
+ height:"70%",
+ inline:true,
+ onCleanup:function() {
+ xoops_smallworld('#lookingglassuseravatar').hide();
+ },
+ onClosed:function() {
+ xoops_smallworld("#lookingglassuseravatar").remove();
+ },
+ onComplete : function() {
+ xoops_smallworld(this).colorbox.resize();
+ },
+ href:"#lookingglassuseravatar"
+ });
+ };
+ }); //close click
+ });
}
\ No newline at end of file
Modified: XoopsModules/smallworld/trunk/smallworld/language/english/main.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/language/english/main.php 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/language/english/main.php 2012-01-30 17:51:44 UTC (rev 8837)
@@ -251,6 +251,12 @@
define("_SMALLWORLD_WELCOME_TITLE","Welcome");
define("_SMALLWORLD_WELCOMETEXT",", welcome. Hope you'll enjoy your stay.");
define("_SMALLWORLD_UPLOADEDSOMEIMAGES"," Uploaded some new pictures <br/>");
+define("_SMALLWORLD_IMAGES_START","Start");
+define("_SMALLWORLD_IMAGES_CANCEL","Cancel");
+define("_SMALLWORLD_IMAGES_DELETE","Delete");
+define("_SMALLWORLD_IMAGES_STARTALL","Start All");
+define("_SMALLWORLD_IMAGES_CANCELALL","Cancel All");
+define("_SMALLWORLD_IMAGES_DELETEALL","Delete All");
/*-------------- Image gallery -------------*/
define("_SMALLWORLD_ALBUMTITLETEXT","Close album");
Modified: XoopsModules/smallworld/trunk/smallworld/loadmore.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/loadmore.php 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/loadmore.php 2012-01-30 17:51:44 UTC (rev 8837)
@@ -69,6 +69,8 @@
$wm['priv'] = $data['priv'];
$wm['avatar'] = $Wall->Gravatar($data['uid_fk']);
$wm['avatar_link'] = smallworld_getAvatarLink ($data['uid_fk'], $wm['avatar']);
+ $wm['avatar_size'] = getimagesize($wm['avatar_link']);
+ $wm['avatar_highwide'] = smallworld_imageResize($wm['avatar_size'][0], $wm['avatar_size'][1], 50);
$wm['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".$data['uid_fk'];
$wm['compl_msg_lnk'] .= "&updid=".$data['msg_id']."'>"._SMALLWORLD_COMP_MSG_LNK_DESC."</a>";
$wm['vote_up'] = $Wall->countVotes ('msg', 'up', $data['msg_id']);
@@ -93,6 +95,8 @@
$wc['uid'] = $cdata['uid_fk'];
$wc['myavatar'] = $myavatar;
$wc['myavatar_link']= $myavatarlink;
+ $wc['avatar_size'] = getimagesize($wc['myavatar_link']);
+ $wc['avatar_highwide'] = smallworld_imageResize($wc['avatar_size'][0], $wc['avatar_size'][1], 35);
$wc['cface'] = $Wall->Gravatar($cdata['uid_fk']);
$wc['avatar_link'] = smallworld_getAvatarLink ($cdata['uid_fk'], $wc['cface']);
$wc['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".Smallworld_getOwnerFromComment($cdata['msg_id_fk']);
Modified: XoopsModules/smallworld/trunk/smallworld/message_ajax.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/message_ajax.php 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/message_ajax.php 2012-01-30 17:51:44 UTC (rev 8837)
@@ -62,6 +62,8 @@
$wm['priv'] = $data['priv'];
$wm['avatar'] = $Wall->Gravatar($data['uid_fk']);
$wm['avatar_link'] = smallworld_getAvatarLink ($data['uid_fk'], $wm['avatar']);
+ $wm['avatar_size'] = getimagesize($wm['avatar_link']);
+ $wm['avatar_highwide'] = smallworld_imageResize($wm['avatar_size'][0], $wm['avatar_size'][1], 50);
$wm['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".$data['uid_fk'];
$wm['compl_msg_lnk'] .= "&updid=".$data['msg_id']."'>"._SMALLWORLD_COMP_MSG_LNK_DESC."</a>";
$wm['vote_up'] = $Wall->countVotes ('msg', 'up', $data['msg_id']);
@@ -86,6 +88,8 @@
$wc['uid'] = $cdata['uid_fk'];
$wc['myavatar'] = $myavatar;
$wc['myavatar_link']= $myavatarlink;
+ $wc['avatar_size'] = getimagesize($wc['myavatar_link']);
+ $wc['avatar_highwide'] = smallworld_imageResize($wc['avatar_size'][0], $wc['avatar_size'][1], 35);
$wc['cface'] = $Wall->Gravatar($cdata['uid_fk']);
$wc['avatar_link'] = smallworld_getAvatarLink ($cdata['uid_fk'], $wc['cface']);
$wc['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".Smallworld_getOwnerFromComment($cdata['msg_id_fk']);
Modified: XoopsModules/smallworld/trunk/smallworld/permalink.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/permalink.php 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/permalink.php 2012-01-30 17:51:44 UTC (rev 8837)
@@ -56,6 +56,8 @@
$Wall = new Wall_Updates();
$myavatar = $Wall->Gravatar($id);
$myavatarlink = smallworld_getAvatarLink($id, $myavatar);
+ $myavatar_size = getimagesize($myavatarlink);
+ $myavatar_highwide = smallworld_imageResize($myavatar_size[0], $myavatar_size[1], 50);
// Follow array here
$followers = Smallworld_array_flatten($Wall->getFollowers($id),0);
@@ -74,6 +76,8 @@
$wm['priv'] = $data['priv'];
$wm['avatar'] = $Wall->Gravatar($data['uid_fk']);
$wm['avatar_link'] = smallworld_getAvatarLink ($data['uid_fk'], $wm['avatar']);
+ $wm['avatar_size'] = getimagesize($wm['avatar_link']);
+ $wm['avatar_highwide'] = smallworld_imageResize($wm['avatar_size'][0], $wm['avatar_size'][1], 50);
$wm['vote_up'] = $Wall->countVotes ('msg', 'up', $data['msg_id']);
$wm['vote_down'] = $Wall->countVotes ('msg', 'down', $data['msg_id']);
$wm['sharelinkurl'] = XOOPS_URL."/modules/smallworld/smallworldshare.php?ownerid=".$data['uid_fk'];
@@ -94,6 +98,8 @@
$wc['uid'] = $cdata['uid_fk'];
$wc['myavatar'] = $Wall->Gravatar($id);
$wc['myavatar_link'] = $myavatarlink;
+ $wc['avatar_size'] = getimagesize($wc['myavatar_link']);
+ $wc['avatar_highwide'] = smallworld_imageResize($wc['avatar_size'][0], $wc['avatar_size'][1], 35);
$wc['cface'] = $Wall->Gravatar($cdata['uid_fk']);
$wc['avatar_link'] = smallworld_getAvatarLink ($cdata['uid_fk'], $wc['cface']);
$wc['vote_up'] = $Wall->countVotesCom ('com', 'up', $cdata['msg_id_fk'],$cdata['com_id']);
@@ -112,6 +118,7 @@
$xoopsTpl->assign('check',1);
$xoopsTpl->assign('myavatar',$myavatar);
$xoopsTpl->assign('myavatarlink',$myavatarlink);
+ $xoopsTpl->assign('myavatar_highwide',$myavatar_highwide);
} elseif ($profile == 0) {
$check->chkUser ();
}
Modified: XoopsModules/smallworld/trunk/smallworld/smallworldshare.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/smallworldshare.php 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/smallworldshare.php 2012-01-30 17:51:44 UTC (rev 8837)
@@ -50,10 +50,12 @@
$wm['priv'] = $data['priv'];
$wm['avatar'] = $Wall->Gravatar($data['uid_fk']);
if (smallworld_GetModuleOption('smallworldbookmarkavatar', $repmodule='smallworld' !=1)) {
- $wm['avatar_link'] = XOOPS_URL.'/modules/smallworld/images/smallworld.png';
+ $wm['avatar_link'] = XOOPS_URL.'/modules/smallworld/images/smallworld.png';
} else {
$wm['avatar_link'] = smallworld_getAvatarLink ($data['uid_fk'],$wm['avatar']);
}
+ $wm['avatar_size'] = getimagesize($wm['avatar_link']);
+ $wm['avatar_highwide'] = smallworld_imageResize($wm['avatar_size'][0], $wm['avatar_size'][1], 50);
$wm['usernameTitle'] = $wm['username']._SMALLWORLD_UPDATEONSITEMETA.$xoopsConfig['sitename'];
$xoopsTpl->assign('xoops_pagetitle', $wm['usernameTitle']);
if(isset($xoTheme) && is_object($xoTheme)) {
@@ -72,6 +74,8 @@
$wm['priv'] = 1;
$wm['avatar'] = "";
$wm['avatar_link'] = XOOPS_URL.'/modules/smallworld/images/smallworld.png';
+ $wm['avatar_size'] = getimagesize($wm['avatar_link']);
+ $wm['avatar_highwide'] = smallworld_imageResize($wm['avatar_size'][0], $wm['avatar_size'][1], 50);
$wm['usernameTitle'] = $wm['username']._SMALLWORLD_UPDATEONSITEMETA.$xoopsConfig['sitename'];
$xoopsTpl->assign('xoops_pagetitle', $wm['usernameTitle']);
if(isset($xoTheme) && is_object($xoTheme)) {
Modified: XoopsModules/smallworld/trunk/smallworld/templates/admin_useradmin.html
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/templates/admin_useradmin.html 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/templates/admin_useradmin.html 2012-01-30 17:51:44 UTC (rev 8837)
@@ -15,7 +15,7 @@
<{foreach item=post from=$allusersinspect}>
<tr>
<td>
- <img height="50px" width="60px" src="<{$post.userimage}>"/>
+ <img src="<{$post.userimage}>" <{$post.avatar_highwide}>/>
</td>
<td><{$post.username}></td>
<td><{$post.realname}></td>
@@ -77,7 +77,7 @@
<{foreach item=posts from=$allusersnoinspect}>
<tr>
<td>
- <img height="50px" width="60px" src="<{$posts.userimage}>"/>
+ <img src="<{$posts.userimage}>" <{$posts.avatar_highwide}>/>
</td>
<td><{$posts.username}></td>
<td><{$posts.realname}></td>
Modified: XoopsModules/smallworld/trunk/smallworld/templates/getlastcom.html
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/templates/getlastcom.html 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/templates/getlastcom.html 2012-01-30 17:51:44 UTC (rev 8837)
@@ -1,7 +1,7 @@
<{section name=i loop=$comments}>
<div class="smallworld_stcommentbody" id="smallworld_stcommentbody<{$comments[i].com_id}>">
<div class="smallworld_stcommentimg">
- <img src="<{$comments[i].avatar_link}>" class='smallworld_small_face'/>
+ <img src="<{$comments[i].avatar_link}>" class='smallworld_small_face' <{$comments[i].avatar_highwide}>/>
</div>
<div class="smallworld_stcommenttext">
<{if $isadminuser == 'YES' or $post.username == $myusername}>
@@ -36,4 +36,7 @@
</div>
<{/if}>
</div>
-<{/section}>
\ No newline at end of file
+<{/section}>
+<script type="text/javascript">
+attachAvatarOpen();
+</script>
\ No newline at end of file
Modified: XoopsModules/smallworld/trunk/smallworld/templates/getlastmsg.html
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/templates/getlastmsg.html 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/templates/getlastmsg.html 2012-01-30 17:51:44 UTC (rev 8837)
@@ -11,7 +11,7 @@
<div class="smallworld_stbody" id="smallworld_stbody<{$post.msg_id}>">
<div class="smallworld_stimg">
- <img src="<{$post.avatar_link}>" class='smallworld_big_face'/>
+ <img src="<{$post.avatar_link}>" class='smallworld_big_face' <{$post.avatar_highwide}>/>
</div>
<div class="smallworld_sttext">
@@ -65,7 +65,7 @@
<{if $comm[i].msg_id_fk == $post.msg_id}>
<div class="smallworld_stcommentbody" id="smallworld_stcommentbody<{$comm[i].com_id}>"/>
<div class="smallworld_stcommentimg">
- <img src="<{$comm[i].avatar_link}>" class='smallworld_small_face'/>
+ <img src="<{$comm[i].avatar_link}>" class='smallworld_small_face' <{$comm[i].avatar_highwide}>/>
</div>
<div class="smallworld_stcommenttext">
<{if $isadminuser == 'YES' or $comm[i].username == $myusername}>
@@ -107,7 +107,7 @@
<div class="smallworld_commentupdate" style='display:none' id='smallworld_commentbox<{$post.msg_id}>'>
<div class="smallworld_stcommentimg">
- <img src="<{$myavatarlink}>" class='smallworld_small_face'/>
+ <img src="<{$myavatarlink}>" class='smallworld_small_face' <{$comm[i].avatar_highwide}>/>
</div>
<div class="smallworld_stcommenttext" >
<form method="post" action="">
@@ -119,4 +119,7 @@
</div>
</div>
<br><br>
-<{/foreach}>
\ No newline at end of file
+<{/foreach}>
+<script type="text/javascript">
+attachAvatarOpen();
+</script>
\ No newline at end of file
Modified: XoopsModules/smallworld/trunk/smallworld/templates/getmore.html
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/templates/getmore.html 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/templates/getmore.html 2012-01-30 17:51:44 UTC (rev 8837)
@@ -9,7 +9,7 @@
</script>
<div class="smallworld_stbody" id="smallworld_stbody<{$post.msg_id}>">
<div class="smallworld_stimg">
- <img src="<{$post.avatar_link}>" class='smallworld_big_face'/>
+ <img src="<{$post.avatar_link}>" class='smallworld_big_face' <{$post.avatar_highwide}> />
</div>
<div class="smallworld_sttext">
@@ -51,7 +51,7 @@
<{if $comm[i].msg_id_fk == $post.msg_id}>
<div class="smallworld_stcommentbody" id="smallworld_stcommentbody<{$comm[i].com_id}>">
<div class="smallworld_stcommentimg">
- <img src="<{$comm[i].avatar_link}>" class='smallworld_small_face'/>
+ <img src="<{$comm[i].avatar_link}>" class='smallworld_small_face' <{$comm[i].avatar_highwide}>/>
</div>
<div class="smallworld_stcommenttext">
<{if $isadminuser == 'YES' or $comm[i].username == $myusername}>
@@ -95,7 +95,7 @@
</div> <!-- smallworld_commentcontainer -->
<div class="smallworld_commentupdate" style='display:none' id='smallworld_commentbox<{$post.msg_id}>'>
<div class="smallworld_stcommentimg">
- <img src="<{$myavatarlink}>" class='smallworld_small_face'/>
+ <img src="<{$myavatarlink}>" class='smallworld_small_face' <{$comm[i].avatar_highwide}>/>
</div>
<div class="smallworld_stcommenttext" >
<form method="post" action="">
@@ -114,4 +114,7 @@
</div>
<a href="javascript:void(0)" class="smallworld_msg_counter" rel="<{$pagename}>" id="<{$post.msg_id}>">MORE</a>
<br><br>
+<script type="text/javascript">
+attachAvatarOpen();
+</script>
\ No newline at end of file
Modified: XoopsModules/smallworld/trunk/smallworld/templates/smallworld_admin.html
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/templates/smallworld_admin.html 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/templates/smallworld_admin.html 2012-01-30 17:51:44 UTC (rev 8837)
@@ -98,7 +98,7 @@
<{foreach item=post from=$allusersinspect}>
<tr>
<td>
- <img height="50px" width="60px" src="<{$post.userimage}>"/>
+ <img src="<{$post.userimage}>" <{$post.avatar_highwide}>/>
</td>
<td><{$post.username}></td>
<td><{$post.realname}></td>
@@ -160,7 +160,7 @@
<{foreach item=posts from=$allusersnoinspect}>
<tr>
<td>
- <img height="50px" width="60px" src="<{$posts.userimage}>"/>
+ <img src="<{$posts.userimage}>" <{$posts.avatar_highwide}>/>
</td>
<td><{$posts.username}></td>
<td><{$posts.realname}></td>
Modified: XoopsModules/smallworld/trunk/smallworld/templates/smallworld_alluserstodiv.html
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/templates/smallworld_alluserstodiv.html 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/templates/smallworld_alluserstodiv.html 2012-01-30 17:51:44 UTC (rev 8837)
@@ -13,7 +13,7 @@
<{foreach item=post from=$allusersinspect}>
<tr>
<td>
- <img height="50px" width="60px" src="<{$post.userimage}>"/>
+ <img src="<{$post.userimage}>" <{$post.avatar_highwide}>/>
</td>
<td><{$post.username}></td>
<td><{$post.realname}></td>
@@ -75,7 +75,7 @@
<{foreach item=posts from=$allusersnoinspect}>
<tr>
<td>
- <img height="50px" width="60px" src="<{$posts.userimage}>"/>
+ <img src="<{$posts.userimage}>" <{$posts.avatar_highwide}>/>
</td>
<td><{$posts.username}></td>
<td><{$posts.realname}></td>
Modified: XoopsModules/smallworld/trunk/smallworld/templates/smallworld_friends_template.html
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/templates/smallworld_friends_template.html 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/templates/smallworld_friends_template.html 2012-01-30 17:51:44 UTC (rev 8837)
@@ -92,7 +92,7 @@
<{section name=i loop=$pendingfriends}>
<div class="smallworld_friends_body">
<div class="smallworld_friendpageimg">
- <img src="<{$pendingfriends[i].avatar_link}>" class='smallworld_small_face'/>
+ <img src="<{$pendingfriends[i].avatar_link}>" class='smallworld_small_face' <{$pendingfriends[i].avatar_highwide}>/>
</div>
<div class="Friends_holder">
<a class="Friends_links" href="<{$xoops_url}>/modules/smallworld/userprofile.php?username=<{$pendingfriends[i].friendname}>">
@@ -114,7 +114,7 @@
<{section name=i loop=$verifiedfriends}>
<div class="smallworld_friends_body">
<div class="smallworld_friendpageimg">
- <img src="<{$verifiedfriends[i].avatar_link}>" class='smallworld_small_face'/>
+ <img src="<{$verifiedfriends[i].avatar_link}>" class='smallworld_small_face' <{$verifiedfriends[i].avatar_highwide}>/>
</div>
<div class="Friends_holder">
<a class="Friends_links" href="<{$xoops_url}>/modules/smallworld/userprofile.php?username=<{$verifiedfriends[i].friendname}>">
@@ -135,7 +135,7 @@
<{section name=i loop=$followingyou}>
<div class="smallworld_friends_body">
<div class="smallworld_friendpageimg">
- <img src="<{$followingyou[i].avatar_link}>" class='smallworld_small_face'/>
+ <img src="<{$followingyou[i].avatar_link}>" class='smallworld_small_face' <{$followingyou[i].avatar_highwide}>/>
</div>
<div class="Friends_holder">
<a class="Friends_links" href="<{$xoops_url}>/modules/smallworld/userprofile.php?username=<{$followingyou[i].friendname}>">
@@ -157,7 +157,7 @@
<{section name=i loop=$followingme}>
<div class="smallworld_friends_body">
<div class="smallworld_friendpageimg">
- <img src="<{$followingme[i].avatar_link}>" class='smallworld_small_face'/>
+ <img src="<{$followingme[i].avatar_link}>" class='smallworld_small_face' <{$followingme[i].avatar_highwide}>/>
</div>
<div class="Friends_holder">
<a class="Friends_links" href="<{$xoops_url}>/modules/smallworld/userprofile.php?username=<{$followingme[i].friendname}>">
Modified: XoopsModules/smallworld/trunk/smallworld/templates/smallworld_index.html
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/templates/smallworld_index.html 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/templates/smallworld_index.html 2012-01-30 17:51:44 UTC (rev 8837)
@@ -9,7 +9,7 @@
<table class="smallworld_biotable">
<tr>
<td>
- <{$avatar}>
+ <{$avatar}>
<div class="UploadNewAvatar" id="<{$ownerofpage}>" style="display:none">
<div id="smallworld_avatarupload" >
<span>Upload File<span>
@@ -97,7 +97,7 @@
});
</script>
<div class="smallworld_stimg">
- <img src="<{$post.avatar_link}>" class='smallworld_big_face'/>
+ <img src="<{$post.avatar_link}>" class='smallworld_big_face' <{$post.avatar_highwide}>/>
</div>
<div class="smallworld_sttext">
@@ -138,7 +138,7 @@
<{if $comm[i].msg_id_fk == $post.msg_id}>
<div class="smallworld_stcommentbody" id="smallworld_stcommentbody<{$comm[i].com_id}>"/>
<div class="smallworld_stcommentimg">
- <img src="<{$comm[i].avatar_link}>" class='smallworld_small_face'/>
+ <img src="<{$comm[i].avatar_link}>" class='smallworld_small_face' <{$comm[i].avatar_highwide}>/>
</div>
<div class="smallworld_stcommenttext">
<{if $isadminuser == 'YES' or $comm[i].username == $myusername}>
@@ -180,7 +180,7 @@
<div class="smallworld_commentupdate" style="display:none" id="smallworld_commentbox<{$post.msg_id}>">
<div class="smallworld_stcommentimg">
- <img src="<{$myavatarlink}>" class='smallworld_small_face'/>
+ <img src="<{$myavatarlink}>" class='smallworld_small_face' <{$myavatar_highwide}>/>
</div>
<div class="smallworld_stcommenttext" >
<form method="post" action="">
Modified: XoopsModules/smallworld/trunk/smallworld/templates/smallworld_permalink.html
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/templates/smallworld_permalink.html 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/templates/smallworld_permalink.html 2012-01-30 17:51:44 UTC (rev 8837)
@@ -27,7 +27,7 @@
<div class="smallworld_stbody" id="smallworld_stbody<{$post.msg_id}>">
<div class="smallworld_stimg">
- <img src="<{$post.avatar_link}>" class='smallworld_big_face'/>
+ <img src="<{$post.avatar_link}>" class='smallworld_big_face' <{$post.avatar_highwide}>/>
</div>
<div class="smallworld_sttext">
@@ -66,7 +66,7 @@
<{if $comm[i].msg_id_fk == $post.msg_id}>
<div class="smallworld_stcommentbody" id="smallworld_stcommentbody<{$comm[i].com_id}>"/>
<div class="smallworld_stcommentimg">
- <img src="<{$comm[i].avatar_link}>" class='smallworld_small_face'/>
+ <img src="<{$comm[i].avatar_link}>" class='smallworld_small_face' <{$comm[i].avatar_highwide}>/>
</div>
<div class="smallworld_stcommenttext">
<{if $isadminuser == 'YES' or $comm[i].username == $myusername}>
@@ -109,7 +109,7 @@
<div class="smallworld_commentupdate" style='display:none' id='smallworld_commentbox<{$post.msg_id}>'>
<div class="smallworld_stcommentimg">
- <img src="<{$myavatarlink}>" class='smallworld_small_face'/>
+ <img src="<{$myavatarlink}>" class='smallworld_small_face' <{$myavatar_highwide}>/>
</div>
<div class="smallworld_stcommenttext" >
<form method="post" action="">
Modified: XoopsModules/smallworld/trunk/smallworld/templates/smallworld_share.html
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/templates/smallworld_share.html 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/templates/smallworld_share.html 2012-01-30 17:51:44 UTC (rev 8837)
@@ -26,7 +26,7 @@
<div class="smallworld_stbody" id="smallworld_stbody<{$post.msg_id}>">
<div class="smallworld_stimg">
- <img src="<{$post.avatar_link}>" class='smallworld_big_face'/>
+ <img src="<{$post.avatar_link}>" class='smallworld_big_face' <{$post.avatar_highwide}>/>
</div>
<div class="smallworld_sttext">
Modified: XoopsModules/smallworld/trunk/smallworld/templates/smallworld_userprofile_imgupload.html
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/templates/smallworld_userprofile_imgupload.html 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/templates/smallworld_userprofile_imgupload.html 2012-01-30 17:51:44 UTC (rev 8837)
@@ -11,21 +11,21 @@
<td class="file_name"></td>
<td class="file_size"></td>
<td class="file_upload_progress"><div></div></td>
- <td class="file_upload_start"><button>Start</button></td>
- <td class="file_upload_cancel"><button>Cancel</button></td>
+ <td class="file_upload_start"><button><{$smarty.const._SMALLWORLD_IMAGES_START}></button></td>
+ <td class="file_upload_cancel"><button><{$smarty.const._SMALLWORLD_IMAGES_CANCEL}></button></td>
</tr>
<tr class="file_download_template" style="display:none;">
<td class="file_download_preview"></td>
<td class="file_name"><a></a></td>
<td class="file_size"></td>
- <td class="file_download_delete" colspan="3"><button>Delete</button></td>
+ <td class="file_download_delete" colspan="3"><button><{$smarty.const._SMALLWORLD_IMAGES_DELETE}></button></td>
</tr>
</table>
<div class="file_upload_overall_progress"><div style="display:none;"></div></div>
<div class="file_upload_buttons">
- <button class="file_upload_start">Start All</button>
- <button class="file_upload_cancel">Cancel All</button>
- <button class="file_download_delete">Delete All</button>
+ <button class="file_upload_start"><{$smarty.const._SMALLWORLD_IMAGES_STARTALL}></button>
+ <button class="file_upload_cancel"><{$smarty.const._SMALLWORLD_IMAGES_CANCELALL}></button>
+ <button class="file_download_delete"><{$smarty.const._SMALLWORLD_IMAGES_DELETEALL}></button>
</div>
</div>
<{/if}>
Modified: XoopsModules/smallworld/trunk/smallworld/templates/smallworld_userprofile_template.html
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/templates/smallworld_userprofile_template.html 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/templates/smallworld_userprofile_template.html 2012-01-30 17:51:44 UTC (rev 8837)
@@ -20,7 +20,7 @@
<table class="smallworld_biotable">
<tr>
<td>
- <{$avatar}>
+ <{$avatar}>
<{if $username == $myusername OR $isadminuser == 'YES'}>
<div class="UploadNewAvatar" id="<{$ownerofpage}>" style="display:none">
<div id="smallworld_avatarupload" >
@@ -175,7 +175,7 @@
<div class="smallworld_stbody" id="smallworld_stbody<{$post.msg_id}>">
<div class="smallworld_stimg">
- <img src="<{$post.avatar_link}>" class='smallworld_big_face'/>
+ <img src="<{$post.avatar_link}>" class='smallworld_big_face' <{$post.avatar_highwide}>/>
</div>
<div class="smallworld_sttext">
@@ -218,7 +218,7 @@
<{if $comm[i].msg_id_fk == $post.msg_id}>
<div class="smallworld_stcommentbody" id="smallworld_stcommentbody<{$comm[i].com_id}>"/>
<div class="smallworld_stcommentimg">
- <img src="<{$comm[i].avatar_link}>" class='smallworld_small_face'/>
+ <img src="<{$comm[i].avatar_link}>" class='smallworld_small_face' <{$comm[i].avatar_highwide}>/>
</div>
<div class="smallworld_stcommenttext">
<{if $comm[i].username == $myusername}>
@@ -259,7 +259,7 @@
<div class="smallworld_commentupdate" style='display:none' id='smallworld_commentbox<{$post.msg_id}>'>
<div class="smallworld_stcommentimg">
- <img src="<{$visitoravatarlink}>" class='smallworld_small_face'/>
+ <img src="<{$visitoravatarlink}>" class='smallworld_small_face' <{$visitoravatar_highwide}>/>
</div>
<div class="smallworld_stcommenttext" >
<form method="post" action="">
Modified: XoopsModules/smallworld/trunk/smallworld/userprofile.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/userprofile.php 2012-01-30 17:39:33 UTC (rev 8836)
+++ XoopsModules/smallworld/trunk/smallworld/userprofile.php 2012-01-30 17:51:44 UTC (rev 8837)
@@ -95,8 +95,13 @@
$Wall = new Wall_Updates();
$myavatar = $Wall->Gravatar($id); //profile owners data
$myavatarlink = smallworld_getAvatarLink($id, $myavatar); //profile owners data
+ $myavatar_size = getimagesize($myavatarlink);
+ $myavatar_highwide = smallworld_imageResize($myavatar_size[0], $myavatar_size[1], 50);
+
$visitorAvatar = $Wall->Gravatar($yourid);
$visitorAvatarlink = smallworld_getAvatarLink($yourid, $visitorAvatar);
+ $visitorAvatar_size = getimagesize($visitorAvatarlink);
+ $visitorAvatar_highwide = smallworld_imageResize($visitorAvatar_size[0], $visitorAvatar_size[1], 50);
// Follow array here
$followers = $Wall->getFollowers($id);
@@ -114,6 +119,8 @@
$wm['priv'] = $data['priv'];
$wm['avatar'] = $Wall->Gravatar($data['uid_fk']);
$wm['avatar_link'] = smallworld_getAvatarLink ($data['uid_fk'], $wm['avatar']);
+ $wm['avatar_size'] = getimagesize($wm['avatar_link']);
+ $wm['avatar_highwide'] = smallworld_imageResize($wm['avatar_size'][0], $wm['avatar_size'][1], 50);
$wm['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".$data['uid_fk'];
$wm['compl_msg_lnk'] .= "&updid=".$data['msg_id']."'>"._SMALLWORLD_COMP_MSG_LNK_DESC."</a>";
$wm['vote_up'] = $Wall->countVotes ('msg', 'up', $data['msg_id']);
@@ -137,6 +144,8 @@
$wc['uid'] = $cdata['uid_fk'];
$wc['myavatar'] = $myavatar;
$wc['myavatar_link']= $myavatarlink;
+ $wc['avatar_size'] = getimagesize($wc['myavatar_link']);
+ $wc['avatar_highwide'] = smallworld_imageResize($wc['avatar_size'][0], $wc['avatar_size'][1], 35);
$wc['cface'] = $Wall->Gravatar($cdata['uid_fk']);
$wc['avatar_link'] = smallworld_getAvatarLink($cdata['uid_fk'],$wc['cface']);
$wc['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".Smallworld_getOwnerFromComment($cdata['msg_id_fk']);
@@ -188,8 +197,10 @@
$xoopsTpl->assign('friendinvitations',$getInvitations);
$xoopsTpl->assign('myavatar',$myavatar);
$xoopsTpl->assign('myavatarlink',$myavatarlink);
+ $xoopsTpl->assign('myavatar_highwide',$visitorAvatar_highwide);
$xoopsTpl->assign('visitoravatar',$visitorAvatar);
$xoopsTpl->assign('visitoravatarlink',$visitorAvatarlink);
+ $xoopsTpl->assign('visitoravatar_highwide',$visitorAvatar_highwide);
$xoopsTpl->assign('myusername',$username);
$xoopsTpl->assign('username',$Xusername);
$xoopsTpl->assign('bdaynow',$birthday_today_text);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <txm...@us...> - 2012-01-30 17:39:50
|
Revision: 8836
http://xoops.svn.sourceforge.net/xoops/?rev=8836&view=rev
Author: txmodxoops
Date: 2012-01-30 17:39:33 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
Added Paths:
-----------
XoopsModules/TDMCreate/releases/1.37/
XoopsModules/TDMCreate/releases/1.37/admin/
XoopsModules/TDMCreate/releases/1.37/admin/about.php
XoopsModules/TDMCreate/releases/1.37/admin/admin_footer.php
XoopsModules/TDMCreate/releases/1.37/admin/admin_header.php
XoopsModules/TDMCreate/releases/1.37/admin/const.php
XoopsModules/TDMCreate/releases/1.37/admin/includes.php
XoopsModules/TDMCreate/releases/1.37/admin/index.html
XoopsModules/TDMCreate/releases/1.37/admin/index.php
XoopsModules/TDMCreate/releases/1.37/admin/menu.php
XoopsModules/TDMCreate/releases/1.37/admin/modules.php
XoopsModules/TDMCreate/releases/1.37/admin/tables.php
XoopsModules/TDMCreate/releases/1.37/class/
XoopsModules/TDMCreate/releases/1.37/class/constArchitecture.php
XoopsModules/TDMCreate/releases/1.37/class/index.html
XoopsModules/TDMCreate/releases/1.37/class/object.php
XoopsModules/TDMCreate/releases/1.37/class/tdmcreate_modules.php
XoopsModules/TDMCreate/releases/1.37/class/tdmcreate_tables.php
XoopsModules/TDMCreate/releases/1.37/const/
XoopsModules/TDMCreate/releases/1.37/const/const_about_language.php
XoopsModules/TDMCreate/releases/1.37/const/const_admin_about.php
XoopsModules/TDMCreate/releases/1.37/const/const_admin_footer.php
XoopsModules/TDMCreate/releases/1.37/const/const_admin_header.php
XoopsModules/TDMCreate/releases/1.37/const/const_admin_help.php
XoopsModules/TDMCreate/releases/1.37/const/const_admin_index.php
XoopsModules/TDMCreate/releases/1.37/const/const_admin_language.php
XoopsModules/TDMCreate/releases/1.37/const/const_admin_menu.php
XoopsModules/TDMCreate/releases/1.37/const/const_admin_pages.php
XoopsModules/TDMCreate/releases/1.37/const/const_admin_permissions.php
XoopsModules/TDMCreate/releases/1.37/const/const_architecture.php
XoopsModules/TDMCreate/releases/1.37/const/const_blocks.php
XoopsModules/TDMCreate/releases/1.37/const/const_blocks_language.php
XoopsModules/TDMCreate/releases/1.37/const/const_blocks_templates.php
XoopsModules/TDMCreate/releases/1.37/const/const_changelog.php
XoopsModules/TDMCreate/releases/1.37/const/const_class.php
XoopsModules/TDMCreate/releases/1.37/const/const_class_admin.php
XoopsModules/TDMCreate/releases/1.37/const/const_css_admin.php
XoopsModules/TDMCreate/releases/1.37/const/const_entete.php
XoopsModules/TDMCreate/releases/1.37/const/const_help_language.php
XoopsModules/TDMCreate/releases/1.37/const/const_include_coms.php
XoopsModules/TDMCreate/releases/1.37/const/const_include_configs.php
XoopsModules/TDMCreate/releases/1.37/const/const_include_functions.php
XoopsModules/TDMCreate/releases/1.37/const/const_include_install.php
XoopsModules/TDMCreate/releases/1.37/const/const_include_search.php
XoopsModules/TDMCreate/releases/1.37/const/const_main_header.php
XoopsModules/TDMCreate/releases/1.37/const/const_main_index.php
XoopsModules/TDMCreate/releases/1.37/const/const_main_language.php
XoopsModules/TDMCreate/releases/1.37/const/const_modinfo_language.php
XoopsModules/TDMCreate/releases/1.37/const/const_sql.php
XoopsModules/TDMCreate/releases/1.37/const/const_templates.php
XoopsModules/TDMCreate/releases/1.37/const/const_templates_admin_about.php
XoopsModules/TDMCreate/releases/1.37/const/const_templates_admin_help.php
XoopsModules/TDMCreate/releases/1.37/const/const_templates_footer.php
XoopsModules/TDMCreate/releases/1.37/const/const_templates_header.php
XoopsModules/TDMCreate/releases/1.37/const/const_templates_index.php
XoopsModules/TDMCreate/releases/1.37/const/const_templates_pages.php
XoopsModules/TDMCreate/releases/1.37/const/const_user_header.php
XoopsModules/TDMCreate/releases/1.37/const/const_user_index.php
XoopsModules/TDMCreate/releases/1.37/const/const_user_pages.php
XoopsModules/TDMCreate/releases/1.37/const/const_xoopsversion.php
XoopsModules/TDMCreate/releases/1.37/css/
XoopsModules/TDMCreate/releases/1.37/css/admin.css
XoopsModules/TDMCreate/releases/1.37/css/index.html
XoopsModules/TDMCreate/releases/1.37/docs/
XoopsModules/TDMCreate/releases/1.37/docs/changelog.TXT
XoopsModules/TDMCreate/releases/1.37/docs/credits.txt
XoopsModules/TDMCreate/releases/1.37/docs/index.html
XoopsModules/TDMCreate/releases/1.37/docs/install.txt
XoopsModules/TDMCreate/releases/1.37/docs/lang_diff.txt
XoopsModules/TDMCreate/releases/1.37/docs/licence.txt
XoopsModules/TDMCreate/releases/1.37/docs/readme.txt
XoopsModules/TDMCreate/releases/1.37/images/
XoopsModules/TDMCreate/releases/1.37/images/deco/
XoopsModules/TDMCreate/releases/1.37/images/deco/about.png
XoopsModules/TDMCreate/releases/1.37/images/deco/arrow.gif
XoopsModules/TDMCreate/releases/1.37/images/deco/blank.gif
XoopsModules/TDMCreate/releases/1.37/images/deco/const.png
XoopsModules/TDMCreate/releases/1.37/images/deco/delete.gif
XoopsModules/TDMCreate/releases/1.37/images/deco/delete.png
XoopsModules/TDMCreate/releases/1.37/images/deco/edit.gif
XoopsModules/TDMCreate/releases/1.37/images/deco/edit.png
XoopsModules/TDMCreate/releases/1.37/images/deco/fields.png
XoopsModules/TDMCreate/releases/1.37/images/deco/index.html
XoopsModules/TDMCreate/releases/1.37/images/deco/index.png
XoopsModules/TDMCreate/releases/1.37/images/deco/modules.png
XoopsModules/TDMCreate/releases/1.37/images/deco/off.gif
XoopsModules/TDMCreate/releases/1.37/images/deco/off.png
XoopsModules/TDMCreate/releases/1.37/images/deco/on.gif
XoopsModules/TDMCreate/releases/1.37/images/deco/on.png
XoopsModules/TDMCreate/releases/1.37/images/deco/permissions.png
XoopsModules/TDMCreate/releases/1.37/images/deco/pref.png
XoopsModules/TDMCreate/releases/1.37/images/deco/tables.png
XoopsModules/TDMCreate/releases/1.37/images/deco/update.png
XoopsModules/TDMCreate/releases/1.37/images/icons/
XoopsModules/TDMCreate/releases/1.37/images/icons/about.png
XoopsModules/TDMCreate/releases/1.37/images/icons/const.png
XoopsModules/TDMCreate/releases/1.37/images/icons/index.html
XoopsModules/TDMCreate/releases/1.37/images/icons/index.png
XoopsModules/TDMCreate/releases/1.37/images/icons/modules.png
XoopsModules/TDMCreate/releases/1.37/images/icons/off.png
XoopsModules/TDMCreate/releases/1.37/images/icons/on.png
XoopsModules/TDMCreate/releases/1.37/images/icons/tables.png
XoopsModules/TDMCreate/releases/1.37/images/icons/update.png
XoopsModules/TDMCreate/releases/1.37/images/index.html
XoopsModules/TDMCreate/releases/1.37/images/logo.png
XoopsModules/TDMCreate/releases/1.37/images/menu/
XoopsModules/TDMCreate/releases/1.37/images/menu/bg.png
XoopsModules/TDMCreate/releases/1.37/images/menu/index.html
XoopsModules/TDMCreate/releases/1.37/images/menu/left_both.png
XoopsModules/TDMCreate/releases/1.37/images/menu/right_both.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/
XoopsModules/TDMCreate/releases/1.37/images/uploads/index.html
XoopsModules/TDMCreate/releases/1.37/images/uploads/modules/
XoopsModules/TDMCreate/releases/1.37/images/uploads/modules/TDMCreate_slogo.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/modules/TDMLogo.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/modules/Test1Logo.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/modules/blank.gif
XoopsModules/TDMCreate/releases/1.37/images/uploads/modules/documentation_slogo.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/modules/imprintLogo.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/modules/index.html
XoopsModules/TDMCreate/releases/1.37/images/uploads/modules/mytubeLogo.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/modules/partadsLogo.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/modules/xcvLogo.txt
XoopsModules/TDMCreate/releases/1.37/images/uploads/modules/xnews_slogo.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/modules/xsitemapLogo.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/modules/xtransamLogo.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/modules/xtransam_slogo.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/modules/xtutorialsLogo.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/modules/xtutorials_slogo.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/tables/
XoopsModules/TDMCreate/releases/1.37/images/uploads/tables/ads.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/tables/blank.gif
XoopsModules/TDMCreate/releases/1.37/images/uploads/tables/broken.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/tables/cat.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/tables/contact.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/tables/index.html
XoopsModules/TDMCreate/releases/1.37/images/uploads/tables/plugin.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/tables/shoutbox.png
XoopsModules/TDMCreate/releases/1.37/images/uploads/tables/topic.png
XoopsModules/TDMCreate/releases/1.37/include/
XoopsModules/TDMCreate/releases/1.37/include/comment_delete.php
XoopsModules/TDMCreate/releases/1.37/include/comment_edit.php
XoopsModules/TDMCreate/releases/1.37/include/comment_new.php
XoopsModules/TDMCreate/releases/1.37/include/comment_post.php
XoopsModules/TDMCreate/releases/1.37/include/comment_reply.php
XoopsModules/TDMCreate/releases/1.37/include/functions.php
XoopsModules/TDMCreate/releases/1.37/include/functions_const.php
XoopsModules/TDMCreate/releases/1.37/include/index.html
XoopsModules/TDMCreate/releases/1.37/include/install.php
XoopsModules/TDMCreate/releases/1.37/include/jq.init.js
XoopsModules/TDMCreate/releases/1.37/include/update.php
XoopsModules/TDMCreate/releases/1.37/language/
XoopsModules/TDMCreate/releases/1.37/language/arabic/
XoopsModules/TDMCreate/releases/1.37/language/arabic/admin.php
XoopsModules/TDMCreate/releases/1.37/language/arabic/help.php
XoopsModules/TDMCreate/releases/1.37/language/arabic/index.html
XoopsModules/TDMCreate/releases/1.37/language/arabic/modinfo.php
XoopsModules/TDMCreate/releases/1.37/language/bulgarian/
XoopsModules/TDMCreate/releases/1.37/language/bulgarian/admin.php
XoopsModules/TDMCreate/releases/1.37/language/bulgarian/help.php
XoopsModules/TDMCreate/releases/1.37/language/bulgarian/index.html
XoopsModules/TDMCreate/releases/1.37/language/bulgarian/modinfo.php
XoopsModules/TDMCreate/releases/1.37/language/english/
XoopsModules/TDMCreate/releases/1.37/language/english/admin.php
XoopsModules/TDMCreate/releases/1.37/language/english/help/
XoopsModules/TDMCreate/releases/1.37/language/english/help/help.html
XoopsModules/TDMCreate/releases/1.37/language/english/help/index.html
XoopsModules/TDMCreate/releases/1.37/language/english/help.php
XoopsModules/TDMCreate/releases/1.37/language/english/index.html
XoopsModules/TDMCreate/releases/1.37/language/english/modinfo.php
XoopsModules/TDMCreate/releases/1.37/language/french/
XoopsModules/TDMCreate/releases/1.37/language/french/admin.php
XoopsModules/TDMCreate/releases/1.37/language/french/help.php
XoopsModules/TDMCreate/releases/1.37/language/french/index.html
XoopsModules/TDMCreate/releases/1.37/language/french/modinfo.php
XoopsModules/TDMCreate/releases/1.37/language/index.html
XoopsModules/TDMCreate/releases/1.37/language/italian/
XoopsModules/TDMCreate/releases/1.37/language/italian/admin.php
XoopsModules/TDMCreate/releases/1.37/language/italian/help/
XoopsModules/TDMCreate/releases/1.37/language/italian/help/help.html
XoopsModules/TDMCreate/releases/1.37/language/italian/help/index.html
XoopsModules/TDMCreate/releases/1.37/language/italian/help.php
XoopsModules/TDMCreate/releases/1.37/language/italian/index.html
XoopsModules/TDMCreate/releases/1.37/language/italian/modinfo.php
XoopsModules/TDMCreate/releases/1.37/language/update language 1.0 to 1.1.txt
XoopsModules/TDMCreate/releases/1.37/language/update language 1.1 to 1.15.txt
XoopsModules/TDMCreate/releases/1.37/language/update language 1.1 to 1.37.txt
XoopsModules/TDMCreate/releases/1.37/modules/
XoopsModules/TDMCreate/releases/1.37/releases/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/admin/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/admin/about.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/admin/const.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/admin/header.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/admin/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.0/admin/index.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/admin/menu.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/admin/modules.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/admin/tables.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/class/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/class/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.0/class/menu.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/class/object.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/class/tdmcreate_modules.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/class/tdmcreate_tables.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_admin_about.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_admin_header.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_admin_index.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_admin_language.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_admin_menu.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_admin_pages.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_admin_permissions.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_architecture.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_blocs.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_blocs_language.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_blocs_templates.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_class.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_class_menu.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_entete.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_include_functions.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_include_search.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_modinfo_language.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_sql.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_user_index.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/const/const_xoopsversion.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/deco/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/deco/about.png
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/deco/const.png
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/deco/delete.gif
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/deco/edit.gif
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/deco/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/deco/index.png
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/deco/modules.png
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/deco/off.gif
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/deco/on.gif
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/deco/permissions.png
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/deco/pref.png
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/deco/tables.png
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/deco/update.png
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/logo.png
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/menu/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/menu/bg.png
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/menu/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/menu/left_both.png
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/menu/right_both.png
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/uploads/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/uploads/modules/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/uploads/modules/blank.gif
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/uploads/modules/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/uploads/tables/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/uploads/tables/blank.gif
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/uploads/tables/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.0/images/uploads/tables/topic.png
XoopsModules/TDMCreate/releases/1.37/releases/1.0/include/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/include/functions.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/include/functions_const.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/include/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.0/include/install.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/include/update.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/index.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/language/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/language/arabic/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/language/arabic/admin.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/language/arabic/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.0/language/bulgarian/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/language/bulgarian/admin.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/language/bulgarian/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.0/language/english/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/language/english/admin.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/language/english/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.0/language/french/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/language/french/admin.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/language/french/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.0/language/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.0/language/italian/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/language/italian/admin.php
XoopsModules/TDMCreate/releases/1.37/releases/1.0/language/italian/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.0/modules/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/sql/
XoopsModules/TDMCreate/releases/1.37/releases/1.0/sql/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.0/sql/mysql.sql
XoopsModules/TDMCreate/releases/1.37/releases/1.0/xoops_version.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/
XoopsModules/TDMCreate/releases/1.37/releases/1.1/admin/
XoopsModules/TDMCreate/releases/1.37/releases/1.1/admin/about.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/admin/const.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/admin/header.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/admin/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.1/admin/index.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/admin/menu.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/admin/modules.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/admin/tables.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/class/
XoopsModules/TDMCreate/releases/1.37/releases/1.1/class/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.1/class/menu.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/class/object.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/class/tdmcreate_modules.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/class/tdmcreate_tables.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_admin_about.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_admin_header.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_admin_index.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_admin_language.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_admin_menu.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_admin_pages.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_admin_permissions.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_architecture.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_blocs.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_blocs_language.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_blocs_templates.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_class.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_class_menu.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_entete.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_include_coms.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_include_functions.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_include_install.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_include_search.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_modinfo_language.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_sql.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_user_index.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/const/const_xoopsversion.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/deco/
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/deco/about.png
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/deco/arrow.gif
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/deco/blank.gif
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/deco/const.png
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/deco/delete.gif
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/deco/edit.gif
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/deco/fields.png
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/deco/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/deco/index.png
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/deco/modules.png
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/deco/off.gif
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/deco/on.gif
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/deco/permissions.png
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/deco/pref.png
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/deco/tables.png
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/deco/update.png
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/logo.png
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/menu/
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/menu/bg.png
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/menu/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/menu/left_both.png
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/menu/right_both.png
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/uploads/
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/uploads/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/uploads/modules/
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/uploads/modules/TDMLogo.png
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/uploads/modules/blank.gif
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/uploads/modules/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/uploads/modules/xcvLogo.txt
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/uploads/tables/
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/uploads/tables/blank.gif
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/uploads/tables/contact.png
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/uploads/tables/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.1/images/uploads/tables/topic.png
XoopsModules/TDMCreate/releases/1.37/releases/1.1/include/
XoopsModules/TDMCreate/releases/1.37/releases/1.1/include/comment_delete.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/include/comment_edit.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/include/comment_new.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/include/comment_post.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/include/comment_reply.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/include/functions.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/include/functions_const.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/include/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.1/include/install.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/include/update.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/index.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/arabic/
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/arabic/admin.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/arabic/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/arabic/modinfo.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/bulgarian/
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/bulgarian/admin.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/bulgarian/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/bulgarian/modinfo.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/english/
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/english/admin.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/english/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/english/modinfo.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/french/
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/french/admin.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/french/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/french/modinfo.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/italian/
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/italian/admin.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/italian/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/italian/modinfo.php
XoopsModules/TDMCreate/releases/1.37/releases/1.1/language/update language 1.0 to 1.1.txt
XoopsModules/TDMCreate/releases/1.37/releases/1.1/modules/
XoopsModules/TDMCreate/releases/1.37/releases/1.1/sql/
XoopsModules/TDMCreate/releases/1.37/releases/1.1/sql/index.html
XoopsModules/TDMCreate/releases/1.37/releases/1.1/sql/mysql.sql
XoopsModules/TDMCreate/releases/1.37/releases/1.1/xoops_version.php
XoopsModules/TDMCreate/releases/1.37/sql/
XoopsModules/TDMCreate/releases/1.37/sql/index.html
XoopsModules/TDMCreate/releases/1.37/sql/mysql.sql
XoopsModules/TDMCreate/releases/1.37/templates/
XoopsModules/TDMCreate/releases/1.37/templates/admin/
XoopsModules/TDMCreate/releases/1.37/templates/admin/help.html
XoopsModules/TDMCreate/releases/1.37/templates/admin/index.html
XoopsModules/TDMCreate/releases/1.37/templates/blocks/
XoopsModules/TDMCreate/releases/1.37/templates/help/
XoopsModules/TDMCreate/releases/1.37/templates/help/help.html
XoopsModules/TDMCreate/releases/1.37/templates/help/index.html
XoopsModules/TDMCreate/releases/1.37/templates/index.html
XoopsModules/TDMCreate/releases/1.37/xoops_version.php
Added: XoopsModules/TDMCreate/releases/1.37/admin/about.php
===================================================================
--- XoopsModules/TDMCreate/releases/1.37/admin/about.php (rev 0)
+++ XoopsModules/TDMCreate/releases/1.37/admin/about.php 2012-01-30 17:39:33 UTC (rev 8836)
@@ -0,0 +1,29 @@
+<?php
+/**
+ * TDMCreate module
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @copyright The XOOPS Project (http://www.xoops.org)
+ * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/)
+ * @package TDMCreate
+ * @since 2.5.0
+ * @author Mage, Mamba
+ * @version $Id $
+ **/
+
+include '../../../include/cp_header.php';
+include 'admin_header.php';
+xoops_cp_header();
+
+$aboutAdmin = new ModuleAdmin();
+
+echo $aboutAdmin->addNavigation('about.php');
+echo $aboutAdmin->renderabout('6KJ7RW5DR3VTJ', false);
+
+include 'admin_footer.php';
\ No newline at end of file
Added: XoopsModules/TDMCreate/releases/1.37/admin/admin_footer.php
===================================================================
--- XoopsModules/TDMCreate/releases/1.37/admin/admin_footer.php (rev 0)
+++ XoopsModules/TDMCreate/releases/1.37/admin/admin_footer.php 2012-01-30 17:39:33 UTC (rev 8836)
@@ -0,0 +1,24 @@
+<?php
+/**
+ * XoopsPoll module
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package XoopsPoll
+ * @since 2.5.0
+ * @author Mamba (www.xoops.org)
+ * @version $Id $
+**/
+global $pathImageAdmin;
+
+echo "<div align=\"center\"><a href=\"http://www.xoops.org\" target=\"_blank\"><img src=" . $pathImageAdmin.'/xoopsmicrobutton.gif'.' '." alt='XOOPS' title='XOOPS'></a></div>";
+echo "<div class='center smallsmall italic pad5'><strong>" . $xoopsModule->getVar("name") . "</strong> is maintained by the <a class='tooltip' rel='external' href='http://www.xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>";
+
+xoops_cp_footer();
\ No newline at end of file
Added: XoopsModules/TDMCreate/releases/1.37/admin/admin_header.php
===================================================================
--- XoopsModules/TDMCreate/releases/1.37/admin/admin_header.php (rev 0)
+++ XoopsModules/TDMCreate/releases/1.37/admin/admin_header.php 2012-01-30 17:39:33 UTC (rev 8836)
@@ -0,0 +1,64 @@
+<?php
+/**
+ * Marquee module
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package Marquee
+ * @since 2.5.0
+ * @author XOOPS Module Team
+ * @version $Id $
+**/
+include_once dirname(dirname(dirname(dirname(__FILE__)))) . '/mainfile.php';
+include_once XOOPS_ROOT_PATH . '/include/cp_functions.php';
+include_once("../include/functions.php");
+include_once 'includes.php';
+
+if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){
+ include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php');
+ //return true;
+ }else{
+ echo xoops_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks");
+ //return false;
+ }
+//load class
+$modulesHandler =& xoops_getModuleHandler('tdmcreate_modules', 'TDMCreate');
+$tablesHandler =& xoops_getModuleHandler('tdmcreate_tables', 'TDMCreate');
+
+$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid'));
+$pathImageIcon = XOOPS_URL .'/'. $moduleInfo->getInfo('icons16');
+$pathImageAdmin = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32');
+
+$myts =& MyTextSanitizer::getInstance();
+
+if ($xoopsUser) {
+ $moduleperm_handler =& xoops_gethandler('groupperm');
+ if (!$moduleperm_handler->checkRight('module_admin', $xoopsModule->getVar( 'mid' ), $xoopsUser->getGroups())) {
+ redirect_header(XOOPS_URL, 1, _NOPERM);
+ exit();
+ }
+} else {
+ redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM);
+ exit();
+}
+
+if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
+ include_once(XOOPS_ROOT_PATH."/class/template.php");
+ $xoopsTpl = new XoopsTpl();
+}
+
+$xoopsTpl->assign('pathImageIcon', $pathImageIcon);
+$xoopsTpl->assign('pathImageAdmin', $pathImageAdmin);
+//xoops_cp_header();
+
+//Load languages
+xoops_loadLanguage('admin', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('modinfo', $xoopsModule->getVar("dirname"));
+xoops_loadLanguage('main', $xoopsModule->getVar("dirname"));
\ No newline at end of file
Added: XoopsModules/TDMCreate/releases/1.37/admin/const.php
===================================================================
--- XoopsModules/TDMCreate/releases/1.37/admin/const.php (rev 0)
+++ XoopsModules/TDMCreate/releases/1.37/admin/const.php 2012-01-30 17:39:33 UTC (rev 8836)
@@ -0,0 +1,219 @@
+<?php
+/**
+ * ****************************************************************************
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ *
+ * Cette licence, contient des limitations!!!
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @license TDM GPL license
+ * @author TDM TEAM DEV MODULE
+ *
+ * ****************************************************************************
+ */
+
+include 'admin_header.php';
+xoops_cp_header();
+
+ $indexAdmin = new ModuleAdmin();
+ echo $indexAdmin->addNavigation('const.php');
+
+if (isset($_REQUEST['op'])) {
+ $op = $_REQUEST['op'];
+} else {
+ @$op = 'default';
+}
+
+//Class
+$modulesHandler =& xoops_getModuleHandler('TDMCreate_modules', 'TDMCreate');
+$tablesHandler =& xoops_getModuleHandler('TDMCreate_tables', 'TDMCreate');
+
+//Nom du module
+$modules =& $modulesHandler->get($_REQUEST['modules_name']);
+$modules_name = $modules->getVar('modules_name');
+$modules_desc = $modules->getVar('modules_description');
+$modules_author_website_name = $modules->getVar('modules_author_website_name');
+$modules_author_website_url = $modules->getVar('modules_author_website_url');
+$modules_image = $modules->getVar('modules_image');
+$modules_active_search = $modules->getVar('modules_active_search');
+$modules_active_comments = $modules->getVar('modules_active_comments');
+
+//Nom des tables et combien de tables
+$criteria = new CriteriaCompo();
+$criteria->add(new Criteria('tables_modules', $_REQUEST['modules_name']));
+$nb_tables = $tablesHandler->getCount($criteria);
+$tables_arr = $tablesHandler->getall($criteria);
+
+switch ($op) {
+ case "creation":
+
+ //Effacer repertoire du nouveau module s'il existe
+ clearDir($modPath.'/modules/'.$modules_name);
+
+ //Debut
+ echo '<table width="100%" cellspacing="1" class="outer">';
+ /************************************************/
+ /*Structure*/
+ /************************************************/
+ //Creation de l'architecture
+ const_architecture($modules_name, $modules_image);
+ //Creation du changelog.txt
+ const_changelog($modules, $modules_name);
+ //Creation de admin index.php
+ const_admin_index($modules, $modules_name, $tables_arr);
+ //const_class_admin($modules, $modules_name);
+
+ foreach (array_keys($tables_arr) as $i)
+ {
+ //Variables
+ $tables_id = $tables_arr[$i]->getVar('tables_id');
+ $tables_name = $tables_arr[$i]->getVar('tables_name');
+ $tables_module_table = $tables_arr[$i]->getVar('tables_module_table');
+ $tables_img = $tables_arr[$i]->getVar('tables_img');
+ $tables_champs = $tables_arr[$i]->getVar('tables_champs');
+ $tables_parametres = $tables_arr[$i]->getVar('tables_parametres');
+ $tables_blocks = $tables_arr[$i]->getVar('tables_blocs');
+ $tables_display_admin = $tables_arr[$i]->getVar('tables_display_admin');
+ $tables_display_user = $tables_arr[$i]->getVar('tables_display_user');
+ $tables_search = $tables_arr[$i]->getVar('tables_search');
+ $tables_coms = $tables_arr[$i]->getVar('tables_coms');
+
+ //Fabrication
+ //Copie of images tables
+ $tables_img1 = $modPath."/images/uploads/tables/".$tables_img;
+ if (file_exists($tables_img1)) {
+ copy($tables_img1, $modPath."/modules/".$modules_name."/images/deco/".$tables_img);
+ }
+ //Creation des classes
+ const_class($modules, $modules_name, $tables_module_table, $tables_name, $tables_champs, $tables_parametres);
+
+ //Creation of pages admin
+ if ( $tables_display_admin == 1 ) {
+ const_admin_pages($modules, $modules_name, $tables_id, $tables_module_table, $tables_name, $tables_img, $tables_champs, $tables_parametres);
+ }
+ //Creation of pages and templates user
+ if ( $tables_display_user == 1 && $tables_module_table != null ) {
+ const_user_pages($modules, $modules_name, $tables_id, $tables_module_table, $tables_name, $tables_img, $tables_champs, $tables_parametres);
+ const_templates_pages($modules, $modules_name, $tables_name, $tables_module_table, $tables_champs, $tables_parametres);
+ }
+ //Creation de search
+ if ( $modules_active_search == 1 && $tables_search == 1 ) {
+ const_include_search($modules, $modules_name, $tables_name, $tables_module_table, $tables_champs, $tables_parametres, $tables_img);
+ }
+ //Creation des coms
+ if ( $modules_active_comments == 1 && $tables_coms == 1 ) {
+ const_include_coms($modules, $modules_name, $tables_name, $tables_module_table, $tables_champs, $tables_parametres, $tables_img);
+ }
+
+ //Creation of the file mysql.sql
+ const_sql($modules_name, $tables_module_table, $tables_name, $tables_champs);
+
+ $result = $xoopsDB->queryF("SELECT COUNT(*) FROM " . $xoopsDB->prefix("tdmcreate_tables")." WHERE tables_name = 'topic'");
+ list( $topic ) = $xoopsDB->fetchRow($result);
+ //Creation des blocs
+ if ( $tables_blocks == 1 ) {
+ const_blocks($modules, $modules_name, $tables_module_table, $tables_name, $tables_champs, $tables_parametres, $topic);
+ //Creation du template des blocks
+ const_blocks_templates($modules, $modules_name, $tables_name, $tables_module_table, $tables_champs, $tables_parametres);
+ }
+ }
+ //Creation de xoopsversion.php
+ /*Mettre xoops version vers la fin pour integrer les bloc, etc*/
+ const_xoopsversion($modules, $modules_name, $tables_arr, $tables_module_table);
+ // Creation of template index
+ const_templates_index($modules, $modules_name, $tables_name, $tables_module_table, $tables_champs, $tables_parametres);
+ // Creation of template header
+ const_templates_header($modules, $modules_name);
+ // Creation of template footer
+ const_templates_footer($modules, $modules_name, $tables_module_table);
+ // Creation of template admin about
+ const_templates_admin_about($modules, $modules_name);
+ // Creation of template admin help
+ const_templates_admin_help($modules, $modules_name);
+ //Creation du fichier permissions
+ if ( $topic == 1) { //|| $tables_module_table != null
+ const_admin_permissions($modules, $modules_name, $tables_arr, $topic);
+ }
+
+ //Include
+ //Configs
+ const_include_configs($modules, $modules_name, $modules_author_website_name, $modules_author_website_url);
+ //Style
+ //const_css_admin($modules, $modules_name);
+ //const_include_style($modules, $modules_name);
+ //Functions
+ const_include_functions($modules, $modules_name);
+ //Creation du fichier install pour l'uploads
+ const_include_install($modules, $modules_name, $tables_arr);
+ //Language
+ ///////////////////////////////////////////////////////////////////////
+ //Creation du language main.php
+ const_main_language($modules, $modules_name, $modules_desc, $tables_arr);
+ //Creation du language modinfo.php
+ const_modinfo_language($modules, $modules_name, $modules_desc, $tables_arr, $topic);
+ //Creation du language admin.php
+ const_admin_language($modules, $modules_name, $tables_arr, $tables_name);
+ //Creation du language blocks.php
+ const_blocks_language($modules, $modules_name, $tables_arr);
+ //Creation du language help.php
+ const_help_language($modules, $modules_name);
+ ///////////////////////////////////////////////////////////////////////
+ //Creation de la class menu
+ //const_class_menu($modules, $modules_name);
+
+ /************************************************/
+ /*Admin*/
+ /************************************************/
+ //Creation de admin header.php
+ const_admin_header($modules, $modules_name, $tables_arr);
+ //Creation de admin footer.php
+ const_admin_footer($modules, $modules_name, $tables_arr);
+ //Creation de admin menu.php
+ const_admin_menu($modules, $modules_name, $tables_arr, $topic);
+ //Creation de admin about.php
+ //$menu++;
+ const_admin_about($modules, $modules_name);
+ /************************************************/
+ /*Admin*/
+ /************************************************/
+ const_user_header($modules, $modules_name, $tables_id, $tables_module_table, $tables_name);
+ const_user_index($modules, $modules_name, $tables_id, $tables_module_table, $tables_name, $tables_champs, $tables_parametres);
+ echo '</table>';
+
+ break;
+
+ case "default":
+ default:
+
+ include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php");
+ $action = $_SERVER['REQUEST_URI'];
+
+ $form = new XoopsThemeForm(_AM_TDMCREATE_ADMIN_CONST, 'form_creation', $action, 'post', true);
+
+ $modules_select = new XoopsFormSelect(_AM_TDMCREATE_CONST_MODULES, 'modules_name', 'modules_name');
+ $modules_select->addOptionArray($modulesHandler->getList());
+ $form->addElement($modules_select, true);
+
+ foreach (array_keys($tables_arr) as $i)
+ {
+ //Variables
+ $tables_name = $tables_arr[$i]->getVar('tables_name');
+ }
+
+ $tables_select = new XoopsFormSelect(_AM_TDMCREATE_CONST_TABLES, 'tables_name', $tables_name, 4);
+ $tables_select->addOptionArray($tablesHandler->getList());
+ $form->addElement($tables_select, false);
+
+ $form->addElement(new XoopsFormHidden('op', 'creation'));
+ $form->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit'));
+ $form->display();
+ break;
+}
+include "admin_footer.php";
\ No newline at end of file
Added: XoopsModules/TDMCreate/releases/1.37/admin/includes.php
===================================================================
--- XoopsModules/TDMCreate/releases/1.37/admin/includes.php (rev 0)
+++ XoopsModules/TDMCreate/releases/1.37/admin/includes.php 2012-01-30 17:39:33 UTC (rev 8836)
@@ -0,0 +1,66 @@
+<?php
+/**
+ * ****************************************************************************
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ *
+ * Cette licence, contient des limitations!!!
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @license TDM GPL license
+ * @author TDM TEAM DEV MODULE
+ *
+ * ****************************************************************************
+ */
+include '../../../include/cp_header.php';
+include_once("../include/functions.php");
+
+$modPath = XOOPS_ROOT_PATH.'/modules/TDMCreate';
+$cPath = $modPath.'/const';
+
+include_once $cPath.'/const_architecture.php';
+include_once $cPath.'/const_xoopsversion.php';
+include_once $cPath.'/const_changelog.php';
+include_once $cPath.'/const_include_search.php';
+include_once $cPath.'/const_include_coms.php';
+include_once $cPath.'/const_include_configs.php';
+include_once $cPath.'/const_include_functions.php';
+include_once $cPath.'/const_include_install.php';
+//include_once $cPath.'/const_include_style.php';
+include_once $cPath.'/const_sql.php';
+include_once $cPath.'/const_blocks.php';
+include_once $cPath.'/const_blocks_templates.php';
+include_once $cPath.'/const_class.php';
+include_once $cPath.'/const_class_admin.php';
+//include_once $cPath.'/const_class_menu.php';
+
+include_once $cPath.'/const_admin_header.php';
+include_once $cPath.'/const_admin_footer.php';
+include_once $cPath.'/const_admin_menu.php';
+include_once $cPath.'/const_admin_index.php';
+include_once $cPath.'/const_admin_pages.php';
+include_once $cPath.'/const_admin_about.php';
+include_once $cPath.'/const_admin_permissions.php';
+include_once $cPath.'/const_admin_language.php';
+include_once $cPath.'/const_modinfo_language.php';
+include_once $cPath.'/const_about_language.php';
+include_once $cPath.'/const_help_language.php';
+include_once $cPath.'/const_blocks_language.php';
+include_once $cPath.'/const_main_language.php';
+include_once $cPath.'/const_user_header.php';
+include_once $cPath.'/const_user_index.php';
+include_once $cPath.'/const_user_pages.php';
+include_once $cPath.'/const_templates_header.php';
+include_once $cPath.'/const_templates_index.php';
+include_once $cPath.'/const_templates_pages.php';
+include_once $cPath.'/const_templates_footer.php';
+include_once $cPath.'/const_templates_admin_about.php';
+include_once $cPath.'/const_templates_admin_help.php';
+
+?>
\ No newline at end of file
Added: XoopsModules/TDMCreate/releases/1.37/admin/index.html
===================================================================
--- XoopsModules/TDMCreate/releases/1.37/admin/index.html (rev 0)
+++ XoopsModules/TDMCreate/releases/1.37/admin/index.html 2012-01-30 17:39:33 UTC (rev 8836)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/TDMCreate/releases/1.37/admin/index.php
===================================================================
--- XoopsModules/TDMCreate/releases/1.37/admin/index.php (rev 0)
+++ XoopsModules/TDMCreate/releases/1.37/admin/index.php 2012-01-30 17:39:33 UTC (rev 8836)
@@ -0,0 +1,46 @@
+<?php
+/**
+ * ****************************************************************************
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ *
+ * Cette licence, contient des limitations!!!
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @license TDM GPL license
+ * @author TDM TEAM DEV MODULE
+ *
+ * ****************************************************************************
+ */
+
+include '../../../include/cp_header.php';
+include_once(XOOPS_ROOT_PATH."/class/xoopsformloader.php");
+include_once(XOOPS_ROOT_PATH."/class/tree.php");
+include_once XOOPS_ROOT_PATH.'/class/pagenav.php';
+include_once("../include/functions.php");
+include 'admin_header.php';
+//xoops_cp_header();
+//apelle du menu admin
+
+
+xoops_cp_header();
+
+ $criteria = new CriteriaCompo();
+ $count_modules = $modulesHandler->getCount($criteria);
+
+ $indexAdmin = new ModuleAdmin();
+
+
+$indexAdmin->addInfoBox(_AM_TDMCREATE_ADMIN_NUMMODULES) ;
+$indexAdmin->addInfoBoxLine(_AM_TDMCREATE_ADMIN_NUMMODULES, "<label>" ._AM_TDMCREATE_THEREARE_NUMMODULES. "</label>", $count_modules, 'Green') ;
+
+ echo $indexAdmin->addNavigation('index.php');
+ echo $indexAdmin->renderIndex();
+
+include "admin_footer.php";
\ No newline at end of file
Added: XoopsModules/TDMCreate/releases/1.37/admin/menu.php
===================================================================
--- XoopsModules/TDMCreate/releases/1.37/admin/menu.php (rev 0)
+++ XoopsModules/TDMCreate/releases/1.37/admin/menu.php 2012-01-30 17:39:33 UTC (rev 8836)
@@ -0,0 +1,50 @@
+<?php
+/**
+ * ****************************************************************************
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ *
+ * Cette licence, contient des limitations!!!
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @license TDM GPL license
+ * @author TDM TEAM DEV MODULE
+ *
+ * ****************************************************************************
+ */
+
+
+$module_handler =& xoops_gethandler('module');
+$xoopsModule =& XoopsModule::getByDirname('TDMCreate');
+$moduleInfo =& $module_handler->get($xoopsModule->getVar('mid'));
+//$pathImageAdmin = XOOPS_URL .'/'. $moduleInfo->getInfo('icons32');
+$pathImageAdmin = $moduleInfo->getInfo('icons32');
+
+$adminmenu = array();
+
+$i = 1;
+$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMIN_INDEX;
+$adminmenu[$i]["link"] = 'admin/index.php';
+$adminmenu[$i]["icon"] = '../../'.$pathImageAdmin.'/home.png';
+$i++;
+$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMIN_MODULES;
+$adminmenu[$i]["link"] = 'admin/modules.php';
+$adminmenu[$i]["icon"] = '../../'.$pathImageAdmin.'/add.png';
+$i++;
+$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMIN_TABLES;
+$adminmenu[$i]["link"] = 'admin/tables.php';
+$adminmenu[$i]["icon"] = '../../'.$pathImageAdmin.'/index.png';
+$i++;
+$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMIN_CONST;
+$adminmenu[$i]["link"] = 'admin/const.php';
+$adminmenu[$i]["icon"] = '../../'.$pathImageAdmin.'/modifiedlink.png';
+$i++;
+$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMIN_ABOUT;
+$adminmenu[$i]["link"] = 'admin/about.php';
+$adminmenu[$i]["icon"] = '../../'.$pathImageAdmin.'/about.png';
Added: XoopsModules/TDMCreate/releases/1.37/admin/modules.php
===================================================================
--- XoopsModules/TDMCreate/releases/1.37/admin/modules.php (rev 0)
+++ XoopsModules/TDMCreate/releases/1.37/admin/modules.php 2012-01-30 17:39:33 UTC (rev 8836)
@@ -0,0 +1,177 @@
+<?php
+/**
+ * ****************************************************************************
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ *
+ * Cette licence, contient des limitations!!!
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @license TDM GPL license
+ * @author TDM TEAM DEV MODULE
+ *
+ * ****************************************************************************
+ */
+include '../../../include/cp_header.php';
+include_once("../include/functions.php");
+include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/class/tdmcreate_modules.php';
+include 'admin_header.php';
+xoops_cp_header();
+
+if (isset($_REQUEST['op'])) {
+ $op = $_REQUEST['op'];
+} else {
+ @$op = 'default';
+}
+
+switch ($op) {
+ case "modules_save":
+ if (!$GLOBALS['xoopsSecurity']->check()) {
+ redirect_header('modules.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
+ }
+
+ if (isset($_REQUEST['modules_id'])) {
+ $obj =& $modulesHandler->get($_REQUEST['modules_id']);
+ } else {
+ $obj =& $modulesHandler->create();
+ }
+ //Image
+ include_once XOOPS_ROOT_PATH.'/class/uploader.php';
+ $uploaddir = XOOPS_ROOT_PATH . "/modules/".$xoopsModule->dirname()."/images/uploads/modules/";
+ $uploader = new XoopsMediaUploader($uploaddir, "gif|jpeg|pjpeg|png", 104857600, null, null);
+
+ if ($uploader->fetchMedia($_POST['xoops_upload_file'][0])) {
+ $extension = preg_replace( "/^.+\.([^.]+)$/sU" , "\\1" , $_FILES["attachedfile"]['name']) ;
+ $name_img = $_REQUEST['modules_name'].'_slogo.'.$extension;
+ $uploader->setTargetFileName($name_img);
+ $uploader->fetchMedia($_POST['xoops_upload_file'][0]);
+ if (!$uploader->upload()) {
+ $errors = $uploader->getErrors();
+ redirect_header("javascript:history.go(-1)",3, $errors);
+ } else {
+ $obj->setVar('modules_image', $uploader->getSavedFileName());
+ }
+ } else {
+ $obj->setVar('modules_image', $_REQUEST['modules_image']);
+ }
+
+ $obj->setVar('modules_name', $_REQUEST['modules_name']);
+ $obj->setVar('modules_version', $_REQUEST['modules_version']);
+ $obj->setVar('modules_description', $_REQUEST['modules_description']);
+ $obj->setVar('modules_author', $_REQUEST['modules_author']);
+ $obj->setVar('modules_author_mail', $_REQUEST['modules_author_mail']);
+ $obj->setVar('modules_author_website_url', $_REQUEST['modules_author_website_url']);
+ $obj->setVar('modules_author_website_name', $_REQUEST['modules_author_website_name']);
+ $obj->setVar('modules_credits', $_REQUEST['modules_credits']);
+ $obj->setVar('modules_license', $_REQUEST['modules_license']);
+ $obj->setVar('modules_release_info', $_REQUEST['modules_release_info']);
+ $obj->setVar('modules_release_file', $_REQUEST['modules_release_file']);
+ $obj->setVar('modules_manual', $_REQUEST['modules_manual']);
+ $obj->setVar('modules_manual_file', $_REQUEST['modules_manual_file']);
+ $obj->setVar('modules_demo_site_url', $_REQUEST['modules_demo_site_url']);
+ $obj->setVar('modules_demo_site_name', $_REQUEST['modules_demo_site_name']);
+ $obj->setVar('modules_forum_site_url', $_REQUEST['modules_forum_site_url']);
+ $obj->setVar('modules_forum_site_name', $_REQUEST['modules_forum_site_name']);
+ $obj->setVar('modules_module_website_url', $_REQUEST['modules_module_website_url']);
+ $obj->setVar('modules_module_website_name', $_REQUEST['modules_module_website_name']);
+ $obj->setVar('modules_release', $_REQUEST['modules_release']);
+ $obj->setVar('modules_module_status', $_REQUEST['modules_module_status']);
+ $obj->setVar('modules_display_admin', $_REQUEST['modules_display_admin']);
+ $obj->setVar('modules_display_user', $_REQUEST['modules_display_user']);
+ $obj->setVar('modules_active_search', $_REQUEST['modules_active_search']);
+ $obj->setVar('modules_active_comments', $_REQUEST['modules_active_comments']);
+
+ if ($modulesHandler->insert($obj)) {
+ redirect_header('modules.php?op=default', 2, _AM_TDMCREATE_FORMOK);
+ }
+ break;
+
+ case "modules_create":
+ $modcreate_admin = new ModuleAdmin();
+ echo $modcreate_admin->addNavigation('modules.php');
+ $modcreate_admin->addItemButton(_AM_TDMCREATE_MODULES_LIST, 'modules.php?op=modules_list', 'list');
+ echo $modcreate_admin->renderButton();
+
+ $obj =& $modulesHandler->create();
+ $form = $obj->getForm();
+ break;
+ case "modules_edit":
+ $obj =& $modulesHandler->get($_REQUEST['modules_id']);
+ $form = $obj->getForm();
+ break;
+ case "modules_delete":
+ $obj =& $modulesHandler->get($_REQUEST['modules_id']);
+ if (isset($_REQUEST['ok']) && $_REQUEST['ok'] == 1)
+ {
+ if (!$GLOBALS['xoopsSecurity']->check()) {
+ redirect_header('modules.php', 3, implode(',', $GLOBALS['xoopsSecurity']->getErrors()));
+ }
+ if ($modulesHandler->delete($obj)) {
+ $xoopsDB->queryF("DELETE FROM ".$xoopsDB->prefix("tdmcreate_modules")." WHERE modules_id = ".$_REQUEST['modules_id']);
+ redirect_header('modules.php', 3, _AM_TDMCREATE_FORMDELOK);
+ } else {
+ echo $obj->getHtmlErrors();
+ }
+ } else {
+ xoops_confirm(array('ok' => 1, 'modules_id' => $_REQUEST['modules_id'], 'op' => 'modules_delete'), $_SERVER['REQUEST_URI'], sprintf(_AM_TDMCREATE_FORMSUREDEL, $obj->getVar('modules_name')));
+ }
+ break;
+ case "modules_list":
+ default:
+ $modcreate_admin = new ModuleAdmin();
+ echo $modcreate_admin->addNavigation('modules.php');
+ $modcreate_admin->addItemButton(_AM_TDMCREATE_MODULES_NEW, 'modules.php?op=modules_create', 'add');
+ echo $modcreate_admin->renderButton();
+
+ $criteria = new CriteriaCompo();
+ $criteria->setSort('modules_name');
+ $cri...
[truncated message content] |
|
From: <be...@us...> - 2012-01-30 09:42:43
|
Revision: 8835
http://xoops.svn.sourceforge.net/xoops/?rev=8835&view=rev
Author: beckmi
Date: 2012-01-30 09:42:33 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
Updating to 1.38 Beta 1 (Timgno)
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/const.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/filesmanager.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/menu.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/tables.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/tdmcreate_languages.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/tdmcreate_modules.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/tdmcreate_tables.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_admin_footer.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_admin_header.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_admin_language.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_architecture.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_blocks_language.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_include_functions.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_main_language.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_modinfo_language.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_xoopsversion.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/docs/changelog.txt
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/include/functions.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/include/functions_const.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/english/admin.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/english/modinfo.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/italian/admin.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/italian/modinfo.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/sql/mysql.sql
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/xoops_version.php
Added Paths:
-----------
XoopsModules/TDMCreate/branches/timgno/Frameworks/moduleclasses/icons/32/addmodule.png
XoopsModules/TDMCreate/branches/timgno/Frameworks/moduleclasses/icons/32/addtable.png
XoopsModules/TDMCreate/branches/timgno/Frameworks/moduleclasses/icons/32/builder.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/jquery.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/icons/loading.gif
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/ams_slogo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/feedsLogo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/gearthLogo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/gearth_slogo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/gviewLogo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/imprintLogo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/mytubeLogo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/partadsLogo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/passgenLogo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/radiostreamLogo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/videostreamLogo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/xnews_slogo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/xsitemapLogo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/ads.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/broken.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/cat.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/contact.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/feed.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/links.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/param.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/plugin.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/radio.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/shoutbox.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/topic.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/video.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/index.html
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/js/
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/js/filemanager.js
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/js/index.html
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/js/jqueryFileTree.js
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/update language 1.15 to 1.37.txt
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/update language 1.37 to 1.38.txt
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/templates/
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/templates/admin/
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/templates/admin/help.html
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/templates/admin/index.html
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/templates/admin/tdmcreate_filemanager.html
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/templates/blocks/
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/templates/blocks/index.html
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/templates/help/
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/templates/help/help.html
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/templates/help/index.html
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/templates/index.html
Removed Paths:
-------------
XoopsModules/TDMCreate/branches/timgno/Frameworks/moduleclasses/icons/16/
XoopsModules/TDMCreate/branches/timgno/Frameworks/moduleclasses/icons/32/file-manager.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/menu.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/logo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/update language 1.1 to 1.37.txt
Added: XoopsModules/TDMCreate/branches/timgno/Frameworks/moduleclasses/icons/32/addmodule.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/TDMCreate/branches/timgno/Frameworks/moduleclasses/icons/32/addmodule.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/TDMCreate/branches/timgno/Frameworks/moduleclasses/icons/32/addtable.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/TDMCreate/branches/timgno/Frameworks/moduleclasses/icons/32/addtable.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/TDMCreate/branches/timgno/Frameworks/moduleclasses/icons/32/builder.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/TDMCreate/branches/timgno/Frameworks/moduleclasses/icons/32/builder.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Deleted: XoopsModules/TDMCreate/branches/timgno/Frameworks/moduleclasses/icons/32/file-manager.png
===================================================================
(Binary files differ)
Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/const.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/const.php 2012-01-30 09:37:51 UTC (rev 8834)
+++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/const.php 2012-01-30 09:42:33 UTC (rev 8835)
@@ -22,8 +22,8 @@
include 'admin_header.php';
xoops_cp_header();
- $indexAdmin = new ModuleAdmin();
- echo $indexAdmin->addNavigation('const.php');
+$indexAdmin = new ModuleAdmin();
+echo $indexAdmin->addNavigation('const.php');
$op = TDMCreate_CleanVars($_REQUEST, 'op', 'default', 'string');
Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/filesmanager.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/filesmanager.php 2012-01-30 09:37:51 UTC (rev 8834)
+++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/filesmanager.php 2012-01-30 09:42:33 UTC (rev 8835)
@@ -36,54 +36,221 @@
* ****************************************************************************
*/
include 'admin_header.php';
-xoops_cp_header();
-
// Get Action type
$op = TDMCreate_CleanVars( $_REQUEST, 'op', 'default', 'string' );
+// Define main template
+$xoopsOption['template_main'] = 'tdmcreate_filemanager.html';
+// Call Header
+xoops_cp_header();
+$xoTheme->addScript('browse.php?Frameworks/jquery/plugins/jquery.ui.js');
+$xoTheme->addScript('browse.php?Frameworks/jquery/jquery.js');
+$xoTheme->addScript('modules/system/js/jquery.easing.js');
+$xoTheme->addScript('modules/TDMCreate/js/jqueryFileTree.js');
+$xoTheme->addScript('modules/TDMCreate/js/filemanager.js');
+// Define Stylesheet
+$xoTheme->addStylesheet( XOOPS_URL . '/modules/system/css/admin.css');
+$xoTheme->addStylesheet( XOOPS_URL . '/modules/system/css/code_mirror/docs.css');
+$xoTheme->addStylesheet( XOOPS_URL . '/modules/system/css/ui/' . xoops_getModuleOption('jquery_theme', 'system') . '/ui.all.css');
+
xoops_load('XoopsFile');
XoopsFile::load('file');
switch ($op) {
default:
-
-echo '<br class="clear" />
-<div class="spacer">
- <table class="outer ui-corner-all" cellspacing="1">
- <tr>
- <th>'._AM_TDMCREATE_YOUR_MODULES.'</th>
- <th> </th>
- </tr>
- <tr>
- <td class="aligntop width10"><div id="fileTree" class="display_folder"></div></td>
- <td class="aligntop">
- <div id="display_form"><{$form}></div>
- <div id="display_contenu"></div>
- <div id="display_message" class="txtcenter" style="display:none;"></div>
- <div id="loading" class="txtcenter" style="display:none;"><br /><br /><img src="images/loading.gif" title="Loading" alt="Loading" /></div>
- </td>
- </tr>
- </table>
-<br class="clear" />
-</div>';
+ $nbcolonnes_file = 4;
+ $width = 100/$nbcolonnes_file;
+ $root = XOOPS_ROOT_PATH.'/modules/TDMCreate/modules/';
+ $url_file = XOOPS_URL.'/modules/TDMCreate/modules/';
+ $xoopsTpl->assign('width', $width);
+ if( file_exists($root) )
+ {
+ $files = scandir($root);
+ natcasesort($files);
+ if( count($files) > 2 )
+ {
+ $count_file = 1;
+ $file_arr = array();
+ $edit = false;
+ // All files
+ foreach( $files as $file )
+ {
+ if (!preg_match('#.back#', $file))
+ {
+ if( file_exists($root . $file) && $file != '.' && $file != '..' && !is_dir($root . $file) )
+ {
+ $folder = XoopsFile::getHandler('file', $root.$file);
+ $extension_verif = $folder->ext();
+
+ switch ( $extension_verif ) {
+ case 'ico': case 'png': case 'gif': case 'jpg': case 'jpeg':
+ $extension_verif = 'picture';
+ break;
+ case 'html': case 'htm':
+ $extension_verif = 'html';
+ $edit = true;
+ break;
+ case 'zip': case 'rar': case 'tar': case 'gz':
+ $extension_verif = 'rar';
+ $edit = true;
+ $unzip = '<img class="cursorpointer" src="./images/icons/untar.png" onclick=\'filemanager_unzip_file("'.$path_file . $file.'", "'.$path_file.'", "'.$file.'");\' width="16" alt="edit" /> ';
+ break;
+ case 'css':
+ $extension_verif = 'css';
+ $edit = true;
+ break;
+ case 'avi': case 'mov': case 'real': case 'flv': case 'swf':
+ $extension_verif = 'movie';
+ break;
+ case 'log':
+ $extension_verif = 'log';
+ $edit = true;
+ break;
+ case 'php':
+ $extension_verif = 'php';
+ $edit = true;
+ break;
+ case 'info': case 'htaccess':
+ $extension_verif = 'info';
+ break;
+ case 'sql':
+ $extension_verif = 'sql';
+ $edit = true;
+ break;
+ default:
+ $extension_verif = 'file';
+ $edit = true;
+ break;
+ }
+
+ //Edit ?
+ $file_arr['edit'] = $edit;
+ //File
+ $file_arr['path_file'] = $root.$file;
+ $file_arr['path'] = $root;
+ //Chmod
+ $file_arr['chmod'] = substr($folder->perms(), 1);
+
+ $file_arr['chmod'] = modify_chmod($file_arr['chmod'], $file_arr['path_file'], $count_file);
+
+ if($extension_verif == 'picture') {
+ list($width, $height) = getimagesize($root . $file);
+ if($height > 60){
+ $file_arr['img'] = '<img src="'.$url_file.$file.'" height="47" title="" alt="" />';
+ } else {
+ $file_arr['img'] = '<img src="'.$url_file.$file.'" title="" alt="" />';
+ }
+ } else {
+ $file_arr['img'] = '<img src="'.XOOPS_URL.'/modules/system/images/mimetypes/'.$extension_verif.'_48.png" title="" alt="" />';
+ }
+ $file_arr['extension'] = $extension_verif;
+ $file_arr['file'] = htmlentities($file);
+ $count_file++;
+ $file_arr['newline'] = ($count_file % $nbcolonnes_file == 1) ? true : false;
+ $xoopsTpl->assign('newline', $file_arr['newline']);
+ $xoopsTpl->append('files', $file_arr);
+ }
+ $edit = false;
+ }
+ }
+ }
+ }
break;
//save
case 'filemanager_save':
-
+ //Save the file or restore file
+ if(isset($_REQUEST['path_file']))
+ {
+ //save file
+ $copy_file = $_REQUEST['path_file'];
+ copy($copy_file, $_REQUEST['path'].$_REQUEST['file'].'.back');
+ //Save modif
+ if(isset($_REQUEST['filemanager']))
+ {
+ $open = fopen("".$_REQUEST['path_file']."","w+");
+ if(!fwrite($open, utf8_encode(stripslashes($_REQUEST['filemanager']))))
+ {
+ redirect_header("filemanager.php", 2, _AM_TDMCREATE_FILEMANAGER_ERROR);
+ }
+ fclose($open);
+ }
+ redirect_header("filemanager.php", 2, _AM_TDMCREATE_DBUPDATED);
+ } else {
+ //restore
+ $old_file = $_REQUEST['path_file'].'.back';
+ //echo $old_file;
+ $new_file = $_REQUEST['path_file'];
+ //echo $new_file;
+ if(file_exists($old_file))
+ {
+ if(unlink($new_file))
+ {
+ if(rename($old_file, $new_file))
+ {
+ redirect_header("filemanager.php", 2, _AM_TDMCREATE_DBUPDATED);
+ }else{
+ redirect_header("filemanager.php", 2, _AM_TDMCREATE_FILEMANAGER_RESTORE_ERROR_FILE_RENAME);
+ }
+ }else{
+ redirect_header("filemanager.php", 2, _AM_TDMCREATE_FILEMANAGER_RESTORE_ERROR_FILE_DELETE);
+ }
+ }else{
+ redirect_header("filemanager.php", 2, _AM_TDMCREATE_FILEMANAGER_RESTORE_ERROR_FILE_EXISTS);
+ }
+ }
break;
case 'filemanager_upload_save':
-
- break;
+ if($_REQUEST['path'] != '') {
+ $path = trim($_REQUEST['path']);
+ } else {
+ $path = XOOPS_ROOT_PATH.'/';
+ }
+ include_once XOOPS_ROOT_PATH . '/class/uploader.php';
+ $mimetypes = include $GLOBALS['xoops']->path('include/mimetypes.inc.php');
+ $uploader = new XoopsMediaUploader( $path, $mimetypes, 500000);
+ if ($uploader->fetchMedia('upload_file')) {
+ if (!$uploader->upload()) {
+ $err[] = $uploader->getErrors();
+ }
+ }
+ if ( isset($err) ) {
+ foreach ( $err as $line ){
+ echo $line;
+ }
+ }
+ redirect_header("filemanager.php", 2, _AM_TDMCREATE_FILEMANAGER_UPLOAD_FILE);
+ break;
+
case 'filemanager_add_dir_save':
-
- break;
+ $path = TDMCreate_CleanVars ( $_REQUEST, 'path', XOOPS_ROOT_PATH . '/modules/TDMCreate/modules/', 'string' );
+ xoops_load('XoopsFile');
+ XoopsFile::load('folder');
+ $folder = XoopsFile::getHandler('folder');
+ if ($folder->create ($path . $_REQUEST['dir_name'], 0777)) {
+ $indexFile = XOOPS_ROOT_PATH."/modules/TDMCreate/index.html";
+ copy($indexFile, $path.$_REQUEST['dir_name']."/index.html");
+ redirect_header( 'filemanager.php', 2, _AM_TDMCREATE_FILEMANAGER_DIR_SUCCESS );
+ } else {
+ redirect_header( 'filemanager.php', 2, _AM_TDMCREATE_FILEMANAGER_DIR_ERROR );
+ }
+ break;
+
case 'filemanager_add_file_save':
-
- break;
+ $path = TDMCreate_CleanVars ( $_REQUEST, 'path', XOOPS_ROOT_PATH . '/', 'string' );
+ if ( $path == '' ) $path = XOOPS_ROOT_PATH . '/modules/TDMCreate/modules/';
+ $open = fopen($path . $_REQUEST['file_name'],"w+");
+ fclose($open);
+ redirect_header( 'filemanager.php', 2, _AM_TDMCREATE_FILEMANAGER_FILE_SUCCESS );
+ //if ($file->create ($path . $_REQUEST['file_name'])) {
+ // redirect_header( 'filemanager.php', 2, _AM_TDMCREATE_FILEMANAGER_DIR_SUCCESS );
+ //} else {
+ // redirect_header( 'filemanager.php', 2, _AM_TDMCREATE_FILEMANAGER_DIR_ERROR );
+ //}
+ break;
}
include "admin_footer.php";
\ No newline at end of file
Added: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/jquery.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/jquery.php (rev 0)
+++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/jquery.php 2012-01-30 09:42:33 UTC (rev 8835)
@@ -0,0 +1,472 @@
+<?php
+/**
+ * Filemanager settings
+ * jQuery File Tree PHP Connector
+ * Output a list of files for jQuery File Tree
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @author Maxime Cointin (AKA Kraven30)
+ * @package system
+ * @version $Id: jquery.php 8066 2011-11-06 05:09:33Z beckmi $
+ */
+
+// Require mainfile
+require '../../../../mainfile.php';
+// Check Xoops define
+if ( !defined('XOOPS_ROOT_PATH') ) die('XOOPS ROOT path not defined');
+error_reporting(0);
+$GLOBALS['xoopsLogger']->activated = false;
+// Include module functions
+include $GLOBALS['xoops']->path('modules/TDMCreate/include/functions.php');
+// Load language
+TDMCreate_loadLanguage('admin', 'TDMCreate');
+// Get Action type
+$op = TDMCreate_CleanVars ( $_REQUEST, 'op', 'filemanager_display_folder', 'string' );
+
+xoops_load('xoopsformloader');
+
+switch ($op) {
+
+ // Display files in tree
+ case 'filemanager_display_folder':
+
+ $_REQUEST['dir'] = urldecode($_REQUEST['dir']);
+ $root = XOOPS_ROOT_PATH.'/modules/TDMCreate/modules/';
+
+ if( file_exists($root . $_REQUEST['dir']) )
+ {
+ $files = scandir($root . $_REQUEST['dir']);
+ natcasesort($files);
+
+ if( count($files) > 2 ) { /* The 2 accounts for . and .. */
+ echo "<ul class=\"jqueryFileTree\" style=\"display: none;\">";
+ if ('/' == $_REQUEST['dir'])
+ echo "<a href=\"filemanager.php\"><strong>/</strong></a>";
+ // All dirs
+ foreach( $files as $file ) {
+ if( file_exists($root . $_REQUEST['dir'] . $file) && $file != '.' && $file != '..' && is_dir($root . $_REQUEST['dir'] . $file) ) {
+ //retirer .svn
+ $file_no_valid = array('.svn', 'conf', 'db', 'locks', 'hooks', 'cache', 'templates_c');
+
+ if(!in_array($file, $file_no_valid))
+ {
+ echo "<li class=\"directory collapsed\"><a href='".$_REQUEST['dir'] . $file."' rel=\"" . htmlentities($_REQUEST['dir'] . $file) . "/\">" . htmlentities($file) . "</a></li>";
+ }
+ }
+ }
+ echo "</ul>";
+ }
+ }
+ break;
+
+ // Display files
+ case 'filemanager_display_file':
+ $nbcolonnes_file = 4;
+ $width = 100/$nbcolonnes_file;
+ $_REQUEST['file'] = urldecode($_REQUEST['file']);
+ //For come back and display files
+ if ($_REQUEST['status'] == 1 ) {
+ $path_file = $_REQUEST['file'];
+ } else {
+ $file_arr = explode("/",$_REQUEST['file']);
+ $path_file = XOOPS_ROOT_PATH.'/modules/TDMCreate/modules/';
+ $url_file = XOOPS_URL.'/modules/TDMCreate/modules/';
+
+ for ($i=3 ; $i<count($file_arr) ; $i++ ) {
+ $path_file .= $file_arr[$i].'/modules/TDMCreate/modules/';
+ $url_file .= $file_arr[$i].'/modules/TDMCreate/modules/';
+ }
+ }
+
+ if( file_exists($path_file) ) {
+ $files = scandir($path_file);
+ natcasesort($files);
+ xoops_load('XoopsFile');
+ XoopsFile::load('file');
+ // The 2 accounts for . and ..
+ if( count($files) > 2 ) {
+ echo '
+ <div class="xo-btn-actions">
+ <div class="xo-buttons">
+ <button class="ui-corner-all tooltip" type="button" onclick="filemanager_load_tree();filemanager_display_file(\'\', 0)" title="'._AM_TDMCREATE_FILEMANAGER_HOME.'">
+ <img src="'.TDMCreate_AdminIcons('home.png').'" alt="'._AM_TDMCREATE_FILEMANAGER_HOME.'" />
+ </button>
+ <button class="ui-corner-all tooltip" onclick="filemanager_add_directory(\''.$path_file.'\')" title="'._AM_TDMCREATE_FILEMANAGER_ADDDIR.'">
+ <img src="'.TDMCreate_AdminIcons('folder_add.png').'" alt="'._AM_TDMCREATE_FILEMANAGER_ADDDIR.'" />
+ </button>';
+ $verif = true;
+ $protected = array('', 'class', 'Frameworks', 'images', 'include', 'kernel', 'language', 'modules', 'themes', 'uploads', 'xoops_lib', 'xoops_data' );
+ foreach ( $protected as $folder ) {
+ $root_path = XOOPS_ROOT_PATH . '/' . $folder.'/';
+ if (eregi($root_path, $path_file)) {
+ if ( ($root_path == $path_file) ) {
+ $verif = false;
+ }
+ }
+ if ( XOOPS_ROOT_PATH.'/' == $path_file ) {
+ $verif = false;
+ }
+ }
+ if( $verif ) {
+ echo '<button class="ui-corner-all tooltip" onclick="filemanager_confirm_delete_directory(\''.$path_file.'\')" title="'._AM_TDMCREATE_FILEMANAGER_DELDIR.'">
+ <img src="'.TDMCreate_AdminIcons('folder_delete.png').'" alt="'._AM_TDMCREATE_FILEMANAGER_DELDIR.'" />
+ </button>';
+ }
+ echo '<button class="ui-corner-all tooltip" onclick="filemanager_add_file(\''.$path_file.'\')" title="'._AM_TDMCREATE_FILEMANAGER_ADDFILE.'">
+ <img src="'.TDMCreate_AdminIcons('add.png').'" alt="'._AM_TDMCREATE_FILEMANAGER_ADDFILE.'" />
+ </button>
+ <button class="ui-corner-all tooltip" onclick="filemanager_upload(\''.$path_file.'\')" title="'._AM_TDMCREATE_FILEMANAGER_UPLOAD.'">
+ <img src="'.TDMCreate_AdminIcons('upload.png').'" alt="'._AM_TDMCREATE_FILEMANAGER_UPLOAD.'" />
+ </button>
+ </div>
+ <div class="clear"> </div>
+ </div>';
+ $count_file = 1;
+ // All files
+ echo '<table cellpadding="0" cellspacing="0" border="0" align="center">
+ <tr>
+ <td align="center" width="'.$width.'%" style="padding-bottom:12px">';
+ foreach( $files as $file )
+ {
+ if (!preg_match('#.back#', $file))
+ {
+ if( file_exists($path_file . $file) && $file != '.' && $file != '..' && !is_dir($path_file . $file) )
+ {
+ //echo $path_file . $file.'<br />';
+ $unzip = '';
+ $edit = false;
+ $file1 = XoopsFile::getHandler('file', $path_file . $file);
+ $extension_verif = $file1->ext();
+
+ switch ( $extension_verif ) {
+ case 'ico': case 'png': case 'gif': case 'jpg': case 'jpeg':
+ $extension_verif = 'picture';
+ break;
+ case 'html': case 'htm':
+ $extension_verif = 'html';
+ $edit = true;
+ break;
+ case 'zip': case 'rar': case 'tar': case 'gz':
+ $extension_verif = 'rar';
+ $edit = true;
+ $unzip = '<img class="cursorpointer" src="./images/icons/untar.png" onclick=\'filemanager_unzip_file("'.$path_file . $file.'", "'.$path_file.'", "'.$file.'");\' width="16" alt="edit" /> ';
+ break;
+ case 'css':
+ $extension_verif = 'css';
+ $edit = true;
+ break;
+ case 'avi': case 'mov': case 'real': case 'flv': case 'swf':
+ $extension_verif = 'movie';
+ break;
+ case 'log':
+ $extension_verif = 'log';
+ $edit = true;
+ break;
+ case 'php':
+ $extension_verif = 'php';
+ $edit = true;
+ break;
+ case 'info': case 'htaccess':
+ $extension_verif = 'info';
+ break;
+ case 'sql':
+ $extension_verif = 'sql';
+ $edit = true;
+ break;
+ default:
+ $extension_verif = 'file';
+ $edit = true;
+ break;
+ }
+ if($edit == true) {
+ $edit = '<img class="cursorpointer" src="'.TDMCreate_AdminIcons('edit.png').'" onclick=\'filemanager_edit_file("'.$path_file . $file.'", "'.$path_file.'", "'.$file.'", "'.$extension_verif.'");\' width="16" alt="edit" />';
+ } else {
+ $edit = '';
+ }
+ //Chmod
+ $chmod = substr($file1->perms(), 1);
+
+ $chmod = modify_chmod($chmod, $path_file.$file, $count_file);
+
+ //Img
+ if($extension_verif == 'picture') {
+ list($width, $height) = getimagesize($path_file . $file);
+ if($height > 60){
+ $img = '<img src="'.$url_file.$file.'" height="47" title="" alt="" />';
+ } else {
+ $img = '<img src="'.$url_file.$file.'" title="" alt="" />';
+ }
+ } else {
+ $img = '<img src="./images/mimetypes/'.$extension_verif.'_48.png" title="" alt="" />';
+ }
+ echo '<div style="border: 1px solid #cccccc;">
+ <table cellpadding="0" cellspacing="0">
+ <tr class="odd">
+ <td align="left">'.$chmod.'</td>
+ <td align="right">'.$unzip.$edit.' <img class="cursorpointer" src="'.TDMCreate_AdminIcons('delete.png').'" onclick=\'filemanager_confirm_delete_file("'.$path_file . $file.'", "'.$path_file.'");\' width="16" alt="delete" /></td>
+ </tr>
+ <tr>
+ <td colspan="2" align="center" height="60px"><br />'.$img.'</td>
+ </tr>
+ <tr>
+ <td colspan="2" align="center">'.$file.'<br /><br /></td>
+ </tr>
+ </table>
+ </div>
+ </td>';
+
+ $count_file++;
+ $newline = ($count_file % $nbcolonnes_file == 1) ? true : false;
+
+ if ($newline) {
+ echo '</tr><tr><td align="center" style="padding-bottom:12px">';
+ } else {
+ echo '<td align="center" style="padding-bottom:12px">';
+ }
+ }
+ }
+ }
+ echo '</tr></table>';
+ }
+ }
+ break;
+
+ //Edit file
+ case 'filemanager_edit_file':
+ $path_file = trim($_REQUEST['path_file']);
+
+ if($_REQUEST['path'] != '') {
+ $path = trim($_REQUEST['path']);
+ } else {
+ $path = XOOPS_ROOT_PATH.'/modules/TDMCreate/modules/';
+ }
+
+ //Button restore
+ if(file_exists($path_file.'.back')){
+ $restore = '<button class="ui-corner-all tooltip" type="button" onclick="filemanager_restore(\''.$path_file.'\')" value="'._AM_TDMCREATE_FILEMANAGER_RESTORE.'" title="'._AM_TDMCREATE_FILEMANAGER_RESTORE.'">
+ <img src="'.TDMCreate_AdminIcons('revert.png').'" alt="'._AM_TDMCREATE_FILEMANAGER_RESTORE.'" />
+ </button>';
+ }else{
+ $restore = '';
+ }
+ xoops_load('XoopsFile');
+ XoopsFile::load('file');
+
+ $file = XoopsFile::getHandler('file', $path_file);
+ $content = $file->read();
+ if(empty($content))
+ {
+ echo _AM_TDMCREATE_FILEMANAGER_EMPTY_FILE;
+ }
+
+ $ext = preg_replace('/^.*\./', '', $_REQUEST['file']);
+
+ echo '<form name="back" action="filemanager.php&op=filemanager_save" method="POST">
+ <table border="0">
+ <tr>
+ <td>
+ <div class="xo-btn-actions">
+ <div class="xo-buttons">
+ <button class="ui-corner-all tooltip" type="submit" value="'._AM_TDMCREATE_FILEMANAGER_SAVE.'" title="'._AM_TDMCREATE_FILEMANAGER_SAVE.'">
+ <img src="'.TDMCreate_AdminIcons('save.png').'" alt="'._AM_TDMCREATE_FILEMANAGER_SAVE.'" />
+ </button>
+ '.$restore.'
+ <button class="ui-corner-all tooltip" type="button" onclick="$(\'#edit_file\').fadeOut(\'fast\');$(\'#display_file\').fadeIn(\'fast\');" title="'._AM_TDMCREATE_FILEMANAGER_CANCEL.'">
+ <img src="'.TDMCreate_AdminIcons('cancel.png').'" alt="'._AM_TDMCREATE_FILEMANAGER_CANCEL.'" />
+ </button>
+ <div class="clear"></div>
+ </div>
+ </div>
+ </td>
+ </tr>
+ <tr><td>
+ <textarea id="code_mirror" name="filemanager" rows=24 cols=110>'.$content.'</textarea>
+ </td></tr>
+ </table>';
+ echo '<input type="hidden" name="path_file" value="'.$path_file.'"><input type="hidden" name="path" value="'.$path.'"><input type="hidden" name="file" value="'.trim($_REQUEST['file']).'"><input type="hidden" name="ext" value="'.$ext.'"></form>';
+ break;
+
+ case 'filemanager_unzip_file':
+ $path_file = trim($_REQUEST['path_file']);
+
+ if($_REQUEST['path'] != '') {
+ $path = trim($_REQUEST['path']);
+ } else {
+ $path = XOOPS_ROOT_PATH.'/';
+ }
+ $file = $_REQUEST['file'];
+
+ xoops_load('pclzip','system');
+ xoops_load('pcltar','system');
+ xoops_load('XoopsFile');
+ XoopsFile::load('file');
+ $file1 = XoopsFile::getHandler('file', $path_file );
+ $extension = $file1->ext();
+ switch ( $extension ) {
+ case 'zip':
+ $archive = new PclZip( $path_file );
+ if ($archive->extract(PCLZIP_OPT_PATH, $path) == 0) {
+ xoops_error( _AM_TDMCREATE_FILEMANAGER_EXTRACT_ERROR );
+ } else {
+ xoops_result( _AM_TDMCREATE_FILEMANAGER_EXTRACT_FILE );
+ }
+ break;
+ case 'tar': case 'gz':
+ PclTarExtract( $path_file, $path );
+ break;
+ }
+
+ break;
+
+ //Confirm delete file
+ case 'filemanager_confirm_delete_file':
+ echo '<div class="confirmMsg">'.sprintf(_AM_TDMCREATE_FILEMANAGER_SUREDEL, $_REQUEST['file']).'<br /><br /><div class="buttons"><a href="#" class="ui-corner-all" onclick="filemanager_delete_file(\''.$_REQUEST['path_file'].'\', \''.$_REQUEST['path'].'\');">'._AM_TDMCREATE_FILEMANAGER_DELETE.'</a> <a href="#" class="ui-corner-all" onclick="$(\'#confirm_delete\').hide();filemanager_load_tree(); filemanager_display_file(\'\', 0)">'._AM_TDMCREATE_FILEMANAGER_CANCEL.'</a></div></div>';
+ break;
+
+ //Delete one file
+ case 'filemanager_delete_file':
+ xoops_load('XoopsFile');
+ XoopsFile::load('file');
+ $file = XoopsFile::getHandler('file', $_REQUEST['path_file']);
+ if(!$file->delete())
+ {
+ xoops_error(_AM_TDMCREATE_FILEMANAGER_ERROR);
+ } else {
+ xoops_result(_AM_TDMCREATE_FILEMANAGER_DELETE_FILE);
+ }
+ break;
+
+ case 'filemanager_upload':
+
+ if($_REQUEST['path'] != '') {
+ $path = trim($_REQUEST['path']);
+ } else {
+ $path = XOOPS_ROOT_PATH.'/';
+ }
+
+ xoops_load('xoopsformloader');
+
+ $form = new XoopsThemeForm( '', 'upload_form', 'filemanager.php', "post", true);
+ $form->setExtra('enctype="multipart/form-data"');
+ $form->addElement( new XoopsFormFile( _AM_TDMCREATE_FILEMANAGER_UPLOAD_CHOOSE, 'upload_file', 500000), false );
+ $form->addElement( new XoopsFormHidden( 'op', 'filemanager_upload_save') );
+ $form->addElement( new XoopsFormHidden( 'path', $path));
+ $form->addElement( new XoopsFormButton( '', 'up_button', _SUBMIT, 'submit'));
+ echo $form->render();
+ break;
+
+ case 'filemanager_add_dir':
+ if($_REQUEST['path'] != '') {
+ $path = trim($_REQUEST['path']);
+ } else {
+ $path = XOOPS_ROOT_PATH.'/';
+ }
+
+ $form = new XoopsThemeForm( '', 'newdir_form', 'filemanager.php', "post", true);
+ $form->setExtra('enctype="multipart/form-data"');
+ $form->addElement( new XoopsFormText( _AM_TDMCREATE_FILEMANAGER_ADDDIR_NAME, 'dir_name', 50, 255), true );
+ $form->addElement( new XoopsFormHidden( 'op', 'filemanager_add_dir_save') );
+ $form->addElement( new XoopsFormHidden( 'path', $path));
+ $form->addElement( new XoopsFormButton( '', 'dir_button', _SUBMIT, 'submit'));
+ echo $form->render();
+ break;
+
+ //Confirm delete directory
+ case 'filemanager_confirm_delete_directory':
+ $path = system_CleanVars ( $_REQUEST, 'path', '', 'string' );
+ echo '<div class="confirmMsg">'.sprintf(_AM_TDMCREATE_FILEMANAGER_DIR_SUREDEL, $path).'<br /><br /><div class="buttons"><a href="#" class="ui-corner-all" onclick="filemanager_delete_directory(\''.$path.'\');">'._AM_TDMCREATE_FILEMANAGER_DELETE.'</a> <a href="#" class="ui-corner-all" onclick="$(\'#confirm_delete\').hide();filemanager_load_tree(); filemanager_display_file(\'\', 0)">'._AM_TDMCREATE_FILEMANAGER_CANCEL.'</a></div></div>';
+ break;
+
+ // Delete one directory
+ case 'filemanager_delete_directory':
+ $path = system_CleanVars ( $_REQUEST, 'path', '', 'string' );
+
+ function deltree($dossier){
+ if(($dir=opendir($dossier))===false)
+ return;
+
+ while($name=readdir($dir)){
+ if($name==='.' or $name==='..')
+ continue;
+ $full_name=$dossier.'/'.$name;
+
+ if(is_dir($full_name))
+ deltree($full_name);
+ else unlink($full_name);
+ }
+ closedir($dir);
+ @rmdir($dossier);
+ return true;
+ }
+
+ if(deltree($_REQUEST['path'])) {
+ xoops_result(_AM_TDMCREATE_FILEMANAGER_DELDIR_OK);
+ } else {
+ xoops_error(_AM_TDMCREATE_FILEMANAGER_DELDIR_NOTOK);
+ }
+ break;
+
+ case 'filemanager_add_file':
+ if($_REQUEST['path'] != '') {
+ $path = trim($_REQUEST['path']);
+ } else {
+ $path = XOOPS_ROOT_PATH.'/modules/TDMCreate/modules/';
+ }
+
+ $form = new XoopsThemeForm( '', 'newdir_form', 'filemanager.php', "post", true);
+ $form->setExtra('enctype="multipart/form-data"');
+ $form->addElement( new XoopsFormText( _AM_TDMCREATE_FILEMANAGER_ADDFILE, 'file_name', 50, 255), true );
+ $form->addElement( new XoopsFormHidden( 'op', 'filemanager_add_file_save') );
+ $form->addElement( new XoopsFormHidden( 'path', $path));
+ $form->addElement( new XoopsFormButton( '', 'dir_button', _SUBMIT, 'submit'));
+ echo $form->render();
+ break;
+ break;
+
+ case 'filemanager_modify_chmod':
+
+ if($_REQUEST['path_file'] != '') {
+ $path = trim($_REQUEST['path_file']);
+ } else {
+ $path = XOOPS_ROOT_PATH.'/modules/TDMCreate/modules/';
+ }
+
+ if(chmod($path,'0'.$_REQUEST['chmod'])) {
+ $new_chmod = modify_chmod($_REQUEST['chmod'], $path, $_REQUEST['id']);
+ echo $new_chmod;
+ }
+ //echo $_REQUEST['chmod'];
+ break;
+
+ //Restore
+ case 'filemanager_restore':
+ $old_file = $_REQUEST['path_file'].'.back';
+ $new_file = $_REQUEST['path_file'];
+ if(file_exists($old_file))
+ {
+ if(unlink($new_file))
+ {
+ if(rename($old_file, $new_file))
+ {
+ //redirect_header("admin.php?fct=tplsets", 2, _AM_TDMCREATE_DBUPDATED);
+ }else{
+ //redirect_header("admin.php?fct=tplsets", 2, _AM_TDMCREATE_TEMPLATES_RESTORE_ERROR_FILE_RENAME);
+ }
+ }else{
+ //redirect_header("admin.php?fct=tplsets", 2, _AM_TDMCREATE_TEMPLATES_RESTORE_ERROR_FILE_DELETE);
+ }
+ }else{
+ //redirect_header("admin.php?fct=tplsets", 2, _AM_TDMCREATE_TEMPLATES_RESTORE_ERROR_FILE_EXISTS);
+ }
+ break;
+}
+
+?>
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/menu.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/menu.php 2012-01-30 09:37:51 UTC (rev 8834)
+++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/menu.php 2012-01-30 09:42:33 UTC (rev 8835)
@@ -54,12 +54,12 @@
$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMENU2;
//$adminmenu[$i]["desc"] = _MI_TDMCREATE_ADMENU2_DESC
$adminmenu[$i]["link"] = "admin/modules.php";
-$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/add.png";
+$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/addmodule.png";
$i++;
$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMENU3;
//$adminmenu[$i]["desc"] = _MI_TDMCREATE_ADMENU3_DESC
$adminmenu[$i]["link"] = "admin/tables.php";
-$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/index.png";
+$adminmenu[$i]["icon"] = "../../".$pathImageAdmin."/addtable.png";
$i++;
$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMENU4;
//$adminmenu[$i]["desc"] = _MI_TDMCREATE_ADMENU4_DESC
@@ -69,7 +69,7 @@
$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMENU5;
//$adminmenu[$i]["desc"] = _MI_TDMCREATE_ADMENU5_DESC
$adminmenu[$i]["link"] = 'admin/const.php';
-$adminmenu[$i]["icon"] = '../../'.$pathImageAdmin.'/modifiedlink.png';
+$adminmenu[$i]["icon"] = '../../'.$pathImageAdmin.'/builder.png';
$i++;
$adminmenu[$i]["title"] = _MI_TDMCREATE_ADMENU6;
//$adminmenu[$i]["desc"] = _MI_TDMCREATE_ADMENU6_DESC
Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/tables.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/tables.php 2012-01-30 09:37:51 UTC (rev 8834)
+++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/tables.php 2012-01-30 09:42:33 UTC (rev 8835)
@@ -49,18 +49,22 @@
{
$obj->setVar('tables_module_table', strtolower($modules_name.'_topic'));
$obj->setVar('tables_name', 'topic');
- $obj->setVar('tables_blocs', 0);
- $obj->setVar('tables_display_admin', 1);
- $obj->setVar('tables_display_user', 1);
+ $obj->setVar('tables_blocks', 0);
+ $obj->setVar('tables_display_admin', 0);
+ $obj->setVar('tables_display_user', 0);
$obj->setVar('tables_submitter', 0);
- $obj->setVar('tables_date_created', 0);
+ $obj->setVar('tables_publisher', 0);
+ $obj->setVar('tables_created', 0);
+ $obj->setVar('tables_published', 0);
+ $obj->setVar('tables_expired', 0);
+ $obj->setVar('tables_status', 0);
$obj->setVar('tables_online', 0);
$obj->setVar('tables_search', 0);
$obj->setVar('tables_coms', 0);
$obj->setVar('tables_nb_champs', 7);
$tables_champs = 'topic_id:int:11:unsigned:NOT NULL: :|topic_pid:int:5:unsigned:NOT NULL:0:|topic_title:varchar:255: :NOT NULL: :|topic_desc:text: : :NOT NULL: :|topic_img:varchar:255: :NOT NULL: :|topic_weight:int:5: :NOT NULL:0:|topic_color:varchar:10: :NULL: :';
- $tables_parametres = 'XoopsFormTopic:0:0:0:0:0:0|XoopsFormText:1:1:0:1:0:1|XoopsFormTextArea:0:1:0:0:0:1|XoopsFormUploadImage:1:1:0:0:0:0|XoopsFormText:1:1:0:0:0:1|XoopsFormColorPicker:1:1:0:0:0:0|XoopsFormSelectBox:0:0:0:0:0:1|XoopsFormSelectUser:0:0:0:0:0:1|XoopsFormTextDateSelect:0:0:0:0:0:1|XoopsFormCheckBox:1:1:0:0:0:1';
+ $tables_parametres = 'XoopsFormTopic:0:0:0:0:0:0|XoopsFormText:1:1:0:1:0:1|XoopsFormTextArea:0:1:0:0:0:1|XoopsFormUploadImage:1:1:0:0:0:0|XoopsFormText:1:1:0:0:0:1|XoopsFormColorPicker:1:1:0:0:0:0|XoopsFormSelect:0:0:0:0:0:0|XoopsFormSelectUser:0:0:0:0:0:1|XoopsFormTextDateSelect:0:0:0:0:0:1|XoopsFormCheckBox:1:1:0:0:0:1';
//Image
include_once XOOPS_ROOT_PATH.'/class/uploader.php';
@@ -91,11 +95,15 @@
$obj->setVar('tables_module_table', strtolower($modules_name.'_'.$_REQUEST['tables_name']));
$obj->setVar('tables_name', strtolower($_REQUEST['tables_name']));
- $obj->setVar('tables_blocs', $_REQUEST['tables_blocs']);
+ $obj->setVar('tables_blocks', $_REQUEST['tables_blocks']);
$obj->setVar('tables_display_admin', $_REQUEST['tables_display_admin']);
$obj->setVar('tables_display_user', $_REQUEST['tables_display_user']);
$obj->setVar('tables_submitter', $_REQUEST['tables_submitter']);
- $obj->setVar('tables_date_created', $_REQUEST['tables_date_created']);
+ $obj->setVar('tables_publisher', $_REQUEST['tables_publisher']);
+ $obj->setVar('tables_created', $_REQUEST['tables_created']);
+ $obj->setVar('tables_published', $_REQUEST['tables_published']);
+ $obj->setVar('tables_expired', $_REQUEST['tables_expired']);
+ $obj->setVar('tables_status', $_REQUEST['tables_status']);
$obj->setVar('tables_online', $_REQUEST['tables_online']);
$obj->setVar('tables_search', $_REQUEST['tables_search']);
$obj->setVar('tables_coms', $_REQUEST['tables_coms']);
@@ -107,7 +115,7 @@
{
//Rajouts des parametres: text:on:off: ...
if ( $i != 0 ) {
- $tables_parametres .= ( !empty($_REQUEST['champs_param_elements'][$i]) ) ? "".$_REQUEST['champs_param_elements'][$i].":" : " :";
+ $tables_parametres .= ( !empty($_REQUEST['champs_param_elements'][$i]) ) ? $_REQUEST['champs_param_elements'][$i].":" : " :";
$tables_parametres .= ( !empty($_REQUEST['champs_param_display_admin'][$i]) ) ? "1:" : "0:";
$tables_parametres .= ( !empty($_REQUEST['champs_param_display_user'][$i]) ) ? "1:" : "0:";
$tables_parametres .= ( !empty($_REQUEST['champs_param_display_blocks'][$i]) ) ? "1:" : "0:";
@@ -117,21 +125,37 @@
}
//Rajouts des champs: test:int:4: ...
- $tables_champs .= (!empty($_REQUEST['champs_name'][$i])) ? "".$_REQUEST['champs_name'][$i].":" : " :";
- $tables_champs .= (!empty($_REQUEST['champs_type'][$i])) ? "".$_REQUEST['champs_type'][$i].":" : " :";
- $tables_champs .= (!empty($_REQUEST['champs_valeur'][$i])) ? "".$_REQUEST['champs_valeur'][$i].":" : " :";
- $tables_champs .= (!empty($_REQUEST['champs_attributs'][$i])) ? "".$_REQUEST['champs_attributs'][$i].":" : " :";
- $tables_champs .= (!empty($_REQUEST['champs_null'][$i])) ? "".strtoupper($_REQUEST['champs_null'][$i]).":" : " :";
- $tables_champs .= (!empty($_REQUEST['champs_default'][$i])) ? "".$_REQUEST['champs_default'][$i].":" : " :";
- $tables_champs .= (!empty($_REQUEST['champs_clef'][$i])) ? "".$_REQUEST['champs_clef'][$i]."" : " ";
+ $tables_champs .= (!empty($_REQUEST['champs_name'][$i])) ? $_REQUEST['champs_name'][$i].":" : " :";
+ $tables_champs .= (!empty($_REQUEST['champs_type'][$i])) ? $_REQUEST['champs_type'][$i].":" : " :";
+ $tables_champs .= (!empty($_REQUEST['champs_valeur'][$i])) ? $_REQUEST['champs_valeur'][$i].":" : " :";
+ $tables_champs .= (!empty($_REQUEST['champs_attributs'][$i])) ? $_REQUEST['champs_attributs'][$i].":" : " :";
+ $tables_champs .= (!empty($_REQUEST['champs_null'][$i])) ? strtoupper($_REQUEST['champs_null'][$i]).":" : " :";
+ $tables_champs .= (!empty($_REQUEST['champs_default'][$i])) ? $_REQUEST['champs_default'][$i].":" : " :";
+ $tables_champs .= (!empty($_REQUEST['champs_clef'][$i])) ? $_REQUEST['champs_clef'][$i]."" : " ";
//Coupure entre les champs et coupre entre les parametres
if ( $i != $_REQUEST['tables_nb_champs'] - 1) {
$tables_champs .= '|';
if ( $i != 0 )
$tables_parametres .= '|';
- } else {
- $tables_parametres .= '|XoopsFormSelectBox:1:1:1:0:0:1|XoopsFormSelectUser:1:1:1:0:0:1|XoopsFormTextDateSelect:1:1:1:0:0:1|XoopsFormCheckBox:1:1:1:0:0:1';
+ } else {
+ // Options Extra Champs
+ if ( isset($_REQUEST['tables_submitter']) == 1 )
+ $tables_champs .= '|'.strtolower($_REQUEST['tables_name']).'_submitter:int:11: :NOT NULL:0:';
+ if ( isset($_REQUEST['tables_publisher']) == 1 )
+ $tables_champs .= '|'.strtolower($_REQUEST['tables_name']).'_publisher:text: :NOT NULL: :';
+ if ( isset($_REQUEST['tables_created']) == 1 )
+ $tables_champs .= '|'.strtolower($_REQUEST['tables_name']).'_created:int:10: :NOT NULL:0:';
+ if ( isset($_REQUEST['tables_published']) == 1 )
+ $tables_champs .= '|'.strtolower($_REQUEST['tables_name']).'_published:int:10: :NOT NULL:0:';
+ if ( isset($_REQUEST['tables_expired']) == 1 )
+ $tables_champs .= '|'.strtolower($_REQUEST['tables_name']).'_expired:int:10: :NOT NULL:0:';
+ if ( isset($_REQUEST['tables_status']) == 1 )
+ $tables_champs .= '|'.strtolower($_REQUEST['tables_name']).'_status:tinyint:2: :NOT NULL:0:';
+ if ( isset($_REQUEST['tables_online']) == 1 )
+ $tables_champs .= '|'.strtolower($_REQUEST['tables_name']).'_online:tinyint:1: :NOT NULL:0:';
+ // Parameters
+ $tables_parametres .= '|XoopsFormSelect:1:1:1:0:0:1|XoopsFormSelectUser:1:1:1:0:0:1|XoopsFormTextDateSelect:1:1:1:0:0:1|XoopsFormCheckBox:1:1:1:0:0:1';
}
}
}
@@ -160,11 +184,15 @@
$modules =& $modulesHandler->get($_REQUEST['tables_modules']);
$modules_name = $modules->getVar('modules_name');
- $tables_blocks = (isset($_REQUEST['tables_blocs'])) ? $_REQUEST['tables_blocs'] : '0';
+ $tables_blocks = (isset($_REQUEST['tables_blocks'])) ? $_REQUEST['tables_blocks'] : '0';
$tables_display_admin = (isset($_REQUEST['tables_display_admin'])) ? $_REQUEST['tables_display_admin'] : '0';
$tables_display_user = (isset($_REQUEST['tables_display_user'])) ? $_REQUEST['tables_display_user'] : '0';
$tables_submitter = (isset($_REQUEST['tables_submitter'])) ? $_REQUEST['tables_submitter'] : '0';
- $tables_date_created = (isset($_REQUEST['tables_date_created'])) ? $_REQUEST['tables_date_created'] : '0';
+ $tables_publisher = (isset($_REQUEST['tables_publisher'])) ? $_REQUEST['tables_publisher'] : '0';
+ $tables_created = (isset($_REQUEST['tables_created'])) ? $_REQUEST['tables_created'] : '0';
+ $tables_published = (isset($_REQUEST['tables_published'])) ? $_REQUEST['tables_published'] : '0';
+ $tables_expired = (isset($_REQUEST['tables_expired'])) ? $_REQUEST['tables_expired'] : '0';
+ $tables_status = (isset($_REQUEST['tables_status'])) ? $_REQUEST['tables_status'] : '0';
$tables_online = (isset($_REQUEST['tables_online'])) ? $_REQUEST['tables_online'] : '0';
$tables_search = (isset($_REQUEST['tables_search'])) ? $_REQUEST['tables_search'] : '0';
$tables_coms = (isset($_REQUEST['tables_coms'])) ? $_REQUEST['tables_coms'] : '0';
@@ -197,11 +225,15 @@
$obj->setVar('tables_modules', strtolower($_REQUEST['tables_modules']));
$obj->setVar('tables_module_table', strtolower($modules_name.'_'.$_REQUEST['tables_name']));
$obj->setVar('tables_name', strtolower($_REQUEST['tables_name']));
- $obj->setVar('tables_blocs', $_REQUEST['tables_blocs']);
+ $obj->setVar('tables_blocks', $_REQUEST['tables_blocks']);
$obj->setVar('tables_display_admin', $_REQUEST['tables_display_admin']);
$obj->setVar('tables_display_user', $_REQUEST['tables_display_user']);
$obj->setVar('tables_submitter', $_REQUEST['tables_submitter']);
- $obj->setVar('tables_date_created', $_REQUEST['tables_date_created']);
+ $obj->setVar('tables_publisher', $_REQUEST['tables_publisher']);
+ $obj->setVar('tables_created', $_REQUEST['tables_created']);
+ $obj->setVar('tables_published', $_REQUEST['tables_published']);
+ $obj->setVar('tables_expired', $_REQUEST['tables_expired']);
+ $obj->setVar('tables_status', $_REQUEST['tables_status']);
$obj->setVar('tables_online', $_REQUEST['tables_online']);
//mettre des isset pour search
if ( isset($_REQUEST['tables_search']) )
@@ -346,11 +378,15 @@
} else {
$obj =& $tablesHandler->create();
}
- $tables_blocks = (isset($_REQUEST['tables_blocs'])) ? $_REQUEST['tables_blocs'] : '0';
+ $tables_blocks = (isset($_REQUEST['tables_blocks'])) ? $_REQUEST['tables_blocks'] : '0';
$tables_display_admin = (isset($_REQUEST['tables_display_admin'])) ? $_REQUEST['tables_display_admin'] : '0';
$tables_display_user = (isset($_REQUEST['tables_display_user'])) ? $_REQUEST['tables_display_user'] : '0';
$tables_submitter = (isset($_REQUEST['tables_submitter'])) ? $_REQUEST['tables_submitter'] : '0';
- $tables_date_created = (isset($_REQUEST['tables_date_created'])) ? $_REQUEST['tables_date_created'] : '0';
+ $tables_publisher = (isset($_REQUEST['tables_publisher'])) ? $_REQUEST['tables_publisher'] : '0';
+ $tables_created = (isset($_REQUEST['tables_created'])) ? $_REQUEST['tables_created'] : '0';
+ $tables_published = (isset($_REQUEST['tables_published'])) ? $_REQUEST['tables_published'] : '0';
+ $tables_expired = (isset($_REQUEST['tables_expired'])) ? $_REQUEST['tables_expired'] : '0';
+ $tables_status = (isset($_REQUEST['tables_status'])) ? $_REQUEST['tables_status'] : '0';
$tables_online = (isset($_REQUEST['tables_online'])) ? $_REQUEST['tables_online'] : '0';
$tables_search = (isset($_REQUEST['tables_search'])) ? $_REQUEST['tables_search'] : '0';
$tables_coms = (isset($_REQUEST['tables_coms'])) ? $_REQUEST['tables_coms'] : '0';
@@ -383,7 +419,7 @@
if ($tablesHandler->insert($obj)) {
$tables_id = $xoopsDB->getInsertId();
$obj = $tablesHandler->get($tables_id);
- $form = $obj->getFormChamps(false, $tables_id, intval($_REQUEST['tables_modules']), strtolower($_REQUEST['tables_name']), $tables_blocks, $tables_display_admin, $tables_display_user, $tables_submitter, $tables_date_created, $tables_online, $tables_search, $tables_coms, intval($_REQUEST['tables_nb_champs']), $select);
+ $form = $obj->getFormChamps(false, $tables_id, intval($_REQUEST['tables_modules']), strtolower($_REQUEST['tables_name']), $tables_blocks, $tables_display_admin, $tables_display_user, $tables_submitter, $tables_publisher, $tables_created, $tables_published, $tables_expired, $tables_status, $tables_online, $tables_search, $tables_coms, intval($_REQUEST['tables_nb_champs']), $select);
}
} else {
redirect_header('tables.php?op=list_tables', 2, _AM_TDMCREATE_TABLES_EXIST);
Deleted: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/menu.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/menu.php 2012-01-30 09:37:51 UTC (rev 8834)
+++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/menu.php 2012-01-30 09:42:33 UTC (rev 8835)
@@ -1,205 +0,0 @@
-<?php
-/**
- * ****************************************************************************
- * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
- * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
- *
- * Cette licence, contient des limitations!!!
- *
- * You may not change or alter any portion of this comment or credits
- * of supporting developers from this source code or any supporting source code
- * which is considered copyrighted (c) material of the original comment or credit authors.
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- * @license TDM GPL license
- * @author TDM TEAM DEV MODULE
- *
- * ****************************************************************************
- */
-
-class TDMCreateMenu
-{
- public $Width = 80;
- public $Height = 85;
- public $BgColor = 'transparent';
- public $OverBgColor = '#FFF6C1';
- public $BorderWidth = 1;
- public $BorderColor = '#CCCCCC';
- public $OverBorderColor = '#FF9900';
- public $BorderStyle = 'solid';
- public $OverBorderStyle = 'solid';
- public $Font = 'Tahoma, Arial, Helvetica';
- public $FontColor = '#666666';
- public $OverFontColor = '#1E90FF';
- public $FontDeco = 'none';
- public $OverFontDeco = 'none';
- public $FontSize = 11;
- public $FontWeight = 'bold';
- public $FontExtra = 'Tahoma, Arial, Helvetica';
- public $FontExtraColor = '#A98952';
- public $OverFontExtraColor = '#0033FF';
- public $FontExtraDeco = 'underline';
- public $OverFontExtraDeco = 'underline';
- public $FontExtraSize = 9;
- public $FontExtraWeight = 'normal';
- public $TextAlign = 'center';
- private $_items = array();
-
- public function addItem($id, $link='', $icon='', $name='', $extra='', $alt=''){
- if (isset($this->_items[$id])) return false;
- $rtn['link'] = $link;
- $rtn['icon'] = $icon;
- $rtn['name'] = $name;
- $rtn['extra'] = $extra;
- $rtn['alt'] = $alt;
- $this->_items[$id] = $rtn;
- return true;
- }
-
- public function setLink($id, $link){
- if (isset($this->_items[$id])){
- $this->_items[$id]['link'] = $link;
- return true;
- } else {
- return false;
- }
- }
-
- public function setIcon($id, $icon){
- if (isset($this->_items[$id])){
- $this->_items[$id]['icon'] = $icon;
- return true;
- } else {
- return false;
- }
- }
-
- public function setName($id, $name){
- if (isset($this->_items[$id])){
- $this->_items[$id]['name'] = $name;
- return true;
- } else {
- return false;
- }
- }
-
- public function setExtra($id, $extra){
- if (isset($this->_items[$id])){
- $this->_items[$id]['extra'] = $extra;
- return true;
- } else {
- return false;
- }
- }
-
- public function setAlt($id, $alt){
- if (isset($this->_items[$id])){
- $this->_items[$id]['alt'] = $alt;
- return true;
- } else {
- return false;
- }
- }
-
- public function getCSS($ws = true){
- if ($ws) $csscode = "<style type=\"text/css\">\n<!--";
- $csscode .= "div.rmmenuicon{
- margin: 3px;
- font-family: $this->Font;
- text-align: ".$this->TextAlign.";
- }
- div.rmmenuicon a {
- display: block; float: left;
- height: ".$this->Height."px !important;
- height: ".$this->Height."px;
- width: ".$this->Width."px !important;
- width: ".$this->Width."px;
- vertical-align: middle;
- text-decoration : none;
- border: ".$this->BorderWidth."px $this->BorderStyle $this->BorderColor;
- padding: 2px 5px 1px 5px;
- margin: 3px;
- color: $this->FontColor;
-
-
- background-color: #f0f0f0;
- -moz-border-radius: 6px;
- -webkit-border-radius: 6px;
- -khtml-border-radius: 6px;
- border-radius: 6px;
- }
- div.rmmenuicon img { margin-top: 8px; margin-bottom: 8px; }
- div.rmmenuicon a span {
- font-size: ".$this->FontSize."px;
- font-weight: $this->FontWeight;
- display: block;
- }
- div.rmmenuicon a span.uno{
- font-size: ".$this->FontExtraSize."px;
- font-weight: $this->FontExtraWeight;
- text-decoration: $this->FontExtraDeco;
- color: $this->FontExtraColor;
- }
- div.rmmenuicon a:hover{
- background-color: $this->OverBgColor;
- border: ".$this->BorderWidth."px $this->BorderStyle $this->OverBorderColor;
- color: $this->OverFontColor;
- }
- div.rmmenuicon a:hover span{
- text-decoration: $t...
[truncated message content] |
|
From: <be...@us...> - 2012-01-30 09:38:05
|
Revision: 8834
http://xoops.svn.sourceforge.net/xoops/?rev=8834&view=rev
Author: beckmi
Date: 2012-01-30 09:37:51 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
Updating to 1.38 Alpha 5
Modified Paths:
--------------
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/const.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/filesmanager.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/tables.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/tdmcreate_modules.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/tdmcreate_tables.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_admin_language.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_include_search.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_main_language.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_modinfo_language.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_xoopsversion.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/arabic/modinfo.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/bulgarian/modinfo.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/english/modinfo.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/french/modinfo.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/italian/admin.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/italian/modinfo.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/xoops_version.php
Added Paths:
-----------
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/menu.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_about_language.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_class_admin.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_css_admin.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_templates_pages.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/logo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/arabic/help/
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/arabic/help/help.html
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/arabic/help/index.html
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/arabic/help.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/bulgarian/help/
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/bulgarian/help/help.html
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/bulgarian/help/index.html
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/bulgarian/help.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/english/help.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/french/help/
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/french/help/help.html
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/french/help/index.html
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/french/help.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/italian/help.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/language/update language 1.1 to 1.37.txt
Removed Paths:
-------------
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/object.php
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/feedsLogo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/gviewLogo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/passgenLogo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/radiostreamLogo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/modules/videostreamLogo.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/broken.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/cat.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/contact.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/feed.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/links.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/param.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/radio.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/shoutbox.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/topic.png
XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/images/uploads/tables/video.png
Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/const.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/const.php 2012-01-30 07:29:44 UTC (rev 8833)
+++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/const.php 2012-01-30 09:37:51 UTC (rev 8834)
@@ -27,28 +27,25 @@
$op = TDMCreate_CleanVars($_REQUEST, 'op', 'default', 'string');
-//Nom du module
-$modules =& $modulesHandler->get($_REQUEST['modules_name']);
-$modules_name = $modules->getVar('modules_name');
-$modules_desc = $modules->getVar('modules_description');
-$modules_author_website_name = $modules->getVar('modules_author_website_name');
-$modules_author_website_url = $modules->getVar('modules_author_website_url');
-$modules_image = $modules->getVar('modules_image');
-
-//Nom des tables et combien de tables
-$criteria = new CriteriaCompo();
-$criteria->add(new Criteria('tables_modules', $_REQUEST['modules_name']));
-$nb_tables = $tablesHandler->getCount($criteria);
-$tables_arr = $tablesHandler->getall($criteria);
-
$modPath = XOOPS_ROOT_PATH.'/modules/TDMCreate';
switch ($op) {
case "creation":
-
+ $modules =& $modulesHandler->get($_REQUEST['modules_name']);
+ $modules_name = $modules->getVar('modules_name');
+ $modules_desc = $modules->getVar('modules_description');
+ $modules_author_website_name = $modules->getVar('modules_author_website_name');
+ $modules_author_website_url = $modules->getVar('modules_author_website_url');
+ $modules_image = $modules->getVar('modules_image');
//Effacer repertoire du nouveau module s'il existe
- clearDir($modPath.'/modules/'.$modules_name);
+ clearDir($modPath.'/modules/'.$modules_name);
+ //Nom des tables et combien de tables
+ $criteria = new CriteriaCompo();
+ $criteria->add(new Criteria('tables_modules', $_REQUEST['modules_name']));
+ $nb_tables = $tablesHandler->getCount($criteria);
+ $tables_arr = $tablesHandler->getall($criteria);
+
//Debut
echo '<table width="100%" cellspacing="1" class="outer">';
/************************************************/
@@ -115,9 +112,21 @@
const_blocks_templates($modules, $modules_name, $tables_name, $tables_module_table, $tables_champs, $tables_parametres);
}
}
+ //Variables
+ $tables_id = $tablesHandler->getVar('tables_id');
+ $tables_name = $tablesHandler->getVar('tables_name');
+ $tables_module_table = $tablesHandler->getVar('tables_module_table');
+ $tables_img = $tablesHandler->getVar('tables_img');
+ $tables_champs = $tablesHandler->getVar('tables_champs');
+ $tables_parametres = $tablesHandler->getVar('tables_parametres');
+ $tables_blocks = $tablesHandler->getVar('tables_blocks');
+ $tables_display_admin = $tablesHandler->getVar('tables_display_admin');
+ $tables_display_user = $tablesHandler->getVar('tables_display_user');
+ $tables_search = $tablesHandler->getVar('tables_search');
+ $tables_coms = $tablesHandler->getVar('tables_coms');
//Creation de xoopsversion.php
/*Mettre xoops version vers la fin pour integrer les bloc, etc*/
- const_xoopsversion($modules, $modules_name, $tables_blocks, $tables_arr, $tables_module_table);
+ const_xoopsversion($modules, $modules_name, $tables_blocks, $tables_arr, $tables_module_table, $tables_parametres);
// Creation of template index
const_templates_index($modules, $modules_name, $tables_name, $tables_module_table, $tables_champs, $tables_parametres);
// Creation of template header
@@ -129,6 +138,7 @@
// Creation of template admin help
const_templates_admin_help($modules, $modules_name);
//Creation du fichier permissions
+ $topic = 0;
if ( $topic == 1 || $tables_module_table != null) { //
const_admin_permissions($modules, $modules_name, $tables_arr, $topic);
}
@@ -146,11 +156,11 @@
//Language
///////////////////////////////////////////////////////////////////////
//Creation du language main.php
- const_main_language($modules, $modules_name);
+ const_main_language($modules, $modules_name, $modules_desc);
//Creation du language modinfo.php
- const_modinfo_language($modules, $modules_name);
+ const_modinfo_language($modules, $modules_name, $modules_desc);
//Creation du language admin.php
- const_admin_language($modules, $modules_name);
+ const_admin_language($modules, $modules_name, $modules_desc);
//Creation du language blocks.php
const_blocks_language($modules, $modules_name);
//Creation du language help.php
@@ -194,12 +204,12 @@
$modules_select->addOptionArray($modulesHandler->getList());
$form->addElement($modules_select, true);
- foreach (array_keys($tables_arr) as $i)
+ /*foreach (array_keys($tables_arr) as $i)
{
//Variables
$tables_name = $tables_arr[$i]->getVar('tables_name');
- }
-
+ }*/
+ $tables_name = $tablesHandler->getVar('tables_name');
$tables_select = new XoopsFormSelect(_AM_TDMCREATE_CONST_TABLES, 'tables_name', $tables_name, 4);
$tables_select->addOptionArray($tablesHandler->getList());
$form->addElement($tables_select, false);
Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/filesmanager.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/filesmanager.php 2012-01-30 07:29:44 UTC (rev 8833)
+++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/filesmanager.php 2012-01-30 09:37:51 UTC (rev 8834)
@@ -37,11 +37,21 @@
*/
include 'admin_header.php';
xoops_cp_header();
+
+// Get Action type
+$op = TDMCreate_CleanVars( $_REQUEST, 'op', 'default', 'string' );
+
+xoops_load('XoopsFile');
+XoopsFile::load('file');
+
+switch ($op) {
+ default:
+
echo '<br class="clear" />
<div class="spacer">
<table class="outer ui-corner-all" cellspacing="1">
<tr>
- <th><{$smarty.const._AM_TDMCREATE_YOUR_MODULES}></th>
+ <th>'._AM_TDMCREATE_YOUR_MODULES.'</th>
<th> </th>
</tr>
<tr>
@@ -54,7 +64,26 @@
</td>
</tr>
</table>
-
<br class="clear" />
</div>';
+
+ break;
+
+ //save
+ case 'filemanager_save':
+
+ break;
+
+ case 'filemanager_upload_save':
+
+ break;
+
+ case 'filemanager_add_dir_save':
+
+ break;
+
+ case 'filemanager_add_file_save':
+
+ break;
+}
include "admin_footer.php";
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/tables.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/tables.php 2012-01-30 07:29:44 UTC (rev 8833)
+++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/admin/tables.php 2012-01-30 09:37:51 UTC (rev 8834)
@@ -52,11 +52,15 @@
$obj->setVar('tables_blocs', 0);
$obj->setVar('tables_display_admin', 1);
$obj->setVar('tables_display_user', 1);
+ $obj->setVar('tables_submitter', 0);
+ $obj->setVar('tables_date_created', 0);
+ $obj->setVar('tables_online', 0);
$obj->setVar('tables_search', 0);
$obj->setVar('tables_coms', 0);
$obj->setVar('tables_nb_champs', 7);
- $tables_parametres = 'XoopsFormTopic:0:0:0:0:0:0|XoopsFormText:1:1:0:1:0:1|XoopsFormTextArea:0:1:0:0:0:1|XoopsFormUploadImage:1:1:0:0:0:0|XoopsFormText:1:1:0:0:0:1|XoopsFormColorPicker:1:1:0:0:0:0|XoopsFormSelectUser:0:0:0:0:0:1|XoopsFormTextDateSelect:0:0:0:0:0:1|XoopsFormCheckBox:1:1:0:0:0:1';
+ $tables_champs = 'topic_id:int:11:unsigned:NOT NULL: :|topic_pid:int:5:unsigned:NOT NULL:0:|topic_title:varchar:255: :NOT NULL: :|topic_desc:text: : :NOT NULL: :|topic_img:varchar:255: :NOT NULL: :|topic_weight:int:5: :NOT NULL:0:|topic_color:varchar:10: :NULL: :';
+ $tables_parametres = 'XoopsFormTopic:0:0:0:0:0:0|XoopsFormText:1:1:0:1:0:1|XoopsFormTextArea:0:1:0:0:0:1|XoopsFormUploadImage:1:1:0:0:0:0|XoopsFormText:1:1:0:0:0:1|XoopsFormColorPicker:1:1:0:0:0:0|XoopsFormSelectBox:0:0:0:0:0:1|XoopsFormSelectUser:0:0:0:0:0:1|XoopsFormTextDateSelect:0:0:0:0:0:1|XoopsFormCheckBox:1:1:0:0:0:1';
//Image
include_once XOOPS_ROOT_PATH.'/class/uploader.php';
@@ -90,6 +94,9 @@
$obj->setVar('tables_blocs', $_REQUEST['tables_blocs']);
$obj->setVar('tables_display_admin', $_REQUEST['tables_display_admin']);
$obj->setVar('tables_display_user', $_REQUEST['tables_display_user']);
+ $obj->setVar('tables_submitter', $_REQUEST['tables_submitter']);
+ $obj->setVar('tables_date_created', $_REQUEST['tables_date_created']);
+ $obj->setVar('tables_online', $_REQUEST['tables_online']);
$obj->setVar('tables_search', $_REQUEST['tables_search']);
$obj->setVar('tables_coms', $_REQUEST['tables_coms']);
$obj->setVar('tables_nb_champs', $_REQUEST['tables_nb_champs']);
@@ -103,7 +110,7 @@
$tables_parametres .= ( !empty($_REQUEST['champs_param_elements'][$i]) ) ? "".$_REQUEST['champs_param_elements'][$i].":" : " :";
$tables_parametres .= ( !empty($_REQUEST['champs_param_display_admin'][$i]) ) ? "1:" : "0:";
$tables_parametres .= ( !empty($_REQUEST['champs_param_display_user'][$i]) ) ? "1:" : "0:";
- $tables_parametres .= ( !empty($_REQUEST['champs_param_display_blocs'][$i]) ) ? "1:" : "0:";
+ $tables_parametres .= ( !empty($_REQUEST['champs_param_display_blocks'][$i]) ) ? "1:" : "0:";
$tables_parametres .= ( $i == $_REQUEST['champs_param_main_field']) ? "1:" : "0:";
$tables_parametres .= ( !empty($_REQUEST['champs_param_search_field'][$i]) ) ? "1:" : "0:";
$tables_parametres .= ( !empty($_REQUEST['champs_param_required_field'][$i]) ) ? "1" : "0";
@@ -115,7 +122,7 @@
$tables_champs .= (!empty($_REQUEST['champs_valeur'][$i])) ? "".$_REQUEST['champs_valeur'][$i].":" : " :";
$tables_champs .= (!empty($_REQUEST['champs_attributs'][$i])) ? "".$_REQUEST['champs_attributs'][$i].":" : " :";
$tables_champs .= (!empty($_REQUEST['champs_null'][$i])) ? "".strtoupper($_REQUEST['champs_null'][$i]).":" : " :";
- //$tables_champs .= (!empty($_REQUEST['champs_default'][$i])) ? "".$_REQUEST['champs_default'][$i].":" : " :";
+ $tables_champs .= (!empty($_REQUEST['champs_default'][$i])) ? "".$_REQUEST['champs_default'][$i].":" : " :";
$tables_champs .= (!empty($_REQUEST['champs_clef'][$i])) ? "".$_REQUEST['champs_clef'][$i]."" : " ";
//Coupure entre les champs et coupre entre les parametres
@@ -124,7 +131,7 @@
if ( $i != 0 )
$tables_parametres .= '|';
} else {
- $tables_parametres .= '|XoopsFormSelectUser:1:1:1:0:0:1|XoopsFormTextDateSelect:1:1:1:0:0:1|XoopsFormCheckBox:1:1:1:0:0:1';
+ $tables_parametres .= '|XoopsFormSelectBox:1:1:1:0:0:1|XoopsFormSelectUser:1:1:1:0:0:1|XoopsFormTextDateSelect:1:1:1:0:0:1|XoopsFormCheckBox:1:1:1:0:0:1';
}
}
}
@@ -156,6 +163,9 @@
$tables_blocks = (isset($_REQUEST['tables_blocs'])) ? $_REQUEST['tables_blocs'] : '0';
$tables_display_admin = (isset($_REQUEST['tables_display_admin'])) ? $_REQUEST['tables_display_admin'] : '0';
$tables_display_user = (isset($_REQUEST['tables_display_user'])) ? $_REQUEST['tables_display_user'] : '0';
+ $tables_submitter = (isset($_REQUEST['tables_submitter'])) ? $_REQUEST['tables_submitter'] : '0';
+ $tables_date_created = (isset($_REQUEST['tables_date_created'])) ? $_REQUEST['tables_date_created'] : '0';
+ $tables_online = (isset($_REQUEST['tables_online'])) ? $_REQUEST['tables_online'] : '0';
$tables_search = (isset($_REQUEST['tables_search'])) ? $_REQUEST['tables_search'] : '0';
$tables_coms = (isset($_REQUEST['tables_coms'])) ? $_REQUEST['tables_coms'] : '0';
$select = (isset($_REQUEST['select'])) ? $_REQUEST['select'] : '0';
@@ -190,6 +200,9 @@
$obj->setVar('tables_blocs', $_REQUEST['tables_blocs']);
$obj->setVar('tables_display_admin', $_REQUEST['tables_display_admin']);
$obj->setVar('tables_display_user', $_REQUEST['tables_display_user']);
+ $obj->setVar('tables_submitter', $_REQUEST['tables_submitter']);
+ $obj->setVar('tables_date_created', $_REQUEST['tables_date_created']);
+ $obj->setVar('tables_online', $_REQUEST['tables_online']);
//mettre des isset pour search
if ( isset($_REQUEST['tables_search']) )
$obj->setVar('tables_search', $_REQUEST['tables_search']);
@@ -336,6 +349,9 @@
$tables_blocks = (isset($_REQUEST['tables_blocs'])) ? $_REQUEST['tables_blocs'] : '0';
$tables_display_admin = (isset($_REQUEST['tables_display_admin'])) ? $_REQUEST['tables_display_admin'] : '0';
$tables_display_user = (isset($_REQUEST['tables_display_user'])) ? $_REQUEST['tables_display_user'] : '0';
+ $tables_submitter = (isset($_REQUEST['tables_submitter'])) ? $_REQUEST['tables_submitter'] : '0';
+ $tables_date_created = (isset($_REQUEST['tables_date_created'])) ? $_REQUEST['tables_date_created'] : '0';
+ $tables_online = (isset($_REQUEST['tables_online'])) ? $_REQUEST['tables_online'] : '0';
$tables_search = (isset($_REQUEST['tables_search'])) ? $_REQUEST['tables_search'] : '0';
$tables_coms = (isset($_REQUEST['tables_coms'])) ? $_REQUEST['tables_coms'] : '0';
$select = (isset($_REQUEST['select'])) ? $_REQUEST['select'] : '0';
@@ -398,7 +414,7 @@
$result = $xoopsDB->queryF("SELECT COUNT(*) FROM " . $xoopsDB->prefix("tdmcreate_tables")." WHERE tables_name = 'topic'");
list( $topic ) = $xoopsDB->fetchRow($result);
- $obj =& $tablesHandler->get($_REQUEST['tables_id']);
+ $obj =& $tablesHandler->get(isset($_REQUEST['tables_id']));
if ( $topic >= 0 ) {
$form = $obj->getFormTopic();
}
@@ -477,7 +493,7 @@
$tables_modules = $tables_arr[$i]->getVar('tables_modules');
$tables_name = $tables_arr[$i]->getVar('tables_name');
$tables_img = $tables_arr[$i]->getVar('tables_img');
- $tables_blocks = $tables_arr[$i]->getVar('tables_blocs');
+ $tables_blocks = $tables_arr[$i]->getVar('tables_blocks');
$tables_champs = $tables_arr[$i]->getVar('tables_champs');
$tables_display_admin = $tables_arr[$i]->getVar('tables_display_admin');
$tables_display_user = $tables_arr[$i]->getVar('tables_display_user');
Added: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/menu.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/menu.php (rev 0)
+++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/menu.php 2012-01-30 09:37:51 UTC (rev 8834)
@@ -0,0 +1,205 @@
+<?php
+/**
+ * ****************************************************************************
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ *
+ * Cette licence, contient des limitations!!!
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @license TDM GPL license
+ * @author TDM TEAM DEV MODULE
+ *
+ * ****************************************************************************
+ */
+
+class TDMCreateMenu
+{
+ public $Width = 80;
+ public $Height = 85;
+ public $BgColor = 'transparent';
+ public $OverBgColor = '#FFF6C1';
+ public $BorderWidth = 1;
+ public $BorderColor = '#CCCCCC';
+ public $OverBorderColor = '#FF9900';
+ public $BorderStyle = 'solid';
+ public $OverBorderStyle = 'solid';
+ public $Font = 'Tahoma, Arial, Helvetica';
+ public $FontColor = '#666666';
+ public $OverFontColor = '#1E90FF';
+ public $FontDeco = 'none';
+ public $OverFontDeco = 'none';
+ public $FontSize = 11;
+ public $FontWeight = 'bold';
+ public $FontExtra = 'Tahoma, Arial, Helvetica';
+ public $FontExtraColor = '#A98952';
+ public $OverFontExtraColor = '#0033FF';
+ public $FontExtraDeco = 'underline';
+ public $OverFontExtraDeco = 'underline';
+ public $FontExtraSize = 9;
+ public $FontExtraWeight = 'normal';
+ public $TextAlign = 'center';
+ private $_items = array();
+
+ public function addItem($id, $link='', $icon='', $name='', $extra='', $alt=''){
+ if (isset($this->_items[$id])) return false;
+ $rtn['link'] = $link;
+ $rtn['icon'] = $icon;
+ $rtn['name'] = $name;
+ $rtn['extra'] = $extra;
+ $rtn['alt'] = $alt;
+ $this->_items[$id] = $rtn;
+ return true;
+ }
+
+ public function setLink($id, $link){
+ if (isset($this->_items[$id])){
+ $this->_items[$id]['link'] = $link;
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ public function setIcon($id, $icon){
+ if (isset($this->_items[$id])){
+ $this->_items[$id]['icon'] = $icon;
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ public function setName($id, $name){
+ if (isset($this->_items[$id])){
+ $this->_items[$id]['name'] = $name;
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ public function setExtra($id, $extra){
+ if (isset($this->_items[$id])){
+ $this->_items[$id]['extra'] = $extra;
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ public function setAlt($id, $alt){
+ if (isset($this->_items[$id])){
+ $this->_items[$id]['alt'] = $alt;
+ return true;
+ } else {
+ return false;
+ }
+ }
+
+ public function getCSS($ws = true){
+ if ($ws) $csscode = "<style type=\"text/css\">\n<!--";
+ $csscode .= "div.rmmenuicon{
+ margin: 3px;
+ font-family: $this->Font;
+ text-align: ".$this->TextAlign.";
+ }
+ div.rmmenuicon a {
+ display: block; float: left;
+ height: ".$this->Height."px !important;
+ height: ".$this->Height."px;
+ width: ".$this->Width."px !important;
+ width: ".$this->Width."px;
+ vertical-align: middle;
+ text-decoration : none;
+ border: ".$this->BorderWidth."px $this->BorderStyle $this->BorderColor;
+ padding: 2px 5px 1px 5px;
+ margin: 3px;
+ color: $this->FontColor;
+
+
+ background-color: #f0f0f0;
+ -moz-border-radius: 6px;
+ -webkit-border-radius: 6px;
+ -khtml-border-radius: 6px;
+ border-radius: 6px;
+ }
+ div.rmmenuicon img { margin-top: 8px; margin-bottom: 8px; }
+ div.rmmenuicon a span {
+ font-size: ".$this->FontSize."px;
+ font-weight: $this->FontWeight;
+ display: block;
+ }
+ div.rmmenuicon a span.uno{
+ font-size: ".$this->FontExtraSize."px;
+ font-weight: $this->FontExtraWeight;
+ text-decoration: $this->FontExtraDeco;
+ color: $this->FontExtraColor;
+ }
+ div.rmmenuicon a:hover{
+ background-color: $this->OverBgColor;
+ border: ".$this->BorderWidth."px $this->BorderStyle $this->OverBorderColor;
+ color: $this->OverFontColor;
+ }
+ div.rmmenuicon a:hover span{
+ text-decoration: $this->OverFontDeco;
+ }
+ div.rmmenuicon a:hover span.uno{
+ text-decoration: $this->OverFontExtraDeco;
+ color: $this->OverFontExtraColor;
+ }
+
+ div.hometitle{
+ color: #333;
+ font-size: 18px;
+ padding: 0 12px 0 12px;
+ }
+ div.textbody{
+ color: #000;
+ font-size: 12px;
+ padding: 0 12px 0 12px;
+ background-color: #f0f0f0;
+ -moz-border-radius: 6px;
+ -webkit-border-radius: 6px;
+ -khtml-border-radius: 6px;
+ border-radius: 6px;
+ }
+ div.CPbigTitle{
+ font-size: 12px;
+ color: #606060;
+ background: no-repeat left top;
+ font-weight: bold;
+ height: 30px;
+ vertical-align: middle;
+ padding: 10px 0 0 40px;
+ border-bottom: 3px solid #393e41;
+
+ }";
+ if ($ws) $csscode .= "\n-->\n</style>";
+ return $csscode;
+ }
+
+ public function render(){
+
+ $ret = "<div class='rmmenuicon'>";
+ foreach ($this->_items as $k => $v){
+ $ret .= "<a href='$v[link]' title='".($v['alt']!='' ? $v['alt'] : $v['name'])."'>".($v['icon']!='' ? "<img src='$v[icon]' alt='$v[name]' /> " : '');
+ if ($v['name'] != '') $ret .= "<span>$v[name]</span>";
+ if ($v['extra'] != '') $ret .= "<span class='uno'>$v[extra]</span>";
+ $ret .= "</a>";
+ }
+ $ret .= "</div><div style='clear: both;'></div>";
+ return $ret;
+ }
+
+ public function display(){
+ echo $this->render();
+ }
+}
+?>
\ No newline at end of file
Deleted: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/object.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/object.php 2012-01-30 07:29:44 UTC (rev 8833)
+++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/object.php 2012-01-30 09:37:51 UTC (rev 8834)
@@ -1,412 +0,0 @@
-<?php
-/**
- * ****************************************************************************
- * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
- * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
- *
- * Cette licence, contient des limitations!!!
- *
- * You may not change or alter any portion of this comment or credits
- * of supporting developers from this source code or any supporting source code
- * which is considered copyrighted (c) material of the original comment or credit authors.
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- *
- * @license TDM GPL license
- * @author TDM TEAM DEV MODULE
- *
- * ****************************************************************************
- */
-
-class XoopsPersistableObjectHandler extends XoopsObjectHandler{
-
- /**
- * Information about the class, the handler is managing
- *
- * @var string
- */
- var $table;
- var $keyName;
- var $className;
- var $identifierName;
-
-
- /**
- * Constructor - called from child classes
- * @param object $db {@link XoopsDatabase} object
- * @param string $tablename Name of database table
- * @param string $classname Name of Class, this handler is managing
- * @param string $keyname Name of the property, holding the key
- *
- * @return void
- */
- function XoopsPersistableObjectHandler(&$db, $tablename, $classname, $keyname, $idenfierName = false) {
- $this->XoopsObjectHandler($db);
- $this->table = $db->prefix($tablename);
- $this->keyName = $keyname;
- $this->className = $classname;
- if ($idenfierName != false) {
- $this->identifierName = $idenfierName;
- }
- }
-
- /**
- * create a new user
- *
- * @param bool $isNew Flag the new objects as "new"?
- *
- * @return object
- */
- function &create($isNew = true) {
- $obj =& new $this->className();
- if ($isNew === true) {
- $obj->setNew();
- }
- return $obj;
- }
-
- /**
- * retrieve an object
- *
- * @param mixed $id ID of the object - or array of ids for joint keys. Joint keys MUST be given in the same order as in the constructor
- * @param bool $as_object whether to return an object or an array
- * @return mixed reference to the object, FALSE if failed
- */
- function &get($id, $as_object=true) {
- if (is_array($this->keyName)) {
- $criteria = new CriteriaCompo();
- for ($i = 0; $i < count($this->keyName); $i++) {
- $criteria->add(new Criteria($this->keyName[$i], intval($id[$i])));
- }
- } else {
- $criteria = new Criteria($this->keyName, intval($id));
- }
- $criteria->setLimit(1);
- $obj_array = $this->getObjects($criteria, false, $as_object);
- if (count($obj_array) != 1) {
- $obj = $this->create();
- return $obj;
- }
- return $obj_array[0];
- }
-
- /**
- * retrieve objects from the database
- *
- * @param object $criteria {@link CriteriaElement} conditions to be met
- * @param bool $id_as_key use the ID as key for the array?
- * @param bool $as_object return an array of objects?
- *
- * @return array
- */
- function getObjects($criteria=null, $id_as_key=false, $as_object=true){
- $ret = array();
- $limit = $start = 0;
- $sql = 'SELECT * FROM '.$this->table;
- if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
- $sql .= ' '.$criteria->renderWhere();
- if ($criteria->getSort() != '') {
- $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder();
- }
- $limit = $criteria->getLimit();
- $start = $criteria->getStart();
- }
- $result = $this->db->query($sql, $limit, $start);
- if (!$result) {
- return $ret;
- }
- return $this->convertResultSet($result, $id_as_key, $as_object);
- }
-
- /**
- * Convert a database resultset to a returnable array
- *
- * @param object $result database resultset
- * @param bool $id_as_key - should NOT be used with joint keys
- * @param bool $as_object
- *
- * @return array
- */
- function convertResultSet($result, $id_as_key = false, $as_object = true) {
- $ret = array();
- while ($myrow = $this->db->fetchArray($result)) {
- $obj =& $this->create(false);
- $obj->assignVars($myrow);
- if (!$id_as_key) {
- if ($as_object) {
- $ret[] =& $obj;
- } else {
- $row = array();
- $vars = $obj->getVars();
- foreach (array_keys($vars) as $i) {
- $row[$i] = $obj->getVar($i);
- }
- $ret[] = $row;
- }
- } else {
- if ($as_object) {
- $ret[$myrow[$this->keyName]] =& $obj;
- } else {
- $row = array();
- $vars = $obj->getVars();
- foreach (array_keys($vars) as $i) {
- $row[$i] = $obj->getVar($i);
- }
- $ret[$myrow[$this->keyName]] = $row;
- }
- }
- unset($obj);
- }
- return $ret;
- }
-
- /**
- * Retrieve a list of objects as arrays - DON'T USE WITH JOINT KEYS
- *
- * @param object $criteria {@link CriteriaElement} conditions to be met
- * @param int $limit Max number of objects to fetch
- * @param int $start Which record to start at
- *
- * @return array
- */
- function getList($criteria = null, $limit = 0, $start = 0) {
- $ret = array();
- if ($criteria == null) {
- $criteria = new CriteriaCompo();
- }
-
- if ($criteria->getSort() == '') {
- $criteria->setSort($this->identifierName);
- }
-
- $sql = 'SELECT '.$this->keyName;
- if(!empty($this->identifierName)){
- $sql .= ', '.$this->identifierName;
- }
- $sql .= ' FROM '.$this->table;
- if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
- $sql .= ' '.$criteria->renderWhere();
- if ($criteria->getSort() != '') {
- $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder();
- }
- $limit = $criteria->getLimit();
- $start = $criteria->getStart();
- }
- $result = $this->db->query($sql, $limit, $start);
- if (!$result) {
- return $ret;
- }
- $myts =& MyTextSanitizer::getInstance();
- while ($myrow = $this->db->fetchArray($result)) {
- //identifiers should be textboxes, so sanitize them like that
- $ret[$myrow[$this->keyName]] = empty($this->identifierName)?1:$myts->htmlSpecialChars($myrow[$this->identifierName]);
- }
- return $ret;
- }
-
- /**
- * count objects matching a condition
- *
- * @param object $criteria {@link CriteriaElement} to match
- * @return int count of objects
- */
- function getCount($criteria=null){
- $field = "";
- $groupby = false;
- if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
- if ($criteria->groupby != "") {
- $groupby = true;
- $field = $criteria->groupby.", "; //Not entirely secure unless you KNOW that no criteria's groupby clause is going to be mis-used
- }
- }
- $sql = 'SELECT '.$field.'COUNT(*) FROM '.$this->table;
- if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
- $sql .= ' '.$criteria->renderWhere();
- if ($criteria->groupby != "") {
- $sql .= $criteria->getGroupby();
- }
- }
- $result = $this->db->query($sql);
- if (!$result) {
- return 0;
- }
- if ($groupby == false) {
- list($count) = $this->db->fetchRow($result);
- return $count;
- } else {
- $ret = array();
- while (list($id, $count) = $this->db->fetchRow($result)) {
- $ret[$id] = $count;
- }
- return $ret;
- }
- }
-
- /**
- * delete an object from the database
- *
- * @param object $obj reference to the object to delete
- * @param bool $force
- * @return bool FALSE if failed.
- */
- function delete(&$obj, $force = false){
- if (is_array($this->keyName)) {
- $clause = array();
- for ($i = 0; $i < count($this->keyName); $i++) {
- $clause[] = $this->keyName[$i]." = ".$obj->getVar($this->keyName[$i]);
- }
- $whereclause = implode(" AND ", $clause);
- } else {
- $whereclause = $this->keyName." = ".$obj->getVar($this->keyName);
- }
- $sql = "DELETE FROM ".$this->table." WHERE ".$whereclause;
- if (false != $force) {
- $result = $this->db->queryF($sql);
- } else {
- $result = $this->db->query($sql);
- }
- if (!$result) {
- return false;
- }
- return true;
- }
-
- /**
- * insert a new object in the database
- *
- * @param object $obj reference to the object
- * @param bool $force whether to force the query execution despite security settings
- * @param bool $checkObject check if the object is dirty and clean the attributes
- * @return bool FALSE if failed, TRUE if already present and unchanged or successful
- */
-
- function insert(&$obj, $force=false, $checkObject=true){
- if ($checkObject != false) {
- if (!is_object($obj)) {
- var_dump($obj);
- return false;
- }
- /**
- * @TODO: Change to if (!(class_exists($this->className) && $obj instanceof $this->className)) when going fully PHP5
- */
- if (!is_a($obj, $this->className)) {
- $obj->setErrors(get_class($obj)." Differs from ".$this->className);
- return false;
- }
- if (!$obj->isDirty()) {
- $obj->setErrors("Not dirty"); //will usually not be outputted as errors are not displayed when the method returns true, but it can be helpful when troubleshooting code - Mith
- return true;
- }
- }
- if (!$obj->cleanVars()) {
- return false;
- }
-
- foreach ($obj->cleanVars as $k => $v) {
- if ($obj->vars[$k]['data_type'] == XOBJ_DTYPE_INT) {
- $cleanvars[$k] = intval($v);
- } elseif ( is_array( $v ) ) {
- $cleanvars[ $k ] = $this->db->quoteString( implode( ',', $v ) );
- } else {
- $cleanvars[$k] = $this->db->quoteString($v);
- }
- }
- if ($obj->isNew()) {
- if (!is_array($this->keyName)) {
- if ($cleanvars[$this->keyName] < 1) {
- $cleanvars[$this->keyName] = $this->db->genId($this->table.'_'.$this->keyName.'_seq');
- }
- }
- $sql = "INSERT INTO ".$this->table." (".implode(',', array_keys($cleanvars)).") VALUES (".implode(',', array_values($cleanvars)) .")";
- } else {
- $sql = "UPDATE ".$this->table." SET";
- foreach ($cleanvars as $key => $value) {
- if ((!is_array($this->keyName) && $key == $this->keyName) || (is_array($this->keyName) && in_array($key, $this->keyName))) {
- continue;
- }
- if (isset($notfirst) ) {
- $sql .= ",";
- }
- $sql .= " ".$key." = ".$value;
- $notfirst = true;
- }
- if (is_array($this->keyName)) {
- $whereclause = "";
- for ($i = 0; $i < count($this->keyName); $i++) {
- if ($i > 0) {
- $whereclause .= " AND ";
- }
- $whereclause .= $this->keyName[$i]." = ".$obj->getVar($this->keyName[$i]);
- }
- } else {
- $whereclause = $this->keyName." = ".$obj->getVar($this->keyName);
- }
- $sql .= " WHERE ".$whereclause;
- }
- if (false != $force) {
- $result = $this->db->queryF($sql);
- } else {
- $result = $this->db->query($sql);
- }
- if (!$result) {
- return false;
- }
- if ($obj->isNew() && !is_array($this->keyName)) {
- $obj->assignVar($this->keyName, $this->db->getInsertId());
- }
- return true;
- }
-
- /**
- * Change a value for objects with a certain criteria
- *
- * @param string $fieldname Name of the field
- * @param string $fieldvalue Value to write
- * @param object $criteria {@link CriteriaElement}
- * @return bool
- */
- function updateAll($fieldname, $fieldvalue, $criteria = null, $force = false){
- $set_clause = $fieldname . ' = ';
- if ( is_numeric( $fieldvalue ) ) {
- $set_clause .= $fieldvalue;
- } elseif ( is_array( $fieldvalue ) ) {
- $set_clause .= $this->db->quoteString( implode( ',', $fieldvalue ) );
- } else {
- $set_clause .= $this->db->quoteString( $fieldvalue );
- }
- $sql = 'UPDATE '.$this->table.' SET '.$set_clause;
- if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
- $sql .= ' '.$criteria->renderWhere();
- }
- if (false != $force) {
- $result = $this->db->queryF($sql);
- } else {
- $result = $this->db->query($sql);
- }
- if (!$result) {
- return false;
- }
- return true;
- }
-
- /**
- * delete all objects meeting the conditions
- *
- * @param object $criteria {@link CriteriaElement} with conditions to meet
- * @return bool
- */
- function deleteAll($criteria = null){
- if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) {
- $sql = 'DELETE FROM '.$this->table;
- $sql .= ' '.$criteria->renderWhere();
- if (!$this->db->queryF($sql)) {
- return false;
- }
- $rows = $this->db->getAffectedRows();
- return $rows > 0 ? $rows : true;
- }
- return false;
- }
-}
-?>
\ No newline at end of file
Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/tdmcreate_modules.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/tdmcreate_modules.php 2012-01-30 07:29:44 UTC (rev 8833)
+++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/tdmcreate_modules.php 2012-01-30 09:37:51 UTC (rev 8834)
@@ -87,7 +87,16 @@
$form->insertBreak('<div class="center"><b>'._AM_TDMCREATE_MODULES_IMPORTANT.'</b></div>','head');
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULES_NAME, 'modules_name', 50, 255, $this->getVar('modules_name')), true);
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULES_VERSION, 'modules_version', 50, 255, $this->getVar('modules_version')), true);
- $form->addElement(new XoopsFormEditor(_AM_TDMCREATE_MODULES_DESCRIPTION, 'modules_description', $this->getVar('modules_description', 'e'), 5, 47), true);
+ // Name description
+ $editor_configs=array();
+ $editor_configs["name"] ="modules_description";
+ $editor_configs["value"] = $this->getVar('modules_description', 'e');
+ $editor_configs["rows"] = 5;
+ $editor_configs["cols"] = 100;
+ $editor_configs["width"] = "100%";
+ $editor_configs["height"] = "100px";
+ $editor_configs["editor"] = $GLOBALS['xoopsModuleConfig']['TDMCreate_editor'];
+ $form->addElement( new XoopsFormEditor(_AM_TDMCREATE_MODULES_DESCRIPTION, "modules_description", $editor_configs), true);
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULES_AUTHOR, 'modules_author', 50, 255, $this->getVar('modules_author')), true);
$form->addElement(new XoopsFormText(_AM_TDMCREATE_MODULES_LICENSE, 'modules_license', 50, 255, $this->getVar('modules_license')), true);
$modules_display_admin = $this->isNew() ? '1' : $this->getVar('modules_display_admin');
Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/tdmcreate_tables.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/tdmcreate_tables.php 2012-01-30 07:29:44 UTC (rev 8833)
+++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/class/tdmcreate_tables.php 2012-01-30 09:37:51 UTC (rev 8834)
@@ -68,7 +68,19 @@
$class = 'even';
$title = $this->isNew() ? sprintf(_AM_TDMCREATE_TABLES_CHAMPS_ADD) : sprintf(_AM_TDMCREATE_TABLES_CHAMPS_EDIT);
- $tables_actions = $tables_modules."&tables_id=".$tables_id."&tables_name=".$tables_name."&tables_blocks=".$tables_blocks."&tables_display_admin=".$tables_display_admin."&tables_display_user=".$tables_display_user."&tables_submitter=".$tables_submitter."&tables_date_created=".$tables_date_created."&tables_online=".$tables_online."&tables_search=".$tables_search."&tables_coms=".$tables_coms."&tables_nb_champs=".$tables_nb_champs."&select=".$select;
+ $tables_actions = $tables_modules.
+ "&tables_id=".$tables_id.
+ "&tables_name=".$tables_name.
+ "&tables_blocks=".$tables_blocks.
+ "&tables_display_admin=".$tables_display_admin.
+ "&tables_display_user=".$tables_display_user.
+ "&tables_submitter=".$tables_submitter.
+ "&tables_date_created=".$tables_date_created.
+ "&tables_online=".$tables_online.
+ "&tables_search=".$tables_search.
+ "&tables_coms=".$tables_coms.
+ "&tables_nb_champs=".$tables_nb_champs.
+ "&select=".$select;
echo "<FORM Method='POST' Action='".$action."?op=tables_save&tables_modules=".$tables_actions."'>
<table border='0' width='100%' cellspacing='1' class='outer'>
@@ -102,6 +114,7 @@
<OPTION VALUE='double'>DOUBLE</OPTION>
<OPTION VALUE='float'>FLOAT</OPTION>
<OPTION VALUE='enum'>ENUM</OPTION>
+ <OPTION VALUE='char'>CHAR</OPTION>
<OPTION VALUE='varchar'>VARCHAR</OPTION>
<OPTION VALUE='text'>TEXT</OPTION>
<OPTION VALUE='longtext'>LONGTEXT</OPTION>
@@ -141,6 +154,7 @@
<OPTION VALUE='XoopsFormDhtmlTextArea'>DhtmlTextArea</OPTION>
<OPTION VALUE='XoopsFormCheckBox'>CheckBox</OPTION>
<OPTION VALUE='XoopsFormRadioYN'>RadioYN</OPTION>
+ <OPTION VALUE='XoopsFormSelectBox'>SelectBox</OPTION>
<OPTION VALUE='XoopsFormSelectUser'>SelectUser</OPTION>
<OPTION VALUE='XoopsFormColorPicker'>ColorPicker</OPTION>
<OPTION VALUE='XoopsFormUploadImage'>UploadImage</OPTION>
@@ -295,7 +309,19 @@
$champs_param_required_field[$i] = $parametres[6];
}
}
- $tables_action = $tables_modules."&tables_id=".$tables_id."&tables_name=".$tables_name."&tables_blocks=".$tables_blocks."&tables_display_admin=".$tables_display_admin."&tables_display_user=".$tables_display_user."&tables_submitter=".$tables_submitter."&tables_date_created=".$tables_date_created."&tables_online=".$tables_online."&tables_search=".$tables_search."&tables_coms=".$tables_coms."&tables_nb_champs=".$tables_nb_champs."&select=".$select;
+ $tables_action = $tables_modules.
+ "&tables_id=".$tables_id.
+ "&tables_name=".$tables_name.
+ "&tables_blocks=".$tables_blocks.
+ "&tables_display_admin=".$tables_display_admin.
+ "&tables_display_user=".$tables_display_user.
+ "&tables_submitter=".$tables_submitter.
+ "&tables_date_created=".$tables_date_created.
+ "&tables_online=".$tables_online.
+ "&tables_search=".$tables_search.
+ "&tables_coms=".$tables_coms.
+ "&tables_nb_champs=".$tables_nb_champs.
+ "&select=".$select;
echo "<FORM Method='POST' Action='".$action."?op=tables_save&tables_modules=".$tables_action."'>
<table border='0' width='100%' cellspacing='1' class='outer'>
@@ -338,6 +364,26 @@
} else {
echo "<OPTION VALUE='decimal'>DECIMAL</OPTION>";
}
+ if ( $champs_type[$i] == 'double' ) {
+ echo "<OPTION VALUE='double' selected>DOUBLE</OPTION>";
+ } else {
+ echo "<OPTION VALUE='double'>DOUBLE</OPTION>";
+ }
+ if ( $champs_type[$i] == 'float' ) {
+ echo "<OPTION VALUE='float' selected>FLOAT</OPTION>";
+ } else {
+ echo "<OPTION VALUE='float'>FLOAT</OPTION>";
+ }
+ if ( $champs_type[$i] == 'enum' ) {
+ echo "<OPTION VALUE='enum' selected>ENUM</OPTION>";
+ } else {
+ echo "<OPTION VALUE='enum'>ENUM</OPTION>";
+ }
+ if ( $champs_type[$i] == 'char' ) {
+ echo "<OPTION VALUE='char' selected>CHAR</OPTION>";
+ } else {
+ echo "<OPTION VALUE='char'>CHAR</OPTION>";
+ }
if ( $champs_type[$i] == 'varchar' ) {
echo "<OPTION VALUE='varchar' selected>VARCHAR</OPTION>";
} else {
@@ -437,11 +483,16 @@
</SELECT></td>
<td align='center' width='30%'>";
if ( $i != 0 ) {
- echo "<table border='0' style='border-color:#666666'; width='100%' cellspacing='1' class='outer'>
+ echo "<table border='0' style='border-color:#777'; width='100%' cellspacing='1' class='outer'>
<tr>
<td align='left' class='head' width='95%'>Form : Elements</td>
<td align='right' class='even' width='5%'>
<SELECT name='champs_param_elements[".$i."]'>";
+ if ( $param_elements[$i] == 'None' ) {
+ echo "<OPTION VALUE='Null' selected>None</OPTION>";
+ } else {
+ echo "<OPTION VALUE='Null'>None</OPTION>";
+ }
if ( $param_elements[$i] == 'XoopsFormText' ) {
echo "<OPTION VALUE='XoopsFormText' selected>Text</OPTION>";
} else {
@@ -467,6 +518,11 @@
} else {
echo "<OPTION VALUE='XoopsFormRadioYN'>RadioYN</OPTION>";
}
+ if ( $param_elements[$i] == 'XoopsFormSelectBox' ) {
+ echo "<OPTION VALUE='XoopsFormSelectBox' selected>SelectBox</OPTION>";
+ } else {
+ echo "<OPTION VALUE='XoopsFormSelectBox'>SelectBox</OPTION>";
+ }
if ( $param_elements[$i] == 'XoopsFormSelectUser' ) {
echo "<OPTION VALUE='XoopsFormSelectUser' selected>SelectUser</OPTION>";
} else {
Added: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_about_language.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_about_language.php (rev 0)
+++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_about_language.php 2012-01-30 09:37:51 UTC (rev 8834)
@@ -0,0 +1,62 @@
+<?php
+/**
+ * ****************************************************************************
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ *
+ * Cette licence, contient des limitations!!!
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @license TDM GPL license
+ * @author TDM TEAM DEV MODULE
+ *
+ * ****************************************************************************
+ */
+include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_entete.php';
+include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/include/functions_const.php';
+
+function const_about_language($modules, $modules_name)
+{
+ if(!isset($xoopsConfig)) {
+ global $xoopsConfig;
+ }
+ $language = '_AM_'.strtoupper($modules_name).'_';
+ $file = "about.php";
+ $path_file = TDM_CREATE_MURL."/".$modules_name."/language/".$xoopsConfig['language']."/".$file;
+ $en_tete = const_entete($modules, 0);
+
+ $text = '<?php'.$en_tete.'
+// language/about.php
+define("'.$language.'ABOUT_RELEASEDATE","Rilasciato: ");
+define("'.$language.'ABOUT_UPDATEDATE","Aggiornato: ");
+define("'.$language.'ABOUT_AUTHOR","Autore");
+define("'.$language.'ABOUT_CREDITS","Crediti");
+define("'.$language.'ABOUT_README","Informazioni Generali");
+define("'.$language.'ABOUT_MANUAL","Manuale");
+define("'.$language.'ABOUT_LICENSE","Licenza");
+define("'.$language.'ABOUT_MODULE_STATUS","Stato");
+define("'.$language.'ABOUT_WEBSITE","Sito Web");
+define("'.$language.'ABOUT_WEBSITE_FORUM","Forum Sito Web");
+define("'.$language.'ABOUT_AUTHOR_NAME","Nome Autore");
+define("'.$language.'ABOUT_AUTHOR_WORD","Word Autore");
+define("'.$language.'ABOUT_CHANGELOG","Change Log");
+define("'.$language.'ABOUT_MODULE_INFO","Info Modulo");
+define("'.$language.'ABOUT_AUTHOR_INFO","Info Autore");
+define("'.$language.'ABOUT_DESCRIPTION","Descrizione: ");
+define("'.$language.'ABOUT_DISCLAIMER","Disclaimer");
+define("'.$language.'ABOUT_DISCLAIMER_TEXT","Licenza GPL - Non Garantita");
+
+?>';
+
+createFile($path_file, $text,
+ _AM_TDMCREATE_CONST_OK_LANGUAGES,
+ _AM_TDMCREATE_CONST_NOTOK_LANGUAGES, $file);
+}
+
+?>
Modified: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_admin_language.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_admin_language.php 2012-01-30 07:29:44 UTC (rev 8833)
+++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_admin_language.php 2012-01-30 09:37:51 UTC (rev 8834)
@@ -21,7 +21,7 @@
include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_entete.php';
include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/include/functions_const.php';
-function const_admin_language($modules, $modules_name)
+function const_admin_language($modules, $modules_name, $modules_description)
{
if(!isset($xoopsConfig)) {
global $xoopsConfig;
@@ -34,6 +34,10 @@
//}
$en_tete = const_entete($modules, 0);
$text = '<?php'.$en_tete.'
+// Name of module
+define("'.$language.'NAME", "'.ucfirst($modules_name).'");
+// Description of module
+define("'.$language.'DESC", "'.ucfirst($modules_description).'");
';
$criteria = new CriteriaCompo();
$criteria->add(new Criteria('languages_file', 'admin'));
Added: XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_class_admin.php
===================================================================
--- XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_class_admin.php (rev 0)
+++ XoopsModules/TDMCreate/branches/timgno/modules/TDMCreate/const/const_class_admin.php 2012-01-30 09:37:51 UTC (rev 8834)
@@ -0,0 +1,366 @@
+<?php
+/**
+ * ****************************************************************************
+ * - TDMCreate By TDM - TEAM DEV MODULE FOR XOOPS
+ * - Licence GPL Copyright (c) (http://www.tdmxoops.net)
+ *
+ * Cette licence, contient des limitations!!!
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @license TDM GPL license
+ * @author TDM TEAM DEV MODULE
+ *
+ * ****************************************************************************
+ */
+include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/const/const_entete.php';
+include_once XOOPS_ROOT_PATH.'/modules/TDMCreate/include/functions_const.php';
+
+function const_class_admin($modules, $modules_name)
+{
+ $modules_name_minuscule = strtolower($modules_name);
+ $file = "admin.php";
+ $path_file = TDM_CREATE_MURL."/".$modules_name."/class/".$file;
+ $en_tete = const_entete($modules, 0);
+
+ $text = '<?php'.$en_tete.'
+class ModuleAdmin
+{
+
+ var $_itemButton = array();
+ var $_itemLabel = array();
+ var $_itemLineLabel = array();
+ var $_itemConfigLabel = \'\';
+ var $_itemLineConfigLabel = array();
+ var $_itemChangelogLabel = \'\';
+ var $_obj = array();
+
+ /**
+ * Constructor
+ */
+ function __construct()
+ {
+ global $xoopsModule;
+ $this->_obj =& $xoopsModule;
+ echo "<style type=\"text/css\" media=\"screen\">@import \"" . XOOPS_URL . "/modules/" . $xoopsModule->getVar(\'dirname\', \'e\') . "/admin/style.css\";</style>\n";
+
+ }
+
+ function addItemButton($title, $link, $icon = \'add\', $extra = \'\')
+ {
+ $ret[\'title\'] = $title;
+ $ret[\'link\'] = $link;
+ $ret[\'icon\'] = $icon . \'.png\';
+ $ret[\'extra\'] = $extra;
+ $this -> _itemButton[] = $ret;
+ return true;
+
+ }
+
+ function renderButton($position = "right", $delimeter = " ")
+ {
+ $path = XOOPS_URL . "/modules/" . $this->_obj->getVar(\'dirname\') . "/images/admin/";
+ switch ($position)
+ {
+ default:
+ case "right":
+ $ret = "<div class=\"floatright\">\n";
+ break;
+
+ case "left":
+ $ret = "<div class=\"floatleft\">\n";
+ break;
+
+ case "center":
+ $ret = "<div class=\"aligncenter\">\n";
+ break;
+ }
+ $ret .= "<div class=\"xo-buttons\">\n";
+ foreach (array_keys( $this -> _itemButton) as $i) {
+ $ret .= "<a class=\'ui-corner-all tooltip\' href=\'" . $this -> _itemButton[$i][\'link\'] . "\' title=\'" . $this -> _itemButton[$i][\'title\'] . "\'>";
+ $ret .= "<img src=\'" . $path . $this -> _itemButton[$i][\'icon\'] . "\' title=\'" . $this -> _itemButton[$i][\'title\'] . "\' />" . $this -> _itemButton[$i][\'title\'] . $this -> _itemButton[$i][\'extra\'];
+ $ret .= "</a>\n";
+ $ret .= $delimeter;
+ }
+ $ret .= "</div>\n</div>\n";
+ $ret .= "<br /> <br /><br />";
+ return $ret;
+ }
+
+ function addLabel($title)
+ {
+ $ret[\'title\'] = $title;
+ $this -> _itemLabel[] = $ret;
+ return true;
+ }
+
+ function addLineLabel($label, $text, $value = \'\', $color = \'none\', $type = \'default\')
+ {
+ $ret[\'label\'] = $label;
+ $line = "";
+ switch ($type)
+ {
+ default:
+ case "default":
+ $line .= sprintf($text, "<span style=\'color : " . $color . "; font-weight : bold;\'>" . $value . "</span>");
+ break;
+
+ case "module":
+ $date = explode(\'/\',$this->_obj->getInfo(\'release_date\'));
+ $release_date = formatTimestamp(mktime(0, 0, 0, $date[1], $date[2], $date[0]), \'s\');
+ $line .= "<table>\n<tr>\n<td width=\"100px\">\n";
+ $line .= "<img src=\'" . XOOPS_URL . "/modules/" . $this->_obj->getVar(\'dirname\') . "/" . $this->_obj->getInfo(\'image\') . "\' alt=\'" . $this->_obj->getVar(\'name\') . "\' style=\'float: left; margin-right: 10px;\' />\n";
+ $line .= "</td><td>\n";
+ $line .= "<div style=\'margin-top: 1px; margin-bottom: 4px; font-size: 18px; line-height: 18px; color: #2F5376; font-weight: bold;\'>\n";
+ $line .= $this->_obj->getInfo(\'name\') . " " . $this->_obj->getInfo(\'version\') . " " . $this->_obj->getInfo(\'status_version\') ;
+ $line .= "<br />\n";
+ $line .= "</div>\n";
+ $line .= "<div style=\'line-height: 16px; font-weight: bold;\'>\n";
+ $line .= "by " . $this->_obj->getInfo(\'author\') ;
+ if ($this->_obj->getInfo(\'pseudo\') != \'\'){
+ $line .= " (" . $this->_obj->getInfo(\'pseudo\') . ")\n";
+ }
+ $line .= "</div>\n";
+ $line .= "<div style=\'line-height: 16px;\'>\n";
+
+ if ($this->_obj->getInfo(\'credits\') != \'\'){
+ $line .= "Credits: " . $this->_obj->getInfo(\'credits\') ;
+ }
+ $line .= "<br />\n";
+
+ $line .= "<a href=\"http://" . $this->_obj->getInfo(\'license_url\') . "\" target=\"_blank\" >" . $this->_obj->getInfo(\'license\') . "</a>\n";
+ $line .= "<br />\n";
+
+ $line .= "<a href=\"http://" . $this->_obj->getInfo(\'website\') . "\" target=\"_blank\" >" . $this->_obj->getInfo(\'website\') . "</a>\n";
+ $line .= "<br />\n";
+ if ($value != \'\'){
+ $line .= \'<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
+ <input type="hidden" name="cmd" value="_s-xclick">
+ <input type="hidden" name="business" value="you...@em..." />
+ <input type="hidden" name="hosted_button_id" value="\' . $value . \'" />
+ <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" />
+ <img alt="" border="0" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" width="1" height="1">
+ </form>\';
+ }
+ $line .= "</div>\n";
+ $line .= "</td>\n</tr>\n</table>\n";
+ break;
+
+ case "information":
+ $line .= $text;
+ break;
+ }
+ $ret[\'line\'] = $line;
+ $this -> _itemLineLabel[] = $ret;
+ return true;
+ }
+
+ function renderLabel()
+ {
+ $ret = "";
+ foreach (array_keys( $this -> _itemLabel) as $i) {
+ $ret .= "<fieldset><legend class=\"label\">";
+ $ret .= $this -> _itemLabel[$i][\'title\'];
+ $ret .= "</legend>\n";
+ foreach (array_keys( $this -> _itemLineLabel) as $k) {
+ if ($this -> _itemLineLabel[$k][\'label\'] == $this -> _itemLabel[$i][\'title\']){
+ $ret .= $this -> _itemLineLabel[$k][\'line\'];
+ $ret .= "<br />";
+ }
+ }
+ $ret .= "</fieldset>\n";
+ $ret .= "<br/>\n";
+ }
+ return $ret;
+ }
+
+ function addConfigLabel($title)
+ {
+ $this -> _itemConfigLabel = $title;
+ return true;
+ }
+
+ function addLineConfigLabel($text, $value = \'\', $type = \'default\')
+ {
+ $line = "";
+ $path = XOOPS_URL . "/modules/" . $this->_obj->getVar(\'dirname\') . "/images/icons/";
+ switch ($type)
+ {
+ de...
[truncated message content] |
|
From: <be...@us...> - 2012-01-30 07:29:51
|
Revision: 8833
http://xoops.svn.sourceforge.net/xoops/?rev=8833&view=rev
Author: beckmi
Date: 2012-01-30 07:29:44 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
fixing UTF conversion
Modified Paths:
--------------
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/readme.txt
Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/readme.txt
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/readme.txt 2012-01-30 06:32:38 UTC (rev 8832)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/readme.txt 2012-01-30 07:29:44 UTC (rev 8833)
@@ -13,7 +13,7 @@
Install/uninstall
------------------
-No special measures necessary, follow the standard installation process � extract the xoopspartners folder into the ../modules directory. Install the module through Admin -> System Module -> Modules.
+No special measures necessary, follow the standard installation process - extract the xoopspartners folder into the ../modules directory. Install the module through Admin -> System Module -> Modules.
Detailed instructions on installing modules are available in the XOOPS Operations Manual (http://goo.gl/adT2i)
@@ -21,9 +21,9 @@
------------------------
To set up this module you need to:
-i) Enter your partner�s details � including a URL for their website and (optionally) logo plus a short description (see �Adding a partner�)
+i) Enter your partner's details - including a URL for their website and (optionally) logo plus a short description (see "Adding a partner")
-ii) Configure your preferences for the module (see �Preferences�) and optionally the Partners block if you intend to use it (see �Blocks�)
+ii) Configure your preferences for the module (see "Preferences") and optionally the Partners block if you intend to use it (see "Blocks")
iii) Check that you have given your user groups the necessary module and block access rights to use this module. Group permissions are set through the Administration Menu -> System -> Groups.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <be...@us...> - 2012-01-30 06:32:45
|
Revision: 8832
http://xoops.svn.sourceforge.net/xoops/?rev=8832&view=rev
Author: beckmi
Date: 2012-01-30 06:32:38 +0000 (Mon, 30 Jan 2012)
Log Message:
-----------
Adding missing translation and admin image
Modified Paths:
--------------
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/menu.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/english/modinfo.php
Removed Paths:
-------------
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/images/Thumbs.db
Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/menu.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/menu.php 2012-01-29 21:59:35 UTC (rev 8831)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/menu.php 2012-01-30 06:32:38 UTC (rev 8832)
@@ -30,7 +30,7 @@
$i++;
$adminmenu[$i]['title'] = _MI_MAILUSERS_SENDMAIL;
$adminmenu[$i]['link'] = "admin/send_mails.php";
-$adminmenu[$i]['icon'] = $pathIcon32 . 'mailuser.png';
+$adminmenu[$i]['icon'] = $pathIcon32 . 'mail_country.png';
$i++;
$adminmenu[$i]['title'] = _MI_MAILUSERS_ABOUT;
$adminmenu[$i]['link'] = 'admin/about.php';
Deleted: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/images/Thumbs.db
===================================================================
(Binary files differ)
Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/english/modinfo.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/english/modinfo.php 2012-01-29 21:59:35 UTC (rev 8831)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/english/modinfo.php 2012-01-30 06:32:38 UTC (rev 8832)
@@ -23,6 +23,8 @@
// Info module
define("_MI_MAILUSERS_NAME", "Mail users");
define("_MI_MAILUSERS_DESC", "Module for managing mails");
+define("_MI_MAILUSERS_SENDMAIL", "Send Mail");
+
// Menu
define("_MI_MAILUSERS_INDEX", "Home");
define("_MI_MAILUSERS_MAILUSER_MANAGER", "Mail users manager");
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ma...@us...> - 2012-01-29 21:59:41
|
Revision: 8831
http://xoops.svn.sourceforge.net/xoops/?rev=8831&view=rev
Author: mageg
Date: 2012-01-29 21:59:35 +0000 (Sun, 29 Jan 2012)
Log Message:
-----------
bug when the module does not exist
Modified Paths:
--------------
XoopsCore/branches/2.6.x/2.6.0/htdocs/include/cp_header.php
Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/include/cp_header.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/include/cp_header.php 2012-01-29 21:48:08 UTC (rev 8830)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/include/cp_header.php 2012-01-29 21:59:35 UTC (rev 8831)
@@ -30,6 +30,9 @@
$moduleperm_handler = $xoops->getHandlerGroupperm();
if ($xoops->isUser()) {
$url_arr = explode('/', strstr($_SERVER['REQUEST_URI'], '/modules/'));
+ if (!$xoops->isActiveModule($url_arr[2])) {
+ $xoops->redirect(XOOPS_URL, 1, _NOPERM);
+ }
$xoops->module = $xoops->getHandlerModule()->getByDirname($url_arr[2]);
unset($url_arr);
if (!$moduleperm_handler->checkRight('module_admin', $xoops->module->getVar('mid'), $xoops->user->getGroups())) {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <wis...@us...> - 2012-01-29 21:48:20
|
Revision: 8830
http://xoops.svn.sourceforge.net/xoops/?rev=8830&view=rev
Author: wishcraft
Date: 2012-01-29 21:48:08 +0000 (Sun, 29 Jan 2012)
Log Message:
-----------
ADODB 0.25 - Classes Modified for No Warnings in XOOPS 2.6 - XOOPS 2.6 Complaint
Modified Paths:
--------------
ThirdParty/adodb/trunk/class/database/access_adodb.php
ThirdParty/adodb/trunk/class/database/ado5_adodb.php
ThirdParty/adodb/trunk/class/database/ado_access_adodb.php
ThirdParty/adodb/trunk/class/database/ado_adodb.php
ThirdParty/adodb/trunk/class/database/ado_mssql_adodb.php
ThirdParty/adodb/trunk/class/database/adodb/adodb-active-record.inc.php
ThirdParty/adodb/trunk/class/database/adodb/adodb-active-recordx.inc.php
ThirdParty/adodb/trunk/class/database/adodb/adodb-datadict.inc.php
ThirdParty/adodb/trunk/class/database/adodb/adodb-error.inc.php
ThirdParty/adodb/trunk/class/database/adodb/adodb-lib.inc.php
ThirdParty/adodb/trunk/class/database/adodb/adodb-memcache.lib.inc.php
ThirdParty/adodb/trunk/class/database/adodb/adodb-pager.inc.php
ThirdParty/adodb/trunk/class/database/adodb/adodb-pear.inc.php
ThirdParty/adodb/trunk/class/database/adodb/adodb-perf.inc.php
ThirdParty/adodb/trunk/class/database/adodb/adodb-time.inc.php
ThirdParty/adodb/trunk/class/database/adodb/adodb-xmlschema.inc.php
ThirdParty/adodb/trunk/class/database/adodb/adodb-xmlschema03.inc.php
ThirdParty/adodb/trunk/class/database/adodb/adodb.inc.php
ThirdParty/adodb/trunk/class/database/adodb/contrib/toxmlrpc.inc.php
ThirdParty/adodb/trunk/class/database/adodb/datadict/datadict-db2.inc.php
ThirdParty/adodb/trunk/class/database/adodb/datadict/datadict-firebird.inc.php
ThirdParty/adodb/trunk/class/database/adodb/datadict/datadict-mssql.inc.php
ThirdParty/adodb/trunk/class/database/adodb/datadict/datadict-mssqlnative.inc.php
ThirdParty/adodb/trunk/class/database/adodb/datadict/datadict-postgres.inc.php
ThirdParty/adodb/trunk/class/database/adodb/datadict/datadict-sybase.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-ado.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-ado5.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-ado_mssql.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-ads.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-db2.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-ibase.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-informix72.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-ldap.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-mssql.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-mssql_n.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-mssqlnative.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-mysql.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-mysqli.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-netezza.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-oci8.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-oci8po.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-odbc.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-odbc_db2.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-odbc_mssql.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-odbtp.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-odbtp_unicode.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-oracle.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-pdo.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-pdo_oci.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-pdo_pgsql.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-pdo_sqlite.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-postgres64.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-postgres7.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-sapdb.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-sqlanywhere.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-sqlite.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-sqlitepo.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-sybase.inc.php
ThirdParty/adodb/trunk/class/database/adodb/drivers/adodb-vfp.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-ar.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-bg.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-bgutf8.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-ca.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-cn.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-cz.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-da.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-de.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-en.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-es.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-esperanto.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-fa.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-fr.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-hu.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-it.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-nl.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-pl.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-pt-br.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-ro.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-ru1251.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-sv.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb-uk1251.inc.php
ThirdParty/adodb/trunk/class/database/adodb/lang/adodb_th.inc.php
ThirdParty/adodb/trunk/class/database/adodb/pear/Auth/Container/ADOdb.php
ThirdParty/adodb/trunk/class/database/adodb/perf/perf-db2.inc.php
ThirdParty/adodb/trunk/class/database/adodb/perf/perf-mssql.inc.php
ThirdParty/adodb/trunk/class/database/adodb/perf/perf-mssqlnative.inc.php
ThirdParty/adodb/trunk/class/database/adodb/perf/perf-mysql.inc.php
ThirdParty/adodb/trunk/class/database/adodb/perf/perf-oci8.inc.php
ThirdParty/adodb/trunk/class/database/adodb/perf/perf-postgres.inc.php
ThirdParty/adodb/trunk/class/database/adodb/readme.txt
ThirdParty/adodb/trunk/class/database/adodb/rsfilter.inc.php
ThirdParty/adodb/trunk/class/database/adodb/tohtml.inc.php
ThirdParty/adodb/trunk/class/database/ads_adodb.php
ThirdParty/adodb/trunk/class/database/borland_ibase_adodb.php
ThirdParty/adodb/trunk/class/database/csv_adodb.php
ThirdParty/adodb/trunk/class/database/database.php
ThirdParty/adodb/trunk/class/database/databasefactory.php
ThirdParty/adodb/trunk/class/database/db2_adodb.php
ThirdParty/adodb/trunk/class/database/db2oci_adodb.php
ThirdParty/adodb/trunk/class/database/fbsql_adodb.php
ThirdParty/adodb/trunk/class/database/firebird_adodb.php
ThirdParty/adodb/trunk/class/database/ibase_adodb.php
ThirdParty/adodb/trunk/class/database/informix72_adodb.php
ThirdParty/adodb/trunk/class/database/informix_adodb.php
ThirdParty/adodb/trunk/class/database/ldap_adodb.php
ThirdParty/adodb/trunk/class/database/mssql_adodb.php
ThirdParty/adodb/trunk/class/database/mssql_n_adodb.php
ThirdParty/adodb/trunk/class/database/mssqlnative_adodb.php
ThirdParty/adodb/trunk/class/database/mssqlpo_adodb.php
ThirdParty/adodb/trunk/class/database/mysql_adodb.php
ThirdParty/adodb/trunk/class/database/mysqldatabase.php
ThirdParty/adodb/trunk/class/database/mysqli_adodb.php
ThirdParty/adodb/trunk/class/database/mysqlpo_adodb.php
ThirdParty/adodb/trunk/class/database/mysqlt_adodb.php
ThirdParty/adodb/trunk/class/database/netezza_adodb.php
ThirdParty/adodb/trunk/class/database/oci805_adodb.php
ThirdParty/adodb/trunk/class/database/oci8_adodb.php
ThirdParty/adodb/trunk/class/database/oci8po_adodb.php
ThirdParty/adodb/trunk/class/database/odbc_adodb.php
ThirdParty/adodb/trunk/class/database/odbc_db2_adodb.php
ThirdParty/adodb/trunk/class/database/odbc_mssql_adodb.php
ThirdParty/adodb/trunk/class/database/odbc_oracle_adodb.php
ThirdParty/adodb/trunk/class/database/odbtp_adodb.php
ThirdParty/adodb/trunk/class/database/odbtp_unicode_adodb.php
ThirdParty/adodb/trunk/class/database/oracle_adodb.php
ThirdParty/adodb/trunk/class/database/pdo/ado.php
ThirdParty/adodb/trunk/class/database/pdo/ado5.php
ThirdParty/adodb/trunk/class/database/pdo/ado_access.php
ThirdParty/adodb/trunk/class/database/pdo/ado_mssql.php
ThirdParty/adodb/trunk/class/database/pdo/ads.php
ThirdParty/adodb/trunk/class/database/pdo/borland_ibase.php
ThirdParty/adodb/trunk/class/database/pdo/csv.php
ThirdParty/adodb/trunk/class/database/pdo/db2.php
ThirdParty/adodb/trunk/class/database/pdo/db2oci.php
ThirdParty/adodb/trunk/class/database/pdo/firebird.php
ThirdParty/adodb/trunk/class/database/pdo/ibase.php
ThirdParty/adodb/trunk/class/database/pdo/informix.php
ThirdParty/adodb/trunk/class/database/pdo/informix72.php
ThirdParty/adodb/trunk/class/database/pdo/ldap.php
ThirdParty/adodb/trunk/class/database/pdo/mssql.php
ThirdParty/adodb/trunk/class/database/pdo/mssql_n.php
ThirdParty/adodb/trunk/class/database/pdo/mssqlnative.php
ThirdParty/adodb/trunk/class/database/pdo/mssqlpo.php
ThirdParty/adodb/trunk/class/database/pdo/mysql.php
ThirdParty/adodb/trunk/class/database/pdo/mysqli.php
ThirdParty/adodb/trunk/class/database/pdo/mysqlpo.php
ThirdParty/adodb/trunk/class/database/pdo/mysqlt.php
ThirdParty/adodb/trunk/class/database/pdo/netezza.php
ThirdParty/adodb/trunk/class/database/pdo/oci8.php
ThirdParty/adodb/trunk/class/database/pdo/oci805.php
ThirdParty/adodb/trunk/class/database/pdo/oci8po.php
ThirdParty/adodb/trunk/class/database/pdo/odbc_adodb.php
ThirdParty/adodb/trunk/class/database/pdo/odbc_db2.php
ThirdParty/adodb/trunk/class/database/pdo/odbc_mssql.php
ThirdParty/adodb/trunk/class/database/pdo/odbc_oracle.php
ThirdParty/adodb/trunk/class/database/pdo/odbtp.php
ThirdParty/adodb/trunk/class/database/pdo/odbtp_unicode.php
ThirdParty/adodb/trunk/class/database/pdo/oracle.php
ThirdParty/adodb/trunk/class/database/pdo/pdo.php
ThirdParty/adodb/trunk/class/database/pdo/pdo_mssql.php
ThirdParty/adodb/trunk/class/database/pdo/pdo_mysql.php
ThirdParty/adodb/trunk/class/database/pdo/pdo_oci.php
ThirdParty/adodb/trunk/class/database/pdo/pdo_pgsql.php
ThirdParty/adodb/trunk/class/database/pdo/pdo_sqlite.php
ThirdParty/adodb/trunk/class/database/pdo/pivot.php
ThirdParty/adodb/trunk/class/database/pdo/postgres.php
ThirdParty/adodb/trunk/class/database/pdo/postgres7.php
ThirdParty/adodb/trunk/class/database/pdo/postgres8.php
ThirdParty/adodb/trunk/class/database/pdo/proxy.php
ThirdParty/adodb/trunk/class/database/pdo/sapdb.php
ThirdParty/adodb/trunk/class/database/pdo/sqlanywhere.php
ThirdParty/adodb/trunk/class/database/pdo/sqlite.php
ThirdParty/adodb/trunk/class/database/pdo/sqlitepo.php
ThirdParty/adodb/trunk/class/database/pdo/sybase.php
ThirdParty/adodb/trunk/class/database/pdo/sybase_ase.php
ThirdParty/adodb/trunk/class/database/pdo/vfp.php
ThirdParty/adodb/trunk/class/database/pdo_adodb.php
ThirdParty/adodb/trunk/class/database/pdo_mssql_adodb.php
ThirdParty/adodb/trunk/class/database/pdo_mysql_adodb.php
ThirdParty/adodb/trunk/class/database/pdo_oci_adodb.php
ThirdParty/adodb/trunk/class/database/pdo_pgsql_adodb.php
ThirdParty/adodb/trunk/class/database/pdo_sqlite_adodb.php
ThirdParty/adodb/trunk/class/database/postgres7_adodb.php
ThirdParty/adodb/trunk/class/database/postgres8_adodb.php
ThirdParty/adodb/trunk/class/database/postgres_adodb.php
ThirdParty/adodb/trunk/class/database/proxy_adodb.php
ThirdParty/adodb/trunk/class/database/sapdb_adodb.php
ThirdParty/adodb/trunk/class/database/sqlanywhere_adodb.php
ThirdParty/adodb/trunk/class/database/sqlite_adodb.php
ThirdParty/adodb/trunk/class/database/sqlitepo_adodb.php
ThirdParty/adodb/trunk/class/database/sqlutility.php
ThirdParty/adodb/trunk/class/database/sybase_adodb.php
ThirdParty/adodb/trunk/class/database/sybase_ase_adodb.php
ThirdParty/adodb/trunk/class/database/vfp_adodb.php
Added Paths:
-----------
ThirdParty/adodb/releases/0.25/
ThirdParty/adodb/releases/0.25/htdocs/
ThirdParty/adodb/releases/0.25/htdocs/class/
ThirdParty/adodb/releases/0.25/htdocs/class/database/
ThirdParty/adodb/releases/0.25/htdocs/class/database/access_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/ado5_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/ado_access_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/ado_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/ado_mssql_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/adodb-active-record.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/adodb-active-recordx.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/adodb-csvlib.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/adodb-datadict.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/adodb-error.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/adodb-errorhandler.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/adodb-errorpear.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/adodb-exceptions.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/adodb-iterator.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/adodb-lib.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/adodb-memcache.lib.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/adodb-pager.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/adodb-pear.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/adodb-perf.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/adodb-php4.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/adodb-time.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/adodb-xmlschema.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/adodb-xmlschema03.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/adodb.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/contrib/
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/contrib/toxmlrpc.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/datadict/
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/datadict/datadict-access.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/datadict/datadict-db2.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/datadict/datadict-firebird.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/datadict/datadict-generic.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/datadict/datadict-ibase.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/datadict/datadict-informix.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/datadict/datadict-mssql.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/datadict/datadict-mssqlnative.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/datadict/datadict-mysql.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/datadict/datadict-oci8.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/datadict/datadict-postgres.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/datadict/datadict-sapdb.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/datadict/datadict-sqlite.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/datadict/datadict-sybase.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-access.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-ado.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-ado5.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-ado_access.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-ado_mssql.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-ads.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-borland_ibase.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-csv.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-db2.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-db2oci.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-db2ora.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-fbsql.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-firebird.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-ibase.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-informix.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-informix72.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-ldap.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-mssql.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-mssql_n.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-mssqlnative.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-mssqlpo.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-mysql.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-mysqli.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-mysqlpo.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-mysqlt.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-netezza.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-oci8.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-oci805.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-oci8po.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-odbc.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-odbc_db2.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-odbc_mssql.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-odbc_oracle.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-odbtp.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-odbtp_unicode.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-oracle.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-pdo.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-pdo_mssql.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-pdo_mysql.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-pdo_oci.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-pdo_pgsql.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-pdo_sqlite.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-postgres.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-postgres64.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-postgres7.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-postgres8.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-proxy.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-sapdb.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-sqlanywhere.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-sqlite.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-sqlitepo.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-sybase.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-sybase_ase.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/drivers/adodb-vfp.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-ar.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-bg.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-bgutf8.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-ca.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-cn.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-cz.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-da.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-de.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-en.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-es.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-esperanto.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-fa.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-fr.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-hu.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-it.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-nl.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-pl.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-pt-br.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-ro.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-ru1251.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-sv.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb-uk1251.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/lang/adodb_th.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/license.txt
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/pear/
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/pear/Auth/
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/pear/Auth/Container/
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/pear/Auth/Container/ADOdb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/pear/readme.Auth.txt
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/perf/
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/perf/perf-db2.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/perf/perf-informix.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/perf/perf-mssql.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/perf/perf-mssqlnative.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/perf/perf-mysql.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/perf/perf-oci8.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/perf/perf-postgres.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/pivottable.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/readme.txt
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/rsfilter.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/server.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/toexport.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/tohtml.inc.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/xmlschema.dtd
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/xmlschema03.dtd
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/xsl/
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/xsl/convert-0.1-0.2.xsl
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/xsl/convert-0.1-0.3.xsl
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/xsl/convert-0.2-0.1.xsl
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/xsl/convert-0.2-0.3.xsl
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/xsl/remove-0.2.xsl
ThirdParty/adodb/releases/0.25/htdocs/class/database/adodb/xsl/remove-0.3.xsl
ThirdParty/adodb/releases/0.25/htdocs/class/database/ads_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/borland_ibase_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/csv_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/database.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/databasefactory.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/db2_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/db2oci_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/fbsql_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/firebird_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/ibase_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/index.html
ThirdParty/adodb/releases/0.25/htdocs/class/database/informix72_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/informix_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/ldap_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/mssql_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/mssql_n_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/mssqlnative_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/mssqlpo_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/mysql_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/mysqldatabase.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/mysqli_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/mysqlpo_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/mysqlt_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/netezza_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/oci805_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/oci8_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/oci8po_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/odbc_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/odbc_db2_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/odbc_mssql_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/odbc_oracle_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/odbtp_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/odbtp_unicode_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/oracle_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/ado.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/ado5.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/ado_access.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/ado_mssql.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/ads.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/borland_ibase.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/csv.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/db2.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/db2oci.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/firebird.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/ibase.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/index.html
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/informix.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/informix72.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/ldap.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/mssql.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/mssql_n.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/mssqlnative.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/mssqlpo.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/mysql.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/mysqli.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/mysqlpo.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/mysqlt.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/netezza.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/oci8.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/oci805.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/oci8po.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/odbc_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/odbc_db2.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/odbc_mssql.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/odbc_oracle.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/odbtp.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/odbtp_unicode.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/oracle.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/pdo.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/pdo_mssql.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/pdo_mysql.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/pdo_oci.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/pdo_pgsql.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/pdo_sqlite.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/pivot.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/postgres.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/postgres7.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/postgres8.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/proxy.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/sapdb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/sqlanywhere.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/sqlite.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/sqlitepo.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/sybase.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/sybase_ase.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo/vfp.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo_mssql_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo_mysql_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo_oci_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo_pgsql_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/pdo_sqlite_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/postgres7_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/postgres8_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/postgres_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/proxy_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/sapdb_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/sqlanywhere_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/sqlite_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/sqlitepo_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/sqlutility.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/sybase_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/sybase_ase_adodb.php
ThirdParty/adodb/releases/0.25/htdocs/class/database/vfp_adodb.php
Added: ThirdParty/adodb/releases/0.25/htdocs/class/database/access_adodb.php
===================================================================
--- ThirdParty/adodb/releases/0.25/htdocs/class/database/access_adodb.php (rev 0)
+++ ThirdParty/adodb/releases/0.25/htdocs/class/database/access_adodb.php 2012-01-29 21:48:08 UTC (rev 8830)
@@ -0,0 +1,1774 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * Factory Class for Xoops Database
+ *
+ * @copyright The XOOPS project http://sourceforge.net/projects/xoops/
+ * @license http://www.fsf.org/copyleft/gpl.html GNU public license
+ * @package kernel
+ * @subpackage database
+ * @since 2.6.0
+ * @author Kazumi Ono <on...@xo...>
+ * @author Simon Roberts <si...@xo...>
+ * @version $Id: mysqldatabase.php 3775 2009-10-23 10:29:51Z trabis $
+ */
+defined('XOOPS_ROOT_PATH') or die('Restricted access');
+
+/**
+ *
+ * @package kernel
+ * @subpackage database
+ * @author Kazumi Ono <on...@xo...>
+ * @copyright copyright (c) 2000-2003 XOOPS.org
+ */
+
+/**
+ * base class
+ */
+include_once XOOPS_ROOT_PATH . '/class/database/database.php';
+include_once XOOPS_ROOT_PATH . '/class/database/adodb/adodb.inc.php';
+include_once XOOPS_ROOT_PATH . '/class/database/pdo/'.XOOPS_DB_TYPE.'.php';
+
+// xoops_load( 'xoopsdatabase' );
+/**
+ * connection to a mysql database
+ *
+ * @abstrac
+ * @author Kazumi Ono <on...@xo...>
+ * @copyright copyright (c) 2000-2003 XOOPS.org
+ * @package kernel
+ * @subpackage database
+ */
+class XoopsAccess_ADODBDatabase extends XoopsDatabase
+{
+ /**
+ * Database connection
+ *
+ * @var resource
+ */
+ var $conn;
+
+ /**
+ * connect to the database
+ *
+ * @param bool $selectdb select the database now?
+ * @return bool successful?
+ */
+ public function connect($selectdb = true)
+ {
+ static $db_charset_set;$this->allowWebChanges = ($_SERVER['REQUEST_METHOD'] != 'GET');
+
+ // This is a global variable that determines how arrays are retrieved by recordsets. The recordset saves this value on creation (eg.//
+ // in Execute( ) or SelectLimit( )), and any subsequent changes to $ADODB_FETCH_MODE have no affect on existing recordsets, only on
+ // recordsets created in the future
+ $ADODB_FETCH_MODE = ADODB_FETCH_ASSOC; // Options: ADODB_FETCH_DEFAULT, ADODB_FETCH_NUM, ADODB_FETCH_ASSOC, ADODB_FETCH_BOTH
+
+ // If you are using recordset caching, this is the directory to save your recordsets in. Define this before you call any caching
+ // public functions such as CacheExecute( ). We recommend setting register_globals=off in php.ini if you use this feature for security reasons.
+ $ADODB_CACHE_DIR = XOOPS_VAR_PATH . DIRECTORY_SEPARATOR . 'caches'. DIRECTORY_SEPARATOR .'adodb_cache';
+
+
+ // If the database driver API does not support counting the number of records returned in a SELECT statement, the public function RecordCount()
+ // is emulated when the global variable $ADODB_COUNTRECS is set to true, which is the default. We emulate this by buffering the records,
+ // which can take up large amounts of memory for big recordsets. Set this variable to false for the best performance. This variable is
+ // checked every time a query is executed, so you can selectively choose which recordsets to count.
+ $ADODB_COUNTRECS = true;
+
+ //Determines the language used in MetaErrorMsg(). The default is 'en', for English. To find out what languages are supported, see the
+ // files in adodb/lang/adodb-$lang.inc.php, where $lang is the supported language.
+ $ADODB_LANG = 'en';
+
+ // Determines whether to right trim CHAR fields (and also VARCHAR for ibase/firebird). Set to true to trim. Default is false.
+ // Currently works for oci8po, ibase and firebird drivers.
+ $ADODB_ANSI_PADDING_OFF = true;
+
+
+ $this->conn = @NewADOConnection(XOOPS_DB_DSN);
+ $this->conn->setFetchMode($ADODB_FETCH_MODE);
+
+
+ if (!$this->conn) {
+ $this->logger->addQuery('', $this->error(), $this->errno());
+ return false;
+ }
+ }
+
+ /**
+ * check if connected to a database
+ *
+ * @return true if connected to database
+ */
+ public function isConnected()
+ {
+ return @$this->conn->IsConnected(); // will use auto_increment
+ }
+
+ /**
+ * execute a sql question to the database
+ *
+ * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful
+ * @param $inputarr parameter can be used for binding variables to parameters
+ * @return ADORecordset Objects
+ */
+ public function execute($sql, $inputarr=false)
+ {
+ return @$this->conn->Execute($sql, $inputarr); // will use auto_increment
+ }
+
+ /**
+ * Similar to Execute, except that the recordset is cached for $secs2cache seconds
+ *
+ * @param $secs2cache the recordset is cached for $secs2cache seconds
+ * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful
+ * @param $inputarr parameter can be used for binding variables to parameters
+ * @return ADODBRecordset Object from cache
+ */
+ public function executeCache($secs2cache,$sql,$inputarr=false)
+ {
+ return @$this->conn->CacheExecute($secs2cache,$sql,$inputarr);
+ }
+
+ /**
+ * Execute an Oracle stored procedure, and returns an Oracle REF cursor variable as a regular ADOdb recordset
+ *
+ * @param $cursorName Oracle REF cursor variable as a regular ADOdb recordset
+ * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful
+ * @param $parameters parameter can be used for binding variables to parameters
+ * @returntrue if connected to database
+ */
+ public function executeCursor($sql,$cursorName='rs',$parameters=false)
+ {
+ if (XOOPS_DB_TYPE!='oci8_adodb')
+ trigger_error('ADODB: Function not supported by database type! Function: '.__FUNC__.'; Class: '.__CLASS__);
+ else
+ return @$this->conn->ExecuteCursor($sql,$cursorName,$parameters);
+ }
+
+ /**
+ * Returns a recordset if successful. Returns false otherwise. Performs a select statement.
+ *
+ * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful
+ * @param $numrows number of rows to return
+ * @param $offset offset in record count to load from.
+ * @param $inputarr parameter can be used for binding variables to parameters
+ * @return ADORecordset Object
+ */
+ public function fetchSelectLimit($sql,$numrows=-1,$offset=-1,$inputarr=false)
+ {
+ return @$this->conn->SelectLimit($sql,$numrows,$offset,$inputarr);
+ }
+
+ /**
+ * Similar to SelectLimit, except that the recordset returned is cached for $secs2cache seconds
+ *
+ * @param $secs2cache the recordset is cached for $secs2cache seconds
+ * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful
+ * @param $numrows number of rows to return
+ * @param $offset offset in record count to load from.
+ * @param $inputarr parameter can be used for binding variables to parameters
+ * @return true if connected to database
+ */
+ public function fetchCacheSelectLimit($secs2cache, $sql, $numrows=-1,$offset=-1,$inputarr=false)
+ {
+ return @$this->conn->CacheSelectLimit($secs2cache, $sql, $numrows,$offset,$inputarr);
+ }
+
+ /**
+ * Flush (delete) any cached recordsets for the SQL statement $sql in $ADODB_CACHE_DIR
+ *
+ * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful
+ * @returntrue if connected to database
+ */
+ public function flushCache($sql=false)
+ {
+ return @$this->conn->CacheFlush($sql);
+ }
+
+ /**
+ * Prepares (compiles) an SQL query for repeated execution. Bind parameters are denoted by ?
+ * except for the oci8 driver, which uses the traditional Oracle :varname convention.
+ *
+ * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful
+ * @returntrue if connected to database
+ */
+ public function getPrepare($sql)
+ {
+ return @$this->conn->Prepare($sql);
+ }
+
+ /**
+ * hen calling stored procedures in mssql and oci8 (oracle), and you might want to directly bind to parameters
+ * except for the oci8 driver, which uses the traditional Oracle :varname convention.
+ *
+ * @param $cursor Oracle REF cursor variable as a regular ADOdb recordset
+ * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful
+ * @returntrue if connected to database
+ */
+ public function getPrepareSP($sql, $cursor=false)
+ {
+ return @$this->conn->Prepare($sql);
+ }
+
+ /**
+ * Binds a PHP variable as input to a stored procedure variable.
+ *
+ * @param $stmt is the value returned by PrepareSP()
+ * @param $var is the PHP variable you want to bind
+ * @param $name is the name of the stored
+ * @param $maxLen the maximum length of the data to bind
+ * @param $type which is database dependant
+ * @returntrue if connected to database
+ */
+ public function setInParameter($stmt, $var, $name, $maxLen = 4000, $type = false )
+ {
+ return @$this->conn->InParameter($stmt, $var, $name, $maxLen, $type);
+ }
+
+ /**
+ * Binds a PHP variable as output from a stored procedure variable.
+ *
+ * @param $stmt is the value returned by PrepareSP()
+ * @param $var is the PHP variable you want to bind
+ * @param $name is the name of the stored
+ * @param $maxLen the maximum length of the data to bind
+ * @param $type which is database dependant
+ * @returntrue if connected to database
+ */
+ public function setOutParameter($stmt, $var, $name, $maxLen = 4000, $type = false )
+ {
+ return @$this->conn->OutParameter($stmt, $var, $name, $maxLen, $type);
+ }
+
+ /**
+ * Binds a PHP variable as output from a stored procedure variable.
+ *
+ * @param $stmt is the value returned by PrepareSP()
+ * @param $var is the PHP variable you want to bind
+ * @param $name is the name of the stored
+ * @param $isOutput Indicates direction of parameter 0/false=IN 1=OUT 2= IN/OUT
+ * @param $maxLen the maximum length of the data to bind
+ * @param $type which is database dependant
+ * @returntrue if connected to database
+ */
+ public function setParameter($stmt, $var, $name, $isOutput=false, $maxLen = 4000, $type = false )
+ {
+ trigger_error('ADODB: This public function is deprecated. Use InParameter( ) and OutParameter( ) instead. - Function: '.__FUNC__.'; Class='.__CLASS__);
+ return @$this->conn->Parameter($stmt, $var, $name, $isOutput, $maxLen, $types);
+ }
+
+ /**
+ * Generates a bind placeholder portably.
+ * For most databases, the bind placeholder is "?"
+ *
+ * @param $name string to be encoded as parameter binding
+ * @return string portably define an SQL statement with bind parameters
+ */
+ public function setParam($name)
+ {
+ return @$this->conn->Param($name);
+ }
+
+ /**
+ * Executes the SQL and returns the first field of the first row
+ *
+ * @param $sql parameter SQL statement and return derived class of ADORecordSet if successful
+ * @return string the first field of the first rowe
+ */
+ public function getOne($sql)
+ {
+ return @$this->conn->GetOne($sql);
+ }
+
+ /**
+ * Returns an associative array for the given query $sql with optional bind parameters in $inputarr
+ *
+ * @param $sql query
+ * @param $inputarr optional bind parameters
+ * @param $force_array is set to true, when an array is created for each value
+ * @param $first2cols Indicates direction of parameter
+ * @return array an associative array for the given query
+ */
+ public function getAssoc($sql,$inputarr=false,$force_array=false,$first2cols=false)
+ {
+ return @$this->conn->GetAssoc($sql,$inputarr,$force_array,$first2cols);
+ }
+
+ /**
+ * Caching version of GetAssoc public function above
+ *
+ * @param $secs2cache the recordset is cached for $secs2cache seconds
+ * @param $sql query
+ * @param $inputarr optional bind parameters
+ * @param $force_array is set to true, when an array is created for each value
+ * @param $first2cols Indicates direction of parameter
+ * @return array an associative array for the given query
+ */
+ public function getCacheAssoc($secs2cache,$sql,$inputarr=false,$force_array=false,$first2cols=false)
+ {
+ return @$this->conn->GetAssoc($sql,$inputarr,$force_array,$first2cols);
+ }
+
+
+ /**
+ * Returns the median value of $field for $table
+ *
+ * @param $table table name to get median from
+ * @param $field field in table to get median from
+ * @param $where The $where clause is optional. If used, make sure the WHERE is included, as in "WHERE name > 'A'"
+ * @return string the median value of $field for $table
+ */
+ public function getMedian($table, $field, $where='')
+ {
+ return @$this->conn->GetMedian($table, $field, $where);
+ }
+
+ /**
+ * Executes the SQL and returns the first row as an array
+ *
+ * @param $sql query
+ * @return array First row as an array
+ */
+ public function getRow($sql)
+ {
+ return @$this->conn->GetRow($sql);
+ }
+
+ /**
+ * Executes the SQL and returns the first row as an array, <br />
+ * except that the recordset is serialized and cached
+ *
+ * @param integer $secs2cache number of seconds to cache for
+ * @param string $sql query
+ * @return array First row as an array
+ */
+ public function getCacheRow($secs2cache, $sql)
+ {
+ return @$this->conn->CacheGetRow($secs2cache, $sql);
+ }
+
+ /**
+ * Executes the SQL and returns the all the rows as a 2-dimensional array
+ * The recordset is discarded for you automatically
+ *
+ * @param string $sql query
+ * @param array $inputarr parameters to bind to sql query
+ * @return array he all the rows as a 2-dimensional array
+ */
+ public function getAll($sql,$inputarr=false)
+ {
+ return @$this->conn->GetAll($sql,$inputarr); // will use auto_increment
+ }
+
+ /**
+ * Executes the SQL and returns the all the rows as a 2-dimensional array
+ * Similar to above GetAll public functions, except that the recordset is serialized and cached
+ *
+ * @param array $secs2cache seconds to cache query
+ * @param string $sql query
+ * @returntrue if connected to database
+ */
+ public function getCacheAll($secs2cache, $sql)
+ {
+ return @$this->conn->CacheGetAll($secs2cache, $sql);
+ }
+
+ /**
+ * Executes the SQL and returns all elements of the first column as a 1-dimensional array
+ *
+ * @param string $sql query
+ * @return array all elements of the first column as a 1-dimensional array
+ */
+ public function fetchGetCol($sql)
+ {
+ return @$this->conn->GetCol($sql);
+ }
+
+ /**
+ * Executes the SQL and returns all elements of the first column as a 1-dimensional array
+ * Similar to above GetCol public functions, except that the recordset is serialized and cached
+ *
+ * @param array $secs2cache seconds to cache query
+ * @param string $sql query
+ * @return array all elements of the first column as a 1-dimensional array
+ */
+ public function fetchCacheGetCol($secs2cache, $sql)
+ {
+ return @$this->conn->CacheGetCol($secs2cache, $sql);
+ }
+
+ /**
+ * Try to update a record, and if the record is not found, an insert statement is generated and executed
+ *
+ * @param string $table which is the table name
+ * @param array $arrFields which is an associative array where the keys are the field names
+ * @param array $keyCols is the name of the primary key, or an array of field names if it is a compound key
+ * @param boolean $autoQuote will quote all values that are non-numeric; auto-quoting will not quote nullss
+ * @return integer Try to update a record, and if the record is not found, an insert statement is generated and executed
+ */
+ public function setReplace($table, $arrFields, $keyCols,$autoQuote=false)
+ {
+ return @$this->conn->Replace($table, $arrFields, $keyCols,$autoQuote);
+ }
+
+ /**
+ * AutoExecute() inserts or updates $table given an array of $arrField.
+ *
+ * @param string $table which is the table name.
+ * @param array $arrFields which is an associative array where the keys are the field names.
+ * @param array $mode is enumerator either DB_AUTOQUERY_INSERT or DB_AUTOQUERY_UPDATE.
+ * @param string $where clause is required if $mode == 'UPDATE'.
+ * @param boolean $forceUpdate false then we will query the database first and check if the field value returned by <br />
+ the query matches the current field value.
+ * @param boolean $magicq is used to indicate whether magic quotes are enabled
+ * @returntrue if connected to database
+ */
+ public function setAutoExecute($table, $arrFields, $mode, $where=false, $forceUpdate=true,$magicq=false)
+ {
+ return @$this->conn->AutoExecute($table, $arrFields, $mode, $where, $forceUpdate,$magicq);
+ }
+
+ /**
+ * Generate SQL to update a table given a recordset $rs, and the modified fields of the array $arrFields
+ * (which must be an associative array holding the column names and the new values).s
+ *
+ * @param object $rs ADORecordset Object
+ * @param array $arrFields modified fields of the array.
+ * @param boolean $forceUpdate is true, then we also generate the SQL even if $arrFields is identical to $rs->fields.
+ * @param boolean $magicq is used to indicate whether magic quotes are enabled.
+ * @param boolean $forcenulls is used to indicate whether NULLS are forced with the update.
+ * @return string Update SQL Query/Question
+ */
+ public function getUpdateSQL(&$rs, $arrFields, $forceUpdate=false,$magicq=false,$forcenulls=false)
+ {
+ return @$this->conn->GetUpdateSQL($rs, $arrFields, $forceUpdate,$magicq,$forcenulls);
+ }
+
+ /**
+ * Generate SQL to insert into a table given a recordset $rs. Requires the query to be associative.
+ *
+ * @param object $rs ADORecordset Object
+ * @param array $arrFields modified fields of the array.
+ * @param boolean $magicq is used to indicate whether magic quotes are enabled.
+ * @param boolean $forcenulls is used to indicate whether NULLS are forced with the update.
+ * @return string Update SQL Query/Question
+ */
+ public function getInsertSQL(&$rs, $arrFields,$magicq=false,$forcenulls=false)
+ {
+ return @$this->conn->GetInsertSQL($rs, $arrFields, $magicq,$forcenulls);
+ }
+
+ /**
+ * Allows you to store a blob (in $val) into $table into $column in a row at $where
+ *
+ * @param string $table Table in database for blob
+ * @param string $column Column in table in database for blob.
+ * @param string $val Value to set blob.
+ * @param string $where SQL Where clause include ie. WHERE 1=1.
+ * @return boolean true if successful, false otherwise
+ */
+ public function setUpdateBlob($table, $column, $val, $where)
+ {
+ return @$this->conn->UpdateBlob($table, $column, $val, $where);
+ }
+
+ /**
+ * Allows you to store a clob (in $val) into $table into $column in a row at $where.
+ * Similar to UpdateBlob (see above), but for Character Large OBjects
+ *
+ * @param string $table Table in database for blob
+ * @param string $column Column in table in database for blob.
+ * @param string $val Value to set blob.
+ * @param string $where SQL Where clause include ie. WHERE 1=1.
+ * @return boolean true if successful, false otherwise
+ */
+ public function setUpdateClob($table,$column,$val,$where)
+ {
+ return @$this->conn->UpdateClob($table,$column,$val,$where);
+ }
+
+ /**
+ * Allows you to store a blob (in $val) into $table into $column in a row at $where
+ * Similar to UpdateBlob, except that we pass in a file path to where the blob resides.
+ *
+ * @param string $table Table in database for blob
+ * @param string $column Column in table in database for blob.
+ * @param string $path Real Path of the Blob to be put in the database.
+ * @param string $where SQL Where clause include ie. WHERE 1=1.
+ * @param enum $blobtype Type field for blob default ie. BLOB.
+ * @return boolean true if successful, false otherwise
+ */
+ public function setUpdateBlobFile($table,$column,$path,$where,$blobtype='BLOB')
+ {
+ return @$this->conn->UpdateBlobFile($table,$column,$path,$where,$blobtype);
+ }
+
+
+ /**
+ * Some databases require blob's to be encoded manually before uploading
+ *
+ * @param string $blob data to be encoded.
+ * @return string the encoded blob value
+ */
+ public function getBlobEncode($blob)
+ {
+ return @$this->conn->BlobEncode($blob);
+ }
+
+ /**
+ * Some databases require blob's to be decoded manually after doing a select statement
+ *
+ * @param string $blob data to be encoded.
+ * @param integer $maxblobsize The default maxblobsize is set in $connection->maxblobsize, which is set to 256K.
+ * @return string the decoded blob value
+ */
+ public function getBlobDecode($blob, $maxblobsize=false)
+ {
+ return @$this->conn->BlobDecode($blob,$maxblobsize);
+ }
+
+ /**
+ * Used for pagination of recordset. $page is 1-based
+ *
+ * @param string $sql data to be encoded.
+ * @param integer $nrows Number of rows per page
+ * @param integer $page Page Number on.
+ * @param array $inputarr Variable to bind to the SQL statement (optional)
+ * @return string the decoded blob value
+ */
+ public function fetchPageExecute($sql, $nrows, $page, $inputarr=false)
+ {
+ return @$this->conn->PageExecute($sql, $nrows, $page, $inputarr);
+ }
+
+ /**
+ * Used for pagination of recordset. $page is 1-based
+ * Caching version of PageExecute
+ *
+ * @param integer $secs2cache Seconds to hold in cache
+ * @param string $sql data to be encoded.
+ * @param integer $nrows Number of rows per page
+ * @param integer $page Page Number on.
+ * @param array $inputarr Variable to bind to the SQL statement (optional)
+ * @return string the decoded blob value
+ */
+ public function fetchCachePageExecute($secs2cache, $sql, $nrows, $page, $inputarr=false)
+ {
+ return @$this->conn->CachePageExecute($secs2cache, $sql, $nrows, $page, $inputarr);
+ }
+
+ /**
+ * Start a monitored transaction. As SQL statements are executed, ADOdb will monitor for SQL errors,
+ * and if any are detected, when CompleteTrans() is called, we auto-rollback.
+ *
+ * @return boolean true if successful.
+ */
+ public function setStartTrans()
+ {
+ return @$this->conn->StartTrans();
+ }
+
+ /**
+ * Start a monitored transaction. As SQL statements are executed, ADOdb will monitor for SQL errors,
+ * and if any are detected, when CompleteTrans() is called, we auto-rollback.
+ *
+ * @return boolean true if successful.
+ */
+ public function setBeginTrans()
+ {
+ return @$this->conn->BeginTrans();
+ }
+
+
+ /**
+ * Complete a transaction called with StartTrans()
+ * This public function monitors for SQL errors, and will commit if no errors have occured, otherwise it will rollback.
+ *
+ * @param boolean $autoComplete is true monitor sql errors and commit and rollback as appropriate
+ * @return boolean true on commit, false on rollback
+ */
+ public function setCompleteTrans($autoComplete=true)
+ {
+ return @$this->conn->CompleteTrans($autoComplete);
+ }
+
+ /**
+ * Fail a transaction started with StartTrans(). The rollback will only occur when CompleteTrans() is called
+ *
+ * @return boolean true
+ */
+ public function isFailTrans()
+ {
+ return @$this->conn->FailTrans();
+ }
+
+ /**
+ * Check whether smart transaction has failed, eg. returns true if SQL execution failed, or FailTrans() was called.
+ *
+ * @return boolean true
+ */
+ public function hasFailedTrans()
+ {
+ return @$this->conn->HasFailedTrans();
+ }
+
+ /**
+ * SetTransactionMode allows you to pass in the transaction mode to use for all subsequent transactions for that connection session
+ *
+ * @param enum $mode Supported values: READ UNCOMMITTED; READ COMMITTED; REPEATABLE READ; SERIALIZABLE; (oci8) SNAPSHOT; READ ONLY.
+ * @return string the decoded blob value
+ */
+ public function setTransactionMode($mode )
+ {
+ return @$this->conn->SetTransactionMode($mode);
+ }
+
+ /**
+ * End a transaction successfully
+ *
+ * @param boolean $ok you pass the parameter false, the data is rolled back. .
+ * @return boolean will return true also as data is always committed.
+ */
+ public function setCommitTrans($ok=true)
+ {
+ return @$this->conn->CommitTrans($ok);
+ }
+
+ /**
+ * End a transaction, rollback all changes
+ *
+ * @param boolean $ok you pass the parameter false, the data is rolled back. .
+ * @return boolean true if successful. If the database does not support transactions, will return false as data is never rollbacked.
+ */
+ public function setRollbackTrans($ok=true)
+ {
+ return @$this->conn->RollbackTrans($ok);
+ }
+
+ /**
+ * Sets the current fetch mode for the connection and stores.
+ *
+ * @param enum $mode Legal modes are ADODB_FETCH_ASSOC and ADODB_FETCH_NUM.
+ * @return string the decoded blob value
+ */
+ public function setFetchMode($mode)
+ {
+ return @$this->conn->SetFetchMode($mode);
+ }
+
+ /**
+ * Generates the sql string used to concatenate $sa, $sb, etc together
+ *
+ * @param string $sa string to concatinate. (required)
+ * @param string $sb string to concatinate. (required)
+ * @param string $sc string to concatinate. (optional)
+ * @param string $sd string to concatinate. (optional)
+ * @param string $se string to concatinate. (optional)
+ * @param string $sf string to concatinate. (optional)
+ * @param string $sg string to concatinate. (optional)
+ * @param string $sh string to concatinate. (optional)
+ * @param string $si string to concatinate. (optional)
+ * @param string $sj string to concatinate. (optional)
+ * @param string $sk string to concatinate. (optional)
+ * @param string $sl string to concatinate. (optional)
+ * @param string $sm string to concatinate. (optional)
+ * @param string $sn string to concatinate. (optional)
+ * @param string $so string to concatinate. (optional)
+ * @param string $sp string to concatinate. (optional)
+ * @param string $sq string to concatinate. (optional)
+ * @param string $sr string to concatinate. (optional)
+ * @param string $ss string to concatinate. (optional)
+ * @param string $st string...
[truncated message content] |
|
From: <ma...@us...> - 2012-01-29 20:14:00
|
Revision: 8829
http://xoops.svn.sourceforge.net/xoops/?rev=8829&view=rev
Author: mageg
Date: 2012-01-29 20:13:54 +0000 (Sun, 29 Jan 2012)
Log Message:
-----------
Fix an error when user log out without the profile module
Modified Paths:
--------------
XoopsCore/branches/2.6.x/2.6.0/htdocs/user.php
Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/user.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/user.php 2012-01-29 17:36:12 UTC (rev 8828)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/user.php 2012-01-29 20:13:54 UTC (rev 8829)
@@ -24,7 +24,7 @@
*/
include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mainfile.php';
-$xoopsPreload =& XoopsPreload::getInstance();
+$xoopsPreload = XoopsPreload::getInstance();
$xoopsPreload->triggerEvent('core.user.start');
$xoops = Xoops::getInstance();
@@ -88,8 +88,8 @@
if ($op == 'logout') {
$message = '';
// Regenerate a new session id and destroy old session
- $xoops->sess_handler->regenerate_id(true);
- $SESSION = array();
+ $xoops->getHandlerSession()->regenerate_id(true);
+ $_SESSION = array();
setcookie($xoops->getConfig('usercookie'), 0, -1, '/', XOOPS_COOKIE_DOMAIN, 0);
setcookie($xoops->getConfig('usercookie'), 0, -1, '/');
// clear entry from online users table
@@ -97,7 +97,7 @@
$xoops->getHandlerOnline()->destroy($xoops->user->getVar('uid'));
}
$message = _US_LOGGEDOUT . '<br />' . _US_THANKYOUFORVISIT;
- $xoops->redirect('index.php', 1, $message);
+ $xoops->redirect(XOOPS_URL . '/', 1, $message);
}
if ($op == 'delete') {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <wis...@us...> - 2012-01-29 17:36:18
|
Revision: 8828
http://xoops.svn.sourceforge.net/xoops/?rev=8828&view=rev
Author: wishcraft
Date: 2012-01-29 17:36:12 +0000 (Sun, 29 Jan 2012)
Log Message:
-----------
VOD 1.17 Beta - Install Fix and Date Fixes - Currency Form Fix - see changelog.txt
Modified Paths:
--------------
XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/forms.vod.php
XoopsModules/vod/trunk/htdocs/modules/vod/include/forms.vod.php
Modified: XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/forms.vod.php
===================================================================
--- XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/forms.vod.php 2012-01-29 16:59:08 UTC (rev 8827)
+++ XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/forms.vod.php 2012-01-29 17:36:12 UTC (rev 8828)
@@ -323,22 +323,22 @@
$ele['state'] = new XoopsFormHidden('state['.$id.']', 'new' );
}
- $ele['name'] = new XoopsFormText(($titles==true?constant('_FRM_VOD_FORM_CURRENCY_NAME'):''), $id.'[name]', 35, 128, $object->getVar('name') );
- $ele['name']->setDescription(($titles==true?constant('_FRM_VOD_FORM_DESC_CURRENCY_NAME'):''));
- $ele['alias'] = new XoopsFormText(($titles==true?constant('_FRM_VOD_FORM_CURRENCY_ALIAS'):''), $id.'[alias]', 35, 128, $object->getVar('alias') );
- $ele['alias']->setDescription(($titles==true?constant('_FRM_VOD_FORM_DESC_CURRENCY_ALIAS'):''));
- $ele['code'] = new XoopsFormText(($titles==true?constant('_FRM_VOD_FORM_CURRENCY_CODE'):''), $id.'[code]', 5, 3, $object->getVar('code') );
- $ele['code']->setDescription(($titles==true?constant('_FRM_VOD_FORM_DESC_CURRENCY_CODE'):''));
- $ele['left'] = new XoopsFormText(($titles==true?constant('_FRM_VOD_FORM_CURRENCY_LEFT'):''), $id.'[left]', 5, 2, $object->getVar('left') );
- $ele['left']->setDescription(($titles==true?constant('_FRM_VOD_FORM_DESC_CURRENCY_LEFT'):''));
- $ele['right'] = new XoopsFormText(($titles==true?constant('_FRM_VOD_FORM_CURRENCY_RIGHT'):''), $id.'[right]', 5, 2, $object->getVar('right') );
- $ele['right']->setDescription(($titles==true?constant('_FRM_VOD_FORM_DESC_CURRENCY_RIGHT'):''));
- $ele['decimals'] = new XoopsFormText(($titles==true?constant('_FRM_VOD_FORM_CURRENCY_DECIMALS'):''), $id.'[decimals]', 15, 15, $object->getVar('decimals') );
- $ele['decimals']->setDescription(($titles==true?constant('_FRM_VOD_FORM_DESC_CURRENCY_DECIMALS'):''));
- $ele['rate'] = new XoopsFormText(($titles==true?constant('_FRM_VOD_FORM_CURRENCY_RATE'):''), $id.'[rate]', 20, 19, $object->getVar('rate') );
- $ele['rate']->setDescription(($titles==true?constant('_FRM_VOD_FORM_DESC_CURRENCY_RATE'):''));
- $ele['default'] = new XoopsFormRadioYN(($titles==true?constant('_FRM_VOD_FORM_CURRENCY_DEFAULT'):''), $id.'[default]', $object->getVar('default') );
- $ele['default']->setDescription(($titles==true?constant('_FRM_VOD_FORM_DESC_CURRENCY_DEFAULT'):''));
+ $ele['name'] = new XoopsFormText(($as_array==false?constant('_FRM_VOD_FORM_CURRENCY_NAME'):''), $id.'[name]', 35, 128, $object->getVar('name') );
+ $ele['name']->setDescription(($as_array==false?constant('_FRM_VOD_FORM_DESC_CURRENCY_NAME'):''));
+ $ele['alias'] = new XoopsFormText(($as_array==false?constant('_FRM_VOD_FORM_CURRENCY_ALIAS'):''), $id.'[alias]', 35, 128, $object->getVar('alias') );
+ $ele['alias']->setDescription(($as_array==false?constant('_FRM_VOD_FORM_DESC_CURRENCY_ALIAS'):''));
+ $ele['code'] = new XoopsFormText(($as_array==false?constant('_FRM_VOD_FORM_CURRENCY_CODE'):''), $id.'[code]', 5, 3, $object->getVar('code') );
+ $ele['code']->setDescription(($as_array==false?constant('_FRM_VOD_FORM_DESC_CURRENCY_CODE'):''));
+ $ele['left'] = new XoopsFormText(($as_array==false?constant('_FRM_VOD_FORM_CURRENCY_LEFT'):''), $id.'[left]', 5, 2, $object->getVar('left') );
+ $ele['left']->setDescription(($as_array==false?constant('_FRM_VOD_FORM_DESC_CURRENCY_LEFT'):''));
+ $ele['right'] = new XoopsFormText(($as_array==false?constant('_FRM_VOD_FORM_CURRENCY_RIGHT'):''), $id.'[right]', 5, 2, $object->getVar('right') );
+ $ele['right']->setDescription(($as_array==false?constant('_FRM_VOD_FORM_DESC_CURRENCY_RIGHT'):''));
+ $ele['decimals'] = new XoopsFormText(($as_array==false?constant('_FRM_VOD_FORM_CURRENCY_DECIMALS'):''), $id.'[decimals]', 15, 15, $object->getVar('decimals') );
+ $ele['decimals']->setDescription(($as_array==false?constant('_FRM_VOD_FORM_DESC_CURRENCY_DECIMALS'):''));
+ $ele['rate'] = new XoopsFormText(($as_array==false?constant('_FRM_VOD_FORM_CURRENCY_RATE'):''), $id.'[rate]', 20, 19, $object->getVar('rate') );
+ $ele['rate']->setDescription(($as_array==false?constant('_FRM_VOD_FORM_DESC_CURRENCY_RATE'):''));
+ $ele['default'] = new XoopsFormRadioYN(($as_array==false?constant('_FRM_VOD_FORM_CURRENCY_DEFAULT'):''), $id.'[default]', $object->getVar('default') );
+ $ele['default']->setDescription(($as_array==false?constant('_FRM_VOD_FORM_DESC_CURRENCY_DEFAULT'):''));
$ele['op'] = new XoopsFormHidden('op', 'currency' );
$ele['fct'] = new XoopsFormHidden('fct', 'save' );
Modified: XoopsModules/vod/trunk/htdocs/modules/vod/include/forms.vod.php
===================================================================
--- XoopsModules/vod/trunk/htdocs/modules/vod/include/forms.vod.php 2012-01-29 16:59:08 UTC (rev 8827)
+++ XoopsModules/vod/trunk/htdocs/modules/vod/include/forms.vod.php 2012-01-29 17:36:12 UTC (rev 8828)
@@ -323,22 +323,22 @@
$ele['state'] = new XoopsFormHidden('state['.$id.']', 'new' );
}
- $ele['name'] = new XoopsFormText(($titles==true?constant('_FRM_VOD_FORM_CURRENCY_NAME'):''), $id.'[name]', 35, 128, $object->getVar('name') );
- $ele['name']->setDescription(($titles==true?constant('_FRM_VOD_FORM_DESC_CURRENCY_NAME'):''));
- $ele['alias'] = new XoopsFormText(($titles==true?constant('_FRM_VOD_FORM_CURRENCY_ALIAS'):''), $id.'[alias]', 35, 128, $object->getVar('alias') );
- $ele['alias']->setDescription(($titles==true?constant('_FRM_VOD_FORM_DESC_CURRENCY_ALIAS'):''));
- $ele['code'] = new XoopsFormText(($titles==true?constant('_FRM_VOD_FORM_CURRENCY_CODE'):''), $id.'[code]', 5, 3, $object->getVar('code') );
- $ele['code']->setDescription(($titles==true?constant('_FRM_VOD_FORM_DESC_CURRENCY_CODE'):''));
- $ele['left'] = new XoopsFormText(($titles==true?constant('_FRM_VOD_FORM_CURRENCY_LEFT'):''), $id.'[left]', 5, 2, $object->getVar('left') );
- $ele['left']->setDescription(($titles==true?constant('_FRM_VOD_FORM_DESC_CURRENCY_LEFT'):''));
- $ele['right'] = new XoopsFormText(($titles==true?constant('_FRM_VOD_FORM_CURRENCY_RIGHT'):''), $id.'[right]', 5, 2, $object->getVar('right') );
- $ele['right']->setDescription(($titles==true?constant('_FRM_VOD_FORM_DESC_CURRENCY_RIGHT'):''));
- $ele['decimals'] = new XoopsFormText(($titles==true?constant('_FRM_VOD_FORM_CURRENCY_DECIMALS'):''), $id.'[decimals]', 15, 15, $object->getVar('decimals') );
- $ele['decimals']->setDescription(($titles==true?constant('_FRM_VOD_FORM_DESC_CURRENCY_DECIMALS'):''));
- $ele['rate'] = new XoopsFormText(($titles==true?constant('_FRM_VOD_FORM_CURRENCY_RATE'):''), $id.'[rate]', 20, 19, $object->getVar('rate') );
- $ele['rate']->setDescription(($titles==true?constant('_FRM_VOD_FORM_DESC_CURRENCY_RATE'):''));
- $ele['default'] = new XoopsFormRadioYN(($titles==true?constant('_FRM_VOD_FORM_CURRENCY_DEFAULT'):''), $id.'[default]', $object->getVar('default') );
- $ele['default']->setDescription(($titles==true?constant('_FRM_VOD_FORM_DESC_CURRENCY_DEFAULT'):''));
+ $ele['name'] = new XoopsFormText(($as_array==false?constant('_FRM_VOD_FORM_CURRENCY_NAME'):''), $id.'[name]', 35, 128, $object->getVar('name') );
+ $ele['name']->setDescription(($as_array==false?constant('_FRM_VOD_FORM_DESC_CURRENCY_NAME'):''));
+ $ele['alias'] = new XoopsFormText(($as_array==false?constant('_FRM_VOD_FORM_CURRENCY_ALIAS'):''), $id.'[alias]', 35, 128, $object->getVar('alias') );
+ $ele['alias']->setDescription(($as_array==false?constant('_FRM_VOD_FORM_DESC_CURRENCY_ALIAS'):''));
+ $ele['code'] = new XoopsFormText(($as_array==false?constant('_FRM_VOD_FORM_CURRENCY_CODE'):''), $id.'[code]', 5, 3, $object->getVar('code') );
+ $ele['code']->setDescription(($as_array==false?constant('_FRM_VOD_FORM_DESC_CURRENCY_CODE'):''));
+ $ele['left'] = new XoopsFormText(($as_array==false?constant('_FRM_VOD_FORM_CURRENCY_LEFT'):''), $id.'[left]', 5, 2, $object->getVar('left') );
+ $ele['left']->setDescription(($as_array==false?constant('_FRM_VOD_FORM_DESC_CURRENCY_LEFT'):''));
+ $ele['right'] = new XoopsFormText(($as_array==false?constant('_FRM_VOD_FORM_CURRENCY_RIGHT'):''), $id.'[right]', 5, 2, $object->getVar('right') );
+ $ele['right']->setDescription(($as_array==false?constant('_FRM_VOD_FORM_DESC_CURRENCY_RIGHT'):''));
+ $ele['decimals'] = new XoopsFormText(($as_array==false?constant('_FRM_VOD_FORM_CURRENCY_DECIMALS'):''), $id.'[decimals]', 15, 15, $object->getVar('decimals') );
+ $ele['decimals']->setDescription(($as_array==false?constant('_FRM_VOD_FORM_DESC_CURRENCY_DECIMALS'):''));
+ $ele['rate'] = new XoopsFormText(($as_array==false?constant('_FRM_VOD_FORM_CURRENCY_RATE'):''), $id.'[rate]', 20, 19, $object->getVar('rate') );
+ $ele['rate']->setDescription(($as_array==false?constant('_FRM_VOD_FORM_DESC_CURRENCY_RATE'):''));
+ $ele['default'] = new XoopsFormRadioYN(($as_array==false?constant('_FRM_VOD_FORM_CURRENCY_DEFAULT'):''), $id.'[default]', $object->getVar('default') );
+ $ele['default']->setDescription(($as_array==false?constant('_FRM_VOD_FORM_DESC_CURRENCY_DEFAULT'):''));
$ele['op'] = new XoopsFormHidden('op', 'currency' );
$ele['fct'] = new XoopsFormHidden('fct', 'save' );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <wis...@us...> - 2012-01-29 16:59:19
|
Revision: 8827
http://xoops.svn.sourceforge.net/xoops/?rev=8827&view=rev
Author: wishcraft
Date: 2012-01-29 16:59:08 +0000 (Sun, 29 Jan 2012)
Log Message:
-----------
Xortify 3.04 - for XOOPS 2.5 - WSOD on Firefox Fix - Final Release for 2.5 Series -- see changelog.txt
Added Paths:
-----------
XoopsModules/xortify/releases/3.04/
XoopsModules/xortify/releases/3.04/docs/
XoopsModules/xortify/releases/3.04/docs/INSTALL
XoopsModules/xortify/releases/3.04/docs/UPGRADE
XoopsModules/xortify/releases/3.04/docs/licence.txt
XoopsModules/xortify/releases/3.04/extras/
XoopsModules/xortify/releases/3.04/extras/2.5.x/
XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/
XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/header.php
XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/modules/
XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/modules/xortify/
XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/modules/xortify/preloads/
XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/modules/xortify/preloads/core.php
XoopsModules/xortify/releases/3.04/htdocs/
XoopsModules/xortify/releases/3.04/htdocs/Frameworks/
XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/
XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/
XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/
XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/access.list.png
XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png
XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png
XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/
XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/access.list.png
XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png
XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png
XoopsModules/xortify/releases/3.04/htdocs/banned.php
XoopsModules/xortify/releases/3.04/htdocs/modules/
XoopsModules/xortify/releases/3.04/htdocs/modules/system/
XoopsModules/xortify/releases/3.04/htdocs/modules/system/preloads/
XoopsModules/xortify/releases/3.04/htdocs/modules/system/preloads/xortify.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/admin/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/admin/index.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/admin/index.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/admin/menu.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_curl.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_curl_provisionning.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_curlserialised.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_curlserialised_provisionning.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_curlxml.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_curlxml_provisionning.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_json.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_json_provisionning.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_soap.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_soap_provisionning.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_wgetserialised.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_wgetserialised_provisionning.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_wgetxml.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/auth_wgetxml_provisionning.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/authfactory.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/auth/index.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/curl.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/curlserialised.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/curlxml.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/index.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/json.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/log.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/soap.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/wgetserialised.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/class/wgetxml.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/cron/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/cron/index.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/cron/serverup.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/docs/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/docs/changelog.txt
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/docs/credits.txt
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/docs/index.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/docs/install.txt
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/docs/lang_diff.txt
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/docs/licence.txt
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/docs/readme.txt
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/images/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/images/accessdenied.png
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/images/index.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/images/left_both.gif
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/images/right_both.gif
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/images/xortify_slogo.png
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/JSON.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/forms.objects.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/forms.xortify.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/functions.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/install.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/post.header.addmeta.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/post.header.endcache.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/post.loader.mainfile.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/pre.loader.mainfile.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/include/update.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/index.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/english/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/english/admin.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/english/ban.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/english/help/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/english/help/help.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/english/help/index.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/english/index.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/english/main.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/english/modinfo.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/language/index.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/plugin/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/plugin/index.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/plugin/projecthoneypot.org.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/plugin/protector.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/plugin/spiders.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/plugin/stopforumspam.com.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/plugin/xortify.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/preloads/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/preloads/core.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/preloads/index.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/index.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/projecthoneypot.org/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/projecthoneypot.org/post.loader.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/protector/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/protector/footer.post.loader.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/protector/header.post.loader.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/protector/index.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/providers.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/spiders/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/spiders/post.loader.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/stopforumspam.com/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/stopforumspam.com/post.loader.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/xortify/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/xortify/footer.post.loader.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/xortify/header.post.loader.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/xortify/index.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/providers/xortify/post.loader.php
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/sql/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/sql/index.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/sql/mysql.sql
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/templates/
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/templates/index.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/templates/xortify_banning_notice.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/templates/xortify_cpanel_bans.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/templates/xortify_cpanel_log.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/templates/xortify_cpanel_signup_form.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/templates/xortify_cpanel_signup_nocommunication.html
XoopsModules/xortify/releases/3.04/htdocs/modules/xortify/xoops_version.php
Added: XoopsModules/xortify/releases/3.04/docs/INSTALL
===================================================================
--- XoopsModules/xortify/releases/3.04/docs/INSTALL (rev 0)
+++ XoopsModules/xortify/releases/3.04/docs/INSTALL 2012-01-29 16:59:08 UTC (rev 8827)
@@ -0,0 +1,75 @@
++-----------------------------------------------------------------------------------+
+| |
+| XXX XXX OOOOO RRRRR TTTTTT IIIIII FFFFFF YYY YYY |
+| XX XX OO OO RR RR TT II FF YY YY |
+| XXX OO OO RRRR TT II FFFF YYYY |
+| XX XX OO OO RR RR TT II FF YY |
+| XXX XXX OOOOO RR RR TT IIIIII FF YY version 2.48 |
+| |
++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+
+| |
+| Install the Providers Xortify support currently these are: |
+| |
+| * XOOPS Protector (Based in 3.22) |
+| * Xortify Network Security Drone |
+| |
+| Sign up a username for Xortify.com you can do this in the module if everything |
+| is working fine and there isn't any problem with the API SOAP communications. |
+| |
+| You will recieve an activation notice but you account will already be active. |
+| |
+| You will need to alter mainfile.php and do the following:: |
+| |
+| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you |
+| |
+| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to |
+| do steps 2 and 3 with XOOPS 2.4 and later series. |
+| |
++--[ Step 1 - Installing Cron ]-----------------------------------------------------+
+| |
+| You will need to install the following cron within your cronjobs section of your |
+| Wesite, if you are using a windows server in WAMP then you will need to schedule |
+| this as a task, remember to change the path to suit your configuration. |
+| |
+| command to run every minute to once an hour, make sure it is within your cache |
+| refresh time. This is the or unix based systems the following is for windows |
+| |
+| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php |
+| |
+| Assuming you have your PHP added to your executable path this is the scheduled |
+| task to run on a windows environment. |
+| |
+| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php |
+| |
+| Some of the paths in these examples for executables or the cron file may be |
+| different and you will have to alter them to your needs. |
+| |
++--[ Step 2 - mainfile.php (pre 2.4 series) ]---------------------------------------+
+| |
+| You will need to change the following the main file has the following code on it |
+| |
+| [code] |
+| if (!isset($xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") { |
+| include XOOPS_ROOT_PATH."/include/common.php"; |
+| } |
+| [/code] |
+| |
+| You will need to alter that to this after it is all install. |
+| |
+| [code] |
+| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/pre.loader.mainfile.php' ); |
+| if (!isset($xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") { |
+| include XOOPS_ROOT_PATH."/include/common.php"; |
+| } |
+| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.loader.mainfile.php' ); |
+| [/code] |
+| |
++--[ Step 3 - header.php (pre 2.4 series) ]----------------------------------------+
+| |
+| Below the lin of footer.php which reads $xoopsTpl =& $xoTheme->template; |
+| |
+| [code] |
+| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.add.meta.php' ); |
+| [/code] |
+| |
++-----------------------------------------------------------------------------------+
\ No newline at end of file
Added: XoopsModules/xortify/releases/3.04/docs/UPGRADE
===================================================================
--- XoopsModules/xortify/releases/3.04/docs/UPGRADE (rev 0)
+++ XoopsModules/xortify/releases/3.04/docs/UPGRADE 2012-01-29 16:59:08 UTC (rev 8827)
@@ -0,0 +1,75 @@
++-----------------------------------------------------------------------------------+
+| |
+| XXX XXX OOOOO RRRRR TTTTTT IIIIII FFFFFF YYY YYY |
+| XX XX OO OO RR RR TT II FF YY YY |
+| XXX OO OO RRRR TT II FFFF YYYY |
+| XX XX OO OO RR RR TT II FF YY |
+| XXX XXX OOOOO RR RR TT IIIIII FF YY version 2.30 |
+| |
++----[ NETWORK SECTOR SECURITY ]----------------------------------------------------+
+| |
+| Install the Providers Xortify support currently these are: |
+| |
+| * XOOPS Protector (Based in 3.22) |
+| * Xortify Network Security Drone |
+| |
+| Make sure you delete the 'providers' folder in the existing module then upload |
+| Xortify 2.30. Once you have install the file base this way you will remember |
+| to upgrade the module in the system modules application in the xoops system |
+| menu you will need to then goto the preferences and make sure you are running |
+| the protector provider if you are running protector this will populate the |
+| cloud with your bans that come in protector as well:: |
+| |
+| * DO NOT INSTALL PROTECTOR IN THE MAINFILE - Xortify will call this for you |
+| |
+| Xortify is also fited with the XOOPS 2.4 Series Preloads you will not need to |
+| do steps 2 and 3 with XOOPS 2.4 and later series. |
+| |
++--[ Step 1 - Installing Cron ]-----------------------------------------------------+
+| |
+| You will need to install the following cron within your cronjobs section of your |
+| Wesite, if you are using a windows server in WAMP then you will need to schedule |
+| this as a task, remember to change the path to suit your configuration. |
+| |
+| command to run every minute to once an hour, make sure it is within your cache |
+| refresh time. This is the or unix based systems the following is for windows |
+| |
+| /usr/bin/php -q /home/yoursite/public_html/modules/xortify/cron/serverup.php |
+| |
+| Assuming you have your PHP added to your executable path this is the scheduled |
+| task to run on a windows environment. |
+| |
+| php.exe -q c:\htdocs\modules\xortify\cron\serverup.php |
+| |
+| Some of the paths in these examples for executables or the cron file may be |
+| different and you will have to alter them to your needs. |
+| |
++--[ Step 2 - mainfile.php ]--------------------------------------------------------+
+| |
+| You will need to change the following the main file has the following code on it |
+| |
+| [code] |
+| if (!isset($xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") { |
+| include XOOPS_ROOT_PATH."/include/common.php"; |
+| } |
+| [/code] |
+| |
+| You will need to alter that to this after it is all install. |
+| |
+| [code] |
+| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/pre.loader.mainfile.php' ); |
+| if (!isset($xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") { |
+| include XOOPS_ROOT_PATH."/include/common.php"; |
+| } |
+| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.loader.mainfile.php' ); |
+| [/code] |
+| |
++--[ Step 3 - footer.php ----------------------------------------------------------+
+| |
+| At the bottom of footer.php place this line without the [|] Of course. |
+| |
+| [code] |
+| @include( XOOPS_ROOT_PATH.'/modules/xortify/include/post.loader.footer.php' ); |
+| [/code] |
+| |
++-----------------------------------------------------------------------------------+
\ No newline at end of file
Added: XoopsModules/xortify/releases/3.04/docs/licence.txt
===================================================================
--- XoopsModules/xortify/releases/3.04/docs/licence.txt (rev 0)
+++ XoopsModules/xortify/releases/3.04/docs/licence.txt 2012-01-29 16:59:08 UTC (rev 8827)
@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
Added: XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/header.php
===================================================================
--- XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/header.php (rev 0)
+++ XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/header.php 2012-01-29 16:59:08 UTC (rev 8827)
@@ -0,0 +1,110 @@
+<?php
+/**
+ * XOOPS global header file
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package core
+ * @since 2.0.0
+ * @author Kazumi Ono <web...@my...>
+ * @author Skalpa Keo <sk...@xo...>
+ * @author Taiwen Jiang <ph...@us...>
+ * @version $Id: header.php 8066 2011-11-06 05:09:33Z beckmi $
+ */
+
+defined('XOOPS_ROOT_PATH') or die('Restricted access');
+
+$xoopsPreload =& XoopsPreload::getInstance();
+$xoopsPreload->triggerEvent('core.header.start');
+
+include_once $GLOBALS['xoops']->path('class/xoopsblock.php');
+
+$xoopsLogger =& XoopsLogger::getInstance();
+$xoopsLogger->stopTime('Module init');
+$xoopsLogger->startTime('XOOPS output init');
+
+if ($xoopsConfig['theme_set'] != 'default' && file_exists(XOOPS_THEME_PATH . '/' . $xoopsConfig['theme_set'] . '/theme.php')) {
+ require_once $GLOBALS['xoops']->path('include/xoops13_header.php');
+} else {
+ global $xoopsOption, $xoopsConfig, $xoopsModule;
+
+ $xoopsOption['theme_use_smarty'] = 1;
+
+ // include Smarty template engine and initialize it
+ require_once $GLOBALS['xoops']->path('class/template.php');
+ require_once $GLOBALS['xoops']->path('class/theme.php');
+ require_once $GLOBALS['xoops']->path('class/theme_blocks.php');
+
+ if (@$xoopsOption['template_main']) {
+ if (false === strpos($xoopsOption['template_main'], ':')) {
+ $xoopsOption['template_main'] = 'db:' . $xoopsOption['template_main'];
+ }
+ }
+
+ $xoopsThemeFactory = null;
+ $xoopsThemeFactory = new xos_opal_ThemeFactory();
+ $xoopsThemeFactory->allowedThemes = $xoopsConfig['theme_set_allowed'];
+ $xoopsThemeFactory->defaultTheme = $xoopsConfig['theme_set'];
+
+ /**
+ * @var xos_opal_Theme
+ */
+ $xoTheme =& $xoopsThemeFactory->createInstance(array('contentTemplate' => @$xoopsOption['template_main']));
+ $xoopsTpl =& $xoTheme->template;
+
+ $xoopsPreload->triggerEvent('core.header.addmeta');
+
+ // Temporary solution for start page redirection
+ if (defined("XOOPS_STARTPAGE_REDIRECTED")) {
+ $params = $content = $tpl = $repeat = null;
+ $xoTheme->headContent($params, "<base href='" . XOOPS_URL . '/modules/' . $xoopsConfig['startpage'] . "/' />", $tpl, $repeat);
+ }
+
+ if (@is_object($xoTheme->plugins['xos_logos_PageBuilder'])) {
+ $aggreg =& $xoTheme->plugins['xos_logos_PageBuilder'];
+ // Backward compatibility code for pre 2.0.14 themes
+ $xoopsTpl->assign_by_ref('xoops_lblocks', $aggreg->blocks['canvas_left']);
+ $xoopsTpl->assign_by_ref('xoops_rblocks', $aggreg->blocks['canvas_right']);
+ $xoopsTpl->assign_by_ref('xoops_ccblocks', $aggreg->blocks['page_topcenter']);
+ $xoopsTpl->assign_by_ref('xoops_clblocks', $aggreg->blocks['page_topleft']);
+ $xoopsTpl->assign_by_ref('xoops_crblocks', $aggreg->blocks['page_topright']);
+ $xoopsTpl->assign('xoops_showlblock', !empty($aggreg->blocks['canvas_left']));
+ $xoopsTpl->assign('xoops_showrblock', !empty($aggreg->blocks['canvas_right']));
+ $xoopsTpl->assign('xoops_showcblock', !empty($aggreg->blocks['page_topcenter']) || !empty($aggreg->blocks['page_topleft']) || !empty($aggreg->blocks['page_topright']));
+ }
+
+ // Sets cache time
+ if (!empty($xoopsModule)) {
+ $xoTheme->contentCacheLifetime = @$xoopsConfig['module_cache'][$xoopsModule->getVar('mid', 'n')];
+ // Tricky solution for setting cache time for homepage
+ } else if (!empty($xoopsOption['template_main']) && $xoopsOption['template_main'] == 'db:system_homepage.html') {
+ $xoTheme->contentCacheLifetime = 604800;
+ }
+
+ $xoopsPreload->triggerEvent('core.header.checkcache');
+ if ($xoTheme->checkCache()) {
+ $xoopsPreload->triggerEvent('core.header.cacheend');
+ exit();
+ }
+
+ if (!isset($xoopsOption['template_main']) && $xoopsModule) {
+ // new themes using Smarty does not have old functions that are required in old modules, so include them now
+ include $GLOBALS['xoops']->path('include/old_theme_functions.php');
+ // need this also
+ $xoopsTheme['thename'] = $xoopsConfig['theme_set'];
+ ob_start();
+ }
+
+ $xoopsLogger->stopTime('XOOPS output init');
+ $xoopsLogger->startTime('Module display');
+}
+
+$xoopsPreload->triggerEvent('core.header.end');
+?>
\ No newline at end of file
Added: XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/modules/xortify/preloads/core.php
===================================================================
--- XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/modules/xortify/preloads/core.php (rev 0)
+++ XoopsModules/xortify/releases/3.04/extras/2.5.x/htdocs/modules/xortify/preloads/core.php 2012-01-29 16:59:08 UTC (rev 8827)
@@ -0,0 +1,118 @@
+<?php
+/**
+ * @package xortify
+ * @subpackage module
+ * @description Sector Nexoork Security Drone
+ * @author Simon Roberts WISHCRAFT <si...@ch...>
+ * @author Richardo Costa TRABIS
+ * @copyright copyright (c) 2010-2013 XOOPS.org
+ * @licence GPL 2.0 - see docs/LICENCE.txt
+ */
+
+defined('XOOPS_ROOT_PATH') or die('Restricted access');
+
+class XortifyCorePreload extends XoopsPreloadItem
+{
+
+ function eventCoreIncludeCommonStart($args)
+ {
+ include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php';
+ $result = XoopsCache::read('xortify_core_include_common_start');
+ if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) {
+ XoopsCache::write('xortify_core_include_common_start', array('time'=>microtime(true)+600), 600);
+ include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/pre.loader.mainfile.php' );
+ XoopsCache::write('xortify_core_include_common_start', array('time'=>microtime(true)), -1);
+ }
+ }
+
+ function eventCoreIncludeCommonEnd($args)
+ {
+ xoops_loadLanguage('modinfo', 'xortify');
+ $module_handler = xoops_gethandler('module');
+ $config_handler = xoops_gethandler('config');
+ $GLOBALS['xortifyModule'] = $module_handler->getByDirname('xortify');
+ if (is_object($GLOBALS['xortifyModule'])) {
+ $GLOBALS['xortifyModuleConfig'] = $config_handler->getConfigList($GLOBALS['xortifyModule']->getVar('mid'));
+ }
+
+ include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php';
+ $result = XoopsCache::read('xortify_core_include_common_end_cron');
+ if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) {
+ XoopsCache::write('xortify_core_include_common_end_cron', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']);
+ switch ($GLOBALS['xortifyModuleConfig']['crontype']) {
+ case 'preloader':
+ $read = XoopsCache::read('xortify_pause_preload');
+ if ((isset($read['time'])?(float)$read['time']:0)<=microtime(true)) {
+ XoopsCache::write('xortify_pause_preload', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['croninterval']));
+ $GLOBALS['xortify_preloader']=true;
+ ob_start();
+ include(XOOPS_ROOT_PATH.'/modules/xortify/cron/serverup.php');
+ ob_end_clean();
+ }
+ break;
+ }
+ XoopsCache::write('xortify_core_include_common_end_cron', array('time'=>microtime(true)), -1);
+ }
+
+ $result = XoopsCache::read('xortify_core_include_common_end');
+ if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) {
+ XoopsCache::write('xortify_core_include_common_end', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']);
+ if (XortifyCorePreload::hasAPIUserPass()) {
+ include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.loader.mainfile.php' );
+ }
+ XoopsCache::write('xortify_core_include_common_end', array('time'=>microtime(true)), -1);
+ }
+
+ }
+
+ function eventCoreHeaderCacheend($args)
+ {
+
+ include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php';
+ $result = XoopsCache::read('xortify_core_header_cache_end');
+ if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) {
+ XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']);
+ if (XortifyCorePreload::hasAPIUserPass()) {
+ include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.endcache.php' );
+ }
+ XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)), -1);
+ }
+ }
+
+ function eventCoreFooterEnd($args)
+ {
+
+ include_once XOOPS_ROOT_PATH.'/class/cache/xoopscache.php';
+ $result = XoopsCache::read('xortify_core_header_cache_end');
+ if ((isset($result['time'])?(float)$result['time']:0)<=microtime(true)) {
+ XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)+$GLOBALS['xortifyModuleConfig']['fault_delay']), $GLOBALS['xortifyModuleConfig']['fault_delay']);
+ if (XortifyCorePreload::hasAPIUserPass()) {
+ include_once XOOPS_ROOT_PATH . ( '/modules/xortify/include/post.header.endcache.php' );
+ }
+ XoopsCache::write('xortify_core_header_cache_end', array('time'=>microtime(true)), -1);
+ }
+ }
+
+ function eventCoreHeaderAddmeta($args)
+ {
+ if (isset($GLOBALS['xortify_pass'])) {
+ if ($GLOBALS['xortify_pass'] == true) {
+ include_once XOOPS_ROOT_PATH.'/modules/xortify/include/functions.php';
+ addmeta_googleanalytics(_XOR_MI_XOOPS_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED, $_SERVER['HTTP_HOST']);
+ if (defined('_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED')&&strlen(constant('_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED'))>=13) {
+ addmeta_googleanalytics(_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_USERPASSED, $_SERVER['HTTP_HOST']);
+ }
+ }
+ }
+ }
+
+ function hasAPIUserPass()
+ {
+ if ($GLOBALS['xortifyModuleConfig']['xortify_username']!=''&&$GLOBALS['xortifyModuleConfig']['xortify_password']!='')
+ return true;
+ else
+ return false;
+ }
+}
+
+?>
\ No newline at end of file
Added: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/access.list.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/access.list.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/current.bans.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/16/xortify.log.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/access.list.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/access.list.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/current.bans.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/xortify/releases/3.04/htdocs/Frameworks/moduleclasses/icons/32/xortify.log.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/xortify/releases/3.04/htdocs/banned.php
===================================================================
--- XoopsModules/xortify/releases/3.04/htdocs/banned.php (rev 0)
+++ XoopsModules/xortify/releases/3.04/htdocs/banned.php 2012-01-29 16:59:08 UTC (rev 8827)
@@ -0,0 +1,49 @@
+<?php
+
+
+ include dirname(__FILE__).'/mainfile.php';
+ if (isset($_SESSION['xortify']['lid'])) {
+ $lid = $_SESSION['xortify']['lid'];
+ setcookie('xortify', array('lid' => $lid), time()+3600*24*7*4*3);
+ } elseif (isset($_COOKIE['xortify']['lid'])) {
+ $lid = $_COOKIE['xortify']['lid'];
+ $_SESSION['xortify']['lid'] = $lid;
+ }
+
+ xoops_loadLanguage('ban', 'xortify');
+
+ $module_handler = xoops_gethandler('module');
+ $GLOBALS['xortifyModule'] = $module_handler->getByDirname('xortify');
+
+ $xoopsOption['template_main'] = 'xortify_banning_notice.html';
+ include_once XOOPS_ROOT_PATH.'/header.php';
+ include_once XOOPS_ROOT_PATH.'/modules/xortify/include/functions.php';
+ addmeta_googleanalytics(_XOR_MI_XOOPS_GOOGLE_ANALYTICS_ACCOUNTID_FAILEDTOPASS, $_SERVER['HTTP_HOST']);
+ if (defined('_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_FAILEDTOPASS')&&strlen(constant('_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_FAILEDTOPASS'))>=13) {
+ addmeta_googleanalytics(_XOR_MI_CLIENT_GOOGLE_ANALYTICS_ACCOUNTID_FAILEDTOPASS, $_SERVER['HTTP_HOST']);
+ }
+ $GLOBALS['xoopsTpl']->assign('xoops_pagetitle', _XOR_PAGETITLE);
+ $GLOBALS['xoopsTpl']->assign('description', _XOR_DESCRIPTION);
+ $GLOBALS['xoopsTpl']->assign('version', $GLOBALS['xortifyModule']->getVar('version')/100);
+ $GLOBALS['xoopsTpl']->assign('platform', XOOPS_VERSION);
+
+ $log_handler = xoops_getmodulehandler('log', 'xortify');
+ $log = $log_handler->get($lid);
+ if (is_object($log)) {
+ setcookie('xortify', array('lid' => $lid), time()+3600*24*7*4*3);
+ $GLOBALS['xoopsTpl']->assign('status', $log->getVar('extra'));
+ $GLOBALS['xoopsTpl']->assign('provider', $log->getVar('provider'));
+ $GLOBALS['xoopsTpl']->assign('agent', $log->getVar('agent'));
+ }
+ $GLOBALS['xoopsTpl']->assign('xoops_lblocks', false);
+ $GLOBALS['xoopsTpl']->assign('xoops_rblocks', false);
+ $GLOBALS['xoopsTpl']->assign('xoops_ccblocks', false);
+ $GLOBALS['xoopsTpl']->assign('xoops_clblocks', false);
+ $GLOBALS['xoopsTpl']->assign('xoops_crblocks', false);
+ $GLOBALS['xoopsTpl']->assign('xoops_showlblock', false);
+ $GLOBALS['xoopsTpl']->assign('xoops_showrblock', false);
+ $GLOBALS['xoopsTpl']->assign('xoops_showcblock', false);
+
+ include_once XOOPS_ROOT_PATH.'/footer.php';
+
+?>
Added: XoopsModules/xortify/releases/...
[truncated message content] |
|
From: <wis...@us...> - 2012-01-29 14:46:36
|
Revision: 8826
http://xoops.svn.sourceforge.net/xoops/?rev=8826&view=rev
Author: wishcraft
Date: 2012-01-29 14:46:28 +0000 (Sun, 29 Jan 2012)
Log Message:
-----------
VOD 1.17 Beta - Install Fix and Date Fixes - see changelog.txt
Modified Paths:
--------------
XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/log.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/sessions.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/videos.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/cron/notify.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/docs/changelog.txt
XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/formobjects.vod.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/forms.vod.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/index.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/forms.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/modinfo.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/sql/mysql.sql
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_videos_list.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/xoops_version.php
XoopsModules/vod/trunk/htdocs/modules/vod/class/log.php
XoopsModules/vod/trunk/htdocs/modules/vod/class/sessions.php
XoopsModules/vod/trunk/htdocs/modules/vod/class/videos.php
XoopsModules/vod/trunk/htdocs/modules/vod/cron/notify.php
XoopsModules/vod/trunk/htdocs/modules/vod/docs/changelog.txt
XoopsModules/vod/trunk/htdocs/modules/vod/include/formobjects.vod.php
XoopsModules/vod/trunk/htdocs/modules/vod/include/forms.vod.php
XoopsModules/vod/trunk/htdocs/modules/vod/index.php
XoopsModules/vod/trunk/htdocs/modules/vod/language/english/forms.php
XoopsModules/vod/trunk/htdocs/modules/vod/language/english/modinfo.php
XoopsModules/vod/trunk/htdocs/modules/vod/sql/mysql.sql
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_videos_list.html
XoopsModules/vod/trunk/htdocs/modules/vod/xoops_version.php
Modified: XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/log.php
===================================================================
--- XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/log.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/log.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -21,7 +21,7 @@
function VodLog($fid = null)
{
$this->initVar('log_id', XOBJ_DTYPE_INT, null, false);
- $this->initVar('class', XOBJ_DTYPE_ENUM, 'unknown', false, false, false, array('cart','sessions','currency','category','mimetypes','video','external','unknown'));
+ $this->initVar('class', XOBJ_DTYPE_ENUM, 'unknown', false, false, false, array('cart','sessions','currency','category','mimetypes','videos','external','unknown'));
$this->initVar('file', XOBJ_DTYPE_TXTBOX, null, false, 64);
$this->initVar('path', XOBJ_DTYPE_TXTBOX, null, false, 128);
$this->initVar('line', XOBJ_DTYPE_INT, null, false);
Modified: XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/sessions.php
===================================================================
--- XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/sessions.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/sessions.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -228,7 +228,7 @@
unset($_COOKIE['cart']);
}
}
- if (is_object($GLOBALS['xoopsUser'])&&!is_object($session)) {
+ if (is_object($GLOBALS['xoopsUser'])&&!isset($session)) {
$criteria = new CriteriaCompo(new Criteria('uid', $GLOBALS['xoopsUser']->getVar('uid')));
$criteria->add(new Criteria('`mode`', '_VOD_ENUM_UNINVOICED'));
if ($this->getCount($criteria)>0) {
@@ -238,7 +238,7 @@
}
}
$user = vod_getIPData();
- if (!is_object($session)) {
+ if (!isset($session)) {
$criteria = new CriteriaCompo(new Criteria('`ip`', $user['ip']));
$criteria->add(new Criteria('netaddy', $user['network-addy']));
$criteria->add(new Criteria('`mode`', '_VOD_ENUM_UNINVOICED'));
@@ -249,7 +249,7 @@
}
}
- if (!is_object($session)) {
+ if (!isset($session)) {
unset($session);
unset($_SESSION['vod']['cart']);
unset($_COOKIE['cart']);
Modified: XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/videos.php
===================================================================
--- XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/videos.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/videos.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -130,14 +130,16 @@
function toArray($preview=false, $state='list') {
$ret = parent::toArray();
+
if ($this->getVar('mid')>0) {
$mimetypes_handler = xoops_getmodulehandler('mimetypes', 'vod');
$mimetype = $mimetypes_handler->get($this->getVar('mid'));
if (is_object($mimetype))
$ret['mimetype'] = $mimetype->toArray();
}
+
$fields = array('width', 'height', 'autoplay', 'control');
- switch ($this->getSpecialWithUserAgent("")) {
+ switch ($this->getSpecialWithUserAgent($_SERVER["HTTP_USER_AGENT"])) {
case "A":
foreach($fields as $field) {
$ret[$field] = $ret['speciala_'.$field];
@@ -151,6 +153,7 @@
default:
break;
}
+
$ele = vod_videos_get_form($this, true);
foreach($ele as $key => $field)
$ret['form'][$key] = $field->render();
@@ -179,22 +182,22 @@
$sessions_handler = xoops_getmodulehandler('sessions', 'vod');
static $_session = null;
- if (!is_array($_SESSION['vod']['cart'])||!isset($_SESSION['vod']['cart'])) {
- $ret['incart'] = false;
- } else {
- if (!is_object($_session))
+ if (isset($_SESSION['vod']['cart']['sessid'])) {
+ if (!is_object($_session))
$_session = $sessions_handler->get($_SESSION['vod']['cart']['sessid']);
$ret['incart'] = $_session->inCart($this);
- }
-
- if (strlen($this->getVar('avata'))>0&&file_exists($GLOBALS['xoops']->path($this->getVar('path').$this->getVar('avata')))) {
+ } else {
+ $ret['incart'] = false;
+ }
+
+ if (strlen($this->getVar('avata'))>0&&file_exists($GLOBALS['xoops']->path($this->getVar('path').$this->getVar('avata')))) {
$ret['avata_url'] = $this->getImage('avata');
$ret['hasavata'] = true;
} else
$ret['hasavata'] = false;
-
+
$mode = $this->getModeWithUserAgent($_SERVER['HTTP_USER_AGENT']);
- $prev = array('width' => $this->getVar('width'), 'height' => $this->getVar('height'), 'id' => $this->getReference(false, $preview), 'source' => '');
+ $prev = array('width' => $this->getVar('width'), 'height' => $this->getVar('height'), 'id' => $this->getReference(false, $preview), 'source' => $this->getSource($mode, $preview));
if (strlen($this->getSource($mode, $preview))>0) {
$ret['haspreview'] = true;
$prev['mode'] = $mode;
@@ -210,7 +213,7 @@
$prev['height'] = $GLOBALS['vodModuleConfig']['video_height_'.$state];
$prev['source'] = $this->getSource($mode, $preview);
$prev['id'] = $this->getReference(false, $preview);
- $html = $this->getHTML(false, $data['width'], $data['height'], '', '', $preview, $state);
+ $html = $this->getHTML(false, $prev['width'], $prev['height'], '', '', $preview, $state);
if ($GLOBALS['vodModuleConfig'][$mode.'_secure']==true) {
$prev['contents'] = '';
$GLOBALS['xoTheme']->addScript('', array('type'=>'text/javascript'), $this->getJS(false, $prev['width'], $prev['height'], $preview, $state));
@@ -224,7 +227,7 @@
$prev['height'] = $GLOBALS['vodModuleConfig']['video_height_'.$state];
$prev['source'] = $this->getSource($mode, $preview);
$prev['id'] = $this->getReference(true, $preview);
- $html = $this->getHTML(true, $data['width'], $data['height'], '', '', $preview, $state);
+ $html = $this->getHTML(true, $prev['width'], $prev['height'], '', '', $preview, $state);
if ($GLOBALS['vodModuleConfig'][$mode.'_secure']==true) {
$prev['contents'] = '';
$GLOBALS['xoTheme']->addScript('', array('type'=>'text/javascript'), $this->getJS(true, $prev['width'], $prev['height'], $preview, $state));
@@ -237,46 +240,50 @@
} else {
$ret['haspreview'] = false;
}
- foreach($prev as $key => $value) {
- $ret['preview_data_'.$key] = $value;
- }
+
if ($GLOBALS['vodModuleConfig']['tags']&&file_exists($GLOBALS['xoops']->path("/modules/tag/include/tagbar.php"))) {
include_once XOOPS_ROOT_PATH."/modules/tag/include/tagbar.php";
$ret['tagbar'] = tagBar($this->getVar('vid'), $this->getVar('cid'));
}
+
return $ret;
}
function getHTML($block = false, $width=0, $height=0, $agent = '', $ip = '', $preview = false, $state = 'list') {
+
if (empty($ip))
$ip = $this->getIP();
if (empty($agent))
$agent = $_SERVER['HTTP_USER_AGENT'];
+
$mode = $this->getModeWithUserAgent($agent);
include_once ($GLOBALS['xoops']->path('class/template.php'));
- if (!isset($GLOBALS['xoopsTpl']))
- $GLOBALS['xoopsTpl'] = new XoopsTpl();
+ $GLOBALS['vodTpl'] = new XoopsTpl();
+
$videos = array();
- $videos = $this->toArray($preview, $state);
+ $videos = parent::toArray();
$videos['mode'] = $mode;
$videos['source'] = $this->getSource($mode, $preview);
$videos['id'] = $this->getReference($block, $preview);
$videos['width'] = (!empty($height)&&!empty($width)&&$width&&$height?$width:($this->getSpecialWithUserAgent($agent)=='A'?$this->getVar('speciala_width'):($this->getSpecialWithUserAgent($agent)=='B'?$this->getVar('specialb_width'):($this->getVar('width')))));
$videos['height'] = (!empty($height)&&!empty($height)&&$height&&$height?$height:($this->getSpecialWithUserAgent($agent)=='A'?$this->getVar('speciala_height'):($this->getSpecialWithUserAgent($agent)=='B'?$this->getVar('specialb_height'):($this->getVar('height')))));
- $GLOBALS['xoopsTpl']->assign('videos', $videos);
+
+ $GLOBALS['vodTpl']->assign('videos', $videos);
if (isset($videos['mimetype']))
- $GLOBALS['xoopsTpl']->assign('mimetype', $videos['mimetype']);
- $GLOBALS['xoopsTpl']->assign('xoConfig', $this->_ModConfig);
- $GLOBALS['xoopsTpl']->assign('iframe', isset($_REQUEST['iframe']));
- $GLOBALS['xoopsTpl']->assign('preview', $preview);
- $GLOBALS['xoopsTpl']->assign('state', $state);
+ $GLOBALS['vodTpl']->assign('mimetype', $videos['mimetype']);
+ $GLOBALS['vodTpl']->assign('xoConfig', $this->_ModConfig);
+ $GLOBALS['vodTpl']->assign('iframe', isset($_REQUEST['iframe']));
+ $GLOBALS['vodTpl']->assign('preview', $preview);
+ $GLOBALS['vodTpl']->assign('state', $state);
+
ob_start();
if ($block == false)
- $GLOBALS['xoopsTpl']->display('db:vod_json_'.$mode.'_videos.html');
+ $GLOBALS['vodTpl']->display('db:vod_json_'.$mode.'_videos.html');
else
- $GLOBALS['xoopsTpl']->display('db:vod_json_block_'.$mode.'_videos.html');
+ $GLOBALS['vodTpl']->display('db:vod_json_block_'.$mode.'_videos.html');
$data = ob_get_contents();
ob_end_clean();
+
return $data;
}
Modified: XoopsModules/vod/releases/1.17/htdocs/modules/vod/cron/notify.php
===================================================================
--- XoopsModules/vod/releases/1.17/htdocs/modules/vod/cron/notify.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/releases/1.17/htdocs/modules/vod/cron/notify.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -36,7 +36,7 @@
$xoopsMailer->setHTML(true);
$xoopsMailer->setTemplateDir($GLOBALS['xoops']->path('/modules/vod/language/'.$GLOBALS['xoopsConfig']['language'].'/mail_templates/'));
$xoopsMailer->setTemplate('vod_video_available_cart.html');
- $xoopsMailer->setSubject(sprintf(_VOD_EMAIL_VIDEO_AVAILABLE_SUBJECT, $videos[$cart->getVar('vid')]->getVar('name'), date(_DATESTRING, time().$GLOBALS['vodModuleConfig']['purchase_expires'])));
+ $xoopsMailer->setSubject(sprintf(_VOD_EMAIL_VIDEO_AVAILABLE_SUBJECT, $videos[$cart->getVar('vid')]->getVar('name'), date(_DATESTRING, time()+$GLOBALS['vodModuleConfig']['purchase_expires'])));
$xoopsMailer->setToEmails($sessions[$cart->getVar('sessid')]->getVar('email'));
@@ -51,7 +51,8 @@
$xoopsMailer->assign("SUMMARY", $videos[$cart->getVar('vid')]->getVar('summary'));
$xoopsMailer->assign("CATEGORY", $categories[$cart->getVar('cid')]->getVar('name'));
$xoopsMailer->assign("URL", $videos[$cart->getVar('vid')]->getViewingURL($sessions[$cart->getVar('sessid')], $cart));
- $xoopsMailer->assign("EXPIRES", date(_DATESTRING, time().$GLOBALS['vodModuleConfig']['purchase_expires']));
+ $xoopsMailer->assign("EXPIRES", date(_DATESTRING, time()+$GLOBALS['vodModuleConfig']['purchase_expires']));
+ $xoopsMailer->assign("EXPIRE", date(_DATESTRING, time()+$GLOBALS['vodModuleConfig']['purchase_expires']));
$xoopsMailer->assign("INVURL", $sessions[$cart->getVar('sessid')]->getVar('url'));
if ($GLOBALS['vodModuleConfig']['matrixstream']==true&&$sessions[$cart->getVar('sessid')]->getVar('uid')>0&&$cart->getVar('pid')>0) {
@@ -69,7 +70,7 @@
if ($subscribed_handler->insert($subscription, true)) {
if($xoopsMailer->send() ){
$cart->setVar('notified', time());
- $cart->setVar('expires', time().$GLOBALS['vodModuleConfig']['purchase_expires']);
+ $cart->setVar('expires', time()+$GLOBALS['vodModuleConfig']['purchase_expires']);
$cart_handler->insert($cart);
}
}
Modified: XoopsModules/vod/releases/1.17/htdocs/modules/vod/docs/changelog.txt
===================================================================
--- XoopsModules/vod/releases/1.17/htdocs/modules/vod/docs/changelog.txt 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/releases/1.17/htdocs/modules/vod/docs/changelog.txt 2012-01-29 14:46:28 UTC (rev 8826)
@@ -1,4 +1,15 @@
==========================================
+ 2011/01/30 01:26:01 Version 1.17 BETA
+==========================================
+ - Added /tag/plugin/vod.php Tag Module Plugin code added (wishcraft)
+ - Added /xpayment/plugin/vod.php XPayment Module Plugin code added (wishcraft)
+ - Changed /class/cart.php restructing and debugged code added for cart & cart session (wishcraft)
+ - Changed /class/sessions.php restructing and debugged code added for cart & cart session (wishcraft)
+ - Changed /class/log.php restructing and debugged code added for videos class (wishcraft)
+ - Changed /index.php restructing and debugged code added for cart & cart session (wishcraft)
+ - Changed /xoops_version.php Support for New Variables, Constants & Templates; version updated of Application (wishcraft)
+
+==========================================
2011/01/27 5:48:01 Version 1.16 ALPHA
==========================================
- Added /cron/notify.php Notification Cron Added & Matrixstream code added (wishcraft)
Modified: XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/formobjects.vod.php
===================================================================
--- XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/formobjects.vod.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/formobjects.vod.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -4,8 +4,9 @@
$config_handler = xoops_gethandler('config');
if (!isset($GLOBALS['vodModule']))
$GLOBALS['vodModule'] = $module_handler->getByDirname('vod');
- if (!isset($GLOBALS['vodModuleConfig']))
- $GLOBALS['vodModuleConfig'] = $config_handler->getConfigList($GLOBALS['vodModule']->getVar('mid'));
+ if (is_object($GLOBALS['vodModule']))
+ if (!isset($GLOBALS['vodModuleConfig']))
+ $GLOBALS['vodModuleConfig'] = $config_handler->getConfigList($GLOBALS['vodModule']->getVar('mid'));
require_once($GLOBALS['xoops']->path('class/xoopsformloader.php'));
require_once($GLOBALS['xoops']->path('class/pagenav.php'));
Modified: XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/forms.vod.php
===================================================================
--- XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/forms.vod.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/forms.vod.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -400,7 +400,7 @@
$ele['parent'] = new VodFormSelectCategory(($as_array==false?_FRM_VOD_FORM_CATEGORY_PARENT:''), $id.'[parent]', $object->getVar('parent'), 1, false, $object->getVar('cid'));
$ele['parent']->setDescription(($as_array==false?_FRM_VOD_FORM_CATEGORY_PARENT_DESC:''));
- $ele['prefix'] = new XoopsFormText(($as_array==false?_FRM_VOD_FORM_CATEGORY_PREFIX:''), $id.'[catno]', ($as_array==false?16:8),32, $object->getVar('prefix'));
+ $ele['prefix'] = new XoopsFormText(($as_array==false?_FRM_VOD_FORM_CATEGORY_PREFIX:''), $id.'[prefix]', ($as_array==false?16:8),32, $object->getVar('prefix'));
$ele['prefix']->setDescription(($as_array==false?_FRM_VOD_FORM_CATEGORY_PREFIX_DESC:''));
$ele['name'] = new XoopsFormText(($as_array==false?_FRM_VOD_FORM_CATEGORY_NAME:''), $id.'[name]', ($as_array==false?55:21),128, $object->getVar('name'));
$ele['name']->setDescription(($as_array==false?_FRM_VOD_FORM_CATEGORY_NAME_DESC:''));
Modified: XoopsModules/vod/releases/1.17/htdocs/modules/vod/index.php
===================================================================
--- XoopsModules/vod/releases/1.17/htdocs/modules/vod/index.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/releases/1.17/htdocs/modules/vod/index.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -27,8 +27,13 @@
$sessions_handler =& xoops_getmodulehandler('sessions', 'vod');
$sessions = $sessions_handler->intialiseCart();
- if (is_array($_SESSION['vod']['cart'])&&$_SESSION['vod']['cart']!=false) {
- setcookie('cart', serialize($_SESSION['vod']['cart']), 3600*24*30);
+ if (isset($_SESSION['vod']['cart'])) {
+ if (is_array($_SESSION['vod']['cart'])&&$_SESSION['vod']['cart']!=false) {
+ setcookie('cart', serialize($_SESSION['vod']['cart']), 3600*24*30);
+ } else {
+ $cart = false;
+ setcookie('cart', '', 3600*24*30);
+ }
} else {
$cart = false;
setcookie('cart', '', 3600*24*30);
@@ -36,11 +41,13 @@
$xoopsOption['template_main'] = 'vod_index.html';
include($GLOBALS['xoops']->path('/header.php'));
- $GLOBALS['xoopsTpl']->assign('numincart', $_SESSION['vod']['cart']['videos']);
+ if (isset($_SESSION['vod']['cart']))
+ $GLOBALS['xoopsTpl']->assign('numincart', $_SESSION['vod']['cart']['videos']);
$GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']);
$GLOBALS['xoopsTpl']->assign('back_url', $uri);
$GLOBALS['xoopsTpl']->assign('uri', urlencode($_SERVER['REQUEST_URI']));
$cathits=false;
+
if ($vid>0) {
$video = $videos_handler->get($vid);
$video->setVar('hits', $video->getVar('hits')+1);
@@ -53,6 +60,7 @@
}
$GLOBALS['xoopsTpl']->assign('video', $video->toArray($preview, 'main'));
}
+
if ($cid>0) {
$category = $category_handler->get($cid);
if ($cathits==false) {
@@ -61,6 +69,7 @@
}
$GLOBALS['xoopsTpl']->assign('category', $category->toArray());
}
+
$categories = array();
$criteria = new Criteria('parent', $cid);
$i = 0;
@@ -86,6 +95,7 @@
$categories[$cidb]['trend'] = false;
}
}
+
if ($i<>0)
$GLOBALS['xoopsTpl']->assign('trcolspan', ($GLOBALS['vodModuleConfig']['cat_per_row']-$ie));
$GLOBALS['xoopsTpl']->assign('categories', $categories);
@@ -99,7 +109,7 @@
break;
default:
case "list":
-
+
include_once $GLOBALS['xoops']->path( "/class/pagenav.php" );
$criteria = $videos_handler->getFilterCriteria($filter);
@@ -130,12 +140,14 @@
$videos = $videos_handler->getObjects($criteria, true);
foreach($videos as $vid => $video) {
if (is_object($video))
- $GLOBALS['xoopsTpl']->append('videos', $video->toArray($preview, 'list'));
+ $GLOBALS['xoopsTpl']->append('pageofvideos', $video->toArray($preview, 'list'));
}
+
if ($GLOBALS['vodModuleConfig']['force_jquery']&&!isset($GLOBALS['loaded_jquery'])) {
$GLOBALS['xoTheme']->addScript(XOOPS_URL._MI_VOD_JQUERY, array('type'=>'text/javascript'));
$GLOBALS['loaded_jquery']=true;
}
+
break;
}
case 'cart':
Modified: XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/forms.php
===================================================================
--- XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/forms.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/forms.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -1,5 +1,25 @@
<?php
+ // Currency Form
+ define('_FRM_VOD_FORM_CURRENCY_NAME', 'Currency Name');
+ define('_FRM_VOD_FORM_DESC_CURRENCY_NAME', '');
+ define('_FRM_VOD_FORM_CURRENCY_ALIAS', 'Currency Alias');
+ define('_FRM_VOD_FORM_DESC_CURRENCY_ALIAS', '');
+ define('_FRM_VOD_FORM_CURRENCY_CODE', 'Currency ISO Code');
+ define('_FRM_VOD_FORM_DESC_CURRENCY_CODE', '3 Characters');
+ define('_FRM_VOD_FORM_CURRENCY_LEFT', 'Currency Symbol on Left');
+ define('_FRM_VOD_FORM_DESC_CURRENCY_LEFT', '');
+ define('_FRM_VOD_FORM_CURRENCY_RIGHT', 'Currency Symbol on Right');
+ define('_FRM_VOD_FORM_DESC_CURRENCY_RIGHT', '');
+ define('_FRM_VOD_FORM_CURRENCY_DECIMALS', 'Currency Decimal Places');
+ define('_FRM_VOD_FORM_DESC_CURRENCY_DECIMALS', '');
+ define('_FRM_VOD_FORM_CURRENCY_RATE', 'Currency Exchange Rate');
+ define('_FRM_VOD_FORM_DESC_CURRENCY_RATE', 'Based on Default Currency');
+ define('_FRM_VOD_FORM_CURRENCY_DEFAULT', 'Default Currency');
+ define('_FRM_VOD_FORM_DESC_CURRENCY_DEFAULT', '');
+ define('_FRM_VOD_EDIT_CURRENCY', 'Edit this currency - %s');
+ define('_FRM_VOD_NEW_CURRENCY', 'New currency');
+
define('_FRM_VOD_FORM_ISNEW_VOD', 'New Videos');
define('_FRM_VOD_FORM_EDIT_VOD', 'Edit Existing Videos');
define('_FRM_VOD_FORM_VOD_NAME', 'Name of Video');
Modified: XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/modinfo.php
===================================================================
--- XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/modinfo.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/modinfo.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -112,16 +112,16 @@
define('_MI_VOD_HTML5_VIDEOS_DESC', 'This is the HTML5 videos selected when a useragent is specified');
define('_MI_VOD_OTHER_VIDEOS', 'Other Videos');
define('_MI_VOD_OTHER_VIDEOS_DESC', 'This is the Other videos selected when a useragent is specified');
- define('_MI_VOD_LOAD_VOD', 'Load Vod in these videos sessions');
+ define('_MI_VOD_LOAD_VOD', 'Load Flowplayer in these videos sessions');
define('_MI_VOD_LOAD_VOD_DESC', 'This is the intances that load vod (Do not change unless you know what you are doing)');
define('_MI_VOD_LOAD_VIDEOJS', 'Load Video-js in these videos sessions');
define('_MI_VOD_LOAD_VIDEOJS_DESC', 'This is the intances that load HTML5 Video-js (Do not change unless you know what you are doing)');
//Enumerators
- define('_MI_VOD_FLASH', 'Flash Videos (Vod)');
+ define('_MI_VOD_FLASH', 'Flash Videos (Flowplayer)');
define('_MI_VOD_HTML5', 'HTML5 Videos (Video-js)');
define('_MI_VOD_IOS', 'Apple OS Videos (Video-js)');
- define('_MI_VOD_RTMP', 'RTMP Stream Videos (Vod)');
+ define('_MI_VOD_RTMP', 'RTMP Stream Videos (Flowplayer)');
define('_MI_VOD_RTSP', 'RTSP Stream Videos (Video-js)');
define('_MI_VOD_OTHER', 'Other Videos');
define('_MI_VOD_SILVERLIGHT', 'Silverlight Videos');
Modified: XoopsModules/vod/releases/1.17/htdocs/modules/vod/sql/mysql.sql
===================================================================
--- XoopsModules/vod/releases/1.17/htdocs/modules/vod/sql/mysql.sql 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/releases/1.17/htdocs/modules/vod/sql/mysql.sql 2012-01-29 14:46:28 UTC (rev 8826)
@@ -198,7 +198,7 @@
CREATE TABLE `vod_log` (
`log_id` bigint(25) unsigned NOT NULL AUTO_INCREMENT,
- `class` enum('cart','sessions','currency','category','mimetypes','video','external','unknown') DEFAULT 'unknown',
+ `class` enum('cart','sessions','currency','category','mimetypes','videos','external','unknown') DEFAULT 'unknown',
`file` varchar(64) DEFAULT NULL,
`path` varchar(128) DEFAULT NULL,
`line` int(15) unsigned DEFAULT '0',
Modified: XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_videos_list.html
===================================================================
--- XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_videos_list.html 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_videos_list.html 2012-01-29 14:46:28 UTC (rev 8826)
@@ -52,7 +52,7 @@
<th> </th>
<th> </th>
</tr>
- <{foreach item=item from=$videos}>
+ <{foreach item=item from=$pageofvideos}>
<tr class="<{cycle values="even,odd"}>">
<td rowspan='2' align='center'><{if $item.hasavata}><img src='<{$item.avata_url}>' width='95px'><{else}> <{/if}></td>
<td><{$item.cid}></td>
Modified: XoopsModules/vod/releases/1.17/htdocs/modules/vod/xoops_version.php
===================================================================
--- XoopsModules/vod/releases/1.17/htdocs/modules/vod/xoops_version.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/releases/1.17/htdocs/modules/vod/xoops_version.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -92,11 +92,11 @@
// Tables created by sql file (without prefix!)
$i=0;
$modversion['tables'][$i++] = "vod_cart";
+$modversion['tables'][$i++] = "vod_cart_sessions";
$modversion['tables'][$i++] = "vod_category";
$modversion['tables'][$i++] = "vod_currency";
$modversion['tables'][$i++] = "vod_log";
$modversion['tables'][$i++] = "vod_mimetypes";
-$modversion['tables'][$i++] = "vod_sessions";
$modversion['tables'][$i++] = "vod_videos";
// Blocks
Modified: XoopsModules/vod/trunk/htdocs/modules/vod/class/log.php
===================================================================
--- XoopsModules/vod/trunk/htdocs/modules/vod/class/log.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/trunk/htdocs/modules/vod/class/log.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -21,7 +21,7 @@
function VodLog($fid = null)
{
$this->initVar('log_id', XOBJ_DTYPE_INT, null, false);
- $this->initVar('class', XOBJ_DTYPE_ENUM, 'unknown', false, false, false, array('cart','sessions','currency','category','mimetypes','video','external','unknown'));
+ $this->initVar('class', XOBJ_DTYPE_ENUM, 'unknown', false, false, false, array('cart','sessions','currency','category','mimetypes','videos','external','unknown'));
$this->initVar('file', XOBJ_DTYPE_TXTBOX, null, false, 64);
$this->initVar('path', XOBJ_DTYPE_TXTBOX, null, false, 128);
$this->initVar('line', XOBJ_DTYPE_INT, null, false);
Modified: XoopsModules/vod/trunk/htdocs/modules/vod/class/sessions.php
===================================================================
--- XoopsModules/vod/trunk/htdocs/modules/vod/class/sessions.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/trunk/htdocs/modules/vod/class/sessions.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -228,7 +228,7 @@
unset($_COOKIE['cart']);
}
}
- if (is_object($GLOBALS['xoopsUser'])&&!is_object($session)) {
+ if (is_object($GLOBALS['xoopsUser'])&&!isset($session)) {
$criteria = new CriteriaCompo(new Criteria('uid', $GLOBALS['xoopsUser']->getVar('uid')));
$criteria->add(new Criteria('`mode`', '_VOD_ENUM_UNINVOICED'));
if ($this->getCount($criteria)>0) {
@@ -238,7 +238,7 @@
}
}
$user = vod_getIPData();
- if (!is_object($session)) {
+ if (!isset($session)) {
$criteria = new CriteriaCompo(new Criteria('`ip`', $user['ip']));
$criteria->add(new Criteria('netaddy', $user['network-addy']));
$criteria->add(new Criteria('`mode`', '_VOD_ENUM_UNINVOICED'));
@@ -249,7 +249,7 @@
}
}
- if (!is_object($session)) {
+ if (!isset($session)) {
unset($session);
unset($_SESSION['vod']['cart']);
unset($_COOKIE['cart']);
Modified: XoopsModules/vod/trunk/htdocs/modules/vod/class/videos.php
===================================================================
--- XoopsModules/vod/trunk/htdocs/modules/vod/class/videos.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/trunk/htdocs/modules/vod/class/videos.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -130,14 +130,16 @@
function toArray($preview=false, $state='list') {
$ret = parent::toArray();
+
if ($this->getVar('mid')>0) {
$mimetypes_handler = xoops_getmodulehandler('mimetypes', 'vod');
$mimetype = $mimetypes_handler->get($this->getVar('mid'));
if (is_object($mimetype))
$ret['mimetype'] = $mimetype->toArray();
}
+
$fields = array('width', 'height', 'autoplay', 'control');
- switch ($this->getSpecialWithUserAgent("")) {
+ switch ($this->getSpecialWithUserAgent($_SERVER["HTTP_USER_AGENT"])) {
case "A":
foreach($fields as $field) {
$ret[$field] = $ret['speciala_'.$field];
@@ -151,6 +153,7 @@
default:
break;
}
+
$ele = vod_videos_get_form($this, true);
foreach($ele as $key => $field)
$ret['form'][$key] = $field->render();
@@ -179,22 +182,22 @@
$sessions_handler = xoops_getmodulehandler('sessions', 'vod');
static $_session = null;
- if (!is_array($_SESSION['vod']['cart'])||!isset($_SESSION['vod']['cart'])) {
- $ret['incart'] = false;
- } else {
- if (!is_object($_session))
+ if (isset($_SESSION['vod']['cart']['sessid'])) {
+ if (!is_object($_session))
$_session = $sessions_handler->get($_SESSION['vod']['cart']['sessid']);
$ret['incart'] = $_session->inCart($this);
- }
-
- if (strlen($this->getVar('avata'))>0&&file_exists($GLOBALS['xoops']->path($this->getVar('path').$this->getVar('avata')))) {
+ } else {
+ $ret['incart'] = false;
+ }
+
+ if (strlen($this->getVar('avata'))>0&&file_exists($GLOBALS['xoops']->path($this->getVar('path').$this->getVar('avata')))) {
$ret['avata_url'] = $this->getImage('avata');
$ret['hasavata'] = true;
} else
$ret['hasavata'] = false;
-
+
$mode = $this->getModeWithUserAgent($_SERVER['HTTP_USER_AGENT']);
- $prev = array('width' => $this->getVar('width'), 'height' => $this->getVar('height'), 'id' => $this->getReference(false, $preview), 'source' => '');
+ $prev = array('width' => $this->getVar('width'), 'height' => $this->getVar('height'), 'id' => $this->getReference(false, $preview), 'source' => $this->getSource($mode, $preview));
if (strlen($this->getSource($mode, $preview))>0) {
$ret['haspreview'] = true;
$prev['mode'] = $mode;
@@ -210,7 +213,7 @@
$prev['height'] = $GLOBALS['vodModuleConfig']['video_height_'.$state];
$prev['source'] = $this->getSource($mode, $preview);
$prev['id'] = $this->getReference(false, $preview);
- $html = $this->getHTML(false, $data['width'], $data['height'], '', '', $preview, $state);
+ $html = $this->getHTML(false, $prev['width'], $prev['height'], '', '', $preview, $state);
if ($GLOBALS['vodModuleConfig'][$mode.'_secure']==true) {
$prev['contents'] = '';
$GLOBALS['xoTheme']->addScript('', array('type'=>'text/javascript'), $this->getJS(false, $prev['width'], $prev['height'], $preview, $state));
@@ -224,7 +227,7 @@
$prev['height'] = $GLOBALS['vodModuleConfig']['video_height_'.$state];
$prev['source'] = $this->getSource($mode, $preview);
$prev['id'] = $this->getReference(true, $preview);
- $html = $this->getHTML(true, $data['width'], $data['height'], '', '', $preview, $state);
+ $html = $this->getHTML(true, $prev['width'], $prev['height'], '', '', $preview, $state);
if ($GLOBALS['vodModuleConfig'][$mode.'_secure']==true) {
$prev['contents'] = '';
$GLOBALS['xoTheme']->addScript('', array('type'=>'text/javascript'), $this->getJS(true, $prev['width'], $prev['height'], $preview, $state));
@@ -237,46 +240,50 @@
} else {
$ret['haspreview'] = false;
}
- foreach($prev as $key => $value) {
- $ret['preview_data_'.$key] = $value;
- }
+
if ($GLOBALS['vodModuleConfig']['tags']&&file_exists($GLOBALS['xoops']->path("/modules/tag/include/tagbar.php"))) {
include_once XOOPS_ROOT_PATH."/modules/tag/include/tagbar.php";
$ret['tagbar'] = tagBar($this->getVar('vid'), $this->getVar('cid'));
}
+
return $ret;
}
function getHTML($block = false, $width=0, $height=0, $agent = '', $ip = '', $preview = false, $state = 'list') {
+
if (empty($ip))
$ip = $this->getIP();
if (empty($agent))
$agent = $_SERVER['HTTP_USER_AGENT'];
+
$mode = $this->getModeWithUserAgent($agent);
include_once ($GLOBALS['xoops']->path('class/template.php'));
- if (!isset($GLOBALS['xoopsTpl']))
- $GLOBALS['xoopsTpl'] = new XoopsTpl();
+ $GLOBALS['vodTpl'] = new XoopsTpl();
+
$videos = array();
- $videos = $this->toArray($preview, $state);
+ $videos = parent::toArray();
$videos['mode'] = $mode;
$videos['source'] = $this->getSource($mode, $preview);
$videos['id'] = $this->getReference($block, $preview);
$videos['width'] = (!empty($height)&&!empty($width)&&$width&&$height?$width:($this->getSpecialWithUserAgent($agent)=='A'?$this->getVar('speciala_width'):($this->getSpecialWithUserAgent($agent)=='B'?$this->getVar('specialb_width'):($this->getVar('width')))));
$videos['height'] = (!empty($height)&&!empty($height)&&$height&&$height?$height:($this->getSpecialWithUserAgent($agent)=='A'?$this->getVar('speciala_height'):($this->getSpecialWithUserAgent($agent)=='B'?$this->getVar('specialb_height'):($this->getVar('height')))));
- $GLOBALS['xoopsTpl']->assign('videos', $videos);
+
+ $GLOBALS['vodTpl']->assign('videos', $videos);
if (isset($videos['mimetype']))
- $GLOBALS['xoopsTpl']->assign('mimetype', $videos['mimetype']);
- $GLOBALS['xoopsTpl']->assign('xoConfig', $this->_ModConfig);
- $GLOBALS['xoopsTpl']->assign('iframe', isset($_REQUEST['iframe']));
- $GLOBALS['xoopsTpl']->assign('preview', $preview);
- $GLOBALS['xoopsTpl']->assign('state', $state);
+ $GLOBALS['vodTpl']->assign('mimetype', $videos['mimetype']);
+ $GLOBALS['vodTpl']->assign('xoConfig', $this->_ModConfig);
+ $GLOBALS['vodTpl']->assign('iframe', isset($_REQUEST['iframe']));
+ $GLOBALS['vodTpl']->assign('preview', $preview);
+ $GLOBALS['vodTpl']->assign('state', $state);
+
ob_start();
if ($block == false)
- $GLOBALS['xoopsTpl']->display('db:vod_json_'.$mode.'_videos.html');
+ $GLOBALS['vodTpl']->display('db:vod_json_'.$mode.'_videos.html');
else
- $GLOBALS['xoopsTpl']->display('db:vod_json_block_'.$mode.'_videos.html');
+ $GLOBALS['vodTpl']->display('db:vod_json_block_'.$mode.'_videos.html');
$data = ob_get_contents();
ob_end_clean();
+
return $data;
}
Modified: XoopsModules/vod/trunk/htdocs/modules/vod/cron/notify.php
===================================================================
--- XoopsModules/vod/trunk/htdocs/modules/vod/cron/notify.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/trunk/htdocs/modules/vod/cron/notify.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -36,7 +36,7 @@
$xoopsMailer->setHTML(true);
$xoopsMailer->setTemplateDir($GLOBALS['xoops']->path('/modules/vod/language/'.$GLOBALS['xoopsConfig']['language'].'/mail_templates/'));
$xoopsMailer->setTemplate('vod_video_available_cart.html');
- $xoopsMailer->setSubject(sprintf(_VOD_EMAIL_VIDEO_AVAILABLE_SUBJECT, $videos[$cart->getVar('vid')]->getVar('name'), date(_DATESTRING, time().$GLOBALS['vodModuleConfig']['purchase_expires'])));
+ $xoopsMailer->setSubject(sprintf(_VOD_EMAIL_VIDEO_AVAILABLE_SUBJECT, $videos[$cart->getVar('vid')]->getVar('name'), date(_DATESTRING, time()+$GLOBALS['vodModuleConfig']['purchase_expires'])));
$xoopsMailer->setToEmails($sessions[$cart->getVar('sessid')]->getVar('email'));
@@ -51,7 +51,8 @@
$xoopsMailer->assign("SUMMARY", $videos[$cart->getVar('vid')]->getVar('summary'));
$xoopsMailer->assign("CATEGORY", $categories[$cart->getVar('cid')]->getVar('name'));
$xoopsMailer->assign("URL", $videos[$cart->getVar('vid')]->getViewingURL($sessions[$cart->getVar('sessid')], $cart));
- $xoopsMailer->assign("EXPIRES", date(_DATESTRING, time().$GLOBALS['vodModuleConfig']['purchase_expires']));
+ $xoopsMailer->assign("EXPIRES", date(_DATESTRING, time()+$GLOBALS['vodModuleConfig']['purchase_expires']));
+ $xoopsMailer->assign("EXPIRE", date(_DATESTRING, time()+$GLOBALS['vodModuleConfig']['purchase_expires']));
$xoopsMailer->assign("INVURL", $sessions[$cart->getVar('sessid')]->getVar('url'));
if ($GLOBALS['vodModuleConfig']['matrixstream']==true&&$sessions[$cart->getVar('sessid')]->getVar('uid')>0&&$cart->getVar('pid')>0) {
@@ -69,7 +70,7 @@
if ($subscribed_handler->insert($subscription, true)) {
if($xoopsMailer->send() ){
$cart->setVar('notified', time());
- $cart->setVar('expires', time().$GLOBALS['vodModuleConfig']['purchase_expires']);
+ $cart->setVar('expires', time()+$GLOBALS['vodModuleConfig']['purchase_expires']);
$cart_handler->insert($cart);
}
}
Modified: XoopsModules/vod/trunk/htdocs/modules/vod/docs/changelog.txt
===================================================================
--- XoopsModules/vod/trunk/htdocs/modules/vod/docs/changelog.txt 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/trunk/htdocs/modules/vod/docs/changelog.txt 2012-01-29 14:46:28 UTC (rev 8826)
@@ -1,4 +1,15 @@
==========================================
+ 2011/01/30 01:26:01 Version 1.17 BETA
+==========================================
+ - Added /tag/plugin/vod.php Tag Module Plugin code added (wishcraft)
+ - Added /xpayment/plugin/vod.php XPayment Module Plugin code added (wishcraft)
+ - Changed /class/cart.php restructing and debugged code added for cart & cart session (wishcraft)
+ - Changed /class/sessions.php restructing and debugged code added for cart & cart session (wishcraft)
+ - Changed /class/log.php restructing and debugged code added for videos class (wishcraft)
+ - Changed /index.php restructing and debugged code added for cart & cart session (wishcraft)
+ - Changed /xoops_version.php Support for New Variables, Constants & Templates; version updated of Application (wishcraft)
+
+==========================================
2011/01/27 5:48:01 Version 1.16 ALPHA
==========================================
- Added /cron/notify.php Notification Cron Added & Matrixstream code added (wishcraft)
Modified: XoopsModules/vod/trunk/htdocs/modules/vod/include/formobjects.vod.php
===================================================================
--- XoopsModules/vod/trunk/htdocs/modules/vod/include/formobjects.vod.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/trunk/htdocs/modules/vod/include/formobjects.vod.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -4,8 +4,9 @@
$config_handler = xoops_gethandler('config');
if (!isset($GLOBALS['vodModule']))
$GLOBALS['vodModule'] = $module_handler->getByDirname('vod');
- if (!isset($GLOBALS['vodModuleConfig']))
- $GLOBALS['vodModuleConfig'] = $config_handler->getConfigList($GLOBALS['vodModule']->getVar('mid'));
+ if (is_object($GLOBALS['vodModule']))
+ if (!isset($GLOBALS['vodModuleConfig']))
+ $GLOBALS['vodModuleConfig'] = $config_handler->getConfigList($GLOBALS['vodModule']->getVar('mid'));
require_once($GLOBALS['xoops']->path('class/xoopsformloader.php'));
require_once($GLOBALS['xoops']->path('class/pagenav.php'));
Modified: XoopsModules/vod/trunk/htdocs/modules/vod/include/forms.vod.php
===================================================================
--- XoopsModules/vod/trunk/htdocs/modules/vod/include/forms.vod.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/trunk/htdocs/modules/vod/include/forms.vod.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -400,7 +400,7 @@
$ele['parent'] = new VodFormSelectCategory(($as_array==false?_FRM_VOD_FORM_CATEGORY_PARENT:''), $id.'[parent]', $object->getVar('parent'), 1, false, $object->getVar('cid'));
$ele['parent']->setDescription(($as_array==false?_FRM_VOD_FORM_CATEGORY_PARENT_DESC:''));
- $ele['prefix'] = new XoopsFormText(($as_array==false?_FRM_VOD_FORM_CATEGORY_PREFIX:''), $id.'[catno]', ($as_array==false?16:8),32, $object->getVar('prefix'));
+ $ele['prefix'] = new XoopsFormText(($as_array==false?_FRM_VOD_FORM_CATEGORY_PREFIX:''), $id.'[prefix]', ($as_array==false?16:8),32, $object->getVar('prefix'));
$ele['prefix']->setDescription(($as_array==false?_FRM_VOD_FORM_CATEGORY_PREFIX_DESC:''));
$ele['name'] = new XoopsFormText(($as_array==false?_FRM_VOD_FORM_CATEGORY_NAME:''), $id.'[name]', ($as_array==false?55:21),128, $object->getVar('name'));
$ele['name']->setDescription(($as_array==false?_FRM_VOD_FORM_CATEGORY_NAME_DESC:''));
Modified: XoopsModules/vod/trunk/htdocs/modules/vod/index.php
===================================================================
--- XoopsModules/vod/trunk/htdocs/modules/vod/index.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/trunk/htdocs/modules/vod/index.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -27,8 +27,13 @@
$sessions_handler =& xoops_getmodulehandler('sessions', 'vod');
$sessions = $sessions_handler->intialiseCart();
- if (is_array($_SESSION['vod']['cart'])&&$_SESSION['vod']['cart']!=false) {
- setcookie('cart', serialize($_SESSION['vod']['cart']), 3600*24*30);
+ if (isset($_SESSION['vod']['cart'])) {
+ if (is_array($_SESSION['vod']['cart'])&&$_SESSION['vod']['cart']!=false) {
+ setcookie('cart', serialize($_SESSION['vod']['cart']), 3600*24*30);
+ } else {
+ $cart = false;
+ setcookie('cart', '', 3600*24*30);
+ }
} else {
$cart = false;
setcookie('cart', '', 3600*24*30);
@@ -36,11 +41,13 @@
$xoopsOption['template_main'] = 'vod_index.html';
include($GLOBALS['xoops']->path('/header.php'));
- $GLOBALS['xoopsTpl']->assign('numincart', $_SESSION['vod']['cart']['videos']);
+ if (isset($_SESSION['vod']['cart']))
+ $GLOBALS['xoopsTpl']->assign('numincart', $_SESSION['vod']['cart']['videos']);
$GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']);
$GLOBALS['xoopsTpl']->assign('back_url', $uri);
$GLOBALS['xoopsTpl']->assign('uri', urlencode($_SERVER['REQUEST_URI']));
$cathits=false;
+
if ($vid>0) {
$video = $videos_handler->get($vid);
$video->setVar('hits', $video->getVar('hits')+1);
@@ -53,6 +60,7 @@
}
$GLOBALS['xoopsTpl']->assign('video', $video->toArray($preview, 'main'));
}
+
if ($cid>0) {
$category = $category_handler->get($cid);
if ($cathits==false) {
@@ -61,6 +69,7 @@
}
$GLOBALS['xoopsTpl']->assign('category', $category->toArray());
}
+
$categories = array();
$criteria = new Criteria('parent', $cid);
$i = 0;
@@ -86,6 +95,7 @@
$categories[$cidb]['trend'] = false;
}
}
+
if ($i<>0)
$GLOBALS['xoopsTpl']->assign('trcolspan', ($GLOBALS['vodModuleConfig']['cat_per_row']-$ie));
$GLOBALS['xoopsTpl']->assign('categories', $categories);
@@ -99,7 +109,7 @@
break;
default:
case "list":
-
+
include_once $GLOBALS['xoops']->path( "/class/pagenav.php" );
$criteria = $videos_handler->getFilterCriteria($filter);
@@ -130,12 +140,14 @@
$videos = $videos_handler->getObjects($criteria, true);
foreach($videos as $vid => $video) {
if (is_object($video))
- $GLOBALS['xoopsTpl']->append('videos', $video->toArray($preview, 'list'));
+ $GLOBALS['xoopsTpl']->append('pageofvideos', $video->toArray($preview, 'list'));
}
+
if ($GLOBALS['vodModuleConfig']['force_jquery']&&!isset($GLOBALS['loaded_jquery'])) {
$GLOBALS['xoTheme']->addScript(XOOPS_URL._MI_VOD_JQUERY, array('type'=>'text/javascript'));
$GLOBALS['loaded_jquery']=true;
}
+
break;
}
case 'cart':
Modified: XoopsModules/vod/trunk/htdocs/modules/vod/language/english/forms.php
===================================================================
--- XoopsModules/vod/trunk/htdocs/modules/vod/language/english/forms.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/trunk/htdocs/modules/vod/language/english/forms.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -1,5 +1,25 @@
<?php
+ // Currency Form
+ define('_FRM_VOD_FORM_CURRENCY_NAME', 'Currency Name');
+ define('_FRM_VOD_FORM_DESC_CURRENCY_NAME', '');
+ define('_FRM_VOD_FORM_CURRENCY_ALIAS', 'Currency Alias');
+ define('_FRM_VOD_FORM_DESC_CURRENCY_ALIAS', '');
+ define('_FRM_VOD_FORM_CURRENCY_CODE', 'Currency ISO Code');
+ define('_FRM_VOD_FORM_DESC_CURRENCY_CODE', '3 Characters');
+ define('_FRM_VOD_FORM_CURRENCY_LEFT', 'Currency Symbol on Left');
+ define('_FRM_VOD_FORM_DESC_CURRENCY_LEFT', '');
+ define('_FRM_VOD_FORM_CURRENCY_RIGHT', 'Currency Symbol on Right');
+ define('_FRM_VOD_FORM_DESC_CURRENCY_RIGHT', '');
+ define('_FRM_VOD_FORM_CURRENCY_DECIMALS', 'Currency Decimal Places');
+ define('_FRM_VOD_FORM_DESC_CURRENCY_DECIMALS', '');
+ define('_FRM_VOD_FORM_CURRENCY_RATE', 'Currency Exchange Rate');
+ define('_FRM_VOD_FORM_DESC_CURRENCY_RATE', 'Based on Default Currency');
+ define('_FRM_VOD_FORM_CURRENCY_DEFAULT', 'Default Currency');
+ define('_FRM_VOD_FORM_DESC_CURRENCY_DEFAULT', '');
+ define('_FRM_VOD_EDIT_CURRENCY', 'Edit this currency - %s');
+ define('_FRM_VOD_NEW_CURRENCY', 'New currency');
+
define('_FRM_VOD_FORM_ISNEW_VOD', 'New Videos');
define('_FRM_VOD_FORM_EDIT_VOD', 'Edit Existing Videos');
define('_FRM_VOD_FORM_VOD_NAME', 'Name of Video');
Modified: XoopsModules/vod/trunk/htdocs/modules/vod/language/english/modinfo.php
===================================================================
--- XoopsModules/vod/trunk/htdocs/modules/vod/language/english/modinfo.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/trunk/htdocs/modules/vod/language/english/modinfo.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -112,16 +112,16 @@
define('_MI_VOD_HTML5_VIDEOS_DESC', 'This is the HTML5 videos selected when a useragent is specified');
define('_MI_VOD_OTHER_VIDEOS', 'Other Videos');
define('_MI_VOD_OTHER_VIDEOS_DESC', 'This is the Other videos selected when a useragent is specified');
- define('_MI_VOD_LOAD_VOD', 'Load Vod in these videos sessions');
+ define('_MI_VOD_LOAD_VOD', 'Load Flowplayer in these videos sessions');
define('_MI_VOD_LOAD_VOD_DESC', 'This is the intances that load vod (Do not change unless you know what you are doing)');
define('_MI_VOD_LOAD_VIDEOJS', 'Load Video-js in these videos sessions');
define('_MI_VOD_LOAD_VIDEOJS_DESC', 'This is the intances that load HTML5 Video-js (Do not change unless you know what you are doing)');
//Enumerators
- define('_MI_VOD_FLASH', 'Flash Videos (Vod)');
+ define('_MI_VOD_FLASH', 'Flash Videos (Flowplayer)');
define('_MI_VOD_HTML5', 'HTML5 Videos (Video-js)');
define('_MI_VOD_IOS', 'Apple OS Videos (Video-js)');
- define('_MI_VOD_RTMP', 'RTMP Stream Videos (Vod)');
+ define('_MI_VOD_RTMP', 'RTMP Stream Videos (Flowplayer)');
define('_MI_VOD_RTSP', 'RTSP Stream Videos (Video-js)');
define('_MI_VOD_OTHER', 'Other Videos');
define('_MI_VOD_SILVERLIGHT', 'Silverlight Videos');
Modified: XoopsModules/vod/trunk/htdocs/modules/vod/sql/mysql.sql
===================================================================
--- XoopsModules/vod/trunk/htdocs/modules/vod/sql/mysql.sql 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/trunk/htdocs/modules/vod/sql/mysql.sql 2012-01-29 14:46:28 UTC (rev 8826)
@@ -198,7 +198,7 @@
CREATE TABLE `vod_log` (
`log_id` bigint(25) unsigned NOT NULL AUTO_INCREMENT,
- `class` enum('cart','sessions','currency','category','mimetypes','video','external','unknown') DEFAULT 'unknown',
+ `class` enum('cart','sessions','currency','category','mimetypes','videos','external','unknown') DEFAULT 'unknown',
`file` varchar(64) DEFAULT NULL,
`path` varchar(128) DEFAULT NULL,
`line` int(15) unsigned DEFAULT '0',
Modified: XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_videos_list.html
===================================================================
--- XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_videos_list.html 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_videos_list.html 2012-01-29 14:46:28 UTC (rev 8826)
@@ -52,7 +52,7 @@
<th> </th>
<th> </th>
</tr>
- <{foreach item=item from=$videos}>
+ <{foreach item=item from=$pageofvideos}>
<tr class="<{cycle values="even,odd"}>">
<td rowspan='2' align='center'><{if $item.hasavata}><img src='<{$item.avata_url}>' width='95px'><{else}> <{/if}></td>
<td><{$item.cid}></td>
Modified: XoopsModules/vod/trunk/htdocs/modules/vod/xoops_version.php
===================================================================
--- XoopsModules/vod/trunk/htdocs/modules/vod/xoops_version.php 2012-01-29 11:32:49 UTC (rev 8825)
+++ XoopsModules/vod/trunk/htdocs/modules/vod/xoops_version.php 2012-01-29 14:46:28 UTC (rev 8826)
@@ -92,11 +92,11 @@
// Tables created by sql file (without prefix!)
$i=0;
$modversion['tables'][$i++] = "vod_cart";
+$modversion['tables'][$i++] = "vod_cart_sessions";
$modversion['tables'][$i++] = "vod_category";
$modversion['tables'][$i++] = "vod_currency";
$modversion['tables'][$i++] = "vod_log";
$modversion['tables'][$i++] = "vod_mimetypes";
-$modversion['tables'][$i++] = "vod_sessions";
$modversion['tables'][$i++] = "vod_videos";
// Blocks
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <be...@us...> - 2012-01-29 11:32:55
|
Revision: 8825
http://xoops.svn.sourceforge.net/xoops/?rev=8825&view=rev
Author: beckmi
Date: 2012-01-29 11:32:49 +0000 (Sun, 29 Jan 2012)
Log Message:
-----------
Streamlining User Admin GUI
Modified Paths:
--------------
XoopsModules/smallworld/trunk/smallworld/templates/admin_useradmin.html
Modified: XoopsModules/smallworld/trunk/smallworld/templates/admin_useradmin.html
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/templates/admin_useradmin.html 2012-01-28 20:47:26 UTC (rev 8824)
+++ XoopsModules/smallworld/trunk/smallworld/templates/admin_useradmin.html 2012-01-29 11:32:49 UTC (rev 8825)
@@ -1,8 +1,4 @@
-<div class="smallworldadmin_tab_container">
- <div class="smallworldadmin_tab_content">
- <fieldset>
- <legend class="smallworldadmin_legend"><{$lang_useradmin}></legend>
- <p class="smallworldadmin"><{$smarty.const._AM_SMALLWORLD_USERADMIN_TITLE}></p>
+
<div id = "smallworld_admin_allusers">
<{if $allusersinspectcounter > 0}>
<legend class="smallworldadmin_legend"><{$smarty.const._AM_SMALLWORLD_USERADMININSPECT_TITLE}></legend>
@@ -114,8 +110,4 @@
<{/foreach}>
</table>
<{/if}>
- </div>
- </fieldset>
- </div>
- <span style="margin: 27%; height: 50px; position: relative;"><{$smarty.const._AM_SMALLWORLD_SP}></span>
-</div>
\ No newline at end of file
+ </div>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <wis...@us...> - 2012-01-28 20:47:39
|
Revision: 8824
http://xoops.svn.sourceforge.net/xoops/?rev=8824&view=rev
Author: wishcraft
Date: 2012-01-28 20:47:26 +0000 (Sat, 28 Jan 2012)
Log Message:
-----------
VOD 1.17 Beta - Video on demand shopping cart, XPayment plugin inc, Tag plugin inc, Cron Inc, Code Tested - Unit Testing Required - see changelog.txt
Added Paths:
-----------
XoopsModules/vod/releases/1.17/
XoopsModules/vod/releases/1.17/docs/
XoopsModules/vod/releases/1.17/htdocs/
XoopsModules/vod/releases/1.17/htdocs/Frameworks/
XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/
XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/
XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/
XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.cart.png
XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.category.png
XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.currency.png
XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.log.png
XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.mimetypes.png
XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.useragents.png
XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.video.png
XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/
XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.cart.png
XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.category.png
XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.currency.png
XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.log.png
XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.mimetypes.png
XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.useragents.png
XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.video.png
XoopsModules/vod/releases/1.17/htdocs/modules/
XoopsModules/vod/releases/1.17/htdocs/modules/tag/
XoopsModules/vod/releases/1.17/htdocs/modules/tag/plugin/
XoopsModules/vod/releases/1.17/htdocs/modules/tag/plugin/vod.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/admin/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/admin/header.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/admin/index.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/admin/index.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/admin/menu.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/blocks/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/blocks/flowplayer_block_player.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/blocks/index.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/cart.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/category.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/currency.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/index.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/log.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/mimetypes.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/sessions.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/class/videos.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/cron/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/cron/index.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/cron/notify.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/docs/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/docs/changelog.txt
XoopsModules/vod/releases/1.17/htdocs/modules/vod/docs/credits.txt
XoopsModules/vod/releases/1.17/htdocs/modules/vod/docs/index.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/docs/install.txt
XoopsModules/vod/releases/1.17/htdocs/modules/vod/docs/lang_diff.txt
XoopsModules/vod/releases/1.17/htdocs/modules/vod/docs/licence.txt
XoopsModules/vod/releases/1.17/htdocs/modules/vod/docs/readme.txt
XoopsModules/vod/releases/1.17/htdocs/modules/vod/dojson_videos.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/header.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/images/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/images/icons/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/images/icons/admin/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/images/icons/admin/index.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/images/icons/admin/video.png
XoopsModules/vod/releases/1.17/htdocs/modules/vod/images/icons/index.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/images/index.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/images/vod_slogo.png
XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/JSON.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/formobjects.vod.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/forms.vod.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/formselectcategory.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/formselectcurrency.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/formselectmimetype.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/formselectpackageid.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/formselectsupport.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/formselectvideos.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/functions.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/index.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/update.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/include/uploader.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/index.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/js/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/js/core.js
XoopsModules/vod/releases/1.17/htdocs/modules/vod/js/flowplayer-3.2.6.min.js
XoopsModules/vod/releases/1.17/htdocs/modules/vod/js/index.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/js/json_functions.js
XoopsModules/vod/releases/1.17/htdocs/modules/vod/js/video.js
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/admin.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/blocks.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/email.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/enum.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/forms.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/index.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/log.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/mail_templates/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/mail_templates/vod_video_available_cart.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/mail_templates/vod_video_expired_cart.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/mail_templates/vod_video_expired_viewing_cart.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/main.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/mainfile.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/modinfo.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/style.css
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/english/video-js.css
XoopsModules/vod/releases/1.17/htdocs/modules/vod/language/index.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/plugins/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/plugins/index.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/plugins/log.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/preloads/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/preloads/core.php
XoopsModules/vod/releases/1.17/htdocs/modules/vod/preloads/index.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/sql/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/sql/index.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/sql/mysql.sql
XoopsModules/vod/releases/1.17/htdocs/modules/vod/swf/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/swf/flowplayer-3.2.7.swf
XoopsModules/vod/releases/1.17/htdocs/modules/vod/swf/flowplayer.controls-3.2.5.swf
XoopsModules/vod/releases/1.17/htdocs/modules/vod/swf/flowplayer.rtmp-3.2.3.swf
XoopsModules/vod/releases/1.17/htdocs/modules/vod/swf/index.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/blocks/
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/blocks/flowplayer_block_player.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/blocks/index.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/index.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_cpanel_cart_edit.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_cpanel_cart_list.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_cpanel_category_edit.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_cpanel_category_list.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_cpanel_currency_edit.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_cpanel_currency_list.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_cpanel_log_list.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_cpanel_mimetypes_edit.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_cpanel_mimetypes_list.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_cpanel_sessions_edit.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_cpanel_sessions_list.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_cpanel_useragents_list.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_cpanel_videos_edit.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_cpanel_videos_list.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_cart_view.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_cart_xpayment_form.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_category_list.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_category_view.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_flash_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_html5_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_http_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_iframe.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_iframe_flash_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_iframe_html5_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_iframe_http_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_iframe_ios_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_iframe_other_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_iframe_rtmp_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_iframe_rtsp_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_iframe_silverlight_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_ios_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_other_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_rstp_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_rtmp_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_silverlight_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_videos_list.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_index_videos_view.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_json_block_flash_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_json_block_html5_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_json_block_http_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_json_block_ios_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_json_block_other_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_json_block_rtmp_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_json_block_rtsp_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_json_block_silverlight_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_json_flash_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_json_html5_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_json_http_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_json_ios_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_json_other_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_json_rtmp_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_json_rtsp_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/templates/vod_json_silverlight_videos.html
XoopsModules/vod/releases/1.17/htdocs/modules/vod/xoops_version.php
XoopsModules/vod/releases/1.17/htdocs/modules/xpayment/
XoopsModules/vod/releases/1.17/htdocs/modules/xpayment/plugin/
XoopsModules/vod/releases/1.17/htdocs/modules/xpayment/plugin/vod.php
XoopsModules/vod/trunk/
XoopsModules/vod/trunk/docs/
XoopsModules/vod/trunk/htdocs/
XoopsModules/vod/trunk/htdocs/Frameworks/
XoopsModules/vod/trunk/htdocs/Frameworks/moduleclasses/
XoopsModules/vod/trunk/htdocs/Frameworks/moduleclasses/icons/
XoopsModules/vod/trunk/htdocs/Frameworks/moduleclasses/icons/16/
XoopsModules/vod/trunk/htdocs/Frameworks/moduleclasses/icons/16/vod.cart.png
XoopsModules/vod/trunk/htdocs/Frameworks/moduleclasses/icons/16/vod.category.png
XoopsModules/vod/trunk/htdocs/Frameworks/moduleclasses/icons/16/vod.currency.png
XoopsModules/vod/trunk/htdocs/Frameworks/moduleclasses/icons/16/vod.log.png
XoopsModules/vod/trunk/htdocs/Frameworks/moduleclasses/icons/16/vod.mimetypes.png
XoopsModules/vod/trunk/htdocs/Frameworks/moduleclasses/icons/16/vod.useragents.png
XoopsModules/vod/trunk/htdocs/Frameworks/moduleclasses/icons/16/vod.video.png
XoopsModules/vod/trunk/htdocs/Frameworks/moduleclasses/icons/32/
XoopsModules/vod/trunk/htdocs/Frameworks/moduleclasses/icons/32/vod.cart.png
XoopsModules/vod/trunk/htdocs/Frameworks/moduleclasses/icons/32/vod.category.png
XoopsModules/vod/trunk/htdocs/Frameworks/moduleclasses/icons/32/vod.currency.png
XoopsModules/vod/trunk/htdocs/Frameworks/moduleclasses/icons/32/vod.log.png
XoopsModules/vod/trunk/htdocs/Frameworks/moduleclasses/icons/32/vod.mimetypes.png
XoopsModules/vod/trunk/htdocs/Frameworks/moduleclasses/icons/32/vod.useragents.png
XoopsModules/vod/trunk/htdocs/Frameworks/moduleclasses/icons/32/vod.video.png
XoopsModules/vod/trunk/htdocs/modules/
XoopsModules/vod/trunk/htdocs/modules/tag/
XoopsModules/vod/trunk/htdocs/modules/tag/plugin/
XoopsModules/vod/trunk/htdocs/modules/tag/plugin/vod.php
XoopsModules/vod/trunk/htdocs/modules/vod/
XoopsModules/vod/trunk/htdocs/modules/vod/admin/
XoopsModules/vod/trunk/htdocs/modules/vod/admin/header.php
XoopsModules/vod/trunk/htdocs/modules/vod/admin/index.html
XoopsModules/vod/trunk/htdocs/modules/vod/admin/index.php
XoopsModules/vod/trunk/htdocs/modules/vod/admin/menu.php
XoopsModules/vod/trunk/htdocs/modules/vod/blocks/
XoopsModules/vod/trunk/htdocs/modules/vod/blocks/flowplayer_block_player.php
XoopsModules/vod/trunk/htdocs/modules/vod/blocks/index.html
XoopsModules/vod/trunk/htdocs/modules/vod/class/
XoopsModules/vod/trunk/htdocs/modules/vod/class/cart.php
XoopsModules/vod/trunk/htdocs/modules/vod/class/category.php
XoopsModules/vod/trunk/htdocs/modules/vod/class/currency.php
XoopsModules/vod/trunk/htdocs/modules/vod/class/index.html
XoopsModules/vod/trunk/htdocs/modules/vod/class/log.php
XoopsModules/vod/trunk/htdocs/modules/vod/class/mimetypes.php
XoopsModules/vod/trunk/htdocs/modules/vod/class/sessions.php
XoopsModules/vod/trunk/htdocs/modules/vod/class/videos.php
XoopsModules/vod/trunk/htdocs/modules/vod/cron/
XoopsModules/vod/trunk/htdocs/modules/vod/cron/index.html
XoopsModules/vod/trunk/htdocs/modules/vod/cron/notify.php
XoopsModules/vod/trunk/htdocs/modules/vod/docs/
XoopsModules/vod/trunk/htdocs/modules/vod/docs/changelog.txt
XoopsModules/vod/trunk/htdocs/modules/vod/docs/credits.txt
XoopsModules/vod/trunk/htdocs/modules/vod/docs/index.html
XoopsModules/vod/trunk/htdocs/modules/vod/docs/install.txt
XoopsModules/vod/trunk/htdocs/modules/vod/docs/lang_diff.txt
XoopsModules/vod/trunk/htdocs/modules/vod/docs/licence.txt
XoopsModules/vod/trunk/htdocs/modules/vod/docs/readme.txt
XoopsModules/vod/trunk/htdocs/modules/vod/dojson_videos.php
XoopsModules/vod/trunk/htdocs/modules/vod/header.php
XoopsModules/vod/trunk/htdocs/modules/vod/images/
XoopsModules/vod/trunk/htdocs/modules/vod/images/icons/
XoopsModules/vod/trunk/htdocs/modules/vod/images/icons/admin/
XoopsModules/vod/trunk/htdocs/modules/vod/images/icons/admin/index.html
XoopsModules/vod/trunk/htdocs/modules/vod/images/icons/admin/video.png
XoopsModules/vod/trunk/htdocs/modules/vod/images/icons/index.html
XoopsModules/vod/trunk/htdocs/modules/vod/images/index.html
XoopsModules/vod/trunk/htdocs/modules/vod/images/vod_slogo.png
XoopsModules/vod/trunk/htdocs/modules/vod/include/
XoopsModules/vod/trunk/htdocs/modules/vod/include/JSON.php
XoopsModules/vod/trunk/htdocs/modules/vod/include/formobjects.vod.php
XoopsModules/vod/trunk/htdocs/modules/vod/include/forms.vod.php
XoopsModules/vod/trunk/htdocs/modules/vod/include/formselectcategory.php
XoopsModules/vod/trunk/htdocs/modules/vod/include/formselectcurrency.php
XoopsModules/vod/trunk/htdocs/modules/vod/include/formselectmimetype.php
XoopsModules/vod/trunk/htdocs/modules/vod/include/formselectpackageid.php
XoopsModules/vod/trunk/htdocs/modules/vod/include/formselectsupport.php
XoopsModules/vod/trunk/htdocs/modules/vod/include/formselectvideos.php
XoopsModules/vod/trunk/htdocs/modules/vod/include/functions.php
XoopsModules/vod/trunk/htdocs/modules/vod/include/index.html
XoopsModules/vod/trunk/htdocs/modules/vod/include/update.php
XoopsModules/vod/trunk/htdocs/modules/vod/include/uploader.php
XoopsModules/vod/trunk/htdocs/modules/vod/index.php
XoopsModules/vod/trunk/htdocs/modules/vod/js/
XoopsModules/vod/trunk/htdocs/modules/vod/js/core.js
XoopsModules/vod/trunk/htdocs/modules/vod/js/flowplayer-3.2.6.min.js
XoopsModules/vod/trunk/htdocs/modules/vod/js/index.html
XoopsModules/vod/trunk/htdocs/modules/vod/js/json_functions.js
XoopsModules/vod/trunk/htdocs/modules/vod/js/video.js
XoopsModules/vod/trunk/htdocs/modules/vod/language/
XoopsModules/vod/trunk/htdocs/modules/vod/language/english/
XoopsModules/vod/trunk/htdocs/modules/vod/language/english/admin.php
XoopsModules/vod/trunk/htdocs/modules/vod/language/english/blocks.php
XoopsModules/vod/trunk/htdocs/modules/vod/language/english/email.php
XoopsModules/vod/trunk/htdocs/modules/vod/language/english/enum.php
XoopsModules/vod/trunk/htdocs/modules/vod/language/english/forms.php
XoopsModules/vod/trunk/htdocs/modules/vod/language/english/index.html
XoopsModules/vod/trunk/htdocs/modules/vod/language/english/log.php
XoopsModules/vod/trunk/htdocs/modules/vod/language/english/mail_templates/
XoopsModules/vod/trunk/htdocs/modules/vod/language/english/mail_templates/vod_video_available_cart.html
XoopsModules/vod/trunk/htdocs/modules/vod/language/english/mail_templates/vod_video_expired_cart.html
XoopsModules/vod/trunk/htdocs/modules/vod/language/english/mail_templates/vod_video_expired_viewing_cart.html
XoopsModules/vod/trunk/htdocs/modules/vod/language/english/main.php
XoopsModules/vod/trunk/htdocs/modules/vod/language/english/mainfile.php
XoopsModules/vod/trunk/htdocs/modules/vod/language/english/modinfo.php
XoopsModules/vod/trunk/htdocs/modules/vod/language/english/style.css
XoopsModules/vod/trunk/htdocs/modules/vod/language/english/video-js.css
XoopsModules/vod/trunk/htdocs/modules/vod/language/index.html
XoopsModules/vod/trunk/htdocs/modules/vod/plugins/
XoopsModules/vod/trunk/htdocs/modules/vod/plugins/index.html
XoopsModules/vod/trunk/htdocs/modules/vod/plugins/log.php
XoopsModules/vod/trunk/htdocs/modules/vod/preloads/
XoopsModules/vod/trunk/htdocs/modules/vod/preloads/core.php
XoopsModules/vod/trunk/htdocs/modules/vod/preloads/index.html
XoopsModules/vod/trunk/htdocs/modules/vod/sql/
XoopsModules/vod/trunk/htdocs/modules/vod/sql/index.html
XoopsModules/vod/trunk/htdocs/modules/vod/sql/mysql.sql
XoopsModules/vod/trunk/htdocs/modules/vod/swf/
XoopsModules/vod/trunk/htdocs/modules/vod/swf/flowplayer-3.2.7.swf
XoopsModules/vod/trunk/htdocs/modules/vod/swf/flowplayer.controls-3.2.5.swf
XoopsModules/vod/trunk/htdocs/modules/vod/swf/flowplayer.rtmp-3.2.3.swf
XoopsModules/vod/trunk/htdocs/modules/vod/swf/index.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/
XoopsModules/vod/trunk/htdocs/modules/vod/templates/blocks/
XoopsModules/vod/trunk/htdocs/modules/vod/templates/blocks/flowplayer_block_player.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/blocks/index.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/index.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_cpanel_cart_edit.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_cpanel_cart_list.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_cpanel_category_edit.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_cpanel_category_list.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_cpanel_currency_edit.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_cpanel_currency_list.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_cpanel_log_list.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_cpanel_mimetypes_edit.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_cpanel_mimetypes_list.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_cpanel_sessions_edit.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_cpanel_sessions_list.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_cpanel_useragents_list.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_cpanel_videos_edit.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_cpanel_videos_list.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_cart_view.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_cart_xpayment_form.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_category_list.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_category_view.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_flash_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_html5_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_http_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_iframe.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_iframe_flash_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_iframe_html5_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_iframe_http_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_iframe_ios_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_iframe_other_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_iframe_rtmp_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_iframe_rtsp_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_iframe_silverlight_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_ios_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_other_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_rstp_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_rtmp_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_silverlight_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_videos_list.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_index_videos_view.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_json_block_flash_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_json_block_html5_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_json_block_http_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_json_block_ios_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_json_block_other_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_json_block_rtmp_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_json_block_rtsp_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_json_block_silverlight_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_json_flash_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_json_html5_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_json_http_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_json_ios_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_json_other_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_json_rtmp_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_json_rtsp_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/templates/vod_json_silverlight_videos.html
XoopsModules/vod/trunk/htdocs/modules/vod/xoops_version.php
XoopsModules/vod/trunk/htdocs/modules/xpayment/
XoopsModules/vod/trunk/htdocs/modules/xpayment/plugin/
XoopsModules/vod/trunk/htdocs/modules/xpayment/plugin/vod.php
Added: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.cart.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.cart.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.category.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.category.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.currency.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.currency.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.log.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.log.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.mimetypes.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.mimetypes.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.useragents.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.useragents.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.video.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/16/vod.video.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.cart.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.cart.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.category.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.category.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.currency.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.currency.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.log.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.log.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.mimetypes.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.mimetypes.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.useragents.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.useragents.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.video.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.17/htdocs/Frameworks/moduleclasses/icons/32/vod.video.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.17/htdocs/modules/tag/plugin/vod.php
===================================================================
--- XoopsModules/vod/releases/1.17/htdocs/modules/tag/plugin/vod.php (rev 0)
+++ XoopsModules/vod/releases/1.17/htdocs/modules/tag/plugin/vod.php 2012-01-28 20:47:26 UTC (rev 8824)
@@ -0,0 +1,76 @@
+<?php
+if (!defined('XOOPS_ROOT_PATH')) { exit(); }
+
+function vod_tag_iteminfo(&$items)
+{
+ if (empty($items) || !is_array($items)) {
+ return false;
+ }
+
+ $items_id = array();
+ foreach (array_keys($items) as $cat_id) {
+ // Some handling here to build the link upon catid
+ // catid is not used in vod, so just skip it
+ foreach (array_keys($items[$cat_id]) as $item_id) {
+ // In vod, the item_id is "topic_id"
+ $items_id[] = intval($item_id);
+ }
+ }
+ $item_handler =& xoops_getmodulehandler('videos', 'vod');
+ $items_obj = $item_handler->getObjects(new Criteria("vid", "(" . implode(", ", $items_id) . ")", "IN"), true);
+ $myts =& MyTextSanitizer::getInstance();
+ foreach (array_keys($items) as $cat_id) {
+ foreach (array_keys($items[$cat_id]) as $item_id) {
+ $item_obj =& $items_obj[$item_id];
+ if (is_object($item_obj))
+ $items[$cat_id][$item_id] = array(
+ "title" => $item_obj->getVar("name"),
+ "uid" => $item_obj->getVar("uid"),
+ "link" => 'go.php?vid='.$item_id.'&cid='.$item_obj->getVar("cid"),
+ "time" => $item_obj->getVar("date"),
+ "tags" => tag_parse_tag($item_obj->getVar("tags", "n")),
+ "content" => $myts->displayTarea($item_obj->getVar("summary"),true,true,true,true,true,true)
+ );
+ }
+ }
+ unset($items_obj);
+}
+
+/**
+ * Remove orphan tag-item links
+ *
+ * @return boolean
+ *
+ */
+function vod_tag_synchronization($mid)
+{
+ $item_handler =& xoops_getmodulehandler('videos', 'vod');
+ $link_handler =& xoops_getmodulehandler("link", "tag");
+
+ /* clear tag-item links */
+ if (version_compare( mysql_get_server_info(), "4.1.0", "ge" )):
+ $sql = " DELETE FROM {$link_handler->table}" .
+ " WHERE " .
+ " tag_modid = {$mid}" .
+ " AND " .
+ " ( tag_itemid NOT IN " .
+ " ( SELECT DISTINCT {$item_handler->keyName} " .
+ " FROM {$item_handler->table} " .
+ " WHERE {$item_handler->table}.approved > 0" .
+ " ) " .
+ " )";
+ else:
+ $sql = " DELETE {$link_handler->table} FROM {$link_handler->table}" .
+ " LEFT JOIN {$item_handler->table} AS aa ON {$link_handler->table}.tag_itemid = aa.{$item_handler->keyName} " .
+ " WHERE " .
+ " tag_modid = {$mid}" .
+ " AND " .
+ " ( aa.{$item_handler->keyName} IS NULL" .
+ " OR aa.approved < 1" .
+ " )";
+ endif;
+ if (!$result = $link_handler->db->queryF($sql)) {
+ //xoops_error($link_handler->db->error());
+ }
+}
+?>
\ No newline at end of file
Added: XoopsModules/vod/releases/1.17/htdocs/modules/vod/admin/header.php
===================================================================
--- XoopsModules/vod/releases/1.17/htdocs/modules/vod/admin/header.php (rev 0)
+++ XoopsModules/vod/releases/1.17/htdocs/modules/vod/admin/header.php 2012-01-28 20:47:26 UTC (rev 8824)
@@ -0,0 +1,61 @@
+<?php
+ require_once (dirname(dirname(dirname(dirname(__FILE__)))).'/include/cp_header.php');
+
+ if (!defined('_CHARSET'))
+ define ("_CHARSET","UTF-8");
+ if (!defined('_CHARSET_ISO'))
+ define ("_CHARSET_ISO","ISO-8859-1");
+
+ $GLOBALS['myts'] = MyTextSanitizer::getInstance();
+
+ $module_handler = xoops_gethandler('module');
+ $config_handler = xoops_gethandler('config');
+ $GLOBALS['vodModule'] = $module_handler->getByDirname('vod');
+ $GLOBALS['vodModuleConfig'] = $config_handler->getConfigList($GLOBALS['vodModule']->getVar('mid'));
+
+ xoops_load('pagenav');
+ xoops_load('xoopslists');
+ xoops_load('xoopsformloader');
+
+ include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php');
+ include_once $GLOBALS['xoops']->path('class'.DS.'xoopstree.php');
+
+ if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){
+ include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php');
+ //return true;
+ }else{
+ echo vod_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks");
+ //return false;
+ }
+ $GLOBALS['vodImageIcon'] = XOOPS_URL .'/'. $GLOBALS['vodModule']->getInfo('icons16');
+ $GLOBALS['vodImageAdmin'] = XOOPS_URL .'/'. $GLOBALS['vodModule']->getInfo('icons32');
+
+ if ($GLOBALS['xoopsUser']) {
+ $moduleperm_handler =& xoops_gethandler('groupperm');
+ if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['vodModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) {
+ redirect_header(XOOPS_URL, 1, _NOPERM);
+ exit();
+ }
+ } else {
+ redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM);
+ exit();
+ }
+
+ if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) {
+ include_once(XOOPS_ROOT_PATH."/class/template.php");
+ $GLOBALS['xoopsTpl'] = new XoopsTpl();
+ }
+
+ $GLOBALS['xoopsTpl']->assign('pathImageIcon', $GLOBALS['vodImageIcon']);
+ $GLOBALS['xoopsTpl']->assign('pathImageAdmin', $GLOBALS['vodImageAdmin']);
+
+
+ require_once('../include/functions.php');
+ require_once('../include/formobjects.vod.php');
+ require_once('../include/forms.vod.php');
+
+ include_once(dirname(dirname(__FILE__)).'/language/'.$GLOBALS['xoopsConfig']['language'].'/modinfo.php');
+ include_once(dirname(dirname(__FILE__)).'/language/'.$GLOBALS['xoopsConfig']['language'].'/forms.php');
+
+
+?>
\ No newline at end of file
Added: XoopsModules/vod/releases/1.17/htdocs/modules/vod/admin/index.html
===================================================================
--- XoopsModules/vod/releases/1.17/htdocs/modules/vod/admin/index.html (rev 0)
+++ XoopsModules/vod/releases/1.17/htdocs/modules/vod/admin/index.html 2012-01-28 20:47:26 UTC (rev 8824)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/vod/releases/1.17/htdocs/modules/vod/admin/index.php
===================================================================
--- XoopsModules/vod/releases/1.17/htdocs/modules/vod/admin/index.php (rev 0)
+++ XoopsModules/vod/releases/1.17/htdocs/modules/vod/admin/index.php 2012-01-28 20:47:26 UTC (rev 8824)
@@ -0,0 +1,1005 @@
+<?php
+
+ include('header.php');
+
+ xoops_loadLanguage('admin', 'vod');
+
+ xoops_cp_header();
+
+ $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard";
+ $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:"";
+ $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30;
+ $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0;
+ $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC';
+ $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created';
+ $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1';
+
+ switch($op) {
+ case "dashboard":
+ default:
+ vod_adminMenu(0, 'index.php?op=dashboard');
+
+ $videos_handler = xoops_getmodulehandler('videos', 'vod');
+ $mimetypes_handler = xoops_getmodulehandler('mimetypes', 'vod');
+ $indexAdmin = new ModuleAdmin();
+ $indexAdmin->addInfoBox(_AM_VOD_ADMIN_COUNTS);
+ $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_FLATFILES."</label>", $videos_handler->getCount(new Criteria('stream', '0', '=')), 'Green');
+ $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_RTMPSTREAMS."</label>", $videos_handler->getCount(new Criteria('LENGTH(`rtmp`)', '0', '>')), 'Green');
+ $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_RTSPSTREAMS."</label>", $videos_handler->getCount(new Criteria('LENGTH(`rtsp`)', '0', '>')), 'Green');
+ $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_FLASHSTREAMS."</label>", $videos_handler->getCount(new Criteria('LENGTH(`flash`)', '0', '>')), 'Green');
+ $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_SILVERLIGHTSTREAMS."</label>", $videos_handler->getCount(new Criteria('LENGTH(`silverlight`)', '0', '>')), 'Green');
+ $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_IOSSTREAMS."</label>", $videos_handler->getCount(new Criteria('LENGTH(`ios`)', '0', '>')), 'Green');
+ $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_HTTPSTREAMS."</label>", $videos_handler->getCount(new Criteria('LENGTH(`http`)', '0', '>')), 'Green');
+ $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_MIMETYPES."</label>", $mimetypes_handler->getCount(), 'Purple');
+ $videos = $videos_handler->getObjects(new Criteria('`default`', '1'), false);
+ if (isset($videos[0])) {
+ $videos = $videos[0];
+ $_SESSION['vod'][$videos->getVar('vid')]['main'] = true;
+ $indexAdmin->addInfoBox(_AM_VOD_ADMIN_DEFAULT);
+ $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_DEFAULT, "<iframe src='".XOOPS_URL.'/modules/vod/?&state=admin&preview=0&vid='.$videos->getVar('vid')."&iframe=1&width=320px&height=200px' style='width:320px;height:200px;'></iframe>", '', 'Green');
+ }
+ echo $indexAdmin->renderIndex();
+ break;
+ case "about":
+ echo vod_adminMenu(9, 'index.php?op=about');
+ $paypalitemno='VOD106';
+ $aboutAdmin = new ModuleAdmin();
+ $about = $aboutAdmin->renderabout($paypalitemno, false);
+ $donationform = array( 0 => '<form name="donation" id="donation" action="http://www.chronolabs.coop/modules/xpayment/" method="post" onsubmit="return xoopsFormValidate_donation();">',
+ 1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'.constant('_AM_TWITTERBOMB_ABOUT_MAKEDONATE').'</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">Donation Amount</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 AUD</option><option value="10">10.00 AUD</option><option value="20">20.00 AUD</option><option value="40">40.00 AUD</option><option value="60">60.00 AUD</option><option value="80">80.00 AUD</option><option value="90">90.00 AUD</option><option value="100">100.00 AUD</option><option value="200">200.00 AUD</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'._SUBMIT.'" title="'._SUBMIT.'" type="submit"></td></tr></tbody></table>',
+ 2 => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="AUD" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"></form>', 'D'=>'',
+ 3 => '',
+ 4 => '<!-- Start Form Validation JavaScript //-->
+<script type="text/javascript">
+<!--//
+function xoopsFormValidate_donation() { var myform = window.document.donation;
+var hasSelected = false; var selectBox = myform.item[A][amount];for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true && selectBox.options[i].value != \'\') { hasSelected = true; break; } }if (!hasSelected) { window.alert("Please enter Donation Amount"); selectBox.focus(); return false; }return true;
+}
+//--></script>
+<!-- End Form Validation JavaScript //-->');
+ $paypalform = array( 0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">',
+ 1 => '<input name="cmd" value="_s-xclick" type="hidden">',
+ 2 => '<input name="hosted_button_id" value="%s" type="hidden">',
+ 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">',
+ 4 => '<input src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="poster">',
+ 5 => '</form>');
+ for($key=0;$key<=4;$key++) {
+ switch ($key) {
+ case 2:
+ $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'] . ' - ' . (strlen($GLOBALS['xoopsUser']->getVar('name'))>0?$GLOBALS['xoopsUser']->getVar('name'). ' ['.$GLOBALS['xoopsUser']->getVar('uname').']':$GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['vodModule']->getVar('dirname')), strtoupper($GLOBALS['vodModule']->getVar('dirname')). ' '.$GLOBALS['vodModule']->getVar('name'));
+ break;
+ }
+ }
+
+ $istart = strpos($about, ($paypalform[0]), 1);
+ $iend = strpos($about, ($paypalform[5]), $istart+1)+strlen($paypalform[5])-1;
+ echo (substr($about, 0, $istart-1));
+ echo implode("\n", $donationform);
+ echo (substr($about, $iend+1, strlen($about)-$iend-1));
+ break;
+ case "agents":
+ vod_adminMenu(6, 'index.php?op=agents');
+
+ include_once $GLOBALS['xoops']->path( "/class/pagenav.php" );
+ xoops_load('XoopsCache');
+ $ret = XoopsCache::read('vod_user_agents');
+ asort($ret, SORT_DESC);
+ $ttl = count($ret);
+ $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter);
+ $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav());
+ foreach (array( 'time','videos','agents','user') as $id => $key) {
+ $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="#">'.(defined('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))).'</a>');
+ }
+ $GLOBALS['xoopsTpl']->assign('limit', $limit);
+ $GLOBALS['xoopsTpl']->assign('start', $start);
+ $GLOBALS['xoopsTpl']->assign('order', $order);
+ $GLOBALS['xoopsTpl']->assign('sort', $sort);
+ $GLOBALS['xoopsTpl']->assign('filter', $filter);
+ $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['vodModuleConfig']);
+ $s=0;
+ $i=0;
+ foreach($ret as $time => $agent) {
+ if (is_array($agent)&&$s>=$start&&$i<=$limit) {
+ $GLOBALS['xoopsTpl']->append('useragents', array('time'=>date(_DATESTRING, $time), 'videos'=>$agent['videos'], 'user'=>$agent['user'], 'useragent'=>$agent['useragent']));
+ $i++;
+ }
+ $s++;
+ }
+ $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']);
+ $GLOBALS['xoopsTpl']->display('db:vod_cpanel_useragents_list.html');
+ break;
+
+ case "currency":
+ switch ($fct)
+ {
+ default:
+ case "list":
+ vod_adminMenu(5, 'index.php?op=currency&fct=list');
+
+ include_once $GLOBALS['xoops']->path( "/class/pagenav.php" );
+
+ $currency_handler =& xoops_getmodulehandler('currency', 'vod');
+
+ $criteria = $currency_handler->getFilterCriteria($GLOBALS['filter']);
+ $ttl = $currency_handler->getCount($criteria);
+ $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created';
+
+ $pagenav = new XoopsPageNav($ttl, $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].'&sort='.$GLOBALS['sort'].'&order='.$GLOBALS['order'].'&op='.$GLOBALS['op'].'&fct='.$GLOBALS['fct'].'&filter='.$GLOBALS['filter']);
+ $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav());
+
+ foreach ($currency_handler->filterFields() as $id => $key) {
+ $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].'&sort='.$key.'&order='.(($key==$GLOBALS['sort'])?($GLOBALS['order']=='DESC'?'ASC':'DESC'):$GLOBALS['order']).'&op='.$GLOBALS['op'].'&filter='.$GLOBALS['filter'].'">'.(defined('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))).'</a>');
+ $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $currency_handler->getFilterForm($GLOBALS['filter'], $key, $GLOBALS['sort'], $GLOBALS['op'], $GLOBALS['fct']));
+ }
+
+ $GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']);
+ $GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']);
+ $GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']);
+ $GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']);
+ $GLOBALS['xoopsTpl']->assign('filter', $GLOBALS['filter']);
+ $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['vodModuleConfig']);
+
+ $criteria->setStart($GLOBALS['start']);
+ $criteria->setLimit($GLOBALS['limit']);
+ $criteria->setSort('`'.$GLOBALS['sort'].'`');
+ $criteria->setOrder($GLOBALS['order']);
+
+ $currencys = $currency_handler->getObjects($criteria, true);
+ foreach($currencys as $cid => $currency) {
+ if (is_object($currency))
+ $GLOBALS['xoopsTpl']->append('currency', $currency->toArray());
+ }
+ $GLOBALS['xoopsTpl']->assign('form', vod_currency_get_form(false));
+ $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']);
+ $GLOBALS['xoopsTpl']->display('db:vod_cpanel_currency_list.html');
+ break;
+
+ case "new":
+ case "edit":
+
+ vod_adminMenu(5, 'index.php?op=currency&fct=list');
+
+ include_once $GLOBALS['xoops']->path( "/class/pagenav.php" );
+
+ $currency_handler =& xoops_getmodulehandler('currency', 'vod');
+ if (isset($_REQUEST['id'])) {
+ $currency = $currency_handler->get(intval($_REQUEST['id']));
+ } else {
+ $currency = $currency_handler->create();
+ }
+
+ $GLOBALS['xoopsTpl']->assign('form', $currency->getForm());
+ $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']);
+ $GLOBALS['xoopsTpl']->display('db:vod_cpanel_currency_edit.html');
+ break;
+ case "save":
+
+ $currency_handler =& xoops_getmodulehandler('currency', 'vod');
+ $id=0;
+ if ($id=intval($_REQUEST['id'])) {
+ $currency = $currency_handler->get($id);
+ } else {
+ $currency = $currency_handler->create();
+ }
+ $currency->setVars($_POST[$id]);
+ if (!$id=$currency_handler->insert($currency)) {
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_FAILEDTOSAVE);
+ exit(0);
+ } else {
+ if ($_REQUEST['state'][$_REQUEST['id']]=='new')
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=edit&id='.$_REQUEST['id'] . '&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_SAVEDOKEY);
+ else
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_SAVEDOKEY);
+ exit(0);
+ }
+ break;
+ case "savelist":
+
+ $currency_handler =& xoops_getmodulehandler('currency', 'vod');
+ foreach($_REQUEST['id'] as $id) {
+ $currency = $currency_handler->get($id);
+ $currency->setVars($_POST[$id]);
+ if (!$currency_handler->insert($currency)) {
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_FAILEDTOSAVE);
+ exit(0);
+ }
+ }
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_SAVEDOKEY);
+ exit(0);
+ break;
+ case "delete":
+
+ $currency_handler =& xoops_getmodulehandler('currency', 'vod');
+ $id=0;
+ if (isset($_POST['id'])&&$id=intval($_POST['id'])) {
+ $currency = $currency_handler->get($id);
+ if (!$currency_handler->delete($currency)) {
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_FAILEDTODELETE);
+ exit(0);
+ } else {
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_DELETED);
+ exit(0);
+ }
+ } else {
+ $currency = $currency_handler->get(intval($_REQUEST['id']));
+ xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), $_SERVER['PHP_SELF'], sprintf(_AM_VOD_MSG_CURRENCY_DELETE, $currency->getVar('name')));
+ }
+ break;
+ }
+ break;
+ case "category":
+ switch ($fct)
+ {
+ default:
+ case "list":
+ vod_adminMenu(2, 'index.php?op=category&fct=list');
+
+ include_once $GLOBALS['xoops']->path( "/class/pagenav.php" );
+
+ $category_handler =& xoops_getmodulehandler('category', 'vod');
+
+ $criteria = $category_handler->getFilterCriteria($GLOBALS['filter']);
+ $ttl = $category_handler->getCount($criteria);
+ $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created';
+
+ $pagenav = new XoopsPageNav($ttl, $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].'&sort='.$GLOBALS['sort'].'&order='.$GLOBALS['order'].'&op='.$GLOBALS['op'].'&fct='.$GLOBALS['fct'].'&filter='.$GLOBALS['filter']);
+ $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav());
+
+ foreach ($category_handler->filterFields() as $id => $key) {
+ $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].'&sort='.$key.'&order='.(($key==$GLOBALS['sort'])?($GLOBALS['order']=='DESC'?'ASC':'DESC'):$GLOBALS['order']).'&op='.$GLOBALS['op'].'&filter='.$GLOBALS['filter'].'">'.(defined('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))).'</a>');
+ $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $category_handler->getFilterForm($GLOBALS['filter'], $key, $GLOBALS['sort'], $GLOBALS['op'], $GLOBALS['fct']));
+ }
+
+ $GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']);
+ $GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']);
+ $GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']);
+ $GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']);
+ $GLOBALS['xoopsTpl']->assign('filter', $GLOBALS['filter']);
+ $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['vodModuleConfig']);
+
+ $criteria->setStart($GLOBALS['start']);
+ $criteria->setLimit($GLOBALS['limit']);
+ $criteria->setSort('`'.$GLOBALS['sort'].'`');
+ $criteria->setOrder($GLOBALS['order']);
+
+ $categorys = $category_handler->getObjects($criteria, true);
+ foreach($categorys as $cid => $category) {
+ if (is_object($category))
+ $GLOBALS['xoopsTpl']->append('categories', $category->toArray());
+ }
+ $GLOBALS['xoopsTpl']->assign('form', vod_category_get_form(false));
+ $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']);
+ $GLOBALS['xoopsTpl']->display('db:vod_cpanel_category_list.html');
+ break;
+
+ case "new":
+ case "edit":
+
+ vod_adminMenu(2, 'index.php?op=category&fct=list');
+
+ include_once $GLOBALS['xoops']->path( "/class/pagenav.php" );
+
+ $category_handler =& xoops_getmodulehandler('category', 'vod');
+ if (isset($_REQUEST['id'])) {
+ $category = $category_handler->get(intval($_REQUEST['id']));
+ } else {
+ $category = $category_handler->create();
+ }
+
+ $GLOBALS['xoopsTpl']->assign('form', $category->getForm());
+ $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']);
+ $GLOBALS['xoopsTpl']->display('db:vod_cpanel_category_edit.html');
+ break;
+ case "save":
+
+ $category_handler =& xoops_getmodulehandler('category', 'vod');
+ $id=0;
+ if ($id=intval($_REQUEST['id'])) {
+ $category = $category_handler->get($id);
+ } else {
+ $category = $category_handler->create();
+ }
+ $catego...
[truncated message content] |
|
From: <JJ...@us...> - 2012-01-28 12:31:38
|
Revision: 8823
http://xoops.svn.sourceforge.net/xoops/?rev=8823&view=rev
Author: JJDai
Date: 2012-01-28 12:31:29 +0000 (Sat, 28 Jan 2012)
Log Message:
-----------
28-01-2012 : Version 0.1 - Create "mailusers" module from "system.mailusers" (JJDai)
Added Paths:
-----------
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/about.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/header.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/index.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/main.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/menu.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/send_mails.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/class/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/class/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/changelog.txt
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/credits.txt
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/install.txt
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/lang_diff.txt
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/licence.txt
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/readme.txt
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/images/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/images/Thumbs.db
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/images/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/images/logo.png
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/images/logo_small.png
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/include/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/include/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/english/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/english/admin.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/english/help/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/english/help/help.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/english/help/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/english/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/english/modinfo.php
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/templates/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/templates/admin/
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/templates/admin/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/templates/admin/mailusers_admin_send_mail.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/templates/index.html
XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/xoops_version.php
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers
___________________________________________________________________
Added: tsvn:autoprops
+ *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL;
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin
___________________________________________________________________
Added: tsvn:autoprops
+ *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL;
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/about.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/about.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/about.php 2012-01-28 12:31:29 UTC (rev 8823)
@@ -0,0 +1,27 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * smiles module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package mailusers
+ * @since 2.6.0
+ * @author Mage Grégory (AKA Mage)
+ * @version $Id$
+ */
+include dirname(__FILE__) . '/header.php';
+$xoops->header();
+$aboutAdmin = new XoopsModuleAdmin();
+$aboutAdmin->renderNavigation('about.php');
+$aboutAdmin->renderabout('6KJ7RW5DR3VTJ', true);
+$xoops->footer();
\ No newline at end of file
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/about.php
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:keywords
+ Author Date Id Rev URL
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/header.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/header.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/header.php 2012-01-28 12:31:29 UTC (rev 8823)
@@ -0,0 +1,28 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * smiles module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package mailusers
+ * @since 2.6.0
+ * @author Mage Grégory (AKA Mage)
+ * @version $Id$
+ */
+
+require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php';
+
+// Get main instance
+$xoops = Xoops::getInstance();
+XoopsLoad::load('system', 'system');
+$system = System::getInstance();
\ No newline at end of file
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/header.php
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:keywords
+ Author Date Id Rev URL
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/index.html
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/index.html (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/index.html 2012-01-28 12:31:29 UTC (rev 8823)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/index.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/index.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/index.php 2012-01-28 12:31:29 UTC (rev 8823)
@@ -0,0 +1,61 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * smiles module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package mailusers
+ * @since 2.6.0
+ * @author Mage Grégory (AKA Mage)
+ * @version $Id$
+ */
+
+include dirname(__FILE__) . '/header.php';
+
+
+$xoops->header();
+
+$admin_page = new XoopsModuleAdmin();
+$admin_page->renderNavigation('index.php');
+
+//global $xoopsModuleConfig;
+$xmcMailusers = $xoops->getModuleConfigs('mailusers');
+
+$admin_page->addInfoBox(_MI_MAILUSERS_MAILUSER_MANAGER);
+
+$tplString = "%1\$s : <span class='red'>%2\$s</span>";
+$admin_page->addInfoBoxLine(sprintf($tplString,_AM_MAILUSERS_MAILFROM,$xmcMailusers['from']));
+
+$admin_page->addInfoBoxLine(sprintf($tplString,_AM_MAILUSERS_MAILERMETHOD,$xmcMailusers['mailmethod']));
+$admin_page->addInfoBoxLine(sprintf($tplString,_AM_MAILUSERS_SENDMAILPATH,$xmcMailusers['sendmailpath']));
+$admin_page->addInfoBoxLine(sprintf($tplString,_AM_MAILUSERS_SMTPHOST, implode(';', $xmcMailusers['smtphost'])));
+$admin_page->addInfoBoxLine(sprintf($tplString,_AM_MAILUSERS_SMTPUSER,$xmcMailusers['smtpuser']));
+
+$admin_page->renderIndex();
+
+$xoops->footer();
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/index.php
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:keywords
+ Author Date Id Rev URL
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/main.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/main.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/main.php 2012-01-28 12:31:29 UTC (rev 8823)
@@ -0,0 +1 @@
+<?php
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/main.php
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:keywords
+ Author Date Id Rev URL
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/menu.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/menu.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/menu.php 2012-01-28 12:31:29 UTC (rev 8823)
@@ -0,0 +1,38 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * smiles module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package mailusers
+ * @since 2.6.0
+ * @author Mage Grégory (AKA Mage)
+ * @version $Id$
+ */
+
+$pathIcon32 = '../../media/xoops/images/icons/32/';
+
+$adminmenu = array();
+$i = 1;
+$adminmenu[$i]['title'] = _MI_MAILUSERS_INDEX;
+$adminmenu[$i]['link'] = "admin/index.php";
+$adminmenu[$i]['icon'] = $pathIcon32 . 'home.png';
+$i++;
+$adminmenu[$i]['title'] = _MI_MAILUSERS_SENDMAIL;
+$adminmenu[$i]['link'] = "admin/send_mails.php";
+$adminmenu[$i]['icon'] = $pathIcon32 . 'mailuser.png';
+$i++;
+$adminmenu[$i]['title'] = _MI_MAILUSERS_ABOUT;
+$adminmenu[$i]['link'] = 'admin/about.php';
+$adminmenu[$i]['icon'] = $pathIcon32 . 'about.png';
+
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/menu.php
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:keywords
+ Author Date Id Rev URL
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/send_mails.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/send_mails.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/send_mails.php 2012-01-28 12:31:29 UTC (rev 8823)
@@ -0,0 +1,328 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * Mailusers Manager
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @author Kazumi Ono (AKA onokazu)
+ * @package system
+ * @subpackage mailusers
+ * @version $Id$
+ */
+
+include_once ("header.php");
+
+defined('XOOPS_ROOT_PATH') or die('Restricted access');
+
+// $system_breadcrumb = SystemBreadcrumb::getInstance();
+// Check users rights
+if (!$xoops->isUser() || !$xoops->isModule() || !$xoops->user->isAdmin($xoops->module->mid())) {
+ exit(_NOPERM);
+}
+
+if (!$xoops->getModuleConfig('active_mailusers', 'system')) {
+ $xoops->redirect('admin.php', 2, _AM_SYSTEM_NOTACTIVE);
+}
+
+// Parameters
+$limit = 100;
+// Get Action type
+$op = $system->cleanVars($_REQUEST, 'op', 'list', 'string');
+
+// Call Header
+//$xoops->header('system_mailusers.html');
+$xoops->header('mailusers_admin_send_mail.html');
+// Define Stylesheet
+$xoops->theme->addStylesheet('modules/system/css/admin.css');
+$xoops->theme->addScript('media/jquery/jquery.js');
+$xoops->theme->addScript('modules/system/js/admin.js');
+
+
+$admin_page = new XoopsModuleAdmin();
+$admin_page->renderNavigation('send_mails.php');
+
+//echo "<hr>{$op}<hr>";
+
+switch ($op) {
+
+ case 'list':
+ default:
+
+ $display_criteria = 1;
+ $form = new XoopsThemeForm(_AM_MAILUSERS_LIST, "mailusers", "admin.php?fct=mailusers", 'post', true);
+ //----------------------------------------
+ if (!empty($_POST['memberslist_id'])) {
+ $user_count = count($_POST['memberslist_id']);
+ $display_names = "";
+ for ($i = 0; $i < $user_count; $i++) {
+ $uid_hidden = new XoopsFormHidden("mail_to_user[]", $_POST['memberslist_id'][$i]);
+ $form->addElement($uid_hidden);
+ $display_names .= "<a href='" . XOOPS_URL . "/userinfo.php?uid=" . $_POST['memberslist_id'][$i] . "' rel='external'>" . XoopsUser::getUnameFromId($_POST['memberslist_id'][$i]) . "</a>, ";
+ unset($uid_hidden);
+ }
+ $users_label = new XoopsFormLabel(_AM_MAILUSERS_SENDTOUSERS2, substr($display_names, 0, -2));
+ $form->addElement($users_label);
+ $form->addElement($users_label);
+ $display_criteria = 0;
+ }
+ //----------------------------------------
+ if (!empty($display_criteria)) {
+ $selected_groups = array();
+ $group_select = new XoopsFormSelectGroup('<div class="bold spacer">' . _AM_MAILUSERS_GROUPIS . '<span class="bold green">*</span></div>', "mail_to_group", false, $selected_groups, 5, true);
+
+ $lastlog_min = new XoopsFormTextDateSelect(_AM_MAILUSERS_LASTLOGMIN . '<span class="bold green">*</span>', 'mail_lastlog_min');
+ $lastlog_min->setValue('');
+ $lastlog_max = new XoopsFormTextDateSelect(_AM_MAILUSERS_LASTLOGMAX . '<span class="bold green">*</span>', 'mail_lastlog_max');
+ $lastlog_max->setValue('');
+
+ $date = new XoopsFormElementTray('<div class="bold spacer">' . _AM_MAILUSERS_DATE . '</div>', '');
+ $date->addElement($lastlog_min);
+ $date->addElement($lastlog_max);
+
+ $idle_more = new XoopsFormText(_AM_MAILUSERS_IDLEMORE . '<span class="bold green">*</span>', "mail_idle_more", 10, 5);
+ $idle_less = new XoopsFormText(_AM_MAILUSERS_IDLELESS . '<span class="bold green">*</span>', "mail_idle_less", 10, 5);
+
+ $idle = new XoopsFormElementTray('<div class="bold spacer">' . _AM_MAILUSERS_DAY . '</div>', '');
+ $idle->addElement($idle_more);
+ $idle->addElement($idle_less);
+
+ $regd_min = new XoopsFormTextDateSelect(_AM_MAILUSERS_REGDMIN . '<span class="bold green">*</span>', "mail_regd_min");
+ $regd_min->setValue('');
+ $regd_max = new XoopsFormTextDateSelect(_AM_MAILUSERS_REGDMAX . '<span class="bold green">*</span>', "mail_regd_max");
+ $regd_max->setValue('');
+
+ $regdate = new XoopsFormElementTray('<div class="bold spacer">' . _AM_MAILUSERS_REGDATE . '</div>', '');
+ $regdate->addElement($regd_min);
+ $regdate->addElement($regd_max);
+
+ $mailok_cbox = new XoopsFormCheckBox('', 'mail_mailok');
+ $mailok_cbox->addOption(1, _AM_MAILUSERS_MAILOK . '<span class="bold green">*</span>');
+ $inactive_cbox = new XoopsFormCheckBox('', "mail_inactive");
+ $inactive_cbox->addOption(1, _AM_MAILUSERS_INACTIVE . '<span class="bold green">*</span>');
+ $inactive_cbox->setExtra("onclick='javascript:disableElement(\"mail_lastlog_min\");disableElement(\"mail_lastlog_max\");disableElement(\"mail_idle_more\");disableElement(\"mail_idle_less\");disableElement(\"mail_to_group[]\");'");
+
+ $criteria_tray = new XoopsFormElementTray(_AM_MAILUSERS_SENDTOUSERS, "<br /><br />");
+ $criteria_tray->setDescription('<span class="bold green">*</span>' . _AM_MAILUSERS_OPTIONAL);
+ $criteria_tray->addElement($group_select);
+ //$criteria_tray->addElement($lastlog);
+ $criteria_tray->addElement($date);
+ //$criteria_tray->addElement($lastlog_max);
+ $criteria_tray->addElement($idle);
+ //$criteria_tray->addElement($idle_less);
+ $criteria_tray->addElement($regdate);
+
+ $criteria_tray->addElement($mailok_cbox);
+ $criteria_tray->addElement($inactive_cbox);
+
+ //$criteria_tray->addElement($regd_max);
+ $form->addElement($criteria_tray);
+
+ }
+ $fname_text = new XoopsFormText(_AM_MAILUSERS_MAILFNAME, "mail_fromname", 30, 255, htmlspecialchars($xoops->getConfig('sitename'), ENT_QUOTES));
+ $fromemail = !$xoops->getConfig('adminmail') ? $xoops->getConfig('adminmail') : $xoops->user->getVar("email", "E");
+ $femail_text = new XoopsFormText(_AM_MAILUSERS_MAILFMAIL, "mail_fromemail", 30, 255, $fromemail);
+ $subject_caption = _AM_MAILUSERS_MAILSUBJECT . "<br /><br /><span style='font-size:x-small;font-weight:bold;'>" . _AM_MAILUSERS_MAILTAGS . "</span><br /><span style='font-size:x-small;font-weight:normal;'>" . _AM_MAILUSERS_MAILTAGS2 . "</span>";
+ $subject_text = new XoopsFormText($subject_caption, "mail_subject", 50, 255);
+ $body_caption = _AM_MAILUSERS_MAILBODY . "<br /><br /><span style='font-size:x-small;font-weight:bold;'>" . _AM_MAILUSERS_MAILTAGS . "</span><br /><span style='font-size:x-small;font-weight:normal;'>" . _AM_MAILUSERS_MAILTAGS1 . "<br />" . _AM_MAILUSERS_MAILTAGS2 . "<br />" . _AM_MAILUSERS_MAILTAGS3 . "<br />" . _AM_MAILUSERS_MAILTAGS4 . "</span>";
+ $body_text = new XoopsFormTextArea($body_caption, "mail_body", "", 10);
+ $to_checkbox = new XoopsFormCheckBox(_AM_MAILUSERS_SENDTO, "mail_send_to", "mail");
+ $to_checkbox->addOption("mail", _AM_MAILUSERS_EMAIL);
+ $to_checkbox->addOption("pm", _AM_MAILUSERS_PM);
+ $start_hidden = new XoopsFormHidden("mail_start", 0);
+ $op_hidden = new XoopsFormHidden("op", "send");
+ $submit_button = new XoopsFormButton("", "mail_submit", _SEND, "submit");
+
+ $form->addElement($fname_text);
+ $form->addElement($femail_text);
+ $form->addElement($subject_text);
+ $form->addElement($body_text);
+ $form->addElement($to_checkbox);
+ $form->addElement($op_hidden);
+ $form->addElement($start_hidden);
+ $form->addElement($submit_button);
+ $form->setRequired($subject_text);
+ $form->setRequired($body_text);
+ // Assign form
+ $xoops->tpl->assign('form', $form->render());
+ break;
+
+ // Send
+ case 'send':
+
+ if (!empty($_POST['mail_send_to'])) {
+ $added = array();
+ $added_id = array();
+ $criteria = array();
+ $count_criteria = 0; // user count via criteria;
+ if (!empty($_POST['mail_inactive'])) {
+ $criteria[] = "level = 0";
+ } else {
+ if (!empty($_POST['mail_mailok'])) {
+ $criteria[] = 'user_mailok = 1';
+ }
+ if (!empty($_POST['mail_lastlog_min'])) {
+ $time = strtotime(trim($_POST['mail_lastlog_min']));
+ if ($time > 0) {
+ $criteria[] = "last_login > $time";
+ }
+ }
+ if (!empty($_POST['mail_lastlog_max'])) {
+ $time = strtotime(trim($_POST['mail_lastlog_max']));
+ if ($time > 0) {
+ $criteria[] = "last_login < $time";
+ }
+ }
+ if (!empty($_POST['mail_idle_more']) && is_numeric($_POST['mail_idle_more'])) {
+ $f_mail_idle_more = intval(trim($_POST['mail_idle_more']));
+ $time = 60 * 60 * 24 * $f_mail_idle_more;
+ $time = time() - $time;
+ if ($time > 0) {
+ $criteria[] = "last_login < $time";
+ }
+ }
+ if (!empty($_POST['mail_idle_less']) && is_numeric($_POST['mail_idle_less'])) {
+ $f_mail_idle_less = intval(trim($_POST['mail_idle_less']));
+ $time = 60 * 60 * 24 * $f_mail_idle_less;
+ $time = time() - $time;
+ if ($time > 0) {
+ $criteria[] = "last_login > $time";
+ }
+ }
+ }
+ if (!empty($_POST['mail_regd_min'])) {
+ $time = strtotime(trim($_POST['mail_regd_min']));
+ if ($time > 0) {
+ $criteria[] = "user_regdate > $time";
+ }
+ }
+ if (!empty($_POST['mail_regd_max'])) {
+ $time = strtotime(trim($_POST['mail_regd_max']));
+ if ($time > 0) {
+ $criteria[] = "user_regdate < $time";
+ }
+ }
+ if (!empty($criteria) || !empty($_POST['mail_to_group'])) {
+ $criteria_object = new CriteriaCompo();
+ $criteria_object->setStart(@$_POST['mail_start']);
+ $criteria_object->setLimit($limit);
+ foreach ($criteria as $c) {
+ list ($field, $op, $value) = explode(' ', $c);
+ $crit = new Criteria($field, $value, $op);
+ $crit->prefix = "u";
+ $criteria_object->add($crit, 'AND');
+ }
+ $member_handler = $xoops->getHandlerMember();
+ $groups = empty($_POST['mail_to_group']) ? array() : array_map("intval", $_POST['mail_to_group']);
+ $getusers = $member_handler->getUsersByGroupLink($groups, $criteria_object, true);
+ $count_criteria = $member_handler->getUserCountByGroupLink($groups, $criteria_object);
+ foreach ($getusers as $getuser) {
+ /* @var $getuser XoopsUser */
+ if (!in_array($getuser->getVar("uid"), $added_id)) {
+ $added[] = $getuser;
+ $added_id[] = $getuser->getVar("uid");
+ }
+ }
+ }
+ if (!empty($_POST['mail_to_user'])) {
+ foreach ($_POST['mail_to_user'] as $to_user) {
+ if (!in_array($to_user, $added_id)) {
+ $added[] = new XoopsUser($to_user);
+ $added_id[] = $to_user;
+ }
+ }
+ }
+ $added_count = count($added);
+
+ //OpenTable();
+ if ($added_count > 0) {
+ $myts = MyTextSanitizer::getInstance();
+ $xoopsMailer = $xoops->getMailer();
+ for ($i = 0; $i < $added_count; $i++) {
+ $xoopsMailer->setToUsers($added[$i]);
+ }
+ $xoopsMailer->setFromName($myts->stripSlashesGPC($_POST['mail_fromname']));
+ $xoopsMailer->setFromEmail($myts->stripSlashesGPC($_POST['mail_fromemail']));
+ $xoopsMailer->setSubject($myts->stripSlashesGPC($_POST['mail_subject']));
+ $xoopsMailer->setBody($myts->stripSlashesGPC($_POST['mail_body']));
+ if (in_array("mail", $_POST['mail_send_to'])) {
+ $xoopsMailer->useMail();
+ }
+ if (in_array("pm", $_POST['mail_send_to']) && empty($_POST['mail_inactive'])) {
+ $xoopsMailer->usePM();
+ }
+ $xoopsMailer->send(true);
+ $xoops->tpl->assign('Sucess', $xoopsMailer->getSuccess());
+ $xoops->tpl->assign('Errors', $xoopsMailer->getErrors());
+ //echo $xoopsMailer->getSuccess();
+ //echo $xoopsMailer->getErrors();
+
+ if ($count_criteria > $limit) {
+ $form = new XoopsThemeForm(_AM_MAILUSERS_SENDTOUSERS2, "mailusers", "admin.php?fct=mailusers", 'post', true);
+ if (!empty($_POST['mail_to_group'])) {
+ foreach ($_POST['mail_to_group'] as $mailgroup) {
+ $group_hidden = new XoopsFormHidden("mail_to_group[]", $mailgroup);
+ $form->addElement($group_hidden);
+ }
+ }
+ $inactive_hidden = new XoopsFormHidden("mail_inactive", @$_POST['mail_inactive']);
+ $lastlog_min_hidden = new XoopsFormHidden("mail_lastlog_min", $myts->htmlSpecialChars($myts->stripSlashesGPC($_POST['mail_lastlog_min'])));
+ $lastlog_max_hidden = new XoopsFormHidden("mail_lastlog_max", $myts->htmlSpecialChars($myts->stripSlashesGPC($_POST['mail_lastlog_max'])));
+ $regd_min_hidden = new XoopsFormHidden("mail_regd_min", $myts->htmlSpecialChars($myts->stripSlashesGPC($_POST['mail_regd_min'])));
+ $regd_max_hidden = new XoopsFormHidden("mail_regd_max", $myts->htmlSpecialChars($myts->stripSlashesGPC($_POST['mail_regd_max'])));
+ $idle_more_hidden = new XoopsFormHidden("mail_idle_more", $myts->htmlSpecialChars($myts->stripSlashesGPC($_POST['mail_idle_more'])));
+ $idle_less_hidden = new XoopsFormHidden("mail_idle_less", $myts->htmlSpecialChars($myts->stripSlashesGPC($_POST['mail_idle_less'])));
+ $fname_hidden = new XoopsFormHidden("mail_fromname", $myts->htmlSpecialChars($myts->stripSlashesGPC($_POST['mail_fromname'])));
+ $femail_hidden = new XoopsFormHidden("mail_fromemail", $myts->htmlSpecialChars($myts->stripSlashesGPC($_POST['mail_fromemail'])));
+ $subject_hidden = new XoopsFormHidden("mail_subject", $myts->htmlSpecialChars($myts->stripSlashesGPC($_POST['mail_subject'])));
+ $body_hidden = new XoopsFormHidden("mail_body", $myts->htmlSpecialChars($myts->stripSlashesGPC($_POST['mail_body'])));
+ $start_hidden = new XoopsFormHidden("mail_start", $_POST['mail_start'] + $limit);
+ $mail_mailok_hidden = new XoopsFormHidden("mail_mailok", $myts->htmlSpecialChars($myts->stripSlashesGPC(@$_POST['mail_mailok'])));
+ $op_hidden = new XoopsFormHidden("op", "send");
+ $submit_button = new XoopsFormButton("", "mail_submit", _AM_MAILUSERS_SENDNEXT, "submit");
+ $sent_label = new XoopsFormLabel(_AM_MAILUSERS_SENT, sprintf(_AM_MAILUSERS_SENTNUM, $_POST['mail_start'] + 1, $_POST['mail_start'] + $limit, $count_criteria + $added_count - $limit));
+ $form->addElement($sent_label);
+ $form->addElement($inactive_hidden);
+ $form->addElement($lastlog_min_hidden);
+ $form->addElement($lastlog_max_hidden);
+ $form->addElement($regd_min_hidden);
+ $form->addElement($regd_max_hidden);
+ $form->addElement($idle_more_hidden);
+ $form->addElement($idle_less_hidden);
+ $form->addElement($fname_hidden);
+ $form->addElement($femail_hidden);
+ $form->addElement($subject_hidden);
+ $form->addElement($body_hidden);
+ $form->addElement($op_hidden);
+ $form->addElement($start_hidden);
+ $form->addElement($mail_mailok_hidden);
+ if (isset($_POST['mail_send_to']) && is_array($_POST['mail_send_to'])) {
+ foreach ($_POST['mail_send_to'] as $v) {
+ $form->addElement(new XoopsFormHidden("mail_send_to[]", $v));
+ }
+ } else {
+ $to_hidden = new XoopsFormHidden("mail_send_to", 'mail');
+ $form->addElement($to_hidden);
+ }
+ $form->addElement($submit_button);
+ $form->display();
+ } else {
+ echo "<h4>" . _AM_MAILUSERS_SENDCOMP . "</h4>";
+ }
+ } else {
+ echo "<h4>" . _AM_MAILUSERS_NOUSERMATCH . "</h4>";
+ }
+ }
+ break;
+}
+// Call Footer
+$xoops->footer();
\ No newline at end of file
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/admin/send_mails.php
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:keywords
+ Author Date Id Rev URL
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/class
___________________________________________________________________
Added: tsvn:autoprops
+ *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL;
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/class/index.html
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/class/index.html (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/class/index.html 2012-01-28 12:31:29 UTC (rev 8823)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs
___________________________________________________________________
Added: tsvn:autoprops
+ *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL;
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/changelog.txt
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/changelog.txt (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/changelog.txt 2012-01-28 12:31:29 UTC (rev 8823)
@@ -0,0 +1,3 @@
+Version 0.1
+-------------------
+Create "mailusers" module from "system.mailusers" (JJDai)
\ No newline at end of file
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/credits.txt
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/credits.txt (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/credits.txt 2012-01-28 12:31:29 UTC (rev 8823)
@@ -0,0 +1,3 @@
+Credits
+-------------------
+
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/index.html
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/index.html (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/index.html 2012-01-28 12:31:29 UTC (rev 8823)
@@ -0,0 +1 @@
+<script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/install.txt
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/install.txt (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/install.txt 2012-01-28 12:31:29 UTC (rev 8823)
@@ -0,0 +1,6 @@
+INSTALL/UNISTALL
+-------------------
+
+No special measures necessary, follow the standard installation process extract the module folder into the ../modules directory. Install the module through Admin -> System Module -> Modules.
+
+Detailed instructions on installing modules are available in the XOOPS Operations Manual (http://goo.gl/adT2i)
\ No newline at end of file
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/lang_diff.txt
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/lang_diff.txt (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/lang_diff.txt 2012-01-28 12:31:29 UTC (rev 8823)
@@ -0,0 +1,7 @@
+LANGUAGE DIFFERENCES
+-------------------
+
+Below are language differences from a version to next version.
+
+Release xxx
+-------------------
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/licence.txt
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/licence.txt (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/licence.txt 2012-01-28 12:31:29 UTC (rev 8823)
@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/readme.txt
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/readme.txt (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/docs/readme.txt 2012-01-28 12:31:29 UTC (rev 8823)
@@ -0,0 +1,34 @@
+Read Me First
+-------------------
+
+Description
+------------
+The UserRank Module is for managing all ranks.
+
+ Requirements
+ _____________________________________________________________________
+
+- PHP version >= 5.3
+- XOOPS 2.6.0+
+
+Install/uninstall
+------------------
+No special measures necessary, follow the standard installation process � extract the xoopspartners folder into the ../modules directory. Install the module through Admin -> System Module -> Modules.
+
+Detailed instructions on installing modules are available in the XOOPS Operations Manual (http://goo.gl/adT2i)
+
+Operating instructions
+------------------------
+To set up this module you need to:
+
+i) Enter your partner�s details � including a URL for their website and (optionally) logo plus a short description (see �Adding a partner�)
+
+ii) Configure your preferences for the module (see �Preferences�) and optionally the Partners block if you intend to use it (see �Blocks�)
+
+iii) Check that you have given your user groups the necessary module and block access rights to use this module. Group permissions are set through the Administration Menu -> System -> Groups.
+
+Detailed instructions on configuring the access rights for user groups are available in the XOOPS Operations Manual (http://goo.gl/adT2i)
+
+Tutorial
+-----------
+Tutorial coming soon.
\ No newline at end of file
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/images
___________________________________________________________________
Added: tsvn:autoprops
+ *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL;
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/images/Thumbs.db
===================================================================
(Binary files differ)
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/images/Thumbs.db
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/images/index.html
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/images/index.html (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/images/index.html 2012-01-28 12:31:29 UTC (rev 8823)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/images/logo.png
===================================================================
(Binary files differ)
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/images/logo.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/images/logo_small.png
===================================================================
(Binary files differ)
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/images/logo_small.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/include
___________________________________________________________________
Added: tsvn:autoprops
+ *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL;
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/include/index.html
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/include/index.html (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/include/index.html 2012-01-28 12:31:29 UTC (rev 8823)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/index.html
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/index.html (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/index.html 2012-01-28 12:31:29 UTC (rev 8823)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language
___________________________________________________________________
Added: tsvn:autoprops
+ *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL;
Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/english
___________________________________________________________________
Added: tsvn:autoprops
+ *.php = svn:executable=*;svn:keywords=Author Date Id Rev URL;
Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/english/admin.php
===================================================================
--- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/english/admin.php (rev 0)
+++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/mailusers/language/english/admin.php 2012-01-28 12:31:29 UTC (rev 8823)
@@ -0,0 +1,95 @@
+<?php
+/*
+ You may not change or alter any portion of this comment or credits
+ of supporting developers from this source code or any supporting source code
+ which is considered copyrighted (c) material of the original comment or credit authors.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+*/
+
+/**
+ * smiles module
+ *
+ * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/
+ * @license GNU GPL 2 (http://www.gnu.org/licenses/old-licenses/gpl-2.0.html)
+ * @package mailusers
+ * @since 2.6.0
+ * @author Mage Grégory (AKA Mage)
+ * @version $Id$
+ */
+
+define("_AM_MAILUSERS_ACTION","Action");
+
+// added for mailer
+define("_AM_MAILUSERS_MAILER", "Mail Setup");
+define("_AM_MAILUSERS_MAILER_MAIL", "");
+define("_AM_MAILUSERS_MAILER_SENDMAIL", "");
+define("_AM_MAILUSERS_MAILER_", "");
+define("_AM_MAILUSERS_MAILFROM", "FROM address");
+define("_AM_MAILUSERS_MAILFROMDESC", "");
+define("_AM_MAILUSERS_MAILFROMNAME", "FROM name");
+define("_AM_MAILUSERS_MAILFROMNAMEDESC", "");
+
+// RMV-NOTIFY
+define("_AM_MAI...
[truncated message content] |
|
From: <be...@us...> - 2012-01-27 00:21:46
|
Revision: 8822
http://xoops.svn.sourceforge.net/xoops/?rev=8822&view=rev
Author: beckmi
Date: 2012-01-27 00:21:40 +0000 (Fri, 27 Jan 2012)
Log Message:
-----------
Updating menu name
Modified Paths:
--------------
XoopsModules/waiting/trunk/waiting/admin/menu.php
Modified: XoopsModules/waiting/trunk/waiting/admin/menu.php
===================================================================
--- XoopsModules/waiting/trunk/waiting/admin/menu.php 2012-01-26 23:36:26 UTC (rev 8821)
+++ XoopsModules/waiting/trunk/waiting/admin/menu.php 2012-01-27 00:21:40 UTC (rev 8822)
@@ -24,7 +24,7 @@
$adminmenu[$i]["icon"] = $pathIcon32.'/home.png';
$i++;
-$adminmenu[$i]["title"] = _MI_WAITING_MENU_VIEW;
+$adminmenu[$i]["title"] = _MI_WAITING_MENU_PLUGINS;
$adminmenu[$i]["link"] = 'admin/main.php';
$adminmenu[$i]["icon"] = $pathIcon32.'/search.png';
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <be...@us...> - 2012-01-26 23:36:34
|
Revision: 8821
http://xoops.svn.sourceforge.net/xoops/?rev=8821&view=rev
Author: beckmi
Date: 2012-01-26 23:36:26 +0000 (Thu, 26 Jan 2012)
Log Message:
-----------
Adding help files to other languages
Modified Paths:
--------------
XoopsModules/waiting/trunk/waiting/docs/lang_diff.txt
XoopsModules/waiting/trunk/waiting/language/english/help/help.html
XoopsModules/waiting/trunk/waiting/language/english/modinfo.php
XoopsModules/waiting/trunk/waiting/language/french/modinfo.php
XoopsModules/waiting/trunk/waiting/language/italian/modinfo.php
XoopsModules/waiting/trunk/waiting/language/ja_utf8/modinfo.php
XoopsModules/waiting/trunk/waiting/language/japanese/modinfo.php
XoopsModules/waiting/trunk/waiting/language/persian/modinfo.php
XoopsModules/waiting/trunk/waiting/language/portuguesebr/modinfo.php
XoopsModules/waiting/trunk/waiting/language/spanish/modinfo.php
XoopsModules/waiting/trunk/waiting/language/swedish/modinfo.php
Added Paths:
-----------
XoopsModules/waiting/trunk/waiting/language/french/help/
XoopsModules/waiting/trunk/waiting/language/french/help/help.html
XoopsModules/waiting/trunk/waiting/language/french/help/index.html
XoopsModules/waiting/trunk/waiting/language/italian/help/
XoopsModules/waiting/trunk/waiting/language/italian/help/help.html
XoopsModules/waiting/trunk/waiting/language/italian/help/index.html
XoopsModules/waiting/trunk/waiting/language/ja_utf8/help/
XoopsModules/waiting/trunk/waiting/language/ja_utf8/help/help.html
XoopsModules/waiting/trunk/waiting/language/ja_utf8/help/index.html
XoopsModules/waiting/trunk/waiting/language/japanese/help/
XoopsModules/waiting/trunk/waiting/language/japanese/help/help.html
XoopsModules/waiting/trunk/waiting/language/japanese/help/index.html
XoopsModules/waiting/trunk/waiting/language/persian/help/
XoopsModules/waiting/trunk/waiting/language/persian/help/help.html
XoopsModules/waiting/trunk/waiting/language/persian/help/index.html
XoopsModules/waiting/trunk/waiting/language/portuguesebr/help/
XoopsModules/waiting/trunk/waiting/language/portuguesebr/help/help.html
XoopsModules/waiting/trunk/waiting/language/portuguesebr/help/index.html
XoopsModules/waiting/trunk/waiting/language/spanish/help/
XoopsModules/waiting/trunk/waiting/language/spanish/help/help.html
XoopsModules/waiting/trunk/waiting/language/spanish/help/index.html
XoopsModules/waiting/trunk/waiting/language/swedish/help/
XoopsModules/waiting/trunk/waiting/language/swedish/help/help.html
XoopsModules/waiting/trunk/waiting/language/swedish/help/index.html
Modified: XoopsModules/waiting/trunk/waiting/docs/lang_diff.txt
===================================================================
--- XoopsModules/waiting/trunk/waiting/docs/lang_diff.txt 2012-01-26 23:22:53 UTC (rev 8820)
+++ XoopsModules/waiting/trunk/waiting/docs/lang_diff.txt 2012-01-26 23:36:26 UTC (rev 8821)
@@ -1,4 +1,10 @@
LANGUAGE DIFFERENCES
=====================
-Below are language differences from a version to next version.
\ No newline at end of file
+Below are language differences from a version to next version.
+
+modinfo.php
+
++ _MI_WAITING_MENU_HOME
++ _MI_WAITING_MENU_ABOUT
++ _MI_WAITING_MENU_PLUGINS
\ No newline at end of file
Modified: XoopsModules/waiting/trunk/waiting/language/english/help/help.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/english/help/help.html 2012-01-26 23:22:53 UTC (rev 8820)
+++ XoopsModules/waiting/trunk/waiting/language/english/help/help.html 2012-01-26 23:36:26 UTC (rev 8821)
@@ -1,7 +1,7 @@
<div id="help-template" class="outer">
<h1 class="head">Help:
<a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/waiting/admin/index.php"
- title="Back to the administration of SmallWorld"> Wating Block
+ title="Back to the administration of SmallWorld"> Waiting Block
<img src="<{xoAdminIcons home.png}>"
alt="Back to the Administration of Waiting Block"/>
</a></h1>
@@ -29,8 +29,8 @@
<p class="even">There is no tutorial available at this time</p>
- <h4 class="odd">Ask Questions</h4>
+ <h4 class="odd">Ask Questions/Report Bugs</h4>
- <p class="even">If there are still questions or errors please post at the <a href="http://www.xoops.org/modules/newbb">Xoops support Forum</a></p>
+ <p class="even">If have questions, or would like to report a bug, please post them on <a href="http://www.xoops.org/modules/newbb">Xoops support Forum</a></p>
</div>
\ No newline at end of file
Modified: XoopsModules/waiting/trunk/waiting/language/english/modinfo.php
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/english/modinfo.php 2012-01-26 23:22:53 UTC (rev 8820)
+++ XoopsModules/waiting/trunk/waiting/language/english/modinfo.php 2012-01-26 23:36:26 UTC (rev 8821)
@@ -16,4 +16,4 @@
define("_MI_WAITING_MENU_HOME", "Home");
define("_MI_WAITING_MENU_ABOUT", "About");
-define("_MI_WAITING_MENU_VIEW", "Plugins");
+define("_MI_WAITING_MENU_PLUGINS", "Plugins");
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/language/french/help/help.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/french/help/help.html (rev 0)
+++ XoopsModules/waiting/trunk/waiting/language/french/help/help.html 2012-01-26 23:36:26 UTC (rev 8821)
@@ -0,0 +1,36 @@
+<div id="help-template" class="outer">
+ <h1 class="head">Help:
+ <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/waiting/admin/index.php"
+ title="Back to the administration of SmallWorld"> Waiting Block
+ <img src="<{xoAdminIcons home.png}>"
+ alt="Back to the Administration of Waiting Block"/>
+ </a></h1>
+
+ <h4 class="odd">Description</h4>
+
+ <p class="even">This module offers you an extensible waiting contents block into your XOOPS.<br/> <br/>
+
+ By installing this module and adding proper plug-ins only, you as webmaster can confirm any approval waitings of any modules at one view.
+ </p>
+
+ <h4 class="odd">Install/uninstall</h4> <br/>
+
+ No special measures necessary, follow the standard installation process – extract the module folder into the
+ ../modules directory. Install the
+ module through Admin -> System Module -> Modules.<br/> <br/>
+
+ <h4 class="odd">Operations</h4> <br/>
+
+ Detailed instructions on configuring the access rights for user groups are available in the
+ <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a><br/> <br/>
+
+
+ <h4 class="odd">Tutorial</h4>
+
+ <p class="even">There is no tutorial available at this time</p>
+
+ <h4 class="odd">Ask Questions/Report Bugs</h4>
+
+ <p class="even">If have questions, or would like to report a bug, please post them on <a href="http://www.xoops.org/modules/newbb">Xoops support Forum</a></p>
+
+</div>
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/language/french/help/index.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/french/help/index.html (rev 0)
+++ XoopsModules/waiting/trunk/waiting/language/french/help/index.html 2012-01-26 23:36:26 UTC (rev 8821)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsModules/waiting/trunk/waiting/language/french/modinfo.php
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/french/modinfo.php 2012-01-26 23:22:53 UTC (rev 8820)
+++ XoopsModules/waiting/trunk/waiting/language/french/modinfo.php 2012-01-26 23:36:26 UTC (rev 8821)
@@ -14,5 +14,6 @@
// Names of blocks for this module (Not all module has blocks)
define("_MI_WAITING_BNAME1", "Contenus en attente");
-
-?>
\ No newline at end of file
+define("_MI_WAITING_MENU_HOME", "Home");
+define("_MI_WAITING_MENU_ABOUT", "About");
+define("_MI_WAITING_MENU_PLUGINS", "Plugins");
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/language/italian/help/help.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/italian/help/help.html (rev 0)
+++ XoopsModules/waiting/trunk/waiting/language/italian/help/help.html 2012-01-26 23:36:26 UTC (rev 8821)
@@ -0,0 +1,36 @@
+<div id="help-template" class="outer">
+ <h1 class="head">Help:
+ <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/waiting/admin/index.php"
+ title="Back to the administration of SmallWorld"> Waiting Block
+ <img src="<{xoAdminIcons home.png}>"
+ alt="Back to the Administration of Waiting Block"/>
+ </a></h1>
+
+ <h4 class="odd">Description</h4>
+
+ <p class="even">This module offers you an extensible waiting contents block into your XOOPS.<br/> <br/>
+
+ By installing this module and adding proper plug-ins only, you as webmaster can confirm any approval waitings of any modules at one view.
+ </p>
+
+ <h4 class="odd">Install/uninstall</h4> <br/>
+
+ No special measures necessary, follow the standard installation process – extract the module folder into the
+ ../modules directory. Install the
+ module through Admin -> System Module -> Modules.<br/> <br/>
+
+ <h4 class="odd">Operations</h4> <br/>
+
+ Detailed instructions on configuring the access rights for user groups are available in the
+ <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a><br/> <br/>
+
+
+ <h4 class="odd">Tutorial</h4>
+
+ <p class="even">There is no tutorial available at this time</p>
+
+ <h4 class="odd">Ask Questions/Report Bugs</h4>
+
+ <p class="even">If have questions, or would like to report a bug, please post them on <a href="http://www.xoops.org/modules/newbb">Xoops support Forum</a></p>
+
+</div>
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/language/italian/help/index.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/italian/help/index.html (rev 0)
+++ XoopsModules/waiting/trunk/waiting/language/italian/help/index.html 2012-01-26 23:36:26 UTC (rev 8821)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsModules/waiting/trunk/waiting/language/italian/modinfo.php
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/italian/modinfo.php 2012-01-26 23:22:53 UTC (rev 8820)
+++ XoopsModules/waiting/trunk/waiting/language/italian/modinfo.php 2012-01-26 23:36:26 UTC (rev 8821)
@@ -11,4 +11,7 @@
define('_MI_WAITING_NAME','Contenuti in Attesa Estendible');
define('_MI_WAITING_DESC','Visualizza un blocco con i contenuti in attesa di approvazione per moduli di terze parti.');
define('_MI_WAITING_BNAME1', 'Contenuti in Attesa');
-?>
\ No newline at end of file
+
+define("_MI_WAITING_MENU_HOME", "Home");
+define("_MI_WAITING_MENU_ABOUT", "About");
+define("_MI_WAITING_MENU_PLUGINS", "Plugins");
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/language/ja_utf8/help/help.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/ja_utf8/help/help.html (rev 0)
+++ XoopsModules/waiting/trunk/waiting/language/ja_utf8/help/help.html 2012-01-26 23:36:26 UTC (rev 8821)
@@ -0,0 +1,36 @@
+<div id="help-template" class="outer">
+ <h1 class="head">Help:
+ <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/waiting/admin/index.php"
+ title="Back to the administration of SmallWorld"> Waiting Block
+ <img src="<{xoAdminIcons home.png}>"
+ alt="Back to the Administration of Waiting Block"/>
+ </a></h1>
+
+ <h4 class="odd">Description</h4>
+
+ <p class="even">This module offers you an extensible waiting contents block into your XOOPS.<br/> <br/>
+
+ By installing this module and adding proper plug-ins only, you as webmaster can confirm any approval waitings of any modules at one view.
+ </p>
+
+ <h4 class="odd">Install/uninstall</h4> <br/>
+
+ No special measures necessary, follow the standard installation process – extract the module folder into the
+ ../modules directory. Install the
+ module through Admin -> System Module -> Modules.<br/> <br/>
+
+ <h4 class="odd">Operations</h4> <br/>
+
+ Detailed instructions on configuring the access rights for user groups are available in the
+ <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a><br/> <br/>
+
+
+ <h4 class="odd">Tutorial</h4>
+
+ <p class="even">There is no tutorial available at this time</p>
+
+ <h4 class="odd">Ask Questions/Report Bugs</h4>
+
+ <p class="even">If have questions, or would like to report a bug, please post them on <a href="http://www.xoops.org/modules/newbb">Xoops support Forum</a></p>
+
+</div>
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/language/ja_utf8/help/index.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/ja_utf8/help/index.html (rev 0)
+++ XoopsModules/waiting/trunk/waiting/language/ja_utf8/help/index.html 2012-01-26 23:36:26 UTC (rev 8821)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsModules/waiting/trunk/waiting/language/ja_utf8/modinfo.php
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/ja_utf8/modinfo.php 2012-01-26 23:22:53 UTC (rev 8820)
+++ XoopsModules/waiting/trunk/waiting/language/ja_utf8/modinfo.php 2012-01-26 23:36:26 UTC (rev 8821)
@@ -9,4 +9,7 @@
// Names of blocks for this module (Not all module has blocks)
define("_MI_WAITING_BNAME1", "承認待ち(拡張)");
-?>
\ No newline at end of file
+
+define("_MI_WAITING_MENU_HOME", "Home");
+define("_MI_WAITING_MENU_ABOUT", "About");
+define("_MI_WAITING_MENU_PLUGINS", "Plugins");
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/language/japanese/help/help.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/japanese/help/help.html (rev 0)
+++ XoopsModules/waiting/trunk/waiting/language/japanese/help/help.html 2012-01-26 23:36:26 UTC (rev 8821)
@@ -0,0 +1,36 @@
+<div id="help-template" class="outer">
+ <h1 class="head">Help:
+ <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/waiting/admin/index.php"
+ title="Back to the administration of SmallWorld"> Waiting Block
+ <img src="<{xoAdminIcons home.png}>"
+ alt="Back to the Administration of Waiting Block"/>
+ </a></h1>
+
+ <h4 class="odd">Description</h4>
+
+ <p class="even">This module offers you an extensible waiting contents block into your XOOPS.<br/> <br/>
+
+ By installing this module and adding proper plug-ins only, you as webmaster can confirm any approval waitings of any modules at one view.
+ </p>
+
+ <h4 class="odd">Install/uninstall</h4> <br/>
+
+ No special measures necessary, follow the standard installation process – extract the module folder into the
+ ../modules directory. Install the
+ module through Admin -> System Module -> Modules.<br/> <br/>
+
+ <h4 class="odd">Operations</h4> <br/>
+
+ Detailed instructions on configuring the access rights for user groups are available in the
+ <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a><br/> <br/>
+
+
+ <h4 class="odd">Tutorial</h4>
+
+ <p class="even">There is no tutorial available at this time</p>
+
+ <h4 class="odd">Ask Questions/Report Bugs</h4>
+
+ <p class="even">If have questions, or would like to report a bug, please post them on <a href="http://www.xoops.org/modules/newbb">Xoops support Forum</a></p>
+
+</div>
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/language/japanese/help/index.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/japanese/help/index.html (rev 0)
+++ XoopsModules/waiting/trunk/waiting/language/japanese/help/index.html 2012-01-26 23:36:26 UTC (rev 8821)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsModules/waiting/trunk/waiting/language/japanese/modinfo.php
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/japanese/modinfo.php 2012-01-26 23:22:53 UTC (rev 8820)
+++ XoopsModules/waiting/trunk/waiting/language/japanese/modinfo.php 2012-01-26 23:36:26 UTC (rev 8821)
@@ -9,4 +9,7 @@
// Names of blocks for this module (Not all module has blocks)
define("_MI_WAITING_BNAME1", "\xBE\xB5ǧ\xC2Ԥ\xC1\xA1ʳ\xC8ĥ\xA1\xCB");
-?>
\ No newline at end of file
+
+define("_MI_WAITING_MENU_HOME", "Home");
+define("_MI_WAITING_MENU_ABOUT", "About");
+define("_MI_WAITING_MENU_PLUGINS", "Plugins");
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/language/persian/help/help.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/persian/help/help.html (rev 0)
+++ XoopsModules/waiting/trunk/waiting/language/persian/help/help.html 2012-01-26 23:36:26 UTC (rev 8821)
@@ -0,0 +1,36 @@
+<div id="help-template" class="outer">
+ <h1 class="head">Help:
+ <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/waiting/admin/index.php"
+ title="Back to the administration of SmallWorld"> Waiting Block
+ <img src="<{xoAdminIcons home.png}>"
+ alt="Back to the Administration of Waiting Block"/>
+ </a></h1>
+
+ <h4 class="odd">Description</h4>
+
+ <p class="even">This module offers you an extensible waiting contents block into your XOOPS.<br/> <br/>
+
+ By installing this module and adding proper plug-ins only, you as webmaster can confirm any approval waitings of any modules at one view.
+ </p>
+
+ <h4 class="odd">Install/uninstall</h4> <br/>
+
+ No special measures necessary, follow the standard installation process – extract the module folder into the
+ ../modules directory. Install the
+ module through Admin -> System Module -> Modules.<br/> <br/>
+
+ <h4 class="odd">Operations</h4> <br/>
+
+ Detailed instructions on configuring the access rights for user groups are available in the
+ <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a><br/> <br/>
+
+
+ <h4 class="odd">Tutorial</h4>
+
+ <p class="even">There is no tutorial available at this time</p>
+
+ <h4 class="odd">Ask Questions/Report Bugs</h4>
+
+ <p class="even">If have questions, or would like to report a bug, please post them on <a href="http://www.xoops.org/modules/newbb">Xoops support Forum</a></p>
+
+</div>
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/language/persian/help/index.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/persian/help/index.html (rev 0)
+++ XoopsModules/waiting/trunk/waiting/language/persian/help/index.html 2012-01-26 23:36:26 UTC (rev 8821)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsModules/waiting/trunk/waiting/language/persian/modinfo.php
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/persian/modinfo.php 2012-01-26 23:22:53 UTC (rev 8820)
+++ XoopsModules/waiting/trunk/waiting/language/persian/modinfo.php 2012-01-26 23:36:26 UTC (rev 8821)
@@ -20,4 +20,6 @@
define("_MI_WAITING_BNAME1", "ارسالهای منتظر برای تایید");
-?>
\ No newline at end of file
+define("_MI_WAITING_MENU_HOME", "Home");
+define("_MI_WAITING_MENU_ABOUT", "About");
+define("_MI_WAITING_MENU_PLUGINS", "Plugins");
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/language/portuguesebr/help/help.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/portuguesebr/help/help.html (rev 0)
+++ XoopsModules/waiting/trunk/waiting/language/portuguesebr/help/help.html 2012-01-26 23:36:26 UTC (rev 8821)
@@ -0,0 +1,36 @@
+<div id="help-template" class="outer">
+ <h1 class="head">Help:
+ <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/waiting/admin/index.php"
+ title="Back to the administration of SmallWorld"> Waiting Block
+ <img src="<{xoAdminIcons home.png}>"
+ alt="Back to the Administration of Waiting Block"/>
+ </a></h1>
+
+ <h4 class="odd">Description</h4>
+
+ <p class="even">This module offers you an extensible waiting contents block into your XOOPS.<br/> <br/>
+
+ By installing this module and adding proper plug-ins only, you as webmaster can confirm any approval waitings of any modules at one view.
+ </p>
+
+ <h4 class="odd">Install/uninstall</h4> <br/>
+
+ No special measures necessary, follow the standard installation process – extract the module folder into the
+ ../modules directory. Install the
+ module through Admin -> System Module -> Modules.<br/> <br/>
+
+ <h4 class="odd">Operations</h4> <br/>
+
+ Detailed instructions on configuring the access rights for user groups are available in the
+ <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a><br/> <br/>
+
+
+ <h4 class="odd">Tutorial</h4>
+
+ <p class="even">There is no tutorial available at this time</p>
+
+ <h4 class="odd">Ask Questions/Report Bugs</h4>
+
+ <p class="even">If have questions, or would like to report a bug, please post them on <a href="http://www.xoops.org/modules/newbb">Xoops support Forum</a></p>
+
+</div>
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/language/portuguesebr/help/index.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/portuguesebr/help/index.html (rev 0)
+++ XoopsModules/waiting/trunk/waiting/language/portuguesebr/help/index.html 2012-01-26 23:36:26 UTC (rev 8821)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsModules/waiting/trunk/waiting/language/portuguesebr/modinfo.php
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/portuguesebr/modinfo.php 2012-01-26 23:22:53 UTC (rev 8820)
+++ XoopsModules/waiting/trunk/waiting/language/portuguesebr/modinfo.php 2012-01-26 23:36:26 UTC (rev 8821)
@@ -15,4 +15,6 @@
define("_MI_WAITING_BNAME1", "Conte\xFAdo em espera");
-?>
+define("_MI_WAITING_MENU_HOME", "Home");
+define("_MI_WAITING_MENU_ABOUT", "About");
+define("_MI_WAITING_MENU_PLUGINS", "Plugins");
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/language/spanish/help/help.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/spanish/help/help.html (rev 0)
+++ XoopsModules/waiting/trunk/waiting/language/spanish/help/help.html 2012-01-26 23:36:26 UTC (rev 8821)
@@ -0,0 +1,36 @@
+<div id="help-template" class="outer">
+ <h1 class="head">Help:
+ <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/waiting/admin/index.php"
+ title="Back to the administration of SmallWorld"> Waiting Block
+ <img src="<{xoAdminIcons home.png}>"
+ alt="Back to the Administration of Waiting Block"/>
+ </a></h1>
+
+ <h4 class="odd">Description</h4>
+
+ <p class="even">This module offers you an extensible waiting contents block into your XOOPS.<br/> <br/>
+
+ By installing this module and adding proper plug-ins only, you as webmaster can confirm any approval waitings of any modules at one view.
+ </p>
+
+ <h4 class="odd">Install/uninstall</h4> <br/>
+
+ No special measures necessary, follow the standard installation process – extract the module folder into the
+ ../modules directory. Install the
+ module through Admin -> System Module -> Modules.<br/> <br/>
+
+ <h4 class="odd">Operations</h4> <br/>
+
+ Detailed instructions on configuring the access rights for user groups are available in the
+ <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a><br/> <br/>
+
+
+ <h4 class="odd">Tutorial</h4>
+
+ <p class="even">There is no tutorial available at this time</p>
+
+ <h4 class="odd">Ask Questions/Report Bugs</h4>
+
+ <p class="even">If have questions, or would like to report a bug, please post them on <a href="http://www.xoops.org/modules/newbb">Xoops support Forum</a></p>
+
+</div>
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/language/spanish/help/index.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/spanish/help/index.html (rev 0)
+++ XoopsModules/waiting/trunk/waiting/language/spanish/help/index.html 2012-01-26 23:36:26 UTC (rev 8821)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsModules/waiting/trunk/waiting/language/spanish/modinfo.php
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/spanish/modinfo.php 2012-01-26 23:22:53 UTC (rev 8820)
+++ XoopsModules/waiting/trunk/waiting/language/spanish/modinfo.php 2012-01-26 23:36:26 UTC (rev 8821)
@@ -14,5 +14,6 @@
// Names of blocks for this module (Not all module has blocks)
define("_MI_WAITING_BNAME1", "Contenidos en Espera Ext.");
-
-?>
\ No newline at end of file
+define("_MI_WAITING_MENU_HOME", "Home");
+define("_MI_WAITING_MENU_ABOUT", "About");
+define("_MI_WAITING_MENU_PLUGINS", "Plugins");
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/language/swedish/help/help.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/swedish/help/help.html (rev 0)
+++ XoopsModules/waiting/trunk/waiting/language/swedish/help/help.html 2012-01-26 23:36:26 UTC (rev 8821)
@@ -0,0 +1,36 @@
+<div id="help-template" class="outer">
+ <h1 class="head">Help:
+ <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/waiting/admin/index.php"
+ title="Back to the administration of SmallWorld"> Waiting Block
+ <img src="<{xoAdminIcons home.png}>"
+ alt="Back to the Administration of Waiting Block"/>
+ </a></h1>
+
+ <h4 class="odd">Description</h4>
+
+ <p class="even">This module offers you an extensible waiting contents block into your XOOPS.<br/> <br/>
+
+ By installing this module and adding proper plug-ins only, you as webmaster can confirm any approval waitings of any modules at one view.
+ </p>
+
+ <h4 class="odd">Install/uninstall</h4> <br/>
+
+ No special measures necessary, follow the standard installation process – extract the module folder into the
+ ../modules directory. Install the
+ module through Admin -> System Module -> Modules.<br/> <br/>
+
+ <h4 class="odd">Operations</h4> <br/>
+
+ Detailed instructions on configuring the access rights for user groups are available in the
+ <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a><br/> <br/>
+
+
+ <h4 class="odd">Tutorial</h4>
+
+ <p class="even">There is no tutorial available at this time</p>
+
+ <h4 class="odd">Ask Questions/Report Bugs</h4>
+
+ <p class="even">If have questions, or would like to report a bug, please post them on <a href="http://www.xoops.org/modules/newbb">Xoops support Forum</a></p>
+
+</div>
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/language/swedish/help/index.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/swedish/help/index.html (rev 0)
+++ XoopsModules/waiting/trunk/waiting/language/swedish/help/index.html 2012-01-26 23:36:26 UTC (rev 8821)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsModules/waiting/trunk/waiting/language/swedish/modinfo.php
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/swedish/modinfo.php 2012-01-26 23:22:53 UTC (rev 8820)
+++ XoopsModules/waiting/trunk/waiting/language/swedish/modinfo.php 2012-01-26 23:36:26 UTC (rev 8821)
@@ -15,4 +15,6 @@
define("_MI_WAITING_BNAME1", "V\xE7\xCFtande Inneh\xE9\xCDl");
-?>
\ No newline at end of file
+define("_MI_WAITING_MENU_HOME", "Home");
+define("_MI_WAITING_MENU_ABOUT", "About");
+define("_MI_WAITING_MENU_PLUGINS", "Plugins");
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <be...@us...> - 2012-01-26 23:23:01
|
Revision: 8820
http://xoops.svn.sourceforge.net/xoops/?rev=8820&view=rev
Author: beckmi
Date: 2012-01-26 23:22:53 +0000 (Thu, 26 Jan 2012)
Log Message:
-----------
Updating to AdminModule GUI
Modified Paths:
--------------
XoopsModules/waiting/trunk/waiting/admin/index.php
XoopsModules/waiting/trunk/waiting/images/waiting_slogo.png
XoopsModules/waiting/trunk/waiting/language/english/admin.php
XoopsModules/waiting/trunk/waiting/language/english/modinfo.php
XoopsModules/waiting/trunk/waiting/xoops_version.php
Added Paths:
-----------
XoopsModules/waiting/trunk/waiting/admin/about.php
XoopsModules/waiting/trunk/waiting/admin/admin_footer.php
XoopsModules/waiting/trunk/waiting/admin/admin_header.php
XoopsModules/waiting/trunk/waiting/admin/main.php
XoopsModules/waiting/trunk/waiting/admin/menu.php
XoopsModules/waiting/trunk/waiting/docs/
XoopsModules/waiting/trunk/waiting/docs/changelog.txt
XoopsModules/waiting/trunk/waiting/docs/credits.txt
XoopsModules/waiting/trunk/waiting/docs/index.html
XoopsModules/waiting/trunk/waiting/docs/install.txt
XoopsModules/waiting/trunk/waiting/docs/lang_diff.txt
XoopsModules/waiting/trunk/waiting/docs/licence.txt
XoopsModules/waiting/trunk/waiting/docs/readme.txt
XoopsModules/waiting/trunk/waiting/language/english/help/
XoopsModules/waiting/trunk/waiting/language/english/help/help.html
XoopsModules/waiting/trunk/waiting/language/english/help/index.html
Removed Paths:
-------------
XoopsModules/waiting/trunk/waiting/README
Deleted: XoopsModules/waiting/trunk/waiting/README
===================================================================
--- XoopsModules/waiting/trunk/waiting/README 2012-01-26 23:18:38 UTC (rev 8819)
+++ XoopsModules/waiting/trunk/waiting/README 2012-01-26 23:22:53 UTC (rev 8820)
@@ -1,291 +0,0 @@
-[xlang:en]
-
-- WAITING MODULE -
-
-This module offers you an extensible waiting contents block into your XOOPS.
-
-The original XOOPS block of "Waiting Contents" works only for official modules,
-and is no longer extensible.
-It is nonsense to have to do Hack for yourself when you use 3rd party modules.
-
-By installing this module and adding proper plug-ins only,
-you as webmaster can confirm any approval waitings of any modules at one view.
-
-
-NEW FEATURE in 0.8
-
-- plug-ins for waiting can be placed inside module's directory
-
-If you as module developper put your plug-in as modules/(your module)/include/waiting.plugin.php, waiting module will find it.
-The plugin in module's directory has higher prioriy than the plugin in waiting's directory.
-
-- multiple waitings can be returned from single function
-
-You can return waitings multiplly with the format as follows:
-[code]
-array(
- array("adminlink"=>URL",
- "pendingnum"=>NUM,
- "lang_linkname"=>LINKNAME),
- array("adminlink"=>URL",
- "pendingnum"=>NUM,
- "lang_linkname"=>LINKNAME),
- array("adminlink"=>URL",
- "pendingnum"=>NUM,
- "lang_linkname"=>LINKNAME)
-)
-[/code]
-
-If you'll return just one waiting, this format is also ok.
-[code]
- array("adminlink"=>URL",
- "pendingnum"=>NUM,
- "lang_linkname"=>LINKNAME)
-[/code]
-It will be deprecated functions named b_waiting_(dirname)_X
-
-- modified the template as watings belonging modules
-
-This modification makes that plug-ins need not to return the information of the module. It is enough to display short message like "submitted".
-
-
-
-This module is made by Ryuji (http://ryus.co.jp/)
-If you can read Japanese, let's visit Ryuji's site!
-
-
-[/xlang:en]
-[xlang:ja]
-
-waiting\xA5⥸\xA5塼\xA5\xEB
-
-\xB8\xB5\xA4\xCFRyuji\xA4\xB5\xA4\xF3\xBA\xEE\xA4Υ⥸\xA5塼\xA5\xEB\xA4Ǥ\xB7\xA4\xBF\xA4\xAC\xA1\xA2\xA4\xA4\xA4Ĥδ֤ˤ\xAB\xA5\xE1\xA5\xF3\xA5ƥʥ\xF2\xB0\xFA\xA4\xAD\xBC\x{164C64}\xBF\xA4褦\xA4ʷ\xC1\xA4ˤʤäƤޤ\xB9\xA1\xA3
-http://ryus.co.jp/
-
-*\xB3\xB5\xCD\xD7
-\xA5ץ饰\xA5\xA4\xA5\xF3\xA4dz\xC8ĥ\xB2\xC4ǽ\xA4ʾ\xB5ǧ\xC2Ԥ\xC1\xA5\xB3\xA5\xF3\xA5ƥ\xF3\xA5ĥ֥\xED\xA5å\xAF
-
-\xA5⥸\xA5塼\xA5\xEB\xA4\xF2\xC4ɲä\xB9\xA4뤿\xA4Ӥˡ\xA2\xCB\xDC\xC2Τξ\xB5ǧ\xC2Ԥ\xC1\xA5\xB3\xA5\xF3\xA5ƥ\xF3\xA5ĥ֥\xED\xA5å\xAF\xA4˼\xEA\xA4\xF2\xC6\xFE\xA4\xEC\xA4\xEB\xA4Τϡ\xA2\xA4\xA2\xA4ޤ\xEA\xA4ˤ\xE2\xC8\xF3\xB8\xFAΨ\xA4\xC0\xA4Ȼפ\xA4\xBBϤ\xA4ΤǺ\xEE\xC0\xAE\xA4\xB7\xA4ޤ\xB7\xA4\xBF\xA1\xA3
-
-
-\xA1\xFC waiting 0.8 \xA4\xAB\xA4\xE9\xA4ο\xB7\xB5\xA1ǽ
-
-\xA1\xA6\xA5⥸\xA5塼\xA5\xEB\xC6\xE2\xA4˥ץ饰\xA5\xA4\xA5\xF3\xA4\xF2\xC3֤\xB1\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4\xBF
-
-\xB3ƥ⥸\xA5塼\xA5\xEB\xBA\xEE\xBCԤ\xB5\xA4\xA2waiting\xA5⥸\xA5塼\xA5\xEB\xA4Υץ饰\xA5\xA4\xA5\xF3\xA4\xE2\xBA\xEE\xC0\xAE\xA4\xB7\xA4Ƥ\xAF\xA4\xEC\xA4뤳\xA4Ȥ\xAC¿\xA4\xA4\xA4Τȡ\xA2ʣ\xC0\xBD\xB2\xC4ǽ\xA5⥸\xA5塼\xA5\xEB\xA4\xCB\xC2б\xFE\xA4\xB9\xA4뤿\xA4\xE1\xA4ˡ\xA2\xB3ƥ⥸\xA5塼\xA5\xEB\xC6\xE2\xA4˥ץ饰\xA5\xA4\xA5\xF3\xA4\xF2\xC3֤\xB1\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4ޤ\xB7\xA4\xBF\xA1\xA3
-
-\xB3ƥ⥸\xA5塼\xA5\xEB\xA4\xCEinclude/waiting.plugin.php \xA4˥ץ饰\xA5\xA4\xA5\xF3\xA4\xF2\xC3֤\xAD\xA1\xA2\xB8\xC0\xB8\xEC\xA5ե\xA1\xA5\xA4\xA5\xEB\xA4ϡ\xA2language/LANG/waiting.php\xA4ˤ\xAA\xA4\xAD\xA4ޤ\xB9\xA1\xA3
-
-\xC6ɤ߹\xFE\xA4\xDFͥ\xC0\xE8\xBD\xE7\xB0̤\xCF
-\xA3\xB1\xA1\xA5\xB3ƥ⥸\xA5塼\xA5\xEB\xC6\xE2\xA4ˤ\xA2\xA4\xEB\xA5ץ饰\xA5\xA4\xA5\xF3
-\xA3\xB2\xA1\xA5waiting\xA5⥸\xA5塼\xA5\xEB\xC6\xE2\xA4ˤ\xA2\xA4\xEB\xA5ץ饰\xA5\xA4\xA5\xF3
-\xA4ȤʤäƤޤ\xB9\xA1\xA3
-
-\xA1\xA6\xA3\xB1\xA4ĤΥ⥸\xA5塼\xA5\xEB\xA4\xC7ʣ\xBF\xF4\xA4ξ\xB5ǧ\xC2Ԥ\xC1\xA4\xF2\xCA֤\xBB\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4\xBF
-
-GIJOE\xA4\xB5\xA4\xF3\xA4\xCEHack\xA4ˤ\xE8\xA4ꡢb_waiting_MOD_NUM\xA4\xF2ʣ\xBF\xF4\xCDѰդ\xB9\xA4뤳\xA4Ȥǡ\xA2ʣ\xBF\xF4\xA4ξ\xB5ǧ\xC2Ԥ\xC1\xA4\xCB\xC2б\xFE\xA4\xB7\xA4Ƥ\xA4\xA4ޤ\xB7\xA4\xBF\xA4\xAC\xA1\xA2\xA4ҤȤĤ\xCEfunction\xA4\xC7\xC2б\xFE\xA4Ǥ\xAD\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4ޤ\xB7\xA4\xBF\xA1\xA3
-
-\xA5ץ饰\xA5\xA4\xA5\xE9\xCA֤\xB9\xA4Ȥ\xAD\xA4ˡ\xA2
-[code]
-array(
- array("adminlink"=>URL",
- "pendingnum"=>NUM,
- "lang_linkname"=>LINKNAME),
- array("adminlink"=>URL",
- "pendingnum"=>NUM,
- "lang_linkname"=>LINKNAME),
- array("adminlink"=>URL",
- "pendingnum"=>NUM,a
- "lang_linkname"=>LINKNAME)
-)
-[/code]
-\xA4Ȥ\xA4\xA4\xA6\xB7\xC1\xA4\xC7\xCA֤äƤ\xAD\xA4\xBF\xA4\xE9ʣ\xBF\x{1248A4}\xEB\xA4\xC8Ƚ\xC3Ǥ\xB7\xA4ޤ\xB9\xA1\xA3
-\xA4ҤȤĤ\xB7\xA4\xAB\xA4ʤ\xA4\xBE\xEC\xB9\xE7\xA4ϡ\xA2\xBA\xA3\xA4ޤ\xC7\xC4̤\xEA
-[code]
- array("adminlink"=>URL",
- "pendingnum"=>NUM,
- "lang_linkname"=>LINKNAME)
-[/code]
-\xA4ǡ\xA2OK\xA4Ǥ\xB9\xA1\xA3
-
-\xA1\xA6 \xA5⥸\xA5塼\xA5\xEB̾\xA4β\xBC\xA4˳ƾ\xB5ǧ\xC2Ԥ\xC1\xA4\xACɽ\xBC\xA8\xA4\xB5\xA4\xEC\xA4\xEB\xA4褦\xA4˥ƥ\xF3\xA5ץ졼\xA5Ȥ\xF2\xCAѹ\xB9\xA4\xB7\xA4\xBF
-
-\xA4\xB3\xA4β\xFE\xCEɤˤ\xE8\xA4ꡢ\xB3ƾ\xB5ǧ\xC2Ԥ\xC1\xA4Υƥ\xAD\xA5\xB9\xA5Ȥˡ\xA2\xA5⥸\xA5塼\xA5\xEB\xA4ξ\xF0\xCA\xF3\xA4\xF2\xB4ޤޤʤ\xAF\xA4\xC6\xCEɤ\xAF\xA4ʤ\xEA\xA4ޤ\xB7\xA4\xBF\xA1\xA3
-\xCE㤨\xA4С\xA2\xA1֥\xC0\xA5\xA6\xA5\xF3\xA5\x{D87C}\xA5ɿ\xB7\xB5\xAC\xC5\xEA\xB9ơפϡֿ\xB7\xB5\xAC\xC5\xEA\xB9ơפ\xC0\xA4\xB1\xA4\xC7OK\xA4Ǥ\xB9\xA1\xA3
-
-[/xlang:ja]
-
-
-
-
-PLUGINS:
-
--addresses (by gruessle)
--Agenda-X (by GIJOE)
--AMS (by karedokx)
--articles (by twilo)
--catads (by Alain01)
--CBB (by gravies)
--extcal (by alain01)
--MyAds (by Tom_G3X)
--myAlbum-P (by GIJOE) multiple
--mydownloads (by GIJOE)
--mylinks(by GIJOE)
--newbb2 (by gravies)
--news (by GIJOE)
--PDlinks (by flying.tux)
--PDdownloads (by flying.tux)
--piCal (by GIJOE) (>=0.8 has the module side plugin)
--pico (by GIJOE) (D3 module side plugin)
--popnupblog (by dashboard)
--simpleblog (by kousuke)
--smartfaq (by mariuss)
--smartpartner (by mariuss)
--smartsection (by flying.tux)
--system -- comments (by GIJOE)
--tutorials (by GIJOE)
--weblinks (by Tom_G3X)
--WF-downloads (by coldfire, flying.tux)
--WF-links (by flying.tux)
--WF-Sections (by GIJOE)
--WordBook (by AgD)
--WordPress ME (by nobunobu) multiple (>=0.5 has the module side plugin)
--xcGallery (by nao-pon)
--xDirectory (by GIJOE)
--xfguestbook (by karedokx)
--xfsection (by Bezoops)
--xyp4all (by flying.tux)
--yomi search (by nao-pon)
--eguide (by tes)
-
-
-
-
-
-CHANGES:
-
-ver 0.95|
-- added D3 module ready
-- added french (thx marco)
-- added portuguesebr (thx Izzy)
-- added persian (thx stranger) 0.95a
-- a plugin added
--- eguide (by tes) 0.95b
-- languge files added
--- ja_utf8 0.95c
-
-ver 0.94b|
-- modified the module icon (thx Argon)
-- 2 pugins added
--- extcal (thx alain01)
--- articles (thx twilo)
-
-ver 0.94a|
-- fixed a typo in plugins/yomi.php (thx yshima)
-
-:ver 0.94|
-- removed CRs in some php files
-- a plugin added
--- XFSection (thx Bezoops)
-
-:ver 0.93|
-- updated Italian (thx flying.tux)
-- a plugin added
--- SmartPartner (thx mariuss)
-
-:ver 0.92|
-- add SQL cache
-- fixed some typos (thx karedokx)
-- 2 plugin modified
--- WF-Section (thx karedokx)
--- catads (thx Alain01)
-- 2 plugins added
--- WordBook (thx AgD)
--- recette (thx karedokx)
-
-:ver 0.91|
-- updated Italian (thx flying.tux)
-
-:ver 0.90|
-- modified the structure of the directory for plugins
-- modified system plugin (thx gravies)
-- 3 plugins added
--- newbb2 or CBB (thx gravies)
--- catads (thx Alain01)
--- WF-links (thx flying.tux)
-
-:ver 0.86| by flying.tux
-- Italian updated
-- 2 plug-ins added
--- PDlinks (thx flying.tux)
--- PDdownloads (thx flying.tux)
-
-:ver 0.85| by GIJOE
-- modified the dependencies of language files and constants radically
-
-:ver 0.84| by GIJOE
-- fixed a typo in the form for block's options (thx flying.tux)
-- fixed some Notices in "not always" mode
-- 2 plug-ins added
--- xfguestbook (thx karedokx) (0.84a)
--- AMS (thx karedokx) (0.84a)
-- a plug-in modified
--- weblinks (thx Tom_G3X) (0.84b)
-
-:ver 0.83| by GIJOE
-- fixed missing a Creteria in getList()
-
-:ver 0.82| by flying.tux
-- few modifications in English
-- few modifications in Italian
-- 1 plug-in added
--- smartsection(thx flying.tux)
-
-:ver 0.81| by GIJOE
-- changed the route to admin (from block's option edit)
-- modified English
-- added some protections against direct accessing
-- Italian added(thx flying.tux)
-- 1 plug-in added
--- xyp4all(thx flying.tux)
-
-:ver 0.8|
--- modified as reading plug-in from module's directory if it exists
--- multiple waitings can be returned from single function
---- almost plug-ins are modified along this new spec by GIJOE
--- modified the template as watings belonging modules
---- English and Japanese text are shorten by GIJOE
-- 1 plug-in added
--- Weblinks(by Ryuji)
-
-:ver 0.7c|
--- 1 plug-in added
---- WordPress ME(by nobunobu) multiple
-
-:ver 0.7b|
--- 1 plug-in added
---- SmartFAQ (by mariuss)
-
-:ver 0.7a|
--- 1 plug-in added
---- WF-Downloads (by coldfire)
-
-:ver 0.7|
--- 2 language files added
---- spanish (by ColdBeer)
---- swedish (by Leif Madsen)
--- 1 plug-in added
---- xcGallery (by nao-pon)
-
-:ver 0.6|
--- An option added whether it is displayed when no wating exists
--- 3 plug-ins added
---- Addresses (by gruessle)
---- MyAds (by Tom_G3X)
---- Tutorials (by GIJOE)
-
-:ver 0.5|
--- some plug-ins added
--- English document file - is this - added.
-
-
Added: XoopsModules/waiting/trunk/waiting/admin/about.php
===================================================================
--- XoopsModules/waiting/trunk/waiting/admin/about.php (rev 0)
+++ XoopsModules/waiting/trunk/waiting/admin/about.php 2012-01-26 23:22:53 UTC (rev 8820)
@@ -0,0 +1,29 @@
+<?php
+/**
+ * Birthday module
+ *
+ * You may not change or alter any portion of this comment or credits
+ * of supporting developers from this source code or any supporting source code
+ * which is considered copyrighted (c) material of the original comment or credit authors.
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ *
+ * @copyright The XOOPS Project (http://www.xoops.org)
+ * @license GNU GPL (http://www.gnu.org/licenses/gpl-2.0.html/)
+ * @package birthday
+ * @since 2.5.0
+ * @author XOOPS Module Team
+ * @version $Id $
+ **/
+
+include_once dirname(__FILE__) . '/admin_header.php';
+
+xoops_cp_header();
+
+$aboutAdmin = new ModuleAdmin();
+
+echo $aboutAdmin->addNavigation('about.php');
+echo $aboutAdmin->renderAbout('WKFZBRBGMYKCA', false);
+
+include 'admin_footer.php';
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/admin/admin_footer.php
===================================================================
--- XoopsModules/waiting/trunk/waiting/admin/admin_footer.php (rev 0)
+++ XoopsModules/waiting/trunk/waiting/admin/admin_footer.php 2012-01-26 23:22:53 UTC (rev 8820)
@@ -0,0 +1,16 @@
+<?php
+// $Id: index.php,v 1.2 2005/04/06 09:49:05 gij Exp $
+// FILE :: index.php
+// AUTHOR :: Ryuji AMANO <in...@ry...>
+// WEB :: Ryu's Planning <http://ryus.co.jp/>
+//
+
+
+echo "<div class='adminfooter'>\n"
+ ." <div style='text-align: center;'>\n"
+ ." <a href='http://www.xoops.org' target='_blank'><img src='{$pathIcon32}/xoopsmicrobutton.gif' alt='XOOPS' title='XOOPS'></a>\n"
+ ." </div>\n"
+ ." " . _AM_WAITING_FOOTER . "\n"
+ ."</div>";
+
+xoops_cp_footer();
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/admin/admin_header.php
===================================================================
--- XoopsModules/waiting/trunk/waiting/admin/admin_header.php (rev 0)
+++ XoopsModules/waiting/trunk/waiting/admin/admin_header.php 2012-01-26 23:22:53 UTC (rev 8820)
@@ -0,0 +1,31 @@
+<?php
+// $Id: index.php,v 1.2 2005/04/06 09:49:05 gij Exp $
+// FILE :: index.php
+// AUTHOR :: Ryuji AMANO <in...@ry...>
+// WEB :: Ryu's Planning <http://ryus.co.jp/>
+//
+
+
+$path = dirname(dirname(dirname(dirname(__FILE__))));
+include_once $path . '/mainfile.php';
+include_once $path . '/include/cp_functions.php';
+require_once $path . '/include/cp_header.php';
+
+global $xoopsModule;
+
+$thisModuleDir = $GLOBALS['xoopsModule']->getVar('dirname');
+
+// Load language files
+xoops_loadLanguage('admin', $thisModuleDir);
+xoops_loadLanguage('modinfo', $thisModuleDir);
+xoops_loadLanguage('main', $thisModuleDir);
+
+$pathIcon16 = '../'.$xoopsModule->getInfo('icons16');
+$pathIcon32 = '../'.$xoopsModule->getInfo('icons32');
+$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin');
+
+if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){
+ include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php');
+ }else{
+ redirect_header("../../../admin.php", 5, _AM_MODULEADMIN_MISSING, false);
+ }
\ No newline at end of file
Modified: XoopsModules/waiting/trunk/waiting/admin/index.php
===================================================================
--- XoopsModules/waiting/trunk/waiting/admin/index.php 2012-01-26 23:18:38 UTC (rev 8819)
+++ XoopsModules/waiting/trunk/waiting/admin/index.php 2012-01-26 23:22:53 UTC (rev 8820)
@@ -1,29 +1,19 @@
-<?php
-// $Id: index.php,v 1.2 2005/04/06 09:49:05 gij Exp $
-// FILE :: index.php
-// AUTHOR :: Ryuji AMANO <in...@ry...>
-// WEB :: Ryu's Planning <http://ryus.co.jp/>
-//
-
-require_once "../../../include/cp_header.php";
-require_once dirname(dirname(__FILE__)).'/include/functions.php' ;
-xoops_cp_header();
-$plugins_path = XOOPS_ROOT_PATH . "/modules/waiting/plugins";
-$module_handler =& xoops_gethandler('module');
-$block = array();
-
-//\xA5\xA4\xA5ȡ\xBC\xA5뤵\xA4\xEC\xA4Ƥ\xA4\xA4\xEB\xA5⥸\xA5塼\xA5\xEB\xA5ꥹ\xA5Ȥ\xF2\xC6\xC0\xA4롣
-$mod_lists = $module_handler->getList(new Criteria(1,1),true);
-echo "<h4>"._AM_WAITING_PLUGINLIST."</h4>";
-echo "<table class='outer'>";
-echo "<th>"._AM_WAITING_MODNAME."</th><th>dirname</th><th>"._AM_WAITING_STATUS."</th>";
-foreach( $mod_lists as $dirname => $name ) {
- $style = ( @$style == "odd" ) ? "even" : "odd" ;
- $plugin_info = waiting_get_plugin_info( $dirname ) ;
- printf( "<tr class='%s'><td>%s</td><td>%s</td><td>%s</td></tr>" , $style , htmlspecialchars( $name ) , htmlspecialchars( $dirname ) , @$plugin_info['type'] ) ;
-}
-echo "</table>";
-echo _AM_WAITING_PLUGINLIST_DESC;
-
-xoops_cp_footer();
-?>
\ No newline at end of file
+<?php
+// $Id: index.php,v 1.2 2005/04/06 09:49:05 gij Exp $
+// FILE :: index.php
+// AUTHOR :: Ryuji AMANO <in...@ry...>
+// WEB :: Ryu's Planning <http://ryus.co.jp/>
+//
+
+
+require_once dirname(dirname(dirname(dirname(__FILE__)))) . '/include/cp_header.php';
+include_once dirname(__FILE__) . '/admin_header.php';
+
+xoops_cp_header();
+
+ $indexAdmin = new ModuleAdmin();
+
+ echo $indexAdmin->addNavigation('index.php');
+ echo $indexAdmin->renderIndex();
+
+include "admin_footer.php";
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/admin/main.php
===================================================================
--- XoopsModules/waiting/trunk/waiting/admin/main.php (rev 0)
+++ XoopsModules/waiting/trunk/waiting/admin/main.php 2012-01-26 23:22:53 UTC (rev 8820)
@@ -0,0 +1,42 @@
+<?php
+// $Id: index.php,v 1.2 2005/04/06 09:49:05 gij Exp $
+// FILE :: index.php
+// AUTHOR :: Ryuji AMANO <in...@ry...>
+// WEB :: Ryu's Planning <http://ryus.co.jp/>
+//
+
+require_once "../../../include/cp_header.php";
+require_once dirname(dirname(__FILE__)).'/include/functions.php' ;
+include_once dirname(__FILE__) . '/admin_header.php';
+xoops_cp_header();
+
+$indexAdmin = new ModuleAdmin();
+echo $indexAdmin->addNavigation('main.php');
+
+$plugins_path = XOOPS_ROOT_PATH . "/modules/waiting/plugins";
+$module_handler =& xoops_gethandler('module');
+$block = array();
+
+//\xA5\xA4\xA5ȡ\xBC\xA5뤵\xA4\xEC\xA4Ƥ\xA4\xA4\xEB\xA5⥸\xA5塼\xA5\xEB\xA5ꥹ\xA5Ȥ\xF2\xC6\xC0\xA4롣
+$mod_lists = $module_handler->getList(new Criteria(1,1),true);
+echo "<h4>"._AM_WAITING_PLUGINLIST."</h4>";
+echo "<table class='outer'>";
+echo "<th>"._AM_WAITING_MODNAME."</th><th>dirname</th><th>"._AM_WAITING_STATUS."</th>";
+foreach( $mod_lists as $dirname => $name ) {
+ $style = ( @$style == "odd" ) ? "even" : "odd" ;
+ $plugin_info = waiting_get_plugin_info( $dirname ) ;
+ printf( "<tr class='%s'><td>%s</td><td>%s</td><td>%s</td></tr>" , $style , htmlspecialchars( $name ) , htmlspecialchars( $dirname ) , @$plugin_info['type'] ) ;
+}
+echo "</table>";
+echo _AM_WAITING_PLUGINLIST_DESC;
+
+
+include 'admin_footer.php';
+
+
+
+
+
+
+
+
Added: XoopsModules/waiting/trunk/waiting/admin/menu.php
===================================================================
--- XoopsModules/waiting/trunk/waiting/admin/menu.php (rev 0)
+++ XoopsModules/waiting/trunk/waiting/admin/menu.php 2012-01-26 23:22:53 UTC (rev 8820)
@@ -0,0 +1,34 @@
+<?php
+/**
+ * Created by JetBrains PhpStorm.
+ * User: Mamba
+ * Date: 1/25/12
+ * Time: 7:04 AM
+ * To change this template use File | Settings | File Templates.
+ */
+
+defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined");
+
+$dirname = basename(dirname(dirname(__FILE__)));
+$module_handler = xoops_gethandler('module');
+$module = $module_handler->getByDirname($dirname);
+$pathIcon32 = $module->getInfo('icons32');
+
+//xoops_loadLanguage('admin', $dirname);
+
+$adminmenu = array();
+
+$i = 1;
+$adminmenu[$i]["title"] = _MI_WAITING_MENU_HOME;
+$adminmenu[$i]["link"] = 'admin/index.php';
+$adminmenu[$i]["icon"] = $pathIcon32.'/home.png';
+
+$i++;
+$adminmenu[$i]["title"] = _MI_WAITING_MENU_VIEW;
+$adminmenu[$i]["link"] = 'admin/main.php';
+$adminmenu[$i]["icon"] = $pathIcon32.'/search.png';
+
+$i++;
+$adminmenu[$i]["title"] = _MI_WAITING_MENU_ABOUT;
+$adminmenu[$i]["link"] = 'admin/about.php';
+$adminmenu[$i]["icon"] = $pathIcon32.'/about.png';
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/docs/changelog.txt
===================================================================
--- XoopsModules/waiting/trunk/waiting/docs/changelog.txt (rev 0)
+++ XoopsModules/waiting/trunk/waiting/docs/changelog.txt 2012-01-26 23:22:53 UTC (rev 8820)
@@ -0,0 +1,128 @@
+CHANGES:
+
+ver 0.96
+- converted to AdminModule GUI (mamba)
+
+ver 0.95|
+- added D3 module ready
+- added french (thx marco)
+- added portuguesebr (thx Izzy)
+- added persian (thx stranger) 0.95a
+- a plugin added
+-- eguide (by tes) 0.95b
+- languge files added
+-- ja_utf8 0.95c
+
+ver 0.94b|
+- modified the module icon (thx Argon)
+- 2 pugins added
+-- extcal (thx alain01)
+-- articles (thx twilo)
+
+ver 0.94a|
+- fixed a typo in plugins/yomi.php (thx yshima)
+
+:ver 0.94|
+- removed CRs in some php files
+- a plugin added
+-- XFSection (thx Bezoops)
+
+:ver 0.93|
+- updated Italian (thx flying.tux)
+- a plugin added
+-- SmartPartner (thx mariuss)
+
+:ver 0.92|
+- add SQL cache
+- fixed some typos (thx karedokx)
+- 2 plugin modified
+-- WF-Section (thx karedokx)
+-- catads (thx Alain01)
+- 2 plugins added
+-- WordBook (thx AgD)
+-- recette (thx karedokx)
+
+:ver 0.91|
+- updated Italian (thx flying.tux)
+
+:ver 0.90|
+- modified the structure of the directory for plugins
+- modified system plugin (thx gravies)
+- 3 plugins added
+-- newbb2 or CBB (thx gravies)
+-- catads (thx Alain01)
+-- WF-links (thx flying.tux)
+
+:ver 0.86| by flying.tux
+- Italian updated
+- 2 plug-ins added
+-- PDlinks (thx flying.tux)
+-- PDdownloads (thx flying.tux)
+
+:ver 0.85| by GIJOE
+- modified the dependencies of language files and constants radically
+
+:ver 0.84| by GIJOE
+- fixed a typo in the form for block's options (thx flying.tux)
+- fixed some Notices in "not always" mode
+- 2 plug-ins added
+-- xfguestbook (thx karedokx) (0.84a)
+-- AMS (thx karedokx) (0.84a)
+- a plug-in modified
+-- weblinks (thx Tom_G3X) (0.84b)
+
+:ver 0.83| by GIJOE
+- fixed missing a Creteria in getList()
+
+:ver 0.82| by flying.tux
+- few modifications in English
+- few modifications in Italian
+- 1 plug-in added
+-- smartsection(thx flying.tux)
+
+:ver 0.81| by GIJOE
+- changed the route to admin (from block's option edit)
+- modified English
+- added some protections against direct accessing
+- Italian added(thx flying.tux)
+- 1 plug-in added
+-- xyp4all(thx flying.tux)
+
+:ver 0.8|
+-- modified as reading plug-in from module's directory if it exists
+-- multiple waitings can be returned from single function
+--- almost plug-ins are modified along this new spec by GIJOE
+-- modified the template as watings belonging modules
+--- English and Japanese text are shorten by GIJOE
+- 1 plug-in added
+-- Weblinks(by Ryuji)
+
+:ver 0.7c|
+-- 1 plug-in added
+--- WordPress ME(by nobunobu) multiple
+
+:ver 0.7b|
+-- 1 plug-in added
+--- SmartFAQ (by mariuss)
+
+:ver 0.7a|
+-- 1 plug-in added
+--- WF-Downloads (by coldfire)
+
+:ver 0.7|
+-- 2 language files added
+--- spanish (by ColdBeer)
+--- swedish (by Leif Madsen)
+-- 1 plug-in added
+--- xcGallery (by nao-pon)
+
+:ver 0.6|
+-- An option added whether it is displayed when no wating exists
+-- 3 plug-ins added
+--- Addresses (by gruessle)
+--- MyAds (by Tom_G3X)
+--- Tutorials (by GIJOE)
+
+:ver 0.5|
+-- some plug-ins added
+-- English document file - is this - added.
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/docs/credits.txt
===================================================================
--- XoopsModules/waiting/trunk/waiting/docs/credits.txt (rev 0)
+++ XoopsModules/waiting/trunk/waiting/docs/credits.txt 2012-01-26 23:22:53 UTC (rev 8820)
@@ -0,0 +1,6 @@
+Credits
+===============
+
+Originally developed by Ryuji (http://ryus.co.jp/)
+
+Improved by GiJOE (http://xoops.peak.ne.jp)
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/docs/index.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/docs/index.html (rev 0)
+++ XoopsModules/waiting/trunk/waiting/docs/index.html 2012-01-26 23:22:53 UTC (rev 8820)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/docs/install.txt
===================================================================
--- XoopsModules/waiting/trunk/waiting/docs/install.txt (rev 0)
+++ XoopsModules/waiting/trunk/waiting/docs/install.txt 2012-01-26 23:22:53 UTC (rev 8820)
@@ -0,0 +1,6 @@
+INSTALL/UNISTALL
+=================
+
+No special measures necessary, follow the standard installation process \x96 extract the module folder into the ../modules directory. Install the module through Admin -> System Module -> Modules.
+
+Detailed instructions on installing modules are available in the XOOPS Operations Manual: http://goo.gl/adT2i
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/docs/lang_diff.txt
===================================================================
--- XoopsModules/waiting/trunk/waiting/docs/lang_diff.txt (rev 0)
+++ XoopsModules/waiting/trunk/waiting/docs/lang_diff.txt 2012-01-26 23:22:53 UTC (rev 8820)
@@ -0,0 +1,4 @@
+LANGUAGE DIFFERENCES
+=====================
+
+Below are language differences from a version to next version.
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/docs/licence.txt
===================================================================
--- XoopsModules/waiting/trunk/waiting/docs/licence.txt (rev 0)
+++ XoopsModules/waiting/trunk/waiting/docs/licence.txt 2012-01-26 23:22:53 UTC (rev 8820)
@@ -0,0 +1,339 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 2, June 1991
+
+ Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The licenses for most software are designed to take away your
+freedom to share and change it. By contrast, the GNU General Public
+License is intended to guarantee your freedom to share and change free
+software--to make sure the software is free for all its users. This
+General Public License applies to most of the Free Software
+Foundation's software and to any other program whose authors commit to
+using it. (Some other Free Software Foundation software is covered by
+the GNU Lesser General Public License instead.) You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+this service if you wish), that you receive source code or can get it
+if you want it, that you can change the software or use pieces of it
+in new free programs; and that you know you can do these things.
+
+ To protect your rights, we need to make restrictions that forbid
+anyone to deny you these rights or to ask you to surrender the rights.
+These restrictions translate to certain responsibilities for you if you
+distribute copies of the software, or if you modify it.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must give the recipients all the rights that
+you have. You must make sure that they, too, receive or can get the
+source code. And you must show them these terms so they know their
+rights.
+
+ We protect your rights with two steps: (1) copyright the software, and
+(2) offer you this license which gives you legal permission to copy,
+distribute and/or modify the software.
+
+ Also, for each author's protection and ours, we want to make certain
+that everyone understands that there is no warranty for this free
+software. If the software is modified by someone else and passed on, we
+want its recipients to know that what they have is not the original, so
+that any problems introduced by others will not reflect on the original
+authors' reputations.
+
+ Finally, any free program is threatened constantly by software
+patents. We wish to avoid the danger that redistributors of a free
+program will individually obtain patent licenses, in effect making the
+program proprietary. To prevent this, we have made it clear that any
+patent must be licensed for everyone's free use or not licensed at all.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ GNU GENERAL PUBLIC LICENSE
+ TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
+
+ 0. This License applies to any program or other work which contains
+a notice placed by the copyright holder saying it may be distributed
+under the terms of this General Public License. The "Program", below,
+refers to any such program or work, and a "work based on the Program"
+means either the Program or any derivative work under copyright law:
+that is to say, a work containing the Program or a portion of it,
+either verbatim or with modifications and/or translated into another
+language. (Hereinafter, translation is included without limitation in
+the term "modification".) Each licensee is addressed as "you".
+
+Activities other than copying, distribution and modification are not
+covered by this License; they are outside its scope. The act of
+running the Program is not restricted, and the output from the Program
+is covered only if its contents constitute a work based on the
+Program (independent of having been made by running the Program).
+Whether that is true depends on what the Program does.
+
+ 1. You may copy and distribute verbatim copies of the Program's
+source code as you receive it, in any medium, provided that you
+conspicuously and appropriately publish on each copy an appropriate
+copyright notice and disclaimer of warranty; keep intact all the
+notices that refer to this License and to the absence of any warranty;
+and give any other recipients of the Program a copy of this License
+along with the Program.
+
+You may charge a fee for the physical act of transferring a copy, and
+you may at your option offer warranty protection in exchange for a fee.
+
+ 2. You may modify your copy or copies of the Program or any portion
+of it, thus forming a work based on the Program, and copy and
+distribute such modifications or work under the terms of Section 1
+above, provided that you also meet all of these conditions:
+
+ a) You must cause the modified files to carry prominent notices
+ stating that you changed the files and the date of any change.
+
+ b) You must cause any work that you distribute or publish, that in
+ whole or in part contains or is derived from the Program or any
+ part thereof, to be licensed as a whole at no charge to all third
+ parties under the terms of this License.
+
+ c) If the modified program normally reads commands interactively
+ when run, you must cause it, when started running for such
+ interactive use in the most ordinary way, to print or display an
+ announcement including an appropriate copyright notice and a
+ notice that there is no warranty (or else, saying that you provide
+ a warranty) and that users may redistribute the program under
+ these conditions, and telling the user how to view a copy of this
+ License. (Exception: if the Program itself is interactive but
+ does not normally print such an announcement, your work based on
+ the Program is not required to print an announcement.)
+
+These requirements apply to the modified work as a whole. If
+identifiable sections of that work are not derived from the Program,
+and can be reasonably considered independent and separate works in
+themselves, then this License, and its terms, do not apply to those
+sections when you distribute them as separate works. But when you
+distribute the same sections as part of a whole which is a work based
+on the Program, the distribution of the whole must be on the terms of
+this License, whose permissions for other licensees extend to the
+entire whole, and thus to each and every part regardless of who wrote it.
+
+Thus, it is not the intent of this section to claim rights or contest
+your rights to work written entirely by you; rather, the intent is to
+exercise the right to control the distribution of derivative or
+collective works based on the Program.
+
+In addition, mere aggregation of another work not based on the Program
+with the Program (or with a work based on the Program) on a volume of
+a storage or distribution medium does not bring the other work under
+the scope of this License.
+
+ 3. You may copy and distribute the Program (or a work based on it,
+under Section 2) in object code or executable form under the terms of
+Sections 1 and 2 above provided that you also do one of the following:
+
+ a) Accompany it with the complete corresponding machine-readable
+ source code, which must be distributed under the terms of Sections
+ 1 and 2 above on a medium customarily used for software interchange; or,
+
+ b) Accompany it with a written offer, valid for at least three
+ years, to give any third party, for a charge no more than your
+ cost of physically performing source distribution, a complete
+ machine-readable copy of the corresponding source code, to be
+ distributed under the terms of Sections 1 and 2 above on a medium
+ customarily used for software interchange; or,
+
+ c) Accompany it with the information you received as to the offer
+ to distribute corresponding source code. (This alternative is
+ allowed only for noncommercial distribution and only if you
+ received the program in object code or executable form with such
+ an offer, in accord with Subsection b above.)
+
+The source code for a work means the preferred form of the work for
+making modifications to it. For an executable work, complete source
+code means all the source code for all modules it contains, plus any
+associated interface definition files, plus the scripts used to
+control compilation and installation of the executable. However, as a
+special exception, the source code distributed need not include
+anything that is normally distributed (in either source or binary
+form) with the major components (compiler, kernel, and so on) of the
+operating system on which the executable runs, unless that component
+itself accompanies the executable.
+
+If distribution of executable or object code is made by offering
+access to copy from a designated place, then offering equivalent
+access to copy the source code from the same place counts as
+distribution of the source code, even though third parties are not
+compelled to copy the source along with the object code.
+
+ 4. You may not copy, modify, sublicense, or distribute the Program
+except as expressly provided under this License. Any attempt
+otherwise to copy, modify, sublicense or distribute the Program is
+void, and will automatically terminate your rights under this License.
+However, parties who have received copies, or rights, from you under
+this License will not have their licenses terminated so long as such
+parties remain in full compliance.
+
+ 5. You are not required to accept this License, since you have not
+signed it. However, nothing else grants you permission to modify or
+distribute the Program or its derivative works. These actions are
+prohibited by law if you do not accept this License. Therefore, by
+modifying or distributing the Program (or any work based on the
+Program), you indicate your acceptance of this License to do so, and
+all its terms and conditions for copying, distributing or modifying
+the Program or works based on it.
+
+ 6. Each time you redistribute the Program (or any work based on the
+Program), the recipient automatically receives a license from the
+original licensor to copy, distribute or modify the Program subject to
+these terms and conditions. You may not impose any further
+restrictions on the recipients' exercise of the rights granted herein.
+You are not responsible for enforcing compliance by third parties to
+this License.
+
+ 7. If, as a consequence of a court judgment or allegation of patent
+infringement or for any other reason (not limited to patent issues),
+conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot
+distribute so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you
+may not distribute the Program at all. For example, if a patent
+license would not permit royalty-free redistribution of the Program by
+all those who receive copies directly or indirectly through you, then
+the only way you could satisfy both it and this License would be to
+refrain entirely from distribution of the Program.
+
+If any portion of this section is held invalid or unenforceable under
+any particular circumstance, the balance of the section is intended to
+apply and the section as a whole is intended to apply in other
+circumstances.
+
+It is not the purpose of this section to induce you to infringe any
+patents or other property right claims or to contest validity of any
+such claims; this section has the sole purpose of protecting the
+integrity of the free software distribution system, which is
+implemented by public license practices. Many people have made
+generous contributions to the wide range of software distributed
+through that system in reliance on consistent application of that
+system; it is up to the author/donor to decide if he or she is willing
+to distribute software through any other system and a licensee cannot
+impose that choice.
+
+This section is intended to make thoroughly clear what is believed to
+be a consequence of the rest of this License.
+
+ 8. If the distribution and/or use of the Program is restricted in
+certain countries either by patents or by copyrighted interfaces, the
+original copyright holder who places the Program under this License
+may add an explicit geographical distribution limitation excluding
+those countries, so that distribution is permitted only in or among
+countries not thus excluded. In such case, this License incorporates
+the limitation as if written in the body of this License.
+
+ 9. The Free Software Foundation may publish revised and/or new versions
+of the General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+Each version is given a distinguishing version number. If the Program
+specifies a version number of this License which applies to it and "any
+later version", you have the option of following the terms and conditions
+either of that version or of any later version published by the Free
+Software Foundation. If the Program does not specify a version number of
+this License, you may choose any version ever published by the Free Software
+Foundation.
+
+ 10. If you wish to incorporate parts of the Program into other free
+programs whose distribution conditions are different, write to the author
+to ask for permission. For software which is copyrighted by the Free
+Software Foundation, write to the Free Software Foundation; we sometimes
+make exceptions for this. Our decision will be guided by the two goals
+of preserving the free status of all derivatives of our free software and
+of promoting the sharing and reuse of software generally.
+
+ NO WARRANTY
+
+ 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
+FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
+OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
+PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
+OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
+TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
+PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
+REPAIR OR CORRECTION.
+
+ 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
+REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
+INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
+OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
+TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
+YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
+PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
+POSSIBILITY OF SUCH DAMAGES.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+convey the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+ <one line to give the program's name and a brief idea of what it does.>
+ Copyright (C) <year> <name of author>
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License along
+ with this program; if not, write to the Free Software Foundation, Inc.,
+ 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+Also add information on how to contact you by electronic and paper mail.
+
+If the program is interactive, make it output a short notice like this
+when it starts in an interactive mode:
+
+ Gnomovision version 69, Copyright (C) year name of author
+ Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, the commands you use may
+be called something other than `show w' and `show c'; they could even be
+mouse-clicks or menu items--whatever suits your program.
+
+You should also get your employer (if you work as a programmer) or your
+school, if any, to sign a "copyright disclaimer" for the program, if
+necessary. Here is a sample; alter the names:
+
+ Yoyodyne, Inc., hereby disclaims all copyright interest in the program
+ `Gnomovision' (which makes passes at compilers) written by James Hacker.
+
+ <signature of Ty Coon>, 1 April 1989
+ Ty Coon, President of Vice
+
+This General Public License does not permit incorporating your program into
+proprietary programs. If your program is a subroutine library, you may
+consider it more useful to permit linking proprietary applications with the
+library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License.
Added: XoopsModules/waiting/trunk/waiting/docs/readme.txt
===================================================================
--- XoopsModules/waiting/trunk/waiting/docs/readme.txt (rev 0)
+++ XoopsModules/waiting/trunk/waiting/docs/readme.txt 2012-01-26 23:22:53 UTC (rev 8820)
@@ -0,0 +1,100 @@
+README
+===========
+
+[xlang:en]
+
+- WAITING MODULE -
+
+This module offers you an extensible waiting contents block into your XOOPS.
+
+The original XOOPS block of "Waiting Contents" works only for official modules,
+and is no longer extensible.
+It is nonsense to have to do Hack for yourself when you use 3rd party modules.
+
+By installing this module and adding proper plug-ins only,
+you as webmaster can confirm any approval waitings of any modules at one view.
+
+
+NEW FEATURE in 0.8
+
+- plug-ins for waiting can be placed inside module's directory
+
+If you as module developper put your plug-in as modules/(your module)/include/waiting.plugin.php, waiting module will find it.
+The plugin in module's directory has higher prioriy than the plugin in waiting's directory.
+
+- multiple waitings can be returned from single function
+
+You can return waitings multiplly with the format as follows:
+[code]
+array(
+ array("adminlink"=>URL",
+ "pendingnum"=>NUM,
+ "lang_linkname"=>LINKNAME),
+ array("adminlink"=>URL",
+ "pendingnum"=>NUM,
+ "lang_linkname"=>LINKNAME),
+ array("adminlink"=>URL",
+ "pendingnum"=>NUM,
+ "lang_linkname"=>LINKNAME)
+)
+[/code]
+
+If you'll return just one waiting, this format is also ok.
+[code]
+ array("adminlink"=>URL",
+ "pendingnum"=>NUM,
+ "lang_linkname"=>LINKNAME)
+[/code]
+It will be deprecated functions named b_waiting_(dirname)_X
+
+- modified the template as watings belonging modules
+
+This modification makes that plug-ins need not to return the information of the module. It is enough to display short message like "submitted".
+
+
+
+This module is made by Ryuji (http://ryus.co.jp/)
+If you can read Japanese, let's visit Ryuji's site!
+
+
+[/xlang:en]
+
+PLUGINS:
+
+-addresses (by gruessle)
+-Agenda-X (by GIJOE)
+-AMS (by karedokx)
+-articles (by twilo)
+-catads (by Alain01)
+-CBB (by gravies)
+-extcal (by alain01)
+-MyAds (by Tom_G3X)
+-myAlbum-P (by GIJOE) multiple
+-mydownloads (by GIJOE)
+-mylinks(by GIJOE)
+-newbb2 (by gravies)
+-news (by GIJOE)
+-PDlinks (by flying.tux)
+-PDdownloads (by flying.tux)
+-piCal (by GIJOE) (>=0.8 has the module side plugin)
+-pico (by GIJOE) (D3 module side plugin)
+-popnupblog (by dashboard)
+-simpleblog (by kousuke)
+-smartfaq (by mariuss)
+-smartpartner (by mariuss)
+-smartsection (by flying.tux)
+-system -- comments (by GIJOE)
+-tutorials (by GIJOE)
+-weblinks (by Tom_G3X)
+-WF-downloads (by coldfire, flying.tux)
+-WF-links (by flying.tux)
+-WF-Sections (by GIJOE)
+-WordBook (by AgD)
+-WordPress ME (by nobunobu) multiple (>=0.5 has the module side plugin)
+-xcGallery (by nao-pon)
+-xDirectory (by GIJOE)
+-xfguestbook (by karedokx)
+-xfsection (by Bezoops)
+-xyp4all (by flying.tux)
+-yomi search (by nao-pon)
+-eguide (by tes)
\ No newline at end of file
Modified: XoopsModules/waiting/trunk/waiting/images/waiting_slogo.png
===================================================================
(Binary files differ)
Modified: XoopsModules/waiting/trunk/waiting/language/english/admin.php
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/english/admin.php 2012-01-26 23:18:38 UTC (rev 8819)
+++ XoopsModules/waiting/trunk/waiting/language/english/admin.php 2012-01-26 23:22:53 UTC (rev 8820)
@@ -11,4 +11,8 @@
define('_AM_WAITING_PLUGINLIST', 'Plugin Checker');
define('_AM_WAITING_PLUGINLIST_DESC', '<b>module:</b> using the original plugin included in the module<br /><b>built-in:</b> using the bundled plugin in Waiting Contents Extensible<br /><b>Blank:</b> no plugins found');
-?>
\ No newline at end of file
+//ModuleAdmin
+define('_AM_WAITING_MISSING','Error: The ModuleAdmin class is missing. Please install the ModuleAdmin Class into /Frameworks (see /docs/readme.txt)');
+
+// Text for Admin footer
+define("_AM_WAITING_FOOTER", "<div class='center smallsmall italic pad5'>Waiting is maintained by the <a class='tooltip' rel='external' href='http://xoops.org/' title='Visit XOOPS Community'>XOOPS Community</a></div>");
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/language/english/help/help.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/english/help/help.html (rev 0)
+++ XoopsModules/waiting/trunk/waiting/language/english/help/help.html 2012-01-26 23:22:53 UTC (rev 8820)
@@ -0,0 +1,36 @@
+<div id="help-template" class="outer">
+ <h1 class="head">Help:
+ <a class="ui-corner-all tooltip" href="<{$xoops_url}>/modules/waiting/admin/index.php"
+ title="Back to the administration of SmallWorld"> Wating Block
+ <img src="<{xoAdminIcons home.png}>"
+ alt="Back to the Administration of Waiting Block"/>
+ </a></h1>
+
+ <h4 class="odd">Description</h4>
+
+ <p class="even">This module offers you an extensible waiting contents block into your XOOPS.<br/> <br/>
+
+ By installing this module and adding proper plug-ins only, you as webmaster can confirm any approval waitings of any modules at one view.
+ </p>
+
+ <h4 class="odd">Install/uninstall</h4> <br/>
+
+ No special measures necessary, follow the standard installation process – extract the module folder into the
+ ../modules directory. Install the
+ module through Admin -> System Module -> Modules.<br/> <br/>
+
+ <h4 class="odd">Operations</h4> <br/>
+
+ Detailed instructions on configuring the access rights for user groups are available in the
+ <a href="http://goo.gl/adT2i">XOOPS Operations Manual</a><br/> <br/>
+
+
+ <h4 class="odd">Tutorial</h4>
+
+ <p class="even">There is no tutorial available at this time</p>
+
+ <h4 class="odd">Ask Questions</h4>
+
+ <p class="even">If there are still questions or errors please post at the <a href="http://www.xoops.org/modules/newbb">Xoops support Forum</a></p>
+
+</div>
\ No newline at end of file
Added: XoopsModules/waiting/trunk/waiting/language/english/help/index.html
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/english/help/index.html (rev 0)
+++ XoopsModules/waiting/trunk/waiting/language/english/help/index.html 2012-01-26 23:22:53 UTC (rev 8820)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Modified: XoopsModules/waiting/trunk/waiting/language/english/modinfo.php
===================================================================
--- XoopsModules/waiting/trunk/waiting/language/english/modinfo.php 2012-01-26 23:18:38 UTC (rev 8819)
+++ XoopsModules/waiting/trunk/waiting/language/english/modinfo.php 2012-01-26 23:22:53 UTC (rev 8820)
@@ -6,7 +6,7 @@
//
// The name of this module
-define("_MI_WAITING_NAME","Waiting Contents Extensible");
+define("_MI_WAITING_NAME","Waiting Contents");
// A brief description of this module
define("_MI_WAITING_DESC","Displays a block of waiting contents for 3rd party modules.");
@@ -14,5 +14,6 @@
// Names of blocks for this module (Not all module has blocks)
define("_MI_WAITING_BNAME1", "Waiting Contents Ext");
-
-?>
\ No newline at end of file
+define("_MI_WAITING_MENU_HOME", "Home");
+define("_MI_WAITING_MENU_ABOUT", "About");
+define("_MI_WAITING_MENU_VIEW", "Plugins");
Modified: XoopsModules/waiting/trunk/waiting/xoops_version.php
===================================================================
--- XoopsModules/waiting/trunk/waiting/xoops_version.php 2012-01-26 23:18:38 UTC (rev 8819)
+++ XoopsModules/waiting/trunk/waiting/xoops_version.php 2012-01-26 23:22:53 UTC (rev 8820)
@@ -30,18 +30,37 @@
// ------------------------------------------------------------------------- //
$modversion['name'] = _MI_WAITING_NAME;
-$modversion['version'] = 0.95;
+$modversion['version'] = 0.96;
$modversion['description'] = _MI_WAITING_DESC;
-$modversion['author'] = "";
+$modversion['author'] = "Ryuji (http://ryus.co.jp/)";
+$modversion['author_website_url'] = "http://ryus.co.jp";
$modversion['credits'] = "Ryus";
-$modversion['help'] = "";
-$modversion['license'] = "GPL see LICENSE";
+$modversion['help'] = 'page=help';
+$modversion['license'] = 'GNU GPL 2.0';
+$modversion['license_url'] = "www.gnu.org/licenses/gpl-2.0.html/";
$modversion['official'] = 0;
$modversion['image'] = "images/waiting_slogo.png";
$modversion['dirname'] = "waiting";
+$modversion['dirmoduleadmin'] = '/Frameworks/moduleclasses/moduleadmin';
+$modversion['icons16'] = '../../Frameworks/moduleclasses/icons/16';
+$modversion['icons32'] = '../../Frameworks/moduleclasses/icons/32';
+
+
+//about
+$modversion['release_date'] = '2012/1/25';
+$modversion["module_website_url"] = "http://www.xoops.org/";
+$modversion["module_website_name"] = "XOOPS";
+$modversion["module_status"] = "Beta";
+$modversion['min_php']='5.2';
+$modversion['min_xoops']="2.5";
+$modversion['min_admin']='1.1';
+$modversion['min_db']= array('mysql'=>'5.0.7', 'mysqli'=>'5.0.7');
+
// Admin things
-$modversion['hasAdmin'] = 0;
+$modversion['hasAdmin'] = 1;
+$modversion['system_menu'] = 1;
+$modversion['adminmenu'] = "admin/menu.php";
$modversion['adminindex'] = "admin/index.php";
// Templates
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <be...@us...> - 2012-01-26 23:18:49
|
Revision: 8819
http://xoops.svn.sourceforge.net/xoops/?rev=8819&view=rev
Author: beckmi
Date: 2012-01-26 23:18:38 +0000 (Thu, 26 Jan 2012)
Log Message:
-----------
Adding Waiting Block module
Added Paths:
-----------
XoopsModules/waiting/
XoopsModules/waiting/branches/
XoopsModules/waiting/releases/
XoopsModules/waiting/releases/0.95/
XoopsModules/waiting/releases/0.95/waiting/
XoopsModules/waiting/releases/0.95/waiting/README
XoopsModules/waiting/releases/0.95/waiting/admin/
XoopsModules/waiting/releases/0.95/waiting/admin/index.php
XoopsModules/waiting/releases/0.95/waiting/blocks/
XoopsModules/waiting/releases/0.95/waiting/blocks/.htaccess
XoopsModules/waiting/releases/0.95/waiting/blocks/index.html
XoopsModules/waiting/releases/0.95/waiting/blocks/waiting_waiting.php
XoopsModules/waiting/releases/0.95/waiting/images/
XoopsModules/waiting/releases/0.95/waiting/images/folder16.gif
XoopsModules/waiting/releases/0.95/waiting/images/index.html
XoopsModules/waiting/releases/0.95/waiting/images/waiting_slogo.png
XoopsModules/waiting/releases/0.95/waiting/include/
XoopsModules/waiting/releases/0.95/waiting/include/.htaccess
XoopsModules/waiting/releases/0.95/waiting/include/functions.php
XoopsModules/waiting/releases/0.95/waiting/include/index.html
XoopsModules/waiting/releases/0.95/waiting/include/updateblock.inc.php
XoopsModules/waiting/releases/0.95/waiting/language/
XoopsModules/waiting/releases/0.95/waiting/language/.htaccess
XoopsModules/waiting/releases/0.95/waiting/language/english/
XoopsModules/waiting/releases/0.95/waiting/language/english/admin.php
XoopsModules/waiting/releases/0.95/waiting/language/english/blocks.php
XoopsModules/waiting/releases/0.95/waiting/language/english/index.html
XoopsModules/waiting/releases/0.95/waiting/language/english/modinfo.php
XoopsModules/waiting/releases/0.95/waiting/language/english/plugins.php
XoopsModules/waiting/releases/0.95/waiting/language/french/
XoopsModules/waiting/releases/0.95/waiting/language/french/admin.php
XoopsModules/waiting/releases/0.95/waiting/language/french/blocks.php
XoopsModules/waiting/releases/0.95/waiting/language/french/index.html
XoopsModules/waiting/releases/0.95/waiting/language/french/modinfo.php
XoopsModules/waiting/releases/0.95/waiting/language/french/plugins.php
XoopsModules/waiting/releases/0.95/waiting/language/index.html
XoopsModules/waiting/releases/0.95/waiting/language/italian/
XoopsModules/waiting/releases/0.95/waiting/language/italian/admin.php
XoopsModules/waiting/releases/0.95/waiting/language/italian/blocks.php
XoopsModules/waiting/releases/0.95/waiting/language/italian/index.html
XoopsModules/waiting/releases/0.95/waiting/language/italian/modinfo.php
XoopsModules/waiting/releases/0.95/waiting/language/italian/plugins.php
XoopsModules/waiting/releases/0.95/waiting/language/ja_utf8/
XoopsModules/waiting/releases/0.95/waiting/language/ja_utf8/admin.php
XoopsModules/waiting/releases/0.95/waiting/language/ja_utf8/blocks.php
XoopsModules/waiting/releases/0.95/waiting/language/ja_utf8/modinfo.php
XoopsModules/waiting/releases/0.95/waiting/language/ja_utf8/plugins.php
XoopsModules/waiting/releases/0.95/waiting/language/japanese/
XoopsModules/waiting/releases/0.95/waiting/language/japanese/admin.php
XoopsModules/waiting/releases/0.95/waiting/language/japanese/blocks.php
XoopsModules/waiting/releases/0.95/waiting/language/japanese/index.html
XoopsModules/waiting/releases/0.95/waiting/language/japanese/modinfo.php
XoopsModules/waiting/releases/0.95/waiting/language/japanese/plugins.php
XoopsModules/waiting/releases/0.95/waiting/language/persian/
XoopsModules/waiting/releases/0.95/waiting/language/persian/admin.php
XoopsModules/waiting/releases/0.95/waiting/language/persian/blocks.php
XoopsModules/waiting/releases/0.95/waiting/language/persian/index.html
XoopsModules/waiting/releases/0.95/waiting/language/persian/modinfo.php
XoopsModules/waiting/releases/0.95/waiting/language/persian/plugins.php
XoopsModules/waiting/releases/0.95/waiting/language/portuguesebr/
XoopsModules/waiting/releases/0.95/waiting/language/portuguesebr/admin.php
XoopsModules/waiting/releases/0.95/waiting/language/portuguesebr/blocks.php
XoopsModules/waiting/releases/0.95/waiting/language/portuguesebr/index.html
XoopsModules/waiting/releases/0.95/waiting/language/portuguesebr/modinfo.php
XoopsModules/waiting/releases/0.95/waiting/language/portuguesebr/plugins.php
XoopsModules/waiting/releases/0.95/waiting/language/spanish/
XoopsModules/waiting/releases/0.95/waiting/language/spanish/admin.php
XoopsModules/waiting/releases/0.95/waiting/language/spanish/blocks.php
XoopsModules/waiting/releases/0.95/waiting/language/spanish/index.html
XoopsModules/waiting/releases/0.95/waiting/language/spanish/modinfo.php
XoopsModules/waiting/releases/0.95/waiting/language/spanish/plugins.php
XoopsModules/waiting/releases/0.95/waiting/language/swedish/
XoopsModules/waiting/releases/0.95/waiting/language/swedish/admin.php
XoopsModules/waiting/releases/0.95/waiting/language/swedish/blocks.php
XoopsModules/waiting/releases/0.95/waiting/language/swedish/index.html
XoopsModules/waiting/releases/0.95/waiting/language/swedish/modinfo.php
XoopsModules/waiting/releases/0.95/waiting/language/swedish/plugins.php
XoopsModules/waiting/releases/0.95/waiting/plugins/
XoopsModules/waiting/releases/0.95/waiting/plugins/.htaccess
XoopsModules/waiting/releases/0.95/waiting/plugins/AMS.php
XoopsModules/waiting/releases/0.95/waiting/plugins/PDdownloads.php
XoopsModules/waiting/releases/0.95/waiting/plugins/PDlinks.php
XoopsModules/waiting/releases/0.95/waiting/plugins/addresses.php
XoopsModules/waiting/releases/0.95/waiting/plugins/agendax.php
XoopsModules/waiting/releases/0.95/waiting/plugins/articles.php
XoopsModules/waiting/releases/0.95/waiting/plugins/catads.php
XoopsModules/waiting/releases/0.95/waiting/plugins/eguide.php
XoopsModules/waiting/releases/0.95/waiting/plugins/extcal.php
XoopsModules/waiting/releases/0.95/waiting/plugins/index.html
XoopsModules/waiting/releases/0.95/waiting/plugins/myAds.php
XoopsModules/waiting/releases/0.95/waiting/plugins/myalbum.php
XoopsModules/waiting/releases/0.95/waiting/plugins/mydownloads.php
XoopsModules/waiting/releases/0.95/waiting/plugins/mylinks.php
XoopsModules/waiting/releases/0.95/waiting/plugins/newbb.php
XoopsModules/waiting/releases/0.95/waiting/plugins/news.php
XoopsModules/waiting/releases/0.95/waiting/plugins/piCal.php
XoopsModules/waiting/releases/0.95/waiting/plugins/popnupblog.php
XoopsModules/waiting/releases/0.95/waiting/plugins/recette.php
XoopsModules/waiting/releases/0.95/waiting/plugins/simpleblog.php
XoopsModules/waiting/releases/0.95/waiting/plugins/smartfaq.php
XoopsModules/waiting/releases/0.95/waiting/plugins/smartpartner.php
XoopsModules/waiting/releases/0.95/waiting/plugins/smartsection.php
XoopsModules/waiting/releases/0.95/waiting/plugins/system.php
XoopsModules/waiting/releases/0.95/waiting/plugins/tutorials.php
XoopsModules/waiting/releases/0.95/waiting/plugins/weblinks.php
XoopsModules/waiting/releases/0.95/waiting/plugins/wfdownloads.php
XoopsModules/waiting/releases/0.95/waiting/plugins/wflinks.php
XoopsModules/waiting/releases/0.95/waiting/plugins/wfsection.php
XoopsModules/waiting/releases/0.95/waiting/plugins/wordbook.php
XoopsModules/waiting/releases/0.95/waiting/plugins/wordpress.php
XoopsModules/waiting/releases/0.95/waiting/plugins/xcgal.php
XoopsModules/waiting/releases/0.95/waiting/plugins/xdirectory.php
XoopsModules/waiting/releases/0.95/waiting/plugins/xfguestbook.php
XoopsModules/waiting/releases/0.95/waiting/plugins/xfsection.php
XoopsModules/waiting/releases/0.95/waiting/plugins/xyp4all.php
XoopsModules/waiting/releases/0.95/waiting/plugins/yomi.php
XoopsModules/waiting/releases/0.95/waiting/templates/
XoopsModules/waiting/releases/0.95/waiting/templates/.htaccess
XoopsModules/waiting/releases/0.95/waiting/templates/blocks/
XoopsModules/waiting/releases/0.95/waiting/templates/blocks/index.html
XoopsModules/waiting/releases/0.95/waiting/templates/blocks/waiting_block_waiting.html
XoopsModules/waiting/releases/0.95/waiting/templates/index.html
XoopsModules/waiting/releases/0.95/waiting/xoops_version.php
XoopsModules/waiting/trunk/
XoopsModules/waiting/trunk/waiting/
XoopsModules/waiting/trunk/waiting/README
XoopsModules/waiting/trunk/waiting/admin/
XoopsModules/waiting/trunk/waiting/admin/index.php
XoopsModules/waiting/trunk/waiting/blocks/
XoopsModules/waiting/trunk/waiting/blocks/.htaccess
XoopsModules/waiting/trunk/waiting/blocks/index.html
XoopsModules/waiting/trunk/waiting/blocks/waiting_waiting.php
XoopsModules/waiting/trunk/waiting/images/
XoopsModules/waiting/trunk/waiting/images/folder16.gif
XoopsModules/waiting/trunk/waiting/images/index.html
XoopsModules/waiting/trunk/waiting/images/waiting_slogo.png
XoopsModules/waiting/trunk/waiting/include/
XoopsModules/waiting/trunk/waiting/include/.htaccess
XoopsModules/waiting/trunk/waiting/include/functions.php
XoopsModules/waiting/trunk/waiting/include/index.html
XoopsModules/waiting/trunk/waiting/include/updateblock.inc.php
XoopsModules/waiting/trunk/waiting/language/
XoopsModules/waiting/trunk/waiting/language/.htaccess
XoopsModules/waiting/trunk/waiting/language/english/
XoopsModules/waiting/trunk/waiting/language/english/admin.php
XoopsModules/waiting/trunk/waiting/language/english/blocks.php
XoopsModules/waiting/trunk/waiting/language/english/index.html
XoopsModules/waiting/trunk/waiting/language/english/modinfo.php
XoopsModules/waiting/trunk/waiting/language/english/plugins.php
XoopsModules/waiting/trunk/waiting/language/french/
XoopsModules/waiting/trunk/waiting/language/french/admin.php
XoopsModules/waiting/trunk/waiting/language/french/blocks.php
XoopsModules/waiting/trunk/waiting/language/french/index.html
XoopsModules/waiting/trunk/waiting/language/french/modinfo.php
XoopsModules/waiting/trunk/waiting/language/french/plugins.php
XoopsModules/waiting/trunk/waiting/language/index.html
XoopsModules/waiting/trunk/waiting/language/italian/
XoopsModules/waiting/trunk/waiting/language/italian/admin.php
XoopsModules/waiting/trunk/waiting/language/italian/blocks.php
XoopsModules/waiting/trunk/waiting/language/italian/index.html
XoopsModules/waiting/trunk/waiting/language/italian/modinfo.php
XoopsModules/waiting/trunk/waiting/language/italian/plugins.php
XoopsModules/waiting/trunk/waiting/language/ja_utf8/
XoopsModules/waiting/trunk/waiting/language/ja_utf8/admin.php
XoopsModules/waiting/trunk/waiting/language/ja_utf8/blocks.php
XoopsModules/waiting/trunk/waiting/language/ja_utf8/modinfo.php
XoopsModules/waiting/trunk/waiting/language/ja_utf8/plugins.php
XoopsModules/waiting/trunk/waiting/language/japanese/
XoopsModules/waiting/trunk/waiting/language/japanese/admin.php
XoopsModules/waiting/trunk/waiting/language/japanese/blocks.php
XoopsModules/waiting/trunk/waiting/language/japanese/index.html
XoopsModules/waiting/trunk/waiting/language/japanese/modinfo.php
XoopsModules/waiting/trunk/waiting/language/japanese/plugins.php
XoopsModules/waiting/trunk/waiting/language/persian/
XoopsModules/waiting/trunk/waiting/language/persian/admin.php
XoopsModules/waiting/trunk/waiting/language/persian/blocks.php
XoopsModules/waiting/trunk/waiting/language/persian/index.html
XoopsModules/waiting/trunk/waiting/language/persian/modinfo.php
XoopsModules/waiting/trunk/waiting/language/persian/plugins.php
XoopsModules/waiting/trunk/waiting/language/portuguesebr/
XoopsModules/waiting/trunk/waiting/language/portuguesebr/admin.php
XoopsModules/waiting/trunk/waiting/language/portuguesebr/blocks.php
XoopsModules/waiting/trunk/waiting/language/portuguesebr/index.html
XoopsModules/waiting/trunk/waiting/language/portuguesebr/modinfo.php
XoopsModules/waiting/trunk/waiting/language/portuguesebr/plugins.php
XoopsModules/waiting/trunk/waiting/language/spanish/
XoopsModules/waiting/trunk/waiting/language/spanish/admin.php
XoopsModules/waiting/trunk/waiting/language/spanish/blocks.php
XoopsModules/waiting/trunk/waiting/language/spanish/index.html
XoopsModules/waiting/trunk/waiting/language/spanish/modinfo.php
XoopsModules/waiting/trunk/waiting/language/spanish/plugins.php
XoopsModules/waiting/trunk/waiting/language/swedish/
XoopsModules/waiting/trunk/waiting/language/swedish/admin.php
XoopsModules/waiting/trunk/waiting/language/swedish/blocks.php
XoopsModules/waiting/trunk/waiting/language/swedish/index.html
XoopsModules/waiting/trunk/waiting/language/swedish/modinfo.php
XoopsModules/waiting/trunk/waiting/language/swedish/plugins.php
XoopsModules/waiting/trunk/waiting/plugins/
XoopsModules/waiting/trunk/waiting/plugins/.htaccess
XoopsModules/waiting/trunk/waiting/plugins/AMS.php
XoopsModules/waiting/trunk/waiting/plugins/PDdownloads.php
XoopsModules/waiting/trunk/waiting/plugins/PDlinks.php
XoopsModules/waiting/trunk/waiting/plugins/addresses.php
XoopsModules/waiting/trunk/waiting/plugins/agendax.php
XoopsModules/waiting/trunk/waiting/plugins/articles.php
XoopsModules/waiting/trunk/waiting/plugins/catads.php
XoopsModules/waiting/trunk/waiting/plugins/eguide.php
XoopsModules/waiting/trunk/waiting/plugins/extcal.php
XoopsModules/waiting/trunk/waiting/plugins/index.html
XoopsModules/waiting/trunk/waiting/plugins/myAds.php
XoopsModules/waiting/trunk/waiting/plugins/myalbum.php
XoopsModules/waiting/trunk/waiting/plugins/mydownloads.php
XoopsModules/waiting/trunk/waiting/plugins/mylinks.php
XoopsModules/waiting/trunk/waiting/plugins/newbb.php
XoopsModules/waiting/trunk/waiting/plugins/news.php
XoopsModules/waiting/trunk/waiting/plugins/piCal.php
XoopsModules/waiting/trunk/waiting/plugins/popnupblog.php
XoopsModules/waiting/trunk/waiting/plugins/recette.php
XoopsModules/waiting/trunk/waiting/plugins/simpleblog.php
XoopsModules/waiting/trunk/waiting/plugins/smartfaq.php
XoopsModules/waiting/trunk/waiting/plugins/smartpartner.php
XoopsModules/waiting/trunk/waiting/plugins/smartsection.php
XoopsModules/waiting/trunk/waiting/plugins/system.php
XoopsModules/waiting/trunk/waiting/plugins/tutorials.php
XoopsModules/waiting/trunk/waiting/plugins/weblinks.php
XoopsModules/waiting/trunk/waiting/plugins/wfdownloads.php
XoopsModules/waiting/trunk/waiting/plugins/wflinks.php
XoopsModules/waiting/trunk/waiting/plugins/wfsection.php
XoopsModules/waiting/trunk/waiting/plugins/wordbook.php
XoopsModules/waiting/trunk/waiting/plugins/wordpress.php
XoopsModules/waiting/trunk/waiting/plugins/xcgal.php
XoopsModules/waiting/trunk/waiting/plugins/xdirectory.php
XoopsModules/waiting/trunk/waiting/plugins/xfguestbook.php
XoopsModules/waiting/trunk/waiting/plugins/xfsection.php
XoopsModules/waiting/trunk/waiting/plugins/xyp4all.php
XoopsModules/waiting/trunk/waiting/plugins/yomi.php
XoopsModules/waiting/trunk/waiting/templates/
XoopsModules/waiting/trunk/waiting/templates/.htaccess
XoopsModules/waiting/trunk/waiting/templates/blocks/
XoopsModules/waiting/trunk/waiting/templates/blocks/index.html
XoopsModules/waiting/trunk/waiting/templates/blocks/waiting_block_waiting.html
XoopsModules/waiting/trunk/waiting/templates/index.html
XoopsModules/waiting/trunk/waiting/xoops_version.php
Added: XoopsModules/waiting/releases/0.95/waiting/README
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/README (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/README 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,291 @@
+[xlang:en]
+
+- WAITING MODULE -
+
+This module offers you an extensible waiting contents block into your XOOPS.
+
+The original XOOPS block of "Waiting Contents" works only for official modules,
+and is no longer extensible.
+It is nonsense to have to do Hack for yourself when you use 3rd party modules.
+
+By installing this module and adding proper plug-ins only,
+you as webmaster can confirm any approval waitings of any modules at one view.
+
+
+NEW FEATURE in 0.8
+
+- plug-ins for waiting can be placed inside module's directory
+
+If you as module developper put your plug-in as modules/(your module)/include/waiting.plugin.php, waiting module will find it.
+The plugin in module's directory has higher prioriy than the plugin in waiting's directory.
+
+- multiple waitings can be returned from single function
+
+You can return waitings multiplly with the format as follows:
+[code]
+array(
+ array("adminlink"=>URL",
+ "pendingnum"=>NUM,
+ "lang_linkname"=>LINKNAME),
+ array("adminlink"=>URL",
+ "pendingnum"=>NUM,
+ "lang_linkname"=>LINKNAME),
+ array("adminlink"=>URL",
+ "pendingnum"=>NUM,
+ "lang_linkname"=>LINKNAME)
+)
+[/code]
+
+If you'll return just one waiting, this format is also ok.
+[code]
+ array("adminlink"=>URL",
+ "pendingnum"=>NUM,
+ "lang_linkname"=>LINKNAME)
+[/code]
+It will be deprecated functions named b_waiting_(dirname)_X
+
+- modified the template as watings belonging modules
+
+This modification makes that plug-ins need not to return the information of the module. It is enough to display short message like "submitted".
+
+
+
+This module is made by Ryuji (http://ryus.co.jp/)
+If you can read Japanese, let's visit Ryuji's site!
+
+
+[/xlang:en]
+[xlang:ja]
+
+waiting\xA5⥸\xA5塼\xA5\xEB
+
+\xB8\xB5\xA4\xCFRyuji\xA4\xB5\xA4\xF3\xBA\xEE\xA4Υ⥸\xA5塼\xA5\xEB\xA4Ǥ\xB7\xA4\xBF\xA4\xAC\xA1\xA2\xA4\xA4\xA4Ĥδ֤ˤ\xAB\xA5\xE1\xA5\xF3\xA5ƥʥ\xF2\xB0\xFA\xA4\xAD\xBC\x{164C64}\xBF\xA4褦\xA4ʷ\xC1\xA4ˤʤäƤޤ\xB9\xA1\xA3
+http://ryus.co.jp/
+
+*\xB3\xB5\xCD\xD7
+\xA5ץ饰\xA5\xA4\xA5\xF3\xA4dz\xC8ĥ\xB2\xC4ǽ\xA4ʾ\xB5ǧ\xC2Ԥ\xC1\xA5\xB3\xA5\xF3\xA5ƥ\xF3\xA5ĥ֥\xED\xA5å\xAF
+
+\xA5⥸\xA5塼\xA5\xEB\xA4\xF2\xC4ɲä\xB9\xA4뤿\xA4Ӥˡ\xA2\xCB\xDC\xC2Τξ\xB5ǧ\xC2Ԥ\xC1\xA5\xB3\xA5\xF3\xA5ƥ\xF3\xA5ĥ֥\xED\xA5å\xAF\xA4˼\xEA\xA4\xF2\xC6\xFE\xA4\xEC\xA4\xEB\xA4Τϡ\xA2\xA4\xA2\xA4ޤ\xEA\xA4ˤ\xE2\xC8\xF3\xB8\xFAΨ\xA4\xC0\xA4Ȼפ\xA4\xBBϤ\xA4ΤǺ\xEE\xC0\xAE\xA4\xB7\xA4ޤ\xB7\xA4\xBF\xA1\xA3
+
+
+\xA1\xFC waiting 0.8 \xA4\xAB\xA4\xE9\xA4ο\xB7\xB5\xA1ǽ
+
+\xA1\xA6\xA5⥸\xA5塼\xA5\xEB\xC6\xE2\xA4˥ץ饰\xA5\xA4\xA5\xF3\xA4\xF2\xC3֤\xB1\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4\xBF
+
+\xB3ƥ⥸\xA5塼\xA5\xEB\xBA\xEE\xBCԤ\xB5\xA4\xA2waiting\xA5⥸\xA5塼\xA5\xEB\xA4Υץ饰\xA5\xA4\xA5\xF3\xA4\xE2\xBA\xEE\xC0\xAE\xA4\xB7\xA4Ƥ\xAF\xA4\xEC\xA4뤳\xA4Ȥ\xAC¿\xA4\xA4\xA4Τȡ\xA2ʣ\xC0\xBD\xB2\xC4ǽ\xA5⥸\xA5塼\xA5\xEB\xA4\xCB\xC2б\xFE\xA4\xB9\xA4뤿\xA4\xE1\xA4ˡ\xA2\xB3ƥ⥸\xA5塼\xA5\xEB\xC6\xE2\xA4˥ץ饰\xA5\xA4\xA5\xF3\xA4\xF2\xC3֤\xB1\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4ޤ\xB7\xA4\xBF\xA1\xA3
+
+\xB3ƥ⥸\xA5塼\xA5\xEB\xA4\xCEinclude/waiting.plugin.php \xA4˥ץ饰\xA5\xA4\xA5\xF3\xA4\xF2\xC3֤\xAD\xA1\xA2\xB8\xC0\xB8\xEC\xA5ե\xA1\xA5\xA4\xA5\xEB\xA4ϡ\xA2language/LANG/waiting.php\xA4ˤ\xAA\xA4\xAD\xA4ޤ\xB9\xA1\xA3
+
+\xC6ɤ߹\xFE\xA4\xDFͥ\xC0\xE8\xBD\xE7\xB0̤\xCF
+\xA3\xB1\xA1\xA5\xB3ƥ⥸\xA5塼\xA5\xEB\xC6\xE2\xA4ˤ\xA2\xA4\xEB\xA5ץ饰\xA5\xA4\xA5\xF3
+\xA3\xB2\xA1\xA5waiting\xA5⥸\xA5塼\xA5\xEB\xC6\xE2\xA4ˤ\xA2\xA4\xEB\xA5ץ饰\xA5\xA4\xA5\xF3
+\xA4ȤʤäƤޤ\xB9\xA1\xA3
+
+\xA1\xA6\xA3\xB1\xA4ĤΥ⥸\xA5塼\xA5\xEB\xA4\xC7ʣ\xBF\xF4\xA4ξ\xB5ǧ\xC2Ԥ\xC1\xA4\xF2\xCA֤\xBB\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4\xBF
+
+GIJOE\xA4\xB5\xA4\xF3\xA4\xCEHack\xA4ˤ\xE8\xA4ꡢb_waiting_MOD_NUM\xA4\xF2ʣ\xBF\xF4\xCDѰդ\xB9\xA4뤳\xA4Ȥǡ\xA2ʣ\xBF\xF4\xA4ξ\xB5ǧ\xC2Ԥ\xC1\xA4\xCB\xC2б\xFE\xA4\xB7\xA4Ƥ\xA4\xA4ޤ\xB7\xA4\xBF\xA4\xAC\xA1\xA2\xA4ҤȤĤ\xCEfunction\xA4\xC7\xC2б\xFE\xA4Ǥ\xAD\xA4\xEB\xA4褦\xA4ˤ\xB7\xA4ޤ\xB7\xA4\xBF\xA1\xA3
+
+\xA5ץ饰\xA5\xA4\xA5\xE9\xCA֤\xB9\xA4Ȥ\xAD\xA4ˡ\xA2
+[code]
+array(
+ array("adminlink"=>URL",
+ "pendingnum"=>NUM,
+ "lang_linkname"=>LINKNAME),
+ array("adminlink"=>URL",
+ "pendingnum"=>NUM,
+ "lang_linkname"=>LINKNAME),
+ array("adminlink"=>URL",
+ "pendingnum"=>NUM,a
+ "lang_linkname"=>LINKNAME)
+)
+[/code]
+\xA4Ȥ\xA4\xA4\xA6\xB7\xC1\xA4\xC7\xCA֤äƤ\xAD\xA4\xBF\xA4\xE9ʣ\xBF\x{1248A4}\xEB\xA4\xC8Ƚ\xC3Ǥ\xB7\xA4ޤ\xB9\xA1\xA3
+\xA4ҤȤĤ\xB7\xA4\xAB\xA4ʤ\xA4\xBE\xEC\xB9\xE7\xA4ϡ\xA2\xBA\xA3\xA4ޤ\xC7\xC4̤\xEA
+[code]
+ array("adminlink"=>URL",
+ "pendingnum"=>NUM,
+ "lang_linkname"=>LINKNAME)
+[/code]
+\xA4ǡ\xA2OK\xA4Ǥ\xB9\xA1\xA3
+
+\xA1\xA6 \xA5⥸\xA5塼\xA5\xEB̾\xA4β\xBC\xA4˳ƾ\xB5ǧ\xC2Ԥ\xC1\xA4\xACɽ\xBC\xA8\xA4\xB5\xA4\xEC\xA4\xEB\xA4褦\xA4˥ƥ\xF3\xA5ץ졼\xA5Ȥ\xF2\xCAѹ\xB9\xA4\xB7\xA4\xBF
+
+\xA4\xB3\xA4β\xFE\xCEɤˤ\xE8\xA4ꡢ\xB3ƾ\xB5ǧ\xC2Ԥ\xC1\xA4Υƥ\xAD\xA5\xB9\xA5Ȥˡ\xA2\xA5⥸\xA5塼\xA5\xEB\xA4ξ\xF0\xCA\xF3\xA4\xF2\xB4ޤޤʤ\xAF\xA4\xC6\xCEɤ\xAF\xA4ʤ\xEA\xA4ޤ\xB7\xA4\xBF\xA1\xA3
+\xCE㤨\xA4С\xA2\xA1֥\xC0\xA5\xA6\xA5\xF3\xA5\x{D87C}\xA5ɿ\xB7\xB5\xAC\xC5\xEA\xB9ơפϡֿ\xB7\xB5\xAC\xC5\xEA\xB9ơפ\xC0\xA4\xB1\xA4\xC7OK\xA4Ǥ\xB9\xA1\xA3
+
+[/xlang:ja]
+
+
+
+
+PLUGINS:
+
+-addresses (by gruessle)
+-Agenda-X (by GIJOE)
+-AMS (by karedokx)
+-articles (by twilo)
+-catads (by Alain01)
+-CBB (by gravies)
+-extcal (by alain01)
+-MyAds (by Tom_G3X)
+-myAlbum-P (by GIJOE) multiple
+-mydownloads (by GIJOE)
+-mylinks(by GIJOE)
+-newbb2 (by gravies)
+-news (by GIJOE)
+-PDlinks (by flying.tux)
+-PDdownloads (by flying.tux)
+-piCal (by GIJOE) (>=0.8 has the module side plugin)
+-pico (by GIJOE) (D3 module side plugin)
+-popnupblog (by dashboard)
+-simpleblog (by kousuke)
+-smartfaq (by mariuss)
+-smartpartner (by mariuss)
+-smartsection (by flying.tux)
+-system -- comments (by GIJOE)
+-tutorials (by GIJOE)
+-weblinks (by Tom_G3X)
+-WF-downloads (by coldfire, flying.tux)
+-WF-links (by flying.tux)
+-WF-Sections (by GIJOE)
+-WordBook (by AgD)
+-WordPress ME (by nobunobu) multiple (>=0.5 has the module side plugin)
+-xcGallery (by nao-pon)
+-xDirectory (by GIJOE)
+-xfguestbook (by karedokx)
+-xfsection (by Bezoops)
+-xyp4all (by flying.tux)
+-yomi search (by nao-pon)
+-eguide (by tes)
+
+
+
+
+
+CHANGES:
+
+ver 0.95|
+- added D3 module ready
+- added french (thx marco)
+- added portuguesebr (thx Izzy)
+- added persian (thx stranger) 0.95a
+- a plugin added
+-- eguide (by tes) 0.95b
+- languge files added
+-- ja_utf8 0.95c
+
+ver 0.94b|
+- modified the module icon (thx Argon)
+- 2 pugins added
+-- extcal (thx alain01)
+-- articles (thx twilo)
+
+ver 0.94a|
+- fixed a typo in plugins/yomi.php (thx yshima)
+
+:ver 0.94|
+- removed CRs in some php files
+- a plugin added
+-- XFSection (thx Bezoops)
+
+:ver 0.93|
+- updated Italian (thx flying.tux)
+- a plugin added
+-- SmartPartner (thx mariuss)
+
+:ver 0.92|
+- add SQL cache
+- fixed some typos (thx karedokx)
+- 2 plugin modified
+-- WF-Section (thx karedokx)
+-- catads (thx Alain01)
+- 2 plugins added
+-- WordBook (thx AgD)
+-- recette (thx karedokx)
+
+:ver 0.91|
+- updated Italian (thx flying.tux)
+
+:ver 0.90|
+- modified the structure of the directory for plugins
+- modified system plugin (thx gravies)
+- 3 plugins added
+-- newbb2 or CBB (thx gravies)
+-- catads (thx Alain01)
+-- WF-links (thx flying.tux)
+
+:ver 0.86| by flying.tux
+- Italian updated
+- 2 plug-ins added
+-- PDlinks (thx flying.tux)
+-- PDdownloads (thx flying.tux)
+
+:ver 0.85| by GIJOE
+- modified the dependencies of language files and constants radically
+
+:ver 0.84| by GIJOE
+- fixed a typo in the form for block's options (thx flying.tux)
+- fixed some Notices in "not always" mode
+- 2 plug-ins added
+-- xfguestbook (thx karedokx) (0.84a)
+-- AMS (thx karedokx) (0.84a)
+- a plug-in modified
+-- weblinks (thx Tom_G3X) (0.84b)
+
+:ver 0.83| by GIJOE
+- fixed missing a Creteria in getList()
+
+:ver 0.82| by flying.tux
+- few modifications in English
+- few modifications in Italian
+- 1 plug-in added
+-- smartsection(thx flying.tux)
+
+:ver 0.81| by GIJOE
+- changed the route to admin (from block's option edit)
+- modified English
+- added some protections against direct accessing
+- Italian added(thx flying.tux)
+- 1 plug-in added
+-- xyp4all(thx flying.tux)
+
+:ver 0.8|
+-- modified as reading plug-in from module's directory if it exists
+-- multiple waitings can be returned from single function
+--- almost plug-ins are modified along this new spec by GIJOE
+-- modified the template as watings belonging modules
+--- English and Japanese text are shorten by GIJOE
+- 1 plug-in added
+-- Weblinks(by Ryuji)
+
+:ver 0.7c|
+-- 1 plug-in added
+--- WordPress ME(by nobunobu) multiple
+
+:ver 0.7b|
+-- 1 plug-in added
+--- SmartFAQ (by mariuss)
+
+:ver 0.7a|
+-- 1 plug-in added
+--- WF-Downloads (by coldfire)
+
+:ver 0.7|
+-- 2 language files added
+--- spanish (by ColdBeer)
+--- swedish (by Leif Madsen)
+-- 1 plug-in added
+--- xcGallery (by nao-pon)
+
+:ver 0.6|
+-- An option added whether it is displayed when no wating exists
+-- 3 plug-ins added
+--- Addresses (by gruessle)
+--- MyAds (by Tom_G3X)
+--- Tutorials (by GIJOE)
+
+:ver 0.5|
+-- some plug-ins added
+-- English document file - is this - added.
+
+
Added: XoopsModules/waiting/releases/0.95/waiting/admin/index.php
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/admin/index.php (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/admin/index.php 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,29 @@
+<?php
+// $Id: index.php,v 1.2 2005/04/06 09:49:05 gij Exp $
+// FILE :: index.php
+// AUTHOR :: Ryuji AMANO <in...@ry...>
+// WEB :: Ryu's Planning <http://ryus.co.jp/>
+//
+
+require_once "../../../include/cp_header.php";
+require_once dirname(dirname(__FILE__)).'/include/functions.php' ;
+xoops_cp_header();
+$plugins_path = XOOPS_ROOT_PATH . "/modules/waiting/plugins";
+$module_handler =& xoops_gethandler('module');
+$block = array();
+
+//\xA5\xA4\xA5ȡ\xBC\xA5뤵\xA4\xEC\xA4Ƥ\xA4\xA4\xEB\xA5⥸\xA5塼\xA5\xEB\xA5ꥹ\xA5Ȥ\xF2\xC6\xC0\xA4롣
+$mod_lists = $module_handler->getList(new Criteria(1,1),true);
+echo "<h4>"._AM_WAITING_PLUGINLIST."</h4>";
+echo "<table class='outer'>";
+echo "<th>"._AM_WAITING_MODNAME."</th><th>dirname</th><th>"._AM_WAITING_STATUS."</th>";
+foreach( $mod_lists as $dirname => $name ) {
+ $style = ( @$style == "odd" ) ? "even" : "odd" ;
+ $plugin_info = waiting_get_plugin_info( $dirname ) ;
+ printf( "<tr class='%s'><td>%s</td><td>%s</td><td>%s</td></tr>" , $style , htmlspecialchars( $name ) , htmlspecialchars( $dirname ) , @$plugin_info['type'] ) ;
+}
+echo "</table>";
+echo _AM_WAITING_PLUGINLIST_DESC;
+
+xoops_cp_footer();
+?>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/blocks/.htaccess
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/blocks/.htaccess (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/blocks/.htaccess 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,2 @@
+order deny,allow
+deny from all
Added: XoopsModules/waiting/releases/0.95/waiting/blocks/index.html
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/blocks/index.html (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/blocks/index.html 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/blocks/waiting_waiting.php
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/blocks/waiting_waiting.php (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/blocks/waiting_waiting.php 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,152 @@
+<?php
+// $Id: waiting_waiting.php,v 1.8 2005/04/20 03:43:55 gij Exp $
+// ------------------------------------------------------------------------ //
+// XOOPS - PHP Content Management System //
+// Copyright (c) 2000 XOOPS.org //
+// <http://www.xoops.org/> //
+// ------------------------------------------------------------------------ //
+// This program is free software; you can redistribute it and/or modify //
+// it under the terms of the GNU General Public License as published by //
+// the Free Software Foundation; either version 2 of the License, or //
+// (at your option) any later version. //
+// //
+// You may not change or alter any portion of this comment or credits //
+// of supporting developers from this source code or any supporting //
+// source code which is considered copyrighted (c) material of the //
+// original comment or credit authors. //
+// //
+// This program is distributed in the hope that it will be useful, //
+// but WITHOUT ANY WARRANTY; without even the implied warranty of //
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the //
+// GNU General Public License for more details. //
+// //
+// You should have received a copy of the GNU General Public License //
+// along with this program; if not, write to the Free Software //
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //
+// ------------------------------------------------------------------------ //
+// Author: Kazumi Ono (AKA onokazu) //
+// URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ //
+// Project: The XOOPS Project //
+// ------------------------------------------------------------------------- //
+
+// EXTENSIBLE "waiting block" by plugins in both waiting and modules
+
+function b_waiting_waiting_show($options)
+{
+ global $xoopsUser, $xoopsConfig;
+
+ $userlang = $xoopsConfig['language'] ;
+
+ $sql_cache_min = empty( $options[1] ) ? 0 : intval( $options[1] ) ;
+ $sql_cache_file = XOOPS_CACHE_PATH.'/waiting_touch' ;
+
+ // SQL cache check (you have to use this cache with block's cache by system)
+ if( file_exists( $sql_cache_file ) ) {
+ $sql_cache_mtime = filemtime( $sql_cache_file ) ;
+ if( time() < $sql_cache_mtime + $sql_cache_min * 60 ) return array() ;
+ else {
+ unlink( $sql_cache_file ) ;
+ }
+ }
+
+ require_once dirname(dirname(__FILE__)).'/include/functions.php' ;
+
+ // read language files for plugins
+ $lang_dir = XOOPS_ROOT_PATH . "/modules/waiting/language";
+ if( file_exists( "$lang_dir/$userlang/plugins.php" ) ) {
+ include_once( "$lang_dir/$userlang/plugins.php" ) ;
+ } else if( file_exists( "$lang_dir/english/plugins.php" ) ) {
+ include_once( "$lang_dir/english/plugins.php" ) ;
+ }
+
+ $plugins_path = XOOPS_ROOT_PATH . "/modules/waiting/plugins";
+ $xoopsDB =& Database::getInstance();
+ $module_handler =& xoops_gethandler('module');
+ $block = array();
+
+ // get module's list installed
+ $mod_lists = $module_handler->getList(new Criteria(1,1),true);
+ foreach( $mod_lists as $dirname => $name ) {
+
+ $plugin_info = waiting_get_plugin_info( $dirname , $xoopsConfig['language'] ) ;
+ if( empty( $plugin_info ) || empty( $plugin_info['plugin_path'] ) ) continue ;
+
+ if( ! empty( $plugin_info['langfile_path'] ) ) {
+ include_once $plugin_info['langfile_path'] ;
+ }
+ include_once $plugin_info['plugin_path'] ;
+
+ // call the plugin
+ if( function_exists( @$plugin_info['func'] ) ) {
+ // get the list of waitings
+ $_tmp = call_user_func( $plugin_info['func'] , $dirname ) ;
+ if( isset( $_tmp["lang_linkname"] ) ) {
+ if( @$_tmp["pendingnum"] > 0 || $options[0] > 0){
+ $block["modules"][$dirname]["pending"][] = $_tmp;
+ }
+ unset( $_tmp ) ;
+ } else {
+ // Judging the plugin returns multiple items
+ // if lang_linkname does not exist
+ foreach( $_tmp as $_one ) {
+ if( @$_one["pendingnum"] > 0 || $options[0] > 0){
+ $block["modules"][$dirname]["pending"][] = $_one;
+ }
+ }
+ }
+ }
+
+ // for older compatibilities
+ // Hacked by GIJOE
+ $i = 0 ;
+ while( 1 ) {
+ $function_name = "b_waiting_{$dirname}_$i" ;
+ if (function_exists( $function_name )){
+ $_tmp = call_user_func( $function_name ) ;
+ ++ $i ;
+ if($_tmp["pendingnum"] > 0 || $options[0] > 0){
+ $block["modules"][$dirname]["pending"][] = $_tmp;
+ }
+ unset($_tmp);
+ } else break ;
+ }
+ // End of Hack
+
+ // if(count($block["modules"][$dirname]) > 0){
+ if ( ! empty( $block["modules"][$dirname] ) ) {
+ $block["modules"][$dirname]["name"] = $name;
+ }
+ }
+ //print_r($block);
+
+ // SQL cache touch (you have to use this cache with block's cache by system)
+ if( empty( $block ) && $sql_cache_min > 0 ) {
+ $fp = fopen( $sql_cache_file , "w" ) ;
+ fclose( $fp ) ;
+ }
+
+ return $block ;
+}
+
+function b_waiting_waiting_edit($options){
+
+ $mod_url = XOOPS_URL."/modules/waiting" ;
+
+ $sql_cache_min = empty( $options[1] ) ? 0 : intval( $options[1] ) ;
+
+ $form = _MB_WAITING_NOWAITING_DISPLAY.": <input type='radio' name='options[0]' value='1'";
+ if ( $options[0] == 1 ) {
+ $form .= " checked='checked'";
+ }
+ $form .= " /> "._YES."<input type='radio' name='options[0]' value='0'";
+ if ( $options[0] == 0 ) {
+ $form .= " checked='checked'";
+ }
+ $form .=" /> "._NO."<br />\n";
+ $form .= sprintf( _MINUTES , _MB_WAITING_SQL_CACHE.": <input type='text' name='options[1]' value='$sql_cache_min' size='2' />" ) ;
+ $form .="<br />\n<br />\n<a href='$mod_url/admin/index.php'><img src='$mod_url/images/folder16.gif' />"._MB_WAITING_LINKTOPLUGINCHECK."</a>" ;
+
+ return $form;
+}
+
+?>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/images/folder16.gif
===================================================================
(Binary files differ)
Property changes on: XoopsModules/waiting/releases/0.95/waiting/images/folder16.gif
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/waiting/releases/0.95/waiting/images/index.html
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/images/index.html (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/images/index.html 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/images/waiting_slogo.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/waiting/releases/0.95/waiting/images/waiting_slogo.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/waiting/releases/0.95/waiting/include/.htaccess
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/include/.htaccess (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/include/.htaccess 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,2 @@
+order deny,allow
+deny from all
Added: XoopsModules/waiting/releases/0.95/waiting/include/functions.php
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/include/functions.php (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/include/functions.php 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,68 @@
+<?php
+
+function waiting_get_plugin_info( $dirname , $language = 'english' )
+{
+ // get $mytrustdirname for D3 modules
+ $mytrustdirname = '' ;
+ if( defined( 'XOOPS_TRUST_PATH' ) && file_exists( XOOPS_ROOT_PATH."/modules/".$dirname."/mytrustdirname.php" ) ) {
+ @include XOOPS_ROOT_PATH."/modules/".$dirname."/mytrustdirname.php" ;
+ }
+
+ $module_plugin_file = XOOPS_ROOT_PATH."/modules/".$dirname."/include/waiting.plugin.php" ;
+ $d3module_plugin_file = XOOPS_TRUST_PATH."/modules/".$mytrustdirname."/include/waiting.plugin.php" ;
+ $builtin_plugin_file = XOOPS_ROOT_PATH."/modules/waiting/plugins/".$dirname.".php" ;
+
+ if( file_exists( $module_plugin_file ) ) {
+ // module side (1st priority)
+ $lang_files = array(
+ XOOPS_ROOT_PATH."/modules/$dirname/language/$language/waiting.php" ,
+ XOOPS_ROOT_PATH."/modules/$dirname/language/english/waiting.php" ,
+ ) ;
+ $langfile_path = '' ;
+ foreach( $lang_files as $lang_file ) {
+ if( file_exists( $lang_file ) ) {
+ $langfile_path = $lang_file ;
+ break ;
+ }
+ }
+ $ret = array(
+ 'plugin_path' => $module_plugin_file ,
+ 'langfile_path' => $langfile_path ,
+ 'func' => 'b_waiting_'.$dirname ,
+ 'type' => 'module' ,
+ ) ;
+ } else if( ! empty( $mytrustdirname ) && file_exists( $d3module_plugin_file ) ) {
+ // D3 module's plugin under xoops_trust_path (2nd priority)
+ $lang_files = array(
+ XOOPS_TRUST_PATH."/modules/$mytrustdirname/language/$language/waiting.php" ,
+ XOOPS_TRUST_PATH."/modules/$mytrustdirname/language/english/waiting.php" ,
+ ) ;
+ $langfile_path = '' ;
+ foreach( $lang_files as $lang_file ) {
+ if( file_exists( $lang_file ) ) {
+ $langfile_path = $lang_file ;
+ break ;
+ }
+ }
+ $ret = array(
+ 'plugin_path' => $d3module_plugin_file ,
+ 'langfile_path' => $langfile_path ,
+ 'func' => 'b_waiting_'.$mytrustdirname ,
+ 'type' => 'module (D3)' ,
+ ) ;
+ } else if( file_exists( $builtin_plugin_file ) ) {
+ // built-in plugin under modules/waiting (3rd priority)
+ $ret = array(
+ 'plugin_path' => $builtin_plugin_file ,
+ 'langfile_path' => '' ,
+ 'func' => 'b_waiting_'.$dirname ,
+ 'type' => 'built-in' ,
+ ) ;
+ } else {
+ $ret = array() ;
+ }
+
+ return $ret ;
+}
+
+?>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/include/index.html
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/include/index.html (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/include/index.html 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/include/updateblock.inc.php
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/include/updateblock.inc.php (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/include/updateblock.inc.php 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,95 @@
+<?php
+// $Id: updateblock.inc.php,v 1.1 2005/04/05 02:48:40 gij Exp $
+
+ if( ! defined( 'XOOPS_ROOT_PATH' ) ) exit ;
+
+ // Keep Block option values when update (by nobunobu)
+ global $xoopsDB;
+ $query = "SELECT mid FROM ".$xoopsDB->prefix('modules')." WHERE dirname='".$modversion['dirname']."' ";
+ $result = $xoopsDB->query($query);
+ $record= $xoopsDB->fetcharray($result);
+ if ($record) {
+ $mid = $record['mid'];
+ $count = count($modversion['blocks']);
+ /* $sql = "SELECT * FROM ".$xoopsDB->prefix('newblocks')." WHERE mid=".$mid." AND block_type ='D'";
+ $fresult = $xoopsDB->query($sql);
+ $n_funcnum = $count;
+ while ($fblock = $xoopsDB->fetchArray($fresult)) {
+ $bnum = 0;
+ for ($i = 1 ; $i <= $count ; $i++) {
+ if (($modversion['blocks'][$i]['file'] == $fblock['func_file']) and ($modversion['blocks'][$i]['show_func'] == $fblock['show_func'])) {
+ $bnum = $i;
+ break;
+ }
+ }
+ if($bnum) {
+ $n_funcnum++;
+ $modversion['blocks'][$n_funcnum]['file'] = $fblock['func_file'];
+ $modversion['blocks'][$n_funcnum]['name'] = $fblock['name'];
+ $modversion['blocks'][$n_funcnum]['description'] = $fblock['name'];
+ $modversion['blocks'][$n_funcnum]['show_func'] = $fblock['show_func'];
+ $modversion['blocks'][$n_funcnum]['edit_func'] = $fblock['edit_func'];
+ $modversion['blocks'][$n_funcnum]['template'] = $fblock['template'];
+ if ($fblock['options']) {
+ $old_vals=explode("|",$fblock['options']);
+ $def_vals=explode("|",$modversion['blocks'][$bnum]['options']);
+ if (count($old_vals) == count($def_vals)) {
+ // the number of parameters is not changed
+ $modversion['blocks'][$n_funcnum]['options'] = $fblock['options'];
+ $local_msgs[] = "Option's values of the cloned block <b>".$fblock['name']."</b> will be kept. (value = <b>".$fblock['options']."</b>)";
+ } else if (count($old_vals) < count($def_vals)){
+ // the number of parameters is increased
+ for ($j=0; $j < count($old_vals); $j++) {
+ $def_vals[$j] = $old_vals[$j];
+ }
+ $modversion['blocks'][$n_funcnum]['options'] = implode("|",$def_vals);
+ $local_msgs[] = "Option's values of the cloned block <b>".$fblock['name']."</b> will be kept and new options are added. (value = <b>".$modversion['blocks'][$fblock['func_num']]['options']."</b>)";
+ } else {
+ $modversion['blocks'][$n_funcnum]['options'] = implode("|",$def_vals);
+ $local_msgs[] = "Option's values of the cloned block <b>".$fblock['name']."</b> will be reset to the default, because of some decrease of options. (value = <b>".$modversion['blocks'][$n_funcnum]['options']."</b>)";
+ }
+ }
+ $sql = "UPDATE ".$xoopsDB->prefix('newblocks')." SET func_num='$n_funcnum' WHERE mid=".$mid." AND bid='".$fblock['bid']."'";
+ $iret = $xoopsDB->query($sql);
+
+ }
+ } */
+
+ $sql = "SELECT * FROM ".$xoopsDB->prefix('newblocks')." WHERE mid=".$mid." AND block_type <>'D' AND func_num > $count";
+ $fresult = $xoopsDB->query($sql);
+ while ($fblock = $xoopsDB->fetchArray($fresult)) {
+ $local_msgs[] = "Non Defined Block <b>".$fblock['name']."</b> will be deleted";
+ $sql = "DELETE FROM ".$xoopsDB->prefix('newblocks')." WHERE bid='".$fblock['bid']."'";
+ $iret = $xoopsDB->query($sql);
+ }
+
+ for ($i = 1 ; $i <= $count ; $i++) {
+ $sql = "SELECT name,options FROM ".$xoopsDB->prefix('newblocks')." WHERE mid=".$mid." AND func_num=".$i." AND show_func='".addslashes($modversion['blocks'][$i]['show_func'])."' AND func_file='".addslashes($modversion['blocks'][$i]['file'])."'";
+ $fresult = $xoopsDB->query($sql);
+ $fblock = $xoopsDB->fetchArray($fresult);
+ if ( isset( $fblock['options'] ) ) {
+ $old_vals=explode("|",$fblock['options']);
+ $def_vals=explode("|",$modversion['blocks'][$i]['options']);
+ if (count($old_vals) == count($def_vals)) {
+ $modversion['blocks'][$i]['options'] = $fblock['options'];
+ $local_msgs[] = "Option's values of the block <b>".$fblock['name']."</b> will be kept. (value = <b>".$fblock['options']."</b>)";
+ } else if (count($old_vals) < count($def_vals)){
+ for ($j=0; $j < count($old_vals); $j++) {
+ $def_vals[$j] = $old_vals[$j];
+ }
+ $modversion['blocks'][$i]['options'] = implode("|",$def_vals);
+ $local_msgs[] = "Option's values of the block <b>".$fblock['name']."</b> will be kept and new option(s) are added. (value = <b>".$modversion['blocks'][$i]['options']."</b>)";
+ } else {
+ $local_msgs[] = "Option's values of the block <b>".$fblock['name']."</b> will be reset to the default, because of some decrease of options. (value = <b>".$modversion['blocks'][$i]['options']."</b>)";
+ }
+ }
+ }
+ }
+
+ global $msgs , $myblocksadmin_parsed_updateblock ;
+ if( ! empty( $msgs ) && empty( $myblocksadmin_parsed_updateblock ) ) {
+ $msgs = array_merge( $msgs , $local_msgs ) ;
+ $myblocksadmin_parsed_updateblock = true ;
+ }
+
+?>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/language/.htaccess
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/language/.htaccess (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/language/.htaccess 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,2 @@
+order deny,allow
+deny from all
Added: XoopsModules/waiting/releases/0.95/waiting/language/english/admin.php
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/language/english/admin.php (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/language/english/admin.php 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,14 @@
+<?php
+// $Id: admin.php,v 1.2 2005/04/06 06:04:11 gij Exp $
+// FILE :: admin.php
+// AUTHOR :: Ryuji AMANO <in...@ry...>
+// WEB :: Ryu's Planning <http://ryus.co.jp/>
+//
+
+define('_AM_WAITING_MODNAME', 'Modules');
+define('_AM_WAITING_STATUS', 'Status');
+
+define('_AM_WAITING_PLUGINLIST', 'Plugin Checker');
+define('_AM_WAITING_PLUGINLIST_DESC', '<b>module:</b> using the original plugin included in the module<br /><b>built-in:</b> using the bundled plugin in Waiting Contents Extensible<br /><b>Blank:</b> no plugins found');
+
+?>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/language/english/blocks.php
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/language/english/blocks.php (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/language/english/blocks.php 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,12 @@
+<?php
+// $Id: blocks.php,v 1.4 2005/04/20 03:27:04 gij Exp $
+// FILE :: blocks.php
+// AUTHOR :: Ryuji AMANO <in...@ry...>
+// WEB :: Ryu's Planning <http://ryus.co.jp/>
+//
+
+define("_MB_WAITING_NOWAITING_DISPLAY","Always displayed");
+define("_MB_WAITING_SQL_CACHE","SQL cache");
+define("_MB_WAITING_LINKTOPLUGINCHECK","check plugins");
+
+?>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/language/english/index.html
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/language/english/index.html (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/language/english/index.html 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/language/english/modinfo.php
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/language/english/modinfo.php (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/language/english/modinfo.php 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,18 @@
+<?php
+// $Id: modinfo.php,v 1.3 2005/04/06 06:04:11 gij Exp $
+// FILE :: modinfo.php
+// AUTHOR :: Ryuji AMANO <in...@jo...>
+// WEB :: Ryu's Planning <http://ryus.joetsu.info/>
+//
+
+// The name of this module
+define("_MI_WAITING_NAME","Waiting Contents Extensible");
+
+// A brief description of this module
+define("_MI_WAITING_DESC","Displays a block of waiting contents for 3rd party modules.");
+
+// Names of blocks for this module (Not all module has blocks)
+define("_MI_WAITING_BNAME1", "Waiting Contents Ext");
+
+
+?>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/language/english/plugins.php
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/language/english/plugins.php (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/language/english/plugins.php 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,25 @@
+<?php
+// $Id: plugins.php,v 1.1 2005/04/20 03:27:04 gij Exp $
+// FILE :: plugins.php
+// AUTHOR :: Ryuji AMANO <in...@ry...>
+// WEB :: Ryu's Planning <http://ryus.co.jp/>
+//
+define("_PI_WAITING_WAITINGS","Waitings");
+define("_PI_WAITING_SUBMITTED","Submitted");
+define("_PI_WAITING_INACTIVE_USERS","Inactive Users");
+define("_PI_WAITING_BROKENS","Brokens");
+define("_PI_WAITING_MODREQS","Modreqs");
+define("_PI_WAITING_REQUESTS","Requests");
+define("_PI_WAITING_REVIEWS","Reviews");
+define("_PI_WAITING_PREVIEWS","Previews");
+define("_PI_WAITING_COMMENTS","Comments");
+define("_PI_WAITING_LINKS","Links");
+define("_PI_WAITING_FILES","Files");
+define("_PI_WAITING_BLOGS","Blogs");
+define("_PI_WAITING_EVENTS","Events");
+define("_PI_WAITING_ASKED","Asked");
+define("_PI_WAITING_NEWANSWERS","New Answers");
+define("_PI_WAITING_ANSWERED","Answered");
+define("_PI_WAITING_WAITINGS_FMT","Waitings (%s)");
+
+?>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/language/french/admin.php
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/language/french/admin.php (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/language/french/admin.php 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,14 @@
+<?php
+// $Id: admin.php,v 1.2 2005/04/06 06:04:11 gij Exp $
+// FILE :: admin.php
+// AUTHOR :: Ryuji AMANO <in...@ry...>
+// WEB :: Ryu's Planning <http://ryus.biz/>
+//
+
+define('_AM_WAITING_MODNAME', 'Modules');
+define('_AM_WAITING_STATUS', 'Statuts');
+
+define('_AM_WAITING_PLUGINLIST', 'Contrôleur de Plugin');
+define('_AM_WAITING_PLUGINLIST_DESC', '<b>module:</b> Utilises le plugin original inclu dans le package du module<br /><b>waiting:</b> Utilises le plugin inclu dans ce module<br /><b>Blank:</b> Aucun plugin trouvé');
+
+?>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/language/french/blocks.php
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/language/french/blocks.php (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/language/french/blocks.php 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,12 @@
+<?php
+// $Id: blocks.php,v 1.4 2005/04/20 03:27:04 gij Exp $
+// FILE :: blocks.php
+// AUTHOR :: Ryuji AMANO <in...@ry...>
+// WEB :: Ryu's Planning <http://ryus.biz/>
+//
+
+define("_MB_WAITING_NOWAITING_DISPLAY","Toujours visible");
+define("_MB_WAITING_SQL_CACHE","cache SQL");
+define("_MB_WAITING_LINKTOPLUGINCHECK","Vérifier les plugins");
+
+?>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/language/french/index.html
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/language/french/index.html (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/language/french/index.html 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/language/french/modinfo.php
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/language/french/modinfo.php (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/language/french/modinfo.php 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,18 @@
+<?php
+// $Id: modinfo.php,v 1.3 2005/04/06 06:04:11 gij Exp $
+// FILE :: modinfo.php
+// AUTHOR :: Ryuji AMANO <in...@jo...>
+// WEB :: Ryu's Planning <http://ryus.joetsu.info/>
+//
+
+// The name of this module
+define("_MI_WAITING_NAME","Gestion extensible des Contenus en Attente");
+
+// A brief description of this module
+define("_MI_WAITING_DESC","Montre à l'administrateur les contenus en attente dans un bloc.");
+
+// Names of blocks for this module (Not all module has blocks)
+define("_MI_WAITING_BNAME1", "Contenus en attente");
+
+
+?>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/language/french/plugins.php
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/language/french/plugins.php (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/language/french/plugins.php 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,25 @@
+<?php
+// $Id: plugins.php,v 1.1 2005/04/20 03:27:04 gij Exp $
+// FILE :: plugins.php
+// AUTHOR :: Ryuji AMANO <in...@ry...>
+// WEB :: Ryu's Planning <http://ryus.biz/>
+//
+define("_PI_WAITING_WAITINGS","En Attente");
+define("_PI_WAITING_SUBMITTED","Proposés");
+define("_PI_WAITING_INACTIVE_USERS","Membres inactifs");
+define("_PI_WAITING_BROKENS","Brisés");
+define("_PI_WAITING_MODREQS","Modifiés");
+define("_PI_WAITING_REQUESTS","Demandes");
+define("_PI_WAITING_REVIEWS","Revus");
+define("_PI_WAITING_PREVIEWS","Prévisions");
+define("_PI_WAITING_COMMENTS","Commentaires");
+define("_PI_WAITING_LINKS","Liens");
+define("_PI_WAITING_FILES","Fichiers");
+define("_PI_WAITING_BLOGS","Blogs");
+define("_PI_WAITING_EVENTS","Evènements");
+define("_PI_WAITING_ASKED","Soumis");
+define("_PI_WAITING_NEWANSWERS","Nouvelles réponses");
+define("_PI_WAITING_ANSWERED","Répondu");
+define("_PI_WAITING_WAITINGS_FMT","Attentes (%s)");
+
+?>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/language/index.html
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/language/index.html (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/language/index.html 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/language/italian/admin.php
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/language/italian/admin.php (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/language/italian/admin.php 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,15 @@
+<?php
+/*************************************************************************/
+# Italian Language Pack for module: #
+# Waiting Contents Extensible #
+# #
+# Author #
+# flying.tux - fly...@gm... #
+# #
+# Last modified on 06.08.2005 #
+/*************************************************************************/
+define('_AM_WAITING_MODNAME', 'Contenuti in Attesa Estendible');
+define('_AM_WAITING_STATUS', 'Stato');
+define('_AM_WAITING_PLUGINLIST', 'Lista plugin');
+define('_AM_WAITING_PLUGINLIST_DESC', '<b>modulo:</b> Usa il plugin incluso nel modulo stesso<br /><b>waiting:</b> Usa il plugin incluso in Contenuti in Attesa Estendible<br /><b>Vuoto:</b>Nessun plugin trovato');
+?>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/language/italian/blocks.php
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/language/italian/blocks.php (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/language/italian/blocks.php 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,14 @@
+<?php
+/*************************************************************************/
+# Italian Language Pack for module: #
+# Waiting Contents Extensible #
+# #
+# Author #
+# flying.tux - fly...@gm... #
+# #
+# Last modified on 06.08.2005 #
+/*************************************************************************/
+define('_MB_WAITING_SQL_CACHE','Cache SQL');
+define('_MB_WAITING_NOWAITING_DISPLAY','Visualizza sempre');
+define('_MB_WAITING_LINKTOPLUGINCHECK','verifica plugins');
+?>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/language/italian/index.html
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/language/italian/index.html (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/language/italian/index.html 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/language/italian/modinfo.php
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/language/italian/modinfo.php (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/language/italian/modinfo.php 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,14 @@
+<?php
+/*************************************************************************/
+# Italian Language Pack for module: #
+# Waiting Contents Extensible #
+# #
+# Author #
+# flying.tux - fly...@gm... #
+# #
+# Last modified on 06.08.2005 #
+/*************************************************************************/
+define('_MI_WAITING_NAME','Contenuti in Attesa Estendible');
+define('_MI_WAITING_DESC','Visualizza un blocco con i contenuti in attesa di approvazione per moduli di terze parti.');
+define('_MI_WAITING_BNAME1', 'Contenuti in Attesa');
+?>
\ No newline at end of file
Added: XoopsModules/waiting/releases/0.95/waiting/language/italian/plugins.php
===================================================================
--- XoopsModules/waiting/releases/0.95/waiting/language/italian/plugins.php (rev 0)
+++ XoopsModules/waiting/releases/0.95/waiting/language/italian/plugins.php 2012-01-26 23:18:38 UTC (rev 8819)
@@ -0,0 +1,28 @@
+<?php
+/*************************************************************************/
+# Italian Language Pack for module: #
+# Waiting Contents Extensible #
+# #
+# Author #
+# flying.tux - fly...@gm... #
+# #
+# Last modified on 16.06.2005 #
+/*************************************************************************/
+define('_PI_WAITING_WAITINGS','In attesa');
+define('_PI_WAITING_SUBMITTED','In attesa');
+define('_PI_WAITING_INACTIVE_USERS','Utenti inattivi');
+define('_PI_WAITING_BROKENS','Interrotti');
+define('_PI_WAITING_MODREQS','Da modificare');
+define('_PI_WAITING_REQUESTS','Richieste');
+define('_PI_WAITING_REVIEWS','Recensioni');
+define('_PI_WAITING_PREVIEWS','Anteprime');
+define('_PI_WAITING_COMMENTS','Commenti');
+define('_PI_WAITING_LINKS','Links');
+define('_PI_WAITING_FILES','Files');
+define('_PI_WAITING_BLOGS','Blogs');
+define('_PI_WAITING_EVENTS','Eventi');
+define('_PI_WAITING_ASKED','Richieste');
+define('_PI_WAITING_NEWANSWERS','Risposte nuove');
+define('_PI_WAITING_ANSWERED','Risposte fornite');
+define('_PI_WAITING_WAITINGS_FMT','In attesa (%s)');
+?>
\ No newline at end of file
Added: XoopsModules/waiting/...
[truncated message content] |
|
From: <wis...@us...> - 2012-01-26 19:52:57
|
Revision: 8818
http://xoops.svn.sourceforge.net/xoops/?rev=8818&view=rev
Author: wishcraft
Date: 2012-01-26 19:52:47 +0000 (Thu, 26 Jan 2012)
Log Message:
-----------
VOD 1.16 Alpha - Video on demand shopping cart, base code finished but not completely tested, XPayment plugin inc, Tag plugin inc, Cron Inc - see changelog.txt
Added Paths:
-----------
XoopsModules/vod/releases/1.16/
XoopsModules/vod/releases/1.16/docs/
XoopsModules/vod/releases/1.16/htdocs/
XoopsModules/vod/releases/1.16/htdocs/Frameworks/
XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/
XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/
XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/
XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.cart.png
XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.category.png
XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.currency.png
XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.log.png
XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.mimetypes.png
XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.useragents.png
XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.video.png
XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/
XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.cart.png
XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.category.png
XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.currency.png
XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.log.png
XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.mimetypes.png
XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.useragents.png
XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.video.png
XoopsModules/vod/releases/1.16/htdocs/modules/
XoopsModules/vod/releases/1.16/htdocs/modules/tag/
XoopsModules/vod/releases/1.16/htdocs/modules/tag/plugin/
XoopsModules/vod/releases/1.16/htdocs/modules/tag/plugin/vod.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/
XoopsModules/vod/releases/1.16/htdocs/modules/vod/admin/
XoopsModules/vod/releases/1.16/htdocs/modules/vod/admin/header.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/admin/index.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/admin/index.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/admin/menu.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/blocks/
XoopsModules/vod/releases/1.16/htdocs/modules/vod/blocks/flowplayer_block_player.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/blocks/index.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/class/
XoopsModules/vod/releases/1.16/htdocs/modules/vod/class/cart.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/class/category.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/class/currency.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/class/index.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/class/log.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/class/mimetypes.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/class/sessions.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/class/videos.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/cron/
XoopsModules/vod/releases/1.16/htdocs/modules/vod/cron/index.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/cron/notify.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/docs/
XoopsModules/vod/releases/1.16/htdocs/modules/vod/docs/changelog.txt
XoopsModules/vod/releases/1.16/htdocs/modules/vod/docs/credits.txt
XoopsModules/vod/releases/1.16/htdocs/modules/vod/docs/index.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/docs/install.txt
XoopsModules/vod/releases/1.16/htdocs/modules/vod/docs/lang_diff.txt
XoopsModules/vod/releases/1.16/htdocs/modules/vod/docs/licence.txt
XoopsModules/vod/releases/1.16/htdocs/modules/vod/docs/readme.txt
XoopsModules/vod/releases/1.16/htdocs/modules/vod/dojson_videos.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/header.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/images/
XoopsModules/vod/releases/1.16/htdocs/modules/vod/images/icons/
XoopsModules/vod/releases/1.16/htdocs/modules/vod/images/icons/admin/
XoopsModules/vod/releases/1.16/htdocs/modules/vod/images/icons/admin/index.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/images/icons/admin/video.png
XoopsModules/vod/releases/1.16/htdocs/modules/vod/images/icons/index.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/images/index.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/images/vod_slogo.png
XoopsModules/vod/releases/1.16/htdocs/modules/vod/include/
XoopsModules/vod/releases/1.16/htdocs/modules/vod/include/JSON.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/include/formobjects.vod.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/include/forms.vod.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/include/formselectcategory.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/include/formselectcurrency.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/include/formselectmimetype.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/include/formselectpackageid.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/include/formselectsupport.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/include/formselectvideos.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/include/functions.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/include/index.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/include/update.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/include/uploader.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/index.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/js/
XoopsModules/vod/releases/1.16/htdocs/modules/vod/js/core.js
XoopsModules/vod/releases/1.16/htdocs/modules/vod/js/flowplayer-3.2.6.min.js
XoopsModules/vod/releases/1.16/htdocs/modules/vod/js/index.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/js/json_functions.js
XoopsModules/vod/releases/1.16/htdocs/modules/vod/js/video.js
XoopsModules/vod/releases/1.16/htdocs/modules/vod/language/
XoopsModules/vod/releases/1.16/htdocs/modules/vod/language/english/
XoopsModules/vod/releases/1.16/htdocs/modules/vod/language/english/admin.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/language/english/blocks.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/language/english/email.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/language/english/forms.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/language/english/index.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/language/english/log.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/language/english/mail_templates/
XoopsModules/vod/releases/1.16/htdocs/modules/vod/language/english/mail_templates/vod_video_available_cart.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/language/english/mail_templates/vod_video_expired_cart.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/language/english/mail_templates/vod_video_expired_viewing_cart.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/language/english/main.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/language/english/mainfile.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/language/english/modinfo.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/language/english/style.css
XoopsModules/vod/releases/1.16/htdocs/modules/vod/language/english/video-js.css
XoopsModules/vod/releases/1.16/htdocs/modules/vod/language/index.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/preloads/
XoopsModules/vod/releases/1.16/htdocs/modules/vod/preloads/core.php
XoopsModules/vod/releases/1.16/htdocs/modules/vod/preloads/index.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/sql/
XoopsModules/vod/releases/1.16/htdocs/modules/vod/sql/index.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/sql/mysql.sql
XoopsModules/vod/releases/1.16/htdocs/modules/vod/swf/
XoopsModules/vod/releases/1.16/htdocs/modules/vod/swf/flowplayer-3.2.7.swf
XoopsModules/vod/releases/1.16/htdocs/modules/vod/swf/flowplayer.controls-3.2.5.swf
XoopsModules/vod/releases/1.16/htdocs/modules/vod/swf/flowplayer.rtmp-3.2.3.swf
XoopsModules/vod/releases/1.16/htdocs/modules/vod/swf/index.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/blocks/
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/blocks/flowplayer_block_player.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/blocks/index.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/index.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_cpanel_cart_edit.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_cpanel_cart_list.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_cpanel_category_edit.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_cpanel_category_list.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_cpanel_currency_edit.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_cpanel_currency_list.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_cpanel_log_list.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_cpanel_mimetypes_edit.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_cpanel_mimetypes_list.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_cpanel_sessions_edit.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_cpanel_sessions_list.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_cpanel_useragents_list.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_cpanel_videos_edit.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_cpanel_videos_list.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_cart_view.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_cart_xpayment_form.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_category_list.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_category_view.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_flash_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_html5_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_http_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_iframe.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_iframe_flash_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_iframe_html5_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_iframe_http_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_iframe_ios_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_iframe_other_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_iframe_rtmp_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_iframe_rtsp_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_iframe_silverlight_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_ios_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_other_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_rstp_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_rtmp_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_silverlight_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_videos_list.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_index_videos_view.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_json_block_flash_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_json_block_html5_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_json_block_http_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_json_block_ios_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_json_block_other_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_json_block_rtmp_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_json_block_rtsp_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_json_block_silverlight_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_json_flash_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_json_html5_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_json_http_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_json_ios_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_json_other_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_json_rtmp_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_json_rtsp_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/templates/vod_json_silverlight_videos.html
XoopsModules/vod/releases/1.16/htdocs/modules/vod/xoops_version.php
XoopsModules/vod/releases/1.16/htdocs/modules/xpayment/
XoopsModules/vod/releases/1.16/htdocs/modules/xpayment/plugin/
XoopsModules/vod/releases/1.16/htdocs/modules/xpayment/plugin/vod.php
Added: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.cart.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.cart.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.category.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.category.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.currency.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.currency.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.log.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.log.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.mimetypes.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.mimetypes.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.useragents.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.useragents.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.video.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/16/vod.video.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.cart.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.cart.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.category.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.category.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.currency.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.currency.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.log.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.log.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.mimetypes.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.mimetypes.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.useragents.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.useragents.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.video.png
===================================================================
(Binary files differ)
Property changes on: XoopsModules/vod/releases/1.16/htdocs/Frameworks/moduleclasses/icons/32/vod.video.png
___________________________________________________________________
Added: svn:mime-type
+ application/octet-stream
Added: XoopsModules/vod/releases/1.16/htdocs/modules/tag/plugin/vod.php
===================================================================
--- XoopsModules/vod/releases/1.16/htdocs/modules/tag/plugin/vod.php (rev 0)
+++ XoopsModules/vod/releases/1.16/htdocs/modules/tag/plugin/vod.php 2012-01-26 19:52:47 UTC (rev 8818)
@@ -0,0 +1,76 @@
+<?php
+if (!defined('XOOPS_ROOT_PATH')) { exit(); }
+
+function vod_tag_iteminfo(&$items)
+{
+ if (empty($items) || !is_array($items)) {
+ return false;
+ }
+
+ $items_id = array();
+ foreach (array_keys($items) as $cat_id) {
+ // Some handling here to build the link upon catid
+ // catid is not used in vod, so just skip it
+ foreach (array_keys($items[$cat_id]) as $item_id) {
+ // In vod, the item_id is "topic_id"
+ $items_id[] = intval($item_id);
+ }
+ }
+ $item_handler =& xoops_getmodulehandler('videos', 'vod');
+ $items_obj = $item_handler->getObjects(new Criteria("vid", "(" . implode(", ", $items_id) . ")", "IN"), true);
+ $myts =& MyTextSanitizer::getInstance();
+ foreach (array_keys($items) as $cat_id) {
+ foreach (array_keys($items[$cat_id]) as $item_id) {
+ $item_obj =& $items_obj[$item_id];
+ if (is_object($item_obj))
+ $items[$cat_id][$item_id] = array(
+ "title" => $item_obj->getVar("name"),
+ "uid" => $item_obj->getVar("uid"),
+ "link" => 'go.php?vid='.$item_id.'&cid='.$item_obj->getVar("cid"),
+ "time" => $item_obj->getVar("date"),
+ "tags" => tag_parse_tag($item_obj->getVar("tags", "n")),
+ "content" => $myts->displayTarea($item_obj->getVar("summary"),true,true,true,true,true,true)
+ );
+ }
+ }
+ unset($items_obj);
+}
+
+/**
+ * Remove orphan tag-item links
+ *
+ * @return boolean
+ *
+ */
+function vod_tag_synchronization($mid)
+{
+ $item_handler =& xoops_getmodulehandler('videos', 'vod');
+ $link_handler =& xoops_getmodulehandler("link", "tag");
+
+ /* clear tag-item links */
+ if (version_compare( mysql_get_server_info(), "4.1.0", "ge" )):
+ $sql = " DELETE FROM {$link_handler->table}" .
+ " WHERE " .
+ " tag_modid = {$mid}" .
+ " AND " .
+ " ( tag_itemid NOT IN " .
+ " ( SELECT DISTINCT {$item_handler->keyName} " .
+ " FROM {$item_handler->table} " .
+ " WHERE {$item_handler->table}.approved > 0" .
+ " ) " .
+ " )";
+ else:
+ $sql = " DELETE {$link_handler->table} FROM {$link_handler->table}" .
+ " LEFT JOIN {$item_handler->table} AS aa ON {$link_handler->table}.tag_itemid = aa.{$item_handler->keyName} " .
+ " WHERE " .
+ " tag_modid = {$mid}" .
+ " AND " .
+ " ( aa.{$item_handler->keyName} IS NULL" .
+ " OR aa.approved < 1" .
+ " )";
+ endif;
+ if (!$result = $link_handler->db->queryF($sql)) {
+ //xoops_error($link_handler->db->error());
+ }
+}
+?>
\ No newline at end of file
Added: XoopsModules/vod/releases/1.16/htdocs/modules/vod/admin/header.php
===================================================================
--- XoopsModules/vod/releases/1.16/htdocs/modules/vod/admin/header.php (rev 0)
+++ XoopsModules/vod/releases/1.16/htdocs/modules/vod/admin/header.php 2012-01-26 19:52:47 UTC (rev 8818)
@@ -0,0 +1,61 @@
+<?php
+ require_once (dirname(dirname(dirname(dirname(__FILE__)))).'/include/cp_header.php');
+
+ if (!defined('_CHARSET'))
+ define ("_CHARSET","UTF-8");
+ if (!defined('_CHARSET_ISO'))
+ define ("_CHARSET_ISO","ISO-8859-1");
+
+ $GLOBALS['myts'] = MyTextSanitizer::getInstance();
+
+ $module_handler = xoops_gethandler('module');
+ $config_handler = xoops_gethandler('config');
+ $GLOBALS['vodModule'] = $module_handler->getByDirname('vod');
+ $GLOBALS['vodModuleConfig'] = $config_handler->getConfigList($GLOBALS['vodModule']->getVar('mid'));
+
+ xoops_load('pagenav');
+ xoops_load('xoopslists');
+ xoops_load('xoopsformloader');
+
+ include_once $GLOBALS['xoops']->path('class'.DS.'xoopsmailer.php');
+ include_once $GLOBALS['xoops']->path('class'.DS.'xoopstree.php');
+
+ if ( file_exists($GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php'))){
+ include_once $GLOBALS['xoops']->path('/Frameworks/moduleclasses/moduleadmin/moduleadmin.php');
+ //return true;
+ }else{
+ echo vod_error("Error: You don't use the Frameworks \"admin module\". Please install this Frameworks");
+ //return false;
+ }
+ $GLOBALS['vodImageIcon'] = XOOPS_URL .'/'. $GLOBALS['vodModule']->getInfo('icons16');
+ $GLOBALS['vodImageAdmin'] = XOOPS_URL .'/'. $GLOBALS['vodModule']->getInfo('icons32');
+
+ if ($GLOBALS['xoopsUser']) {
+ $moduleperm_handler =& xoops_gethandler('groupperm');
+ if (!$moduleperm_handler->checkRight('module_admin', $GLOBALS['vodModule']->getVar( 'mid' ), $GLOBALS['xoopsUser']->getGroups())) {
+ redirect_header(XOOPS_URL, 1, _NOPERM);
+ exit();
+ }
+ } else {
+ redirect_header(XOOPS_URL . "/user.php", 1, _NOPERM);
+ exit();
+ }
+
+ if (!isset($GLOBALS['xoopsTpl']) || !is_object($GLOBALS['xoopsTpl'])) {
+ include_once(XOOPS_ROOT_PATH."/class/template.php");
+ $GLOBALS['xoopsTpl'] = new XoopsTpl();
+ }
+
+ $GLOBALS['xoopsTpl']->assign('pathImageIcon', $GLOBALS['vodImageIcon']);
+ $GLOBALS['xoopsTpl']->assign('pathImageAdmin', $GLOBALS['vodImageAdmin']);
+
+
+ require_once('../include/functions.php');
+ require_once('../include/formobjects.vod.php');
+ require_once('../include/forms.vod.php');
+
+ include_once(dirname(dirname(__FILE__)).'/language/'.$GLOBALS['xoopsConfig']['language'].'/modinfo.php');
+ include_once(dirname(dirname(__FILE__)).'/language/'.$GLOBALS['xoopsConfig']['language'].'/forms.php');
+
+
+?>
\ No newline at end of file
Added: XoopsModules/vod/releases/1.16/htdocs/modules/vod/admin/index.html
===================================================================
--- XoopsModules/vod/releases/1.16/htdocs/modules/vod/admin/index.html (rev 0)
+++ XoopsModules/vod/releases/1.16/htdocs/modules/vod/admin/index.html 2012-01-26 19:52:47 UTC (rev 8818)
@@ -0,0 +1 @@
+ <script>history.go(-1);</script>
\ No newline at end of file
Added: XoopsModules/vod/releases/1.16/htdocs/modules/vod/admin/index.php
===================================================================
--- XoopsModules/vod/releases/1.16/htdocs/modules/vod/admin/index.php (rev 0)
+++ XoopsModules/vod/releases/1.16/htdocs/modules/vod/admin/index.php 2012-01-26 19:52:47 UTC (rev 8818)
@@ -0,0 +1,997 @@
+<?php
+
+ include('header.php');
+
+ xoops_loadLanguage('admin', 'vod');
+
+ xoops_cp_header();
+
+ $op = isset($_REQUEST['op'])?$_REQUEST['op']:"dashboard";
+ $fct = isset($_REQUEST['fct'])?$_REQUEST['fct']:"";
+ $limit = !empty($_REQUEST['limit'])?intval($_REQUEST['limit']):30;
+ $start = !empty($_REQUEST['start'])?intval($_REQUEST['start']):0;
+ $order = !empty($_REQUEST['order'])?$_REQUEST['order']:'DESC';
+ $sort = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created';
+ $filter = !empty($_REQUEST['filter'])?''.$_REQUEST['filter'].'':'1,1';
+
+ switch($op) {
+ case "dashboard":
+ default:
+ vod_adminMenu(0, 'index.php?op=dashboard');
+
+ $videos_handler = xoops_getmodulehandler('videos', 'vod');
+ $mimetypes_handler = xoops_getmodulehandler('mimetypes', 'vod');
+ $indexAdmin = new ModuleAdmin();
+ $indexAdmin->addInfoBox(_AM_VOD_ADMIN_COUNTS);
+ $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_FLATFILES."</label>", $videos_handler->getCount(new Criteria('stream', '0', '=')), 'Green');
+ $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_RTMPSTREAMS."</label>", $videos_handler->getCount(new Criteria('LENGTH(`rtmp`)', '0', '>')), 'Green');
+ $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_RTSPSTREAMS."</label>", $videos_handler->getCount(new Criteria('LENGTH(`rtsp`)', '0', '>')), 'Green');
+ $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_FLASHSTREAMS."</label>", $videos_handler->getCount(new Criteria('LENGTH(`flash`)', '0', '>')), 'Green');
+ $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_SILVERLIGHTSTREAMS."</label>", $videos_handler->getCount(new Criteria('LENGTH(`silverlight`)', '0', '>')), 'Green');
+ $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_IOSSTREAMS."</label>", $videos_handler->getCount(new Criteria('LENGTH(`ios`)', '0', '>')), 'Green');
+ $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_HTTPSTREAMS."</label>", $videos_handler->getCount(new Criteria('LENGTH(`http`)', '0', '>')), 'Green');
+ $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_COUNTS, "<label>"._AM_VOD_ADMIN_THEREARE_MIMETYPES."</label>", $mimetypes_handler->getCount(), 'Purple');
+ $videos = $videos_handler->getObjects(new Criteria('`default`', '1'), false);
+ if (is_object($videos[0])) {
+ $videos = $videos[0];
+ $_SESSION['vod'][$videos->getVar('vid')]['main'] = true;
+ $indexAdmin->addInfoBox(_AM_VOD_ADMIN_DEFAULT);
+ $indexAdmin->addInfoBoxLine(_AM_VOD_ADMIN_DEFAULT, "<iframe src='".XOOPS_URL.'/modules/vod/?&state=admin&preview=0&vid='.$videos->getVar('vid')."&iframe=1&width=320px&height=200px' style='width:320px;height:200px;'></iframe>", '', 'Green');
+ }
+ echo $indexAdmin->renderIndex();
+ break;
+ case "about":
+ echo vod_adminMenu(9, 'index.php?op=about');
+ $paypalitemno='VOD106';
+ $aboutAdmin = new ModuleAdmin();
+ $about = $aboutAdmin->renderabout($paypalitemno, false);
+ $donationform = array( 0 => '<form name="donation" id="donation" action="http://www.chronolabs.coop/modules/xpayment/" method="post" onsubmit="return xoopsFormValidate_donation();">',
+ 1 => '<table class="outer" cellspacing="1" width="100%"><tbody><tr><th colspan="2">'.constant('_AM_TWITTERBOMB_ABOUT_MAKEDONATE').'</th></tr><tr align="left" valign="top"><td class="head"><div class="xoops-form-element-caption-required"><span class="caption-text">Donation Amount</span><span class="caption-marker">*</span></div></td><td class="even"><select size="1" name="item[A][amount]" id="item[A][amount]" title="Donation Amount"><option value="5">5.00 AUD</option><option value="10">10.00 AUD</option><option value="20">20.00 AUD</option><option value="40">40.00 AUD</option><option value="60">60.00 AUD</option><option value="80">80.00 AUD</option><option value="90">90.00 AUD</option><option value="100">100.00 AUD</option><option value="200">200.00 AUD</option></select></td></tr><tr align="left" valign="top"><td class="head"></td><td class="even"><input class="formButton" name="submit" id="submit" value="'._SUBMIT.'" title="'._SUBMIT.'" type="submit"></td></tr></tbody></table>',
+ 2 => '<input name="op" id="op" value="createinvoice" type="hidden"><input name="plugin" id="plugin" value="donations" type="hidden"><input name="donation" id="donation" value="1" type="hidden"><input name="drawfor" id="drawfor" value="Chronolabs Co-Operative" type="hidden"><input name="drawto" id="drawto" value="%s" type="hidden"><input name="drawto_email" id="drawto_email" value="%s" type="hidden"><input name="key" id="key" value="%s" type="hidden"><input name="currency" id="currency" value="AUD" type="hidden"><input name="weight_unit" id="weight_unit" value="kgs" type="hidden"><input name="item[A][cat]" id="item[A][cat]" value="XDN%s" type="hidden"><input name="item[A][name]" id="item[A][name]" value="Donation for %s" type="hidden"><input name="item[A][quantity]" id="item[A][quantity]" value="1" type="hidden"><input name="item[A][shipping]" id="item[A][shipping]" value="0" type="hidden"><input name="item[A][handling]" id="item[A][handling]" value="0" type="hidden"><input name="item[A][weight]" id="item[A][weight]" value="0" type="hidden"><input name="item[A][tax]" id="item[A][tax]" value="0" type="hidden"><input name="return" id="return" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"><input name="cancel" id="cancel" value="http://www.chronolabs.coop/modules/donations/success.php" type="hidden"></form>', 'D'=>'',
+ 3 => '',
+ 4 => '<!-- Start Form Validation JavaScript //-->
+<script type="text/javascript">
+<!--//
+function xoopsFormValidate_donation() { var myform = window.document.donation;
+var hasSelected = false; var selectBox = myform.item[A][amount];for (i = 0; i < selectBox.options.length; i++ ) { if (selectBox.options[i].selected == true && selectBox.options[i].value != \'\') { hasSelected = true; break; } }if (!hasSelected) { window.alert("Please enter Donation Amount"); selectBox.focus(); return false; }return true;
+}
+//--></script>
+<!-- End Form Validation JavaScript //-->');
+ $paypalform = array( 0 => '<form action="https://www.paypal.com/cgi-bin/webscr" method="post">',
+ 1 => '<input name="cmd" value="_s-xclick" type="hidden">',
+ 2 => '<input name="hosted_button_id" value="%s" type="hidden">',
+ 3 => '<img alt="" src="https://www.paypal.com/fr_FR/i/scr/pixel.gif" height="1" border="0" width="1">',
+ 4 => '<input src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" name="submit" alt="PayPal - The safer, easier way to pay online!" border="0" type="poster">',
+ 5 => '</form>');
+ for($key=0;$key<=4;$key++) {
+ switch ($key) {
+ case 2:
+ $donationform[$key] = sprintf($donationform[$key], $GLOBALS['xoopsConfig']['sitename'] . ' - ' . (strlen($GLOBALS['xoopsUser']->getVar('name'))>0?$GLOBALS['xoopsUser']->getVar('name'). ' ['.$GLOBALS['xoopsUser']->getVar('uname').']':$GLOBALS['xoopsUser']->getVar('uname')), $GLOBALS['xoopsUser']->getVar('email'), XOOPS_LICENSE_KEY, strtoupper($GLOBALS['vodModule']->getVar('dirname')), strtoupper($GLOBALS['vodModule']->getVar('dirname')). ' '.$GLOBALS['vodModule']->getVar('name'));
+ break;
+ }
+ }
+
+ $istart = strpos($about, ($paypalform[0]), 1);
+ $iend = strpos($about, ($paypalform[5]), $istart+1)+strlen($paypalform[5])-1;
+ echo (substr($about, 0, $istart-1));
+ echo implode("\n", $donationform);
+ echo (substr($about, $iend+1, strlen($about)-$iend-1));
+ break;
+ case "agents":
+ vod_adminMenu(6, 'index.php?op=agents');
+
+ include_once $GLOBALS['xoops']->path( "/class/pagenav.php" );
+ xoops_load('XoopsCache');
+ $ret = XoopsCache::read('vod_user_agents');
+ asort($ret, SORT_DESC);
+ $ttl = count($ret);
+ $pagenav = new XoopsPageNav($ttl, $limit, $start, 'start', 'limit='.$limit.'&sort='.$sort.'&order='.$order.'&op='.$op.'&fct='.$fct.'&filter='.$filter.'&fct='.$fct.'&filter='.$filter);
+ $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav());
+ foreach (array( 'time','videos','agents','user') as $id => $key) {
+ $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="#">'.(defined('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))).'</a>');
+ }
+ $GLOBALS['xoopsTpl']->assign('limit', $limit);
+ $GLOBALS['xoopsTpl']->assign('start', $start);
+ $GLOBALS['xoopsTpl']->assign('order', $order);
+ $GLOBALS['xoopsTpl']->assign('sort', $sort);
+ $GLOBALS['xoopsTpl']->assign('filter', $filter);
+ $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['vodModuleConfig']);
+ $s=0;
+ $i=0;
+ foreach($ret as $time => $agent) {
+ if (is_array($agent)&&$s>=$start&&$i<=$limit) {
+ $GLOBALS['xoopsTpl']->append('useragents', array('time'=>date(_DATESTRING, $time), 'videos'=>$agent['videos'], 'user'=>$agent['user'], 'useragent'=>$agent['useragent']));
+ $i++;
+ }
+ $s++;
+ }
+ $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']);
+ $GLOBALS['xoopsTpl']->display('db:vod_cpanel_useragents_list.html');
+ break;
+
+ case "currency":
+ switch ($fct)
+ {
+ default:
+ case "list":
+ vod_adminMenu(5, 'index.php?op=currency&fct=list');
+
+ include_once $GLOBALS['xoops']->path( "/class/pagenav.php" );
+
+ $currency_handler =& xoops_getmodulehandler('currency', 'vod');
+
+ $criteria = $currency_handler->getFilterCriteria($GLOBALS['filter']);
+ $ttl = $currency_handler->getCount($criteria);
+ $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created';
+
+ $pagenav = new XoopsPageNav($ttl, $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].'&sort='.$GLOBALS['sort'].'&order='.$GLOBALS['order'].'&op='.$GLOBALS['op'].'&fct='.$GLOBALS['fct'].'&filter='.$GLOBALS['filter']);
+ $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav());
+
+ foreach ($currency_handler->filterFields() as $id => $key) {
+ $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].'&sort='.$key.'&order='.(($key==$GLOBALS['sort'])?($GLOBALS['order']=='DESC'?'ASC':'DESC'):$GLOBALS['order']).'&op='.$GLOBALS['op'].'&filter='.$GLOBALS['filter'].'">'.(defined('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))).'</a>');
+ $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $currency_handler->getFilterForm($GLOBALS['filter'], $key, $GLOBALS['sort'], $GLOBALS['op'], $GLOBALS['fct']));
+ }
+
+ $GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']);
+ $GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']);
+ $GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']);
+ $GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']);
+ $GLOBALS['xoopsTpl']->assign('filter', $GLOBALS['filter']);
+ $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['vodModuleConfig']);
+
+ $criteria->setStart($GLOBALS['start']);
+ $criteria->setLimit($GLOBALS['limit']);
+ $criteria->setSort('`'.$GLOBALS['sort'].'`');
+ $criteria->setOrder($GLOBALS['order']);
+
+ $currencys = $currency_handler->getObjects($criteria, true);
+ foreach($currencys as $cid => $currency) {
+ if (is_object($currency))
+ $GLOBALS['xoopsTpl']->append('currency', $currency->toArray());
+ }
+ $GLOBALS['xoopsTpl']->assign('form', vod_currency_get_form(false));
+ $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']);
+ $GLOBALS['xoopsTpl']->display('db:vod_cpanel_currency_list.html');
+ break;
+
+ case "new":
+ case "edit":
+
+ vod_adminMenu(5, 'index.php?op=currency&fct=list');
+
+ include_once $GLOBALS['xoops']->path( "/class/pagenav.php" );
+
+ $currency_handler =& xoops_getmodulehandler('currency', 'vod');
+ if (isset($_REQUEST['id'])) {
+ $currency = $currency_handler->get(intval($_REQUEST['id']));
+ } else {
+ $currency = $currency_handler->create();
+ }
+
+ $GLOBALS['xoopsTpl']->assign('form', $currency->getForm());
+ $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']);
+ $GLOBALS['xoopsTpl']->display('db:vod_cpanel_currency_edit.html');
+ break;
+ case "save":
+
+ $currency_handler =& xoops_getmodulehandler('currency', 'vod');
+ $id=0;
+ if ($id=intval($_REQUEST['id'])) {
+ $currency = $currency_handler->get($id);
+ } else {
+ $currency = $currency_handler->create();
+ }
+ $currency->setVars($_POST[$id]);
+ if (!$id=$currency_handler->insert($currency)) {
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_FAILEDTOSAVE);
+ exit(0);
+ } else {
+ if ($_REQUEST['state'][$_REQUEST['id']]=='new')
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=edit&id='.$_REQUEST['id'] . '&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_SAVEDOKEY);
+ else
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_SAVEDOKEY);
+ exit(0);
+ }
+ break;
+ case "savelist":
+
+ $currency_handler =& xoops_getmodulehandler('currency', 'vod');
+ foreach($_REQUEST['id'] as $id) {
+ $currency = $currency_handler->get($id);
+ $currency->setVars($_POST[$id]);
+ if (!$currency_handler->insert($currency)) {
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_FAILEDTOSAVE);
+ exit(0);
+ }
+ }
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_SAVEDOKEY);
+ exit(0);
+ break;
+ case "delete":
+
+ $currency_handler =& xoops_getmodulehandler('currency', 'vod');
+ $id=0;
+ if (isset($_POST['id'])&&$id=intval($_POST['id'])) {
+ $currency = $currency_handler->get($id);
+ if (!$currency_handler->delete($currency)) {
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_FAILEDTODELETE);
+ exit(0);
+ } else {
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CURRENCY_DELETED);
+ exit(0);
+ }
+ } else {
+ $currency = $currency_handler->get(intval($_REQUEST['id']));
+ xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), $_SERVER['PHP_SELF'], sprintf(_AM_VOD_MSG_CURRENCY_DELETE, $currency->getVar('name')));
+ }
+ break;
+ }
+ break;
+ case "category":
+ switch ($fct)
+ {
+ default:
+ case "list":
+ vod_adminMenu(2, 'index.php?op=category&fct=list');
+
+ include_once $GLOBALS['xoops']->path( "/class/pagenav.php" );
+
+ $category_handler =& xoops_getmodulehandler('category', 'vod');
+
+ $criteria = $category_handler->getFilterCriteria($GLOBALS['filter']);
+ $ttl = $category_handler->getCount($criteria);
+ $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created';
+
+ $pagenav = new XoopsPageNav($ttl, $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].'&sort='.$GLOBALS['sort'].'&order='.$GLOBALS['order'].'&op='.$GLOBALS['op'].'&fct='.$GLOBALS['fct'].'&filter='.$GLOBALS['filter']);
+ $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav());
+
+ foreach ($category_handler->filterFields() as $id => $key) {
+ $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].'&sort='.$key.'&order='.(($key==$GLOBALS['sort'])?($GLOBALS['order']=='DESC'?'ASC':'DESC'):$GLOBALS['order']).'&op='.$GLOBALS['op'].'&filter='.$GLOBALS['filter'].'">'.(defined('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))).'</a>');
+ $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $category_handler->getFilterForm($GLOBALS['filter'], $key, $GLOBALS['sort'], $GLOBALS['op'], $GLOBALS['fct']));
+ }
+
+ $GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']);
+ $GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']);
+ $GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']);
+ $GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']);
+ $GLOBALS['xoopsTpl']->assign('filter', $GLOBALS['filter']);
+ $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['vodModuleConfig']);
+
+ $criteria->setStart($GLOBALS['start']);
+ $criteria->setLimit($GLOBALS['limit']);
+ $criteria->setSort('`'.$GLOBALS['sort'].'`');
+ $criteria->setOrder($GLOBALS['order']);
+
+ $categorys = $category_handler->getObjects($criteria, true);
+ foreach($categorys as $cid => $category) {
+ if (is_object($category))
+ $GLOBALS['xoopsTpl']->append('category', $category->toArray());
+ }
+ $GLOBALS['xoopsTpl']->assign('form', vod_category_get_form(false));
+ $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']);
+ $GLOBALS['xoopsTpl']->display('db:vod_cpanel_category_list.html');
+ break;
+
+ case "new":
+ case "edit":
+
+ vod_adminMenu(2, 'index.php?op=category&fct=list');
+
+ include_once $GLOBALS['xoops']->path( "/class/pagenav.php" );
+
+ $category_handler =& xoops_getmodulehandler('category', 'vod');
+ if (isset($_REQUEST['id'])) {
+ $category = $category_handler->get(intval($_REQUEST['id']));
+ } else {
+ $category = $category_handler->create();
+ }
+
+ $GLOBALS['xoopsTpl']->assign('form', $category->getForm());
+ $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']);
+ $GLOBALS['xoopsTpl']->display('db:vod_cpanel_category_edit.html');
+ break;
+ case "save":
+
+ $category_handler =& xoops_getmodulehandler('category', 'vod');
+ $id=0;
+ if ($id=intval($_REQUEST['id'])) {
+ $category = $category_handler->get($id);
+ } else {
+ $category = $category_handler->create();
+ }
+ $category->setVars($_POST[$id]);
+ if (!$id=$category_handler->insert($category)) {
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_FAILEDTOSAVE);
+ exit(0);
+ } else {
+ if (isset($_FILES['avata'])&&!empty($_FILES['avata']['name'])) {
+ if (!is_dir($GLOBALS['xoops']->path($GLOBALS['vodModuleConfig']['upload_areas']))) {
+ foreach(explode('\\', $GLOBALS['xoops']->path($GLOBALS['vodModuleConfig']['upload_areas'])) as $folders)
+ foreach(explode('/', $folders) as $folder) {
+ $path .= DS . $folder;
+ mkdir($path, 0777);
+ }
+ }
+ include_once($GLOBALS['xoops']->path('modules/vod/include/uploader.php'));
+ $category = $category_handler->get($id);
+ $uploader = new VodMediaUploader($GLOBALS['xoops']->path($GLOBALS['vodModuleConfig']['upload_areas']), explode('|', $GLOBALS['vodModuleConfig']['allowed_mimetype']), $GLOBALS['vodModuleConfig']['filesize_upload'], 0, 0, explode('|', $GLOBALS['vodModuleConfig']['allowed_extensions']));
+ $uploader->setPrefix(substr(md5(microtime(true)), mt_rand(0,20), 13));
+ if ($uploader->fetchMedia('avata')) {
+ if (!$uploader->upload()) {
+ vod_adminMenu(1);
+ echo $uploader->getErrors();
+ vod_footer_adminMenu();
+ xoops_cp_footer();
+ exit(0);
+ } else {
+
+ if (strlen($category->getVar('avata')))
+ unlink($GLOBALS['xoops']->path($category->getVar('path')).$category->getVar('avata'));
+
+ $category->setVar('path', $GLOBALS['vodModuleConfig']['upload_areas']);
+ $category->setVar('avata', $uploader->getSavedFileName());
+ @$category_handler->insert($category);
+ }
+ } else {
+ vod_adminMenu(1);
+ echo $uploader->getErrors();
+ vod_footer_adminMenu();
+ xoops_cp_footer();
+ exit(0);
+ }
+ }
+ if ($_REQUEST['state'][$_REQUEST['id']]=='new')
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=edit&id='.$_REQUEST['id'] . '&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_SAVEDOKEY);
+ else
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_SAVEDOKEY);
+ exit(0);
+ }
+ break;
+ case "savelist":
+
+ $category_handler =& xoops_getmodulehandler('category', 'vod');
+ foreach($_REQUEST['id'] as $id) {
+ $category = $category_handler->get($id);
+ $category->setVars($_POST[$id]);
+ if (!$category_handler->insert($category)) {
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_FAILEDTOSAVE);
+ exit(0);
+ }
+ }
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_SAVEDOKEY);
+ exit(0);
+ break;
+ case "delete":
+
+ $category_handler =& xoops_getmodulehandler('category', 'vod');
+ $id=0;
+ if (isset($_POST['id'])&&$id=intval($_POST['id'])) {
+ $category = $category_handler->get($id);
+ if (!$category_handler->delete($category)) {
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_FAILEDTODELETE);
+ exit(0);
+ } else {
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_CATEGORY_DELETED);
+ exit(0);
+ }
+ } else {
+ $category = $category_handler->get(intval($_REQUEST['id']));
+ xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), $_SERVER['PHP_SELF'], sprintf(_AM_VOD_MSG_CATEGORY_DELETE, $category->getVar('name')));
+ }
+ break;
+ }
+ break;
+
+ case "sessions":
+ switch ($fct)
+ {
+ default:
+ case "list":
+ vod_adminMenu(3, 'index.php?op=sessions&fct=list');
+
+ include_once $GLOBALS['xoops']->path( "/class/pagenav.php" );
+
+ $sessions_handler =& xoops_getmodulehandler('sessions', 'vod');
+
+ $criteria = $sessions_handler->getFilterCriteria($GLOBALS['filter']);
+ $ttl = $sessions_handler->getCount($criteria);
+ $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created';
+
+ $pagenav = new XoopsPageNav($ttl, $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].'&sort='.$GLOBALS['sort'].'&order='.$GLOBALS['order'].'&op='.$GLOBALS['op'].'&fct='.$GLOBALS['fct'].'&filter='.$GLOBALS['filter']);
+ $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav());
+
+ foreach ($sessions_handler->filterFields() as $id => $key) {
+ $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].'&sort='.$key.'&order='.(($key==$GLOBALS['sort'])?($GLOBALS['order']=='DESC'?'ASC':'DESC'):$GLOBALS['order']).'&op='.$GLOBALS['op'].'&filter='.$GLOBALS['filter'].'">'.(defined('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))).'</a>');
+ $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $sessions_handler->getFilterForm($GLOBALS['filter'], $key, $GLOBALS['sort'], $GLOBALS['op'], $GLOBALS['fct']));
+ }
+
+ $GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']);
+ $GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']);
+ $GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']);
+ $GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']);
+ $GLOBALS['xoopsTpl']->assign('filter', $GLOBALS['filter']);
+ $GLOBALS['xoopsTpl']->assign('xoConfig', $GLOBALS['vodModuleConfig']);
+
+ $criteria->setStart($GLOBALS['start']);
+ $criteria->setLimit($GLOBALS['limit']);
+ $criteria->setSort('`'.$GLOBALS['sort'].'`');
+ $criteria->setOrder($GLOBALS['order']);
+
+ $sessions = $sessions_handler->getObjects($criteria, true);
+ foreach($sessions as $cid => $session) {
+ if (is_object($session))
+ $GLOBALS['xoopsTpl']->append('sessions', $session->toArray());
+ }
+ $GLOBALS['xoopsTpl']->assign('form', vod_sessions_get_form(false));
+ $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']);
+ $GLOBALS['xoopsTpl']->display('db:vod_cpanel_sessions_list.html');
+ break;
+
+ case "new":
+ case "edit":
+
+ vod_adminMenu(3, 'index.php?op=sessions&fct=list');
+
+ include_once $GLOBALS['xoops']->path( "/class/pagenav.php" );
+
+ $sessions_handler =& xoops_getmodulehandler('sessions', 'vod');
+ if (isset($_REQUEST['id'])) {
+ $sessions = $sessions_handler->get(intval($_REQUEST['id']));
+ } else {
+ $sessions = $sessions_handler->create();
+ }
+
+ $GLOBALS['xoopsTpl']->assign('form', $sessions->getForm());
+ $GLOBALS['xoopsTpl']->assign('php_self', $_SERVER['PHP_SELF']);
+ $GLOBALS['xoopsTpl']->display('db:vod_cpanel_sessions_edit.html');
+ break;
+ case "save":
+
+ $sessions_handler =& xoops_getmodulehandler('sessions', 'vod');
+ $id=0;
+ if ($id=intval($_REQUEST['id'])) {
+ $sessions = $sessions_handler->get($id);
+ } else {
+ $sessions = $sessions_handler->create();
+ }
+ $sessions->setVars($_POST[$id]);
+ if (!$id=$sessions_handler->insert($sessions)) {
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_SESSIONS_FAILEDTOSAVE);
+ exit(0);
+ } else {
+ if ($_REQUEST['state'][$_REQUEST['id']]=='new')
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=edit&id='.$_REQUEST['id'] . '&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_SESSIONS_SAVEDOKEY);
+ else
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_SESSIONS_SAVEDOKEY);
+ exit(0);
+ }
+ break;
+ case "savelist":
+
+ $sessions_handler =& xoops_getmodulehandler('sessions', 'vod');
+ foreach($_REQUEST['id'] as $id) {
+ $sessions = $sessions_handler->get($id);
+ $sessions->setVars($_POST[$id]);
+ if (!$sessions_handler->insert($sessions)) {
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_SESSIONS_FAILEDTOSAVE);
+ exit(0);
+ }
+ }
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_SESSIONS_SAVEDOKEY);
+ exit(0);
+ break;
+ case "delete":
+
+ $sessions_handler =& xoops_getmodulehandler('sessions', 'vod');
+ $id=0;
+ if (isset($_POST['id'])&&$id=intval($_POST['id'])) {
+ $sessions = $sessions_handler->get($id);
+ if (!$sessions_handler->delete($sessions)) {
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_SESSIONS_FAILEDTODELETE);
+ exit(0);
+ } else {
+ redirect_header($_SERVER['PHP_SELF'].'?op='.$GLOBALS['op'].'&fct=list&limit='.$GLOBALS['limit'].'&start='.$GLOBALS['start'].'&order='.$GLOBALS['order'].'&sort='.$GLOBALS['sort'].'&filter='.$GLOBALS['filter'], 10, _AM_VOD_MSG_SESSIONS_DELETED);
+ exit(0);
+ }
+ } else {
+ $sessions = $sessions_handler->get(intval($_REQUEST['id']));
+ xoops_confirm(array('id'=>$_REQUEST['id'], 'op'=>$_REQUEST['op'], 'fct'=>$_REQUEST['fct'], 'limit'=>$_REQUEST['limit'], 'start'=>$_REQUEST['start'], 'order'=>$_REQUEST['order'], 'sort'=>$_REQUEST['sort'], 'filter'=>$_REQUEST['filter']), $_SERVER['PHP_SELF'], sprintf(_AM_VOD_MSG_SESSIONS_DELETE, $sessions->getVar('name')));
+ }
+ break;
+ }
+ break;
+
+ case "cart":
+ switch ($fct)
+ {
+ default:
+ case "list":
+ vod_adminMenu(3, 'index.php?op=sessions&fct=list');
+
+ include_once $GLOBALS['xoops']->path( "/class/pagenav.php" );
+
+ $cart_handler =& xoops_getmodulehandler('cart', 'vod');
+
+ $criteria = $cart_handler->getFilterCriteria($GLOBALS['filter']);
+ $ttl = $cart_handler->getCount($criteria);
+ $GLOBALS['sort'] = !empty($_REQUEST['sort'])?''.$_REQUEST['sort'].'':'created';
+
+ $pagenav = new XoopsPageNav($ttl, $GLOBALS['limit'], $GLOBALS['start'], 'start', 'limit='.$GLOBALS['limit'].'&sort='.$GLOBALS['sort'].'&order='.$GLOBALS['order'].'&op='.$GLOBALS['op'].'&fct='.$GLOBALS['fct'].'&filter='.$GLOBALS['filter']);
+ $GLOBALS['xoopsTpl']->assign('pagenav', $pagenav->renderNav());
+
+ foreach ($cart_handler->filterFields() as $id => $key) {
+ $GLOBALS['xoopsTpl']->assign(strtolower(str_replace('-','_',$key).'_th'), '<a href="'.$_SERVER['PHP_SELF'].'?start='.$GLOBALS['start'].'&limit='.$GLOBALS['limit'].'&sort='.$key.'&order='.(($key==$GLOBALS['sort'])?($GLOBALS['order']=='DESC'?'ASC':'DESC'):$GLOBALS['order']).'&op='.$GLOBALS['op'].'&filter='.$GLOBALS['filter'].'">'.(defined('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key)))?constant('_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))):'_AM_VOD_TH_'.strtoupper(str_replace('-','_',$key))).'</a>');
+ $GLOBALS['xoopsTpl']->assign('filter_'.strtolower(str_replace('-','_',$key)).'_th', $cart_handler->getFilterForm($GLOBALS['filter'], $key, $GLOBALS['sort'], $GLOBALS['op'], $GLOBALS['fct']));
+ }
+
+ $GLOBALS['xoopsTpl']->assign('limit', $GLOBALS['limit']);
+ $GLOBALS['xoopsTpl']->assign('start', $GLOBALS['start']);
+ $GLOBALS['xoopsTpl']->assign('order', $GLOBALS['order']);
+ $GLOBALS['xoopsTpl']->assign('sort', $GLOBALS['sort']);
+ $GLOBALS['xoopsTpl...
[truncated message content] |
|
From: <dj...@us...> - 2012-01-26 18:05:54
|
Revision: 8817
http://xoops.svn.sourceforge.net/xoops/?rev=8817&view=rev
Author: djculex
Date: 2012-01-26 18:05:41 +0000 (Thu, 26 Jan 2012)
Log Message:
-----------
Renaming and prefixing functions
Modified Paths:
--------------
XoopsModules/smallworld/trunk/smallworld/class/adminclass.php
XoopsModules/smallworld/trunk/smallworld/class/db.php
XoopsModules/smallworld/trunk/smallworld/class/images.php
XoopsModules/smallworld/trunk/smallworld/class/mail.php
XoopsModules/smallworld/trunk/smallworld/class/profile.php
XoopsModules/smallworld/trunk/smallworld/class/wall.php
XoopsModules/smallworld/trunk/smallworld/comment_ajax.php
XoopsModules/smallworld/trunk/smallworld/editimages.php
XoopsModules/smallworld/trunk/smallworld/editprofile.php
XoopsModules/smallworld/trunk/smallworld/friends.php
XoopsModules/smallworld/trunk/smallworld/galleryshow.php
XoopsModules/smallworld/trunk/smallworld/include/functions.php
XoopsModules/smallworld/trunk/smallworld/index.php
XoopsModules/smallworld/trunk/smallworld/loadmore.php
XoopsModules/smallworld/trunk/smallworld/message_ajax.php
XoopsModules/smallworld/trunk/smallworld/partnersearch.php
XoopsModules/smallworld/trunk/smallworld/permalink.php
XoopsModules/smallworld/trunk/smallworld/register.php
XoopsModules/smallworld/trunk/smallworld/search.php
XoopsModules/smallworld/trunk/smallworld/smallworldshare.php
XoopsModules/smallworld/trunk/smallworld/stats.php
XoopsModules/smallworld/trunk/smallworld/userprofile.php
Modified: XoopsModules/smallworld/trunk/smallworld/class/adminclass.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/class/adminclass.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/class/adminclass.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -359,7 +359,7 @@
return $return;
}
- function sanitize($text) {
+ function Smallworld_sanitize($text) {
$text = htmlspecialchars($text, ENT_QUOTES);
//$text = preg_replace('/([^\s]{10})(?=[^\s])/m', '$1<br />', $text);
$myts = MyTextSanitizer::getInstance();
Modified: XoopsModules/smallworld/trunk/smallworld/class/db.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/class/db.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/class/db.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -141,53 +141,53 @@
}
if ($_POST['relationship'] != '2') {
- $partner = sanitize($_POST['partner']);
+ $partner = Smallworld_sanitize($_POST['partner']);
} else {
$partner = '';
}
$regdate = time();
$username = $user->uname();
- $realname = sanitize($_POST['realname']);
- $gender = sanitize($_POST['gender']);
- $intingender = sanitize(serialize($_POST['intingender']));
- $relationship = sanitize($_POST['relationship']);
- $searchrelat = sanitize(serialize($_POST['searchrelat']));
- $birthday = sanitize(euroToUsDate($_POST['birthday']));
- $birthplace = sanitize($_POST['birthplace']);
- $birthplace_lat = sanitize($_POST['birthplace_lat']);
- $birthplace_lng = sanitize($_POST['birthplace_lng']);
- $birthplace_country = sanitize($_POST['birthplace_country']);
- $birthplace_country_img = sanitize($_POST['birthplace_country_img']);
- $politic = sanitize($_POST['politic']);
- $religion = sanitize($_POST['religion']);
- $emailtype = sanitize(serialize($_POST['emailtype']));
- $screenname_type = sanitize(serialize($_POST['screenname_type']));
- $screenname = sanitize(serialize($_POST['screenname']));
- $mobile = sanitize($_POST['mobile']);
- $phone = sanitize($_POST['phone']);
- $adress = sanitize($_POST['adress']);
- $present_city = sanitize($_POST['present_city']);
- $present_lat = sanitize($_POST['present_lat']);
- $present_lng = sanitize($_POST['present_lng']);
- $present_country = sanitize($_POST['present_country']);
- $present_country_img = sanitize($_POST['present_country_img']);
- $website = sanitize($_POST['website']);
- $interests = sanitize($_POST['interests']);
- $music = sanitize($_POST['music']);
- $tvshow = sanitize($_POST['tvshow']);
- $movie = sanitize($_POST['movie']);
- $books = sanitize($_POST['books']);
- $aboutme = sanitize($_POST['aboutme']);
- $school_type = sanitize(serialize($_POST['school_type']));
- $school = sanitize(serialize($_POST['school']));
- $schoolstart = sanitize(serialize(DateOfArray ($_POST['schoolstart'])));
- $schoolstop = sanitize(serialize(DateOfArray ($_POST['schoolstop'])));
- $jobemployer = sanitize(serialize($_POST['employer']));
- $jobposition = sanitize(serialize($_POST['position']));
- $jobstart = sanitize(serialize(DateOfArray ($_POST['jobstart'])));
- $jobstop = sanitize(serialize(DateOfArray ($_POST['jobstop'])));
- $jobdescription = sanitize(serialize($_POST['description']));
+ $realname = Smallworld_sanitize($_POST['realname']);
+ $gender = Smallworld_sanitize($_POST['gender']);
+ $intingender = Smallworld_sanitize(serialize($_POST['intingender']));
+ $relationship = Smallworld_sanitize($_POST['relationship']);
+ $searchrelat = Smallworld_sanitize(serialize($_POST['searchrelat']));
+ $birthday = Smallworld_sanitize(Smallworld_euroToUsDate($_POST['birthday']));
+ $birthplace = Smallworld_sanitize($_POST['birthplace']);
+ $birthplace_lat = Smallworld_sanitize($_POST['birthplace_lat']);
+ $birthplace_lng = Smallworld_sanitize($_POST['birthplace_lng']);
+ $birthplace_country = Smallworld_sanitize($_POST['birthplace_country']);
+ $birthplace_country_img = Smallworld_sanitize($_POST['birthplace_country_img']);
+ $politic = Smallworld_sanitize($_POST['politic']);
+ $religion = Smallworld_sanitize($_POST['religion']);
+ $emailtype = Smallworld_sanitize(serialize($_POST['emailtype']));
+ $screenname_type = Smallworld_sanitize(serialize($_POST['screenname_type']));
+ $screenname = Smallworld_sanitize(serialize($_POST['screenname']));
+ $mobile = Smallworld_sanitize($_POST['mobile']);
+ $phone = Smallworld_sanitize($_POST['phone']);
+ $adress = Smallworld_sanitize($_POST['adress']);
+ $present_city = Smallworld_sanitize($_POST['present_city']);
+ $present_lat = Smallworld_sanitize($_POST['present_lat']);
+ $present_lng = Smallworld_sanitize($_POST['present_lng']);
+ $present_country = Smallworld_sanitize($_POST['present_country']);
+ $present_country_img = Smallworld_sanitize($_POST['present_country_img']);
+ $website = Smallworld_sanitize($_POST['website']);
+ $interests = Smallworld_sanitize($_POST['interests']);
+ $music = Smallworld_sanitize($_POST['music']);
+ $tvshow = Smallworld_sanitize($_POST['tvshow']);
+ $movie = Smallworld_sanitize($_POST['movie']);
+ $books = Smallworld_sanitize($_POST['books']);
+ $aboutme = Smallworld_sanitize($_POST['aboutme']);
+ $school_type = Smallworld_sanitize(serialize($_POST['school_type']));
+ $school = Smallworld_sanitize(serialize($_POST['school']));
+ $schoolstart = Smallworld_sanitize(serialize(Smallworld_DateOfArray ($_POST['schoolstart'])));
+ $schoolstop = Smallworld_sanitize(serialize(Smallworld_DateOfArray ($_POST['schoolstop'])));
+ $jobemployer = Smallworld_sanitize(serialize($_POST['employer']));
+ $jobposition = Smallworld_sanitize(serialize($_POST['position']));
+ $jobstart = Smallworld_sanitize(serialize(Smallworld_DateOfArray ($_POST['jobstart'])));
+ $jobstop = Smallworld_sanitize(serialize(Smallworld_DateOfArray ($_POST['jobstop'])));
+ $jobdescription = Smallworld_sanitize(serialize($_POST['description']));
$sql = '';
Modified: XoopsModules/smallworld/trunk/smallworld/class/images.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/class/images.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/class/images.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -30,9 +30,9 @@
} else {
mkdir($dir.'/'.$userID, 0777);
mkdir($dir.'/'.$userID."/thumbnails", 0777);
- CreateIndexFiles ($dir.'/');
- CreateIndexFiles($dir.'/'.$userID."/");
- CreateIndexFiles($dir.'/'.$userID."/thumbnails/");
+ Smallworld_CreateIndexFiles ($dir.'/');
+ Smallworld_CreateIndexFiles($dir.'/'.$userID."/");
+ Smallworld_CreateIndexFiles($dir.'/'.$userID."/thumbnails/");
}
}
@@ -52,8 +52,8 @@
$post[$i]['id'] = stripslashes($sqlfetch['id']);
$post[$i]['userid'] = stripslashes($sqlfetch['userid']);
$post[$i]['imgurl'] = stripslashes($sqlfetch['imgurl']);
- $post[$i]['desc'] = cleanup_string($sqlfetch['desc']);
- $post[$i]['alt'] = cleanup_string($sqlfetch['desc']);
+ $post[$i]['desc'] = Smallworld_cleanup_string($sqlfetch['desc']);
+ $post[$i]['alt'] = Smallworld_cleanup_string($sqlfetch['desc']);
$post[$i]['time'] = stripslashes($sqlfetch['time']);
$post[$i]['editimg'] = "<span class='smallworld_edit_imgdesc_holder'><img src='images/edit_icon.png'/></span> <a class='smallworld_edit_imgdesc' href='editimages.php'>"._SMALLWORLD_EDITDESCRIPTION."</a>";
$i++;
Modified: XoopsModules/smallworld/trunk/smallworld/class/mail.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/class/mail.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/class/mail.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -105,7 +105,7 @@
$ownermessage = stripslashes($this->getOwnerUpdateFromMsgID($data['msg_id_fk']));
- $owner = getOwnerFromComment ($data['msg_id_fk']);
+ $owner = Smallworld_getOwnerFromComment ($data['msg_id_fk']);
$OwnerUser = new xoopsUser($owner);
$Owner_avatar = $wall->Gravatar($owner);
$Owner_avatarlink = "<img class='left' src='".XOOPS_URL."/uploads/".$Owner_avatar."' height='90px' width='90px'>";
Modified: XoopsModules/smallworld/trunk/smallworld/class/profile.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/class/profile.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/class/profile.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -38,7 +38,7 @@
$uname = ucwords($r['username']);
$realname = $r['realname'];
$membersince = date("d-m-Y",$user->user_regdate());
- $birthday = UsToEuroDate($r['birthday']);
+ $birthday = Smallworld_UsToEuroDate($r['birthday']);
$cnt_bday = smallworldNextBdaySecs ($r['birthday']);
$birthcity = $r['birthplace'];
@@ -180,7 +180,7 @@
$adress = $r['adress'];
$website = $r['website'];
- $age = birthday($r['birthday']);
+ $age = Smallworld_Birthday($r['birthday']);
}
//SW_CheckIfUser ($userid);
Modified: XoopsModules/smallworld/trunk/smallworld/class/wall.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/class/wall.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/class/wall.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -125,7 +125,7 @@
//Insert Update
public function Insert_Update($uid, $update,$priv) {
global $xoopsUser, $xoopsDB;
- $update=sanitize(htmlentities($update, ENT_QUOTES,"UTF-8"));
+ $update=Smallworld_sanitize(htmlentities($update, ENT_QUOTES,"UTF-8"));
$time=time();
$query = "SELECT msg_id,message FROM ".$xoopsDB->prefix('smallworld_messages')." WHERE uid_fk='".$uid."' order by msg_id desc limit 1";
$result = $xoopsDB->queryF($query);
@@ -154,7 +154,7 @@
//Insert Comments
public function Insert_Comment($uid,$msg_id,$comment) {
global $xoopsUser, $xoopsDB;
- $comment=sanitize(htmlentities($comment, ENT_QUOTES,"UTF-8"));
+ $comment=Smallworld_sanitize(htmlentities($comment, ENT_QUOTES,"UTF-8"));
$time=time();
$query = "SELECT com_id,comment FROM ".$xoopsDB->prefix('smallworld_comments')." WHERE uid_fk='".$uid."' and msg_id_fk='".$msg_id."' order by com_id desc limit 1 ";
$result = $xoopsDB->fetchArray($query);
Modified: XoopsModules/smallworld/trunk/smallworld/comment_ajax.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/comment_ajax.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/comment_ajax.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -38,7 +38,7 @@
$tpl->assign('isadminuser', 'YES');
}
//$followers = $Wall->getFollowers($id);
- $followers = array_flatten($Wall->getFollowers($id),0);
+ $followers = Smallworld_array_flatten($Wall->getFollowers($id),0);
$myavatar = $Wall->Gravatar($id);
$myavatarlink = smallworld_getAvatarLink($id, $myavatar);
@@ -59,7 +59,7 @@
$wc['myavatar_link']= $myavatarlink;
$wc['cface'] = $Wall->Gravatar($data['uid_fk']);
$wc['avatar_link'] = smallworld_getAvatarLink ($data['uid_fk'], $wc['cface']);
- $wc['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".getOwnerFromComment($cdata['msg_id_fk']);
+ $wc['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".Smallworld_getOwnerFromComment($cdata['msg_id_fk']);
$wc['compl_msg_lnk'] .= "&updid=".$cdata['msg_id_fk']."#".$cdata['com_id']."'>"._SMALLWORLD_COMP_MSG_LNK_DESC."</a>";
$wc['vote_up'] = $Wall->countVotesCom ('com', 'up', $data['msg_id_fk'],$data['com_id']);
$wc['vote_down'] = $Wall->countVotesCom ('com', 'down', $data['msg_id_fk'],$data['com_id']);
@@ -75,7 +75,7 @@
$parts = $mail->getPartsFromComment ($data['msg_id_fk']);
$emails = "";
foreach ($parts as $k=>$v) {
- $owner = getOwnerFromComment ($data['msg_id_fk']);
+ $owner = Smallworld_getOwnerFromComment ($data['msg_id_fk']);
if(smallworld_GetModuleOption('smallworldusemailnotis', $repmodule='smallworld') != 0) {
$mail->sendMails ($data['uid_fk'], $v, 'commentToWM', $link=null, $wc);
}
Modified: XoopsModules/smallworld/trunk/smallworld/editimages.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/editimages.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/editimages.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -30,7 +30,7 @@
$userID = $xoopsUser->getVar('uid');
// Check if inspected userid -> redirect to userprofile and show admin countdown
- $inspect = isInspected ($userID);
+ $inspect = Smallworld_isInspected ($userID);
if ($inspect['inspect'] == 'yes') {
redirect_header("userprofile.php?username=".$xoopsUser->getVar('uname'), 1);
}
Modified: XoopsModules/smallworld/trunk/smallworld/editprofile.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/editprofile.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/editprofile.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -33,7 +33,7 @@
// Check if inspected userid -> redirect to userprofile and show admin countdown
/*
- $inspect = isInspected ($id);
+ $inspect = Smallworld_isInspected ($id);
if ($inspect['inspect'] == 'yes') {
redirect_header("userprofile.php?username=".$xoopsUser->getVar('uname'), 1);
}
@@ -97,7 +97,7 @@
if (smallworldGetValfromArray ('birthday', 'smallworldusethesefields') != 0) {
// Select Birthday dd-mm-Y
- $birthday = $item->input('birthday', 'birthday', 'birthday',$size='12', $preset=stripslashes(UsToEuroDate($r['birthday'])));
+ $birthday = $item->input('birthday', 'birthday', 'birthday',$size='12', $preset=stripslashes(Smallworld_UsToEuroDate($r['birthday'])));
$xoopsTpl->append('birthdaydate',$birthday);
} else {
$xoopsTpl->assign('show_birthday','no');
Modified: XoopsModules/smallworld/trunk/smallworld/friends.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/friends.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/friends.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -36,7 +36,7 @@
$friends = new SmallWorldFriends;
// Check if inspected userid -> redirect to userprofile and show admin countdown
- $inspect = isInspected ($yourid);
+ $inspect = Smallworld_isInspected ($yourid);
if ($inspect['inspect'] == 'yes') {
redirect_header("userprofile.php?username=".$xoopsUser->getVar('uname'), 1);
}
@@ -115,7 +115,7 @@
if (!empty($pending_array)) {
foreach ($pending_array as $data) {
$fp['friend_id'] = $data['you'];
- $fp['friendname'] = getName($data['you']);
+ $fp['friendname'] = Smallworld_getName($data['you']);
$fp['avatar'] = $Wall->Gravatar($data['you']);
$fp['avatar_link'] = smallworld_getAvatarLink ($data['you'], $fp['avatar']);
$xoopsTpl->append('pendingfriends', $fp);
@@ -127,7 +127,7 @@
if (!empty($friends_array)) {
foreach ($friends_array as $data) {
$ff['friend_id'] = $data['you'];
- $ff['friendname'] = getName($data['you']);
+ $ff['friendname'] = Smallworld_getName($data['you']);
$ff['avatar'] = $Wall->Gravatar($data['you']);
$ff['avatar_link'] = smallworld_getAvatarLink ($data['you'], $ff['avatar']);
$xoopsTpl->append('verifiedfriends', $ff);
@@ -139,7 +139,7 @@
if (!empty($following_array)) {
foreach ($following_array as $data) {
$fy['friend_id'] = $data['you'];
- $fy['friendname'] = getName($data['you']);
+ $fy['friendname'] = Smallworld_getName($data['you']);
$fy['avatar'] = $Wall->Gravatar($data['you']);
$fy['avatar_link'] = smallworld_getAvatarLink ($data['you'], $fy['avatar']);
$xoopsTpl->append('followingyou', $fy);
@@ -151,7 +151,7 @@
if (!empty($followingme_array)) {
foreach ($followingme_array as $data) {
$fm['friend_id'] = $data['me'];
- $fm['friendname'] = getName($data['me']);
+ $fm['friendname'] = Smallworld_getName($data['me']);
$fm['avatar'] = $Wall->Gravatar($data['me']);
$fm['avatar_link'] = smallworld_getAvatarLink ($data['me'], $fm['avatar']);
$xoopsTpl->append('followingme', $fm);
Modified: XoopsModules/smallworld/trunk/smallworld/galleryshow.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/galleryshow.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/galleryshow.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -42,7 +42,7 @@
$image = new SmallWorldImages;
// Check if inspected userid -> redirect to userprofile and show admin countdown
- $inspect = isInspected ($id);
+ $inspect = Smallworld_isInspected ($id);
if ($inspect['inspect'] == 'yes') {
redirect_header("userprofile.php?username=".$xoopsUser->getVar('uname'), 1);
}
Modified: XoopsModules/smallworld/trunk/smallworld/include/functions.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/include/functions.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/include/functions.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -37,20 +37,20 @@
// Clean vars or arrays
// If array check for magicQuotes.
-// Pass string to cleanup_string
-function cleanup($text) {
+// Pass string to Smallworld_cleanup_string
+function Smallworld_cleanup($text) {
if (is_array($text)) {
foreach ($text as $key => $value) {
- $text[$key] = cleanup_string($value);
+ $text[$key] = Smallworld_cleanup_string($value);
}
} else {
- $text = cleanup_string($text);
+ $text = Smallworld_cleanup_string($text);
}
return $text;
}
// Sanitize string
-function cleanup_string($text) {
+function Smallworld_cleanup_string($text) {
$text = htmlspecialchars($text, ENT_QUOTES);
$myts = MyTextSanitizer::getInstance();
$text = $myts->displayTarea($text,1,1,1,1);
@@ -62,19 +62,19 @@
}
// clean Array for mysql insertion
-// or send string to sanitize_string
-function sanitize ($text) {
+// or send string to Smallworld_sanitize_string
+function Smallworld_sanitize ($text) {
if (is_array($text)) {
foreach ($text as $key => $value) {
- $text[$key] = sanitize_string($value);
+ $text[$key] = Smallworld_sanitize_string($value);
}
} else {
- $text = sanitize_string($text);
+ $text = Smallworld_sanitize_string($text);
}
return $text;
}
-function sanitize_string ($value) {
+function Smallworld_sanitize_string ($value) {
$myts = MyTextSanitizer::getInstance();
if(get_magic_quotes_gpc()){
$value = $myts->stripSlashesGPC($value);
@@ -84,7 +84,7 @@
return $value;
}
-function DateOfArray ($array) {
+function Smallworld_DateOfArray ($array) {
$data = array();
foreach ($array as $k => $v) {
$data[$k] = strtotime($v);
@@ -92,7 +92,7 @@
return $data;
}
-function CreateIndexFiles ($folderUrl) {
+function Smallworld_CreateIndexFiles ($folderUrl) {
$myts =& MyTextSanitizer::getInstance();
file_put_contents($folderUrl.'index.html', "<script>history.go(-1);</script>");
}
@@ -103,10 +103,10 @@
// recursively reduces deep arrays to single-dimensional arrays
// $preserve_keys: (0=>never, 1=>strings, 2=>always)
-function array_flatten($array, $preserve_keys = 1, &$newArray = Array()) {
+function Smallworld_array_flatten($array, $preserve_keys = 1, &$newArray = Array()) {
foreach ($array as $key => $child) {
if (is_array($child)) {
- $newArray =& array_flatten($child, $preserve_keys, $newArray);
+ $newArray =& Smallworld_array_flatten($child, $preserve_keys, $newArray);
} elseif ($preserve_keys + is_string($key) > 1) {
$newArray[$key] = $child;
} else {
@@ -119,7 +119,7 @@
// Returns age in years
// Input birthdate
// Requires php >= 5.3
-function birthday($birth, $now = NULL){
+function Smallworld_Birthday($birth, $now = NULL){
$now = new DateTime($now);
$birth = new DateTime($birth);
return $birth->diff($now)->format('%r%y');
@@ -225,7 +225,7 @@
return $text;
}
-function stripWordsKeepUrl ($text) {
+function Smallworld_stripWordsKeepUrl ($text) {
preg_replace('/(((f|ht){1}tps:\/\/)[-a-zA-Z0-9@:%_\+.~#?&\/\/=]+)/i',
'<div class=".embed"><a href="\\1">\\1</a></div>', $text);
return $text;
@@ -345,7 +345,7 @@
* Return owner of thread (original poster)
* Return Integer
*/
-function getOwnerFromComment ($msg_id_fk) {
+function Smallworld_getOwnerFromComment ($msg_id_fk) {
global $xoopsDB;
$sql = "Select uid_fk from ".$xoopsDB->prefix('smallworld_messages')." where msg_id = '".$msg_id_fk."'";
$result = $xoopsDB->queryF($sql);
@@ -356,7 +356,7 @@
}
// Get username from userID
-function getName($userID){
+function Smallworld_getName($userID){
global $xoopsUser, $xoopsDB;
$sql = "SELECT username FROM ".$xoopsDB->prefix('smallworld_user')." WHERE userid = '".intval($userID)."'";
$result = $xoopsDB->queryf($sql);
@@ -369,7 +369,7 @@
// Check if user has been taken down for inspection by admin
// Userid = user id of user to check
// return array
-function isInspected ($userid) {
+function Smallworld_isInspected ($userid) {
global $xoopsDB;
$data = array();
$sql = "SELECT inspect_start, inspect_stop FROM ".$xoopsDB->prefix('smallworld_admin')." WHERE userid = '".$userid."' AND (inspect_start+inspect_stop) > ".time()."";
@@ -400,7 +400,7 @@
$user = new xoopsUser;
$Wall = new Wall_Updates();
$userid = $xoopsUser->getVar('uid');
- $followers = array_flatten($Wall->getFollowers($userid),0);
+ $followers = Smallworld_array_flatten($Wall->getFollowers($userid),0);
if (smallworld_GetModuleOption('usersownpostscount', $repmodule='smallworld') == 1) {
array_push($followers, $userid);
}
@@ -452,7 +452,7 @@
$nu[$i]['username_link'] = "<a href = '".XOOPS_URL."/modules/smallworld/userprofile.php?username=".$r['username']."'>";
$nu[$i]['username_link'] .= $r['username']." (".$r['realname'].") [".$nu[$i]['regdate']."] </a>";
$nu[$i]['userimage'] = $r['userimage'];
- $nu[$i]['userimage_link'] = smallworld_getAvatarLink ($r['userid'], Gravatar($r['userid']));
+ $nu[$i]['userimage_link'] = smallworld_getAvatarLink ($r['userid'], Smallworld_Gravatar($r['userid']));
$i++;
}
@@ -460,7 +460,7 @@
return $nu;
}
//Avatar Image
-function Gravatar($uid) {
+function Smallworld_Gravatar($uid) {
global $xoopsUser, $xoopsDB;
$image='';
$sql = "SELECT userimage FROM ".$xoopsDB->prefix('smallworld_user')." WHERE userid = '".$uid."'";
@@ -478,7 +478,7 @@
}
// find user with most posted messages
-function mostactiveusers_allround() {
+function Smallworld_mostactiveusers_allround() {
global $xoopsDB,$xoopsUser;
$sql = "SELECT uid_fk, COUNT( * ) as cnt ";
$sql .= "FROM ( ";
@@ -499,7 +499,7 @@
$counter = 1;
while ($row = $xoopsDB->fetchArray($result)) {
$msg[$counter]["counter"] = $counter;
- $msg[$counter]["img"] = smallworld_getAvatarLink ($row['uid_fk'], Gravatar($row['uid_fk']));
+ $msg[$counter]["img"] = smallworld_getAvatarLink ($row['uid_fk'], Smallworld_Gravatar($row['uid_fk']));
$msg[$counter]["msgs"] = _SMALLWORLD_TOTALPOSTS." : ".$row["cnt"];
$msg[$counter]["cnt"] = $row["cnt"];
$msg[$counter]["username"] = $xoopsUser->getUnameFromId($row["uid_fk"]);
@@ -512,7 +512,7 @@
}
// Find worst rated users overall
-function worstratedusers() {
+function Smallworld_worstratedusers() {
global $xoopsUser, $xoopsDB;
$array = array();
$counter = 1;
@@ -524,7 +524,7 @@
$result = $xoopsDB->queryF($sql);
while ($row = $xoopsDB->fetchArray($result)) {
$array[$counter]['counter'] = $counter;
- $array[$counter]['img'] = smallworld_getAvatarLink ($row["owner"], Gravatar($row["owner"]));
+ $array[$counter]['img'] = smallworld_getAvatarLink ($row["owner"], Smallworld_Gravatar($row["owner"]));
$array[$counter]['user'] = $xoopsUser->getUnameFromId($row["owner"]);
$array[$counter]['rating'] = $row["total"];
$array[$counter]['user_link'] = "<a href = '".XOOPS_URL."/modules/smallworld/userprofile.php?username=".$array[$counter]['user']."'>";
@@ -535,7 +535,7 @@
}
// Find best rated users overall
-function topratedusers() {
+function Smallworld_topratedusers() {
global $xoopsUser, $xoopsDB;
$array = array();
$counter = 1;
@@ -547,7 +547,7 @@
$result = $xoopsDB->queryF($sql);
while ($row = $xoopsDB->fetchArray($result)) {
$array[$counter]['counter'] = $counter;
- $array[$counter]['img'] = smallworld_getAvatarLink ($row["owner"], Gravatar($row["owner"]));
+ $array[$counter]['img'] = smallworld_getAvatarLink ($row["owner"], Smallworld_Gravatar($row["owner"]));
$array[$counter]['user'] = $xoopsUser->getUnameFromId($row["owner"]);
$array[$counter]['rating'] = $row["total"];
$array[$counter]['user_link'] = "<a href = '".XOOPS_URL."/modules/smallworld/userprofile.php?username=".$array[$counter]['user']."'>";
@@ -575,7 +575,7 @@
while ($r = $xoopsDB->fetchArray($result)) {
$res[$i]['amount'] = $counter;
$res[$i]['userid'] = $r['userid'];
- $res[$i]['userimage'] = smallworld_getAvatarLink ($r['userid'], Gravatar($r["userid"]));
+ $res[$i]['userimage'] = smallworld_getAvatarLink ($r['userid'], Smallworld_Gravatar($r["userid"]));
$res[$i]['birthday'] = $r['daymon'];
$res[$i]['agenow'] = $r['age_now'];
$res[$i]['username'] = $xoopsUser->getUnameFromId($r['userid']);
@@ -589,13 +589,13 @@
// Return new date format US for MySql
// Require php>5.2 using DateTime class
-function euroToUsDate ($stringDate) {
+function Smallworld_euroToUsDate ($stringDate) {
$date = DateTime::createFromFormat('d-m-Y', $stringDate);
return $date->format("Y-m-d");
}
// Return new date format EU For display
-function UsToEuroDate ($stringDate) {
+function Smallworld_UsToEuroDate ($stringDate) {
$date = DateTime::createFromFormat('Y-m-d', $stringDate);
return $date->format("d-m-Y");
}
Modified: XoopsModules/smallworld/trunk/smallworld/index.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/index.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/index.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -31,7 +31,7 @@
$user = new XoopsUser($id);
// Check if inspected userid -> redirect to userprofile and show admin countdown
- $inspect = isInspected ($id);
+ $inspect = Smallworld_isInspected ($id);
if ($inspect['inspect'] == 'yes') {
redirect_header("userprofile.php?username=".$xoopsUser->getVar('uname'), 1);
}
@@ -63,14 +63,14 @@
$getInvitations = $check->getRequests ($id);
// Follow array here
- $followers = array_flatten($Wall->getFollowers($id),0);
+ $followers = Smallworld_array_flatten($Wall->getFollowers($id),0);
$updatesarray=$Wall->Updates(0,$id, $followers);
//Srinivas Tamada http://9lessons.info
//Loading Comments link with load_updates.php
if (!empty($updatesarray)) {
foreach ($updatesarray as $data) {
$wm['msg_id'] = $data['msg_id'];
- $wm['orimessage'] = str_replace(array("\r", "\n"), '',stripWordsKeepUrl($data['message']));
+ $wm['orimessage'] = str_replace(array("\r", "\n"), '',Smallworld_stripWordsKeepUrl($data['message']));
$wm['message'] = smallworld_tolink(htmlentities($data['message']));
$wm['message'] = str_replace(array('<','>'),array('<','>'), $wm['message']);
$wm['created'] = smallworld_time_stamp($data['created']);
@@ -103,7 +103,7 @@
$wc['myavatar_link'] = $myavatarlink;
$wc['cface'] = $Wall->Gravatar($cdata['uid_fk']);
$wc['avatar_link'] = smallworld_getAvatarLink ($cdata['uid_fk'], $wc['cface']);
- $wc['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".getOwnerFromComment($cdata['msg_id_fk']);
+ $wc['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".Smallworld_getOwnerFromComment($cdata['msg_id_fk']);
$wc['compl_msg_lnk'] .= "&updid=".$cdata['msg_id_fk']."#".$cdata['com_id']."'>"._SMALLWORLD_COMP_MSG_LNK_DESC."</a>";
$wc['vote_up'] = $Wall->countVotesCom ('com', 'up', $cdata['msg_id_fk'],$cdata['com_id']);
$wc['vote_down'] = $Wall->countVotesCom ('com', 'down', $cdata['msg_id_fk'],$cdata['com_id']);
Modified: XoopsModules/smallworld/trunk/smallworld/loadmore.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/loadmore.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/loadmore.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -48,7 +48,7 @@
$myavatar = $Wall->Gravatar($id);
$myavatarlink = smallworld_getAvatarLink($id, $myavatar);
-$followers = array_flatten($Wall->getFollowers($id),0);
+$followers = Smallworld_array_flatten($Wall->getFollowers($id),0);
if ($page == 'index') {
$updatesarray=$Wall->Updates($_POST['last'], $id, $followers);
} elseif ($page == 'profile') {
@@ -95,7 +95,7 @@
$wc['myavatar_link']= $myavatarlink;
$wc['cface'] = $Wall->Gravatar($cdata['uid_fk']);
$wc['avatar_link'] = smallworld_getAvatarLink ($cdata['uid_fk'], $wc['cface']);
- $wc['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".getOwnerFromComment($cdata['msg_id_fk']);
+ $wc['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".Smallworld_getOwnerFromComment($cdata['msg_id_fk']);
$wc['compl_msg_lnk'] .= "&updid=".$cdata['msg_id_fk']."#".$cdata['com_id']."'>"._SMALLWORLD_COMP_MSG_LNK_DESC."</a>";
$wc['vote_up'] = $Wall->countVotesCom ('com', 'up', $cdata['msg_id_fk'],$cdata['com_id']);
$wc['vote_down'] = $Wall->countVotesCom ('com', 'down', $cdata['msg_id_fk'],$cdata['com_id']);
Modified: XoopsModules/smallworld/trunk/smallworld/message_ajax.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/message_ajax.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/message_ajax.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -41,7 +41,7 @@
}
$priv = intval($_POST['priv']);
- $followers = array_flatten($Wall->getFollowers($id),0);
+ $followers = Smallworld_array_flatten($Wall->getFollowers($id),0);
$myavatar = $Wall->Gravatar($id);
@@ -88,7 +88,7 @@
$wc['myavatar_link']= $myavatarlink;
$wc['cface'] = $Wall->Gravatar($cdata['uid_fk']);
$wc['avatar_link'] = smallworld_getAvatarLink ($cdata['uid_fk'], $wc['cface']);
- $wc['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".getOwnerFromComment($cdata['msg_id_fk']);
+ $wc['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".Smallworld_getOwnerFromComment($cdata['msg_id_fk']);
$wc['compl_msg_lnk'] .= "&updid=".$cdata['msg_id_fk']."#".$cdata['com_id']."'>"._SMALLWORLD_COMP_MSG_LNK_DESC."</a>";
$wc['vote_up'] = $Wall->countVotesCom ('com', 'up', $cdata['msg_id_fk'],$cdata['com_id']);
$wc['vote_down'] = $Wall->countVotesCom ('com', 'down', $cdata['msg_id_fk'],$cdata['com_id']);
Modified: XoopsModules/smallworld/trunk/smallworld/partnersearch.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/partnersearch.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/partnersearch.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -27,7 +27,7 @@
global $xoopsUser,$xoopsDB,$xoopsLogger;
$xoopsLogger->activated = false;
if($_GET) {
- $q=sanitize($_GET['term']);
+ $q=Smallworld_sanitize($_GET['term']);
$sql = "select * from ".$xoopsDB->prefix('smallworld_user')." where realname like '%".$q."%' or username like '%".$q."%' order by userid LIMIT 5";
$result = $xoopsDB->query($sql);
$data = array();
Modified: XoopsModules/smallworld/trunk/smallworld/permalink.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/permalink.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/permalink.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -58,7 +58,7 @@
$myavatarlink = smallworld_getAvatarLink($id, $myavatar);
// Follow array here
- $followers = array_flatten($Wall->getFollowers($id),0);
+ $followers = Smallworld_array_flatten($Wall->getFollowers($id),0);
$updatesarray=$Wall->UpdatesPermalink ($updID,$id, $ownerID);
@@ -66,7 +66,7 @@
//Loading Comments link with load_updates.php
foreach ($updatesarray as $data) {
$wm['msg_id'] = $data['msg_id'];
- $wm['orimessage'] = str_replace(array("\r", "\n"), '',stripWordsKeepUrl($data['message']));
+ $wm['orimessage'] = str_replace(array("\r", "\n"), '',Smallworld_stripWordsKeepUrl($data['message']));
$wm['message'] = smallworld_tolink(htmlentities($data['message']));
$wm['created'] = smallworld_time_stamp($data['created']);
$wm['username'] = $data['username'];
Modified: XoopsModules/smallworld/trunk/smallworld/register.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/register.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/register.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -34,7 +34,7 @@
// Check if inspected userid -> redirect to userprofile and show admin countdown
/*
- $inspect = isInspected ($id);
+ $inspect = Smallworld_isInspected ($id);
if ($inspect['inspect'] == 'yes') {
redirect_header("userprofile.php?username=".$xoopsUser->getVar('uname'), 1);
}
Modified: XoopsModules/smallworld/trunk/smallworld/search.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/search.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/search.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -27,7 +27,7 @@
global $xoopsUser,$xoTheme,$xoopsLogger,$xoopsDB;
$xoopsLogger->activated = false;
if($_GET) {
- $q=sanitize($_GET['term']);
+ $q=Smallworld_sanitize($_GET['term']);
$sql = "select * from ".$xoopsDB->prefix('smallworld_user')." where realname like '%".$q."%' or username like '%".$q."%' order by userid LIMIT 5";
$result = $xoopsDB->query($sql);
$data = array();
Modified: XoopsModules/smallworld/trunk/smallworld/smallworldshare.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/smallworldshare.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/smallworldshare.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -42,7 +42,7 @@
//Loading Comments link with load_updates.php
foreach ($updatesarray as $data) {
$wm['msg_id'] = $data['msg_id'];
- $wm['orimessage'] = str_replace(array("\r", "\n"), '',stripWordsKeepUrl($data['message']));
+ $wm['orimessage'] = str_replace(array("\r", "\n"), '',Smallworld_stripWordsKeepUrl($data['message']));
$wm['message'] = smallworld_tolink(htmlentities($data['message']));
$wm['created'] = smallworld_time_stamp($data['created']);
$wm['username'] = $data['username'];
@@ -64,7 +64,7 @@
}
} else {
$wm['msg_id'] = $updID;
- $wm['orimessage'] = str_replace(array("\r", "\n"), '',stripWordsKeepUrl(_SMALLWORLD_BOOKMARK_NOPERM_MESSAGE));
+ $wm['orimessage'] = str_replace(array("\r", "\n"), '',Smallworld_stripWordsKeepUrl(_SMALLWORLD_BOOKMARK_NOPERM_MESSAGE));
$wm['message'] = smallworld_tolink(htmlentities(_SMALLWORLD_BOOKMARK_NOPERM_MESSAGE));
$wm['created'] = smallworld_time_stamp(time());
$wm['username'] = _SMALLWORLD_SYSNAME;
Modified: XoopsModules/smallworld/trunk/smallworld/stats.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/stats.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/stats.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -29,9 +29,9 @@
$userid = $xoopsUser->getVar('uid');
$newusers = smallworld_Stats_newest ();
-$m_a_users = mostactiveusers_allround();
-$br_users = topratedusers();
-$wo_users = worstratedusers();
+$m_a_users = Smallworld_mostactiveusers_allround();
+$br_users = Smallworld_topratedusers();
+$wo_users = Smallworld_worstratedusers();
$birth = smallworld_nextBirthdays ();
$sp = smallworld_sp ();
$tpl->assign('newusers',$newusers);
Modified: XoopsModules/smallworld/trunk/smallworld/userprofile.php
===================================================================
--- XoopsModules/smallworld/trunk/smallworld/userprofile.php 2012-01-26 17:03:42 UTC (rev 8816)
+++ XoopsModules/smallworld/trunk/smallworld/userprofile.php 2012-01-26 18:05:41 UTC (rev 8817)
@@ -41,7 +41,7 @@
$user = new SmallWorldProfile;
$user->ShowUser($id);
$username = $xoopsUser->getVar('uname'); //Myusername
- $inspected = isInspected($id);
+ $inspected = Smallworld_isInspected($id);
$xoopsTpl->assign('inspect',$inspected['inspect']);
if ($inspected['inspect'] != 'no') {
$xoopsTpl->assign('inspecttime',$inspected['totaltime']);
@@ -139,7 +139,7 @@
$wc['myavatar_link']= $myavatarlink;
$wc['cface'] = $Wall->Gravatar($cdata['uid_fk']);
$wc['avatar_link'] = smallworld_getAvatarLink($cdata['uid_fk'],$wc['cface']);
- $wc['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".getOwnerFromComment($cdata['msg_id_fk']);
+ $wc['compl_msg_lnk'] = "<a href='".XOOPS_URL."/modules/smallworld/permalink.php?ownerid=".Smallworld_getOwnerFromComment($cdata['msg_id_fk']);
$wc['compl_msg_lnk'] .= "&updid=".$cdata['msg_id_fk']."#".$cdata['com_id']."'>"._SMALLWORLD_COMP_MSG_LNK_DESC."</a>";
$wc['vote_up'] = $Wall->countVotesCom ('com', 'up', $cdata['msg_id_fk'],$cdata['com_id']);
$wc['vote_down'] = $Wall->countVotesCom ('com', 'down', $cdata['msg_id_fk'],$cdata['com_id']);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|