You can subscribe to this list here.
2012 |
Jan
|
Feb
(214) |
Mar
(139) |
Apr
(198) |
May
(187) |
Jun
(151) |
Jul
(210) |
Aug
(169) |
Sep
(58) |
Oct
(53) |
Nov
(54) |
Dec
(301) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2013 |
Jan
(348) |
Feb
(178) |
Mar
(219) |
Apr
(154) |
May
(117) |
Jun
(194) |
Jul
(61) |
Aug
(132) |
Sep
(121) |
Oct
(110) |
Nov
(11) |
Dec
(18) |
2014 |
Jan
(34) |
Feb
(50) |
Mar
(82) |
Apr
(98) |
May
(39) |
Jun
(111) |
Jul
(67) |
Aug
(36) |
Sep
(33) |
Oct
(26) |
Nov
(53) |
Dec
(44) |
2015 |
Jan
(29) |
Feb
(47) |
Mar
(25) |
Apr
(19) |
May
(23) |
Jun
(20) |
Jul
(49) |
Aug
(7) |
Sep
(10) |
Oct
(10) |
Nov
(4) |
Dec
(25) |
2016 |
Jan
(8) |
Feb
(7) |
Mar
(1) |
Apr
|
May
(3) |
Jun
|
Jul
(1) |
Aug
(2) |
Sep
|
Oct
|
Nov
(7) |
Dec
(5) |
2017 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
(15) |
Jun
|
Jul
(18) |
Aug
(24) |
Sep
|
Oct
(14) |
Nov
|
Dec
|
2018 |
Jan
|
Feb
(22) |
Mar
|
Apr
(11) |
May
(1) |
Jun
(17) |
Jul
(2) |
Aug
(2) |
Sep
|
Oct
(6) |
Nov
(5) |
Dec
|
2019 |
Jan
|
Feb
|
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(2) |
2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
|
Oct
|
Nov
|
Dec
|
From: <tr...@us...> - 2012-12-10 13:44:19
|
Revision: 10347 http://sourceforge.net/p/xoops/svn/10347 Author: trabis Date: 2012-12-10 13:44:16 +0000 (Mon, 10 Dec 2012) Log Message: ----------- Temp fix for installation Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/common.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/functions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/makedata.php XoopsCore/branches/2.6.x/2.6.0/htdocs/mainfile.php XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Cache/File.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/common.inc.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/common.inc.php 2012-12-10 04:48:14 UTC (rev 10346) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/common.inc.php 2012-12-10 13:44:16 UTC (rev 10347) @@ -40,7 +40,7 @@ include_once dirname(dirname(dirname(__FILE__))) . '/mainfile.php'; if (!defined("XOOPS_ROOT_PATH")) { define("XOOPS_ROOT_PATH", str_replace("\\", "/", realpath('../'))); - define("XOOPS_PATH", ""); //just to avoid errors in XoopsLoad class + define("XOOPS_PATH", XOOPS_ROOT_PATH . '/xoops_lib'); //just to avoid errors in XoopsLoad class define("XOOPS_VAR_PATH", ""); define("XOOPS_URL", ""); } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/functions.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/functions.php 2012-12-10 04:48:14 UTC (rev 10346) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/functions.php 2012-12-10 13:44:16 UTC (rev 10347) @@ -37,7 +37,8 @@ } $member_handler = $xoops->getHandlerMember(); /* @var $user XoopsUser */ - $user = array_pop($member_handler->getUsers(new Criteria('uname', $uname))); + $users = $member_handler->getUsers(new Criteria('uname', $uname)); + $user = array_pop($users); if ($hash_login != md5($user->getVar('pass') . XOOPS_DB_NAME . XOOPS_DB_PASS . XOOPS_DB_PREFIX)) { return false; } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/makedata.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/makedata.php 2012-12-10 04:48:14 UTC (rev 10346) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/makedata.php 2012-12-10 13:44:16 UTC (rev 10347) @@ -43,6 +43,7 @@ function make_data(XoopsDatabaseManager $dbm, $adminname, $adminpass, $adminmail, $language, $gruops) { + $root = dirname(dirname(dirname(__FILE__))); // $xoopsDB =& Database::getInstance(); // $dbm = new db_manager; $tables = array(); @@ -76,40 +77,40 @@ $time = time(); $dbm->insert('tplset', " VALUES (1, 'default', 'XOOPS Default Template Set', '', " . $time . ")"); // system modules - if (file_exists('../modules/system/language/' . $language . '/modinfo.php')) { - include '../modules/system/language/' . $language . '/modinfo.php'; + if (file_exists($file = $root .'/modules/system/language/' . $language . '/modinfo.php')) { + include $file; } else { - include '../modules/system/language/english/modinfo.php'; + include $root . '/modules/system/language/english/modinfo.php'; $language = 'english'; } $modversion = array(); - include_once '../modules/system/xoops_version.php'; + include_once $root . '/modules/system/xoops_version.php'; $time = time(); // RMV-NOTIFY (updated for extra column in table) $dbm->insert("modules", " VALUES (1, '" . _MI_SYSTEM_NAME . "', " . ($modversion['version'] * 100) . ", " . $time . ", 0, 1, 'system', 0, 1, 0, 0, 0, 0)"); foreach ($modversion['templates'] as $tplfile) { // Main templates - if ($fp = fopen('../modules/system/templates/' . $tplfile['file'], 'r')) { + if ($fp = fopen($root . '/modules/system/templates/' . $tplfile['file'], 'r')) { $newtplid = $dbm->insert('tplfile', " VALUES (0, 1, 'system', 'default', '" . addslashes($tplfile['file']) . "', '" . addslashes($tplfile['description']) . "', " . $time . ", " . $time . ", 'module')"); // $newtplid = $xoopsDB->getInsertId(); - $tplsource = fread($fp, filesize('../modules/system/templates/' . $tplfile['file'])); + $tplsource = fread($fp, filesize($root . '/modules/system/templates/' . $tplfile['file'])); fclose($fp); $dbm->insert('tplsource', " (tpl_id, tpl_source) VALUES (" . $newtplid . ", '" . addslashes($tplsource) . "')"); } // Admin templates - if ($fp = fopen('../modules/system/templates/admin/' . $tplfile['file'], 'r')) { + if ($fp = fopen($root . '/modules/system/templates/admin/' . $tplfile['file'], 'r')) { $newtplid = $dbm->insert('tplfile', " VALUES (0, 1, 'system', 'default', '" . addslashes($tplfile['file']) . "', '" . addslashes($tplfile['description']) . "', " . $time . ", " . $time . ", 'admin')"); // $newtplid = $xoopsDB->getInsertId(); - $tplsource = fread($fp, filesize('../modules/system/templates/admin/' . $tplfile['file'])); + $tplsource = fread($fp, filesize($root . '/modules/system/templates/admin/' . $tplfile['file'])); fclose($fp); $dbm->insert('tplsource', " (tpl_id, tpl_source) VALUES (" . $newtplid . ", '" . addslashes($tplsource) . "')"); } } foreach ($modversion['blocks'] as $func_num => $newblock) { - if ($fp = fopen('../modules/system/templates/blocks/' . $newblock['template'], 'r')) { + if ($fp = fopen($root . '/modules/system/templates/blocks/' . $newblock['template'], 'r')) { if (in_array($newblock['template'], array('system_block_user.html', 'system_block_login.html', 'system_block_mainmenu.html'))) { $visible = 1; } else { @@ -121,7 +122,7 @@ // $newbid = $xoopsDB->getInsertId(); $newtplid = $dbm->insert('tplfile', " VALUES (0, " . $newbid . ", 'system', 'default', '" . addslashes($newblock['template']) . "', '" . addslashes($newblock['description']) . "', " . $time . ", " . $time . ", 'block')"); // $newtplid = $xoopsDB->getInsertId(); - $tplsource = fread($fp, filesize('../modules/system/templates/blocks/' . $newblock['template'])); + $tplsource = fread($fp, filesize($root . '/modules/system/templates/blocks/' . $newblock['template'])); fclose($fp); $dbm->insert('tplsource', " (tpl_id, tpl_source) VALUES (" . $newtplid . ", '" . addslashes($tplsource) . "')"); $dbm->insert("group_permission", " VALUES (0, " . $gruops['XOOPS_GROUP_ADMIN'] . ", " . $newbid . ", 1, 'block_read')"); @@ -280,8 +281,8 @@ $dbm->insert('config', " VALUES (134, 0, 1, 'redirect_message_ajax', '_MD_AM_CUSTOM_REDIRECT', '1', '_MD_AM_CUSTOM_REDIRECT_DESC', 'yesno', 'int', 12)"); - require_once '../class/xoopslists.php'; - $editors = XoopsLists::getDirListAsArray( '../class/xoopseditor' ); + require_once $root . '/class/xoopslists.php'; + $editors = XoopsLists::getDirListAsArray( $root . '/class/xoopseditor' ); $conf=35; foreach ( $editors as $dir ) { $dbm->insert('configoption', " VALUES (".$conf.", '".$dir."', '".$dir."', 126)"); @@ -295,17 +296,17 @@ $dbm->insert('configoption', " VALUES (".$conf.", '".$dir."', '".$dir."', 128)"); $conf++; } - $icons = XoopsLists::getDirListAsArray('../modules/system/images/icons'); + $icons = XoopsLists::getDirListAsArray($root . '/modules/system/images/icons'); foreach ( $icons as $dir ) { $dbm->insert('configoption', " VALUES (".$conf.", '".$dir."', '".$dir."', 98)"); $conf++; } - $breadcrumb = XoopsLists::getDirListAsArray('../modules/system/images/breadcrumb'); + $breadcrumb = XoopsLists::getDirListAsArray($root . '/modules/system/images/breadcrumb'); foreach ( $breadcrumb as $dir ) { $dbm->insert('configoption', " VALUES (".$conf.", '".$dir."', '".$dir."', 99)"); $conf++; } - $jqueryui = XoopsLists::getDirListAsArray('../modules/system/css/ui'); + $jqueryui = XoopsLists::getDirListAsArray($root . '/modules/system/css/ui'); foreach ( $jqueryui as $dir ) { $dbm->insert('configoption', " VALUES (".$conf.", '".$dir."', '".$dir."', 133)"); $conf++; Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/mainfile.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/mainfile.php 2012-12-10 04:48:14 UTC (rev 10346) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/mainfile.php 2012-12-10 13:44:16 UTC (rev 10347) @@ -17,6 +17,65 @@ * @version $Id$ */ -if (! defined('XOOPS_INSTALL')) { - header('Location: install/index.php'); +if (!defined("XOOPS_MAINFILE_INCLUDED")) { + define("XOOPS_MAINFILE_INCLUDED", 1); + + // XOOPS Physical Paths + + // Physical path to the XOOPS documents (served) directory WITHOUT trailing slash + define('XOOPS_ROOT_PATH', 'C:/wamp/www/xoops_2.6.0_new/htdocs'); + + // For forward compatibility + // Physical path to the XOOPS library directory WITHOUT trailing slash + define('XOOPS_PATH', 'C:/wamp/www/xoops_2.6.0_new/htdocs/xoops_lib'); + // Physical path to the XOOPS datafiles (writable) directory WITHOUT trailing slash + define('XOOPS_VAR_PATH', 'C:/wamp/www/xoops_2.6.0_new/htdocs/xoops_data'); + // Alias of XOOPS_PATH, for compatibility, temporary solution + define("XOOPS_TRUST_PATH", XOOPS_PATH); + + // URL Association for SSL and Protocol Compatibility + $http = 'http://'; + if (!empty($_SERVER['HTTPS'])) { + $http = ($_SERVER['HTTPS']=='on') ? 'https://' : 'http://'; + } + define('XOOPS_PROT', $http); + + // XOOPS Virtual Path (URL) + // Virtual path to your main XOOPS directory WITHOUT trailing slash + // Example: define('XOOPS_URL', 'http://localhost/xoops_2.6.0_new/htdocs'); + define('XOOPS_URL', 'http://localhost/xoops_2.6.0_new/htdocs'); + + // Shall be handled later, don't forget! + define("XOOPS_CHECK_PATH", 0); + // Protect against external scripts execution if safe mode is not enabled + if (XOOPS_CHECK_PATH && !@ini_get("safe_mode")) { + if (function_exists("debug_backtrace")) { + $xoopsScriptPath = debug_backtrace(); + if (!count($xoopsScriptPath)) { + die("XOOPS path check: this file cannot be requested directly"); + } + $xoopsScriptPath = $xoopsScriptPath[0]["file"]; + } else { + $xoopsScriptPath = isset($_SERVER["PATH_TRANSLATED"]) ? $_SERVER["PATH_TRANSLATED"] : $_SERVER["SCRIPT_FILENAME"]; + } + if (DIRECTORY_SEPARATOR != "/") { + // IIS6 may double the \ chars + $xoopsScriptPath = str_replace(strpos($xoopsScriptPath, "\\\\", 2) ? "\\\\" : DIRECTORY_SEPARATOR, "/", $xoopsScriptPath); + } + if (strcasecmp(substr($xoopsScriptPath, 0, strlen(XOOPS_ROOT_PATH)), str_replace(DIRECTORY_SEPARATOR, "/", XOOPS_ROOT_PATH))) { + exit("XOOPS path check: Script is not inside XOOPS_ROOT_PATH and cannot run."); + } + } + + // Secure file + require XOOPS_VAR_PATH . '/data/secure.php'; + + define('XOOPS_GROUP_ADMIN', '1'); + define('XOOPS_GROUP_USERS', '2'); + define('XOOPS_GROUP_ANONYMOUS', '3'); + + if (!isset($xoopsOption["nocommon"]) && XOOPS_ROOT_PATH != "") { + include XOOPS_ROOT_PATH."/include/common.php"; + } + } \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Cache/File.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Cache/File.php 2012-12-10 04:48:14 UTC (rev 10346) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Cache/File.php 2012-12-10 13:44:16 UTC (rev 10347) @@ -94,14 +94,14 @@ ); parent::init($settings); - if (DS === '\\') { + if (DIRECTORY_SEPARATOR === '\\') { $this->settings['isWindows'] = true; } - if (substr($this->settings['path'], -1) !== DS) { - $this->settings['path'] .= DS; + if (substr($this->settings['path'], -1) !== DIRECTORY_SEPARATOR) { + $this->settings['path'] .= DIRECTORY_SEPARATOR; } if (!empty($this->_groupPrefix)) { - $this->_groupPrefix = str_replace('_', DS, $this->_groupPrefix); + $this->_groupPrefix = str_replace('_', DIRECTORY_SEPARATOR, $this->_groupPrefix); } return $this->_active(); } @@ -408,7 +408,7 @@ $directoryIterator = new RecursiveDirectoryIterator($this->settings['path']); $contents = new RecursiveIteratorIterator($directoryIterator, RecursiveIteratorIterator::CHILD_FIRST); foreach ($contents as $object) { - $containsGroup = strpos($object->getPathName(), DS . $group . DS) !== false; + $containsGroup = strpos($object->getPathName(), DIRECTORY_SEPARATOR . $group . DIRECTORY_SEPARATOR) !== false; if ($object->isFile() && $containsGroup) { unlink($object->getPathName()); } |
From: <be...@us...> - 2012-12-10 04:48:17
|
Revision: 10346 http://sourceforge.net/p/xoops/svn/10346 Author: beckmi Date: 2012-12-10 04:48:14 +0000 (Mon, 10 Dec 2012) Log Message: ----------- XSS (Cross Site Scripting) vulnerability in Maintenance (Dingjie Yang,Qualys/trabis) Modified Paths: -------------- XoopsCore/branches/2.5.x/2.5.6/docs/changelog.250.txt XoopsCore/branches/2.5.x/2.5.6/htdocs/modules/system/admin/maintenance/main.php Modified: XoopsCore/branches/2.5.x/2.5.6/docs/changelog.250.txt =================================================================== --- XoopsCore/branches/2.5.x/2.5.6/docs/changelog.250.txt 2012-12-10 01:13:08 UTC (rev 10345) +++ XoopsCore/branches/2.5.x/2.5.6/docs/changelog.250.txt 2012-12-10 04:48:14 UTC (rev 10346) @@ -3,6 +3,9 @@ =============================== 2012/08/06: Version 2.5.6 Alpha =============================== +Security fixes: + - XSS (Cross Site Scripting) vulnerability in Maintenance (Dingjie Yang,Qualys/trabis) + Bugfixes: - fixed errors related to static functions, so it works on PHP 5.4 (Mamba) Modified: XoopsCore/branches/2.5.x/2.5.6/htdocs/modules/system/admin/maintenance/main.php =================================================================== --- XoopsCore/branches/2.5.x/2.5.6/htdocs/modules/system/admin/maintenance/main.php 2012-12-10 01:13:08 UTC (rev 10345) +++ XoopsCore/branches/2.5.x/2.5.6/htdocs/modules/system/admin/maintenance/main.php 2012-12-10 04:48:14 UTC (rev 10346) @@ -102,6 +102,11 @@ break; case 'maintenance_save': + // Check security + if ( !$GLOBALS['xoopsSecurity']->check() ) { + redirect_header( 'admin.php?fct=maintenance', 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors() ) ); + exit(); + } //Define Breadcrumb and tips $xoBreadCrumb->addLink(_AM_SYSTEM_MAINTENANCE_NAV_MANAGER, system_adminVersion('maintenance', 'adminpath')); //$xoBreadCrumb->addLink(_AM_SYSTEM_MAINTENANCE_NAV_MAINTENANCE); @@ -157,6 +162,11 @@ break; case 'dump_save': + // Check security + if ( !$GLOBALS['xoopsSecurity']->check() ) { + redirect_header( 'admin.php?fct=maintenance', 3, implode('<br />', $GLOBALS['xoopsSecurity']->getErrors() ) ); + exit(); + } //Define Breadcrumb and tips $xoBreadCrumb->addLink(_AM_SYSTEM_MAINTENANCE_NAV_MANAGER, system_adminVersion('maintenance', 'adminpath')); $xoBreadCrumb->addLink(_AM_SYSTEM_MAINTENANCE_NAV_DUMP); |
From: <be...@us...> - 2012-12-10 01:13:21
|
Revision: 10345 http://sourceforge.net/p/xoops/svn/10345 Author: beckmi Date: 2012-12-10 01:13:08 +0000 (Mon, 10 Dec 2012) Log Message: ----------- Adding News Added Paths: ----------- XoopsModules26/news/trunk/news/admin/ XoopsModules26/news/trunk/news/admin/about.php XoopsModules26/news/trunk/news/admin/admin_footer.php XoopsModules26/news/trunk/news/admin/admin_header.php XoopsModules26/news/trunk/news/admin/amsimport.php XoopsModules26/news/trunk/news/admin/functions.php XoopsModules26/news/trunk/news/admin/groupperms.php XoopsModules26/news/trunk/news/admin/index.html XoopsModules26/news/trunk/news/admin/index.php XoopsModules26/news/trunk/news/admin/menu.php XoopsModules26/news/trunk/news/admin/upgrade.php XoopsModules26/news/trunk/news/archive.php XoopsModules26/news/trunk/news/article.php XoopsModules26/news/trunk/news/backendt.php XoopsModules26/news/trunk/news/blocks/ XoopsModules26/news/trunk/news/blocks/index.html XoopsModules26/news/trunk/news/blocks/news_archives.php XoopsModules26/news/trunk/news/blocks/news_bigstory.php XoopsModules26/news/trunk/news/blocks/news_block_tag.php XoopsModules26/news/trunk/news/blocks/news_moderate.php XoopsModules26/news/trunk/news/blocks/news_randomnews.php XoopsModules26/news/trunk/news/blocks/news_top.php XoopsModules26/news/trunk/news/blocks/news_topics.php XoopsModules26/news/trunk/news/blocks/news_topicsnav.php XoopsModules26/news/trunk/news/class/ XoopsModules26/news/trunk/news/class/blacklist.php XoopsModules26/news/trunk/news/class/class.mimetype.php XoopsModules26/news/trunk/news/class/class.newsstory.php XoopsModules26/news/trunk/news/class/class.newstopic.php XoopsModules26/news/trunk/news/class/class.sfiles.php XoopsModules26/news/trunk/news/class/index.html XoopsModules26/news/trunk/news/class/keyhighlighter.class.php XoopsModules26/news/trunk/news/class/news_stories.php XoopsModules26/news/trunk/news/class/news_topics.php XoopsModules26/news/trunk/news/class/registryfile.php XoopsModules26/news/trunk/news/class/tree.php XoopsModules26/news/trunk/news/class/wideimage/ XoopsModules26/news/trunk/news/class/wideimage/Canvas.class.php XoopsModules26/news/trunk/news/class/wideimage/Dimension.class.php XoopsModules26/news/trunk/news/class/wideimage/Exception.class.php XoopsModules26/news/trunk/news/class/wideimage/FileMapperFactory.class.php XoopsModules26/news/trunk/news/class/wideimage/Image.class.php XoopsModules26/news/trunk/news/class/wideimage/OpFactory.class.php XoopsModules26/news/trunk/news/class/wideimage/PaletteImage.class.php XoopsModules26/news/trunk/news/class/wideimage/TrueColorImage.class.php XoopsModules26/news/trunk/news/class/wideimage/WideImage.inc.php XoopsModules26/news/trunk/news/class/wideimage/fonts/ XoopsModules26/news/trunk/news/class/wideimage/fonts/Font_GDF.class.php XoopsModules26/news/trunk/news/class/wideimage/fonts/Font_TTF.class.php XoopsModules26/news/trunk/news/class/wideimage/mappers/ XoopsModules26/news/trunk/news/class/wideimage/mappers/ImageFileMapper_GD.class.php XoopsModules26/news/trunk/news/class/wideimage/mappers/ImageFileMapper_GD2.class.php XoopsModules26/news/trunk/news/class/wideimage/mappers/ImageFileMapper_GIF.class.php XoopsModules26/news/trunk/news/class/wideimage/mappers/ImageFileMapper_JPEG.class.php XoopsModules26/news/trunk/news/class/wideimage/mappers/ImageFileMapper_PNG.class.php XoopsModules26/news/trunk/news/class/wideimage/operations/ XoopsModules26/news/trunk/news/class/wideimage/operations/ApplyConvolution.class.php XoopsModules26/news/trunk/news/class/wideimage/operations/ApplyFilter.class.php XoopsModules26/news/trunk/news/class/wideimage/operations/ApplyMask.class.php XoopsModules26/news/trunk/news/class/wideimage/operations/AsGrayscale.class.php XoopsModules26/news/trunk/news/class/wideimage/operations/CopyChannelsPalette.class.php XoopsModules26/news/trunk/news/class/wideimage/operations/CopyChannelsTrueColor.class.php XoopsModules26/news/trunk/news/class/wideimage/operations/CorrectGamma.class.php XoopsModules26/news/trunk/news/class/wideimage/operations/Crop.class.php XoopsModules26/news/trunk/news/class/wideimage/operations/Flip.class.php XoopsModules26/news/trunk/news/class/wideimage/operations/GetMask.class.php XoopsModules26/news/trunk/news/class/wideimage/operations/Merge.class.php XoopsModules26/news/trunk/news/class/wideimage/operations/Mirror.class.php XoopsModules26/news/trunk/news/class/wideimage/operations/Resize.class.php XoopsModules26/news/trunk/news/class/wideimage/operations/Rotate.class.php XoopsModules26/news/trunk/news/class/wideimage/operations/Unsharp.class.php XoopsModules26/news/trunk/news/class/xoopsstory.php XoopsModules26/news/trunk/news/class/xoopstopic.php XoopsModules26/news/trunk/news/class/xoopstree.php XoopsModules26/news/trunk/news/comment_delete.php XoopsModules26/news/trunk/news/comment_edit.php XoopsModules26/news/trunk/news/comment_new.php XoopsModules26/news/trunk/news/comment_post.php XoopsModules26/news/trunk/news/comment_reply.php XoopsModules26/news/trunk/news/config.php XoopsModules26/news/trunk/news/css/ XoopsModules26/news/trunk/news/css/index.html XoopsModules26/news/trunk/news/css/print.css XoopsModules26/news/trunk/news/css/style.css XoopsModules26/news/trunk/news/docs/ XoopsModules26/news/trunk/news/docs/changelog.txt XoopsModules26/news/trunk/news/docs/credits.txt XoopsModules26/news/trunk/news/docs/index.html XoopsModules26/news/trunk/news/docs/install.txt XoopsModules26/news/trunk/news/docs/lang.diff XoopsModules26/news/trunk/news/docs/lang_diff.txt XoopsModules26/news/trunk/news/docs/licence.txt XoopsModules26/news/trunk/news/docs/readme.txt XoopsModules26/news/trunk/news/docs/upgrade.txt XoopsModules26/news/trunk/news/extra/ XoopsModules26/news/trunk/news/extra/modules/ XoopsModules26/news/trunk/news/extra/modules/tag/ XoopsModules26/news/trunk/news/extra/modules/tag/plugin/ XoopsModules26/news/trunk/news/extra/modules/tag/plugin/news.php XoopsModules26/news/trunk/news/fpdf/ XoopsModules26/news/trunk/news/fpdf/chinese.php XoopsModules26/news/trunk/news/fpdf/ex.php XoopsModules26/news/trunk/news/fpdf/font/ XoopsModules26/news/trunk/news/fpdf/font/courier.php XoopsModules26/news/trunk/news/fpdf/font/helvetica.php XoopsModules26/news/trunk/news/fpdf/font/helveticab.php XoopsModules26/news/trunk/news/fpdf/font/helveticabi.php XoopsModules26/news/trunk/news/fpdf/font/helveticai.php XoopsModules26/news/trunk/news/fpdf/font/index.html XoopsModules26/news/trunk/news/fpdf/font/makefont/ XoopsModules26/news/trunk/news/fpdf/font/makefont/cp1250.map XoopsModules26/news/trunk/news/fpdf/font/makefont/cp1251.map XoopsModules26/news/trunk/news/fpdf/font/makefont/cp1252.map XoopsModules26/news/trunk/news/fpdf/font/makefont/cp1253.map XoopsModules26/news/trunk/news/fpdf/font/makefont/cp1254.map XoopsModules26/news/trunk/news/fpdf/font/makefont/cp1255.map XoopsModules26/news/trunk/news/fpdf/font/makefont/cp1257.map XoopsModules26/news/trunk/news/fpdf/font/makefont/cp1258.map XoopsModules26/news/trunk/news/fpdf/font/makefont/cp874.map XoopsModules26/news/trunk/news/fpdf/font/makefont/index.html XoopsModules26/news/trunk/news/fpdf/font/makefont/iso-8859-1.map XoopsModules26/news/trunk/news/fpdf/font/makefont/iso-8859-11.map XoopsModules26/news/trunk/news/fpdf/font/makefont/iso-8859-15.map XoopsModules26/news/trunk/news/fpdf/font/makefont/iso-8859-16.map XoopsModules26/news/trunk/news/fpdf/font/makefont/iso-8859-2.map XoopsModules26/news/trunk/news/fpdf/font/makefont/iso-8859-4.map XoopsModules26/news/trunk/news/fpdf/font/makefont/iso-8859-5.map XoopsModules26/news/trunk/news/fpdf/font/makefont/iso-8859-7.map XoopsModules26/news/trunk/news/fpdf/font/makefont/iso-8859-9.map XoopsModules26/news/trunk/news/fpdf/font/makefont/koi8-r.map XoopsModules26/news/trunk/news/fpdf/font/makefont/koi8-u.map XoopsModules26/news/trunk/news/fpdf/font/makefont/makefont.php XoopsModules26/news/trunk/news/fpdf/font/symbol.php XoopsModules26/news/trunk/news/fpdf/font/times.php XoopsModules26/news/trunk/news/fpdf/font/timesb.php XoopsModules26/news/trunk/news/fpdf/font/timesbi.php XoopsModules26/news/trunk/news/fpdf/font/timesi.php XoopsModules26/news/trunk/news/fpdf/font/zapfdingbats.php XoopsModules26/news/trunk/news/fpdf/fpdf.inc.php XoopsModules26/news/trunk/news/fpdf/fpdf.php XoopsModules26/news/trunk/news/fpdf/gif.php XoopsModules26/news/trunk/news/fpdf/index.html XoopsModules26/news/trunk/news/fpdf/japanese.php XoopsModules26/news/trunk/news/fpdf/korean.php XoopsModules26/news/trunk/news/fpdf/language/ XoopsModules26/news/trunk/news/fpdf/language/english.php XoopsModules26/news/trunk/news/fpdf/language/french.php XoopsModules26/news/trunk/news/fpdf/language/index.html XoopsModules26/news/trunk/news/fpdf/language/japanese.php XoopsModules26/news/trunk/news/fpdf/language/korean.php XoopsModules26/news/trunk/news/fpdf/language/schinese.php XoopsModules26/news/trunk/news/fpdf/language/tchinese.php XoopsModules26/news/trunk/news/fpdf/makepdf_class.php XoopsModules26/news/trunk/news/fpdf/makepdf_config.php XoopsModules26/news/trunk/news/header.php XoopsModules26/news/trunk/news/images/ XoopsModules26/news/trunk/news/images/active.gif XoopsModules26/news/trunk/news/images/bg.png XoopsModules26/news/trunk/news/images/dojo/ XoopsModules26/news/trunk/news/images/dojo/articles.png XoopsModules26/news/trunk/news/images/dojo/export.png XoopsModules26/news/trunk/news/images/dojo/help.png XoopsModules26/news/trunk/news/images/dojo/home.png XoopsModules26/news/trunk/news/images/dojo/index.html XoopsModules26/news/trunk/news/images/dojo/maintain.png XoopsModules26/news/trunk/news/images/dojo/metagen.png XoopsModules26/news/trunk/news/images/dojo/newsletter.png XoopsModules26/news/trunk/news/images/dojo/options.png XoopsModules26/news/trunk/news/images/dojo/permissions.png XoopsModules26/news/trunk/news/images/dojo/purge.png XoopsModules26/news/trunk/news/images/dojo/statistics.png XoopsModules26/news/trunk/news/images/dojo/topics.png XoopsModules26/news/trunk/news/images/dojo/update.png XoopsModules26/news/trunk/news/images/hover.gif XoopsModules26/news/trunk/news/images/index.html XoopsModules26/news/trunk/news/images/left_both.png XoopsModules26/news/trunk/news/images/news.png XoopsModules26/news/trunk/news/images/news_slogo.png XoopsModules26/news/trunk/news/images/right_both.png XoopsModules26/news/trunk/news/images/selected.gif XoopsModules26/news/trunk/news/images/selectedEnd.gif XoopsModules26/news/trunk/news/images/selectedStart.gif XoopsModules26/news/trunk/news/images/selected_left_F90.gif XoopsModules26/news/trunk/news/images/selected_right_F90.gif XoopsModules26/news/trunk/news/images/topics/ XoopsModules26/news/trunk/news/images/topics/blank.png XoopsModules26/news/trunk/news/images/topics/index.html XoopsModules26/news/trunk/news/images/topics/xoops.gif XoopsModules26/news/trunk/news/images/unselected.gif XoopsModules26/news/trunk/news/images/unselectedEnd.gif XoopsModules26/news/trunk/news/images/unselected_left.gif XoopsModules26/news/trunk/news/images/unselected_right.gif XoopsModules26/news/trunk/news/include/ XoopsModules26/news/trunk/news/include/comment_functions.php XoopsModules26/news/trunk/news/include/functions.php XoopsModules26/news/trunk/news/include/index.html XoopsModules26/news/trunk/news/include/install_function.php XoopsModules26/news/trunk/news/include/notification.inc.php XoopsModules26/news/trunk/news/include/pagenav.php XoopsModules26/news/trunk/news/include/search.inc.php XoopsModules26/news/trunk/news/include/storyform.inc.php XoopsModules26/news/trunk/news/include/storyform.original.php XoopsModules26/news/trunk/news/include/update_function.php XoopsModules26/news/trunk/news/index.php XoopsModules26/news/trunk/news/js/ XoopsModules26/news/trunk/news/js/dojo.js XoopsModules26/news/trunk/news/js/src/ XoopsModules26/news/trunk/news/js/src/a11y.js XoopsModules26/news/trunk/news/js/src/html/ XoopsModules26/news/trunk/news/js/src/html/__package__.js XoopsModules26/news/trunk/news/js/src/html/color.js XoopsModules26/news/trunk/news/js/src/html/common.js XoopsModules26/news/trunk/news/js/src/html/display.js XoopsModules26/news/trunk/news/js/src/html/iframe.js XoopsModules26/news/trunk/news/js/src/html/images/ XoopsModules26/news/trunk/news/js/src/html/layout.js XoopsModules26/news/trunk/news/js/src/html/metrics.js XoopsModules26/news/trunk/news/js/src/html/selection.js XoopsModules26/news/trunk/news/js/src/html/shadow.js XoopsModules26/news/trunk/news/js/src/html/style.js XoopsModules26/news/trunk/news/js/src/html/util.js XoopsModules26/news/trunk/news/js/src/lang/ XoopsModules26/news/trunk/news/js/src/lang/__package__.js XoopsModules26/news/trunk/news/js/src/lang/array.js XoopsModules26/news/trunk/news/js/src/lang/assert.js XoopsModules26/news/trunk/news/js/src/lang/common.js XoopsModules26/news/trunk/news/js/src/lang/declare.js XoopsModules26/news/trunk/news/js/src/lang/extras.js XoopsModules26/news/trunk/news/js/src/lang/func.js XoopsModules26/news/trunk/news/js/src/lang/repr.js XoopsModules26/news/trunk/news/js/src/lang/timing/ XoopsModules26/news/trunk/news/js/src/lang/timing/Streamer.js XoopsModules26/news/trunk/news/js/src/lang/timing/Timer.js XoopsModules26/news/trunk/news/js/src/lang/timing/__package__.js XoopsModules26/news/trunk/news/js/src/lang/type.js XoopsModules26/news/trunk/news/js/src/lfx/ XoopsModules26/news/trunk/news/js/src/lfx/Animation.js XoopsModules26/news/trunk/news/js/src/lfx/__package__.js XoopsModules26/news/trunk/news/js/src/lfx/extras.js XoopsModules26/news/trunk/news/js/src/lfx/html.js XoopsModules26/news/trunk/news/js/src/lfx/rounded.js XoopsModules26/news/trunk/news/js/src/lfx/shadow.js XoopsModules26/news/trunk/news/js/src/lfx/toggle.js XoopsModules26/news/trunk/news/js/src/ns.js XoopsModules26/news/trunk/news/js/src/uri/ XoopsModules26/news/trunk/news/js/src/uri/Uri.js XoopsModules26/news/trunk/news/js/src/uri/__package__.js XoopsModules26/news/trunk/news/js/src/widget/ XoopsModules26/news/trunk/news/js/src/widget/DomWidget.js XoopsModules26/news/trunk/news/js/src/widget/FisheyeList.js XoopsModules26/news/trunk/news/js/src/widget/HtmlWidget.js XoopsModules26/news/trunk/news/js/src/widget/Manager.js XoopsModules26/news/trunk/news/js/src/widget/Parse.js XoopsModules26/news/trunk/news/js/src/widget/Widget.js XoopsModules26/news/trunk/news/js/src/widget/__package__.js XoopsModules26/news/trunk/news/js/src/widget/templates/ XoopsModules26/news/trunk/news/js/src/widget/templates/FisheyeList.css XoopsModules26/news/trunk/news/js/src/widget/templates/images/ XoopsModules26/news/trunk/news/js/src/widget/templates/images/tab_close.gif XoopsModules26/news/trunk/news/js/src/xml/ XoopsModules26/news/trunk/news/js/src/xml/Parse.js XoopsModules26/news/trunk/news/js/src/xml/XslTransform.js XoopsModules26/news/trunk/news/js/src/xml/__package__.js XoopsModules26/news/trunk/news/language/ XoopsModules26/news/trunk/news/language/english/ XoopsModules26/news/trunk/news/language/english/admin.php XoopsModules26/news/trunk/news/language/english/blocks.php XoopsModules26/news/trunk/news/language/english/help/ XoopsModules26/news/trunk/news/language/english/help/help.html XoopsModules26/news/trunk/news/language/english/help/index.html XoopsModules26/news/trunk/news/language/english/index.html XoopsModules26/news/trunk/news/language/english/mail_template/ XoopsModules26/news/trunk/news/language/english/mail_template/category_newstory_notify.tpl XoopsModules26/news/trunk/news/language/english/mail_template/global_newcategory_notify.tpl XoopsModules26/news/trunk/news/language/english/mail_template/global_newstory_notify.tpl XoopsModules26/news/trunk/news/language/english/mail_template/global_storysubmit_notify.tpl XoopsModules26/news/trunk/news/language/english/mail_template/index.html XoopsModules26/news/trunk/news/language/english/mail_template/story_approve_notify.tpl XoopsModules26/news/trunk/news/language/english/mail_template/topic_newstory_notify.tpl XoopsModules26/news/trunk/news/language/english/main.php XoopsModules26/news/trunk/news/language/english/modinfo.php XoopsModules26/news/trunk/news/language/english/newsletter.php XoopsModules26/news/trunk/news/language/englishUTF8/ XoopsModules26/news/trunk/news/language/englishUTF8/admin.php XoopsModules26/news/trunk/news/language/englishUTF8/blocks.php XoopsModules26/news/trunk/news/language/englishUTF8/help/ XoopsModules26/news/trunk/news/language/englishUTF8/help/help.html XoopsModules26/news/trunk/news/language/englishUTF8/help/index.html XoopsModules26/news/trunk/news/language/englishUTF8/index.html XoopsModules26/news/trunk/news/language/englishUTF8/mail_template/ XoopsModules26/news/trunk/news/language/englishUTF8/mail_template/category_newstory_notify.tpl XoopsModules26/news/trunk/news/language/englishUTF8/mail_template/global_newcategory_notify.tpl XoopsModules26/news/trunk/news/language/englishUTF8/mail_template/global_newstory_notify.tpl XoopsModules26/news/trunk/news/language/englishUTF8/mail_template/global_storysubmit_notify.tpl XoopsModules26/news/trunk/news/language/englishUTF8/mail_template/index.html XoopsModules26/news/trunk/news/language/englishUTF8/mail_template/story_approve_notify.tpl XoopsModules26/news/trunk/news/language/englishUTF8/mail_template/topic_newstory_notify.tpl XoopsModules26/news/trunk/news/language/englishUTF8/main.php XoopsModules26/news/trunk/news/language/englishUTF8/modinfo.php XoopsModules26/news/trunk/news/language/englishUTF8/newsletter.php XoopsModules26/news/trunk/news/language/french/ XoopsModules26/news/trunk/news/language/french/admin.php XoopsModules26/news/trunk/news/language/french/blocks.php XoopsModules26/news/trunk/news/language/french/help/ XoopsModules26/news/trunk/news/language/french/help/help.html XoopsModules26/news/trunk/news/language/french/help/index.html XoopsModules26/news/trunk/news/language/french/index.html XoopsModules26/news/trunk/news/language/french/mail_template/ XoopsModules26/news/trunk/news/language/french/mail_template/category_newstory_notify.tpl XoopsModules26/news/trunk/news/language/french/mail_template/global_newcategory_notify.tpl XoopsModules26/news/trunk/news/language/french/mail_template/global_newstory_notify.tpl XoopsModules26/news/trunk/news/language/french/mail_template/global_storysubmit_notify.tpl XoopsModules26/news/trunk/news/language/french/mail_template/index.html XoopsModules26/news/trunk/news/language/french/mail_template/story_approve_notify.tpl XoopsModules26/news/trunk/news/language/french/mail_template/topic_newstory_notify.tpl XoopsModules26/news/trunk/news/language/french/main.php XoopsModules26/news/trunk/news/language/french/modinfo.php XoopsModules26/news/trunk/news/language/french/newsletter.php XoopsModules26/news/trunk/news/language/frenchUTF8/ XoopsModules26/news/trunk/news/language/frenchUTF8/admin.php XoopsModules26/news/trunk/news/language/frenchUTF8/blocks.php XoopsModules26/news/trunk/news/language/frenchUTF8/help/ XoopsModules26/news/trunk/news/language/frenchUTF8/help/help.html XoopsModules26/news/trunk/news/language/frenchUTF8/help/index.html XoopsModules26/news/trunk/news/language/frenchUTF8/index.html XoopsModules26/news/trunk/news/language/frenchUTF8/mail_template/ XoopsModules26/news/trunk/news/language/frenchUTF8/mail_template/category_newstory_notify.tpl XoopsModules26/news/trunk/news/language/frenchUTF8/mail_template/global_newcategory_notify.tpl XoopsModules26/news/trunk/news/language/frenchUTF8/mail_template/global_newstory_notify.tpl XoopsModules26/news/trunk/news/language/frenchUTF8/mail_template/global_storysubmit_notify.tpl XoopsModules26/news/trunk/news/language/frenchUTF8/mail_template/index.html XoopsModules26/news/trunk/news/language/frenchUTF8/mail_template/story_approve_notify.tpl XoopsModules26/news/trunk/news/language/frenchUTF8/mail_template/topic_newstory_notify.tpl XoopsModules26/news/trunk/news/language/frenchUTF8/main.php XoopsModules26/news/trunk/news/language/frenchUTF8/modinfo.php XoopsModules26/news/trunk/news/language/frenchUTF8/newsletter.php XoopsModules26/news/trunk/news/language/german/ XoopsModules26/news/trunk/news/language/german/admin.php XoopsModules26/news/trunk/news/language/german/blocks.php XoopsModules26/news/trunk/news/language/german/help/ XoopsModules26/news/trunk/news/language/german/help/help.html XoopsModules26/news/trunk/news/language/german/help/index.html XoopsModules26/news/trunk/news/language/german/index.html XoopsModules26/news/trunk/news/language/german/mail_template/ XoopsModules26/news/trunk/news/language/german/mail_template/category_newstory_notify.tpl XoopsModules26/news/trunk/news/language/german/mail_template/global_newcategory_notify.tpl XoopsModules26/news/trunk/news/language/german/mail_template/global_newstory_notify.tpl XoopsModules26/news/trunk/news/language/german/mail_template/global_storysubmit_notify.tpl XoopsModules26/news/trunk/news/language/german/mail_template/index.html XoopsModules26/news/trunk/news/language/german/mail_template/story_approve_notify.tpl XoopsModules26/news/trunk/news/language/german/mail_template/topic_newstory_notify.tpl XoopsModules26/news/trunk/news/language/german/main.php XoopsModules26/news/trunk/news/language/german/modinfo.php XoopsModules26/news/trunk/news/language/german/newsletter.php XoopsModules26/news/trunk/news/language/index.html XoopsModules26/news/trunk/news/language/italian/ XoopsModules26/news/trunk/news/language/italian/admin.php XoopsModules26/news/trunk/news/language/italian/aggiornamento.txt XoopsModules26/news/trunk/news/language/italian/blocks.php XoopsModules26/news/trunk/news/language/italian/help/ XoopsModules26/news/trunk/news/language/italian/help/help.html XoopsModules26/news/trunk/news/language/italian/help/index.html XoopsModules26/news/trunk/news/language/italian/index.html XoopsModules26/news/trunk/news/language/italian/mail_template/ XoopsModules26/news/trunk/news/language/italian/mail_template/global_newcategory_notify.tpl XoopsModules26/news/trunk/news/language/italian/mail_template/global_newstory_notify.tpl XoopsModules26/news/trunk/news/language/italian/mail_template/global_storysubmit_notify.tpl XoopsModules26/news/trunk/news/language/italian/mail_template/index.html XoopsModules26/news/trunk/news/language/italian/mail_template/story_approve_notify.tpl XoopsModules26/news/trunk/news/language/italian/mail_template/topic_newstory_notify.tpl XoopsModules26/news/trunk/news/language/italian/main.php XoopsModules26/news/trunk/news/language/italian/modinfo.php XoopsModules26/news/trunk/news/language/italian/newsletter.php XoopsModules26/news/trunk/news/list.tag.php XoopsModules26/news/trunk/news/makepdf.php XoopsModules26/news/trunk/news/micro_summary.php XoopsModules26/news/trunk/news/newsbythisauthor.php XoopsModules26/news/trunk/news/notification_update.php XoopsModules26/news/trunk/news/print.php XoopsModules26/news/trunk/news/ratenews.php XoopsModules26/news/trunk/news/seo/ XoopsModules26/news/trunk/news/seo/.htaccess XoopsModules26/news/trunk/news/seo/index.html XoopsModules26/news/trunk/news/sql/ XoopsModules26/news/trunk/news/sql/index.html XoopsModules26/news/trunk/news/sql/mysql.sql XoopsModules26/news/trunk/news/submit.php XoopsModules26/news/trunk/news/templates/ XoopsModules26/news/trunk/news/templates/blocks/ XoopsModules26/news/trunk/news/templates/blocks/index.html XoopsModules26/news/trunk/news/templates/blocks/news_block_archives.html XoopsModules26/news/trunk/news/templates/blocks/news_block_bigstory.html XoopsModules26/news/trunk/news/templates/blocks/news_block_moderate.html XoopsModules26/news/trunk/news/templates/blocks/news_block_randomnews.html XoopsModules26/news/trunk/news/templates/blocks/news_block_top.html XoopsModules26/news/trunk/news/templates/blocks/news_block_topicnav.html XoopsModules26/news/trunk/news/templates/blocks/news_block_topics.html XoopsModules26/news/trunk/news/templates/blocks/news_tag_block_cloud.html XoopsModules26/news/trunk/news/templates/blocks/news_tag_block_top.html XoopsModules26/news/trunk/news/templates/index.html XoopsModules26/news/trunk/news/templates/news_archive.html XoopsModules26/news/trunk/news/templates/news_article.html XoopsModules26/news/trunk/news/templates/news_by_this_author.html XoopsModules26/news/trunk/news/templates/news_by_topic.html XoopsModules26/news/trunk/news/templates/news_index.html XoopsModules26/news/trunk/news/templates/news_item.html XoopsModules26/news/trunk/news/templates/news_ratenews.html XoopsModules26/news/trunk/news/templates/news_rss.html XoopsModules26/news/trunk/news/templates/news_topics_directory.html XoopsModules26/news/trunk/news/templates/news_whos_who.html XoopsModules26/news/trunk/news/topics_directory.php XoopsModules26/news/trunk/news/view.tag.php XoopsModules26/news/trunk/news/visit.php XoopsModules26/news/trunk/news/whoswho.php XoopsModules26/news/trunk/news/xoops_version.php Added: XoopsModules26/news/trunk/news/admin/about.php =================================================================== --- XoopsModules26/news/trunk/news/admin/about.php (rev 0) +++ XoopsModules26/news/trunk/news/admin/about.php 2012-12-10 01:13:08 UTC (rev 10345) @@ -0,0 +1,29 @@ +<?php +/** + * News 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 {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} + * @package News + * @since 2.5.0 + * @author XOOPS Development Team + * @version $Id $ + **/ +include_once dirname(__FILE__) . '/admin_header.php'; + +//xoops_cp_header(); +$xoops->header($xoops->getOption('template_main')); + +$aboutAdmin = new XoopsModuleAdmin(); + +echo $aboutAdmin->renderNavigation('about.php'); +echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); + +include 'admin_footer.php'; \ No newline at end of file Added: XoopsModules26/news/trunk/news/admin/admin_footer.php =================================================================== --- XoopsModules26/news/trunk/news/admin/admin_footer.php (rev 0) +++ XoopsModules26/news/trunk/news/admin/admin_footer.php 2012-12-10 01:13:08 UTC (rev 10345) @@ -0,0 +1,24 @@ +<?php +/** + * News 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.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package News + * @since 1.6.7 + * @author Mamba (www.xoops.org) + * @version $Id $ +**/ + +echo"<div class='adminfooter'>\n" . " <div style='text-align: center;'>\n" + . " <a href='http://www.xoops.org' rel='external'><img src=" . XOOPS_URL . "/media/xoops/images/xoopsmicrobutton.gif alt='XOOPS' title='XOOPS'></a>\n" + . " </div>\n" . " " . _AM_MODULEADMIN_ADMIN_FOOTER . "\n" . "</div>"; + +$xoops->footer($xoops->getOption('template_main')); \ No newline at end of file Added: XoopsModules26/news/trunk/news/admin/admin_header.php =================================================================== --- XoopsModules26/news/trunk/news/admin/admin_header.php (rev 0) +++ XoopsModules26/news/trunk/news/admin/admin_header.php 2012-12-10 01:13:08 UTC (rev 10345) @@ -0,0 +1,71 @@ +<?php +/** + * News 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.gnu.org/licenses/gpl-2.0.html GNU Public License + * @package news + * @since 1.6.7 + * @author XOOPS Development Team + * @version $Id $ +**/ +$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'); +$thisModulePath = dirname(dirname(__FILE__)); + +//if functions.php file exist +require_once dirname(dirname(__FILE__)) . '/include/functions.php'; +//require_once $thisModulePath . '/include/functions.php'; + +// Load language files +$xoops = Xoops::getInstance(); +$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); +} + + +$topicsHandler= $xoops->getModuleHandler('news_topics','news'); +$storiesHandler= $xoops->getModuleHandler('news_stories','news'); + +$myts = MyTextSanitizer::getInstance(); + +if ($xoopsUser) { + $moduleperm_handler = $xoops->getHandlerGroupperm(); + 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('pathIcon16', $pathIcon16); \ No newline at end of file Added: XoopsModules26/news/trunk/news/admin/amsimport.php =================================================================== --- XoopsModules26/news/trunk/news/admin/amsimport.php (rev 0) +++ XoopsModules26/news/trunk/news/admin/amsimport.php 2012-12-10 01:13:08 UTC (rev 10345) @@ -0,0 +1,255 @@ +<?php +// $Id: amsimport.php 9665 2012-06-17 20:21:31Z beckmi $ +// ------------------------------------------------------------------------ // +// 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 // +// ------------------------------------------------------------------------ // +/** + * AMS Import + * + * This script will import topics, articles, files, links, ratings, comments and notifications from AMS 2.41 + * + * @package News + * @author Herv\xE9 Thouzard (http://www.herve-thouzard.com) + * @copyright 2005, 2006 - Herv\xE9 Thouzard + * @version 1.0 + */ + +include_once '../../../include/cp_header.php'; +//xoops_cp_header(); +$xoops->header($xoops->getOption('template_main')); +include_once XOOPS_ROOT_PATH.'/modules/news/include/functions.php'; +include_once XOOPS_ROOT_PATH.'/modules/news/class/class.newsstory.php'; +include_once XOOPS_ROOT_PATH.'/modules/news/class/class.sfiles.php'; +include_once XOOPS_ROOT_PATH.'/modules/news/class/class.newstopic.php'; +include_once XOOPS_ROOT_PATH.'/class/xoopstree.php'; + +if (is_object($xoopsUser) && $xoopsUser->isAdmin($xoopsModule->mid())) { + if(!isset($_POST['go']) ) { + echo '<h1>Welcome to the AMS 2.41 import script</h1>'; + echo '<br /><br />Select the import options you wan to use :'; + echo "<form method='post' action='amsimport.php'>"; + echo "<br /><input type='checkbox' name='useforum' value='1' /> Import forums links inside news (at the bottom of the news)"; + echo "<br /><input type='checkbox' name='useextlinks' value='1' /> Import external links inside news (at the bottom of the news)"; + echo "<br /><br /><input type='submit' name='go' value='Import' />"; + echo '</form>'; + echo "<br /><br />If you check the two last options then the forum's link and all the external links will be added at the end of the body text."; + } else { + // Launch the import + if (file_exists(XOOPS_ROOT_PATH.'/modules/AMS/language/'.$xoopsConfig['language'].'/main.php')) { + include_once XOOPS_ROOT_PATH.'/modules/AMS/language/'.$xoopsConfig['language'].'/main.php'; + } else { + include_once XOOPS_ROOT_PATH.'/modules/AMS/language/english/main.php'; + } + if (file_exists(XOOPS_ROOT_PATH.'/modules/AMS/language/'.$xoopsConfig['language'].'/admin.php')) { + include_once XOOPS_ROOT_PATH.'/modules/AMS/language/'.$xoopsConfig['language'].'/admin.php'; + } else { + include_once XOOPS_ROOT_PATH.'/modules/AMS/language/english/admin.php'; + } + $db =& XoopsDatabaseFactory::getDatabaseConnection(); + // User's choices + $use_forum = (isset($_POST['useforum']) && $_POST['useforum']==1) ? 1 : 0; + $use_extlinks = (isset($_POST['useextlinks']) && $_POST['useextlinks']==1) ? 1 : 0; + // Retreive News module's ID + $module_handler = $xoops->getHandlerGroupperm(); + + $newsModule = $module_handler->getByDirname('news'); + $news_mid = $newsModule->getVar('mid'); + // Retreive AMS module's ID + $AmsModule = $module_handler->getByDirname('AMS'); + $ams_mid = $AmsModule->getVar('mid'); + + // Retreive AMS tables names + $ams_topics = $xoopsDB->prefix('ams_topics'); + $ams_articles = $xoopsDB->prefix('ams_article'); + $ams_text = $xoopsDB->prefix('ams_text'); + $ams_files = $xoopsDB->prefix('ams_files'); + $ams_links = $xoopsDB->prefix('ams_link'); + $ams_rating = $xoopsDB->prefix('ams_rating'); + // Retreive News tables names + $news_stories_votedata = $xoopsDB->prefix('stories_votedata'); + // Misc + $comment_handler =& xoops_gethandler('comment'); + $notification_handler =& xoops_gethandler('notification'); + $ams_news_topics=array(); // Key => AMS Id, Value => News ID + + // The import by itself + // Read topics by their order + $mytree = new XoopsTree($ams_topics,'topic_id','topic_pid'); + $ams_topics = $mytree->getChildTreeArray(0,'weight'); + foreach($ams_topics as $one_amstopic) { + // First we create the topic + $topicpid=0; + if($one_amstopic['topic_pid']!=0) { // Search for its the parent + if(array_key_exists($one_amstopic['topic_pid'],$ams_news_topics)) { + $topicpid=$ams_news_topics[$one_amstopic['topic_pid']]; + } + } + $news_topic = new NewsTopic(); + $news_topic->setTopicPid($topicpid); + $news_topic->setTopicTitle($one_amstopic['topic_title']); + $news_topic->setTopicImgurl($one_amstopic['topic_imgurl']); + $news_topic->setMenu(0); + $news_topic->setTopicFrontpage(1); + $news_topic->Settopic_rssurl(''); + $news_topic->setTopicDescription(''); + $news_topic->setTopic_color('000000'); + $news_topic->store(); + echo '<br>- The following topic was imported : '.$news_topic->topic_title(); + $ams_topicid = $one_amstopic['topic_id']; + $news_topicid = $news_topic->topic_id(); + $ams_news_topics[$ams_topicid] = $news_topicid; + + // Then we insert all its articles + $result = $db->query('SELECT * FROM '.$ams_articles.' WHERE topicid='.$ams_topicid.' ORDER BY created'); + while ( $article = $db->fetchArray($result) ) { + $ams_newsid = $article['storyid']; + + // We search for the last version + $result2 = $db->query('SELECT * FROM '.$ams_text.' WHERE storyid='.$ams_newsid.' AND current=1'); + $text_lastversion = $db->fetchArray($result2); + + // We search for the number of votes + $result3 = $db->query('SELECT count(*) as cpt FROM '.$ams_rating.' WHERE storyid='.$ams_newsid); + $votes = $db->fetchArray($result3); + + // The links + $links=''; + if($use_extlinks) { + $result7 = $db->query('SELECT * FROM '.$ams_links.' WHERE storyid='.$ams_newsid.' ORDER BY linkid'); + while ( $link = $db->fetchArray($result7) ) { + if(trim($links)=='') { + $links="\n\n"._AMS_NW_RELATEDARTICLES."\n\n"; + } + $links .= _AMS_NW_EXTERNALLINK.' [url='.$link['link_link'].']'.$link['link_title'].'[/url]'."\n"; + } + } + + // The forum + $forum=''; + if($use_forum && $one_amstopic['forum_id']!=0) { + $forum = "\n\n".'[url='.XOOPS_URL.'/modules/newbb/viewforum.php?forum='.$one_amstopic['forum_id'].']'._AMS_AM_LINKEDFORUM.'[/url]'."\n"; + } + + // We create the story + $news = new NewsStory(); + $news->setUid($text_lastversion['uid']); + $news->setTitle($article['title']); + $news->created=$article['created']; + $news->setPublished($article['published']); + $news->setExpired($article['expired']); + $news->setHostname($article['hostname']); + $news->setNohtml($article['nohtml']); + $news->setNosmiley($article['nosmiley']); + $news->setHometext($text_lastversion['hometext']); + $news->setBodytext($text_lastversion['bodytext'].$links.$forum); + $news->setKeywords(''); + $news->setDescription(''); + $news->counter=$article['counter']; + $news->setTopicId($news_topicid); + $news->setIhome($article['ihome']); + $news->setNotifyPub($article['notifypub']); + $news->story_type=$article['story_type']; + $news->setTopicdisplay($article['topicdisplay']); + $news->setTopicalign($article['topicalign']); + $news->setComments($article['comments']); + $news->rating=$article['rating']; + $news->votes=$votes['cpt']; + $approved = $article['published']>0 ? true : false; + $news->approved=$approved; + $news->store($approved); + echo '<br> This story was imported : '.$news->title(); + $news_newsid=$news->storyid(); // ******************** + + // The files + $result4 = $db->query('SELECT * FROM '.$ams_files.' WHERE storyid='.$ams_newsid); + while ( $file = $db->fetchArray($result4) ) { + $sfile = new sFiles(); + $sfile->setFileRealName($file['filerealname']); + $sfile->setStoryid($news_newsid); + $sfile->date=$file['date']; + $sfile->setMimetype($file['mimetype']); + $sfile->setDownloadname($file['downloadname']); + $sfile->counter=$file['counter']; + $sfile->store(); + echo '<br> This file was imported : '.$sfile->getDownloadname(); + $news_fileid=$sfile->fileid; + } + + // The ratings + $result5 = $db->query('SELECT * FROM '.$ams_rating.' WHERE storyid='.$ams_newsid); + while ( $ratings = $db->fetchArray($result5) ) { + $result6 = $db->queryF('INSERT INTO '.$news_stories_votedata." (storyid, ratinguser, rating, ratinghostname, ratingtimestamp) VALUES (".$news_newsid.','.$ratings['ratinguser'].','.$ratings['rating'].','.$ratings['ratinghostname'].','.$ratings['ratingtimestamp'].')'); + } + + // The comments + $comments =& $comment_handler->getByItemId($ams_mid, $ams_newsid, 'ASC'); + if(is_array($comments) && count($comments)>0) { + foreach($comments as $onecomment) { + $onecomment->setNew(); + $onecomment->setVar('com_modid',$news_mid); + $onecomment->setVar('com_itemid',$news_newsid); + $comment_handler->insert($onecomment); + } + } + unset($comments); + + // The notifications of this news + //$notifications =& $notification_handler->getByItemId($ams_mid, $ams_newsid, 'ASC'); + $criteria = new CriteriaCompo(new Criteria('not_modid', $ams_mid)); + $criteria->add(new Criteria('not_itemid', $ams_newsid)); + $criteria->setOrder('ASC'); + $notifications = $notification_handler->getObjects($criteria); + if(is_array($notifications) && count($notifications)>0) { + foreach($notifications as $onenotification) { + $onenotification->setNew(); + $onenotification->setVar('not_modid',$news_mid); + $onenotification->setVar('not_itemid',$news_newsid); + $notification_handler->insert($onenotification); + } + } + unset($notifications); + } + } + // Finally, import all the globals notifications + $criteria = new CriteriaCompo(new Criteria('not_modid', $ams_mid)); + $criteria->add(new Criteria('not_category', 'global')); + $criteria->setOrder('ASC'); + $notifications = $notification_handler->getObjects($criteria); + if(is_array($notifications) && count($notifications)>0) { + foreach($notifications as $onenotification) { + $onenotification->setNew(); + $onenotification->setVar('not_modid',$news_mid); + $onenotification->setVar('not_itemid',$news_newsid); + $notification_handler->insert($onenotification); + } + } + unset($notifications); + echo "<p><a href='".XOOPS_URL."/modules/news/admin/groupperms.php'>The import is finished, don't forget to verify and set the topics permissions !</a></p>"; + } +} else { + redirect_header(XOOPS_URL.'/modules/news/index.php', 3, _NOPERM); + exit(); +} +$xoops->footer($xoops->getOption('template_main')); +?> Added: XoopsModules26/news/trunk/news/admin/functions.php =================================================================== --- XoopsModules26/news/trunk/news/admin/functions.php (rev 0) +++ XoopsModules26/news/trunk/news/admin/functions.php 2012-12-10 01:13:08 UTC (rev 10345) @@ -0,0 +1,86 @@ +<?php +// $Id: functions.php 8116 2011-11-06 14:48:51Z beckmi $ +// ------------------------------------------------------------------------ // +// 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 // +// ------------------------------------------------------------------------ // +/** + * Function used to display a menu similar to the launcher on OS X + * + * Enable webmasters to navigate thru the module's features. + * Each time you select an option in the admin panel of the news module, this option is highlighted in this menu + * + * NOTE : Please give credits if you copy this code ! + * + * @package News + * @author Herv\xE9 Thouzard (http://www.herve-thouzard.com) & Dojo Javscript Toolkit + * @copyright (c) Herv\xE9 Thouzard (http://www.herve-thouzard.com) + */ + +function news_collapsableBar($tablename = '', $iconname = '') +{ + + ?> + <script type="text/javascript"><!-- + function goto_URL(object) + { + window.location.href = object.options[object.selectedIndex].value; + } + + function toggle(id) + { + if (document.getElementById) { obj = document.getElementById(id); } + if (document.all) { obj = document.all[id]; } + if (document.layers) { obj = document.layers[id]; } + if (obj) { + if (obj.style.display == "none") { + obj.style.display = ""; + } else { + obj.style.display = "none"; + } + } + return false; + } + + var iconClose = new Image(); + iconClose.src = '../images/icons/close12.gif'; + var iconOpen = new Image(); + iconOpen.src = '../images/icons/open12.gif'; + + function toggleIcon ( iconName ) + { + if ( document.images[iconName].src == window.iconOpen.src ) { + document.images[iconName].src = window.iconClose.src; + } else if ( document.images[iconName].src == window.iconClose.src ) { + document.images[iconName].src = window.iconOpen.src; + } + return; + } + + //--> + </script> + <?php +echo "<h4 style=\"color: #2F5376; margin: 6px 0 0 0; \"><a href='#' onClick=\"toggle('" . $tablename . "'); toggleIcon('" . $iconname . "');\">"; +} + +?> \ No newline at end of file Added: XoopsModules26/news/trunk/news/admin/groupperms.php =================================================================== --- XoopsModules26/news/trunk/news/admin/groupperms.php (rev 0) +++ XoopsModules26/news/trunk/news/admin/groupperms.php 2012-12-10 01:13:08 UTC (rev 10345) @@ -0,0 +1,73 @@ +<?php +// $Id: groupperms.php 9572 2012-05-22 11:13:40Z beckmi $ +// ------------------------------------------------------------------------ // +// 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 // +// ------------------------------------------------------------------------ // +include_once '../../../include/cp_header.php'; +include_once XOOPS_ROOT_PATH . '/modules/news/class/xoopstopic.php'; +include_once XOOPS_ROOT_PATH . '/class/xoopslists.php'; +include_once XOOPS_ROOT_PATH . '/class/xoopsform/grouppermform.php'; +include_once XOOPS_ROOT_PATH . '/modules/news/admin/functions.php'; +include_once 'admin_header.php'; +//xoops_cp_header(); +$xoops->header($xoops->getOption('template_main')); +$permAdmin = new XoopsModuleAdmin(); +echo $permAdmin->renderNavigation('groupperms.php'); + +echo '<br /><br /><br />'; +$permtoset = isset($_POST['permtoset']) ? intval($_POST['permtoset']) : 1; +$selected = array('', '', ''); +$selected[$permtoset-1]=' selected'; +echo "<form method='post' name='fselperm' action='groupperms.php'><select name='permtoset' onChange='javascript: document.fselperm.submit()'><option value='1'".$selected[0].">"._AM_APPROVEFORM."</option><option value='2'".$selected[1].">"._AM_SUBMITFORM."</option><option value='3'".$selected[2].">"._AM_VIEWFORM."</option></select> <input type='submit' name='go'></form>"; +$module_id = $xoopsModule->getVar('mid'); + +switch($permtoset) +{ + case 1: + $title_of_form = _AM_APPROVEFORM; + $perm_name = 'news_approve'; + $perm_desc = _AM_APPROVEFORM_DESC; + break; + case 2: + $title_of_form = _AM_SUBMITFORM; + $perm_name = 'news_submit'; + $perm_desc = _AM_SUBMITFORM_DESC; + break; + case 3: + $title_of_form = _AM_VIEWFORM; + $perm_name = 'news_view'; + $perm_desc = _AM_VIEWFORM_DESC; + break; +} + +$permform = new XoopsGroupPermForm($title_of_form, $module_id, $perm_name, $perm_desc,'admin/groupperms.php'); +$xt = new XoopsTopic($xoopsDB -> prefix('topics')); +$alltopics = $xt->getTopicsList(); +foreach ($alltopics as $topic_id => $topic) { + $permform->addItem($topic_id, $topic['title'], $topic['pid']); +} +echo $permform->render(); +echo "<br /><br /><br /><br />\n"; +unset($permform); +include 'admin_footer.php'; \ No newline at end of file Added: XoopsModules26/news/trunk/news/admin/index.html =================================================================== --- XoopsModules26/news/trunk/news/admin/index.html (rev 0) +++ XoopsModules26/news/trunk/news/admin/index.html 2012-12-10 01:13:08 UTC (rev 10345) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules26/news/trunk/news/admin/index.php =================================================================== --- XoopsModules26/news/trunk/news/admin/index.php (rev 0) +++ XoopsModules26/news/trunk/news/admin/index.php 2012-12-10 01:13:08 UTC (rev 10345) @@ -0,0 +1,1644 @@ +<?php +// $Id: index.php 9670 2012-06-18 19:36:48Z beckmi $ +// ------------------------------------------------------------------------ // +// 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 // +// ------------------------------------------------------------------------ // +include_once '../../../include/cp_header.php'; +include_once 'admin_header.php'; +include_once XOOPS_ROOT_PATH.'/modules/news/class/xoopstopic.php'; +include_once XOOPS_ROOT_PATH.'/class/xoopslists.php'; +include_once XOOPS_ROOT_PATH.'/modules/news/config.php'; +include_once XOOPS_ROOT_PATH.'/modules/news/class/class.newsstory.php'; +include_once XOOPS_ROOT_PATH.'/modules/news/class/class.newstopic.php'; +include_once XOOPS_ROOT_PATH.'/modules/news/class/class.sfiles.php'; +include_once XOOPS_ROOT_PATH.'/modules/news/class/blacklist.php'; +include_once XOOPS_ROOT_PATH.'/modules/news/class/registryfile.php'; +include_once XOOPS_ROOT_PATH.'/class/uploader.php'; +include_once XOOPS_ROOT_PATH.'/class/pagenav.php'; +include_once XOOPS_ROOT_PATH.'/modules/news/admin/functions.php'; +include_once XOOPS_ROOT_PATH.'/modules/news/include/functions.php'; +include_once XOOPS_ROOT_PATH.'/class/tree.php'; +$dateformat=news_getmoduleoption('dateformat'); +$myts = MyTextSanitizer::getInstance(); +$topicscount=0; + +$storiesTableName = $xoopsDB->prefix('stories'); +if(!news_FieldExists('picture', $storiesTableName)) { + news_AddField('`picture` VARCHAR( 50 ) NOT NULL', $storiesTableName); +} + +/** + * Show new submissions + * + * This list can be view in the module's admin when you click on the tab named "Post/Edit News" + * Submissions are news that was submit by users but who are not approved, so you need to edit + * them to approve them. + * Actually you can see the the story's title, the topic, the posted date, the author and a + * link to delete the story. If you click on the story's title, you will be able to edit the news. + * The table contains the last x new submissions. + * The system's block called "Waiting Contents" is listing the number of those news. + */ +function newSubmissions() +{ + global $dateformat, $pathIcon16; + $start = isset($_GET['startnew']) ? intval($_GET['startnew']) : 0; + $newsubcount = NewsStory :: getAllStoriesCount(3,false); + $storyarray = NewsStory :: getAllSubmitted(news_getmoduleoption('storycountadmin'),true,news_getmoduleoption('restrictindex'),$start); + if ( count($storyarray)> 0) { + $pagenav = new XoopsPageNav( $newsubcount, news_getmoduleoption('storycountadmin'), $start, 'startnew', 'op=newarticle'); + news_collapsableBar('newsub', 'topnewsubicon'); + echo "<img onclick=\"toggle('toptable'); toggleIcon('toptableicon');\" id='topnewsubicon' name='topnewsubicon' src='" . $pathIcon16."/close12.gif' alt='' /></a> "._AM_NEWSUB."</h4>"; + echo "<div id='newsub'>"; + echo '<br />'; + echo "<div style='text-align: center;'><table width='100%' cellspacing='1' cellpadding='3' border='0' class='outer'><tr class='bg3'><th align='center'>" . _AM_TITLE . "</th><th align='center'>" . _AM_TOPIC . "</th><th align='center'>" . _AM_POSTED . "</th><th align='center'>" . _AM_POSTER . "</th><th align='center'>" . _AM_ACTION . "</th></tr>\n"; + $class=''; + foreach( $storyarray as $newstory ) { + $class = ($class == 'even') ? 'odd' : 'even'; + echo "<tr class='".$class."'><td align='left'>\n"; + $title = $newstory->title(); + if (!isset($title) || ($title == '' )) { + echo "<a href='".XOOPS_URL."/modules/news/admin/index.php?op=edit&returnside=1&storyid=" . $newstory -> storyid() . "'>" . _AD_NOSUBJECT . "</a>\n"; + } else { + echo " <a href='".XOOPS_URL."/modules/news/submit.php?returnside=1&op=edit&storyid=" . $newstory -> storyid() . "'>" . $title . "</a>\n"; + } + echo "</td><td>" . $newstory->topic_title() . "</td><td align='center' class='nw'>" . XoopsLocal::formatTimestamp($newstory->created(),$dateformat) . "</td><td align='center'><a href='" . XOOPS_URL . "/userinfo.php?uid=" . $newstory->uid() . "'>" . $newstory->uname() . "</a></td><td align='center'><a href='".XOOPS_URL."/modules/news/submit.php?returnside=1&op=edit&storyid=" . $newstory->storyid() . "'><img src='" . $pathIcon16."/edit.png' title='"._AM_EDIT."'></a><a href='".XOOPS_URL."/modules/news/admin/index.php?op=delete&storyid=" . $newstory->storyid() . "'><img src='" . $pathIcon16."/delete.png' title='"._AM_DELETE."'></a></td></tr>\n"; + } + + echo '</table></div>'; + echo "<div align='right'>".$pagenav->renderNav().'</div><br />'; + echo '<br /></div><br />'; + } +} + +/** + * Shows all automated stories + * + * Automated stories are stories that have a publication's date greater than "now" + * This list can be view in the module's admin when you click on the tab named "Post/Edit News" + * Actually you can see the story's ID, its title, the topic, the author, the + * programmed date and time, the expiration's date and two links. The first link is + * used to edit the story while the second is used to remove the story. + * The list only contains the last (x) automated news + */ +function autoStories() +{ + globa... [truncated message content] |
From: <be...@us...> - 2012-12-10 01:08:21
|
Revision: 10344 http://sourceforge.net/p/xoops/svn/10344 Author: beckmi Date: 2012-12-10 01:08:18 +0000 (Mon, 10 Dec 2012) Log Message: ----------- Adding folder for News Added Paths: ----------- XoopsModules26/news/ XoopsModules26/news/branches/ XoopsModules26/news/releases/ XoopsModules26/news/trunk/ XoopsModules26/news/trunk/news/ |
From: <tr...@us...> - 2012-12-10 00:22:51
|
Revision: 10343 http://sourceforge.net/p/xoops/svn/10343 Author: trabis Date: 2012-12-10 00:22:48 +0000 (Mon, 10 Dec 2012) Log Message: ----------- Module Codex - Showing files content along with the examples Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/cache.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/form.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/pdf.php XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Debug.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/cache.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/cache.php 2012-12-09 21:20:35 UTC (rev 10342) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/cache.php 2012-12-10 00:22:48 UTC (rev 10343) @@ -55,4 +55,6 @@ echo $ret . '<br />'; echo '<a href="?nodelete">Refresh</a> - <a href="?delete">Delete caches</a>'; + +Xoops_Debug::dumpFile(__FILE__ ); $xoops->footer(); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/form.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/form.php 2012-12-09 21:20:35 UTC (rev 10342) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/form.php 2012-12-10 00:22:48 UTC (rev 10343) @@ -20,6 +20,7 @@ $xoops = Xoops::getInstance(); $xoops->header(); + // Form Horizontal $form = new XoopsThemeForm('Form Horizontal', 'form_horizontal', 'testform.php', 'post', true, 'horizontal'); @@ -137,4 +138,6 @@ $form->addElement($button_tray); $form->display(); + +Xoops_Debug::dumpFile(__FILE__ ); $xoops->footer(); \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/pdf.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/pdf.php 2012-12-09 21:20:35 UTC (rev 10342) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/pdf.php 2012-12-10 00:22:48 UTC (rev 10343) @@ -20,19 +20,27 @@ $xoops = Xoops::getInstance(); -$content = Xoops_Debug::dump($xoops->getConfigs(), false); +if (isset($_GET['pdf'])) { + $content = Xoops_Debug::dump($xoops->getConfigs(), false); -$tpl = new XoopsTpl(); -$tpl->assign('dummy_content' , $content); -$content2 = $tpl->fetch('module:system|system_dummy.html'); + $tpl = new XoopsTpl(); + $tpl->assign('dummy_content' , $content); + $content2 = $tpl->fetch('module:system|system_dummy.html'); -if ($xoops->isActiveModule('pdf')) { - $pdf = new Pdf(); - $pdf->writeHtml($content2, false); - $pdf->Output('example.pdf'); + if ($xoops->isActiveModule('pdf')) { + $pdf = new Pdf(); + $pdf->writeHtml($content2, false); + $pdf->Output('example.pdf'); + } else { + $xoops->header(); + echo 'Oops, Please install pdf module!'; + Xoops_Debug::dumpFile(__FILE__ ); + $xoops->footer(); + } } else { $xoops->header(); - echo 'Oops, Please install pdf module!'; + echo '<a href="?pdf">Make Pdf</a>'; + Xoops_Debug::dumpFile(__FILE__ ); $xoops->footer(); } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Debug.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Debug.php 2012-12-09 21:20:35 UTC (rev 10342) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Debug.php 2012-12-10 00:22:48 UTC (rev 10343) @@ -47,4 +47,27 @@ } return $msg; } + + /** + * Output a dump of a file + * + * @param mixed $file file which will be dumped + * @param bool $echo + * @param bool $exit + * + * @return string + */ + static function dumpFile($file, $echo = true, $exit = false) + { + $msg = highlight_file($file, true); + $msg = "<div style='padding: 5px; font-weight: bold'>{$msg}</div>"; + if (!$echo) { + return $msg; + } + echo $msg; + if ($exit) { + die(); + } + return $msg; + } } \ No newline at end of file |
From: <tr...@us...> - 2012-12-09 21:20:38
|
Revision: 10342 http://sourceforge.net/p/xoops/svn/10342 Author: trabis Date: 2012-12-09 21:20:35 +0000 (Sun, 09 Dec 2012) Log Message: ----------- Fixing security issue in maintenance module Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/admin/center.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/admin/dump.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/admin/center.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/admin/center.php 2012-12-09 20:52:09 UTC (rev 10341) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/admin/center.php 2012-12-09 21:20:35 UTC (rev 10342) @@ -47,6 +47,10 @@ break; case 'maintenance_save': + // Check security + if (!$xoops->security()->check()) { + $xoops->redirect('center.php', 3, implode('<br />', $xoops->security()->getErrors())); + } $admin_page->addItemButton(_AM_MAINTENANCE_CENTER_RETURN, 'center.php', 'application-view-detail'); $admin_page->renderButton(); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/admin/dump.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/admin/dump.php 2012-12-09 20:52:09 UTC (rev 10341) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/admin/dump.php 2012-12-09 21:20:35 UTC (rev 10342) @@ -65,6 +65,10 @@ break; case 'dump_save': + // Check security + if (!$xoops->security()->check()) { + $xoops->redirect('dump.php', 3, implode('<br />', $xoops->security()->getErrors())); + } $admin_page->addItemButton(_AM_MAINTENANCE_DUMP_LIST, 'dump.php', 'application-view-detail'); $admin_page->addItemButton(_AM_MAINTENANCE_DUMP_FORM, 'dump.php?op=dump', 'cd'); $admin_page->renderButton(); |
From: <tr...@us...> - 2012-12-09 20:52:13
|
Revision: 10341 http://sourceforge.net/p/xoops/svn/10341 Author: trabis Date: 2012-12-09 20:52:09 +0000 (Sun, 09 Dec 2012) Log Message: ----------- Deleting examples folder and updating modules descriptions Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/xoops_version.php Removed Paths: ------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/examples/ Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/language/english/modinfo.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/language/english/modinfo.php 2012-12-09 20:51:26 UTC (rev 10340) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/language/english/modinfo.php 2012-12-09 20:52:09 UTC (rev 10341) @@ -19,7 +19,7 @@ defined('XOOPS_ROOT_PATH') or die('Restricted access'); define('_MI_LOGGER_NAME', 'Logger'); -define('_MI_LOGGER_DSC', ''); +define('_MI_LOGGER_DSC', 'Error reporting and performance analysis'); define('_MI_LOGGER_DEBUGMODE' , "Debug Mode"); define('_MI_LOGGER_DEBUGMODE0', "Off"); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/xoops_version.php 2012-12-09 20:51:26 UTC (rev 10340) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/xoops_version.php 2012-12-09 20:52:09 UTC (rev 10341) @@ -12,7 +12,7 @@ /** * @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 logger + * @package pdf * @author trabis <lus...@gm...> * @version $Id$ */ |
From: <tr...@us...> - 2012-12-09 20:51:29
|
Revision: 10340 http://sourceforge.net/p/xoops/svn/10340 Author: trabis Date: 2012-12-09 20:51:26 +0000 (Sun, 09 Dec 2012) Log Message: ----------- adding codex module Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/cache.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/form.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/images/logo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/pdf.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/xoops_version.php Copied: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/cache.php (from rev 10329, XoopsCore/branches/2.6.x/2.6.0/htdocs/examples/cache.php) =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/cache.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/cache.php 2012-12-09 20:51:26 UTC (rev 10340) @@ -0,0 +1,58 @@ +<?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. + */ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'mainfile.php'; + +$xoops = Xoops::getInstance(); +$xoops->header(); +if (isset($_GET['delete'])) { + Xoops_Cache::delete('mykey'); + Xoops_Cache::delete('mykey2', 'myfilesystem'); + Xoops_Cache::delete('mykey3', 'mymemcache'); +} + +$content = time(); + +//using 'default' cache file system +if (!$ret = Xoops_Cache::read('mykey')) { + Xoops_Cache::write('mykey', $content); + $ret = $content; +} +echo $ret . '<br />'; + +//setting new cache file system +Xoops_Cache::config('myfilesystem', array('engine' => 'file', 'duration' => 10)); +if (!$ret = Xoops_Cache::read('mykey2', 'myfilesystem')) { + $ret = Xoops_Cache::write('mykey2', $content, 'myfilesystem'); + $ret = $content; +} +echo $ret . '<br />'; + +//setting new cache memcache system +Xoops_Cache::config('mymemcache', array('engine' => 'memcache', 'duration' => 5)); +if (!$ret = Xoops_Cache::read('mykey3', 'mymemcache')) { + if(Xoops_Cache::write('mykey3', $content, 'mymemcache')) { + $ret = $content; + } else { + $ret = 'No Memcache, no bear'; + } +} +echo $ret . '<br />'; + +echo '<a href="?nodelete">Refresh</a> - <a href="?delete">Delete caches</a>'; +$xoops->footer(); Copied: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/form.php (from rev 10329, XoopsCore/branches/2.6.x/2.6.0/htdocs/examples/form.php) =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/form.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/form.php 2012-12-09 20:51:26 UTC (rev 10340) @@ -0,0 +1,140 @@ +<?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. + */ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'mainfile.php'; + +$xoops = Xoops::getInstance(); +$xoops->header(); +// Form Horizontal +$form = new XoopsThemeForm('Form Horizontal', 'form_horizontal', 'testform.php', 'post', true, 'horizontal'); + +$code = new XoopsFormText('Code', 'code', 2, 25, '','Code...'); +$code->setDescription('Description code'); +$code->setPattern('^.{3,}$', 'You need at least 3 characters'); +$code->setDatalist(array('list 1','list 2','list 3')); +$form->addElement($code, true); + +$password = new XoopsFormPassword('Password', 'password', 3, 25, '', false, 'Your Password'); +$password->setDescription('Description password'); +$password->setPattern('^.{8,}$', 'You need at least 8 characters'); +$form->addElement($password, true); + +$description = new XoopsFormTextArea('Description', 'description', '', 5, 6, 'Your description'); +$description->setDescription('Put the description'); +$form->addElement($description, true); + +$description_2 = new XoopsFormDhtmlTextArea('Description_2', 'description_2', '', 6, 7); +$description_2->setDescription('Put the description_2'); +$form->addElement($description_2, true); + + +$form->addElement(new XoopsFormRadioYN('Yes or No', 'yesorno', 0), false); + +$radio_inline = new XoopsFormRadio('Radio Inline', 'radio_inline', 1, true); +$radio_inline->addOption(1, 'Radio Inline 1'); +$radio_inline->addOption(2, 'Radio Inline 2'); +$radio_inline->addOption(3, 'Radio Inline 3'); +$radio_inline->setDescription('Description Radio Inline'); +$form->addElement($radio_inline, false); + +$radio = new XoopsFormRadio('Radio', 'radio', 2, false); +$radio->addOption(1, 'Radio 1'); +$radio->addOption(2, 'Radio 2'); +$radio->addOption(3, 'Radio 3'); +$radio->setDescription('Description Radio'); +$form->addElement($radio, false); + +$checkbox_inline = new XoopsFormCheckbox('Checkbox Inline', 'checkbox_inline', 1, true); +$checkbox_inline->addOption(1, 'Checkbox Inline 1'); +$checkbox_inline->addOption(2, 'Checkbox Inline 2'); +$checkbox_inline->addOption(3, 'Checkbox Inline 3'); +$checkbox_inline->setDescription('Description Checkbox Inline'); +$form->addElement($checkbox_inline, true); + +$checkbox = new XoopsFormCheckbox('Checkbox', 'checkbox', 2, false); +$checkbox->addOption(1, 'Checkbox 1'); +$checkbox->addOption(2, 'Checkbox 2'); +$checkbox->addOption(3, 'Checkbox 3'); +$checkbox->setDescription('Description Checkbox'); +$form->addElement($checkbox, true); + +$label= new XoopsFormLabel('Label', 'label', 'label'); +$label->setDescription('Description Label'); +$form->addElement($label, true); + + +$color = new XoopsFormColorPicker('Color', 'color'); +$color->setDescription('Description Color'); +$form->addElement($color, true); + +$file = new XoopsFormFile('File', 'file', 500000); +$file->setDescription('Description File'); +$form->addElement($file, true); + +$select = new XoopsFormSelect('Select', 'select', '', 1, false); +$select->addOption(1, 'Select 1'); +$select->addOption(2, 'Select 2'); +$select->addOption(3, 'Select 3'); +$select->setDescription('Description Select'); +$select->setClass('span2'); +$form->addElement($select, true); + +$select_optgroup = new XoopsFormSelect('Select Optgroup', 'select_optgroup', '', 1, false); +$select_optgroup->addOptgroup('Swiss', array(1 => 'Geneva', 2 => 'Bern', 3 => 'Zurich')); +$select_optgroup->addOptgroup('France', array(4 => 'Paris', 5 => 'Lyon', 6 => 'Grenoble', 7 => 'Marseille')); +$select_optgroup->setDescription('Description Select Optgroup'); +$select_optgroup->setClass('span3'); +$form->addElement($select_optgroup, true); + +$date = new XoopsFormTextDateSelect('Date', 'date', 2,'','Date...'); +$date->setDescription('Description Date'); +$form->addElement($date, true); + +$date_time = new XoopsFormDateTime('Date time', 'date_time', 3,'','Date...'); +$date_time->setDescription('Description Date time'); +$form->addElement($date_time, true); + +$form->addElement(new XoopsFormCaptcha('Captcha', 'captcha', false), true); + +$testtray = new XoopsFormElementTray('Test tray'); +$select_tray = new XoopsFormSelect('Select_tray', 'select_tray', '', 4, true); +$select_tray->addOption(1, 'Select_tray 1'); +$select_tray->addOption(2, 'Select_tray 2'); +$select_tray->addOption(3, 'Select_tray 3'); +$select_tray->addOption(4, 'Select_tray 4'); +$select_tray->addOption(5, 'Select_tray 5'); +$select_tray->addOption(6, 'Select_tray 6'); +$select_tray->setDescription('Description Select_tray'); +$select_tray->setClass('span2'); +$testtray ->addElement($select_tray, true); +$testtray ->addElement($select_tray); +$form->addElement($testtray); + +$button = new XoopsFormButton('', 'submit', _SUBMIT, 'submit'); +$form->addElement($button); + +$button_2 = new XoopsFormButton('', 'reset', _RESET, 'reset'); +$button_2->setClass('btn btn-danger'); +$form->addElement($button_2); + +$button_tray = new XoopsFormButtonTray('button_tray', 'submit', _SUBMIT, '', true); +$button_tray->setClass('btn btn-inverse'); +$form->addElement($button_tray); + +$form->display(); +$xoops->footer(); \ No newline at end of file Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/images/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/images/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/images/index.html 2012-12-09 20:51:26 UTC (rev 10340) @@ -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/codex/images/logo.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/images/logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/index.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/index.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/index.php 2012-12-09 20:51:26 UTC (rev 10340) @@ -0,0 +1,30 @@ +<?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. + */ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +include dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'mainfile.php'; + +$xoops = Xoops::getInstance(); +$xoops->header(); +$files = XoopsLists::getFileListAsArray(dirname(__FILE__)); +foreach ($files as $file) { + if (!in_array($file, array('xoops_version.php', 'index.php'))) { + echo "<a href={$file}>{$file}</a><br/>"; + } +} + +$xoops->footer(); Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/index.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: svn:eol-style + native Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/index.html 2012-12-09 20:51:26 UTC (rev 10340) @@ -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/codex/language/english/main.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/main.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/main.php 2012-12-09 20:51:26 UTC (rev 10340) @@ -0,0 +1,19 @@ +<?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. + */ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/main.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: svn:eol-style + native Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/modinfo.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/modinfo.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/codex/language/english/modinfo.php 2012-12-09 20:51:26 UTC (rev 10340) @@ -0,0 +1,22 @@ +<?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. + */ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +define('_MI_CODEX_NAME', 'Codex'); +define('_MI_CODEX_DSC', 'Code examples for developers'); \ No newline at end of file Property changes on: XoopsCore/branches/2.6. |
From: <tr...@us...> - 2012-12-09 20:07:52
|
Revision: 10339 http://sourceforge.net/p/xoops/svn/10339 Author: trabis Date: 2012-12-09 20:07:47 +0000 (Sun, 09 Dec 2012) Log Message: ----------- Adding pdf module Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/examples/pdf.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_class/myPdf.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_tcpdf_5.0.002/2dbarcodes.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_tcpdf_5.0.002/fonts/arialunicid0.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_tcpdf_5.0.002/tcpdf.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/about.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/bookmark.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple00.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple01.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple02.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple03.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple04.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple05.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple06.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple07.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple08.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple09.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple10.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple11.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple12.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple13.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/forms.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/groups.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/js1.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/js2.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/js3.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/qrcode.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/radius.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/regle.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/svg.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/svg_tiger.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/svg_tree.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/ticket.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/utf8.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/html2pdf.class.php Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/class/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/class/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/class/pdf.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/logo_large.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/logo_small.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/images/logo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/preloads/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/preloads/core.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/preloads/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/xoops_version.php Removed Paths: ------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Pdf.php XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/ Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/examples/pdf.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/examples/pdf.php 2012-12-09 19:30:14 UTC (rev 10338) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/examples/pdf.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -25,7 +25,13 @@ $tpl->assign('dummy_content' , $content); $content2 = $tpl->fetch('module:system|system_dummy.html'); -$pdf = new Xoops_Pdf(); -$pdf->writeHtml($content2, false); -$pdf->Output('example.pdf'); +if ($xoops->isActiveModule('pdf')) { + $pdf = new Pdf(); + $pdf->writeHtml($content2, false); + $pdf->Output('example.pdf'); +} else { + $xoops->header(); + echo 'Oops, Please install pdf module!'; + $xoops->footer(); +} Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/class/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/class/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/class/index.html 2012-12-09 20:07:47 UTC (rev 10339) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Copied: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/class/pdf.php (from rev 10330, XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Pdf.php) =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/class/pdf.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/class/pdf.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -0,0 +1,57 @@ +<?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. +*/ + +/** + * Pdf + * + * @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 pdf + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +include_once dirname(dirname(__FILE__)) . '/html2pdf/html2pdf.class.php'; + +class Pdf extends HTML2PDF +{ + /** + * class constructor + * + * @access public + * + * @param string $orientation page orientation, same as TCPDF + * @param mixed $format The format used for pages, same as TCPDF + * @param string $langue Langue : fr, en, it... + * @param boolean $unicode TRUE means that the input text is unicode (default = true) + * @param string $encoding charset encoding; default is UTF-8 + * @param array $marges Default marges (left, top, right, bottom) + */ + public function __construct($orientation = 'P', $format = 'A4', $langue = _LANGCODE, $unicode = true, $encoding = _CHARSET, $marges = array( + 5, 5, 5, 8 + )) + { + $xoops = Xoops::getInstance(); + $xoops->disableErrorReporting(); + + parent::__construct($orientation, $format, $langue, $unicode, $encoding, $marges = array(5, 5, 5, 8)); + } + + /** + * Destructor + */ + public function __destruct() + { + parent::__destruct(); + } +} \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_class/myPdf.class.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/_class/myPdf.class.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_class/myPdf.class.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -9,7 +9,7 @@ * @version 4.03 */ -require_once(dirname(__FILE__).'/tcpdfConfig.php'); +require_once(dirname(__FILE__) . '/tcpdfConfig.php'); require_once(dirname(__FILE__).'/../_tcpdf_'.HTML2PDF_USED_TCPDF_VERSION.'/tcpdf.php'); class HTML2PDF_myPdf extends TCPDF Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_tcpdf_5.0.002/2dbarcodes.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/_tcpdf_5.0.002/2dbarcodes.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_tcpdf_5.0.002/2dbarcodes.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -100,7 +100,7 @@ $qrtype = strtoupper($mode[0]); switch ($qrtype) { case 'QRCODE': { // QR-CODE - require_once(dirname(__FILE__).'/qrcode.php'); + require_once(dirname(__FILE__) . '/qrcode.php'); if (!isset($mode[1]) OR (!in_array($mode[1],array('L','M','Q','H')))) { $mode[1] = 'L'; // Ddefault: Low error correction } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_tcpdf_5.0.002/fonts/arialunicid0.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/_tcpdf_5.0.002/fonts/arialunicid0.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_tcpdf_5.0.002/fonts/arialunicid0.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -3,7 +3,7 @@ $name='ArialUnicodeMS'; $desc=array('Ascent'=>1069,'Descent'=>-271,'CapHeight'=>1069,'Flags'=>32,'FontBBox'=>'[-1011 -330 2260 1078]','ItalicAngle'=>0,'StemV'=>70,'MissingWidth'=>600); $up=-100; -$ut=50; +$ut=50; $dw=1000; $cw=array( 32=>278,33=>278,34=>355,35=>556,36=>556,37=>889,38=>667,39=>191,40=>333,41=>333,42=>389,43=>584,44=>278,45=>333,46=>278,47=>278, @@ -1742,27 +1742,27 @@ 40853=>1000,40854=>1000,40855=>1000,40856=>1000,40857=>1000,40858=>1000,40859=>1000,40860=>1000,40861=>1000,40862=>1000,40863=>1000,40864=>1000,40865=>1000,40866=>1000,40867=>1000,40868=>1000, 40869=>1000); $diff=''; -$originalsize=23275812; - -// CID Information -// Select your language -// unicode to cid conversion table is from -// ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/ -// cid2code.txt in ac16.tar.Z,ag15.tar.Z,ak12.tar.Z and aj16.tar.Z. - -//$enc='UniCNS-UTF16-H'; -//$cidinfo=array('Registry'=>'Adobe','Ordering'=>'CNS1','Supplement'=>0); -//include(dirname(__FILE__).'/uni2cid_ac15.php'); - -//$enc='UniGB-UTF16-H'; -//$cidinfo=array('Registry'=>'Adobe','Ordering'=>'GB1','Supplement'=>2); -//include(dirname(__FILE__).'/uni2cid_ag15.php'); - -//$enc='UniKS-UTF16-H'; -//$cidinfo=array('Registry'=>'Adobe','Ordering'=>'Korea1','Supplement'=>0); -//include(dirname(__FILE__).'/uni2cid_ak12.php'); - -$enc='UniJIS-UTF16-H'; -$cidinfo=array('Registry'=>'Adobe','Ordering'=>'Japan1','Supplement'=>5); -include(dirname(__FILE__).'/uni2cid_aj16.php'); -?> +$originalsize=23275812; + +// CID Information +// Select your language +// unicode to cid conversion table is from +// ftp://ftp.oreilly.com/pub/examples/nutshell/cjkv/adobe/ +// cid2code.txt in ac16.tar.Z,ag15.tar.Z,ak12.tar.Z and aj16.tar.Z. + +//$enc='UniCNS-UTF16-H'; +//$cidinfo=array('Registry'=>'Adobe','Ordering'=>'CNS1','Supplement'=>0); +//include(dirname(__FILE__).'/uni2cid_ac15.php'); + +//$enc='UniGB-UTF16-H'; +//$cidinfo=array('Registry'=>'Adobe','Ordering'=>'GB1','Supplement'=>2); +//include(dirname(__FILE__).'/uni2cid_ag15.php'); + +//$enc='UniKS-UTF16-H'; +//$cidinfo=array('Registry'=>'Adobe','Ordering'=>'Korea1','Supplement'=>0); +//include(dirname(__FILE__).'/uni2cid_ak12.php'); + +$enc='UniJIS-UTF16-H'; +$cidinfo=array('Registry'=>'Adobe','Ordering'=>'Japan1','Supplement'=>5); +include(dirname(__FILE__) . '/uni2cid_aj16.php'); +?> Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_tcpdf_5.0.002/tcpdf.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/_tcpdf_5.0.002/tcpdf.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/_tcpdf_5.0.002/tcpdf.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -128,19 +128,19 @@ /** * main configuration file */ -require_once(dirname(__FILE__).'/config/tcpdf_config.php'); +require_once(dirname(__FILE__) . '/config/tcpdf_config.php'); // includes some support files /** * unicode data */ -require_once(dirname(__FILE__).'/unicode_data.php'); +require_once(dirname(__FILE__) . '/unicode_data.php'); /** * html colors table */ -require_once(dirname(__FILE__).'/htmlcolors.php'); +require_once(dirname(__FILE__) . '/htmlcolors.php'); if (!class_exists('TCPDF', false)) { /** @@ -12714,9 +12714,9 @@ $lastcols = $num_cols - 1; for ($i = 1; $i < $num_cols; ++$i) { $functions .= ($fc + $i).' 0 R '; - if ($i < $lastcols) { + if ($i < $lastcols) { $bounds .= sprintf('%.3F ', $grad['colors'][$i]['offset']); - } + } $encode .= '0 1 '; } $out .= ' /Functions ['.trim($functions).']'; @@ -13245,7 +13245,7 @@ if ($this->empty_string($code)) { return; } - require_once(dirname(__FILE__).'/barcodes.php'); + require_once(dirname(__FILE__) . '/barcodes.php'); // save current graphic settings $gvars = $this->getGraphicVars(); // create new barcode object @@ -13506,7 +13506,7 @@ if ($this->empty_string($code)) { return; } - require_once(dirname(__FILE__).'/2dbarcodes.php'); + require_once(dirname(__FILE__) . '/2dbarcodes.php'); // save current graphic settings $gvars = $this->getGraphicVars(); // create new barcode object @@ -18547,22 +18547,22 @@ $e = $ox * $this->k * (1 - $svgscale_x); $f = ($this->h - $oy) * $this->k * (1 - $svgscale_y); $this->_out(sprintf('%.3F %.3F %.3F %.3F %.3F %.3F cm', $svgscale_x, 0, 0, $svgscale_y, $e + $svgoffset_x, $f + $svgoffset_y)); - // creates a new XML parser to be used by the other XML functions - $this->parser = xml_parser_create('UTF-8'); - // the following function allows to use parser inside object - xml_set_object($this->parser, $this); - // disable case-folding for this XML parser - xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, 0); - // sets the element handler functions for the XML parser + // creates a new XML parser to be used by the other XML functions + $this->parser = xml_parser_create('UTF-8'); + // the following function allows to use parser inside object + xml_set_object($this->parser, $this); + // disable case-folding for this XML parser + xml_parser_set_option($this->parser, XML_OPTION_CASE_FOLDING, 0); + // sets the element handler functions for the XML parser xml_set_element_handler($this->parser, 'startSVGElementHandler', 'endSVGElementHandler'); - // sets the character data handler function for the XML parser - xml_set_character_data_handler($this->parser, 'segSVGContentHandler'); - // start parsing an XML document - if(!xml_parse($this->parser, $svgdata)) { + // sets the character data handler function for the XML parser + xml_set_character_data_handler($this->parser, 'segSVGContentHandler'); + // start parsing an XML document + if(!xml_parse($this->parser, $svgdata)) { $error_message = sprintf("SVG Error: %s at line %d", xml_error_string(xml_get_error_code($this->parser)), xml_get_current_line_number($this->parser)); - $this->Error($error_message); - } - // free this XML parser + $this->Error($error_message); + } + // free this XML parser xml_parser_free($this->parser); // restore previous graphic state $this->_out($this->epsmarker.'Q'); @@ -18611,14 +18611,14 @@ $this->endlinex = $this->img_rb_x; } - /** - * Get the tranformation matrix from SVG transform attribute - * @param string transformation - * @return array of transformations + /** + * Get the tranformation matrix from SVG transform attribute + * @param string transformation + * @return array of transformations * @author Nicola Asuni * @since 5.0.000 (2010-05-02) - * @access protected - */ + * @access protected + */ protected function getSVGTransformMatrix($attribute) { // identity matrix $tm = array(1, 0, 0, 1, 0, 0); @@ -18714,15 +18714,15 @@ return $tm; } - /** - * Get the product of two SVG tranformation matrices + /** + * Get the product of two SVG tranformation matrices * @param array $ta first SVG tranformation matrix - * @param array $tb second SVG tranformation matrix - * @return transformation array + * @param array $tb second SVG tranformation matrix + * @return transformation array * @author Nicola Asuni * @since 5.0.000 (2010-05-02) - * @access protected - */ + * @access protected + */ protected function getTransformationMatrixProduct($ta, $tb) { $tm = array(); $tm[0] = ($ta[0] * $tb[0]) + ($ta[2] * $tb[1]); @@ -18765,8 +18765,8 @@ $this->Transform($this->convertSVGtMatrix($tm)); } - /** - * Apply the requested SVG styles (*** TO BE COMPLETED ***) + /** + * Apply the requested SVG styles (*** TO BE COMPLETED ***) * @param array $svgstyle array of SVG styles to apply * @param array $prevsvgstyle array of previous SVG style * @param int $x X origin of the bounding box @@ -18775,11 +18775,11 @@ * @param int $h height of the bounding box * @param string $clip_function clip function * @param array $clip_params array of parameters for clipping function - * @return object style + * @return object style * @author Nicola Asuni * @since 5.0.000 (2010-05-02) - * @access protected - */ + * @access protected + */ protected function setSVGStyles($svgstyle, $prevsvgstyle, $x=0, $y=0, $w=1, $h=1, $clip_function='', $clip_params=array()) { $objstyle = ''; if(!isset($svgstyle['opacity'])) { @@ -19018,8 +19018,8 @@ return $objstyle; } - /** - * Draws an SVG path + /** + * Draws an SVG path * @param string $d attribute d of the path SVG element * @param string $style Style of rendering. Possible values are: * <ul> @@ -19031,11 +19031,11 @@ * <li>CNZ: Clipping mode (using the even-odd rule to determine which regions lie inside the clipping path).</li> * <li>CEO: Clipping mode (using the nonzero winding number rule to determine which regions lie inside the clipping path).</li> * </ul> - * @return array of container box measures (x, y, w, h) + * @return array of container box measures (x, y, w, h) * @author Nicola Asuni * @since 5.0.000 (2010-05-02) - * @access protected - */ + * @access protected + */ protected function SVGPath($d, $style='') { // set fill/stroke style $op = $this->getPathPaintOperator($style, ''); @@ -19344,16 +19344,16 @@ return array($xmin, $ymin, ($xmax - $xmin), ($ymax - $ymin)); } - /** - * Returns the angle in radiants between two vectors + /** + * Returns the angle in radiants between two vectors * @param int $x1 X coordiante of first vector point * @param int $y1 Y coordiante of first vector point * @param int $x2 X coordiante of second vector point - * @param int $y2 Y coordiante of second vector point + * @param int $y2 Y coordiante of second vector point * @author Nicola Asuni * @since 5.0.000 (2010-05-04) - * @access protected - */ + * @access protected + */ protected function getVectorsAngle($x1, $y1, $x2, $y2) { $dprod = ($x1 * $x2) + ($y1 * $y2); $dist1 = sqrt(($x1 * $x1) + ($y1 * $y1)); @@ -19368,15 +19368,15 @@ return $angle; } - /** - * Sets the opening SVG element handler function for the XML parser. (*** TO BE COMPLETED ***) - * @param resource $parser The first parameter, parser, is a reference to the XML parser calling the handler. - * @param string $name The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters. - * @param array $attribs The third parameter, attribs, contains an associative array with the element's attributes (if any). The keys of this array are the attribute names, the values are the attribute values. Attribute names are case-folded on the same criteria as element names. Attribute values are not case-folded. The original order of the attributes can be retrieved by walking through attribs the normal way, using each(). The first key in the array was the first attribute, and so on. + /** + * Sets the opening SVG element handler function for the XML parser. (*** TO BE COMPLETED ***) + * @param resource $parser The first parameter, parser, is a reference to the XML parser calling the handler. + * @param string $name The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters. + * @param array $attribs The third parameter, attribs, contains an associative array with the element's attributes (if any). The keys of this array are the attribute names, the values are the attribute values. Attribute names are case-folded on the same criteria as element names. Attribute values are not case-folded. The original order of the attributes can be retrieved by walking through attribs the normal way, using each(). The first key in the array was the first attribute, and so on. * @author Nicola Asuni * @since 5.0.000 (2010-05-02) - * @access protected - */ + * @access protected + */ protected function startSVGElementHandler($parser, $name, $attribs) { // check if we are in clip mode if ($this->svgclipmode) { @@ -19393,7 +19393,7 @@ $clipping = true; } // get styling properties - $prev_svgstyle = $this->svgstyles[(count($this->svgstyles) - 1)]; // previous style + $prev_svgstyle = $this->svgstyles[(count($this->svgstyles) - 1)]; // previous style $svgstyle = array(); // current style if (isset($attribs['style'])) { $attribs['style'] = ';'.$attribs['style']; @@ -19435,10 +19435,10 @@ } $svgstyle['transfmatrix'] = $tm; // process tag - switch($name) { - case 'defs': { - $this->svgdefsmode = true; - break; + switch($name) { + case 'defs': { + $this->svgdefsmode = true; + break; } // clipPath case 'clipPath': { @@ -19447,16 +19447,16 @@ $this->svgclippaths[$this->svgclipid] = array(); break; } - case 'svg': { - // start of SVG object - break; - } - case 'g': { - // group together related graphics elements + case 'svg': { + // start of SVG object + break; + } + case 'g': { + // group together related graphics elements array_push($this->svgstyles, $svgstyle); $this->StartTransform(); - $this->setSVGStyles($svgstyle, $prev_svgstyle); - break; + $this->setSVGStyles($svgstyle, $prev_svgstyle); + break; } case 'linearGradient': { $this->svggradientid = $attribs['id']; @@ -19753,26 +19753,26 @@ $this->startSVGElementHandler($parser, $use['name'], $use['attribs']); } break; - } - default: { - break; - } - } - } - - /** - * Sets the closing SVG element handler function for the XML parser. - * @param resource $parser The first parameter, parser, is a reference to the XML parser calling the handler. - * @param string $name The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters. + } + default: { + break; + } + } + } + + /** + * Sets the closing SVG element handler function for the XML parser. + * @param resource $parser The first parameter, parser, is a reference to the XML parser calling the handler. + * @param string $name The second parameter, name, contains the name of the element for which this handler is called. If case-folding is in effect for this parser, the element name will be in uppercase letters. * @author Nicola Asuni * @since 5.0.000 (2010-05-02) - * @access protected - */ - protected function endSVGElementHandler($parser, $name) { + * @access protected + */ + protected function endSVGElementHandler($parser, $name) { switch($name) { - case 'defs': { - $this->svgdefsmode = false; - break; + case 'defs': { + $this->svgdefsmode = false; + break; } // clipPath case 'clipPath': { @@ -19780,34 +19780,34 @@ break; } case 'g': { - // ungroup: remove last style from array + // ungroup: remove last style from array array_pop($this->svgstyles); - $this->StopTransform(); - break; + $this->StopTransform(); + break; } case 'text': - case 'tspan': { + case 'tspan': { // print text $this->Cell(0, 0, trim($this->svgtext), 0, 0, '', 0, '', 0, false, 'L', 'T'); - $this->StopTransform(); - break; - } - default: { - break; - } - } + $this->StopTransform(); + break; + } + default: { + break; + } + } } - - /** - * Sets the character data handler function for the XML parser. - * @param resource $parser The first parameter, parser, is a reference to the XML parser calling the handler. - * @param string $data The second parameter, data, contains the character data as a string. + + /** + * Sets the character data handler function for the XML parser. + * @param resource $parser The first parameter, parser, is a reference to the XML parser calling the handler. + * @param string $data The second parameter, data, contains the character data as a string. * @author Nicola Asuni * @since 5.0.000 (2010-05-02) - * @access protected - */ - protected function segSVGContentHandler($parser, $data) { - $this->svgtext .= $data; + * @access protected + */ + protected function segSVGContentHandler($parser, $data) { + $this->svgtext .= $data; } } // END OF TCPDF CLASS Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/about.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/about.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/about.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -10,7 +10,7 @@ * isset($_GET['vuehtml']) is not mandatory * it allow to display the result in the HTML format */ - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); // get the HTML ob_start(); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/bookmark.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/bookmark.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/bookmark.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -97,7 +97,7 @@ <?php $content = ob_get_clean(); - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr', true, 'UTF-8', 0); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple00.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple00.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple00.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple00.php'); + include(dirname(__FILE__) . '/res/exemple00.php'); $content = ob_get_clean(); // convert in PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple01.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple01.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple01.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple01.php'); + include(dirname(__FILE__) . '/res/exemple01.php'); $content = ob_get_clean(); // convert in PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple02.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple02.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple02.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple02.php'); + include(dirname(__FILE__) . '/res/exemple02.php'); $content = ob_get_clean(); // convert in PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr', true, 'UTF-8', array(15, 5, 15, 5)); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple03.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple03.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple03.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple03.php'); + include(dirname(__FILE__) . '/res/exemple03.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr', true, 'UTF-8', 3); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple04.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple04.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple04.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple04.php'); + include(dirname(__FILE__) . '/res/exemple04.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple05.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple05.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple05.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple05.php'); + include(dirname(__FILE__) . '/res/exemple05.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple06.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple06.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple06.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple06.php'); + include(dirname(__FILE__) . '/res/exemple06.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple07.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple07.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple07.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,12 +13,12 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple07a.php'); - include(dirname(__FILE__).'/res/exemple07b.php'); + include(dirname(__FILE__) . '/res/exemple07a.php'); + include(dirname(__FILE__) . '/res/exemple07b.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple08.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple08.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple08.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple08.php'); + include(dirname(__FILE__) . '/res/exemple08.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr', true, 'UTF-8', 0); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple09.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple09.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple09.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -51,7 +51,7 @@ <?php if ($generate) { $content = ob_get_clean(); - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple10.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple10.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple10.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -12,10 +12,10 @@ */ ob_start(); - include(dirname(__FILE__).'/res/exemple10.php'); + include(dirname(__FILE__) . '/res/exemple10.php'); $content = ob_get_clean(); - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple11.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple11.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple11.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple11.php'); + include(dirname(__FILE__) . '/res/exemple11.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple12.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple12.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple12.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple12.php'); + include(dirname(__FILE__) . '/res/exemple12.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple13.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/exemple13.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/exemple13.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/exemple13.php'); + include(dirname(__FILE__) . '/res/exemple13.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/forms.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/forms.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/forms.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -21,11 +21,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/forms.php'); + include(dirname(__FILE__) . '/res/forms.php'); $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/groups.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/groups.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/groups.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -57,7 +57,7 @@ <?php $content = ob_get_clean(); - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr', true, 'UTF-8', 0); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/js1.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/js1.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/js1.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -23,7 +23,7 @@ $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/js2.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/js2.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/js2.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -23,7 +23,7 @@ $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/js3.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/js3.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/js3.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -29,7 +29,7 @@ "; // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/qrcode.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/qrcode.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/qrcode.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -51,7 +51,7 @@ $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/radius.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/radius.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/radius.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -40,7 +40,7 @@ $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/regle.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/regle.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/regle.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -45,7 +45,7 @@ $content = ob_get_clean(); // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('L', 'A4', 'fr', true, 'UTF-8', 10); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/svg.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/svg.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/svg.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -13,11 +13,11 @@ // get the HTML ob_start(); - include(dirname(__FILE__).'/res/svg.php'); + include(dirname(__FILE__) . '/res/svg.php'); $content = ob_get_clean(); // convert into PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/svg_tiger.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/svg_tiger.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/svg_tiger.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -260,7 +260,7 @@ </page>'; // convert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('L', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/svg_tree.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/svg_tree.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/svg_tree.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -126,7 +126,7 @@ </page>'; // onvert to PDF - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/ticket.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/ticket.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/ticket.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -43,7 +43,7 @@ </div> <h1>Billet soirée spécial HTML2PDF</h1> <b>Valable le <?php echo $date; ?> à 20h30</b><br> - <img src="./res/logo.gif" alt="logo" style="margin-top: 3mm; margin-left: 20mm"> + <img src="res/logo.gif" alt="logo" style="margin-top: 3mm; margin-left: 20mm"> </div> </td> </tr> @@ -83,7 +83,7 @@ $content = ob_get_clean(); // convert - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); try { $html2pdf = new HTML2PDF('P', 'A4', 'fr', true, 'UTF-8', 0); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/utf8.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/examples/utf8.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/examples/utf8.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -11,7 +11,7 @@ * it allow to display the result in the HTML format */ - require_once(dirname(__FILE__).'/../html2pdf.class.php'); + require_once(dirname(__FILE__) . '/../html2pdf.class.php'); // get the HTML $content = file_get_contents(dirname(__FILE__).'/../_tcpdf_'.HTML2PDF_USED_TCPDF_VERSION.'/cache/utf8test.txt'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/html2pdf.class.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/html2pdf/html2pdf.class.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/html2pdf/html2pdf.class.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -14,11 +14,11 @@ define('__CLASS_HTML2PDF__', '4.03'); define('HTML2PDF_USED_TCPDF_VERSION', '5.0.002'); - require_once(dirname(__FILE__).'/_class/exception.class.php'); - require_once(dirname(__FILE__).'/_class/locale.class.php'); - require_once(dirname(__FILE__).'/_class/myPdf.class.php'); - require_once(dirname(__FILE__).'/_class/parsingHtml.class.php'); - require_once(dirname(__FILE__).'/_class/parsingCss.class.php'); + require_once(dirname(__FILE__) . '/_class/exception.class.php'); + require_once(dirname(__FILE__) . '/_class/locale.class.php'); + require_once(dirname(__FILE__) . '/_class/myPdf.class.php'); + require_once(dirname(__FILE__) . '/_class/parsingHtml.class.php'); + require_once(dirname(__FILE__) . '/_class/parsingCss.class.php'); class HTML2PDF { Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/index.html 2012-12-09 20:07:47 UTC (rev 10339) @@ -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/pdf/icons/logo_large.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/logo_large.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/logo_small.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/icons/logo_small.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/images/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/images/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/images/index.html 2012-12-09 20:07:47 UTC (rev 10339) @@ -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/pdf/images/logo.png =================================================================== (Binary files differ) Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/images/logo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Copied: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/index.html (from rev 10336, XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/index.html) =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/index.html 2012-12-09 20:07:47 UTC (rev 10339) @@ -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/pdf/language/english/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/index.html 2012-12-09 20:07:47 UTC (rev 10339) @@ -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/pdf/language/english/main.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/main.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/main.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -0,0 +1,19 @@ +<?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. + */ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/main.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: svn:eol-style + native Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/modinfo.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/modinfo.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/modinfo.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -0,0 +1,22 @@ +<?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. + */ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +define('_MI_PDF_NAME', 'Pdf'); +define('_MI_PDF_DSC', 'Support for pdf creation'); \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/english/modinfo.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: svn:eol-style + native Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/language/index.html 2012-12-09 20:07:47 UTC (rev 10339) @@ -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/pdf/preloads/core.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/preloads/core.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/preloads/core.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -0,0 +1,37 @@ +<?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. +*/ + +/** + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @package pdf + * @author trabis <lus...@gm...> + * @version $Id$ + */ + +defined('XOOPS_ROOT_PATH') or die('Restricted access'); + +/** + * Pdf core preloads + * + * @copyright The XOOPS Project http://sourceforge.net/projects/xoops/ + * @license http://www.fsf.org/copyleft/gpl.html GNU public license + * @author trabis <lus...@gm...> + */ +class PdfCorePreload extends XoopsPreloadItem +{ + + static function eventCoreIncludeCommonEnd($args) + { + XoopsLoad::addMap(array('pdf' => dirname(dirname(__FILE__)) . '/class/pdf.php')); + } + +} \ No newline at end of file Property changes on: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/preloads/core.php ___________________________________________________________________ Added: svn:executable + * Added: svn:keywords + Author Date Id Rev URL Added: svn:eol-style + native Added: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/preloads/index.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/preloads/index.html (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/preloads/index.html 2012-12-09 20:07:47 UTC (rev 10339) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Copied: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/xoops_version.php (from rev 10336, XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/xoops_version.php) =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/xoops_version.php (rev 0) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pdf/xoops_version.php 2012-12-09 20:07:47 UTC (rev 10339) @@ -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. +*/ + +/** + * @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 logger + * @author trabis <lus...@gm...>... [truncated message content] |
From: <be...@us...> - 2012-12-09 19:30:18
|
Revision: 10338 http://sourceforge.net/p/xoops/svn/10338 Author: beckmi Date: 2012-12-09 19:30:14 +0000 (Sun, 09 Dec 2012) Log Message: ----------- removing eclipse files Removed Paths: ------------- XoopsModules/xquiz/trunk/xquiz/.buildpath XoopsModules/xquiz/trunk/xquiz/.cache/ XoopsModules/xquiz/trunk/xquiz/.project XoopsModules/xquiz/trunk/xquiz/.settings/ XoopsModules/xquiz/trunk/xquiz/vpproject/ Deleted: XoopsModules/xquiz/trunk/xquiz/.buildpath =================================================================== --- XoopsModules/xquiz/trunk/xquiz/.buildpath 2012-12-09 19:21:54 UTC (rev 10337) +++ XoopsModules/xquiz/trunk/xquiz/.buildpath 2012-12-09 19:30:14 UTC (rev 10338) @@ -1,5 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<buildpath> - <buildpathentry kind="src" path=""/> - <buildpathentry kind="con" path="org.eclipse.php.core.LANGUAGE"/> -</buildpath> Deleted: XoopsModules/xquiz/trunk/xquiz/.project =================================================================== --- XoopsModules/xquiz/trunk/xquiz/.project 2012-12-09 19:21:54 UTC (rev 10337) +++ XoopsModules/xquiz/trunk/xquiz/.project 2012-12-09 19:30:14 UTC (rev 10338) @@ -1,32 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<projectDescription> - <name>quiz</name> - <comment></comment> - <projects> - </projects> - <buildSpec> - <buildCommand> - <name>org.eclipse.wst.validation.validationbuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.dltk.core.scriptbuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.php.core.PhpIncrementalProjectBuilder</name> - <arguments> - </arguments> - </buildCommand> - <buildCommand> - <name>org.eclipse.php.core.ValidationManagerWrapper</name> - <arguments> - </arguments> - </buildCommand> - </buildSpec> - <natures> - <nature>org.eclipse.php.core.PHPNature</nature> - </natures> -</projectDescription> |
From: <tr...@us...> - 2012-12-09 19:21:57
|
Revision: 10337 http://sourceforge.net/p/xoops/svn/10337 Author: trabis Date: 2012-12-09 19:21:54 +0000 (Sun, 09 Dec 2012) Log Message: ----------- Typo in logger language file Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/language/english/modinfo.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/language/english/modinfo.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/language/english/modinfo.php 2012-12-09 19:18:51 UTC (rev 10336) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/language/english/modinfo.php 2012-12-09 19:21:54 UTC (rev 10337) @@ -32,7 +32,7 @@ define('_MI_LOGGER_DEBUGLEVEL1', "Registered Users"); define('_MI_LOGGER_DEBUGLEVEL2', "Administrators"); -define('_MI_LOGGER_DEBUGLPLUGIN' , "Debug Plugin"); +define('_MI_LOGGER_DEBUGPLUGIN' , "Debug Plugin"); define('_MI_LOGGER_DEBUGPLUGIN_LEGACY' , "Legacy"); define('_MI_LOGGER_DEBUGPLUGIN_PQP', "PHP Quick Profiler"); define('_MI_LOGGER_DEBUGPLUGIN_FIREPHP', "FirePHP"); \ No newline at end of file |
From: <tr...@us...> - 2012-12-09 19:18:56
|
Revision: 10336 http://sourceforge.net/p/xoops/svn/10336 Author: trabis Date: 2012-12-09 19:18:51 +0000 (Sun, 09 Dec 2012) Log Message: ----------- Adding logger module. Refactoring header() and theme() methods to allow usage of theme() before header() is called Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/extras/modules/system/admin/filemanager/jquery.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/captcha/image/scripts/image.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/commentrenderer.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/logger/xoopslogger.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/template.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopssecurity.php XoopsCore/branches/2.6.x/2.6.0/htdocs/include/common.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/admin/prefix_manager.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/preferences/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/preloads/core.php XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops.php XoopsCore/branches/2.6.x/2.6.0/upgrade/index.php XoopsCore/branches/2.6.x/2.6.0/upgrade/upd-2.4.x-to-2.5.0/dbmanager.php XoopsModules/publisher/trunk/publisher/include/common.php XoopsModules/publisher/trunk/publisher/xoops_version.php Added Paths: ----------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/class/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/class/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/class/logger.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/icons/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/icons/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/icons/logo_large.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/icons/logo_small.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/images/logo.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/language/english/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/language/english/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/language/english/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/language/english/modinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/firephp/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/firephp/FirePHPCore/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/firephp/FirePHPCore/FirePHP.class.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/firephp/FirePHPCore/LICENSE XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/firephp/FirePHPCore/fb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/firephp/FirePHPCore/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/firephp/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/firephp/language/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/firephp/language/english.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/firephp/language/german.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/firephp/language/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/firephp/logger.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/legacy/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/legacy/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/legacy/logger.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/legacy/render.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/pqp/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/pqp/README.txt XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/pqp/css/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/pqp/css/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/pqp/css/pQp.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/pqp/images/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/pqp/images/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/pqp/images/overlay.gif XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/pqp/images/side.png XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/pqp/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/pqp/logger.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/pqp/templates/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/pqp/templates/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/plugins/pqp/templates/pqp.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/preloads/ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/preloads/core.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/preloads/index.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/preloads/system.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/logger/xoops_version.php Removed Paths: ------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/logger/render.php Modified: XoopsCore/branches/2.6.x/2.6.0/extras/modules/system/admin/filemanager/jquery.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/extras/modules/system/admin/filemanager/jquery.php 2012-12-09 15:02:06 UTC (rev 10335) +++ XoopsCore/branches/2.6.x/2.6.0/extras/modules/system/admin/filemanager/jquery.php 2012-12-09 19:18:51 UTC (rev 10336) @@ -24,7 +24,7 @@ require dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/mainfile.php' ; $xoops = Xoops::getInstance(); -$xoops->logger()->disable(); +$xoops->disableErrorReporting(); $system = System::getInstance(); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/captcha/image/scripts/image.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/captcha/image/scripts/image.php 2012-12-09 15:02:06 UTC (rev 10335) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/captcha/image/scripts/image.php 2012-12-09 19:18:51 UTC (rev 10336) @@ -23,7 +23,7 @@ include dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/mainfile.php'; -XoopsLogger::getInstance()->disable(); +Xoops::getInstance()->disableErrorReporting(); /* if (empty($_SERVER['HTTP_REFERER']) || !preg_match("/^" . preg_quote(XOOPS_URL, '/') . "/", $_SERVER['HTTP_REFERER'])) { Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/commentrenderer.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/commentrenderer.php 2012-12-09 15:02:06 UTC (rev 10335) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/commentrenderer.php 2012-12-09 19:18:51 UTC (rev 10336) @@ -87,8 +87,7 @@ */ static public function instance(XoopsTpl &$tpl, $use_icons = true, $do_iconcheck = false) { - XoopsLogger::getInstance() - ->addDeprecated(__CLASS__ . "::" . __FUNCTION__ . "() is deprecated since 2.6.0, use XoopsCommentRenderer::getInstance() instead"); + Xoops::getInstance()->deprecat |
From: <txm...@us...> - 2012-12-09 15:02:09
|
Revision: 10335 http://sourceforge.net/p/xoops/svn/10335 Author: txmodxoops Date: 2012-12-09 15:02:06 +0000 (Sun, 09 Dec 2012) Log Message: ----------- Updated language/italian/admin.php Modified Paths: -------------- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/italian/admin.php Modified: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/italian/admin.php =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/italian/admin.php 2012-12-09 14:52:22 UTC (rev 10334) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/italian/admin.php 2012-12-09 15:02:06 UTC (rev 10335) @@ -8,8 +8,8 @@ define( "_AM_AVAMAN_DBUPDATED" , "Aggiornato correttamente" ) ; define( "_AM_AVAMAN_FILEUPLOADED" , "%s file sono stati registrati correttamente" ) ; -define( "_AM_AVAMAN_UPLOAD" , "Invia immagini (E' anche possibile inviare pi� file contemporaneamente contenuti in un archivio zip o tar.gz)" ) ; -define( "_AM_AVAMAN_ERR_INVALIDARCHIVE" , "Archivio non valido. L'archivio non pu� essere aperto" ) ; +define( "_AM_AVAMAN_UPLOAD" , "Invia immagini (E' anche possibile inviare più file contemporaneamente contenuti in un archivio zip o tar.gz)" ) ; +define( "_AM_AVAMAN_ERR_INVALIDARCHIVE" , "Archivio non valido. L'archivio non può essere aperto" ) ; define( "_AM_AVAMAN_INVALIDEXT" , "Tipo file non valido" ) ; define( "_AM_AVAMAN_TH_ID" , "id" ) ; |
From: <txm...@us...> - 2012-12-09 14:52:25
|
Revision: 10334 http://sourceforge.net/p/xoops/svn/10334 Author: txmodxoops Date: 2012-12-09 14:52:22 +0000 (Sun, 09 Dec 2012) Log Message: ----------- Updated Modified Paths: -------------- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/about.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/admin_footer.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/admin_header.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/avatars.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/index.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/menu.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/smilies.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/changelog.txt XoopsModules/avaman/branches/timgno/1.01/modules/avaman/xoops_version.php Modified: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/about.php =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/about.php 2012-12-09 14:47:36 UTC (rev 10333) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/about.php 2012-12-09 14:52:22 UTC (rev 10334) @@ -17,7 +17,7 @@ * @package Avaman * @since 2.5.0 * @author GIJOE - * @version $Id $ + * @version $Id 1.01 10333 Sun 2012/12/08 15:26:25 : Timgno Exp $ */ include_once 'admin_header.php'; Modified: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/admin_footer.php =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/admin_footer.php 2012-12-09 14:47:36 UTC (rev 10333) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/admin_footer.php 2012-12-09 14:52:22 UTC (rev 10334) @@ -17,7 +17,7 @@ * @package Avaman * @since 2.5.0 * @author GIJOE - * @version $Id $ + * @version $Id 1.01 10333 Sun 2012/12/08 15:26:25 : Timgno Exp $ */ echo "<div class='adminfooter'>\n" Modified: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/admin_header.php =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/admin_header.php 2012-12-09 14:47:36 UTC (rev 10333) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/admin_header.php 2012-12-09 14:52:22 UTC (rev 10334) @@ -17,7 +17,7 @@ * @package Avaman * @since 2.5.0 * @author GIJOE - * @version $Id $ + * @version $Id 1.01 10333 Sun 2012/12/08 15:26:25 : Timgno Exp $ */ $path = dirname(dirname(dirname(dirname(__FILE__)))); Modified: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/avatars.php =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules |
From: <txm...@us...> - 2012-12-09 14:47:41
|
Revision: 10333 http://sourceforge.net/p/xoops/svn/10333 Author: txmodxoops Date: 2012-12-09 14:47:36 +0000 (Sun, 09 Dec 2012) Log Message: ----------- Revisione and addons Dashboard admin/index.php Added Paths: ----------- XoopsModules/avaman/branches/timgno/ XoopsModules/avaman/branches/timgno/1.01/ XoopsModules/avaman/branches/timgno/1.01/kernel/ XoopsModules/avaman/branches/timgno/1.01/kernel/smilies.php XoopsModules/avaman/branches/timgno/1.01/modules/ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/about.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/admin_footer.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/admin_header.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/avatars.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/index.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/index.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/menu.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/smilies.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/changelog.txt XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/credits.txt XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/index.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/install.txt XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/lang_diff.txt XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/licence.txt XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/readme.txt XoopsModules/avaman/branches/timgno/1.01/modules/avaman/images/ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/images/avaman_slogo.png XoopsModules/avaman/branches/timgno/1.01/modules/avaman/images/index.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/include/ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/include/.htaccess XoopsModules/avaman/branches/timgno/1.01/modules/avaman/include/Archive_Zip.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/include/gtickets.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/include/index.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/index.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/.htaccess XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/english/ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/english/admin.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/english/help/ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/english/help/help.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/english/help/index.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/english/index.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/english/modinfo.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/index.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/italian/ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/italian/README_ITA XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/italian/admin.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/italian/help/ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/italian/help/help.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/italian/help/index.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/italian/index.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/italian/modinfo.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/japanese/ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/japanese/admin.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/japanese/help/ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/japanese/help/help.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/japanese/help/index.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/japanese/index.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/japanese/modinfo.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/persian/ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/persian/admin.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/persian/help/ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/persian/help/help.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/persian/help/index.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/persian/index.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/persian/modinfo.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/polish/ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/polish/admin.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/polish/help/ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/polish/help/help.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/polish/help/index.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/polish/index.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/polish/modinfo.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/spanish/ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/spanish/admin.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/spanish/help/ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/spanish/help/help.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/spanish/help/index.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/spanish/index.html XoopsModules/avaman/branches/timgno/1.01/modules/avaman/language/spanish/modinfo.php XoopsModules/avaman/branches/timgno/1.01/modules/avaman/xoops_version.php Added: XoopsModules/avaman/branches/timgno/1.01/kernel/smilies.php =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/kernel/smilies.php (rev 0) +++ XoopsModules/avaman/branches/timgno/1.01/kernel/smilies.php 2012-12-09 14:47:36 UTC (rev 10333) @@ -0,0 +1,51 @@ +<?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. +*/ + +/** + * XOOPS Kernel Class + * + * @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 kernel + * @since 2.6.0 + * @author Gregory Mage (AKA Mage) + * @author trabis <lus...@gm...> + * @version $Id: smilies.php 8064 2011-11-06 01:17:21Z beckmi $ + */ + +defined('XOOPS_ROOT_PATH') or die('XOOPS root path not defined'); + +class XoopsSmilies extends XoopsObject +{ + /** + * Constructor + */ + public function __construct() + { + $this->initVar('id', XOBJ_DTYPE_INT, null, false, 5); + $this->initVar('code', XOBJ_DTYPE_TXTBOX, null, false); + $this->initVar('smile_url', XOBJ_DTYPE_TXTBOX, null, false); + $this->initVar('emotion', XOBJ_DTYPE_TXTBOX, null, false); + $this->initVar('display', XOBJ_DTYPE_INT, null, false, 1); + } +} + +class XoopsSmiliesHandler extends XoopsPersistableObjectHandler +{ + /** + * @param null|XoopsDatabase $db + */ + public function __construct(XoopsDatabase $db = null) + { + parent::__construct($db, 'smiles', 'XoopsSmilies', 'id', 'code'); + } + +} \ No newline at end of file Added: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/about.php =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/about.php (rev 0) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/about.php 2012-12-09 14:47:36 UTC (rev 10333) @@ -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. + */ + +/** + * Avaman module + * + * @copyright The XOOPS Project (http://www.xoops.org) + * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} + * @package Avaman + * @since 2.5.0 + * @author GIJOE + * @version $Id $ + */ +include_once 'admin_header.php'; + +echo $adminMenu->addNavigation('about.php'); +echo $adminMenu->renderAbout('6KJ7RW5DR3VTJ', false); + +include_once 'admin_footer.php'; \ No newline at end of file Added: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/admin_footer.php =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/admin_footer.php (rev 0) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/admin_footer.php 2012-12-09 14:47:36 UTC (rev 10333) @@ -0,0 +1,30 @@ +<?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. + */ + +/** + * Avaman module + * + * @copyright The XOOPS Project (http://www.xoops.org) + * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} + * @package Avaman + * @since 2.5.0 + * @author GIJOE + * @version $Id $ + */ + +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_MODULEADMIN_ADMIN_FOOTER . "\n" + ."</div>"; + +xoops_cp_footer(); \ No newline at end of file Added: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/admin_header.php =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/admin_header.php (rev 0) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/admin_header.php 2012-12-09 14:47:36 UTC (rev 10333) @@ -0,0 +1,51 @@ +<?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. + */ + +/** + * Avaman module + * + * @copyright The XOOPS Project (http://www.xoops.org) + * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} + * @package Avaman + * @since 2.5.0 + * @author GIJOE + * @version $Id $ + */ + +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.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); +xoops_loadLanguage('main', $thisModuleDir); + +$pathIcon16 = '../'.$xoopsModule->getInfo('icons16'); +$pathIcon32 = '../'.$xoopsModule->getInfo('icons32'); +$pathModuleAdmin = $xoopsModule->getInfo('dirmoduleadmin'); + +$avatarsHandler =& xoops_gethandler('avatar'); +$smiliesHandler =& xoops_gethandler('smilies'); + +if ( file_exists($GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'))){ + include_once $GLOBALS['xoops']->path($pathModuleAdmin.'/moduleadmin.php'); +}else{ + redirect_header("../../../admin.php", 5, _AM_AVAMAN_MODULEADMIN_MISSING, false); +} + +xoops_cp_header(); +$adminMenu = new ModuleAdmin(); \ No newline at end of file Added: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/avatars.php =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/avatars.php (rev 0) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/avatars.php 2012-12-09 14:47:36 UTC (rev 10333) @@ -0,0 +1,208 @@ +<?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. + */ + +/** + * Avaman module + * + * @copyright The XOOPS Project (http://www.xoops.org) + * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} + * @package Avaman + * @since 2.5.0 + * @author GIJOE + * @version $Id 1.01 Sun 2012/12/08 15:26:25 : Timgno Exp $ + */ + +$avaman_allowed_exts = array( + 'gif' => 'image/gif' , + 'jpg' => 'image/jpeg' , + 'jpeg' => 'image/jpeg' , + 'png' => 'image/png' , +) ; +$realmyname = 'avatars.php' ; + +include_once "../include/gtickets.php"; +include_once 'admin_header.php'; + +$db =& XoopsDatabaseFactory::getDatabaseConnection(); +$myts =& MyTextSanitizer::getInstance() ; + +// +// POST Stage +// + +if( ! empty( $_POST['modify_avatars'] ) ) { + + // Ticket Check + if ( ! $xoopsGTicket->check() ) { + redirect_header(XOOPS_URL.'/',3,$xoopsGTicket->getErrors()); + } + + // rename + $avatar_ids = array() ; + if( is_array( @$_POST['avatar_names'] ) ) { + foreach( $_POST['avatar_names'] as $avatar_id => $avatar_name ) { + $avatar_id = intval( $avatar_id ) ; + $db->query( "UPDATE ".$db->prefix("avatar")." SET avatar_name='".$myts->addSlashes($avatar_name)."' WHERE avatar_id=".intval($avatar_id) ) ; + $avatar_ids[] = $avatar_id ; + } + } + + // display + foreach( $avatar_ids as $avatar_id ) { + if( empty( $_POST['avatar_displays'][$avatar_id] ) ) { + $db->query( "UPDATE ".$db->prefix("avatar")." SET avatar_display=0 WHERE avatar_id=$avatar_id" ) ; + } else { + $db->query( "UPDATE ".$db->prefix("avatar")." SET avatar_display=1 WHERE avatar_id=$avatar_id" ) ; + } + } + + // weight + foreach( $avatar_ids as $avatar_id ) { + $db->query( "UPDATE ".$db->prefix("avatar")." SET avatar_weight='".intval(@$_POST['avatar_weights'][$avatar_id])."' WHERE avatar_id=$avatar_id" ) ; + } + + // delete + foreach( $avatar_ids as $avatar_id ) { + if( ! empty( $_POST['avatar_deletes'][$avatar_id] ) ) { + $result = $db->query( "SELECT a.avatar_file,COUNT(l.user_id) FROM ".$db->prefix("avatar")." a NATURAL LEFT JOIN ".$db->prefix("avatar_user_link")." l WHERE a.avatar_id=$avatar_id GROUP BY a.avatar_id" ) ; + if( $result ) { + list( $file , $users ) = $db->fetchRow( $result ) ; + if( $users > 0 ) continue ; + if( strstr( $file , '..' ) ) die( '.. found.' ) ; + @unlink( XOOPS_UPLOAD_PATH . '/' . $file ) ; + $db->query( "DELETE FROM ".$db->prefix("avatar")." WHERE avatar_id=$avatar_id" ) ; + } + } + } + + redirect_header( $realmyname , 2 , _AM_AVAMAN_DBUPDATED ) ; + exit ; +} + + +// ARCHIVE UPLOAD +if( ! empty( $_FILES['upload_archive']['tmp_name'] ) && is_uploaded_file( $_FILES['upload_archive']['tmp_name'] ) ) { + + // extract stage + $orig_filename4check = strtolower( $_FILES['upload_archive']['name'] ) ; + $orig_ext4check = substr( $orig_filename4check , strrpos( $orig_filename4check , '.' ) + 1 ) ; + if( $orig_ext4check == 'zip' ) { + + // zip + include_once dirname(dirname(__FILE__)).'/include/Archive_Zip.php' ; + $reader = new Archive_Zip( $_FILES['upload_archive']['tmp_name'] ) ; + $files = $reader->extract( array( 'extract_as_string' => true ) ) ; + if( ! is_array( @$files ) ) die( $reader->errorName() ) ; + + } else if( $orig_ext4check == 'tar' || $orig_ext4check == 'tgz' || $orig_ext4check == 'gz' ) { + + // tar or tgz or tar.gz + include_once XOOPS_ROOT_PATH.'/class/class.tar.php' ; + $tar = new tar() ; + $tar->openTar( $_FILES['upload_archive']['tmp_name'] ) ; + $files = array() ; + foreach( $tar->files as $id => $info ) { + $files[] = array( + 'filename' => $info['name'] , + 'mtime' => $info['time'] , + 'content' => $info['file'] , + ) ; + } + if( empty( $files ) ) die( _AM_AVAMAN_ERR_INVALIDARCHIVE ) ; + + } else if( ! empty( $avaman_allowed_exts[$orig_ext4check] ) ) { + + // a single image file + $files = array() ; + $files[] = array( + 'filename' => $_FILES['upload_archive']['name'] , + 'mtime' => time() , + 'content' => function_exists( 'file_get_contents' ) ? file_get_contents( $_FILES['upload_archive']['tmp_name'] ) : implode( file( $_FILES['upload_archive']['tmp_name'] ) ) , + ) ; + } else { + die( _AM_AVAMAN_INVALIDEXT ) ; + } + + // import stage + $imported = 0 ; + foreach( $files as $file ) { + + if( ! empty( $file['folder'] ) ) continue ; + $file_pos = strrpos( $file['filename'] , '/' ) ; + $file_name = $file_pos === false ? $file['filename'] : substr( $file['filename'] , $file_pos + 1 ) ; + $ext_pos = strrpos( $file_name , '.' ) ; + if( $ext_pos === false ) continue ; + $ext = strtolower( substr( $file_name , $ext_pos + 1 ) ) ; + if( empty( $avaman_allowed_exts[$ext] ) ) continue ; + $file_node = substr( $file_name , 0 , $ext_pos ) ; + $save_file_name = uniqid( 'savt' ) . '.' . $ext ; + $fw = fopen( XOOPS_UPLOAD_PATH.'/'.$save_file_name , "w" ) ; + if( ! $fw ) continue ; + @fwrite( $fw , $file['content'] ) ; + @fclose( $fw ) ; + $db->query( "INSERT INTO ".$db->prefix("avatar")." SET avatar_file='".addslashes($save_file_name)."', avatar_name='".addslashes($file_node)."', avatar_mimetype='".addslashes(@$avaman_allowed_exts[$ext])."', avatar_created=UNIX_TIMESTAMP(), avatar_display=1, avatar_weight=0, avatar_type='S'" ) ; + + $imported ++ ; + } + + redirect_header( $realmyname , 3 , sprintf( _AM_AVAMAN_FILEUPLOADED , $imported ) ) ; + exit ; +} +// Form Stage +echo $adminMenu->addNavigation('avatars.php'); + +$sql = "SELECT a.avatar_id , a.avatar_file , a.avatar_name , a.avatar_created , a.avatar_display , a.avatar_weight , COUNT(l.user_id) FROM ".$db->prefix("avatar")." a NATURAL LEFT JOIN ".$db->prefix("avatar_user_link")." l WHERE a.avatar_type='S' GROUP BY a.avatar_id ORDER BY a.avatar_weight,a.avatar_id" ; +$result = $db->query( $sql ) ; + +echo " +<form action='$realmyname' id='avaman_upload' method='post' enctype='multipart/form-data' class='odd'> + <label for='upload_archive'>"._AM_AVAMAN_UPLOAD."</label> + <br /> + <input type='file' id='upload_archive' name='upload_archive' size='60' /> + <input type='submit' value='"._SUBMIT."' /> +</form> +<form action='$realmyname' name='avaman_list' id='avaman_list' method='post'> +<table class='outer' id='avaman_main'> + <tr> + <th>"._AM_AVAMAN_TH_ID."</th> + <th>"._AM_AVAMAN_TH_FILE."</th> + <th>"._AM_AVAMAN_TH_AVATARNAME."</th> + <th>"._AM_AVAMAN_TH_CREATED."</th> + <th>"._AM_AVAMAN_TH_DISPLAY."</th> + <th>"._AM_AVAMAN_TH_WEIGHT."</th> + <th>"._AM_AVAMAN_TH_USERS."</th> + <th>"._AM_AVAMAN_TH_DELETE."<input type='checkbox' name='selectall' onclick=\"with(document.avaman_list){for(i=0;i<length;i++){if(elements[i].type=='checkbox'&&elements[i].disabled==false&&elements[i].name.indexOf('deletes')>=0){elements[i].checked=this.checked;}}}\" title='"._AM_AVAMAN_CB_SELECTALL."' /></th> + </tr>\n" ; + +while( list( $avatar_id , $avatar_file , $avatar_name , $avatar_created , $avatar_display , $avatar_weight , $avatar_users ) = $db->fetchRow( $result ) ) { + $evenodd = @$evenodd == 'even' ? 'odd' : 'even' ; + $delete_disabled = $avatar_users > 0 ? "disabled='disabled'" : "" ; + + echo " + <tr> + <td class='$evenodd' align='center'>$avatar_id</td> + <td class='$evenodd' align='center'><img src='".XOOPS_UPLOAD_URL.'/'.urlencode($avatar_file)."' alt='' /></td> + <td class='$evenodd' align='center'><input type='text' size='24' name='avatar_names[$avatar_id]' value='".htmlspecialchars($avatar_name,ENT_QUOTES)."' /></td> + <td class='$evenodd' align='center'> ".formatTimestamp($avatar_created)."</td> + <td class='$evenodd' align='center'><input type='checkbox' name='avatar_displays[$avatar_id]' ".($avatar_display?"checked='checked'":"")." /></td> + <td class='$evenodd' align='center'><input type='text' size='4' name='avatar_weights[$avatar_id]' value='$avatar_weight' style='text-align:right;' /></td> + <td class='$evenodd' align='center'>".intval($avatar_users)."</td> + <td class='$evenodd' align='center'><input type='checkbox' name='avatar_deletes[$avatar_id]' $delete_disabled /></td> + </tr>\n" ; +} +echo " +</table> +<input type='submit' name='modify_avatars' value='"._SUBMIT."' /> +".$xoopsGTicket->getTicketHtml( __LINE__ )." +</form> +" ; + +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/index.html =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/index.html (rev 0) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/index.html 2012-12-09 14:47:36 UTC (rev 10333) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/index.php =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/index.php (rev 0) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/index.php 2012-12-09 14:47:36 UTC (rev 10333) @@ -0,0 +1,41 @@ +<?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. + */ + +/** + * Avaman module + * + * @copyright The XOOPS Project (http://www.xoops.org) + * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} + * @package Avaman + * @since 2.5.0 + * @author GIJOE + * @version $Id 1.01 Sun 2012/12/08 15:26:25 : Timgno Exp $ + */ +include 'admin_header.php'; +//------------------------ +$crit_avatars = new CriteriaCompo(); +$totalAvatars = $avatarsHandler->getCount($crit_avatars); +$crit_smilies = new CriteriaCompo(); +$totalSmilies = $smiliesHandler->getCount($crit_smilies); + +$r = 'Red'; $g = 'Green'; +$ac = $totalAvatars == 0 ? $r : $g; +$sc = $totalSmilies == 0 ? $r : $g; + +$adminMenu->addInfoBox(_AM_AVAMAN_DASHBOARD); +$adminMenu->addInfoBoxLine(_AM_AVAMAN_DASHBOARD, _AM_AVAMAN_TOTALAVATARS, $totalAvatars, $ac); +$adminMenu->addInfoBoxLine(_AM_AVAMAN_DASHBOARD, _AM_AVAMAN_TOTALSMILIES, $totalSmilies, $sc); +//------------------------ + +echo $adminMenu->addNavigation('index.php'); +echo $adminMenu->renderIndex(); +//------------------------ +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/menu.php =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/menu.php (rev 0) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/menu.php 2012-12-09 14:47:36 UTC (rev 10333) @@ -0,0 +1,64 @@ +<?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. + */ + +/* + * Avaman module + * + * @copyright The XOOPS Project (http://www.xoops.org) + * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} + * @package Avaman + * @since 2.5.0 + * @author GIJOE + * @version $Id $ + */ + + +defined("XOOPS_ROOT_PATH") or die("XOOPS root path not defined"); + +$path = dirname(dirname(dirname(dirname(__FILE__)))); +include_once $path . '/mainfile.php'; + +$dirname = basename(dirname(dirname(__FILE__))); +$module_handler = xoops_gethandler('module'); +$module = $module_handler->getByDirname($dirname); +$pathIcon32 = $module->getInfo('icons32'); +$pathModuleAdmin = $module->getInfo('dirmoduleadmin'); +$pathLanguage = $path . $pathModuleAdmin; + + +if (!file_exists($fileinc = $pathLanguage . '/language/' . $GLOBALS['xoopsConfig']['language'] . '/' . 'main.php')) { + $fileinc = $pathLanguage . '/language/english/main.php'; +} + +include_once $fileinc; + +$adminmenu = array(); + +$i= 1; + +$adminmenu[$i]["title"] = _AM_MODULEADMIN_HOME; +$adminmenu[$i]["link"] = 'admin/index.php'; +$adminmenu[$i]["icon"] = $pathIcon32 . '/home.png'; + +$i++; +$adminmenu[$i]["title"] = _MI_AVAMAN_AVATARMANAGER; +$adminmenu[$i]["link"] = 'admin/avatars.php'; +$adminmenu[$i]["icon"] = $pathIcon32.'/penguin.png'; + +$i++; +$adminmenu[$i]["title"] = _MI_AVAMAN_SMILIESMANAGER; +$adminmenu[$i]["link"] = 'admin/smilies.php'; +$adminmenu[$i]["icon"] = $pathIcon32.'/face-smile.png'; + +$i++; +$adminmenu[$i]['title'] = _AM_MODULEADMIN_ABOUT; +$adminmenu[$i]["link"] = 'admin/about.php'; +$adminmenu[$i]["icon"] = $pathIcon32 . '/about.png'; \ No newline at end of file Added: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/smilies.php =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/smilies.php (rev 0) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/admin/smilies.php 2012-12-09 14:47:36 UTC (rev 10333) @@ -0,0 +1,204 @@ +<?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. + */ + +/** + * Avaman module + * + * @copyright The XOOPS Project (http://www.xoops.org) + * @license {@link http://www.gnu.org/licenses/gpl-2.0.html GNU Public License} + * @package Avaman + * @since 2.5.0 + * @author GIJOE + * @version $Id 1.01 Sun 2012/12/08 15:26:25 : Timgno Exp $ + */ + +$avaman_allowed_exts = array( + 'gif' => 'image/gif' , + 'jpg' => 'image/jpeg' , + 'jpeg' => 'image/jpeg' , + 'png' => 'image/png' , +) ; +$realmyname = 'smilies.php' ; + +include_once "../include/gtickets.php"; +include_once 'admin_header.php'; + +$db =& XoopsDatabaseFactory::getDatabaseConnection(); +$myts =& MyTextSanitizer::getInstance() ; + +// +// POST Stage +// + +if( ! empty( $_POST['modify_smilies'] ) ) { + + // Ticket Check + if ( ! $xoopsGTicket->check() ) { + redirect_header(XOOPS_URL.'/',3,$xoopsGTicket->getErrors()); + } + + // rename emotion + $smiles_ids = array() ; + if( is_array( @$_POST['emotions'] ) ) { + foreach( $_POST['emotions'] as $smiles_id => $emotion ) { + $smiles_id = intval( $smiles_id ) ; + $db->query( "UPDATE ".$db->prefix("smiles")." SET emotion='".$myts->addSlashes($emotion)."' WHERE id=".intval($smiles_id) ) ; + $smiles_ids[] = $smiles_id ; + } + } + + // code + foreach( $smiles_ids as $smiles_id ) { + $db->query( "UPDATE ".$db->prefix("smiles")." SET code='".$myts->addSlashes(@$_POST['codes'][$smiles_id])."' WHERE id=$smiles_id" ) ; + } + + // display + foreach( $smiles_ids as $smiles_id ) { + if( empty( $_POST['displays'][$smiles_id] ) ) { + $db->query( "UPDATE ".$db->prefix("smiles")." SET display=0 WHERE id=$smiles_id" ) ; + } else { + $db->query( "UPDATE ".$db->prefix("smiles")." SET display=1 WHERE id=$smiles_id" ) ; + } + } + + // delete + foreach( $smiles_ids as $smiles_id ) { + if( ! empty( $_POST['deletes'][$smiles_id] ) ) { + $result = $db->query( "SELECT smile_url FROM ".$db->prefix("smiles")." WHERE id=$smiles_id" ) ; + if( $result ) { + list( $file ) = $db->fetchRow( $result ) ; + if( strstr( $file , '..' ) ) die( '.. found.' ) ; + @unlink( XOOPS_UPLOAD_PATH . '/' . $file ) ; + $db->query( "DELETE FROM ".$db->prefix("smiles")." WHERE id=$smiles_id" ) ; + } + } + } + + redirect_header( $realmyname , 2 , _AM_AVAMAN_DBUPDATED ) ; + exit ; +} + + +// ARCHIVE UPLOAD +if( ! empty( $_FILES['upload_archive']['tmp_name'] ) && is_uploaded_file( $_FILES['upload_archive']['tmp_name'] ) ) { + + // extract stage + $orig_filename4check = strtolower( $_FILES['upload_archive']['name'] ) ; + $orig_ext4check = substr( $orig_filename4check , strrpos( $orig_filename4check , '.' ) + 1 ) ; + if( $orig_ext4check == 'zip' ) { + + // zip + include_once dirname(dirname(__FILE__)).'/include/Archive_Zip.php' ; + $reader = new Archive_Zip( $_FILES['upload_archive']['tmp_name'] ) ; + $files = $reader->extract( array( 'extract_as_string' => true ) ) ; + if( ! is_array( @$files ) ) die( $reader->errorName() ) ; + + } else if( $orig_ext4check == 'tar' || $orig_ext4check == 'tgz' || $orig_ext4check == 'gz' ) { + + // tar or tgz or tar.gz + include_once XOOPS_ROOT_PATH.'/class/class.tar.php' ; + $tar = new tar() ; + $tar->openTar( $_FILES['upload_archive']['tmp_name'] ) ; + $files = array() ; + foreach( $tar->files as $id => $info ) { + $files[] = array( + 'filename' => $info['name'] , + 'mtime' => $info['time'] , + 'content' => $info['file'] , + ) ; + } + if( empty( $files ) ) die( _AM_AVAMAN_ERR_INVALIDARCHIVE ) ; + + } else if( ! empty( $avaman_allowed_exts[$orig_ext4check] ) ) { + + // a single image file + $files = array() ; + $files[] = array( + 'filename' => $_FILES['upload_archive']['name'] , + 'mtime' => time() , + 'content' => function_exists( 'file_get_contents' ) ? file_get_contents( $_FILES['upload_archive']['tmp_name'] ) : implode( file( $_FILES['upload_archive']['tmp_name'] ) ) , + ) ; + } else { + die( _AM_AVAMAN_INVALIDEXT ) ; + } + + // import stage + $imported = 0 ; + foreach( $files as $file ) { + + if( ! empty( $file['folder'] ) ) continue ; + $file_pos = strrpos( $file['filename'] , '/' ) ; + $file_name = $file_pos === false ? $file['filename'] : substr( $file['filename'] , $file_pos + 1 ) ; + $ext_pos = strrpos( $file_name , '.' ) ; + if( $ext_pos === false ) continue ; + $ext = strtolower( substr( $file_name , $ext_pos + 1 ) ) ; + if( empty( $avaman_allowed_exts[$ext] ) ) continue ; + $file_node = substr( $file_name , 0 , $ext_pos ) ; + $save_file_name = uniqid( 'smil' ) . '.' . $ext ; + $fw = fopen( XOOPS_UPLOAD_PATH.'/'.$save_file_name , "w" ) ; + if( ! $fw ) continue ; + @fwrite( $fw , $file['content'] ) ; + @fclose( $fw ) ; + $db->query( "INSERT INTO ".$db->prefix("smiles")." SET smile_url='".addslashes($save_file_name)."', code='".addslashes(rawurldecode($file_node))."', display=0, emotion=''" ) ; + + $imported ++ ; + } + + redirect_header( $realmyname , 3 , sprintf( _AM_AVAMAN_FILEUPLOADED , $imported ) ) ; + exit ; +} +// Form Stage +echo $adminMenu->addNavigation('smilies.php'); + +//include(dirname(__FILE__).'/mymenu.php'); + +$sql = "SELECT id , code , smile_url , emotion , display FROM ".$db->prefix("smiles")." ORDER BY id" ; +$result = $db->query( $sql ) ; + +echo " +<form action='$realmyname' id='avaman_upload' method='post' enctype='multipart/form-data' class='odd'> + <label for='upload_archive'>"._AM_AVAMAN_UPLOAD."</label> + <br /> + <input type='file' id='upload_archive' name='upload_archive' size='60' /> + <input type='submit' value='"._SUBMIT."' /> +</form> +<form action='$realmyname' name='avaman_list' id='avaman_list' method='post'> +<table class='outer' id='avaman_main'> + <tr> + <th>"._AM_AVAMAN_TH_ID."</th> + <th>"._AM_AVAMAN_TH_FILE."</th> + <th>"._AM_AVAMAN_TH_CODE."</th> + <th>"._AM_AVAMAN_TH_EMOTION."</th> + <th>"._AM_AVAMAN_TH_SMILEDISPLAY."</th> + <th>"._AM_AVAMAN_TH_DELETE."<input type='checkbox' name='selectall' onclick=\"with(document.avaman_list){for(i=0;i<length;i++){if(elements[i].type=='checkbox'&&elements[i].disabled==false&&elements[i].name.indexOf('deletes')>=0){elements[i].checked=this.checked;}}}\" title='"._AM_AVAMAN_CB_SELECTALL."' /></th> + </tr>\n" ; + +while( list( $smiles_id , $code , $file , $emotion , $display ) = $db->fetchRow( $result ) ) { + $evenodd = @$evenodd == 'even' ? 'odd' : 'even' ; + + echo " + <tr> + <td class='$evenodd' align='center'>$smiles_id</td> + <td class='$evenodd' align='center'><img src='".XOOPS_UPLOAD_URL.'/'.$file."' alt='' /></td> + <td class='$evenodd' align='center'><input type='text' size='12' name='codes[$smiles_id]' value='".htmlspecialchars($code,ENT_QUOTES)."' /></td> + <td class='$evenodd' align='center'><input type='text' size='24' name='emotions[$smiles_id]' value='".htmlspecialchars($emotion,ENT_QUOTES)."' /></td> + <td class='$evenodd' align='center'><input type='checkbox' name='displays[$smiles_id]' ".($display?"checked='checked'":"")." /></td> + <td class='$evenodd' align='center'><input type='checkbox' name='deletes[$smiles_id]' /></td> + </tr>\n" ; +} +echo " +</table> +<input type='submit' name='modify_smilies' value='"._SUBMIT."' /> +".$xoopsGTicket->getTicketHtml( __LINE__ )." +</form> +" ; + +include "admin_footer.php"; \ No newline at end of file Added: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/changelog.txt =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/changelog.txt (rev 0) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/changelog.txt 2012-12-09 14:47:36 UTC (rev 10333) @@ -0,0 +1,33 @@ +CHANGELOG: +================== +0.22 2012/12/08: +================= +- added dashboard counts avatars and smilies (timgno) +- revisiones in admin files (timgno) + +0.22 2012/05/22: +================= +- converted to XOOPS ModuleAdmin GUI (mamba) + +0.21 (2006-04-06 ) +================= +- added select/deselect all +- added polish (thx kurakbu) 0.21a +- added italian (thx Defkon1) 0.21b +- added persian (thx irmtfan) 0.21c +- added spanish (thx debianus) 0.21d + +0.20 (2006-04-05) +================= +- added smilies manager + +0.11 (2006-04-05) +================= +- modified language constants +- added a column of users +- fixed a bug used avatar can be deleted +- added submenu for 2.2.x (thx McDonald) + +0.10 (2006-04-04) +================= +-the 1st implementation \ No newline at end of file Added: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/credits.txt =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/credits.txt (rev 0) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/credits.txt 2012-12-09 14:47:36 UTC (rev 10333) @@ -0,0 +1,6 @@ +Credits +=============== + +Originally developed by GIJOE http://xoops.peak.ne.jp/ + +Updated to XOOPS 2.5.0 Standard GUI by Michael Beck (Mamba) \ No newline at end of file Added: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/index.html =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/index.html (rev 0) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/index.html 2012-12-09 14:47:36 UTC (rev 10333) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/install.txt =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/install.txt (rev 0) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/install.txt 2012-12-09 14:47:36 UTC (rev 10333) @@ -0,0 +1,6 @@ +INSTALL/UNISTALL +================= + +No special measures necessary, follow the standard installation process and 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/avaman/branches/timgno/1.01/modules/avaman/docs/lang_diff.txt =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/lang_diff.txt (rev 0) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/lang_diff.txt 2012-12-09 14:47:36 UTC (rev 10333) @@ -0,0 +1,8 @@ +LANGUAGE DIFFERENCES +===================== + +Below are language differences from a version to next version. + +in file /language/english/admin.php: +//ModuleAdmin +define('_AM_AVAMAN_MODULEADMIN_MISSING','Error: The ModuleAdmin class is missing. Please install the ModuleAdmin Class into /Frameworks (see /docs/readme.txt)'); Added: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/licence.txt =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/licence.txt (rev 0) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/licence.txt 2012-12-09 14:47:36 UTC (rev 10333) @@ -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/avaman/branches/timgno/1.01/modules/avaman/docs/readme.txt =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/readme.txt (rev 0) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/docs/readme.txt 2012-12-09 14:47:36 UTC (rev 10333) @@ -0,0 +1,32 @@ +README +=========== + +Avaman is a little module for managing System Avatars and Smilies. + + Requirements + _____________________________________________________________________ + +- XOOPS >= 2.5.0 +- PHP version >= 5.2.0 +- ModuleClasses in /Frameworks (download it from here: http://goo.gl/Bmknt) + + +USAGE: + +Just install it. +You can upload avatars/smilies via an archive of tar.gz or zip. + +If you are a smilies creator and want to distribute it, name the file like this. + +(code).gif +(code).jpg +(code).png + +(code) should be urlencoded. (eg '*'=>'%2A', '<'=>%3C, '|'=>%7C) + +If you make a smile gif for :anotherpint:, name it like this: +[code]%3Aanotherpint%3A.gif[/code] +It will be imported as a smile with its code :anotherpint: + +Then archive all smile images as a zip file, and distribute it. +It makes many Xoopsers happy! \ No newline at end of file Added: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/images/avaman_slogo.png =================================================================== (Binary files differ) Property changes on: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/images/avaman_slogo.png ___________________________________________________________________ Added: svn:mime-type + application/octet-stream Added: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/images/index.html =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/images/index.html (rev 0) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/images/index.html 2012-12-09 14:47:36 UTC (rev 10333) @@ -0,0 +1 @@ + <script>history.go(-1);</script> \ No newline at end of file Added: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/include/.htaccess =================================================================== --- XoopsModules/avaman/branches/timgno/1.01/modules/avaman/include/.htaccess (rev 0) +++ XoopsModules/avaman/branches/timgno/1.01/modules/avaman/include/.htaccess 2012-12-09 14:47:36 UTC (rev 10333) @@ -0,0 +1,2 @@ +order deny,allow +deny from all Added: XoopsModules/avaman/branches/timgno/1.01/modules/avaman/include/Archive_Zip.php ==============================================... [truncated message content] |
From: <txm...@us...> - 2012-12-08 21:50:46
|
Revision: 10332 http://sourceforge.net/p/xoops/svn/10332 Author: txmodxoops Date: 2012-12-08 21:50:42 +0000 (Sat, 08 Dec 2012) Log Message: ----------- Fixed bug Modified Paths: -------------- XoopsModules/publisher/trunk/publisher/admin/about.php Modified: XoopsModules/publisher/trunk/publisher/admin/about.php =================================================================== --- XoopsModules/publisher/trunk/publisher/admin/about.php 2012-12-08 21:05:21 UTC (rev 10331) +++ XoopsModules/publisher/trunk/publisher/admin/about.php 2012-12-08 21:50:42 UTC (rev 10332) @@ -27,6 +27,6 @@ $aboutAdmin = new ModuleAdmin(); echo $aboutAdmin->addNavigation('about.php'); -echo $aboutAdmin->displayAbout('6KJ7RW5DR3VTJ', false); +echo $aboutAdmin->renderAbout('6KJ7RW5DR3VTJ', false); xoops_cp_footer(); \ No newline at end of file |
From: <txm...@us...> - 2012-12-08 21:05:23
|
Revision: 10331 http://sourceforge.net/p/xoops/svn/10331 Author: txmodxoops Date: 2012-12-08 21:05:21 +0000 (Sat, 08 Dec 2012) Log Message: ----------- Fixed bug Modified Paths: -------------- XoopsModules/publisher/trunk/publisher/admin/index.php Modified: XoopsModules/publisher/trunk/publisher/admin/index.php =================================================================== --- XoopsModules/publisher/trunk/publisher/admin/index.php 2012-12-08 19:11:36 UTC (rev 10330) +++ XoopsModules/publisher/trunk/publisher/admin/index.php 2012-12-08 21:05:21 UTC (rev 10331) @@ -27,6 +27,6 @@ $indexAdmin = new ModuleAdmin(); echo $indexAdmin->addNavigation('index.php'); -echo $indexAdmin->displayIndex(); +echo $indexAdmin->renderIndex(); xoops_cp_footer(); \ No newline at end of file |
From: <tr...@us...> - 2012-12-08 19:11:40
|
Revision: 10330 http://sourceforge.net/p/xoops/svn/10330 Author: trabis Date: 2012-12-08 19:11:36 +0000 (Sat, 08 Dec 2012) Log Message: ----------- Finishing adding the necessary preloads for logger events. Adding method to disable php error reporting with an event attached Preparing protector to use an eventual logger module to dump queries Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/backend.php XoopsCore/branches/2.6.x/2.6.0/htdocs/comments.php XoopsCore/branches/2.6.x/2.6.0/htdocs/footer.php XoopsCore/branches/2.6.x/2.6.0/htdocs/header.php XoopsCore/branches/2.6.x/2.6.0/htdocs/image.php XoopsCore/branches/2.6.x/2.6.0/htdocs/include/common.php XoopsCore/branches/2.6.x/2.6.0/htdocs/include/cp_functions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/include/formdhtmltextarea_preview.php XoopsCore/branches/2.6.x/2.6.0/htdocs/include/functions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/admin/prefix_manager.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/modulesadmin/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/tplsets/jquery.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/jquery.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/preloads/core.php XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Pdf.php XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/backend.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/backend.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/backend.php 2012-12-08 19:11:36 UTC (rev 10330) @@ -21,7 +21,7 @@ include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mainfile.php'; $xoops = Xoops::getInstance(); -$xoops->logger()->disable(); +$xoops->disableErrorReporting(); if (function_exists('mb_http_output')) { mb_http_output('pass'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/comments.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/comments.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/comments.php 2012-12-08 19:11:36 UTC (rev 10330) @@ -33,7 +33,7 @@ include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mainfile.php'; $xoops = Xoops::getInstance(); -$xoops->logger()->disable(); +$xoops->disableErrorReporting(); if (function_exists('mb_http_output')) { mb_http_output('pass'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/footer.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/footer.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/footer.php 2012-12-08 19:11:36 UTC (rev 10330) @@ -23,5 +23,5 @@ $xoops = Xoops::getInstance(); $xoops->preload()->triggerEvent('core.include.footer'); -$xoops->logger()->addDeprecated("include 'footer.php' is deprecated since 2.6.0, use Xoops::getInstance()->footer(); instead"); +$xoops->deprecated("include 'footer.php' is deprecated since 2.6.0, use Xoops::getInstance()->footer(); instead"); $xoops->footer(); \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/header.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/header.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/header.php 2012-12-08 19:11:36 UTC (rev 10330) @@ -25,5 +25,5 @@ defined('XOOPS_ROOT_PATH') or die('Restricted access'); $xoops = Xoops::getInstance(); -$xoops->logger()->addDeprecated("include 'header.php' is deprecated since 2.6.0, use Xoops::getInstance()->header(); instead"); +$xoops->deprecated("include 'header.php' is deprecated since 2.6.0, use Xoops::getInstance()->header(); instead"); $xoops->header($xoops->getOption('template_main')); \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/image.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/image.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/image.php 2012-12-08 19:11:36 UTC (rev 10330) @@ -19,7 +19,6 @@ * @version $Id$ */ -error_reporting(0); if (version_compare(PHP_VERSION, '5.3.0', '<')) { set_magic_quotes_runtime(0); } @@ -40,7 +39,7 @@ include_once XOOPS_ROOT_PATH . '/class/xoopsload.php'; $xoops = Xoops::getInstance(); -$xoops->logger()->startTime(); +$xoops->disableErrorReporting(); define('XOOPS_DB_PROXY', 1); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/include/common.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/include/common.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/include/common.php 2012-12-08 19:11:36 UTC (rev 10330) @@ -110,6 +110,8 @@ trigger_error('File Path Error: ' . 'var/configs/xoopsconfig.php' . ' does not exist.'); } +$xoopsPreload->triggerEvent('core.include.common.configs.success'); + /** * Enable Gzip compression, * Requires configs loaded and should go before any output @@ -117,17 +119,6 @@ $xoops->gzipCompression(); /** - * Start of Error Reportings. - */ -if ($xoops->getConfig('debug_mode') == 1 || $xoops->getConfig('debug_mode') == 2) { - $xoops->loadLanguage('logger'); - $xoops->logger()->enable(); - $xoops->logger()->usePopup = ($xoops->getConfig('debug_mode') == 2); -} else { - $xoops->logger()->disable(); -} - -/** * Check Bad Ip Addressed against database and block bad ones, requires configs loaded */ $xoops->security()->checkBadips(); @@ -211,20 +202,7 @@ } } -/** - * *#@+ - * Debug level for XOOPS - * Check /xoops_data/configs/xoopsconfig.php for details - * - * Note: temporary solution only. Will be re-designed in XOOPS 3.0 - */ -if ($xoops->logger()->isEnable()) { - $level = $xoops->getConfig('debugLevel') ? $xoops->getConfig('debugLevel') : 0; - if (($level == 2 && !$xoops->userIsAdmin) || ($level == 1 && !$xoops->isUser())) { - $xoops->logger()->disable(); - } - unset($level); -} +$xoopsPreload->triggerEvent('core.include.common.auth.success'); /** * Theme Selection @@ -289,6 +267,4 @@ //Creates 'system_modules_active' cache file if it has been deleted. $xoops->getActiveModules(); -$xoops->logger()->stopTime('XOOPS Boot'); -$xoops->logger()->startTime('Module init'); $xoops->preload()->triggerEvent('core.include.common.end'); \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/include/cp_functions.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/include/cp_functions.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/include/cp_functions.php 2012-12-08 19:11:36 UTC (rev 10330) @@ -25,7 +25,7 @@ function xoops_cp_header() { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated('xoops_cp_header() is deprecated. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated('xoops_cp_header() is deprecated. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); $xoops->header($xoops->getOption('template_main')); } @@ -36,6 +36,6 @@ function xoops_cp_footer() { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated('xoops_cp_footer() is deprecated. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated('xoops_cp_footer() is deprecated. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); $xoops->footer($xoops->getOption('template_main')); } \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/include/formdhtmltextarea_preview.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/include/formdhtmltextarea_preview.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/include/formdhtmltextarea_preview.php 2012-12-08 19:11:36 UTC (rev 10330) @@ -21,7 +21,7 @@ include_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'mainfile.php'; $xoops = Xoops::getInstance(); -$xoops->logger()->disable(); +$xoops->disableErrorReporting(); $myts = MyTextSanitizer::getInstance(); $content = $myts->stripSlashesGPC($_POST['text']); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/include/functions.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/include/functions.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/include/functions.php 2012-12-08 19:11:36 UTC (rev 10330) @@ -27,7 +27,7 @@ function xoops_getHandler($name, $optional = false) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated('xoops_getHandler(\'' . $name . '\') is deprecated. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated('xoops_getHandler(\'' . $name . '\') is deprecated. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); $method = 'getHandler' . ucfirst(strtolower(trim($name))); return $xoops->$method($optional); } @@ -42,7 +42,7 @@ function xoops_getModuleHandler($name = null, $module_dir = null, $optional = false) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->getModuleHandler($name, $module_dir, $optional); } @@ -55,7 +55,7 @@ function xoops_load($name, $type = 'core') { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return XoopsLoad::load($name, $type); } @@ -71,7 +71,7 @@ function xoops_loadLanguage($name, $domain = '', $language = null) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->loadLanguage($name, $domain, $language); } @@ -82,7 +82,7 @@ function xoops_getActiveModules() { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->getActiveModules(); } @@ -93,7 +93,7 @@ function xoops_setActiveModules() { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->setActiveModules(); } @@ -105,7 +105,7 @@ function xoops_isActiveModule($dirname) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->isActiveModule($dirname); } @@ -117,7 +117,7 @@ function xoops_header($closehead = true) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); $xoops->simpleHeader($closehead); } @@ -128,7 +128,7 @@ function xoops_footer() { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); $xoops->simpleFooter(); } @@ -141,7 +141,7 @@ function xoops_error($msg, $title = '') { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); $xoops->error($msg, $title); } @@ -154,7 +154,7 @@ function xoops_result($msg, $title = '') { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); $xoops->result($msg, $title); } @@ -170,7 +170,7 @@ function xoops_confirm($hiddens, $action, $msg, $submit = '', $addtoken = true) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); $xoops->confirm($hiddens, $action, $msg, $submit, $addtoken); } @@ -183,7 +183,7 @@ function xoops_getUserTimestamp($time, $timeoffset = '') { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->getUserTimestamp($time, $timeoffset); } @@ -197,7 +197,7 @@ function formatTimestamp($time, $format = 'l', $timeoffset = '') { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return XoopsLocal::formatTimestamp($time, $format, $timeoffset); } @@ -210,7 +210,7 @@ function userTimeToServerTime($timestamp, $userTZ = null) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->userTimeToServerTime($timestamp, $userTZ); } @@ -221,7 +221,7 @@ function xoops_makepass() { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->makePass(); } @@ -234,7 +234,7 @@ function checkEmail($email, $antispam = false) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->checkEmail($email, $antispam); } @@ -246,7 +246,7 @@ function formatURL($url) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->formatURL($url); } @@ -257,7 +257,7 @@ function xoops_getbanner() { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->getBanner(); } @@ -273,7 +273,7 @@ function redirect_header($url, $time = 3, $message = '', $addredirect = true, $allowExternalLink = false) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); $xoops->redirect($url, $time, $message, $addredirect, $allowExternalLink); } @@ -285,7 +285,7 @@ function xoops_getenv($key) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->getEnv($key); } @@ -297,7 +297,7 @@ function xoops_getcss($theme = '') { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->getCss($theme); } @@ -308,7 +308,7 @@ function xoops_getMailer() { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->getMailer(); } @@ -321,7 +321,7 @@ function xoops_getrank($rank_id = 0, $posts = 0) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->getRank($rank_id, $posts); } @@ -336,7 +336,7 @@ function xoops_substr($str, $start, $length, $trimmarker = '...') { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return XoopsLocal::substr($str, $start, $length, $trimmarker); } @@ -348,7 +348,7 @@ function xoops_notification_deletebymodule($module_id) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->getHandlerNotification()->unsubscribeByModule($module_id); } @@ -360,7 +360,7 @@ function xoops_notification_deletebyuser($user_id) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->getHandlerNotification()->unsubscribeByUser($user_id); } @@ -374,7 +374,7 @@ function xoops_notification_deletebyitem($module_id, $category, $item_id) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->getHandlerNotification()->unsubscribeByItem($module_id, $category, $item_id); } @@ -387,7 +387,7 @@ function xoops_comment_count($module_id, $item_id = null) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->getHandlerComment()->getCountByModuleId($module_id, $item_id); } @@ -400,7 +400,7 @@ function xoops_comment_delete($module_id, $item_id) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->getHandlerComment()->deleteByItemId($module_id, $item_id); } @@ -414,7 +414,7 @@ function xoops_groupperm_deletebymoditem($module_id, $perm_name, $item_id = null) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->getHandlerGroupperm()->deleteByModule($module_id, $perm_name, $item_id); } @@ -426,7 +426,7 @@ function xoops_utf8_encode(&$text) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); XoopsLocal::utf8_encode($text); } @@ -438,7 +438,7 @@ function xoops_convert_encoding(&$text) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); XoopsLocal::utf8_encode($text); } @@ -450,7 +450,7 @@ function xoops_trim($text) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return XoopsLocal::trim($text); } @@ -462,7 +462,7 @@ function xoops_getOption($option) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->getOption($option); } @@ -475,7 +475,7 @@ function xoops_getConfigOption($option, $type = 'XOOPS_CONF') { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->getConfig($option, $type); } @@ -488,7 +488,7 @@ function xoops_setConfigOption($option, $new = null) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); $xoops->setConfig($option, $new); } @@ -501,7 +501,7 @@ function xoops_getModuleOption($option, $dirname = '') { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->getModuleConfig($option, $dirname); } @@ -514,7 +514,7 @@ function xoops_getBaseDomain($url, $debug = 0) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->getBaseDomain($url, $debug); } @@ -526,7 +526,7 @@ function xoops_getUrlDomain($url) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->getUrlDomain($url); } @@ -540,7 +540,7 @@ function xoops_template_touch($tpl_id, $clear_old = true) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); return $xoops->templateTouch($tpl_id); } @@ -553,6 +553,6 @@ function xoops_template_clear_module_cache($mid) { $xoops = Xoops::getInstance(); - $xoops->logger()->addDeprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); + $xoops->deprecated(__FUNCTION__ . ' is deprecated since XOOPS 2.6.0. See how to replace it in file ' . __FILE__ . ' line ' . __LINE__); $xoops->templateClearModuleCache($mid); } \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/admin/prefix_manager.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/admin/prefix_manager.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/admin/prefix_manager.php 2012-12-08 19:11:36 UTC (rev 10330) @@ -23,6 +23,7 @@ require_once dirname(dirname(__FILE__)) . '/class/gtickets.php'; $db = XoopsDatabaseFactory::getDatabaseConnection(); +$xoops = Xoops::getInstance(); $xoops->header('protector_prefix.html'); $error = ''; @@ -82,7 +83,9 @@ } } - $_SESSION['protector_logger'] = $xoops->logger()->dump('queries'); + if ($xoops->isActiveModule('logger')) { + $_SESSION['protector_logger'] = Logger::getInstance()->dump('queries'); + } if ( $error != '' ) { $xoops->tpl()->assign('error', $error); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/modulesadmin/main.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/modulesadmin/main.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/modulesadmin/main.php 2012-12-08 19:11:36 UTC (rev 10330) @@ -88,7 +88,7 @@ break; case 'rename': - $xoops->logger()->disable(); + $xoops->disableErrorReporting(); $mid = $system->cleanVars($_POST, 'id', 0, 'int'); $value = $system->cleanVars($_POST, 'value', '', 'string'); @@ -125,7 +125,7 @@ break; case 'active': - $xoops->logger()->disable(); + $xoops->disableErrorReporting(); // Get module handler $module_handler = $xoops->getHandlerModule(); $block_handler = $xoops->getHandlerBlock(); @@ -151,7 +151,7 @@ break; case 'display_in_menu': - $xoops->logger()->disable(); + $xoops->disableErrorReporting(); // Get module handler $module_handler = $xoops->getHandlerModule(); $module_id = $system->cleanVars($_POST, 'mid', 0, 'int'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/tplsets/jquery.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/tplsets/jquery.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/tplsets/jquery.php 2012-12-08 19:11:36 UTC (rev 10330) @@ -22,13 +22,12 @@ include dirname(dirname(dirname(__FILE__))) . '/header.php'; $xoops = Xoops::getInstance(); +$xoops->disableErrorReporting(); if (!$xoops->isUser() || !$xoops->isModule() || !$xoops->user->isAdmin($xoops->module->mid())) { exit(_NOPERM); } -$xoops->logger()->disable(); - include_once $xoops->path('modules/system/functions.php'); system_loadLanguage('tplsets', 'system'); @@ -38,8 +37,6 @@ @$op = "default"; } -$xoops->logger()->usePopup = true; - switch ($op) { // Display tree folder case "tpls_display_folder": Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/jquery.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/jquery.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/jquery.php 2012-12-08 19:11:36 UTC (rev 10330) @@ -28,7 +28,7 @@ exit(_NOPERM); } -$xoops->logger()->disable(); +$xoops->disableErrorReporting(); if (isset($_REQUEST["op"])) { $op = $_REQUEST["op"]; Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/preloads/core.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/preloads/core.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/preloads/core.php 2012-12-08 19:11:36 UTC (rev 10330) @@ -164,4 +164,47 @@ $isCached = $args[1]; XoopsLogger::getInstance()->addBlock($block->getVar('name'), $isCached, $block->getVar('bcachetime')); } + + static function eventCoreDeprecated($args) + { + $message = $args[0]; + XoopsLogger::getInstance()->addDeprecated($message); + } + + static function eventCoreDisableerrorreporting($args) + { + XoopsLogger::getInstance()->disable(); + } + + static function eventCoreIncludeCommonConfigsSuccess($args) + { + $xoops = Xoops::getInstance(); + $logger = XoopsLogger::getInstance(); + if ($xoops->getConfig('debug_mode') == 1 || $xoops->getConfig('debug_mode') == 2) { + $xoops->loadLanguage('logger'); + $logger->enable(); + $logger->usePopup = ($xoops->getConfig('debug_mode') == 2); + } else { + $xoops->disableErrorReporting(); + } + } + + static function eventCoreIncludeCommonAuthSuccess($args) + { + $xoops = Xoops::getInstance(); + $logger = XoopsLogger::getInstance(); + if ($logger->isEnable()) { + $level = $xoops->getConfig('debugLevel') ? $xoops->getConfig('debugLevel') : 0; + if (($level == 2 && !$xoops->userIsAdmin) || ($level == 1 && !$xoops->isUser())) { + $xoops->disableErrorReporting(); + } + } + } + + static function eventCoreIncludeEnd($args) + { + $logger = XoopsLogger::getInstance(); + $logger->stopTime('XOOPS Boot'); + $logger->startTime('Module init'); + } } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Pdf.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Pdf.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Pdf.php 2012-12-08 19:11:36 UTC (rev 10330) @@ -43,7 +43,7 @@ )) { $xoops = Xoops::getInstance(); - $xoops->logger()->disable(); + $xoops->disableErrorReporting(); parent::__construct($orientation, $format, $langue, $unicode, $encoding, $marges = array(5, 5, 5, 8)); } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops.php 2012-12-08 01:46:05 UTC (rev 10329) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops.php 2012-12-08 19:11:36 UTC (rev 10330) @@ -1857,4 +1857,23 @@ } return $aReturn; } + + /** + * Support for deprecated messages events + * + * @param $message + */ + public function deprecated($message) + { + $this->preload()->triggerEvent('core.deprecated', array($message)); + } + + /** + * Support for disabling error reporting + */ + public function disableErrorReporting() + { + error_reporting(0); + $this->preload()->triggerEvent('core.disableerrorreporting'); + } } \ No newline at end of file |
From: <tr...@us...> - 2012-12-08 01:46:08
|
Revision: 10329 http://sourceforge.net/p/xoops/svn/10329 Author: trabis Date: 2012-12-08 01:46:05 +0000 (Sat, 08 Dec 2012) Log Message: ----------- Fixing php 5.4.3 warnings Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/theme_blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/createconfigform.php XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/object.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/preferences/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/form/preference.php XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/theme_blocks.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/theme_blocks.php 2012-12-07 00:56:07 UTC (rev 10328) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/theme_blocks.php 2012-12-08 01:46:05 UTC (rev 10329) @@ -152,6 +152,7 @@ */ public function buildBlock($xobject, &$template) { + $xoops = Xoops::getInstance(); // The lame type workaround will change // bid is added temporarily as workaround for specific block manipulation $dirname = $xobject->getVar('dirname'); @@ -172,7 +173,7 @@ : "module:system|system_block_dummy.html"; $cacheid = $this->generateCacheId('blk_' . $xobject->getVar('bid')); - Xoops::getInstance()->preload()->triggerEvent('core.themeblocks.buildblock.start', array($xobject, $template->is_cached($tplName, $cacheid))); + $xoops->preload()->triggerEvent('core.themeblocks.buildblock.start', array($xobject, $template->is_cached($tplName, $cacheid))); if (!$bcachetime || !$template->is_cached($tplName, $cacheid)) { @@ -196,7 +197,7 @@ if ($this->theme && $bcachetime) { $metas = array(); foreach ($this->theme->metas as $type => $value) { - $dif = array_diff_assoc($this->theme->metas[$type], $old[$type]); + $dif = $xoops->arrayRecursiveDiff($this->theme->metas[$type], $old[$type]); if (count($dif)) { $metas[$type] = $dif; } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/createconfigform.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/createconfigform.php 2012-12-07 00:56:07 UTC (rev 10328) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/createconfigform.php 2012-12-08 01:46:05 UTC (rev 10329) @@ -41,7 +41,7 @@ function createConfigform($config) { $xoops = Xoops::getInstance(); - //$config_handler = $xoops->getHandlerConfig(); + $config_handler = $xoops->getHandlerConfig(); //$xoops->config = $config_handler->getConfigsByCat(XOOPS_CONF); //$config =& $xoops->config; @@ -111,8 +111,6 @@ asort($dirlist); $ele->addOptionArray($dirlist); } - // old theme value is used to determine whether to update cache or not. kind of dirty way - $ele = new XoopsFormHidden('_old_theme', $config[$i]->getConfValueForOutput()); break; case 'tplset': @@ -123,8 +121,6 @@ foreach ($tplsetlist as $key => $name) { $ele->addOption($key, $name); } - // old theme value is used to determine whether to update cache or not. kind of dirty way - $ele = new XoopsFormHidden('_old_theme', $config[$i]->getConfValueForOutput()); break; case 'timezone': Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/object.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/object.php 2012-12-07 00:56:07 UTC (rev 10328) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/object.php 2012-12-08 01:46:05 UTC (rev 10329) @@ -556,20 +556,24 @@ /** * insert/update object * - * @param object $object + * @param XoopsObject $object + * @param bool $force + * * @abstract */ - public function insert($object) + function insert(XoopsObject $object, $force = true) { } /** * delete object from database * - * @param object $object + * @param XoopsObject $object + * @param bool $force + * * @abstract */ - public function delete($object) + public function delete(XoopsObject $object, $force = true) { } } Modified: XoopsCore/bra |
From: <tr...@us...> - 2012-12-07 00:56:20
|
Revision: 10328 http://sourceforge.net/p/xoops/svn/10328 Author: trabis Date: 2012-12-07 00:56:07 +0000 (Fri, 07 Dec 2012) Log Message: ----------- -Changing $xoops->tpl, $xoops->preload, $xoops->theme, $xoops->security,$xoops->db, $xoops->registry to use get method ie: $xoops->db() This will allow to lazy load this services, allow latter modification of the bootstrap, implementation of events, etc - Removing almost all $GLOBALS left in the core. There are some left but they need extended review. -some bug fixes -xtranslate implementation on the XoopsLocal::convert_encoding and replacing define in template for $smarty variable -XoopsPreload now loads system preloads in the case that the cache file for active modules is missing -XoopsLogger is now using preload events instead of being directly called Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/extras/altsys_functions.php XoopsCore/branches/2.6.x/2.6.0/extras/modules/system/admin/filemanager/jquery.php XoopsCore/branches/2.6.x/2.6.0/extras/modules/system/admin/filemanager/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/art/functions.ini.php XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/art/object.php XoopsCore/branches/2.6.x/2.6.0/htdocs/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/backend.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/database.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/databasefactory.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/manager.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mysqldatabase.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/model/joint.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/model/read.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/moduleadmin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/preload.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/textsanitizer/image/image.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/theme.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/theme_blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/form.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formcolorpicker.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formdhtmltextarea.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formhiddentoken.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formselectuser.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formtabtray.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formtextdateselect.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/themeform.php XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopslocal.php XoopsCore/branches/2.6.x/2.6.0/htdocs/comments.php XoopsCore/branches/2.6.x/2.6.0/htdocs/edituser.php XoopsCore/branches/2.6.x/2.6.0/htdocs/examples/form.php XoopsCore/branches/2.6.x/2.6.0/htdocs/footer.php XoopsCore/branches/2.6.x/2.6.0/htdocs/header.php XoopsCore/branches/2.6.x/2.6.0/htdocs/image.php XoopsCore/branches/2.6.x/2.6.0/htdocs/imagemanager.php XoopsCore/branches/2.6.x/2.6.0/htdocs/include/comment_post.php XoopsCore/branches/2.6.x/2.6.0/htdocs/include/comment_view.php XoopsCore/branches/2.6.x/2.6.0/htdocs/include/common.php XoopsCore/branches/2.6.x/2.6.0/htdocs/include/cp_functions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/include/findusers.php XoopsCore/branches/2.6.x/2.6.0/htdocs/include/formdhtmltextarea_preview.php XoopsCore/branches/2.6.x/2.6.0/htdocs/include/functions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/include/notification_select.php XoopsCore/branches/2.6.x/2.6.0/htdocs/include/notification_update.php XoopsCore/branches/2.6.x/2.6.0/htdocs/include/site-closed.php XoopsCore/branches/2.6.x/2.6.0/htdocs/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/class/pathcontroller.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/common.inc.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/functions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/install_tpl.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/include/makedata.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/finish.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/language/english/welcome.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/page_configsave.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/page_configsite.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/page_dbconnection.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/page_dbsettings.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/page_end.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/page_extensioninstaller.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/page_langselect.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/page_modcheck.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/page_moduleinstaller.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/page_pathsettings.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/page_siteinit.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/page_start.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/page_tablescreate.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/page_tablesfill.php XoopsCore/branches/2.6.x/2.6.0/htdocs/install/page_theme.php XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/config.php XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/notification.php XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/object.php XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/session.php XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/tplfile.php XoopsCore/branches/2.6.x/2.6.0/htdocs/lostpass.php XoopsCore/branches/2.6.x/2.6.0/htdocs/misc.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/include/install.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/admin/banners.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/admin/clients.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/class/bannerrender.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/include/install.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/banners/index.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/maintenance/admin/center.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/maintenance/admin/dump.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/content.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/permissions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/admin/related.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/blocks/page_blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/page_content.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/class/page_related.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/include/search.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/page/rating.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pm/include/install.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pm/include/update.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pm/language/english/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pm/pmlite.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pm/readpmsg.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/pm/viewpmsg.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/admin/category.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/admin/field.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/admin/step.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/admin/user.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/admin/visibility.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/changemail.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/changepass.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/class/field.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/edituser.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/footer.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/include/forms.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/include/install.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/include/update.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/lostpass.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/register.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/search.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/user.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/profile/userinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/admin/advisory.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/admin/center.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/admin/prefix_manager.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/class/ProtectorFilter.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/class/gtickets.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/class/protector.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/filters_disabled/postcommon_post_deny_by_rbl.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/protector/include/postcheck_functions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/smilies/admin/smilies.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/blocksadmin/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/comments/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/extensions/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/groups/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/images/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/modulesadmin/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/preferences/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/tplsets/jquery.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/tplsets/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/jquery.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/main.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin/users/users.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/admin.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/blocks/system_blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/menu.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/module.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/systembreadcrumb.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/help.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/include/functions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/include/update.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/preloads/core.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_extensions.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/admin/system_modules.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/system_imagemanager.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/system_imagemanager2.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/system_notification_select.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/themes/default/default.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/themes/default/menu.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/userrank/admin/userrank.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/about.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/class/xcaptcha.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/image.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/recaptcha.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/plugins/text.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/about.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/header.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/admin/index.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/api.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/blocks/xlanguage_blocks.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/class/xlanguage.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/functions.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/include/vars.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/preloads/core.php XoopsCore/branches/2.6.x/2.6.0/htdocs/notifications.php XoopsCore/branches/2.6.x/2.6.0/htdocs/pda.php XoopsCore/branches/2.6.x/2.6.0/htdocs/pmlite.php XoopsCore/branches/2.6.x/2.6.0/htdocs/readpmsg.php XoopsCore/branches/2.6.x/2.6.0/htdocs/register.php XoopsCore/branches/2.6.x/2.6.0/htdocs/search.php XoopsCore/branches/2.6.x/2.6.0/htdocs/themes/default/theme_onload.php XoopsCore/branches/2.6.x/2.6.0/htdocs/themes/default/xotpl/theme_language.html XoopsCore/branches/2.6.x/2.6.0/htdocs/user.php XoopsCore/branches/2.6.x/2.6.0/htdocs/userinfo.php XoopsCore/branches/2.6.x/2.6.0/htdocs/viewpmsg.php XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops/Pdf.php XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops.php XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/smarty/xoops_plugins/function.block.php XoopsCore/branches/2.6.x/2.6.0/upgrade/abstract.php XoopsCore/branches/2.6.x/2.6.0/upgrade/cnt-2.2.x-to-2.3.0/index.php XoopsCore/branches/2.6.x/2.6.0/upgrade/index.php XoopsCore/branches/2.6.x/2.6.0/upgrade/login.php XoopsCore/branches/2.6.x/2.6.0/upgrade/upd-2.0.13-to-2.0.14/index.php XoopsCore/branches/2.6.x/2.6.0/upgrade/upd-2.0.15-to-2.0.16/index.php XoopsCore/branches/2.6.x/2.6.0/upgrade/upd-2.0.16-to-2.0.17/index.php XoopsCore/branches/2.6.x/2.6.0/upgrade/upd-2.0.17-to-2.0.18/index.php XoopsCore/branches/2.6.x/2.6.0/upgrade/upd-2.0.18-to-2.3.0/index.php XoopsCore/branches/2.6.x/2.6.0/upgrade/upd-2.0.18-to-2.3.0/settings_db.php XoopsCore/branches/2.6.x/2.6.0/upgrade/upd-2.3.0-to-2.3.1/index.php XoopsCore/branches/2.6.x/2.6.0/upgrade/upd-2.3.3-to-2.4.0/index.php XoopsCore/branches/2.6.x/2.6.0/upgrade/upd-2.4.0a-to-2.4.0/index.php XoopsCore/branches/2.6.x/2.6.0/upgrade/upd-2.4.x-to-2.5.0/index.php XoopsModules/publisher/trunk/publisher/class/category.php XoopsModules/publisher/trunk/publisher/class/file.php XoopsModules/publisher/trunk/publisher/class/item.php XoopsModules/publisher/trunk/publisher/class/mimetype.php Modified: XoopsCore/branches/2.6.x/2.6.0/extras/altsys_functions.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/extras/altsys_functions.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/extras/altsys_functions.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -42,7 +42,7 @@ function altsys_include_language_file($type) { - $mylang = $GLOBALS['xoopsConfig']['language']; + $mylang = Xoops::getInstance()->getConfig('language'); if (file_exists(XOOPS_ROOT_PATH . '/modules/altsys/language/' . $mylang . '/' . $type . '.php')) { include_once XOOPS_ROOT_PATH . '/modules/altsys/language/' . $mylang . '/' . $type . '.php'; Modified: XoopsCore/branches/2.6.x/2.6.0/extras/modules/system/admin/filemanager/jquery.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/extras/modules/system/admin/filemanager/jquery.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/extras/modules/system/admin/filemanager/jquery.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -24,7 +24,7 @@ require dirname(dirname(dirname(dirname(dirname(__FILE__))))) . '/mainfile.php' ; $xoops = Xoops::getInstance(); -$xoops->logger->disable(); +$xoops->logger()->disable(); $system = System::getInstance(); Modified: XoopsCore/branches/2.6.x/2.6.0/extras/modules/system/admin/filemanager/main.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/extras/modules/system/admin/filemanager/main.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/extras/modules/system/admin/filemanager/main.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -42,17 +42,17 @@ // Call Header xoops_cp_header(); -$xoops->theme->addScript('media/jquery/ui/jquery.ui.js'); -$xoops->theme->addScript('media/jquery/jquery.js'); -$xoops->theme->addScript('media/jquery/plugins/jquery.easing.js'); -$xoops->theme->addScript('media/jquery/plugins/jqueryFileTree.js'); -$xoops->theme->addScript('modules/system/js/filemanager.js'); -$xoops->theme->addScript('modules/system/js/admin.js'); -$xoops->theme->addScript('modules/system/js/code_mirror/codemirror.js'); +$xoops->theme()->addScript('media/jquery/ui/jquery.ui.js'); +$xoops->theme()->addScript('media/jquery/jquery.js'); +$xoops->theme()->addScript('media/jquery/plugins/jquery.easing.js'); +$xoops->theme()->addScript('media/jquery/plugins/jqueryFileTree.js'); +$xoops->theme()->addScript('modules/system/js/filemanager.js'); +$xoops->theme()->addScript('modules/system/js/admin.js'); +$xoops->theme()->addScript('modules/system/js/code_mirror/codemirror.js'); // Define Stylesheet -$xoops->theme->addStylesheet('modules/system/css/admin.css'); -$xoops->theme->addStylesheet('modules/system/css/code_mirror/docs.css'); -$xoops->theme->addStylesheet('media/jquery/ui/' . $xoops->getModuleConfig('jquery_theme', 'system') . '/ui.all.css'); +$xoops->theme()->addStylesheet('modules/system/css/admin.css'); +$xoops->theme()->addStylesheet('modules/system/css/code_mirror/docs.css'); +$xoops->theme()->addStylesheet('media/jquery/ui/' . $xoops->getModuleConfig('jquery_theme', 'system') . '/ui.all.css'); // Define Breadcrumb and tips $system_breadcrumb->addLink(_AM_SYSTEM_FILEMANAGER_NAV_MAIN, system_adminVersion('filemanager', 'adminpath')); @@ -63,14 +63,14 @@ $system_breadcrumb->addTips(_AM_SYSTEM_FILEMANAGER_NAV_TIPS); $system_breadcrumb->render(); - $xoops->tpl->assign('index', true); - $xoops->tpl->debugging = false; + $xoops->tpl()->assign('index', true); + $xoops->tpl()->debugging = false; $nbcolonnes_file = 4; $width = 100 / $nbcolonnes_file; $root = XOOPS_ROOT_PATH . '/'; $url_file = XOOPS_URL . '/'; - $xoops->tpl->assign('width', $width); + $xoops->tpl()->assign('width', $width); if (file_exists($root)) { $files = scandir($root); @@ -164,8 +164,8 @@ $file_arr['file'] = htmlentities($file); $count_file++; $file_arr['newline'] = ($count_file % $nbcolonnes_file == 1) ? true : false; - $xoops->tpl->assign('newline', $file_arr['newline']); - $xoops->tpl->append('files', $file_arr); + $xoops->tpl()->assign('newline', $file_arr['newline']); + $xoops->tpl()->append('files', $file_arr); } $edit = false; } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/art/functions.ini.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/art/functions.ini.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/art/functions.ini.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -152,7 +152,7 @@ if ($isRel) { return $relative_name; } - return $xoops->db->prefix($relative_name); + return $xoops->db()->prefix($relative_name); } } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/art/object.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/art/object.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/Frameworks/art/object.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -65,13 +65,13 @@ * @param object $db reference to the {@link XoopsDatabase} object **/ - function __construct(&$db, $table, $className, $keyName, $identifierName) + function __construct($db, $table, $className, $keyName, $identifierName) { $this->db = $db; parent::__construct($db, $table, $className, $keyName, $identifierName); } - function ArtObjectHandler(&$db, $table = "", $className = "", $keyName = "", $identifierName = false) + function ArtObjectHandler($db, $table = "", $className = "", $keyName = "", $identifierName = false) { $this->__construct( $db, $table, $className, $keyName, $identifierName ); } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/admin.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/admin.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/admin.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -72,7 +72,7 @@ if (strpos(XOOPS_VAR_PATH . '/', XOOPS_ROOT_PATH . '/') !== false || strpos(XOOPS_VAR_PATH . '/', $_SERVER['DOCUMENT_ROOT'] . '/') !== false) { $error_msg[] = sprintf(_AD_WARNINGXOOPSLIBINSIDE, XOOPS_VAR_PATH); } - $xoops->tpl->assign('error_msg', $error_msg); + $xoops->tpl()->assign('error_msg', $error_msg); } if (!empty($_GET['xoopsorgnews'])) { Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/backend.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/backend.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/backend.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -21,7 +21,7 @@ include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mainfile.php'; $xoops = Xoops::getInstance(); -$xoops->logger->disable(); +$xoops->logger()->disable(); if (function_exists('mb_http_output')) { mb_http_output('pass'); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/database.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/database.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/database.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -48,28 +48,12 @@ public $prefix = ''; /** - * @var XoopsLogger - */ - public $logger; - - /** * If statements that modify the database are selected * * @var boolean */ public $allowWebChanges = false; - /** - * assign a {@link XoopsLogger} object to the database - * - * @see XoopsLogger - * - * @param XoopsLogger $logger reference to a {@link XoopsLogger} object - */ - public function setLogger(XoopsLogger $logger) - { - $this->logger = $logger; - } /** * set the prefix for tables in the database Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/databasefactory.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/databasefactory.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/databasefactory.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -51,7 +51,6 @@ $xoopsPreload->triggerEvent('core.class.database.databasefactory.connection', array(&$class)); /* @var $instance XoopsDatabase */ $instance = new $class(); - $instance->setLogger(XoopsLogger::getInstance()); $instance->setPrefix(XOOPS_DB_PREFIX); if (!$instance->connect()) { trigger_error('notrace:Unable to connect to database', E_USER_ERROR); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/manager.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/manager.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/manager.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -60,7 +60,6 @@ { $this->db = XoopsDatabaseFactory::getDatabase(); $this->db->setPrefix(XOOPS_DB_PREFIX); - $this->db->setLogger(XoopsLogger::getInstance()); } /** Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mysqldatabase.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mysqldatabase.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/database/mysqldatabase.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -59,12 +59,14 @@ } if (!$this->conn) { - $this->logger->addQuery('', $this->error(), $this->errno()); + $xoopsPreload = XoopsPreload::getInstance(); + $xoopsPreload->triggerEvent('core.database.noconn', array($this)); return false; } if ($selectdb != false) { if (!mysql_select_db(XOOPS_DB_NAME)) { - $this->logger->addQuery('', $this->error(), $this->errno()); + $xoopsPreload = XoopsPreload::getInstance(); + $xoopsPreload->triggerEvent('core.database.nodb'); return false; } } @@ -245,15 +247,16 @@ } $sql = $sql . ' LIMIT ' . (int) $start . ', ' . (int) $limit; } - $this->logger->startTime('query_time'); + $xoopsPreload = XoopsPreload::getInstance(); + $xoopsPreload->triggerEvent('core.database.query.start'); $result = mysql_query($sql, $this->conn); - $this->logger->stopTime('query_time'); - $query_time = $this->logger->dumpTime('query_time', true); + $xoopsPreload->triggerEvent('core.database.query.end'); + if ($result) { - $this->logger->addQuery($sql, null, null, $query_time); + $xoopsPreload->triggerEvent('core.database.query.success', (array($sql))); return $result; } else { - $this->logger->addQuery($sql, $this->error(), $this->errno(), $query_time); + $xoopsPreload->triggerEvent('core.database.query.failure', (array($sql, $this))); return false; } } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/model/joint.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/model/joint.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/model/joint.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -120,7 +120,7 @@ $object = $this->handler->create(false); while ($myrow = $this->handler->db->fetchArray($result)) { $object->assignVars($myrow); - $ret[$myrow[$this->handler->keyName]] = $object->toArray(); + $ret[$myrow[$this->handler->keyName]] = $object->getValues(); } unset($object); } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/model/read.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/model/read.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/model/read.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -87,9 +87,9 @@ while ($myrow = $this->handler->db->fetchArray($result)) { $object->assignVars($myrow); if ($id_as_key) { - $ret[$myrow[$this->handler->keyName]] = $object->toArray(); + $ret[$myrow[$this->handler->keyName]] = $object->getValues(); } else { - $ret[] = $object->toArray(); + $ret[] = $object->getValues(); } } unset($object); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/moduleadmin.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/moduleadmin.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/moduleadmin.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -89,7 +89,7 @@ { $xoops = Xoops::getInstance(); $this->_obj = $xoops->module; - $xoops->theme->addStylesheet('media/xoops/css/moduladmin.css'); + $xoops->theme()->addStylesheet('media/xoops/css/moduladmin.css'); } /** @@ -282,8 +282,8 @@ public function renderBreadcrumb() { $xoops = Xoops::getInstance(); - $xoops->tpl->assign('xo_admin_breadcrumb', $this->_bread); - return $xoops->tpl->fetch($this->getTplPath('bread')); + $xoops->tpl()->assign('xo_admin_breadcrumb', $this->_bread); + return $xoops->tpl()->fetch($this->getTplPath('bread')); } public function displayBreadcrumb() @@ -303,10 +303,10 @@ { $xoops = Xoops::getInstance(); - $xoops->tpl->assign('xo_admin_buttons_position', $position); - $xoops->tpl->assign('xo_admin_buttons_delim', $delimiter); - $xoops->tpl->assign('xo_admin_buttons', $this->_itemButton); - return $xoops->tpl->fetch($this->getTplPath('button')); + $xoops->tpl()->assign('xo_admin_buttons_position', $position); + $xoops->tpl()->assign('xo_admin_buttons_delim', $delimiter); + $xoops->tpl()->assign('xo_admin_buttons', $this->_itemButton); + return $xoops->tpl()->fetch($this->getTplPath('button')); } /** @@ -324,8 +324,8 @@ public function renderInfoBox() { $xoops = Xoops::getInstance(); - $xoops->tpl->assign('xo_admin_box', $this->_itemInfoBox); - return $xoops->tpl->fetch($this->getTplPath('infobox')); + $xoops->tpl()->assign('xo_admin_box', $this->_itemInfoBox); + return $xoops->tpl()->fetch($this->getTplPath('infobox')); } public function displayInfoBox() @@ -346,16 +346,16 @@ } else { $this->_obj->adminmenu[$i]['icon'] = $xoops->url("/modules/" . $xoops->module->dirname() . "/icons/32/" . $this->_obj->adminmenu[$i]['icon']); } - $xoops->tpl->append('xo_admin_index_menu', $this->_obj->adminmenu[$i]); + $xoops->tpl()->append('xo_admin_index_menu', $this->_obj->adminmenu[$i]); } if ($this->_obj->getInfo('help')) { $help = array(); $help['link'] = '../system/help.php?mid=' . $this->_obj->getVar('mid', 's') . "&" . $this->_obj->getInfo('help'); $help['icon'] = $xoops->url("/media/xoops/images/icons/32/help.png"); $help['title'] = _AM_SYSTEM_HELP; - $xoops->tpl->append('xo_admin_index_menu', $help); + $xoops->tpl()->append('xo_admin_index_menu', $help); } - $xoops->tpl->assign('xo_admin_box', $this->_itemInfoBox); + $xoops->tpl()->assign('xo_admin_box', $this->_itemInfoBox); // If you use a config label if ($this->_obj->getInfo('min_php') || $this->_obj->getInfo('min_xoops') || !empty($this->_itemConfigBoxLine)) { @@ -378,7 +378,7 @@ $dbCurrentVersion = mysqli_get_server_info(); break; case "pdo": - $dbCurrentVersion = $xoops->db->getAttribute(PDO::ATTR_SERVER_VERSION); + $dbCurrentVersion = $xoops->db()->getAttribute(PDO::ATTR_SERVER_VERSION); break; default: $dbCurrentVersion = '0'; @@ -415,9 +415,9 @@ $this->addConfigBoxLine(sprintf(_AM_MODULEADMIN_CONFIG_XOOPS, $this->_obj->getInfo('min_xoops'), substr(XOOPS_VERSION, 6, strlen(XOOPS_VERSION) - 6)), 'accept'); } } - $xoops->tpl->assign('xo_admin_index_config', $this->_itemConfigBoxLine); + $xoops->tpl()->assign('xo_admin_index_config', $this->_itemConfigBoxLine); } - return $xoops->tpl->fetch($this->getTplPath('index')); + return $xoops->tpl()->fetch($this->getTplPath('index')); } public function displayIndex() @@ -445,8 +445,8 @@ } else { $this->_obj->adminmenu[$i]['icon'] = $xoops->url("/modules/" . $xoops->module->dirname() . "/icons/32/" . $this->_obj->adminmenu[$i]['icon']); } - $xoops->tpl->assign('xo_sys_navigation', $this->_obj->adminmenu[$i]); - $ret[] = $xoops->tpl->fetch($this->getTplPath('nav')); + $xoops->tpl()->assign('xo_sys_navigation', $this->_obj->adminmenu[$i]); + $ret[] = $xoops->tpl()->fetch($this->getTplPath('nav')); } } return $ret; @@ -469,8 +469,8 @@ public function renderTips() { $xoops = Xoops::getInstance(); - $xoops->tpl->assign('xo_admin_tips', $this->_tips); - return $xoops->tpl->fetch($this->getTplPath('tips')); + $xoops->tpl()->assign('xo_admin_tips', $this->_tips); + return $xoops->tpl()->fetch($this->getTplPath('tips')); } public function displayTips() @@ -526,7 +526,7 @@ $this->_obj->setInfo('paypal', $this->_obj->getInfo('paypal')); } $this->_obj->setInfo('changelog', $changelog); - $xoops->tpl->assign('module', $this->_obj); + $xoops->tpl()->assign('module', $this->_obj); $this->addInfoBox(_AM_MODULEADMIN_ABOUT_MODULEINFO, 'info', 'id="xo-about"'); $this->addInfoBoxLine(_AM_MODULEADMIN_ABOUT_DESCRIPTION . ' ' . $this->_obj->getInfo("description"), 'info'); @@ -534,9 +534,9 @@ $this->addInfoBoxLine(_AM_MODULEADMIN_ABOUT_WEBSITE . ' <a class="xo-tooltip" href="http://' . $this->_obj->getInfo("module_website_url") . '" rel="external" title="' . $this->_obj->getInfo("module_website_name") . ' - ' . $this->_obj->getInfo("module_website_url") . '"> ' . $this->_obj->getInfo("module_website_name") . '</a>', 'info'); - $xoops->tpl->assign('xoops_logo', $logo_xoops); - $xoops->tpl->assign('xo_admin_box', $this->_itemInfoBox); - return $xoops->tpl->fetch($this->getTplPath('about')); + $xoops->tpl()->assign('xoops_logo', $logo_xoops); + $xoops->tpl()->assign('xo_admin_box', $this->_itemInfoBox); + return $xoops->tpl()->fetch($this->getTplPath('about')); } /** Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/preload.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/preload.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/preload.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -59,7 +59,7 @@ /** * Allow one instance only! * - * @staticvar XoopsPreload + * @staticvar $instance XoopsPreload * @return XoopsPreload */ static function getInstance() @@ -79,18 +79,20 @@ */ private function _setPreloads() { - if ($modules_list = Xoops_Cache::read('system_modules_active')) { - $i = 0; - foreach ($modules_list as $module) { - if (is_dir($dir = XOOPS_ROOT_PATH . "/modules/{$module}/preloads/")) { - $file_list = XoopsLists::getFileListAsArray($dir); - foreach ($file_list as $file) { - if (preg_match('/(\.php)$/i', $file)) { - $file = substr($file, 0, -4); - $this->_preloads[$i]['module'] = $module; - $this->_preloads[$i]['file'] = $file; - $i++; - } + $modules_list = Xoops_Cache::read('system_modules_active'); + if (!$modules_list) { + $modules_list = array ('system'); + } + $i = 0; + foreach ($modules_list as $module) { + if (is_dir($dir = XOOPS_ROOT_PATH . "/modules/{$module}/preloads/")) { + $file_list = XoopsLists::getFileListAsArray($dir); + foreach ($file_list as $file) { + if (preg_match('/(\.php)$/i', $file)) { + $file = substr($file, 0, -4); + $this->_preloads[$i]['module'] = $module; + $this->_preloads[$i]['file'] = $file; + $i++; } } } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/textsanitizer/image/image.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/textsanitizer/image/image.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/textsanitizer/image/image.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -54,10 +54,10 @@ $ts->replacements[] = '<a href="' . XOOPS_URL . '/image.php?id=\\2" rel="external" title="\\3">\\3</a>'; } else { - if (!empty($config['resize']) && empty($config['clickable']) && !empty($config['max_width']) && !empty($xoops->theme)) { + if (!empty($config['resize']) && empty($config['clickable']) && !empty($config['max_width']) && is_object($xoops->theme())) { if (!$jsLoaded) { $jsLoaded = true; - $xoops->theme->addScript('/class/textsanitizer/image/image.js', array( + $xoops->theme()->addScript('/class/textsanitizer/image/image.js', array( 'type' => 'text/javascript' )); } @@ -69,10 +69,10 @@ ? " onload=\"javascript:imageResize(this, " . $config['max_width'] . ")\"" : "") . "/>"; } else { - if (!empty($config['clickable']) && !empty($config['max_width']) && !empty($xoops->theme)) { + if (!empty($config['clickable']) && !empty($config['max_width']) && is_object($xoops->theme())) { if (!$jsLoaded) { $jsLoaded = true; - $xoops->theme->addScript('/class/textsanitizer/image/image.js', array( + $xoops->theme()->addScript('/class/textsanitizer/image/image.js', array( 'type' => 'text/javascript' )); } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/theme.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/theme.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/theme.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -361,11 +361,13 @@ if ($this->bufferOutput) { ob_start(); } - $xoops->theme = $this; - $xoops->tpl = $this->template; - $GLOBALS['xoTheme'] =& $xoops->theme; - $GLOBALS['xoopsTpl'] =& $xoops->tpl; + $xoops->setTheme($this); + $xoops->setTpl($this->template); + //For legacy only, never use this Globals + $GLOBALS['xoTheme'] = $xoops->theme(); + $GLOBALS['xoopsTpl'] = $xoops->tpl(); + //to control order of loading JS and CSS if (file_exists($this->path ."/theme_onload.php")) @@ -443,8 +445,7 @@ } $this->contentCacheId = $this->generateCacheId('page_' . substr(md5($uri), 0, 8)); if ($this->template->is_cached($template, $this->contentCacheId)) { - XoopsLogger::getInstance() - ->addExtra($template, sprintf('Cached (regenerates every %d seconds)', $this->contentCacheLifetime)); + Xoops::getInstance()->preload()->triggerEvent('core.theme.checkcache.success', array($template, $this)); $this->render(null, null, $template); return true; } @@ -472,7 +473,7 @@ return false; } $xoops = Xoops::getInstance(); - $xoops->logger->startTime('Page rendering'); + $xoops->preload()->triggerEvent('core.theme.render.start', array($this)); //Get meta information for cached pages if ($this->contentCacheLifetime && $this->contentCacheId && $content = Xoops_Cache::read($this->contentCacheId, $this->headersCacheEngine)) { @@ -534,7 +535,7 @@ $this->template->caching = 0; $this->template->display($this->path . '/' . $this->canvasTemplate); $this->renderCount++; - $xoops->logger->stopTime('Page rendering'); + $xoops->preload()->triggerEvent('core.theme.render.end', array($this)); return true; } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/theme_blocks.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/theme_blocks.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/theme_blocks.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -116,7 +116,7 @@ } $block_handler = $xoops->getHandlerBlock(); $block_arr = $block_handler->getAllByGroupModule($groups, $mid, $isStart, XOOPS_BLOCK_VISIBLE); - $xoops->preload->triggerEvent('core.class.theme_blocks.retrieveBlocks', array(&$this, &$template, &$block_arr)); + $xoops->preload()->triggerEvent('core.class.theme_blocks.retrieveBlocks', array(&$this, &$template, &$block_arr)); foreach ($block_arr as $block) { /* @var $block XoopsBlock */ $side = $oldzones[$block->getVar('side')]; @@ -172,6 +172,8 @@ : "module:system|system_block_dummy.html"; $cacheid = $this->generateCacheId('blk_' . $xobject->getVar('bid')); + Xoops::getInstance()->preload()->triggerEvent('core.themeblocks.buildblock.start', array($xobject, $template->is_cached($tplName, $cacheid))); + if (!$bcachetime || !$template->is_cached($tplName, $cacheid)) { //Get theme metas @@ -183,7 +185,6 @@ } //build block - XoopsLogger::getInstance()->addBlock($xobject->getVar('name')); if ($bresult = $xobject->buildBlock()) { $template->assign('block', $bresult); $block['content'] = $template->fetch($tplName, $cacheid); @@ -205,7 +206,6 @@ } } } else { - XoopsLogger::getInstance()->addBlock($xobject->getVar('name'), true, $bcachetime); $block['content'] = $template->fetch($tplName, $cacheid); } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/form.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/form.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/form.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -453,7 +453,7 @@ * @param XoopsTpl $tpl * @return void */ - public function assign(XoopsTpl &$tpl) + public function assign(XoopsTpl $tpl) { $i = -1; $elements = array(); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formcolorpicker.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formcolorpicker.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formcolorpicker.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -42,8 +42,8 @@ public function render() { $xoops = Xoops::getInstance(); - if (isset($xoops->theme)) { - $xoops->theme->addScript('include/color-picker.js'); + if ($xoops->theme()) { + $xoops->theme()->addScript('include/color-picker.js'); } else { echo '<script type="text/javascript" src="' . XOOPS_URL . '/include/color-picker.js"></script>'; } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formdhtmltextarea.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formdhtmltextarea.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formdhtmltextarea.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -187,12 +187,12 @@ $ret .= "<textarea" . $class . " id='" . $this->getName() . "' name='" . $this->getName() . "' title='" . $this->getTitle() . "' onselect=\"xoopsSavePosition('" . $this->getName() . "');\" onclick=\"xoopsSavePosition('" . $this->getName() . "');\" onkeyup=\"xoopsSavePosition('" . $this->getName() . "');\" rows='" . $this->getRows() . "'" . $extra . $required . ">" . $this->getValue() . "</textarea><br />\n"; if (empty($this->skipPreview)) { - if (empty($xoops->theme)) { + if (!$xoops->theme()) { $this->js .= implode("", file(XOOPS_ROOT_PATH . "/class/textsanitizer/image/image.js")); } else { - $xoops->theme->addScript('/class/textsanitizer/image/image.js', array('type' => 'text/javascript')); + $xoops->theme()->addScript('/class/textsanitizer/image/image.js', array('type' => 'text/javascript')); } - $button = "<input id='" . $this->getName() . "_preview_button' " . "type='button' " . "class='btn' value='" . _PREVIEW . "' " . "onclick=\"form_instantPreview('" . XOOPS_URL . "', '" . $this->getName() . "','" . XOOPS_URL . "/images', " . intval($this->doHtml) . ", '" . $xoops->security->createToken() . "')\"" . " />"; + $button = "<input id='" . $this->getName() . "_preview_button' " . "type='button' " . "class='btn' value='" . _PREVIEW . "' " . "onclick=\"form_instantPreview('" . XOOPS_URL . "', '" . $this->getName() . "','" . XOOPS_URL . "/images', " . intval($this->doHtml) . ", '" . $xoops->security()->createToken() . "')\"" . " />"; $ret .= "<br />" . "<div id='" . $this->getName() . "_hidden' style='display: block;'> " . "<fieldset>" . "<legend>" . $button . "</legend>" . "<div id='" . $this->getName() . "_hidden_data'>" . _XOOPS_FORM_PREVIEW_CONTENT . "</div>" . "</fieldset>" . "</div>"; } // Load javascript Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formhiddentoken.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formhiddentoken.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formhiddentoken.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -37,6 +37,6 @@ public function __construct($name = 'XOOPS_TOKEN', $timeout = 0) { $xoops = Xoops::getInstance(); - parent::__construct($name . '_REQUEST', $xoops->security->createToken($timeout, $name)); + parent::__construct($name . '_REQUEST', $xoops->security()->createToken($timeout, $name)); } } \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formselectuser.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formselectuser.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formselectuser.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -97,7 +97,7 @@ return true; } </script>"; - $token = $xoops->security->createToken(); + $token = $xoops->security()->createToken(); $action_tray = new XoopsFormElementTray("", " | "); $action_tray->addElement(new XoopsFormLabel('', '<a href="#" onclick="var sel = xoopsGetElementById(\'' . $name . '\');for (var i = sel.options.length-1; i >= 0; i--) {if (!sel.options[i].selected) {sel.options[i] = null;}}; return false;">' . _MA_USER_REMOVE . "</a>")); $action_tray->addElement(new XoopsFormLabel('', '<a href="#" onclick="openWithSelfMain(\'' . XOOPS_URL . '/include/findusers.php?target=' . $name . '&multiple=' . $multiple . '&token=' . $token . '\', \'userselect\', 800, 600, null); return false;" >' . _MA_USER_MORE . "</a>" . $js_addusers)); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formtabtray.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formtabtray.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formtabtray.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -54,10 +54,10 @@ public function render() { $xoops = Xoops::getInstance(); - $xoops->theme->addScript('media/jquery/jquery.js'); - $xoops->theme->addScript('media/jquery/ui/jquery.ui.js'); - $xoops->theme->addStylesheet('media/jquery/ui/' . $this->_uiTheme . '/ui.all.css'); - $xoops->theme->addScript('', '', ' + $xoops->theme()->addScript('media/jquery/jquery.js'); + $xoops->theme()->addScript('media/jquery/ui/jquery.ui.js'); + $xoops->theme()->addStylesheet('media/jquery/ui/' . $this->_uiTheme . '/ui.all.css'); + $xoops->theme()->addScript('', '', ' $(function() { $("#tabs_' . $this->getName() . '").tabs(); }); Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formtextdateselect.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formtextdateselect.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/formtextdateselect.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -58,11 +58,11 @@ } $jstime = XoopsLocal::formatTimestamp($ele_value, _SHORTDATESTRING); - $xoops->theme->addScript('include/calendar.js'); - $xoops->theme->addStylesheet('include/calendar-blue.css'); + $xoops->theme()->addScript('include/calendar.js'); + $xoops->theme()->addStylesheet('include/calendar-blue.css'); if (!$included) { $included = true; - $xoops->theme->addScript('','', ' + $xoops->theme()->addScript('','', ' var calendar = null; function selected(cal, date) { Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/themeform.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/themeform.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopsform/themeform.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -56,31 +56,31 @@ public function render() { $xoops = Xoops::getInstance(); - $xoops->theme->addStylesheet('media/xoops/css/form.css'); + $xoops->theme()->addStylesheet('media/xoops/css/form.css'); switch ($this->getDisplay()) { case '': case 'horizontal': default: - $xoops->tpl->assign('type', 'horizontal'); + $xoops->tpl()->assign('type', 'horizontal'); break; case 'vertical': - $xoops->tpl->assign('type', 'vertical'); + $xoops->tpl()->assign('type', 'vertical'); break; case 'inline': - $xoops->tpl->assign('type', 'inline'); + $xoops->tpl()->assign('type', 'inline'); break; case 'personalized': - $xoops->tpl->assign('type', 'personalized'); + $xoops->tpl()->assign('type', 'personalized'); break; } - $xoops->tpl->assign('title', $this->getTitle()); - $xoops->tpl->assign('name', $this->getName()); - $xoops->tpl->assign('action', $this->getAction()); - $xoops->tpl->assign('method', $this->getMethod()); - $xoops->tpl->assign('extra', $this->getExtra()); + $xoops->tpl()->assign('title', $this->getTitle()); + $xoops->tpl()->assign('name', $this->getName()); + $xoops->tpl()->assign('action', $this->getAction()); + $xoops->tpl()->assign('method', $this->getMethod()); + $xoops->tpl()->assign('extra', $this->getExtra()); $hidden = ''; foreach ($this->getElements() as $ele) { /* @var $ele XoopsFormElement */ @@ -92,17 +92,17 @@ $input['required'] = $ele->isRequired(); $input['pattern_description'] = $ele->getPatternDescription(); $input['datalist'] = $ele->getDatalist(); - $xoops->tpl->append_by_ref('xo_input', $input); + $xoops->tpl()->append_by_ref('xo_input', $input); unset($input); } else { $hidden .= $ele->render(). NWLINE; } } - $xoops->tpl->assign('hidden', $hidden); - $xoops->tpl->assign('validationJS', $this->renderValidationJS(true)); - $ret = $xoops->tpl->fetch('module:system|system_form.html'); - $xoops->tpl->clear_assign('xo_input'); + $xoops->tpl()->assign('hidden', $hidden); + $xoops->tpl()->assign('validationJS', $this->renderValidationJS(true)); + $ret = $xoops->tpl()->fetch('module:system|system_form.html'); + $xoops->tpl()->clear_assign('xo_input'); return $ret; } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopslocal.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopslocal.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/class/xoopslocal.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -76,11 +76,17 @@ */ static function convert_encoding($text, $to = 'utf-8', $from = '') { + $xoops = Xoops::getInstance(); + $xlanguage = $xoops->registry()->get('XLANGUAGE'); + $charset = false; + if (is_array($xlanguage)) { + $charset = $xlanguage['charset_base']; + } if (empty($text)) { return $text; } if (empty($from)) { - $from = empty($GLOBALS['xlanguage']['charset_base']) ? _CHARSET : $GLOBALS['xlanguage']['charset_base']; + $from = $charset ? $charset :_CHARSET; } if (empty($to) || !strcasecmp($to, $from)) { return $text; @@ -254,7 +260,9 @@ */ public function __call($name, $args) { + exit($name); if (function_exists($name)) { + exit($name); return call_user_func_array($name, $args); } return null; Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/comments.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/comments.php 2012-12-06 14:57:05 UTC (rev 10327) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/comments.php 2012-12-07 00:56:07 UTC (rev 10328) @@ -1,7 +1,6 @@ <?php /** * XOOPS feed creator - * * 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. @@ -15,24 +14,26 @@ * @version $Id$ */ if (!function_exists('xoopsTweetString')) { - function xoopsTweetString($title, $doit=false, $wordlen=4) { - if ($doit==true) { - $title_array = explode(' ', $title); - $title = ''; - foreach($title_array as $item) { - if (strlen($item)>$wordlen) - $title .= ' #'.$item; - else - $title .= ' '.$item; - } - } - return trim($title); - } + function xoopsTweetString($title, $doit = false, $wordlen = 4) + { + if ($doit == true) { + $title_array = explode(' ', $title); + $title = ''; + foreach ($title_array as $item) { + if (strlen($item) > $wordlen) { + $title .= ' #' . $item; + } else { + $title .= ' ' . $item; + } + } + } + return trim($title); + } } include dirname(__FILE__) . DIRECTORY_SEPARATOR . 'mainfile.php'; $xoops = Xoops::getInstance(); -$xoops->logger->disable(); +$xoops->logger()->disable(); if (function_exists('mb_http_output')) { mb_http_output('pass'); @@ -66,31 +67,34 @@ } $tpl->assign('image_width', $width); $tpl->assign('image_height', $height); - + $comments_handler = $xoops->getHandler('comment'); $criteria = new CriteriaCompo(new Criteria('com_status', 2)); - if (isset($_REQUEST['modid'])&&is_numeric($_REQUEST['modid'])) - $criteria->add(new Criteria('`com_modid`', intval($_REQUEST['modid']))); - if (isset($_REQUEST['uid'])&&is_numeric($_REQUEST['uid'])) - $criteria->add(new Criteria('`com_uid`', intval($_REQUEST['uid']))); - $criteria->setLimit(((isset($_REQUEST['num'])&&is_numeric($_REQUEST['num'])&&intval($_REQUEST['num'])>0)?intval($_REQUEST['num']):10)); + if (isset($_REQUEST['modid']) && is_numeric($_REQUEST['modid'])) { + $criteria->add(new Criteria('`com_modid`', intval($_REQUEST['modid']))); + } + if (isset($_REQUEST['uid']) && is_numeric($_REQUEST['uid'])) { + $criteria->add(new Criteria('`com_uid`', intval($_REQUEST['uid']))); + } + $criteria->setLimit(((isset($_REQUEST['num']) && is_numeric($_REQUEST['num']) && intval($_REQUEST['num']) > 0) ? intval($_REQUEST['num']) : 10)); $criteria->setSort('`com_created`'); $criteria->setOrder('DESC'); - + $module_handler = $xoops->getModuleHandler(); $comments = $comments_handler->getObjects($criteria); if (!empty($comments) && is_array($comments)) { - $myts =& MyTextSanitizer::getInstance(); + $myts =& MyTextSanitizer::getInstance(); foreach ($comments as $comment) { - $xoModule = $module_handler->get($comment->getVar('com_modid')); - $comment_config = $xoModule->getInfo('comments'); + $xoModule = $module_handler->get($comment->getVar('com_modid')); + $comment_config = $xoModule->getInfo('comments'); $tpl->append('items', array( - 'title' => XoopsLocal::convert_encoding(htmlspecialchars(xoopsTweetString($comment->getVar('com_title'), isset($_REQUEST['tweet']), ((isset($_REQUEST['tweetlen'])&&is_numeric($_REQUEST['tweetlen'])&&intval($_REQUEST['tweetlen'])>0)?intval($_REQUEST['tweetlen']):4)), ENT_QUOTES)) , - 'link' => htmlspecialchars(XOOPS_URL . '/modules/'.$xoModule->getVar('dirname').'/'.$comment_config['pageName'].'?'.$comment_config['itemName'].'='.$comment->getVar('com_itemid').'&com_id='.$comment->getVar('com_id').'&com_rootid='.$comment->getVar('com_rootid').'&com_mode='.$GLOBALS['xoopsConfig']['com_mode'].'&com_order=0'.(strlen($comment->getVar('com_exparams'))>0?'&'.$comment->getVar('com_exparams'):'').'#comment'.$comment->getVar('com_id')), - 'guid' => htmlspecialchars(XOOPS_URL . '/modules/'.$xoModule->getVar('dirname').'/'.$comment_config['pageName'].'?'.$comment_config['itemName'].'='.$comment->getVar('com_... [truncated message content] |
From: <du...@us...> - 2012-12-06 14:57:09
|
Revision: 10327 http://sourceforge.net/p/xoops/svn/10327 Author: dugris Date: 2012-12-06 14:57:05 +0000 (Thu, 06 Dec 2012) Log Message: ----------- fix : insert, updata tplfile, tplsource remove quoteString (insert/update) Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/tplfile.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/module.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/tplfile.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/tplfile.php 2012-12-06 04:04:15 UTC (rev 10326) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/kernel/tplfile.php 2012-12-06 14:57:05 UTC (rev 10327) @@ -255,7 +255,7 @@ } if ($tplfile->isNew()) { $tpl_id = $this->db->genId('tpltpl_file_id_seq'); - $sql = sprintf("INSERT INTO %s (tpl_id, tpl_module, tpl_refid, tpl_tplset, tpl_file, tpl_desc, tpl_lastmodified, tpl_lastimported, tpl_type) VALUES (%u, %s, %u, %s, %s, %s, %u, %u, %s)", $this->db->prefix('tplfile'), $tpl_id, $this->db->quoteString($tpl_module), $tpl_refid, $this->db->quoteString($tpl_tplset), $this->db->quoteString($tpl_file), $this->db->quoteString($tpl_desc), $tpl_lastmodified, $tpl_lastimported, $this->db->quoteString($tpl_type)); + $sql = sprintf("INSERT INTO %s (tpl_id, tpl_module, tpl_refid, tpl_tplset, tpl_file, tpl_desc, tpl_lastmodified, tpl_lastimported, tpl_type) VALUES (%u, %s, %u, %s, %s, %s, %u, %u, %s)", $this->db->prefix('tplfile'), $tpl_id, $tpl_module, $tpl_refid, $tpl_tplset, $tpl_file, $tpl_desc, $tpl_lastmodified, $tpl_lastimported, $tpl_type); if (!$this->db->query($sql)) { return false; } @@ -263,7 +263,7 @@ $tpl_id = $this->db->getInsertId(); } if (isset($tpl_source) && $tpl_source != '') { - $sql = sprintf("INSERT INTO %s (tpl_id, tpl_source) VALUES (%u, %s)", $this->db->prefix('tplsource'), $tpl_id, $this->db->quoteString($tpl_source)); + $sql = sprintf("INSERT INTO %s (tpl_id, tpl_source) VALUES (%u, %s)", $this->db->prefix('tplsource'), $tpl_id, $tpl_source); if (!$this->db->query($sql)) { $this->db->query(sprintf("DELETE FROM %s WHERE tpl_id = %u", $this->db->prefix('tplfile'), $tpl_id)); return false; @@ -271,12 +271,12 @@ } $tplfile->assignVar('tpl_id', $tpl_id); } else { - $sql = sprintf("UPDATE %s SET tpl_tplset = %s, tpl_file = %s, tpl_desc = %s, tpl_lastimported = %u, tpl_lastmodified = %u WHERE tpl_id = %u", $this->db->prefix('tplfile'), $this->db->quoteString($tpl_tplset), $this->db->quoteString($tpl_file), $this->db->quoteString($tpl_desc), $tpl_lastimported, $tpl_lastmodified, $tpl_id); + $sql = sprintf("UPDATE %s SET tpl_tplset = %s, tpl_file = %s, tpl_desc = %s, tpl_lastimported = %u, tpl_lastmodified = %u WHERE tpl_id = %u", $this->db->prefix('tplfile'), $tpl_tplset, $tpl_file, $tpl_desc, $tpl_lastimported, $tpl_lastmodified, $tpl_id); if (!$this->db->query($sql)) { return false; } if (isset($tpl_source) && $tpl_source != '') { - $sql = sprintf("UPDATE %s SET tpl_source = %s WHERE tpl_id = %u", $this->db->prefix('tplsource'), $this->db->quoteString($tpl_source), $tpl_id); + $sql = sprintf("UPDATE %s SET tpl_source = %s WHERE tpl_id = %u", $this->db->prefix('tplsource'), $tpl_source, $tpl_id); if (!$this->db->query($sql)) { return false; } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/module.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/module.php 2012-12-06 04:04:15 UTC (rev 10326) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/class/module.php 2012-12-06 14:57:05 UTC (rev 10327) @@ -831,6 +831,7 @@ $tplfile_new->setVar('tpl_type', 'block'); } else { $tplfile_new = $tplfile[0]; + $tplfile_new->setVars($tplfile_new->toArray()); } $tplfile_new->setVar('tpl_source', $content, true); $tplfile_new->setVar('tpl_desc', $block['description'], true); |
From: <du...@us...> - 2012-12-06 04:04:19
|
Revision: 10326 http://sourceforge.net/p/xoops/svn/10326 Author: dugris Date: 2012-12-06 04:04:15 +0000 (Thu, 06 Dec 2012) Log Message: ----------- replace $form->render() with $form->display() Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/edituser.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/system_search.html XoopsCore/branches/2.6.x/2.6.0/htdocs/register.php XoopsCore/branches/2.6.x/2.6.0/htdocs/search.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/edituser.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/edituser.php 2012-12-06 02:19:25 UTC (rev 10325) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/edituser.php 2012-12-06 04:04:15 UTC (rev 10326) @@ -236,7 +236,7 @@ if ($xoopsConfigUser['allow_chgmail'] == 1) { $form->setRequired($email_text); } - $form->render(false); + $form->display(); $xoops->footer(); } @@ -260,7 +260,7 @@ $form->addElement(new XoopsFormHidden('op', 'avatarupload')); $form->addElement(new XoopsFormHidden('uid', $xoops->user->getVar('uid'))); $form->addElement(new XoopsFormButton('', 'submit', _SUBMIT, 'submit')); - $form->render(false); + $form->display(); } $avatar_handler = $xoops->getHandlerAvatar(); $form2 = new XoopsThemeForm(_US_CHOOSEAVT, 'uploadavatar', 'edituser.php', 'post', true); @@ -278,7 +278,7 @@ $form2->addElement(new XoopsFormHidden('uid', $xoops->user->getVar('uid'))); $form2->addElement(new XoopsFormHidden('op', 'avatarchoose')); $form2->addElement(new XoopsFormButton('', 'submit2', _SUBMIT, 'submit')); - $form2->render(false); + $form2->display(); $xoops->footer(); } Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/system_search.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/system_search.html 2012-12-06 02:19:25 UTC (rev 10325) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/system/templates/system_search.html 2012-12-06 04:04:15 UTC (rev 10326) @@ -76,7 +76,4 @@ <{$smarty.const._SR_NOMATCH}> </div> <{/if}> -</fieldset> - -<!-- Display form --> -<{includeq file="module:system|system_form.html"}> +</fieldset> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/register.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/register.php 2012-12-06 02:19:25 UTC (rev 10325) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/register.php 2012-12-06 04:04:15 UTC (rev 10326) @@ -82,7 +82,7 @@ } else { echo "<span class='red'>$stop</span>"; include $xoops->path('include/registerform.php'); - $reg_form->render(false); + $reg_form->display(); } $xoops->footer(); break; @@ -188,7 +188,7 @@ } else { echo "<span class='red bold'>{$stop}</span>"; include $xoops->path('include/registerform.php'); - $reg_form->render(false); + $reg_form->display(); } $xoops->footer(); break; @@ -250,7 +250,7 @@ $xoops->theme->addMeta('meta', 'keywords', _US_USERREG . ", " . _US_NICKNAME); // FIXME! $xoops->theme->addMeta('meta', 'description', strip_tags($xoopsConfigUser['reg_disclaimer'])); include $xoops->path('include/registerform.php'); - $reg_form->render(false); + $reg_form->display(); $xoops->footer(); break; } \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/search.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/search.php 2012-12-06 02:19:25 UTC (rev 10325) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/search.php 2012-12-06 04:04:15 UTC (rev 10326) @@ -106,7 +106,7 @@ if ($action == 'search') { $xoops->header(); include $xoops->path('include/searchform.php'); - $search_form->render(false); + $search_form->display(); $xoops->footer(); exit; } @@ -139,6 +139,7 @@ $queries_pattern[] = '~(' . $myts->addSlashes($query) . ')~sUi'; } } + switch ($action) { case "results": $module_handler = $xoops->getHandlerModule(); @@ -206,7 +207,7 @@ } $xoops->tpl->assign('modules', $modules_result); include $xoops->path('include/searchform.php'); - $search_form->render(); + $search_form->display(); break; case "showall": |
From: <du...@us...> - 2012-12-06 02:19:28
|
Revision: 10325 http://sourceforge.net/p/xoops/svn/10325 Author: dugris Date: 2012-12-06 02:19:25 +0000 (Thu, 06 Dec 2012) Log Message: ----------- replace global with xoops class Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/index.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/index.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/index.php 2012-12-06 01:25:09 UTC (rev 10324) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/admin/index.php 2012-12-06 02:19:25 UTC (rev 10325) @@ -22,7 +22,7 @@ switch ($op) { case 'save': - if (!$GLOBALS['xoopsSecurity']->check()) { + if (!$xoops->security->check()) { $xoops->redirect('index.php', 5, implode(',', $GLOBALS['xoopsSecurity']->getErrors())); } if ($type == 'config') { |
From: <du...@us...> - 2012-12-06 01:25:12
|
Revision: 10324 http://sourceforge.net/p/xoops/svn/10324 Author: dugris Date: 2012-12-06 01:25:09 +0000 (Thu, 06 Dec 2012) Log Message: ----------- clean xoops_version.php remove templates in xlanguage fix css Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css/help.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/xoops_version.php XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css/help.css XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/blocks/xlanguage_block.html XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/xoops_version.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css/help.css =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css/help.css 2012-12-05 19:49:43 UTC (rev 10323) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/css/help.css 2012-12-06 01:25:09 UTC (rev 10324) @@ -41,5 +41,4 @@ .help-description { width: 100%; - } \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/xoops_version.php 2012-12-05 19:49:43 UTC (rev 10323) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xcaptcha/xoops_version.php 2012-12-06 01:25:09 UTC (rev 10324) @@ -30,7 +30,6 @@ $modversion['image'] = 'images/xcaptcha_logo.png'; $modversion['dirname'] = 'xcaptcha'; - //about $modversion['release_date'] = '2012/10/01'; $modversion['module_website_url'] = 'dugris.xoofoo.org'; @@ -48,12 +47,9 @@ $modversion['paypal']['currency_code'] = 'EUR'; // Admin menu -// Set to 1 if you want to display menu generated by system module $modversion['system_menu'] = 1; -/* - Manage extension - */ +// Manage extension $modversion['extension'] = 1; $modversion['extension_module'][] = 'system'; Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css/help.css =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css/help.css 2012-12-05 19:49:43 UTC (rev 10323) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/css/help.css 2012-12-06 01:25:09 UTC (rev 10324) @@ -16,7 +16,7 @@ } .help-item { margin-bottom: 20px; - display: blockj; + display: block; } .help-title { width: 80%; @@ -41,5 +41,4 @@ .help-description { width: 100%; - } \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/blocks/xlanguage_block.html =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/blocks/xlanguage_block.html 2012-12-05 19:49:43 UTC (rev 10323) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/templates/blocks/xlanguage_block.html 2012-12-06 01:25:09 UTC (rev 10324) @@ -1,13 +1,13 @@ <link rel="stylesheet" href="<{xoImgUrl modules/xlanguage/css/block.css}>" type="text/css" media="screen" /> <{if $block.display == "text"}> - <{include file="db:blocks/xlanguage_block_text.html"}> + <{include file="block:xlanguage|xlanguage_block_text.html"}> <{elseif $block.display == "select"}> - <{include file="db:blocks/xlanguage_block_select.html"}> + <{include file="block:xlanguage|xlanguage_block_select.html"}> <{elseif $block.display == "jquery"}> - <{include file="db:blocks/xlanguage_block_jquery.html"}> + <{include file="block:xlanguage|xlanguage_block_jquery.html"}> <{elseif $block.display == "bootstrap"}> - <{include file="db:blocks/xlanguage_block_bootstrap.html"}> + <{include file="block:xlanguage|xlanguage_block_bootstrap.html"}> <{else}> - <{include file="db:blocks/xlanguage_block_images.html"}> + <{include file="block:xlanguage|xlanguage_block_images.html"}> <{/if}> \ No newline at end of file Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/xoops_version.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/xoops_version.php 2012-12-05 19:49:43 UTC (rev 10323) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/modules/xlanguage/xoops_version.php 2012-12-06 01:25:09 UTC (rev 10324) @@ -47,12 +47,9 @@ $modversion['paypal']['currency_code'] = 'EUR'; // Admin menu -// Set to 1 if you want to display menu generated by system module $modversion['system_menu'] = 1; -/* - Manage extension - */ +// Manage extension $modversion['extension'] = 1; $modversion['extension_module'][] = 'system'; @@ -78,27 +75,6 @@ $modversion['blocks'][1]['options'] = 'images| |5'; $modversion['blocks'][1]['template'] = 'xlanguage_block.html'; -// Blocks templates -$cpt = 1; -$modversion['templates'][$cpt]['file'] = 'blocks/xlanguage_block_text.html'; -$modversion['templates'][$cpt]['description'] = ''; - -$cpt++; -$modversion['templates'][$cpt]['file'] = 'blocks/xlanguage_block_images.html'; -$modversion['templates'][$cpt]['description'] = ''; - -$cpt++; -$modversion['templates'][$cpt]['file'] = 'blocks/xlanguage_block_select.html'; -$modversion['templates'][$cpt]['description'] = ''; - -$cpt++; -$modversion['templates'][$cpt]['file'] = 'blocks/xlanguage_block_jquery.html'; -$modversion['templates'][$cpt]['description'] = ''; - -$cpt++; -$modversion['templates'][$cpt]['file'] = 'blocks/xlanguage_block_bootstrap.html'; -$modversion['templates'][$cpt]['description'] = ''; - // Config XoopsLoad::load('xoopslists'); |
From: <tr...@us...> - 2012-12-05 19:49:46
|
Revision: 10323 http://sourceforge.net/p/xoops/svn/10323 Author: trabis Date: 2012-12-05 19:49:43 +0000 (Wed, 05 Dec 2012) Log Message: ----------- Fixing bug :: Cannot use a module in front page Making File green (code inspection) Modified Paths: -------------- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops.php Modified: XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops.php =================================================================== --- XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops.php 2012-12-05 19:28:19 UTC (rev 10322) +++ XoopsCore/branches/2.6.x/2.6.0/htdocs/xoops_lib/Xoops.php 2012-12-05 19:49:43 UTC (rev 10323) @@ -251,7 +251,7 @@ * @param string $path * @param string $error_type * - * @return string|false + * @return string|bool */ public function pathExists($path, $error_type) { @@ -410,7 +410,8 @@ // Temporary solution for start page redirection if (defined("XOOPS_STARTPAGE_REDIRECTED")) { - $this->theme->headContent(null, "<base href='" . XOOPS_URL . '/modules/' . $this->getConfig('startpage') . "/' />", null, null); + $smarty = $repeat = null; + $this->theme->headContent(null, "<base href='" . XOOPS_URL . '/modules/' . $this->getConfig('startpage') . "/' />", $smarty, $repeat); } if (@is_object($this->theme->plugins['XoopsThemeBlocksPlugin'])) { @@ -1764,9 +1765,10 @@ if ($count > 0) { $xoopsTpl = new XoopsTpl(); $xoopsTpl->caching = 2; - for ($i = 0; $i < $count; $i++) { - if ($block_arr[$i]->getVar('template') != '') { - $xoopsTpl->clear_cache(XOOPS_ROOT_PATH . "/modules/" . $block_arr[$i]->getVar('dirname') . "/templates/blocks/" . $block_arr[$i]->getVar('template'), 'blk_' . $block_arr[$i]->getVar('bid')); + /* @var XoopsBlock $block */ + foreach($block_arr as $block) { + if ($block->getVar('template') != '') { + $xoopsTpl->clear_cache(XOOPS_ROOT_PATH . "/modules/" . $block->getVar('dirname') . "/templates/blocks/" . $block->getVar('template'), 'blk_' . $block->getVar('bid')); } } } |