From minahito @ users.sourceforge.jp Fri May 27 17:33:55 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 27 May 2005 17:33:55 +0900 Subject: [Xoops-cvslog 1] CVS update: xoops2jp/html/modules/news/admin Message-ID: <20050527083355.3307D2AC00E@users.sourceforge.jp> Date: Friday May 27, 2005 @ 17:33 Author: minahito Update of /cvsroot/xoops/xoops2jp/html/modules/news/admin In directory sf-cvs:/tmp/cvs-serv10130/html/modules/news/admin Modified Files: Tag: xoops2_0_9_4_jp-branch index.php Log Message: bug fix #4135. =================================================================== File: no file index.php Status: Needs Checkout Working revision: 1.2.6.5 Fri May 27 08:33:54 2005 Repository revision: 1.2.6.5 /cvsroot/xoops/xoops2jp/html/modules/news/admin/index.php,v Sticky Tag: xoops2_0_9_4_jp-branch (branch: 1.2.6) Existing Tags: xoops2_0_10_jp_beta (revision: 1.2.6.4) xoops2_1_0_jp-branch (branch: 1.2.8) xoops2_0_9_4_jp-branch (branch: 1.2.6) xoops2_0_9_3-branch (branch: 1.2.4) xoops2_0_10-branch (branch: 1.2.2) xoops2_0_9_2 (revision: 1.2) From onokazu @ users.sourceforge.jp Fri May 27 20:05:05 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Fri, 27 May 2005 20:05:05 +0900 Subject: [Xoops-cvslog 2] CVS update: xoops2jp/html/include Message-ID: <20050527110505.4CE812AC00E@users.sourceforge.jp> Date: Friday May 27, 2005 @ 20:05 Author: onokazu Update of /cvsroot/xoops/xoops2jp/html/include In directory sf-cvs:/tmp/cvs-serv18837/html/include Modified Files: Tag: xoops2_0_9_4_jp-branch functions.php Log Message: Fixed invalid rss time format =================================================================== File: no file functions.php Status: Needs Checkout Working revision: 1.2.6.9 Fri May 27 11:05:05 2005 Repository revision: 1.2.6.9 /cvsroot/xoops/xoops2jp/html/include/functions.php,v Sticky Tag: xoops2_0_9_4_jp-branch (branch: 1.2.6) Existing Tags: xoops2_0_10_jp_beta (revision: 1.2.6.8) xoops2_1_0_jp-branch (branch: 1.2.8) xoops2_0_9_4_jp-branch (branch: 1.2.6) xoops2_0_9_3-branch (branch: 1.2.4) xoops2_0_10-branch (branch: 1.2.2) xoops2_0_9_2 (revision: 1.2) xoopsjp2_0_7_1 (revision: 1.1) From minahito @ users.sourceforge.jp Fri May 27 21:24:50 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 27 May 2005 21:24:50 +0900 Subject: [Xoops-cvslog 3] CVS update: xoops2jp/html/class Message-ID: <20050527122450.E49F82AC00E@users.sourceforge.jp> Date: Friday May 27, 2005 @ 21:24 Author: minahito Update of /cvsroot/xoops/xoops2jp/html/class In directory sf-cvs:/tmp/cvs-serv7199/html/class Modified Files: Tag: xoops2_0_9_4_jp-branch token.php Log Message: add comment. =================================================================== File: no file token.php Status: Needs Checkout Working revision: 1.1.2.7 Fri May 27 12:24:50 2005 Repository revision: 1.1.2.7 /cvsroot/xoops/xoops2jp/html/class/Attic/token.php,v Sticky Tag: xoops2_0_9_4_jp-branch (branch: 1.1.2) Existing Tags: xoops2_0_10_jp_beta (revision: 1.1.2.6) xoops2_0_9_4_jp-branch (branch: 1.1.2) From onokazu @ users.sourceforge.jp Fri May 27 21:30:55 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Fri, 27 May 2005 21:30:55 +0900 Subject: [Xoops-cvslog 4] CVS update: CVSROOT Message-ID: <20050527123055.D45682AC00E@users.sourceforge.jp> Date: Friday May 27, 2005 @ 21:30 Author: onokazu Update of /cvsroot/xoops/CVSROOT In directory sf-cvs:/tmp/cvs-serv8323 Modified Files: loginfo Log Message: update =================================================================== File: loginfo Status: Up-to-date Working revision: 1.10 Fri May 27 12:30:35 2005 Repository revision: 1.10 /cvsroot/xoops/CVSROOT/loginfo,v Existing Tags: No Tags Exist From onokazu @ users.sourceforge.jp Fri May 27 21:32:07 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Fri, 27 May 2005 21:32:07 +0900 Subject: [Xoops-cvslog 5] CVS update: CVSROOT Message-ID: <20050527123207.20B552AC00E@users.sourceforge.jp> From onokazu @ users.sourceforge.jp Fri May 27 21:38:55 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Fri, 27 May 2005 21:38:55 +0900 Subject: [Xoops-cvslog 6] CVS update: xoops2jp/html/modules/system/admin/smilies Message-ID: <20050527123855.BC1432AC00E@users.sourceforge.jp> From onokazu @ users.sourceforge.jp Fri May 27 21:40:42 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Fri, 27 May 2005 21:40:42 +0900 Subject: [Xoops-cvslog 7] CVS update: CVSROOT Message-ID: <20050527124042.809942AC018@users.sourceforge.jp> From onokazu @ users.sourceforge.jp Fri May 27 21:41:19 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Fri, 27 May 2005 21:41:19 +0900 Subject: [Xoops-cvslog 8] CVS update: CVSROOT Message-ID: <20050527124119.A8C012AC00E@users.sourceforge.jp> Index: CVSROOT/loginfo diff -u CVSROOT/loginfo:1.11 CVSROOT/loginfo:1.12 --- CVSROOT/loginfo:1.11 Fri May 27 21:32:06 2005 +++ CVSROOT/loginfo Fri May 27 21:41:19 2005 @@ -19,5 +19,6 @@ # s = file name # V = old version number (pre-checkin) # v = new version number (post-checkin) +# #DEFAULT /usr/local/bin/cvs-commitmail %s -f $CVSROOT/CVSROOT/commitlog -m xoops-cvslog @ lists.sourceforge.jp ALL /usr/local/bin/cvs-commitmail -d -m xoops-cvslog @ lists.sourceforge.jp "%p %{sVv}" \ No newline at end of file From onokazu @ users.sourceforge.jp Fri May 27 21:46:41 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Fri, 27 May 2005 21:46:41 +0900 Subject: [Xoops-cvslog 9] CVS update: CVSROOT Message-ID: <20050527124641.43FE32AC00E@users.sourceforge.jp> Index: CVSROOT/loginfo diff -u CVSROOT/loginfo:1.12 CVSROOT/loginfo:1.13 --- CVSROOT/loginfo:1.12 Fri May 27 21:41:19 2005 +++ CVSROOT/loginfo Fri May 27 21:46:41 2005 @@ -20,5 +20,6 @@ # V = old version number (pre-checkin) # v = new version number (post-checkin) # +# #DEFAULT /usr/local/bin/cvs-commitmail %s -f $CVSROOT/CVSROOT/commitlog -m xoops-cvslog @ lists.sourceforge.jp ALL /usr/local/bin/cvs-commitmail -d -m xoops-cvslog @ lists.sourceforge.jp "%p %{sVv}" \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri May 27 22:26:36 2005 From: nobunobu @ users.sourceforge.jp (Nobuki Kowa) Date: Fri, 27 May 2005 22:26:36 +0900 Subject: [xoops-cvslog 10] CVS update: xoops2jp/html/modules/system/admin/groups Message-ID: <20050527132636.D4BE12AC00E@users.sourceforge.jp> Index: xoops2jp/html/modules/system/admin/groups/main.php diff -u xoops2jp/html/modules/system/admin/groups/main.php:1.2.6.3 xoops2jp/html/modules/system/admin/groups/main.php:1.2.6.4 --- xoops2jp/html/modules/system/admin/groups/main.php:1.2.6.3 Fri May 13 20:02:07 2005 +++ xoops2jp/html/modules/system/admin/groups/main.php Fri May 27 22:26:36 2005 @@ -1,5 +1,5 @@ 'groups', 'op' => 'delConf', 'g_id' => $g_id), 'admin.php', _AM_AREUSUREDEL); + $member_handler =& xoops_gethandler('member'); + $group =& $member_handler->getGroup($g_id); + xoops_token_confirm(array('fct' => 'groups', 'op' => 'delConf', 'g_id' => $g_id), 'admin.php', sprintf(_AM_AREUSUREDEL,$group->getVar('name'))); xoops_cp_footer(); break; case "delConf": From onokazu @ users.sourceforge.jp Fri May 27 23:06:29 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Fri, 27 May 2005 23:06:29 +0900 Subject: [xoops-cvslog 11] CVS update: xoops2jp/html/class Message-ID: <20050527140629.E5D762AC01C@users.sourceforge.jp> Index: xoops2jp/html/class/uploader.php diff -u xoops2jp/html/class/uploader.php:1.2.6.3 xoops2jp/html/class/uploader.php:1.2.6.4 --- xoops2jp/html/class/uploader.php:1.2.6.3 Fri Apr 22 13:35:29 2005 +++ xoops2jp/html/class/uploader.php Fri May 27 23:06:29 2005 @@ -1,5 +1,5 @@ checkMaxHeight()) { $this->setErrors(sprintf('File height must be smaller than %u', $this->maxHeight)); } - if (!$this->checkFileType()) { + if (!$this->checkMimeType()) { $this->setErrors("Invalid file type"); } if (count($this->errors) > 0) { @@ -377,7 +377,7 @@ * * @return bool **/ - function checkFileType() + function checkMimeType() { if (!empty($this->allowedExtensions)) { if (!in_array($this->ext, $this->allowedExtensions)) { From onokazu @ users.sourceforge.jp Fri May 27 23:16:48 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Fri, 27 May 2005 23:16:48 +0900 Subject: [xoops-cvslog 12] CVS update: xoops2jp/html Message-ID: <20050527141648.505E92AC00E@users.sourceforge.jp> Index: xoops2jp/html/admin.php diff -u xoops2jp/html/admin.php:1.2.6.4 xoops2jp/html/admin.php:1.2.6.5 --- xoops2jp/html/admin.php:1.2.6.4 Thu May 26 19:56:47 2005 +++ xoops2jp/html/admin.php Fri May 27 23:16:48 2005 @@ -1,5 +1,5 @@ '; } - if (function_exists('mb_convert_encoding') && !empty($_GET['xoopsorgnews'])) { +/* if (function_exists('mb_convert_encoding') && !empty($_GET['xoopsorgnews'])) { $rssurl = 'http://jp.xoops.org/backend.php'; $rssfile = XOOPS_CACHE_PATH.'/adminnews.xml'; $rssdata = ''; @@ -117,7 +117,7 @@ echo $rss2parser->getErrors(); } } - } + }*/ xoops_cp_footer(); break; case 'generate': From onokazu @ users.sourceforge.jp Fri May 27 23:16:48 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Fri, 27 May 2005 23:16:48 +0900 Subject: [xoops-cvslog 13] CVS update: xoops2jp/html/include Message-ID: <20050527141648.944B22AC01C@users.sourceforge.jp> Index: xoops2jp/html/include/cp_functions.php diff -u xoops2jp/html/include/cp_functions.php:1.2.6.1 xoops2jp/html/include/cp_functions.php:1.2.6.2 --- xoops2jp/html/include/cp_functions.php:1.2.6.1 Thu Mar 31 00:49:04 2005 +++ xoops2jp/html/include/cp_functions.php Fri May 27 23:16:48 2005 @@ -1,5 +1,5 @@ -  "._CPHOME." | XOOPS News +  "._CPHOME." "._LOGOUT." | "._YOURHOME."   From onokazu @ users.sourceforge.jp Fri May 27 23:41:17 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Fri, 27 May 2005 23:41:17 +0900 Subject: [xoops-cvslog 13] CVS update: xoops2jp/html/include Message-ID: <20050527144117.44DCF2AC00E@users.sourceforge.jp> Index: xoops2jp/html/include/version.php diff -u xoops2jp/html/include/version.php:1.4.6.2 xoops2jp/html/include/version.php:1.4.6.3 --- xoops2jp/html/include/version.php:1.4.6.2 Tue May 17 23:45:13 2005 +++ xoops2jp/html/include/version.php Fri May 27 23:41:17 2005 @@ -1,4 +1,4 @@ \ No newline at end of file From onokazu @ users.sourceforge.jp Sat May 28 08:03:33 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Sat, 28 May 2005 08:03:33 +0900 Subject: [xoops-cvslog 14] CVS update: xoops2jp/html/class Message-ID: <20050527230333.99A6E2AC01A@users.sourceforge.jp> Index: xoops2jp/html/class/criteria.php diff -u xoops2jp/html/class/criteria.php:1.2 xoops2jp/html/class/criteria.php:1.2.6.1 --- xoops2jp/html/class/criteria.php:1.2 Fri Mar 18 21:51:55 2005 +++ xoops2jp/html/class/criteria.php Sat May 28 08:03:33 2005 @@ -1,5 +1,5 @@ - * @copyright copyright (c) 2000-2003 XOOPS.org + * + * @author Kazumi Ono + * @copyright copyright (c) 2000-2003 XOOPS.org */ /** * A criteria (grammar?) for a database query. - * + * * Abstract base class should never be instantiated directly. - * + * * @abstract - * + * * @package kernel * @subpackage database - * - * @author Kazumi Ono - * @copyright copyright (c) 2000-2003 XOOPS.org + * + * @author Kazumi Ono + * @copyright copyright (c) 2000-2003 XOOPS.org */ class CriteriaElement { - /** - * Sort order - * @var string - */ - var $order = 'ASC'; - /** - * @var string + * Sort order + * @var string + */ + var $order = 'ASC'; + + /** + * @var string */ var $sort = ''; /** * Number of records to retrieve - * @var int + * @var int */ var $limit = 0; - + /** * Offset of first record - * @var int + * @var int */ var $start = 0; - + /** - * @var string + * @var string */ var $groupby = ''; @@ -106,8 +106,8 @@ /**#@+ * Accessor */ - /** - * @param string $sort + /** + * @param string $sort */ function setSort($sort) { @@ -115,7 +115,7 @@ } /** - * @return string + * @return string */ function getSort() { @@ -123,7 +123,7 @@ } /** - * @param string $order + * @param string $order */ function setOrder($order) { @@ -133,7 +133,7 @@ } /** - * @return string + * @return string */ function getOrder() { @@ -141,7 +141,7 @@ } /** - * @param int $limit + * @param int $limit */ function setLimit($limit=0) { @@ -149,7 +149,7 @@ } /** - * @return int + * @return int */ function getLimit() { @@ -157,7 +157,7 @@ } /** - * @param int $start + * @param int $start */ function setStart($start=0) { @@ -165,7 +165,7 @@ } /** - * @return int + * @return int */ function getStart() { @@ -173,14 +173,14 @@ } /** - * @param string $group + * @param string $group */ function setGroupby($group){ $this->groupby = $group; } /** - * @return string + * @return string */ function getGroupby(){ return ' GROUP BY '.$this->groupby; @@ -189,32 +189,32 @@ } /** - * Collection of multiple {@link CriteriaElement}s - * + * Collection of multiple {@link CriteriaElement}s + * * @package kernel * @subpackage database - * - * @author Kazumi Ono - * @copyright copyright (c) 2000-2003 XOOPS.org + * + * @author Kazumi Ono + * @copyright copyright (c) 2000-2003 XOOPS.org */ class CriteriaCompo extends CriteriaElement { /** * The elements of the collection - * @var array Array of {@link CriteriaElement} objects + * @var array Array of {@link CriteriaElement} objects */ var $criteriaElements = array(); /** * Conditions - * @var array + * @var array */ var $conditions = array(); /** * Constructor - * + * * @param object $ele * @param string $condition **/ @@ -227,10 +227,10 @@ /** * Add an element - * + * * @param object &$criteriaElement * @param string $condition - * + * * @return object reference to this collection **/ function &add(&$criteriaElement, $condition='AND') @@ -242,8 +242,8 @@ /** * Make the criteria into a query string - * - * @return string + * + * @return string */ function render() { @@ -261,8 +261,8 @@ /** * Make the criteria into a SQL "WHERE" clause - * - * @return string + * + * @return string */ function renderWhere() { @@ -299,35 +299,35 @@ /** * A single criteria - * + * * @package kernel * @subpackage database - * - * @author Kazumi Ono - * @copyright copyright (c) 2000-2003 XOOPS.org + * + * @author Kazumi Ono + * @copyright copyright (c) 2000-2003 XOOPS.org */ class Criteria extends CriteriaElement { /** - * @var string + * @var string */ - var $prefix; - var $function; + var $prefix; + var $function; var $column; var $operator; var $value; /** * Constructor - * + * * @param string $column * @param string $value * @param string $operator **/ function Criteria($column, $value='', $operator='=', $prefix = '', $function = '') { - $this->prefix = $prefix; - $this->function = $function; + $this->prefix = $prefix; + $this->function = $function; $this->column = $column; $this->value = $value; $this->operator = $operator; @@ -335,24 +335,24 @@ /** * Make a sql condition string - * + * * @return string **/ function render() { - if ( is_numeric($this->value) || strtoupper($this->operator) == 'IN') { - $value = $this->value; - } else { - if ( '' === ($value = trim($this->value)) ) { - return ''; - } - if ( (substr($value, 0, 1) != '`') && (substr($value, -1) != '`') ) { - $value = "'$value'"; - } - } - $clause = (!empty($this->prefix) ? "{$this->prefix}." : "") . $this->column; - if ( !empty($this->function) ) { - $clause = sprintf($this->function, $clause); - } + if (is_numeric($this->value) || in_array(strtoupper($this->operator), array('IN', 'NOT IN'))) { + $value = $this->value; + } else { + if ( '' === ($value = trim($this->value)) ) { + return ''; + } + if ( (substr($value, 0, 1) != '`') && (substr($value, -1) != '`') ) { + $value = "'$value'"; + } + } + $clause = (!empty($this->prefix) ? "{$this->prefix}." : "") . $this->column; + if ( !empty($this->function) ) { + $clause = sprintf($this->function, $clause); + } $clause .= " {$this->operator} $value"; return $clause; } @@ -370,11 +370,11 @@ /** * Make a SQL "WHERE" clause - * - * @return string + * + * @return string */ function renderWhere() { - $cond = $this->render(); + $cond = $this->render(); return empty($cond) ? '' : "WHERE $cond"; } } From onokazu @ users.sourceforge.jp Sat May 28 08:22:27 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Sat, 28 May 2005 08:22:27 +0900 Subject: [xoops-cvslog 15] CVS update: xoops2jp/docs Message-ID: <20050527232227.0BEC02AC01A@users.sourceforge.jp> Index: xoops2jp/docs/CHANGES.txt diff -u xoops2jp/docs/CHANGES.txt:1.2.6.3 xoops2jp/docs/CHANGES.txt:1.2.6.4 --- xoops2jp/docs/CHANGES.txt:1.2.6.3 Wed May 18 07:48:31 2005 +++ xoops2jp/docs/CHANGES.txt Sat May 28 08:22:26 2005 @@ -1,6 +1,24 @@ XOOPS v2 Changelog ============================ +2005/ 5/28: Version 2.0.10 JP RC1 +=============================== +- Temporarily disabled showing XOOPS News on admin top page +- Changed the name of XoopsMediaUploader::checkFileType() to its original XoopsMediaUploader::checkFileType() to maintain compatibility +- Fixed group name not showing in group admin error message +- Fixed typo in /kernel/object.php, modules/system/admin/smiles/main.php, include/xoopscodes.php, class/xoopsform/dhtmltextarea.php +- Changed token lifetime from 900 seconds to unlimited +- Fixed invalid timestamp format in RSS news feed +- Removed invalid links to unpublished news article +- Fixed link to preference settings not being displayed in newbb admin menu +- Fixed error messages being displayed when pointing to non-existent image file in image.php +- Fixed ticket error in group admin page when users over 200 in a group +- Fixed new user being added to all groups when created from the admin page +- Fixed fatal error message being displayed when trying to browse uninstalled modules +- Fixed file not found error in zipdownloader.php +- Added support for 'NOT IN' type queries in Criteria class + + 2005/ 5/18: Version 2.0.10 JP Beta =============================== - Implemented new token system for validating form origination and increased protection against CSRF From onokazu @ users.sourceforge.jp Sat May 28 08:42:07 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Sat, 28 May 2005 08:42:07 +0900 Subject: [xoops-cvslog 16] CVS update: xoops2jp/html Message-ID: <20050527234207.6CB642AC021@users.sourceforge.jp> Index: xoops2jp/html/header.php diff -u xoops2jp/html/header.php:1.2.6.3 xoops2jp/html/header.php:1.2.6.4 --- xoops2jp/html/header.php:1.2.6.3 Thu May 26 20:04:11 2005 +++ xoops2jp/html/header.php Sat May 28 08:42:07 2005 @@ -1,5 +1,5 @@ assign(array('xoops_isuser' => true, 'xoops_userid' => $xoopsUser->getVar('uid'), 'xoops_uname' => $xoopsUser->getVar('uname'), 'xoops_isadmin' => $xoopsUserIsAdmin)); if (!empty($xoopsModule)) { // set page title - $xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name')); + $xoopsTpl->assign(array('xoops_pagetitle' => $xoopsModule->getVar('name'), 'xoops_modulename' => $xoopsModule->getVar('name'), 'xoops_moduledir' => $xoopsModule->getVar('dirname'))); if (preg_match("/index\.php$/i", xoops_getenv('PHP_SELF')) && $xoopsConfig['startpage'] == $xoopsModule->getVar('dirname')) { $block_arr =& $xoopsblock->getAllByGroupModule($xoopsUser->getGroups(), $xoopsModule->getVar('mid'), true, XOOPS_BLOCK_VISIBLE); } else { @@ -109,7 +109,7 @@ $xoopsTpl->assign(array('xoops_isuser' => false, 'xoops_isadmin' => false)); if (!empty($xoopsModule)) { // set page title - $xoopsTpl->assign('xoops_pagetitle', $xoopsModule->getVar('name')); + $xoopsTpl->assign(array('xoops_pagetitle' => $xoopsModule->getVar('name'), 'xoops_modulename' => $xoopsModule->getVar('name'), 'xoops_moduledir' => $xoopsModule->getVar('dirname'))); if (preg_match("/index\.php$/i", xoops_getenv('PHP_SELF')) && $xoopsConfig['startpage'] == $xoopsModule->getVar('dirname')) { $block_arr =& $xoopsblock->getAllByGroupModule(XOOPS_GROUP_ANONYMOUS, $xoopsModule->getVar('mid'), true, XOOPS_BLOCK_VISIBLE); } else { @@ -169,35 +169,35 @@ $xoopsTpl->assign('xoops_showlblock', 1); $show_lblock = 1; } - $xoopsTpl->append('xoops_lblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent)); + $xoopsTpl->append('xoops_lblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight'))); break; case XOOPS_CENTERBLOCK_LEFT: if (!isset($show_cblock)) { $xoopsTpl->assign('xoops_showcblock', 1); $show_cblock = 1; } - $xoopsTpl->append('xoops_clblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent)); + $xoopsTpl->append('xoops_clblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight'))); break; case XOOPS_CENTERBLOCK_RIGHT: if (!isset($show_cblock)) { $xoopsTpl->assign('xoops_showcblock', 1); $show_cblock = 1; } - $xoopsTpl->append('xoops_crblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent)); + $xoopsTpl->append('xoops_crblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight'))); break; case XOOPS_CENTERBLOCK_CENTER: if (!isset($show_cblock)) { $xoopsTpl->assign('xoops_showcblock', 1); $show_cblock = 1; } - $xoopsTpl->append('xoops_ccblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent)); + $xoopsTpl->append('xoops_ccblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight'))); break; case XOOPS_SIDEBLOCK_RIGHT: if (!isset($show_rblock)) { $xoopsTpl->assign('xoops_showrblock', 1); $show_rblock = 1; } - $xoopsTpl->append('xoops_rblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent)); + $xoopsTpl->append('xoops_rblocks', array('title' => $block_arr[$i]->getVar('title'), 'content' => $bcontent, 'weight' => $block_arr[$i]->getVar('weight'))); break; } unset($bcontent); From onokazu @ users.sourceforge.jp Sat May 28 08:44:15 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Sat, 28 May 2005 08:44:15 +0900 Subject: [xoops-cvslog 17] CVS update: xoops2jp/docs Message-ID: <20050527234415.80B002AC01A@users.sourceforge.jp> Index: xoops2jp/docs/CHANGES.txt diff -u xoops2jp/docs/CHANGES.txt:1.2.6.4 xoops2jp/docs/CHANGES.txt:1.2.6.5 --- xoops2jp/docs/CHANGES.txt:1.2.6.4 Sat May 28 08:22:26 2005 +++ xoops2jp/docs/CHANGES.txt Sat May 28 08:44:15 2005 @@ -17,6 +17,8 @@ - Fixed fatal error message being displayed when trying to browse uninstalled modules - Fixed file not found error in zipdownloader.php - Added support for 'NOT IN' type queries in Criteria class +- Added <{$xoops_modulename}> <{$xoops_moduledir}> template vars +- Added block weight value to each block template var 2005/ 5/18: Version 2.0.10 JP Beta From onokazu @ users.sourceforge.jp Mon May 30 19:31:28 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 19:31:28 +0900 Subject: [xoops-cvslog 18] CVS update: xoops2jp/html Message-ID: <20050530103128.F0F5E2AC011@users.sourceforge.jp> Index: xoops2jp/html/banners.php diff -u xoops2jp/html/banners.php:1.2.6.4 xoops2jp/html/banners.php:1.2.6.5 --- xoops2jp/html/banners.php:1.2.6.4 Fri May 13 19:34:22 2005 +++ xoops2jp/html/banners.php Mon May 30 19:31:28 2005 @@ -1,5 +1,5 @@ getHtml(); echo " - +
Please type your client information "; include "footer.php"; @@ -89,7 +89,7 @@ Imp. Left Clicks % Clicks - Functions"; + Functions"; $result = $xoopsDB->query("select bid, imptotal, impmade, clicks, date from ".$xoopsDB->prefix("banner")." where cid=$cid"); while ( list($bid, $imptotal, $impmade, $clicks, $date) = $xoopsDB->fetchRow($result) ) { if ( $impmade == 0 ) { @@ -103,13 +103,13 @@ $left = $imptotal-$impmade; } $token =& XoopsMultiTokenHandler::quickCreate('banner_EmailStats'); - echo "$bid + echo "$bid $impmade $imptotal $left $clicks $percent% - E-mail Stats"; + E-mail Stats"; } echo "

Following are your running Banners in ".htmlspecialchars($xoopsConfig['sitename'])."


"; $result = $xoopsDB->query("select bid, imageurl, clickurl, htmlbanner, htmlcode from ".$xoopsDB->prefix("banner")." where cid=$cid"); From onokazu @ users.sourceforge.jp Mon May 30 19:39:32 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 19:39:32 +0900 Subject: [xoops-cvslog 19] CVS update: xoops2jp/html/include Message-ID: <20050530103932.A05E92AC02C@users.sourceforge.jp> Index: xoops2jp/html/include/cp_functions.php diff -u xoops2jp/html/include/cp_functions.php:1.2.6.2 xoops2jp/html/include/cp_functions.php:1.2.6.3 --- xoops2jp/html/include/cp_functions.php:1.2.6.2 Fri May 27 23:16:48 2005 +++ xoops2jp/html/include/cp_functions.php Mon May 30 19:39:32 2005 @@ -1,5 +1,5 @@ - + - +
 "._CPHOME." "._LOGOUT." | "._YOURHOME."  
@@ -122,7 +122,7 @@ - @@ -422,8 +422,8 @@ @@ -511,7 +511,7 @@ - + - + @@ -776,15 +776,15 @@ echo "\n"; echo "\n"; echo "\n"; - echo "\n"; - echo "\n\n"; + echo "\" />\n"; + echo "\n"; + echo "\n\n"; $last_id = $m['cat_id']; } ?> @@ -811,7 +811,7 @@ +

+

"; foreach ( $admin_mids as $adm ) { if ( !empty($xoops_admin_menu_ft[$adm]) ) { @@ -149,8 +149,8 @@ Index: xoops2jp/html/include/functions.php diff -u xoops2jp/html/include/functions.php:1.2.6.9 xoops2jp/html/include/functions.php:1.2.6.10 --- xoops2jp/html/include/functions.php:1.2.6.9 Fri May 27 20:05:05 2005 +++ xoops2jp/html/include/functions.php Mon May 30 19:39:32 2005 @@ -1,5 +1,5 @@ ' - .'' - .'' - .'' + .'' + .'' + .'' .'' .''; } else { From onokazu @ users.sourceforge.jp Mon May 30 19:45:01 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 19:45:01 +0900 Subject: [xoops-cvslog 20] CVS update: xoops2jp/html/modules/system/admin/banners Message-ID: <20050530104501.993A82AC012@users.sourceforge.jp> Index: xoops2jp/html/modules/system/admin/banners/banners.php diff -u xoops2jp/html/modules/system/admin/banners/banners.php:1.2.6.5 xoops2jp/html/modules/system/admin/banners/banners.php:1.2.6.6 --- xoops2jp/html/modules/system/admin/banners/banners.php:1.2.6.5 Fri May 13 20:00:29 2005 +++ xoops2jp/html/modules/system/admin/banners/banners.php Mon May 30 19:45:01 2005 @@ -1,5 +1,5 @@ "; - echo ""; - echo ""; - echo ""; + echo ""; + echo ""; + echo ""; echo ""; echo ""; } else { @@ -276,9 +276,9 @@ }else{ if(strtolower(substr($imageurl,strrpos($imageurl,".")))==".swf") { echo ""; - echo ""; - echo ""; - echo ""; + echo ""; + echo ""; + echo ""; echo ""; echo ""; } else { @@ -312,9 +312,9 @@ "._AM_CLICKURLT."".htmlspecialchars($clickurl,ENT_QUOTES)."
"._AM_USEHTML; if ($htmlbanner){ - echo " "; + echo " "; }else{ - echo " "; + echo " "; } echo "
@@ -365,9 +365,9 @@ if(strtolower(substr($imageurl,strrpos($imageurl,".")))==".swf") { $bannerobject = $bannerobject .'' - .'' - .'' - .'' + .'' + .'' + .'' .'' .''; } else { @@ -409,7 +409,7 @@ "._AM_CONTMAILT ."
"._AM_CLILOGINT."
"._AM_CLIPASST."
- "._AM_EXTINFO."

+ "._AM_EXTINFO."

From onokazu @ users.sourceforge.jp Mon May 30 19:51:40 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 19:51:40 +0900 Subject: [xoops-cvslog 21] CVS update: xoops2jp/html/modules/system/admin/blocksadmin Message-ID: <20050530105140.35A162AC01B@users.sourceforge.jp> Index: xoops2jp/html/modules/system/admin/blocksadmin/blocksadmin.php diff -u xoops2jp/html/modules/system/admin/blocksadmin/blocksadmin.php:1.2.6.4 xoops2jp/html/modules/system/admin/blocksadmin/blocksadmin.php:1.2.6.5 --- xoops2jp/html/modules/system/admin/blocksadmin/blocksadmin.php:1.2.6.4 Wed Apr 20 00:33:29 2005 +++ xoops2jp/html/modules/system/admin/blocksadmin/blocksadmin.php Mon May 30 19:51:39 2005 @@ -1,5 +1,5 @@ getVar("title"); } $name = $block_arr[$i]->getVar("name"); - echo ""; echo "\n"; $i++; From onokazu @ users.sourceforge.jp Mon May 30 19:51:40 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 19:51:40 +0900 Subject: [xoops-cvslog 23] CVS update: xoops2jp/html/modules/system/admin/users Message-ID: <20050530105140.B1BF22AC01B@users.sourceforge.jp> Index: xoops2jp/html/modules/system/admin/users/users.php diff -u xoops2jp/html/modules/system/admin/users/users.php:1.2.6.3 xoops2jp/html/modules/system/admin/users/users.php:1.2.6.4 --- xoops2jp/html/modules/system/admin/users/users.php:1.2.6.3 Fri May 13 20:04:10 2005 +++ xoops2jp/html/modules/system/admin/users/users.php Mon May 30 19:51:40 2005 @@ -1,5 +1,5 @@ getGroups()); - $token = XoopsMultiTokenHandler::quickCreate('users_synchronize'); + $token = XoopsMultiTokenHandler::quickCreate('users_synchronize'); include XOOPS_ROOT_PATH."/modules/system/admin/users/userform.php"; echo "
"._AM_USERPOST."

\n"; @@ -169,11 +169,11 @@ echo "
"._AM_PTBBTSDIYT."
\n"; echo "\n"; echo $token->getHtml(); - echo "getVar("uid")."\">"; - echo "\n"; - echo "\n"; - echo "\n"; - echo "\n"; + echo "getVar("uid")."\" />"; + echo "\n"; + echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; } else { echo "

"; From onokazu @ users.sourceforge.jp Mon May 30 19:51:40 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 19:51:40 +0900 Subject: [xoops-cvslog 24] CVS update: xoops2jp/html/modules/system/templates/blocks Message-ID: <20050530105140.F0F002AC01F@users.sourceforge.jp> Index: xoops2jp/html/modules/system/templates/blocks/system_block_notification.html diff -u xoops2jp/html/modules/system/templates/blocks/system_block_notification.html:1.1 xoops2jp/html/modules/system/templates/blocks/system_block_notification.html:1.1.6.1 --- xoops2jp/html/modules/system/templates/blocks/system_block_notification.html:1.1 Thu Sep 9 19:03:23 2004 +++ xoops2jp/html/modules/system/templates/blocks/system_block_notification.html Mon May 30 19:51:40 2005 @@ -14,7 +14,7 @@ <{/foreach}> <{/foreach}>

- +
- - + +
Powered by ".XOOPS_VERSION." © 2001-2005 The XOOPS Project
Powered by ".XOOPS_VERSION." © 2001-2005 The XOOPS Project
".$name."".$title."".$module_list2[$block_arr[$i]->getVar('mid')]."--"._YES." "._NO.""._EDIT.""; + echo "
".$name."".$title."".$module_list2[$block_arr[$i]->getVar('mid')]."--"._YES." "._NO.""._EDIT.""; if ($block_arr[$i]->getVar('block_type') != 'S') { echo " "._DELETE.""; } From onokazu @ users.sourceforge.jp Mon May 30 19:51:40 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 19:51:40 +0900 Subject: [xoops-cvslog 22] CVS update: xoops2jp/html/modules/system/admin/smilies Message-ID: <20050530105140.72DBC2AC01F@users.sourceforge.jp> Index: xoops2jp/html/modules/system/admin/smilies/smilies.php diff -u xoops2jp/html/modules/system/admin/smilies/smilies.php:1.2.6.4 xoops2jp/html/modules/system/admin/smilies/smilies.php:1.2.6.5 --- xoops2jp/html/modules/system/admin/smilies/smilies.php:1.2.6.4 Fri May 13 20:03:25 2005 +++ xoops2jp/html/modules/system/admin/smilies/smilies.php Mon May 30 19:51:40 2005 @@ -1,5 +1,5 @@ " ._AM_EDIT." "; + echo " />" ._AM_EDIT." "; echo "" ._AM_DEL."
\ No newline at end of file From onokazu @ users.sourceforge.jp Mon May 30 19:51:41 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 19:51:41 +0900 Subject: [xoops-cvslog 25] CVS update: xoops2jp/html/modules/system/templates Message-ID: <20050530105141.3B89B2AC01B@users.sourceforge.jp> Index: xoops2jp/html/modules/system/templates/system_comments_flat.html diff -u xoops2jp/html/modules/system/templates/system_comments_flat.html:1.1 xoops2jp/html/modules/system/templates/system_comments_flat.html:1.1.6.1 --- xoops2jp/html/modules/system/templates/system_comments_flat.html:1.1 Thu Sep 9 19:03:23 2004 +++ xoops2jp/html/modules/system/templates/system_comments_flat.html Mon May 30 19:51:41 2005 @@ -1,7 +1,7 @@ <{foreach item=comment from=$comments}> <{include file="db:system_comment.html" comment=$comment}> Index: xoops2jp/html/modules/system/templates/system_userinfo.html diff -u xoops2jp/html/modules/system/templates/system_userinfo.html:1.1 xoops2jp/html/modules/system/templates/system_userinfo.html:1.1.6.1 --- xoops2jp/html/modules/system/templates/system_userinfo.html:1.1 Thu Sep 9 19:03:23 2004 +++ xoops2jp/html/modules/system/templates/system_userinfo.html Mon May 30 19:51:41 2005 @@ -27,7 +27,7 @@
<{$lang_poster}> - <{$lang_thread}> + <{$lang_thread}>
- +
From onokazu @ users.sourceforge.jp Mon May 30 19:53:27 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 19:53:27 +0900 Subject: [xoops-cvslog 26] CVS update: xoops2jp/html/modules/xoopsfaq/templates Message-ID: <20050530105327.B7ADA2AC011@users.sourceforge.jp> Index: xoops2jp/html/modules/xoopsfaq/templates/xoopsfaq_category.html diff -u xoops2jp/html/modules/xoopsfaq/templates/xoopsfaq_category.html:1.1 xoops2jp/html/modules/xoopsfaq/templates/xoopsfaq_category.html:1.1.6.1 --- xoops2jp/html/modules/xoopsfaq/templates/xoopsfaq_category.html:1.1 Thu Sep 9 19:03:27 2004 +++ xoops2jp/html/modules/xoopsfaq/templates/xoopsfaq_category.html Mon May 30 19:53:27 2005 @@ -1,5 +1,5 @@

<{$lang_faq}>

-<{$lang_main}> »» <{$category_name}>

+<{$lang_main}> »» <{$category_name}>

From onokazu @ users.sourceforge.jp Mon May 30 19:54:10 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 19:54:10 +0900 Subject: [xoops-cvslog 27] CVS update: xoops2jp/html/modules/xoopsheadline/templates Message-ID: <20050530105410.E1E5B2AC011@users.sourceforge.jp> Index: xoops2jp/html/modules/xoopsheadline/templates/xoopsheadline_feed.html diff -u xoops2jp/html/modules/xoopsheadline/templates/xoopsheadline_feed.html:1.1 xoops2jp/html/modules/xoopsheadline/templates/xoopsheadline_feed.html:1.1.6.1 --- xoops2jp/html/modules/xoopsheadline/templates/xoopsheadline_feed.html:1.1 Thu Sep 9 19:03:28 2004 +++ xoops2jp/html/modules/xoopsheadline/templates/xoopsheadline_feed.html Mon May 30 19:54:10 2005 @@ -43,7 +43,7 @@ <{if $items[i].category != ""}> - <{/if}> <{if $items[i].pubdate != ""}> From onokazu @ users.sourceforge.jp Mon May 30 19:55:03 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 19:55:03 +0900 Subject: [xoops-cvslog 28] CVS update: xoops2jp/html/modules/xoopspartners/admin Message-ID: <20050530105504.4B6E92AC011@users.sourceforge.jp> Index: xoops2jp/html/modules/xoopspartners/admin/index.php diff -u xoops2jp/html/modules/xoopspartners/admin/index.php:1.2.6.1 xoops2jp/html/modules/xoopspartners/admin/index.php:1.2.6.2 --- xoops2jp/html/modules/xoopspartners/admin/index.php:1.2.6.1 Thu Apr 21 18:57:47 2005 +++ xoops2jp/html/modules/xoopspartners/admin/index.php Mon May 30 19:55:03 2005 @@ -1,5 +1,5 @@
<{$lang_toc}>
<{$lang_category}><{$items[i].category}> + <{$items[i].category}>
"; - echo ""; + echo ""; echo "".$hits." "._MD_EDIT."
--
"._MD_DELETE." @@ -82,9 +82,9 @@ } echo "
- - - + + +
"; xoops_cp_footer(); } From onokazu @ users.sourceforge.jp Mon May 30 19:56:42 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 19:56:42 +0900 Subject: [xoops-cvslog 29] CVS update: xoops2jp/html/class Message-ID: <20050530105642.5AB292AC011@users.sourceforge.jp> Index: xoops2jp/html/class/errorhandler.php diff -u xoops2jp/html/class/errorhandler.php:1.2 xoops2jp/html/class/errorhandler.php:1.2.6.1 --- xoops2jp/html/class/errorhandler.php:1.2 Fri Mar 18 21:51:55 2005 +++ xoops2jp/html/class/errorhandler.php Mon May 30 19:56:42 2005 @@ -1,5 +1,5 @@ _showErrors = $showErrors; - } - - /** - * Handle an error - * - * @param array $error Associative array containing error info - * @access public - * @return void - */ - function handleError($error) - { - if (($error['errno'] & error_reporting()) != $error['errno']) { - return; - } - $this->_errors[] = $error; - if ($error['errno'] == E_USER_ERROR) { - $this->_isFatal = true; - exit(); - } - } - - /** - * Render the list of errors - * - * NOTE: Unfortunately PHP 'fatal' and 'parse' errors are not trappable. - * If the server has 'display_errors Off', then the result will be a - * blank page. It would be nice to print a message 'This page cannot - * be displayed', but there seems to be no way to print this only when - * exiting due to a fatal error rather than normal end of page. - * - * Thus, 'trigger_error' should be used to trap problems early and - * display a meaningful message before a PHP fatal or parse error can - * occur. - * - * @TODO Use CSS - * @TODO Use language? or allow customized message? - * - * @access public - * @return void - */ - function renderErrors() - { - $output = ''; - if ($this->_isFatal) { - $output .= 'This page cannot be displayed due to an internal error.

'; - $output .= 'If you are the administrator of this site, please visit the Xoops Troubleshooting Page for assistance.

'; - } - if (!$this->_showErrors || empty($this->_errors)) { - return $output; - } - - foreach( $this->_errors as $error ) - { - switch ( $error['errno'] ) - { - case E_USER_NOTICE: - $output .= "Notice [Xoops]: "; - break; - case E_USER_WARNING: - $output .= "Warning [Xoops]: "; - break; - case E_USER_ERROR: - $output .= "Error [Xoops]: "; - break; - case E_NOTICE: - $output .= "Notice [PHP]: "; - break; - case E_WARNING: - $output .= "Warning [PHP]: "; - break; - default: - $output .= "Unknown Condition [" . $error['errno'] . "]: "; - } - $output .= sprintf( "%s in file %s line %s
\n", $error['errstr'], $error['errfile'], $error['errline'] ); - } - return $output; - } + /** + * List of errors + * + * @var array + * @access private + */ + var $_errors = array(); + + /** + * Show error messages? + * + * @var boolean + * @access private + */ + var $_showErrors = false; + + /** + * Was there a fatal error (E_USER_ERROR) + * + * @var boolean + * @access private + */ + var $_isFatal = false; + + /** + * Constructor + * + * Registers the error handler and shutdown functions. NOTE: when + * registering an error handler, the setting or 'error_reporting' is + * ignored and *everything* is trapped. + */ + function XoopsErrorHandler() + { + set_error_handler('XoopsErrorHandler_HandleError'); + register_shutdown_function('XoopsErrorHandler_Shutdown'); + } + + /** + * Get the (singleton) instance of the error handler + * + * @access public + */ + function &getInstance() + { + static $instance = null; + if (empty($instance)) { + $instance = new XoopsErrorHandler; + } + return $instance; + } + + /** + * Activate the error handler + * + * @access public + * @param boolean $showErrors True if debug mode is on + * @return void + */ + function activate($showErrors=false) + { + $this->_showErrors = $showErrors; + } + + /** + * Handle an error + * + * @param array $error Associative array containing error info + * @access public + * @return void + */ + function handleError($error) + { + if (($error['errno'] & error_reporting()) != $error['errno']) { + return; + } + $this->_errors[] = $error; + if ($error['errno'] == E_USER_ERROR) { + $this->_isFatal = true; + exit(); + } + } + + /** + * Render the list of errors + * + * NOTE: Unfortunately PHP 'fatal' and 'parse' errors are not trappable. + * If the server has 'display_errors Off', then the result will be a + * blank page. It would be nice to print a message 'This page cannot + * be displayed', but there seems to be no way to print this only when + * exiting due to a fatal error rather than normal end of page. + * + * Thus, 'trigger_error' should be used to trap problems early and + * display a meaningful message before a PHP fatal or parse error can + * occur. + * + * @TODO Use CSS + * @TODO Use language? or allow customized message? + * + * @access public + * @return void + */ + function renderErrors() + { + $output = ''; + if ($this->_isFatal) { + $output .= 'This page cannot be displayed due to an internal error.

'; + $output .= 'If you are the administrator of this site, please visit the Xoops Troubleshooting Page for assistance.

'; + } + if (!$this->_showErrors || empty($this->_errors)) { + return $output; + } + + foreach( $this->_errors as $error ) + { + switch ( $error['errno'] ) + { + case E_USER_NOTICE: + $output .= "Notice [Xoops]: "; + break; + case E_USER_WARNING: + $output .= "Warning [Xoops]: "; + break; + case E_USER_ERROR: + $output .= "Error [Xoops]: "; + break; + case E_NOTICE: + $output .= "Notice [PHP]: "; + break; + case E_WARNING: + $output .= "Warning [PHP]: "; + break; + default: + $output .= "Unknown Condition [" . $error['errno'] . "]: "; + } + $output .= sprintf( "%s in file %s line %s
\n", $error['errstr'], $error['errfile'], $error['errline'] ); + } + return $output; + } -} +} /** * User-defined error handler (called from 'trigger_error') - * + * * NOTE: Some recent versions of PHP have a 5th parameter, &$p_ErrContext * which is an associative array of all variables defined in scope in which * error occurred. We cannot support this, for compatibility with older PHP. - * - * @access public + * + * @access public * @param int $errNo Type of error * @param string $errStr Error message * @param string $errFile File in which error occurred * @param int $errLine Line number on which error occurred - * @return void + * @return void */ function XoopsErrorHandler_HandleError($errNo, $errStr, $errFile, $errLine) -{ - // NOTE: we only store relative pathnames - $new_error = array( - 'errno' => $errNo, - 'errstr' => $errStr, - 'errfile' => preg_replace("|^" . XOOPS_ROOT_PATH . "/|", '', $errFile), - 'errline' => $errLine - ); - $error_handler =& XoopsErrorHandler::getInstance(); - $error_handler->handleError($new_error); -} +{ + // NOTE: we only store relative pathnames + $new_error = array( + 'errno' => $errNo, + 'errstr' => $errStr, + 'errfile' => preg_replace("|^" . XOOPS_ROOT_PATH . "/|", '', $errFile), + 'errline' => $errLine + ); + $error_handler =& XoopsErrorHandler::getInstance(); + $error_handler->handleError($new_error); +} /** * User-defined shutdown function (called from 'exit') - * - * @access public - * @return void + * + * @access public + * @return void */ function XoopsErrorHandler_Shutdown() { - $error_handler =& XoopsErrorHandler::getInstance(); - echo $error_handler->renderErrors(); -} + $error_handler =& XoopsErrorHandler::getInstance(); + echo $error_handler->renderErrors(); +} ?> From onokazu @ users.sourceforge.jp Mon May 30 20:05:19 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 20:05:19 +0900 Subject: [xoops-cvslog 30] CVS update: xoops2jp/html/modules/newbb/admin Message-ID: <20050530110519.69EC12AC011@users.sourceforge.jp> Index: xoops2jp/html/modules/newbb/admin/admin_forums.php diff -u xoops2jp/html/modules/newbb/admin/admin_forums.php:1.2.6.1 xoops2jp/html/modules/newbb/admin/admin_forums.php:1.2.6.2 --- xoops2jp/html/modules/newbb/admin/admin_forums.php:1.2.6.1 Wed Apr 20 19:04:15 2005 +++ xoops2jp/html/modules/newbb/admin/admin_forums.php Mon May 30 20:05:19 2005 @@ -6,7 +6,7 @@ copyright : (C) 2001 The phpBB Group email : support @ phpbb.com - $Id: admin_forums.php,v 1.2.6.1 2005/04/20 10:04:15 onokazu Exp $ + $Id: admin_forums.php,v 1.2.6.2 2005/05/30 11:05:19 onokazu Exp $ ***************************************************************************/ /*************************************************************************** @@ -187,7 +187,7 @@ $current_mods = array(); if ( $row = $xoopsDB->fetchArray($r) ) { do { - echo $row['uname']." ( "._MD_A_REMOVE.")
"; + echo $row['uname']." ( "._MD_A_REMOVE.")
"; $current_mods[] = $row['uid']; } while ( $row = $xoopsDB->fetchArray($r) ); echo "
"; @@ -339,8 +339,8 @@
- -    + +   
- -    + +   
@@ -615,7 +615,7 @@
".$myts->makeTboxData4Show($m['cat_title'])."\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; - echo "
-
From onokazu @ users.sourceforge.jp Mon May 30 20:05:19 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 20:05:19 +0900 Subject: [xoops-cvslog 31] CVS update: xoops2jp/html/modules/newbb/blocks Message-ID: <20050530110519.A86AE2AC01F@users.sourceforge.jp> Index: xoops2jp/html/modules/newbb/blocks/newbb_new.php diff -u xoops2jp/html/modules/newbb/blocks/newbb_new.php:1.2 xoops2jp/html/modules/newbb/blocks/newbb_new.php:1.2.6.1 --- xoops2jp/html/modules/newbb/blocks/newbb_new.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/newbb/blocks/newbb_new.php Mon May 30 20:05:19 2005 @@ -1,5 +1,5 @@  "._NO; - $form .= ''; + $form .= ''; return $form; } From onokazu @ users.sourceforge.jp Mon May 30 20:05:19 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 20:05:19 +0900 Subject: [xoops-cvslog 32] CVS update: xoops2jp/html/modules/newbb/templates Message-ID: <20050530110519.EEC472AC011@users.sourceforge.jp> Index: xoops2jp/html/modules/newbb/templates/newbb_search.html diff -u xoops2jp/html/modules/newbb/templates/newbb_search.html:1.1 xoops2jp/html/modules/newbb/templates/newbb_search.html:1.1.6.1 --- xoops2jp/html/modules/newbb/templates/newbb_search.html:1.1 Thu Sep 9 14:15:18 2004 +++ xoops2jp/html/modules/newbb/templates/newbb_search.html Mon May 30 20:05:19 2005 @@ -41,6 +41,7 @@   + Index: xoops2jp/html/modules/newbb/templates/newbb_searchresults.html diff -u xoops2jp/html/modules/newbb/templates/newbb_searchresults.html:1.1 xoops2jp/html/modules/newbb/templates/newbb_searchresults.html:1.1.6.1 --- xoops2jp/html/modules/newbb/templates/newbb_searchresults.html:1.1 Thu Sep 9 14:15:18 2004 +++ xoops2jp/html/modules/newbb/templates/newbb_searchresults.html Mon May 30 20:05:19 2005 @@ -15,7 +15,7 @@ <{$lang_author}> <{$lang_replies}> <{$lang_views}> - <{$lang_possttime}> + <{$lang_possttime}> <{section name=i loop=$results}> @@ -53,11 +53,14 @@   <{$lang_searchall}> + <{$lang_author}>  +   + Index: xoops2jp/html/modules/newbb/templates/newbb_viewforum.html diff -u xoops2jp/html/modules/newbb/templates/newbb_viewforum.html:1.1 xoops2jp/html/modules/newbb/templates/newbb_viewforum.html:1.1.6.1 --- xoops2jp/html/modules/newbb/templates/newbb_viewforum.html:1.1 Thu Sep 9 14:15:18 2004 +++ xoops2jp/html/modules/newbb/templates/newbb_viewforum.html Mon May 30 20:05:19 2005 @@ -46,6 +46,7 @@ + From onokazu @ users.sourceforge.jp Mon May 30 20:17:28 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 20:17:28 +0900 Subject: [xoops-cvslog 33] CVS update: xoops2jp/html/modules/sections/admin Message-ID: <20050530111728.625C42AC011@users.sourceforge.jp> Index: xoops2jp/html/modules/sections/admin/index.php diff -u xoops2jp/html/modules/sections/admin/index.php:1.2.6.1 xoops2jp/html/modules/sections/admin/index.php:1.2.6.2 --- xoops2jp/html/modules/sections/admin/index.php:1.2.6.1 Thu Apr 21 04:22:12 2005 +++ xoops2jp/html/modules/sections/admin/index.php Mon May 30 20:17:28 2005 @@ -1,5 +1,5 @@ query("select secid, secname from ".$xoopsDB->prefix("sections")." order by secid"); if ($xoopsDB->getRowsNum($result) > 0) { $myts =& MyTextSanitizer::getInstance(); - echo "
+ echo "
"._MD_CURACTIVESEC."
"._MD_CLICK2EDIT."
-
"; +
"; echo "
    "; while(list($secid, $secname) = $xoopsDB->fetchRow($result)) { $secname=$myts->makeTboxData4Show($secname); @@ -65,21 +65,21 @@

    query("select secid, secname from ".$xoopsDB->prefix("sections")." order by secid"); - $checked = "checked"; // select first section by default + $checked = " checked='checked'"; // select first section by default while(list($secid, $secname) = $xoopsDB->fetchRow($result)) { $secname=$myts->makeTboxData4Show($secname); - echo "$secname
    "; + echo "$secname
    "; $checked = ''; } ?>

    -

    +



    - - + +
    -

    +



    "; ?> - - - + + + "; ?> -

    +



    "; ?>

    -

    +

     
    -

    - - +

    + + makeTboxData4Edit($title); $content = $myts->makeTareaData4Edit($content); ?> -

    +



    "; ?>

    - ">

    + " />

    query("select secid, secname from ".$xoopsDB->prefix("sections")." order by secname"); while(list($secid2, $secname) = $xoopsDB->fetchRow($result2)) { $secname = $myts->makeTboxData4Show($secname); - if ($secid2==$secid) { $che = "checked"; } - echo "$secname
    "; + if ($secid2==$secid) { $che = " checked='checked'"; } + echo "$secname
    "; $che = ""; } ?>

    - - "> - -
    - + + " /> + +
    + "; ?> - "> - - + " /> + +
    query("select artid from ".$xoopsDB->prefix("seccont")." where secid=$secid"); $number = $xoopsDB->getRowsNum($result2); ?> -

    "; ?> +

    "; ?>



    "; ?>

    - ">

    + " />


    - ">

    - "> - - "; @@ -70,7 +70,7 @@ $secname = $myts->makeTboxData4Show($secname); $image = $myts->makeTboxData4Show($image); $result = $xoopsDB->query("SELECT artid, secid, title, content, counter FROM ".$xoopsDB->prefix("seccont")." WHERE secid=$secid"); - echo "


    "; + echo "


    "; printf(_MD_THISISSECTION,$secname); echo "
    "._MD_THEFOLLOWING."

    - + " />

    + " /> + +
    + "; ?> - "> - - + " /> + +
    Index: xoops2jp/html/modules/sections/index.php diff -u xoops2jp/html/modules/sections/index.php:1.2.6.1 xoops2jp/html/modules/sections/index.php:1.2.6.2 --- xoops2jp/html/modules/sections/index.php:1.2.6.1 Thu May 26 19:35:16 2005 +++ xoops2jp/html/modules/sections/index.php Mon May 30 20:17:28 2005 @@ -1,5 +1,5 @@ "; $count = 0; } - echo "
    $secname"; + echo "$secname"; $count++; if ( $count == 2 ) { echo "
    "; while ( list($artid, $secid, $title, $content, $counter) = $xoopsDB->fetchRow($result) ) { From onokazu @ users.sourceforge.jp Mon May 30 21:00:11 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 21:00:11 +0900 Subject: [xoops-cvslog 34] CVS update: xoops2jp/html/modules/mydownloads Message-ID: <20050530120011.030472AC02A@users.sourceforge.jp> Index: xoops2jp/html/modules/mydownloads/index.php diff -u xoops2jp/html/modules/mydownloads/index.php:1.2 xoops2jp/html/modules/mydownloads/index.php:1.2.6.1 --- xoops2jp/html/modules/mydownloads/index.php:1.2 Fri Mar 18 21:52:14 2005 +++ xoops2jp/html/modules/mydownloads/index.php Mon May 30 21:00:10 2005 @@ -1,5 +1,5 @@ fetchArray($result)) { - $title = $myts->makeTboxData4Show($myrow['title']); - if ($myrow['imgurl'] && $myrow['imgurl'] != "http://"){ - $imgurl = $myts->makeTboxData4Edit($myrow['imgurl']); - } else { - $imgurl = ''; - } - $totaldownload = getTotalItems($myrow['cid'], 1); - - // get child category objects - $arr=array(); - $arr=$mytree->getFirstChild($myrow['cid'], "title"); - $space = 0; - $chcount = 0; - $subcategories = ""; - foreach($arr as $ele){ - $chtitle=$myts->makeTboxData4Show($ele['title']); - if ($chcount>5){ - $subcategories .= "..."; - break; - } - if ($space>0) { - $subcategories .= ", "; - } - $subcategories .= "".$chtitle.""; - $space++; - $chcount++; - } - $xoopsTpl->append('categories', array('image' => $imgurl, 'id' => $myrow['cid'], 'title' => $myts->makeTboxData4Show($myrow['title']), 'subcategories' => $subcategories, 'totaldownloads' => $totaldownload, 'count' => $count)); - $count++; + $title = $myts->makeTboxData4Show($myrow['title']); + if ($myrow['imgurl'] && $myrow['imgurl'] != "http://"){ + $imgurl = $myts->makeTboxData4Edit($myrow['imgurl']); + } else { + $imgurl = ''; + } + $totaldownload = getTotalItems($myrow['cid'], 1); + + // get child category objects + $arr=array(); + $arr=$mytree->getFirstChild($myrow['cid'], "title"); + $space = 0; + $chcount = 0; + $subcategories = ""; + foreach($arr as $ele){ + $chtitle=$myts->makeTboxData4Show($ele['title']); + if ($chcount>5){ + $subcategories .= "..."; + break; + } + if ($space>0) { + $subcategories .= ", "; + } + $subcategories .= "".$chtitle.""; + $space++; + $chcount++; + } + $xoopsTpl->append('categories', array('image' => $imgurl, 'id' => $myrow['cid'], 'title' => $myts->makeTboxData4Show($myrow['title']), 'subcategories' => $subcategories, 'totaldownloads' => $totaldownload, 'count' => $count)); + $count++; } list($numrows)=$xoopsDB->fetchRow($xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE status>0")); $xoopsTpl->assign('lang_thereare', sprintf(_MD_THEREARE,$numrows)); if ($xoopsModuleConfig['useshots'] == 1) { - $xoopsTpl->assign('shotwidth', $xoopsModuleConfig['shotwidth']); - $xoopsTpl->assign('tablewidth', $xoopsModuleConfig['shotwidth'] + 10); - $xoopsTpl->assign('show_screenshot', true); - $xoopsTpl->assign('lang_noscreenshot', _MD_NOSHOTS); + $xoopsTpl->assign('shotwidth', $xoopsModuleConfig['shotwidth']); + $xoopsTpl->assign('tablewidth', $xoopsModuleConfig['shotwidth'] + 10); + $xoopsTpl->assign('show_screenshot', true); + $xoopsTpl->assign('lang_noscreenshot', _MD_NOSHOTS); } if ($xoopsUser && $xoopsUser->isAdmin($xoopsModule->mid())) { - $isadmin = true; + $isadmin = true; } else { - $isadmin = false; + $isadmin = false; } $xoopsTpl->assign('lang_description', _MD_DESCRIPTIONC); $xoopsTpl->assign('lang_lastupdate', _MD_LASTUPDATEC); @@ -101,32 +101,32 @@ $xoopsTpl->assign('lang_comments' , _COMMENTS); $result = $xoopsDB->query("SELECT d.lid, d.cid, d.title, d.url, d.homepage, d.version, d.size, d.platform, d.logourl, d.status, d.date, d.hits, d.rating, d.votes, d.comments, t.description FROM ".$xoopsDB->prefix("mydownloads_downloads")." d, ".$xoopsDB->prefix("mydownloads_text")." t WHERE d.status>0 AND d.lid=t.lid ORDER BY date DESC", $xoopsModuleConfig['newdownloads'], 0); while(list($lid, $cid, $dtitle, $url, $homepage, $version, $size, $platform, $logourl, $status, $time, $hits, $rating, $votes, $comments, $description)=$xoopsDB->fetchRow($result)) { - $path = $mytree->getPathFromId($cid, "title"); - $path = substr($path, 1); - $path = str_replace("/"," ",$path); - $rating = number_format($rating, 2); - $dtitle = $myts->makeTboxData4Show($dtitle); - $url = $myts->makeTboxData4Show($url); - $homepage = $myts->makeTboxData4Show($homepage); - $version = $myts->makeTboxData4Show($version); - $size = PrettySize($myts->makeTboxData4Show($size)); - $platform = $myts->makeTboxData4Show($platform); - $logourl = $myts->makeTboxData4Show($logourl); - $datetime = formatTimestamp($time,"s"); - $description = $myts->makeTareaData4Show($description,0); //no html - $new = newdownloadgraphic($time, $status); - $pop = popgraphic($hits); - if ($isadmin) { - $adminlink = ''._MD_EDITTHISDL.''; - } else { - $adminlink = ''; - } - if ($votes == 1) { - $votestring = _MD_ONEVOTE; - } else { - $votestring = sprintf(_MD_NUMVOTES,$votes); - } - $xoopsTpl->append('file', array('id' => $lid,'cid'=>$cid,'rating' => $rating,'title' => $dtitle.$new.$pop,'logourl' => $logourl,'updated' => $datetime,'description' => $description,'adminlink' => $adminlink,'hits' => $hits,'votes' => $votestring, 'comments' => $comments, 'platform' => $platform,'size' => $size,'homepage' => $homepage,'version' => $version,'category' => $path,'lang_dltimes' => sprintf(_MD_DLTIMES,$hits),'mail_subject' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename'])),'mail_body' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename']).': '.XOOPS_URL.'/modules/mydownloads/singlefile.php?cid='.$cid.'&lid='.$lid))); + $path = $mytree->getPathFromId($cid, "title"); + $path = substr($path, 1); + $path = str_replace("/"," ",$path); + $rating = number_format($rating, 2); + $dtitle = $myts->makeTboxData4Show($dtitle); + $url = $myts->makeTboxData4Show($url); + $homepage = $myts->makeTboxData4Show($homepage); + $version = $myts->makeTboxData4Show($version); + $size = PrettySize($myts->makeTboxData4Show($size)); + $platform = $myts->makeTboxData4Show($platform); + $logourl = $myts->makeTboxData4Show($logourl); + $datetime = formatTimestamp($time,"s"); + $description = $myts->makeTareaData4Show($description,0); //no html + $new = newdownloadgraphic($time, $status); + $pop = popgraphic($hits); + if ($isadmin) { + $adminlink = ''._MD_EDITTHISDL.''; + } else { + $adminlink = ''; + } + if ($votes == 1) { + $votestring = _MD_ONEVOTE; + } else { + $votestring = sprintf(_MD_NUMVOTES,$votes); + } + $xoopsTpl->append('file', array('id' => $lid,'cid'=>$cid,'rating' => $rating,'title' => $dtitle.$new.$pop,'logourl' => $logourl,'updated' => $datetime,'description' => $description,'adminlink' => $adminlink,'hits' => $hits,'votes' => $votestring, 'comments' => $comments, 'platform' => $platform,'size' => $size,'homepage' => $homepage,'version' => $version,'category' => $path,'lang_dltimes' => sprintf(_MD_DLTIMES,$hits),'mail_subject' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename'])),'mail_body' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename']).': '.XOOPS_URL.'/modules/mydownloads/singlefile.php?cid='.$cid.'&lid='.$lid))); } include XOOPS_ROOT_PATH."/modules/mydownloads/footer.php"; Index: xoops2jp/html/modules/mydownloads/singlefile.php diff -u xoops2jp/html/modules/mydownloads/singlefile.php:1.2 xoops2jp/html/modules/mydownloads/singlefile.php:1.2.6.1 --- xoops2jp/html/modules/mydownloads/singlefile.php:1.2 Fri Mar 18 21:52:14 2005 +++ xoops2jp/html/modules/mydownloads/singlefile.php Mon May 30 21:00:10 2005 @@ -1,5 +1,5 @@ assign('category_path', $pathstring); $path = $mytree->getPathFromId($cid, "title"); $path = substr($path, 1); -$path = str_replace("/"," ",$path); +$path = str_replace("/"," ",$path); $rating = number_format($rating, 2); $dtitle = $myts->makeTboxData4Show($title); $url = $myts->makeTboxData4Show($url); @@ -58,20 +58,20 @@ $new = newdownloadgraphic($time, $status); $pop = popgraphic($hits); if ($xoopsUser && $xoopsUser->isAdmin($xoopsModule->mid())) { - $adminlink = ''._MD_EDITTHISDL.''; + $adminlink = ''._MD_EDITTHISDL.''; } else { - $adminlink = ''; + $adminlink = ''; } if ($votes == 1) { - $votestring = _MD_ONEVOTE; + $votestring = _MD_ONEVOTE; } else { - $votestring = sprintf(_MD_NUMVOTES,$votes); + $votestring = sprintf(_MD_NUMVOTES,$votes); } if ($xoopsModuleConfig['useshots'] == 1) { - $xoopsTpl->assign('shotwidth', $xoopsModuleConfig['shotwidth']); - $xoopsTpl->assign('tablewidth', $xoopsModuleConfig['shotwidth'] + 10); - $xoopsTpl->assign('show_screenshot', true); - $xoopsTpl->assign('lang_noscreenshot', _MD_NOSHOTS); + $xoopsTpl->assign('shotwidth', $xoopsModuleConfig['shotwidth']); + $xoopsTpl->assign('tablewidth', $xoopsModuleConfig['shotwidth'] + 10); + $xoopsTpl->assign('show_screenshot', true); + $xoopsTpl->assign('lang_noscreenshot', _MD_NOSHOTS); } $xoopsTpl->assign('file', array('id' => $lid, 'cid' => $cid,'rating' => $rating,'title' => $dtitle.$new.$pop,'logourl' => $logourl,'updated' => $datetime,'description' => $description,'adminlink' => $adminlink,'hits' => $hits,'votes' => $votestring, 'platform' => $platform, 'comments' => $comments, 'size' => $size,'homepage' => $homepage,'version' => $version,'category' => $path,'lang_dltimes' => sprintf(_MD_DLTIMES,$hits),'mail_subject' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename'])),'mail_body' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename']).': '.XOOPS_URL.'/modules/mydownloads/singlefile.php?cid='.$cid.'&lid='.$lid))); $xoopsTpl->assign('lang_description', _MD_DESCRIPTIONC); Index: xoops2jp/html/modules/mydownloads/viewcat.php diff -u xoops2jp/html/modules/mydownloads/viewcat.php:1.2 xoops2jp/html/modules/mydownloads/viewcat.php:1.2.6.1 --- xoops2jp/html/modules/mydownloads/viewcat.php:1.2 Fri Mar 18 21:52:14 2005 +++ xoops2jp/html/modules/mydownloads/viewcat.php Mon May 30 21:00:10 2005 @@ -1,5 +1,5 @@ getFirstChild($cid, "title"); if ( count($arr) > 0 ) { - $scount = 1; - foreach($arr as $ele){ - $sub_arr=array(); - $sub_arr=$mytree->getFirstChild($ele['cid'], "title"); - $space = 0; - $chcount = 0; - $infercategories = ""; - foreach($sub_arr as $sub_ele){ - $chtitle=$myts->makeTboxData4Show($sub_ele['title']); - if ($chcount>5){ - $infercategories .= "..."; - break; - } - if ($space>0) { - $infercategories .= ", "; - } - $infercategories .= "".$chtitle.""; - $space++; - $chcount++; - } - $xoopsTpl->append('subcategories', array('title' => $myts->makeTboxData4Show($ele['title']), 'id' => $ele['cid'], 'infercategories' => $infercategories, 'totallinks' => getTotalItems($ele['cid'], 1), 'count' => $scount)); - $scount++; - } + $scount = 1; + foreach($arr as $ele){ + $sub_arr=array(); + $sub_arr=$mytree->getFirstChild($ele['cid'], "title"); + $space = 0; + $chcount = 0; + $infercategories = ""; + foreach($sub_arr as $sub_ele){ + $chtitle=$myts->makeTboxData4Show($sub_ele['title']); + if ($chcount>5){ + $infercategories .= "..."; + break; + } + if ($space>0) { + $infercategories .= ", "; + } + $infercategories .= "".$chtitle.""; + $space++; + $chcount++; + } + $xoopsTpl->append('subcategories', array('title' => $myts->makeTboxData4Show($ele['title']), 'id' => $ele['cid'], 'infercategories' => $infercategories, 'totallinks' => getTotalItems($ele['cid'], 1), 'count' => $scount)); + $scount++; + } } if ($xoopsModuleConfig['useshots'] == 1) { - $xoopsTpl->assign('shotwidth', $xoopsModuleConfig['shotwidth']); - $xoopsTpl->assign('tablewidth', $xoopsModuleConfig['shotwidth'] + 10); - $xoopsTpl->assign('show_screenshot', true); - $xoopsTpl->assign('lang_noscreenshot', _MD_NOSHOTS); + $xoopsTpl->assign('shotwidth', $xoopsModuleConfig['shotwidth']); + $xoopsTpl->assign('tablewidth', $xoopsModuleConfig['shotwidth'] + 10); + $xoopsTpl->assign('show_screenshot', true); + $xoopsTpl->assign('lang_noscreenshot', _MD_NOSHOTS); } if (!empty($xoopsUser) && $xoopsUser->isAdmin($xoopsModule->mid())) { - $isadmin = true; + $isadmin = true; } else { - $isadmin = false; + $isadmin = false; } $fullcountresult=$xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE cid=$cid AND status>0"); list($numrows) = $xoopsDB->fetchRow($fullcountresult); $page_nav = ''; if($numrows>0){ - $xoopsTpl->assign('lang_description', _MD_DESCRIPTIONC); - $xoopsTpl->assign('lang_lastupdate', _MD_LASTUPDATEC); - $xoopsTpl->assign('lang_hits', _MD_HITSC); - $xoopsTpl->assign('lang_ratingc', _MD_RATINGC); - $xoopsTpl->assign('lang_email', _MD_EMAILC); - $xoopsTpl->assign('lang_ratethissite', _MD_RATETHISFILE); - $xoopsTpl->assign('lang_reportbroken', _MD_REPORTBROKEN); - $xoopsTpl->assign('lang_tellafriend', _MD_TELLAFRIEND); - $xoopsTpl->assign('lang_modify', _MD_MODIFY); - $xoopsTpl->assign('lang_version' , _MD_VERSION); - $xoopsTpl->assign('lang_subdate' , _MD_SUBMITDATE); - $xoopsTpl->assign('lang_dlnow' , _MD_DLNOW); - $xoopsTpl->assign('lang_category' , _MD_CATEGORYC); - $xoopsTpl->assign('lang_size' , _MD_FILESIZE); - $xoopsTpl->assign('lang_platform' , _MD_SUPPORTEDPLAT); - $xoopsTpl->assign('lang_homepage' , _MD_HOMEPAGE); - $xoopsTpl->assign('lang_comments' , _COMMENTS); - $xoopsTpl->assign('show_links', true); - $q = "SELECT d.lid, d.title, d.url, d.homepage, d.version, d.size, d.platform, d.logourl, d.status, d.date, d.hits, d.rating, d.votes, d.comments, t.description FROM ".$xoopsDB->prefix("mydownloads_downloads")." d, ".$xoopsDB->prefix("mydownloads_text")." t WHERE cid=".$cid." AND d.status>0 AND d.lid=t.lid ORDER BY ".$orderby.""; - $result = $xoopsDB->query($q,$show,$min); + $xoopsTpl->assign('lang_description', _MD_DESCRIPTIONC); + $xoopsTpl->assign('lang_lastupdate', _MD_LASTUPDATEC); + $xoopsTpl->assign('lang_hits', _MD_HITSC); + $xoopsTpl->assign('lang_ratingc', _MD_RATINGC); + $xoopsTpl->assign('lang_email', _MD_EMAILC); + $xoopsTpl->assign('lang_ratethissite', _MD_RATETHISFILE); + $xoopsTpl->assign('lang_reportbroken', _MD_REPORTBROKEN); + $xoopsTpl->assign('lang_tellafriend', _MD_TELLAFRIEND); + $xoopsTpl->assign('lang_modify', _MD_MODIFY); + $xoopsTpl->assign('lang_version' , _MD_VERSION); + $xoopsTpl->assign('lang_subdate' , _MD_SUBMITDATE); + $xoopsTpl->assign('lang_dlnow' , _MD_DLNOW); + $xoopsTpl->assign('lang_category' , _MD_CATEGORYC); + $xoopsTpl->assign('lang_size' , _MD_FILESIZE); + $xoopsTpl->assign('lang_platform' , _MD_SUPPORTEDPLAT); + $xoopsTpl->assign('lang_homepage' , _MD_HOMEPAGE); + $xoopsTpl->assign('lang_comments' , _COMMENTS); + $xoopsTpl->assign('show_links', true); + $q = "SELECT d.lid, d.title, d.url, d.homepage, d.version, d.size, d.platform, d.logourl, d.status, d.date, d.hits, d.rating, d.votes, d.comments, t.description FROM ".$xoopsDB->prefix("mydownloads_downloads")." d, ".$xoopsDB->prefix("mydownloads_text")." t WHERE cid=".$cid." AND d.status>0 AND d.lid=t.lid ORDER BY ".$orderby.""; + $result = $xoopsDB->query($q,$show,$min); //if 2 or more items in result, show the sort menu - if($numrows>1){ - $xoopsTpl->assign('show_nav', true); - $orderbyTrans = convertorderbytrans($orderby); - $xoopsTpl->assign('lang_sortby', _MD_SORTBY); - $xoopsTpl->assign('lang_title', _MD_TITLE); - $xoopsTpl->assign('lang_date', _MD_DATE); - $xoopsTpl->assign('lang_rating', _MD_RATING); - $xoopsTpl->assign('lang_popularity', _MD_POPULARITY); - $xoopsTpl->assign('lang_cursortedby', sprintf(_MD_CURSORTBY, convertorderbytrans($orderby))); - } - while(list($lid, $dtitle, $url, $homepage, $version, $size, $platform, $logourl, $status, $time, $hits, $rating, $votes, $comments, $description)=$xoopsDB->fetchRow($result)) { - $path = $mytree->getPathFromId($cid, "title"); - $path = substr($path, 1); - $path = str_replace("/"," ",$path); - $rating = number_format($rating, 2); - $dtitle = $myts->makeTboxData4Show($dtitle); - $url = $myts->makeTboxData4Show($url); - $homepage = $myts->makeTboxData4Show($homepage); - $version = $myts->makeTboxData4Show($version); - $size = PrettySize($myts->makeTboxData4Show($size)); - $platform = $myts->makeTboxData4Show($platform); - $logourl = $myts->makeTboxData4Show($logourl); - $datetime = formatTimestamp($time,"s"); - $description = $myts->makeTareaData4Show($description,0); //no html - $new = newdownloadgraphic($time, $status); - $pop = popgraphic($hits); - if ($isadmin) { - $adminlink = ''._MD_EDITTHISDL.''; - } else { - $adminlink = ''; - } - if ($votes == 1) { - $votestring = _MD_ONEVOTE; - } else { - $votestring = sprintf(_MD_NUMVOTES,$votes); - } - $xoopsTpl->append('file', array('id' => $lid, 'cid' => $cid, 'rating' => $rating,'title' => $dtitle.$new.$pop,'logourl' => $logourl,'updated' => $datetime,'description' => $description,'adminlink' => $adminlink,'hits' => $hits,'votes' => $votestring, 'comments' => $comments, 'platform' => $platform,'size' => $size,'homepage' => $homepage,'version' => $version,'category' => $path,'lang_dltimes' => sprintf(_MD_DLTIMES,$hits),'mail_subject' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename'])),'mail_body' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename']).': '.XOOPS_URL.'/modules/mydownloads/singlefile.php?cid='.$cid.'&lid='.$lid))); - } - $orderby = convertorderbyout($orderby); + if($numrows>1){ + $xoopsTpl->assign('show_nav', true); + $orderbyTrans = convertorderbytrans($orderby); + $xoopsTpl->assign('lang_sortby', _MD_SORTBY); + $xoopsTpl->assign('lang_title', _MD_TITLE); + $xoopsTpl->assign('lang_date', _MD_DATE); + $xoopsTpl->assign('lang_rating', _MD_RATING); + $xoopsTpl->assign('lang_popularity', _MD_POPULARITY); + $xoopsTpl->assign('lang_cursortedby', sprintf(_MD_CURSORTBY, convertorderbytrans($orderby))); + } + while(list($lid, $dtitle, $url, $homepage, $version, $size, $platform, $logourl, $status, $time, $hits, $rating, $votes, $comments, $description)=$xoopsDB->fetchRow($result)) { + $path = $mytree->getPathFromId($cid, "title"); + $path = substr($path, 1); + $path = str_replace("/"," ",$path); + $rating = number_format($rating, 2); + $dtitle = $myts->makeTboxData4Show($dtitle); + $url = $myts->makeTboxData4Show($url); + $homepage = $myts->makeTboxData4Show($homepage); + $version = $myts->makeTboxData4Show($version); + $size = PrettySize($myts->makeTboxData4Show($size)); + $platform = $myts->makeTboxData4Show($platform); + $logourl = $myts->makeTboxData4Show($logourl); + $datetime = formatTimestamp($time,"s"); + $description = $myts->makeTareaData4Show($description,0); //no html + $new = newdownloadgraphic($time, $status); + $pop = popgraphic($hits); + if ($isadmin) { + $adminlink = ''._MD_EDITTHISDL.''; + } else { + $adminlink = ''; + } + if ($votes == 1) { + $votestring = _MD_ONEVOTE; + } else { + $votestring = sprintf(_MD_NUMVOTES,$votes); + } + $xoopsTpl->append('file', array('id' => $lid, 'cid' => $cid, 'rating' => $rating,'title' => $dtitle.$new.$pop,'logourl' => $logourl,'updated' => $datetime,'description' => $description,'adminlink' => $adminlink,'hits' => $hits,'votes' => $votestring, 'comments' => $comments, 'platform' => $platform,'size' => $size,'homepage' => $homepage,'version' => $version,'category' => $path,'lang_dltimes' => sprintf(_MD_DLTIMES,$hits),'mail_subject' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename'])),'mail_body' => rawurlencode(sprintf(_MD_INTFILEFOUND,$xoopsConfig['sitename']).': '.XOOPS_URL.'/modules/mydownloads/singlefile.php?cid='.$cid.'&lid='.$lid))); + } + $orderby = convertorderbyout($orderby); //Calculates how many pages exist. Which page one should be on, etc... - $downpages = ceil($numrows / $show); + $downpages = ceil($numrows / $show); //Page Numbering - if ($downpages!=1 && $downpages!=0) { - $prev = $min - $show; - if ($prev>=0) { - $page_nav .= "« "; - } - $counter = 1; - $currentpage = ($max / $show); - while ( $counter<=$downpages ) { - $mintemp = ($show * $counter) - $show; - if ($counter == $currentpage) { - $page_nav .= "($counter) "; - } else { - $page_nav .= "$counter "; - } - $counter++; - } - if ( $numrows>$max ) { - $page_nav .= ""; - $page_nav .= "»"; - } - } + if ($downpages!=1 && $downpages!=0) { + $prev = $min - $show; + if ($prev>=0) { + $page_nav .= "« "; + } + $counter = 1; + $currentpage = ($max / $show); + while ( $counter<=$downpages ) { + $mintemp = ($show * $counter) - $show; + if ($counter == $currentpage) { + $page_nav .= "($counter) "; + } else { + $page_nav .= "$counter "; + } + $counter++; + } + if ( $numrows>$max ) { + $page_nav .= ""; + $page_nav .= "»"; + } + } } $xoopsTpl->assign('page_nav', $page_nav); include XOOPS_ROOT_PATH."/modules/mydownloads/footer.php"; From onokazu @ users.sourceforge.jp Mon May 30 21:00:11 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 21:00:11 +0900 Subject: [xoops-cvslog 35] CVS update: xoops2jp/html/modules/mydownloads/templates Message-ID: <20050530120011.89D6B2AC01F@users.sourceforge.jp> Index: xoops2jp/html/modules/mydownloads/templates/mydownloads_index.html diff -u xoops2jp/html/modules/mydownloads/templates/mydownloads_index.html:1.1 xoops2jp/html/modules/mydownloads/templates/mydownloads_index.html:1.1.6.1 --- xoops2jp/html/modules/mydownloads/templates/mydownloads_index.html:1.1 Thu Sep 9 14:15:16 2004 +++ xoops2jp/html/modules/mydownloads/templates/mydownloads_index.html Mon May 30 21:00:11 2005 @@ -6,7 +6,7 @@


    <{if count($categories) gt 0}> -
    +
    @@ -29,7 +29,7 @@

    <{$lang_thereare}>
    -
    +
    <{/if}> Index: xoops2jp/html/modules/mydownloads/templates/mydownloads_modfile.html diff -u xoops2jp/html/modules/mydownloads/templates/mydownloads_modfile.html:1.1 xoops2jp/html/modules/mydownloads/templates/mydownloads_modfile.html:1.1.6.1 --- xoops2jp/html/modules/mydownloads/templates/mydownloads_modfile.html:1.1 Thu Sep 9 14:15:16 2004 +++ xoops2jp/html/modules/mydownloads/templates/mydownloads_modfile.html Mon May 30 21:00:11 2005 @@ -14,11 +14,11 @@ - + - + @@ -29,26 +29,26 @@ - + - + - + - + - +
    <{$lang_sitetitle}>
    <{$lang_siteurl}>
    <{$lang_category}>
    <{$lang_homepage}>
    <{$lang_version}>
    <{$lang_size}> <{$lang_bytes}> <{$lang_bytes}>
    <{$lang_platform}>
    <{$lang_description}>

     

     
    Index: xoops2jp/html/modules/mydownloads/templates/mydownloads_ratefile.html diff -u xoops2jp/html/modules/mydownloads/templates/mydownloads_ratefile.html:1.1 xoops2jp/html/modules/mydownloads/templates/mydownloads_ratefile.html:1.1.6.1 --- xoops2jp/html/modules/mydownloads/templates/mydownloads_ratefile.html:1.1 Thu Sep 9 14:15:16 2004 +++ xoops2jp/html/modules/mydownloads/templates/mydownloads_ratefile.html Mon May 30 21:00:11 2005 @@ -6,27 +6,27 @@


    -
    - +
    +
    -

    <{$file.title}>

      -
    • <{$lang_voteonce}> -
    • <{$lang_ratingscale}> -
    • <{$lang_beobjective}> -
    • <{$lang_donotvote}> +
    • <{$lang_voteonce}>
    • +
    • <{$lang_ratingscale}>
    • +
    • <{$lang_beobjective}>
    • +
    • <{$lang_donotvote}>
    - - + +   
    +
    Index: xoops2jp/html/modules/mydownloads/templates/mydownloads_submit.html diff -u xoops2jp/html/modules/mydownloads/templates/mydownloads_submit.html:1.1 xoops2jp/html/modules/mydownloads/templates/mydownloads_submit.html:1.1.6.1 --- xoops2jp/html/modules/mydownloads/templates/mydownloads_submit.html:1.1 Thu Sep 9 14:15:16 2004 +++ xoops2jp/html/modules/mydownloads/templates/mydownloads_submit.html Mon May 30 21:00:11 2005 @@ -18,51 +18,51 @@
    - - + - + - + - + Index: xoops2jp/html/modules/mydownloads/templates/mydownloads_viewcat.html diff -u xoops2jp/html/modules/mydownloads/templates/mydownloads_viewcat.html:1.1 xoops2jp/html/modules/mydownloads/templates/mydownloads_viewcat.html:1.1.6.1 --- xoops2jp/html/modules/mydownloads/templates/mydownloads_viewcat.html:1.1 Thu Sep 9 14:15:16 2004 +++ xoops2jp/html/modules/mydownloads/templates/mydownloads_viewcat.html Mon May 30 21:00:11 2005 @@ -5,7 +5,7 @@




    -
    +
    <{$lang_submitcath}> + <{$lang_submitcath}>
    <{$lang_sitetitle}><{$lang_sitetitle}>
    <{$lang_siteurl}><{$lang_siteurl}>
    <{$lang_category}><{$lang_category}> <{$category_selbox}>
    <{$lang_homepage}> - +
    <{$lang_version}> - +
    <{$lang_size}> - + <{$lang_bytes}>
    <{$lang_platform}> - +
    <{$lang_description}><{$lang_description}> <{$xoops_codes}><{$xoops_smilies}>
    @@ -19,7 +19,7 @@
    -
    + <{foreach item=subcat from=$subcategories}> <{if $subcat.count is div by 4}> From onokazu @ users.sourceforge.jp Mon May 30 21:26:41 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 21:26:41 +0900 Subject: [xoops-cvslog 36] CVS update: xoops2jp/html/modules/mylinks/blocks Message-ID: <20050530122641.DC1F02AC02A@users.sourceforge.jp> Index: xoops2jp/html/modules/mylinks/blocks/mylinks_top.php diff -u xoops2jp/html/modules/mylinks/blocks/mylinks_top.php:1.2 xoops2jp/html/modules/mylinks/blocks/mylinks_top.php:1.2.6.1 --- xoops2jp/html/modules/mylinks/blocks/mylinks_top.php:1.2 Fri Mar 18 21:52:24 2005 +++ xoops2jp/html/modules/mylinks/blocks/mylinks_top.php Mon May 30 21:26:41 2005 @@ -1,5 +1,5 @@ query("SELECT lid, cid, title, date, hits FROM ".$xoopsDB->prefix("mylinks_links")." WHERE status>0 ORDER BY ".$options[0]." DESC",$options[1],0); - while($myrow = $xoopsDB->fetchArray($result)){ - $link = array(); - $title = $myts->makeTboxData4Show($myrow["title"]); - if ( !XOOPS_USE_MULTIBYTES ) { - if (strlen($myrow['title']) >= $options[2]) { - $title = $myts->makeTboxData4Show(substr($myrow['title'],0,($options[2] -1)))."..."; - } - } - $link['id'] = $myrow['lid']; - $link['cid'] = $myrow['cid']; - $link['title'] = $title; - if($options[0] == "date"){ - $link['date'] = formatTimestamp($myrow['date'],'s'); - }elseif($options[0] == "hits"){ - $link['hits'] = $myrow['hits']; - } - $block['links'][] = $link; - } - return $block; + global $xoopsDB; + $block = array(); + $myts =& MyTextSanitizer::getInstance(); + $result = $xoopsDB->query("SELECT lid, cid, title, date, hits FROM ".$xoopsDB->prefix("mylinks_links")." WHERE status>0 ORDER BY ".$options[0]." DESC",$options[1],0); + while($myrow = $xoopsDB->fetchArray($result)){ + $link = array(); + $title = $myts->makeTboxData4Show($myrow["title"]); + if ( !XOOPS_USE_MULTIBYTES ) { + if (strlen($myrow['title']) >= $options[2]) { + $title = $myts->makeTboxData4Show(substr($myrow['title'],0,($options[2] -1)))."..."; + } + } + $link['id'] = $myrow['lid']; + $link['cid'] = $myrow['cid']; + $link['title'] = $title; + if($options[0] == "date"){ + $link['date'] = formatTimestamp($myrow['date'],'s'); + }elseif($options[0] == "hits"){ + $link['hits'] = $myrow['hits']; + } + $block['links'][] = $link; + } + return $block; } function b_mylinks_top_edit($options) { - $form = ""._MB_MYLINKS_DISP." "; - $form .= " "._MB_MYLINKS_LINKS.""; - $form .= " 
    "._MB_MYLINKS_CHARS."  "._MB_MYLINKS_LENGTH.""; + $form = ""._MB_MYLINKS_DISP." "; + $form .= " "._MB_MYLINKS_LINKS.""; + $form .= " 
    "._MB_MYLINKS_CHARS."  "._MB_MYLINKS_LENGTH.""; - return $form; + return $form; } ?> From onokazu @ users.sourceforge.jp Mon May 30 21:26:42 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 21:26:42 +0900 Subject: [xoops-cvslog 37] CVS update: xoops2jp/html/modules/mylinks Message-ID: <20050530122642.34FB42AC02B@users.sourceforge.jp> Index: xoops2jp/html/modules/mylinks/index.php diff -u xoops2jp/html/modules/mylinks/index.php:1.2 xoops2jp/html/modules/mylinks/index.php:1.2.6.1 --- xoops2jp/html/modules/mylinks/index.php:1.2 Fri Mar 18 21:52:24 2005 +++ xoops2jp/html/modules/mylinks/index.php Mon May 30 21:26:41 2005 @@ -1,5 +1,5 @@ fetchArray($result)) { - $imgurl = ''; - if ($myrow['imgurl'] && $myrow['imgurl'] != "http://"){ - $imgurl = $myts->makeTboxData4Edit($myrow['imgurl']); - } - $totallink = getTotalItems($myrow['cid'], 1); - // get child category objects - $arr = array(); - $arr = $mytree->getFirstChild($myrow['cid'], "title"); - $space = 0; - $chcount = 0; - $subcategories = ''; - foreach($arr as $ele){ - $chtitle = $myts->makeTboxData4Show($ele['title']); - if ($chcount > 5) { - $subcategories .= "..."; - break; - } - if ($space>0) { - $subcategories .= ", "; - } - $subcategories .= "".$chtitle.""; - $space++; - $chcount++; - } - $xoopsTpl->append('categories', array('image' => $imgurl, 'id' => $myrow['cid'], 'title' => $myts->makeTboxData4Show($myrow['title']), 'subcategories' => $subcategories, 'totallink' => $totallink, 'count' => $count)); - $count++; + $imgurl = ''; + if ($myrow['imgurl'] && $myrow['imgurl'] != "http://"){ + $imgurl = $myts->makeTboxData4Edit($myrow['imgurl']); + } + $totallink = getTotalItems($myrow['cid'], 1); + // get child category objects + $arr = array(); + $arr = $mytree->getFirstChild($myrow['cid'], "title"); + $space = 0; + $chcount = 0; + $subcategories = ''; + foreach($arr as $ele){ + $chtitle = $myts->makeTboxData4Show($ele['title']); + if ($chcount > 5) { + $subcategories .= "..."; + break; + } + if ($space>0) { + $subcategories .= ", "; + } + $subcategories .= "".$chtitle.""; + $space++; + $chcount++; + } + $xoopsTpl->append('categories', array('image' => $imgurl, 'id' => $myrow['cid'], 'title' => $myts->makeTboxData4Show($myrow['title']), 'subcategories' => $subcategories, 'totallink' => $totallink, 'count' => $count)); + $count++; } list($numrows) = $xoopsDB->fetchRow($xoopsDB->query("select count(*) from ".$xoopsDB->prefix("mylinks_links")." where status>0")); $xoopsTpl->assign('lang_thereare', sprintf(_MD_THEREARE,$numrows)); if ($xoopsModuleConfig['useshots'] == 1) { - $xoopsTpl->assign('shotwidth', $xoopsModuleConfig['shotwidth']); - $xoopsTpl->assign('tablewidth', $xoopsModuleConfig['shotwidth'] + 10); - $xoopsTpl->assign('show_screenshot', true); - $xoopsTpl->assign('lang_noscreenshot', _MD_NOSHOTS); + $xoopsTpl->assign('shotwidth', $xoopsModuleConfig['shotwidth']); + $xoopsTpl->assign('tablewidth', $xoopsModuleConfig['shotwidth'] + 10); + $xoopsTpl->assign('show_screenshot', true); + $xoopsTpl->assign('lang_noscreenshot', _MD_NOSHOTS); } if ($xoopsUser && $xoopsUser->isAdmin($xoopsModule->mid())) { - $isadmin = true; + $isadmin = true; } else { - $isadmin = false; + $isadmin = false; } $xoopsTpl->assign('lang_description', _MD_DESCRIPTIONC); @@ -92,22 +92,22 @@ $result = $xoopsDB->query("SELECT l.lid, l.cid, l.title, l.url, l.logourl, l.status, l.date, l.hits, l.rating, l.votes, l.comments, t.description FROM ".$xoopsDB->prefix("mylinks_links")." l, ".$xoopsDB->prefix("mylinks_text")." t where l.status>0 and l.lid=t.lid ORDER BY date DESC", $xoopsModuleConfig['newlinks'], 0); while(list($lid, $cid, $ltitle, $url, $logourl, $status, $time, $hits, $rating, $votes, $comments, $description) = $xoopsDB->fetchRow($result)) { - if ($isadmin) { - $adminlink = ''._MD_EDITTHISLINK.''; - } else { - $adminlink = ''; - } - if ($votes == 1) { - $votestring = _MD_ONEVOTE; - } else { - $votestring = sprintf(_MD_NUMVOTES,$votes); - } - $path = $mytree->getPathFromId($cid, "title"); - $path = substr($path, 1); - $path = str_replace("/"," ",$path); - $new = newlinkgraphic($time, $status); - $pop = popgraphic($hits); - $xoopsTpl->append('links', array('id' => $lid, 'cid' => $cid, 'rating' => number_format($rating, 2), 'title' => $myts->makeTboxData4Show($ltitle).$new.$pop, 'category' => $path, 'logourl' => $myts->makeTboxData4Show($logourl), 'updated' => formatTimestamp($time,"m"), 'description' => $myts->makeTareaData4Show($description,0), 'adminlink' => $adminlink, 'hits' => $hits, 'votes' => $votestring, 'comments' => $comments, 'mail_subject' => rawurlencode(sprintf(_MD_INTRESTLINK,$xoopsConfig['sitename'])), 'mail_body' => rawurlencode(sprintf(_MD_INTLINKFOUND,$xoopsConfig['sitename']).': '.XOOPS_URL.'/modules/mylinks/singlelink.php?cid='.$cid.'&lid='.$lid))); + if ($isadmin) { + $adminlink = ''._MD_EDITTHISLINK.''; + } else { + $adminlink = ''; + } + if ($votes == 1) { + $votestring = _MD_ONEVOTE; + } else { + $votestring = sprintf(_MD_NUMVOTES,$votes); + } + $path = $mytree->getPathFromId($cid, "title"); + $path = substr($path, 1); + $path = str_replace("/"," ",$path); + $new = newlinkgraphic($time, $status); + $pop = popgraphic($hits); + $xoopsTpl->append('links', array('id' => $lid, 'cid' => $cid, 'rating' => number_format($rating, 2), 'title' => $myts->makeTboxData4Show($ltitle).$new.$pop, 'category' => $path, 'logourl' => $myts->makeTboxData4Show($logourl), 'updated' => formatTimestamp($time,"m"), 'description' => $myts->makeTareaData4Show($description,0), 'adminlink' => $adminlink, 'hits' => $hits, 'votes' => $votestring, 'comments' => $comments, 'mail_subject' => rawurlencode(sprintf(_MD_INTRESTLINK,$xoopsConfig['sitename'])), 'mail_body' => rawurlencode(sprintf(_MD_INTLINKFOUND,$xoopsConfig['sitename']).': '.XOOPS_URL.'/modules/mylinks/singlelink.php?cid='.$cid.'&lid='.$lid))); } include XOOPS_ROOT_PATH.'/footer.php'; ?> Index: xoops2jp/html/modules/mylinks/singlelink.php diff -u xoops2jp/html/modules/mylinks/singlelink.php:1.2 xoops2jp/html/modules/mylinks/singlelink.php:1.2.6.1 --- xoops2jp/html/modules/mylinks/singlelink.php:1.2 Fri Mar 18 21:52:24 2005 +++ xoops2jp/html/modules/mylinks/singlelink.php Mon May 30 21:26:41 2005 @@ -1,5 +1,5 @@ getPathFromId($cid, "title"); $path = substr($path, 1); -$path = str_replace("/"," ",$path); +$path = str_replace("/"," ",$path); $new = newlinkgraphic($time, $status); $pop = popgraphic($hits); $xoopsTpl->assign('link', array('id' => $lid, 'cid' => $cid, 'rating' => number_format($rating, 2), 'title' => $myts->makeTboxData4Show($ltitle).$new.$pop, 'category' => $path, 'logourl' => $myts->makeTboxData4Show($logourl), 'updated' => formatTimestamp($time,"m"), 'description' => $myts->makeTareaData4Show($description,0), 'adminlink' => $adminlink, 'hits' => $hits, 'votes' => $votestring, 'comments' => $comments, 'mail_subject' => rawurlencode(sprintf(_MD_INTRESTLINK,$xoopsConfig['sitename'])), 'mail_body' => rawurlencode(sprintf(_MD_INTLINKFOUND,$xoopsConfig['sitename']).': '.XOOPS_URL.'/modules/mylinks/singlelink.php?lid='.$lid))); Index: xoops2jp/html/modules/mylinks/viewcat.php diff -u xoops2jp/html/modules/mylinks/viewcat.php:1.2 xoops2jp/html/modules/mylinks/viewcat.php:1.2.6.1 --- xoops2jp/html/modules/mylinks/viewcat.php:1.2 Fri Mar 18 21:52:24 2005 +++ xoops2jp/html/modules/mylinks/viewcat.php Mon May 30 21:26:41 2005 @@ -1,5 +1,5 @@ 0 ) { $scount = 1; foreach($arr as $ele){ - $sub_arr=array(); - $sub_arr=$mytree->getFirstChild($ele['cid'], "title"); - $space = 0; - $chcount = 0; - $infercategories = ""; - foreach($sub_arr as $sub_ele){ - $chtitle=$myts->makeTboxData4Show($sub_ele['title']); - if ($chcount>5){ - $infercategories .= "..."; - break; - } - if ($space>0) { - $infercategories .= ", "; - } - $infercategories .= "".$chtitle.""; - $space++; - $chcount++; - } - $xoopsTpl->append('subcategories', array('title' => $myts->makeTboxData4Show($ele['title']), 'id' => $ele['cid'], 'infercategories' => $infercategories, 'totallinks' => getTotalItems($ele['cid'], 1), 'count' => $scount)); - $scount++; + $sub_arr=array(); + $sub_arr=$mytree->getFirstChild($ele['cid'], "title"); + $space = 0; + $chcount = 0; + $infercategories = ""; + foreach($sub_arr as $sub_ele){ + $chtitle=$myts->makeTboxData4Show($sub_ele['title']); + if ($chcount>5){ + $infercategories .= "..."; + break; + } + if ($space>0) { + $infercategories .= ", "; + } + $infercategories .= "".$chtitle.""; + $space++; + $chcount++; + } + $xoopsTpl->append('subcategories', array('title' => $myts->makeTboxData4Show($ele['title']), 'id' => $ele['cid'], 'infercategories' => $infercategories, 'totallinks' => getTotalItems($ele['cid'], 1), 'count' => $scount)); + $scount++; } } @@ -108,7 +108,7 @@ $xoopsTpl->assign('lang_category' , _MD_CATEGORYC); $xoopsTpl->assign('lang_visit' , _MD_VISIT); $xoopsTpl->assign('show_links', true); - $xoopsTpl->assign('lang_comments' , _COMMENTS); + $xoopsTpl->assign('lang_comments' , _COMMENTS); $sql = "select l.lid, l.cid, l.title, l.url, l.logourl, l.status, l.date, l.hits, l.rating, l.votes, l.comments, t.description from ".$xoopsDB->prefix("mylinks_links")." l, ".$xoopsDB->prefix("mylinks_text")." t where cid=$cid and l.lid=t.lid and status>0 order by $orderby"; $result=$xoopsDB->query($sql,$show,$min); @@ -136,17 +136,17 @@ } $path = $mytree->getPathFromId($cid, "title"); $path = substr($path, 1); - $path = str_replace("/"," ",$path); + $path = str_replace("/"," ",$path); $new = newlinkgraphic($time, $status); $pop = popgraphic($hits); $xoopsTpl->append('links', array('id' => $lid, 'cid' => $cid, 'rating' => number_format($rating, 2), 'title' => $myts->makeTboxData4Show($ltitle).$new.$pop, 'category' => $path, 'logourl' => $myts->makeTboxData4Show($logourl), 'updated' => formatTimestamp($time,"m"), 'description' => $myts->makeTareaData4Show($description,0), 'adminlink' => $adminlink, 'hits' => $hits, 'comments' => $comments, 'votes' => $votestring, 'mail_subject' => rawurlencode(sprintf(_MD_INTRESTLINK,$xoopsConfig['sitename'])), 'mail_body' => rawurlencode(sprintf(_MD_INTLINKFOUND,$xoopsConfig['sitename']).': '.XOOPS_URL.'/modules/mylinks/singlelink.php?cid='.$cid.'&lid='.$lid))); - } + } $orderby = convertorderbyout($orderby); //Calculates how many pages exist. Which page one should be on, etc... $linkpages = ceil($numrows / $show); //Page Numbering if ($linkpages!=1 && $linkpages!=0) { - $cid = intval($HTTP_GET_VARS['cid']); + $cid = intval($HTTP_GET_VARS['cid']); $prev = $min - $show; if ($prev>=0) { $page_nav .= "« "; From onokazu @ users.sourceforge.jp Mon May 30 21:26:42 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 21:26:42 +0900 Subject: [xoops-cvslog 38] CVS update: xoops2jp/html/modules/mylinks/templates Message-ID: <20050530122642.7CBA82AC02A@users.sourceforge.jp> Index: xoops2jp/html/modules/mylinks/templates/mylinks_link.html diff -u xoops2jp/html/modules/mylinks/templates/mylinks_link.html:1.1 xoops2jp/html/modules/mylinks/templates/mylinks_link.html:1.1.6.1 --- xoops2jp/html/modules/mylinks/templates/mylinks_link.html:1.1 Thu Sep 9 14:15:16 2004 +++ xoops2jp/html/modules/mylinks/templates/mylinks_link.html Mon May 30 21:26:42 2005 @@ -3,7 +3,7 @@ - + Index: xoops2jp/html/modules/mylinks/templates/mylinks_modlink.html diff -u xoops2jp/html/modules/mylinks/templates/mylinks_modlink.html:1.1 xoops2jp/html/modules/mylinks/templates/mylinks_modlink.html:1.1.6.1 --- xoops2jp/html/modules/mylinks/templates/mylinks_modlink.html:1.1 Thu Sep 9 14:15:16 2004 +++ xoops2jp/html/modules/mylinks/templates/mylinks_modlink.html Mon May 30 21:26:42 2005 @@ -13,11 +13,11 @@ - + - + @@ -28,10 +28,10 @@ - + - +
    <{$subcat.title}> (<{$subcat.totallinks}>)
    <{$subcat.infercategories}>
    <{$lang_category}> <{$link.category}>
    <{$lang_visit}><{$link.title}><{$lang_visit}><{$link.title}> <{$lang_lastupdate}><{$link.updated}>
    <{$lang_sitetitle}>
    <{$lang_siteurl}>
    <{$lang_category}>
    <{$lang_description}>

     

     
    Index: xoops2jp/html/modules/mylinks/templates/mylinks_ratelink.html diff -u xoops2jp/html/modules/mylinks/templates/mylinks_ratelink.html:1.1 xoops2jp/html/modules/mylinks/templates/mylinks_ratelink.html:1.1.6.1 --- xoops2jp/html/modules/mylinks/templates/mylinks_ratelink.html:1.1 Thu Sep 9 14:15:16 2004 +++ xoops2jp/html/modules/mylinks/templates/mylinks_ratelink.html Mon May 30 21:26:42 2005 @@ -4,24 +4,24 @@

    -
    - +
    +
    "; $module_handler =& xoops_gethandler('module'); - $installed_mods =& $module_handler->getObjects(); + $installed_mods =& $module_handler->getObjects(new CriteriaCompo()); $listed_mods = array(); $count = 0; foreach ( $installed_mods as $module ) { From onokazu @ users.sourceforge.jp Tue May 31 15:14:43 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Tue, 31 May 2005 15:14:43 +0900 Subject: [xoops-cvslog 51] CVS update: xoops2jp/html/include Message-ID: <20050531061443.B5D882AC00E@users.sourceforge.jp> Index: xoops2jp/html/include/calendarjs.php diff -u xoops2jp/html/include/calendarjs.php:1.1 xoops2jp/html/include/calendarjs.php:1.1.6.1 --- xoops2jp/html/include/calendarjs.php:1.1 Thu Sep 9 14:15:01 2004 +++ xoops2jp/html/include/calendarjs.php Tue May 31 15:14:43 2005 @@ -1,6 +1,6 @@ - @@ -32,7 +32,7 @@ if (calendar != null) { calendar.hide(); } else { - var cal = new Calendar(true, , selected, closeHandler); + var cal = new Calendar(true, , selected, closeHandler); calendar = cal; cal.setRange(2000, 2015); calendar.create(); From onokazu @ users.sourceforge.jp Tue May 31 15:15:14 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Tue, 31 May 2005 15:15:14 +0900 Subject: [xoops-cvslog 52] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20050531061514.270372AC00E@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/formtextdateselect.php diff -u xoops2jp/html/class/xoopsform/formtextdateselect.php:1.2.6.1 xoops2jp/html/class/xoopsform/formtextdateselect.php:1.2.6.2 --- xoops2jp/html/class/xoopsform/formtextdateselect.php:1.2.6.1 Tue Apr 5 03:53:56 2005 +++ xoops2jp/html/class/xoopsform/formtextdateselect.php Tue May 31 15:15:13 2005 @@ -1,5 +1,5 @@ getValue(), 'F j Y, H:i:s'); + $jstime = formatTimestamp($this->getValue(), 'F j, Y H:i:s'); include_once XOOPS_ROOT_PATH.'/include/calendarjs.php'; return "getExtra()." />"; } From onokazu @ users.sourceforge.jp Tue May 31 15:38:34 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Tue, 31 May 2005 15:38:34 +0900 Subject: [xoops-cvslog 53] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20050531063834.634622AC00E@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/formtextdateselect.php diff -u xoops2jp/html/class/xoopsform/formtextdateselect.php:1.2.6.2 xoops2jp/html/class/xoopsform/formtextdateselect.php:1.2.6.3 --- xoops2jp/html/class/xoopsform/formtextdateselect.php:1.2.6.2 Tue May 31 15:15:13 2005 +++ xoops2jp/html/class/xoopsform/formtextdateselect.php Tue May 31 15:38:34 2005 @@ -1,5 +1,5 @@ getValue(), 'F j, Y H:i:s'); + $jstime = formatTimestamp($this->getValue(), '"F j, Y H:i:s"'); include_once XOOPS_ROOT_PATH.'/include/calendarjs.php'; return "getExtra()." />"; } From onokazu @ users.sourceforge.jp Tue May 31 15:38:34 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Tue, 31 May 2005 15:38:34 +0900 Subject: [xoops-cvslog 54] CVS update: xoops2jp/html/include Message-ID: <20050531063834.9FC502AC012@users.sourceforge.jp> Index: xoops2jp/html/include/calendarjs.php diff -u xoops2jp/html/include/calendarjs.php:1.1.6.1 xoops2jp/html/include/calendarjs.php:1.1.6.2 --- xoops2jp/html/include/calendarjs.php:1.1.6.1 Tue May 31 15:14:43 2005 +++ xoops2jp/html/include/calendarjs.php Tue May 31 15:38:34 2005 @@ -32,7 +32,7 @@ if (calendar != null) { calendar.hide(); } else { - var cal = new Calendar(true, , selected, closeHandler); + var cal = new Calendar(true, , selected, closeHandler); calendar = cal; cal.setRange(2000, 2015); calendar.create(); From onokazu @ users.sourceforge.jp Tue May 31 15:39:26 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Tue, 31 May 2005 15:39:26 +0900 Subject: [xoops-cvslog 54] CVS update: xoops2jp/html/include Message-ID: <20050531063926.12C7D2AC00E@users.sourceforge.jp> Index: xoops2jp/html/include/calendarjs.php diff -u xoops2jp/html/include/calendarjs.php:1.1.6.2 xoops2jp/html/include/calendarjs.php:1.1.6.3 --- xoops2jp/html/include/calendarjs.php:1.1.6.2 Tue May 31 15:38:34 2005 +++ xoops2jp/html/include/calendarjs.php Tue May 31 15:39:25 2005 @@ -32,7 +32,7 @@ if (calendar != null) { calendar.hide(); } else { - var cal = new Calendar(true, , selected, closeHandler); + var cal = new Calendar(true, , selected, closeHandler); calendar = cal; cal.setRange(2000, 2015); calendar.create(); From onokazu @ users.sourceforge.jp Tue May 31 22:27:11 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Tue, 31 May 2005 22:27:11 +0900 Subject: [xoops-cvslog 55] CVS update: xoops2jp/html/class/mail/phpmailer Message-ID: <20050531132711.F11FF2AC02B@users.sourceforge.jp> Index: xoops2jp/html/class/mail/phpmailer/class.smtp.php diff -u xoops2jp/html/class/mail/phpmailer/class.smtp.php:1.1 xoops2jp/html/class/mail/phpmailer/class.smtp.php:1.1.6.1 --- xoops2jp/html/class/mail/phpmailer/class.smtp.php:1.1 Thu Sep 9 14:14:50 2004 +++ xoops2jp/html/class/mail/phpmailer/class.smtp.php Tue May 31 22:27:11 2005 @@ -314,6 +314,14 @@ # smaller lines while(strlen($line) > $max_line_length) { $pos = strrpos(substr($line,0,$max_line_length)," "); + + // fix for infinite loop bug + // added by onokazu, 2005/5/31 + if (!$pos) { + $pos = $max_line_length - 1; + } + // end fix + $lines_out[] = substr($line,0,$pos); $line = substr($line,$pos + 1); # if we are processing headers we need to

    <{$link.title}>

      -
    • <{$lang_voteonce}> -
    • <{$lang_ratingscale}> -
    • <{$lang_beobjective}> -
    • <{$lang_donotvote}> +
    • <{$lang_voteonce}>
    • +
    • <{$lang_ratingscale}>
    • +
    • <{$lang_beobjective}>
    • +
    • <{$lang_donotvote}>
    - - + +   
    Index: xoops2jp/html/modules/mylinks/templates/mylinks_submit.html diff -u xoops2jp/html/modules/mylinks/templates/mylinks_submit.html:1.1 xoops2jp/html/modules/mylinks/templates/mylinks_submit.html:1.1.6.1 --- xoops2jp/html/modules/mylinks/templates/mylinks_submit.html:1.1 Thu Sep 9 14:15:16 2004 +++ xoops2jp/html/modules/mylinks/templates/mylinks_submit.html Mon May 30 21:26:42 2005 @@ -17,12 +17,12 @@
    - - - - -
    +
    <{$lang_submitlinkh}>
    +
    <{$lang_sitetitle}>
    @@ -32,7 +32,7 @@
    +
    <{$lang_siteurl}>
    @@ -40,14 +40,14 @@
    +
    <{$lang_category}>
    <{$category_selbox}>
    +
    <{$lang_description}>
    From onokazu @ users.sourceforge.jp Mon May 30 21:49:40 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 30 May 2005 21:49:40 +0900 Subject: [xoops-cvslog 39] CVS update: xoops2jp/html/include Message-ID: <20050530124940.D66492AC011@users.sourceforge.jp> Index: xoops2jp/html/include/common.php diff -u xoops2jp/html/include/common.php:1.4.6.5 xoops2jp/html/include/common.php:1.4.6.6 --- xoops2jp/html/include/common.php:1.4.6.5 Wed Apr 27 21:10:14 2005 +++ xoops2jp/html/include/common.php Mon May 30 21:49:40 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/class/xoopslists.php diff -u xoops2jp/html/class/xoopslists.php:1.2 xoops2jp/html/class/xoopslists.php:1.2.6.1 --- xoops2jp/html/class/xoopslists.php:1.2 Fri Mar 18 21:51:55 2005 +++ xoops2jp/html/class/xoopslists.php Tue May 31 12:40:34 2005 @@ -1,5 +1,5 @@ _TZ_GMTM12, "-11" => _TZ_GMTM11, "-10" => _TZ_GMTM10, "-9" => _TZ_GMTM9, "-8" => _TZ_GMTM8, "-7" => _TZ_GMTM7, "-6" => _TZ_GMTM6, "-5" => _TZ_GMTM5, "-4" => _TZ_GMTM4, "-3.5" => _TZ_GMTM35, "-3" => _TZ_GMTM3, "-2" => _TZ_GMTM2, "-1" => _TZ_GMTM1, "0" => _TZ_GMT0, "1" => _TZ_GMTP1, "2" => _TZ_GMTP2, "3" => _TZ_GMTP3, "3.5" => _TZ_GMTP35, "4" => _TZ_GMTP4, "4.5" => _TZ_GMTP45, "5" => _TZ_GMTP5, "5.5" => _TZ_GMTP55, "6" => _TZ_GMTP6, "7" => _TZ_GMTP7, "8" => _TZ_GMTP8, "9" => _TZ_GMTP9, "9.5" => _TZ_GMTP95, "10" => _TZ_GMTP10, "11" => _TZ_GMTP11, "12" => _TZ_GMTP12); - return $time_zone_list; - } - - /* - * gets list of themes folder from themes directory - */ - function &getThemesList() - { - return XoopsLists::getDirListAsArray(XOOPS_THEME_PATH.'/'); - } - - /* - * gets a list of module folders from the modules directory - */ - function &getModulesList() - { - return XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH."/modules/"); - } - - /* - * gets list of name of directories inside a directory - */ - function &getDirListAsArray($dirname) - { - $dirlist = array(); - if (is_dir($dirname) && $handle = opendir($dirname)) { - while (false !== ($file = readdir($handle))) { - if ( !preg_match("/^[\.]{1,2}$/",$file) ) { - if (strtolower($file) != 'cvs' && is_dir($dirname.$file) ) { - $dirlist[$file]=$file; - } - } - } - closedir($handle); - asort($dirlist); - reset($dirlist); - } - return $dirlist; - } - - /* - * gets list of all files in a directory - */ - function &getFileListAsArray($dirname, $prefix="") - { - $filelist = array(); - if (substr($dirname, -1) == '/') { - $dirname = substr($dirname, 0, -1); - } - if (is_dir($dirname) && $handle = opendir($dirname)) { - while (false !== ($file = readdir($handle))) { - if (!preg_match("/^[\.]{1,2}$/",$file) && is_file($dirname.'/'.$file)) { - $file = $prefix.$file; - $filelist[$file]=$file; - } - } - closedir($handle); - asort($filelist); - reset($filelist); - } - return $filelist; - } - - /* - * gets list of image file names in a directory - */ - function &getImgListAsArray($dirname, $prefix="") - { - $filelist = array(); - if ($handle = opendir($dirname)) { - while (false !== ($file = readdir($handle))) { - if ( !preg_match("/^[\.]{1,2}$/",$file) && preg_match("/(\.gif|\.jpg|\.png)$/i",$file) ) { - $file = $prefix.$file; - $filelist[$file]=$file; - } - } - closedir($handle); - asort($filelist); - reset($filelist); - } - return $filelist; - } - - /* - * gets list of html file names in a certain directory - */ - function &getHtmlListAsArray($dirname, $prefix="") - { - $filelist = array(); - if ($handle = opendir($dirname)) { - while (false !== ($file = readdir($handle))) { - if ( ( !preg_match( "/^[\.]{1,2}$/", $file ) && preg_match( "/(\.htm|\.html|\.xhtml)$/i", $file ) && !is_dir( $file ) ) ) - { - if ( strtolower( $file ) != 'cvs' && !is_dir( $file ) ) - { - $file = $prefix.$file; - $filelist[$file] = $prefix.$file; - } - } - } - closedir($handle); - asort($filelist); - reset($filelist); - } - return $filelist; - } - - /* - * gets list of avatar file names in a certain directory - * if directory is not specified, default directory will be searched - */ - function &getAvatarsList($avatar_dir="") - { - $avatars = array(); - if ( $avatar_dir != "" ) { - $avatars =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/images/avatar/".$avatar_dir."/", $avatar_dir."/"); - } else { - $avatars =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/images/avatar/"); - } - return $avatars; - } - - /* - * gets list of all avatar image files inside default avatars directory - */ - function &getAllAvatarsList() - { - $avatars = array(); - $dirlist = array(); - $dirlist =& XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH."/images/avatar/"); - if ( count($dirlist) > 0 ) { - foreach ( $dirlist as $dir ) { - $avatars[$dir] =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/images/avatar/".$dir."/", $dir."/"); - } - } else { - return false; - } - return $avatars; - } - - /* - * gets list of subject icon image file names in a certain directory - * if directory is not specified, default directory will be searched - */ - function &getSubjectsList($sub_dir="") - { - $subjects = array(); - if($sub_dir != ""){ - $subjects =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/images/subject/".$sub_dir, $sub_dir."/"); - } else { - $subjects =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/images/subject/"); - } - return $subjects; - } - - /* - * gets list of language folders inside default language directory - */ - function &getLangList() - { - $lang_list = array(); - $lang_list =& XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH."/language/"); - return $lang_list; - } - - function &getCountryList() - { - $country_list = array ( - "" => "-", - "AD" => "Andorra", - "AE" => "United Arab Emirates", - "AF" => "Afghanistan", - "AG" => "Antigua and Barbuda", - "AI" => "Anguilla", - "AL" => "Albania", - "AM" => "Armenia", - "AN" => "Netherlands Antilles", - "AO" => "Angola", - "AQ" => "Antarctica", - "AR" => "Argentina", - "AS" => "American Samoa", - "AT" => "Austria", - "AU" => "Australia", - "AW" => "Aruba", - "AZ" => "Azerbaijan", - "BA" => "Bosnia and Herzegovina", - "BB" => "Barbados", - "BD" => "Bangladesh", - "BE" => "Belgium", - "BF" => "Burkina Faso", - "BG" => "Bulgaria", - "BH" => "Bahrain", - "BI" => "Burundi", - "BJ" => "Benin", - "BM" => "Bermuda", - "BN" => "Brunei Darussalam", - "BO" => "Bolivia", - "BR" => "Brazil", - "BS" => "Bahamas", - "BT" => "Bhutan", - "BV" => "Bouvet Island", - "BW" => "Botswana", - "BY" => "Belarus", - "BZ" => "Belize", - "CA" => "Canada", - "CC" => "Cocos (Keeling) Islands", - "CF" => "Central African Republic", - "CG" => "Congo", - "CH" => "Switzerland", - "CI" => "Cote D'Ivoire (Ivory Coast)", - "CK" => "Cook Islands", - "CL" => "Chile", - "CM" => "Cameroon", - "CN" => "China", - "CO" => "Colombia", - "CR" => "Costa Rica", - "CS" => "Czechoslovakia (former)", - "CU" => "Cuba", - "CV" => "Cape Verde", - "CX" => "Christmas Island", - "CY" => "Cyprus", - "CZ" => "Czech Republic", - "DE" => "Germany", - "DJ" => "Djibouti", - "DK" => "Denmark", - "DM" => "Dominica", - "DO" => "Dominican Republic", - "DZ" => "Algeria", - "EC" => "Ecuador", - "EE" => "Estonia", - "EG" => "Egypt", - "EH" => "Western Sahara", - "ER" => "Eritrea", - "ES" => "Spain", - "ET" => "Ethiopia", - "FI" => "Finland", - "FJ" => "Fiji", - "FK" => "Falkland Islands (Malvinas)", - "FM" => "Micronesia", - "FO" => "Faroe Islands", - "FR" => "France", - "FX" => "France, Metropolitan", - "GA" => "Gabon", - "GB" => "Great Britain (UK)", - "GD" => "Grenada", - "GE" => "Georgia", - "GF" => "French Guiana", - "GH" => "Ghana", - "GI" => "Gibraltar", - "GL" => "Greenland", - "GM" => "Gambia", - "GN" => "Guinea", - "GP" => "Guadeloupe", - "GQ" => "Equatorial Guinea", - "GR" => "Greece", - "GS" => "S. Georgia and S. Sandwich Isls.", - "GT" => "Guatemala", - "GU" => "Guam", - "GW" => "Guinea-Bissau", - "GY" => "Guyana", - "HK" => "Hong Kong", - "HM" => "Heard and McDonald Islands", - "HN" => "Honduras", - "HR" => "Croatia (Hrvatska)", - "HT" => "Haiti", - "HU" => "Hungary", - "ID" => "Indonesia", - "IE" => "Ireland", - "IL" => "Israel", - "IN" => "India", - "IO" => "British Indian Ocean Territory", - "IQ" => "Iraq", - "IR" => "Iran", - "IS" => "Iceland", - "IT" => "Italy", - "JM" => "Jamaica", - "JO" => "Jordan", - "JP" => "Japan", - "KE" => "Kenya", - "KG" => "Kyrgyzstan", - "KH" => "Cambodia", - "KI" => "Kiribati", - "KM" => "Comoros", - "KN" => "Saint Kitts and Nevis", - "KP" => "Korea (North)", - "KR" => "Korea (South)", - "KW" => "Kuwait", - "KY" => "Cayman Islands", - "KZ" => "Kazakhstan", - "LA" => "Laos", - "LB" => "Lebanon", - "LC" => "Saint Lucia", - "LI" => "Liechtenstein", - "LK" => "Sri Lanka", - "LR" => "Liberia", - "LS" => "Lesotho", - "LT" => "Lithuania", - "LU" => "Luxembourg", - "LV" => "Latvia", - "LY" => "Libya", - "MA" => "Morocco", - "MC" => "Monaco", - "MD" => "Moldova", - "MG" => "Madagascar", - "MH" => "Marshall Islands", - "MK" => "Macedonia", - "ML" => "Mali", - "MM" => "Myanmar", - "MN" => "Mongolia", - "MO" => "Macau", - "MP" => "Northern Mariana Islands", - "MQ" => "Martinique", - "MR" => "Mauritania", - "MS" => "Montserrat", - "MT" => "Malta", - "MU" => "Mauritius", - "MV" => "Maldives", - "MW" => "Malawi", - "MX" => "Mexico", - "MY" => "Malaysia", - "MZ" => "Mozambique", - "NA" => "Namibia", - "NC" => "New Caledonia", - "NE" => "Niger", - "NF" => "Norfolk Island", - "NG" => "Nigeria", - "NI" => "Nicaragua", - "NL" => "Netherlands", - "NO" => "Norway", - "NP" => "Nepal", - "NR" => "Nauru", - "NT" => "Neutral Zone", - "NU" => "Niue", - "NZ" => "New Zealand (Aotearoa)", - "OM" => "Oman", - "PA" => "Panama", - "PE" => "Peru", - "PF" => "French Polynesia", - "PG" => "Papua New Guinea", - "PH" => "Philippines", - "PK" => "Pakistan", - "PL" => "Poland", - "PM" => "St. Pierre and Miquelon", - "PN" => "Pitcairn", - "PR" => "Puerto Rico", - "PT" => "Portugal", - "PW" => "Palau", - "PY" => "Paraguay", - "QA" => "Qatar", - "RE" => "Reunion", - "RO" => "Romania", - "RU" => "Russian Federation", - "RW" => "Rwanda", - "SA" => "Saudi Arabia", - "Sb" => "Solomon Islands", - "SC" => "Seychelles", - "SD" => "Sudan", - "SE" => "Sweden", - "SG" => "Singapore", - "SH" => "St. Helena", - "SI" => "Slovenia", - "SJ" => "Svalbard and Jan Mayen Islands", - "SK" => "Slovak Republic", - "SL" => "Sierra Leone", - "SM" => "San Marino", - "SN" => "Senegal", - "SO" => "Somalia", - "SR" => "Suriname", - "ST" => "Sao Tome and Principe", - "SU" => "USSR (former)", - "SV" => "El Salvador", - "SY" => "Syria", - "SZ" => "Swaziland", - "TC" => "Turks and Caicos Islands", - "TD" => "Chad", - "TF" => "French Southern Territories", - "TG" => "Togo", - "TH" => "Thailand", - "TJ" => "Tajikistan", - "TK" => "Tokelau", - "TM" => "Turkmenistan", - "TN" => "Tunisia", - "TO" => "Tonga", - "TP" => "East Timor", - "TR" => "Turkey", - "TT" => "Trinidad and Tobago", - "TV" => "Tuvalu", - "TW" => "Taiwan", - "TZ" => "Tanzania", - "UA" => "Ukraine", - "UG" => "Uganda", - "UK" => "United Kingdom", - "UM" => "US Minor Outlying Islands", - "US" => "United States", - "UY" => "Uruguay", - "UZ" => "Uzbekistan", - "VA" => "Vatican City State (Holy See)", - "VC" => "Saint Vincent and the Grenadines", - "VE" => "Venezuela", - "VG" => "Virgin Islands (British)", - "VI" => "Virgin Islands (U.S.)", - "VN" => "Viet Nam", - "VU" => "Vanuatu", - "WF" => "Wallis and Futuna Islands", - "WS" => "Samoa", - "YE" => "Yemen", - "YT" => "Mayotte", - "YU" => "Yugoslavia", - "ZA" => "South Africa", - "ZM" => "Zambia", - "ZR" => "Zaire", - "ZW" => "Zimbabwe" - ); - asort($country_list); - reset($country_list); - return $country_list; - } - - function &getHtmlList() - { - $html_list = array ( - "a" => "<a>", - "abbr" => "<abbr>", - "acronym" => "<acronym>", - "address" => "<address>", - "b" => "<b>", - "bdo" => "<bdo>", - "big" => "<big>", - "blockquote" => "<blockquote>", - "caption" => "<caption>", - "cite" => "<cite>", - "code" => "<code>", - "col" => "<col>", - "colgroup" => "<colgroup>", - "dd" => "<dd>", - "del" => "<del>", - "dfn" => "<dfn>", - "div" => "<div>", - "dl" => "<dl>", - "dt" => "<dt>", - "em" => "<em>", - "font" => "<font>", - "h1" => "<h1>", - "h2" => "<h2>", - "h3" => "<h3>", - "h4" => "<h4>", - "h5" => "<h5>", - "h6" => "<h6>", - "hr" => "<hr>", - "i" => "<i>", - "img" => "<img>", - "ins" => "<ins>", - "kbd" => "<kbd>", - "li" => "<li>", - "map" => "<map>", - "object" => "<object>", - "ol" => "<ol>", - "samp" => "<samp>", - "small" => "<small>", - "strong" => "<strong>", - "sub" => "<sub>", - "sup" => "<sup>", - "table" => "<table>", - "tbody" => "<tbody>", - "td" => "<td>", - "tfoot" => "<tfoot>", - "th" => "<th>", - "thead" => "<thead>", - "tr" => "<tr>", - "tt" => "<tt>", - "ul" => "<ul>", - "var" => "<var>" - ); - asort($html_list); - reset($html_list); - return $html_list; - } - - function &getUserRankList() - { - $db =& Database::getInstance(); - $myts =& MyTextSanitizer::getInstance(); - $sql = "SELECT rank_id, rank_title FROM ".$db->prefix("ranks")." WHERE rank_special = 1"; - $ret = array(); - $result = $db->query($sql); - while ( $myrow = $db->fetchArray($result) ) { - $ret[$myrow['rank_id']] = $myts->makeTboxData4Show($myrow['rank_title']); - } - return $ret; - } - } + define("XOOPS_LISTS_INCLUDED",1); + class XoopsLists + { + function &getTimeZoneList() + { + include_once XOOPS_ROOT_PATH.'/language/'.$GLOBALS['xoopsConfig']['language'].'/timezone.php'; + $time_zone_list = array ("-12" => _TZ_GMTM12, "-11" => _TZ_GMTM11, "-10" => _TZ_GMTM10, "-9" => _TZ_GMTM9, "-8" => _TZ_GMTM8, "-7" => _TZ_GMTM7, "-6" => _TZ_GMTM6, "-5" => _TZ_GMTM5, "-4" => _TZ_GMTM4, "-3.5" => _TZ_GMTM35, "-3" => _TZ_GMTM3, "-2" => _TZ_GMTM2, "-1" => _TZ_GMTM1, "0" => _TZ_GMT0, "1" => _TZ_GMTP1, "2" => _TZ_GMTP2, "3" => _TZ_GMTP3, "3.5" => _TZ_GMTP35, "4" => _TZ_GMTP4, "4.5" => _TZ_GMTP45, "5" => _TZ_GMTP5, "5.5" => _TZ_GMTP55, "6" => _TZ_GMTP6, "7" => _TZ_GMTP7, "8" => _TZ_GMTP8, "9" => _TZ_GMTP9, "9.5" => _TZ_GMTP95, "10" => _TZ_GMTP10, "11" => _TZ_GMTP11, "12" => _TZ_GMTP12); + return $time_zone_list; + } + + /* + * gets list of themes folder from themes directory + */ + function &getThemesList() + { + return XoopsLists::getDirListAsArray(XOOPS_THEME_PATH.'/'); + } + + /* + * gets a list of module folders from the modules directory + */ + function &getModulesList() + { + return XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH."/modules/"); + } + + /* + * gets list of name of directories inside a directory + */ + function &getDirListAsArray($dirname) + { + $dirlist = array(); + if (is_dir($dirname) && $handle = opendir($dirname)) { + while (false !== ($file = readdir($handle))) { + if (!preg_match("/^\..*$/", $file)) { + if (strtolower($file) != 'cvs' && is_dir($dirname.$file) ) { + $dirlist[$file]=$file; + } + } + } + closedir($handle); + asort($dirlist); + reset($dirlist); + } + return $dirlist; + } + + /* + * gets list of all files in a directory + */ + function &getFileListAsArray($dirname, $prefix="") + { + $filelist = array(); + if (substr($dirname, -1) == '/') { + $dirname = substr($dirname, 0, -1); + } + if (is_dir($dirname) && $handle = opendir($dirname)) { + while (false !== ($file = readdir($handle))) { + if (!preg_match("/^[\.]{1,2}$/",$file) && is_file($dirname.'/'.$file)) { + $file = $prefix.$file; + $filelist[$file]=$file; + } + } + closedir($handle); + asort($filelist); + reset($filelist); + } + return $filelist; + } + + /* + * gets list of image file names in a directory + */ + function &getImgListAsArray($dirname, $prefix="") + { + $filelist = array(); + if ($handle = opendir($dirname)) { + while (false !== ($file = readdir($handle))) { + if ( !preg_match("/^[\.]{1,2}$/",$file) && preg_match("/(\.gif|\.jpg|\.png)$/i",$file) ) { + $file = $prefix.$file; + $filelist[$file]=$file; + } + } + closedir($handle); + asort($filelist); + reset($filelist); + } + return $filelist; + } + + /* + * gets list of html file names in a certain directory + */ + function &getHtmlListAsArray($dirname, $prefix="") + { + $filelist = array(); + if ($handle = opendir($dirname)) { + while (false !== ($file = readdir($handle))) { + if ( ( !preg_match( "/^[\.]{1,2}$/", $file ) && preg_match( "/(\.htm|\.html|\.xhtml)$/i", $file ) && !is_dir( $file ) ) ) + { + if ( strtolower( $file ) != 'cvs' && !is_dir( $file ) ) + { + $file = $prefix.$file; + $filelist[$file] = $prefix.$file; + } + } + } + closedir($handle); + asort($filelist); + reset($filelist); + } + return $filelist; + } + + /* + * gets list of avatar file names in a certain directory + * if directory is not specified, default directory will be searched + */ + function &getAvatarsList($avatar_dir="") + { + $avatars = array(); + if ( $avatar_dir != "" ) { + $avatars =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/images/avatar/".$avatar_dir."/", $avatar_dir."/"); + } else { + $avatars =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/images/avatar/"); + } + return $avatars; + } + + /* + * gets list of all avatar image files inside default avatars directory + */ + function &getAllAvatarsList() + { + $avatars = array(); + $dirlist = array(); + $dirlist =& XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH."/images/avatar/"); + if ( count($dirlist) > 0 ) { + foreach ( $dirlist as $dir ) { + $avatars[$dir] =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/images/avatar/".$dir."/", $dir."/"); + } + } else { + return false; + } + return $avatars; + } + + /* + * gets list of subject icon image file names in a certain directory + * if directory is not specified, default directory will be searched + */ + function &getSubjectsList($sub_dir="") + { + $subjects = array(); + if($sub_dir != ""){ + $subjects =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/images/subject/".$sub_dir, $sub_dir."/"); + } else { + $subjects =& XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/images/subject/"); + } + return $subjects; + } + + /* + * gets list of language folders inside default language directory + */ + function &getLangList() + { + $lang_list = array(); + $lang_list =& XoopsLists::getDirListAsArray(XOOPS_ROOT_PATH."/language/"); + return $lang_list; + } + + function &getCountryList() + { + $country_list = array ( + "" => "-", + "AD" => "Andorra", + "AE" => "United Arab Emirates", + "AF" => "Afghanistan", + "AG" => "Antigua and Barbuda", + "AI" => "Anguilla", + "AL" => "Albania", + "AM" => "Armenia", + "AN" => "Netherlands Antilles", + "AO" => "Angola", + "AQ" => "Antarctica", + "AR" => "Argentina", + "AS" => "American Samoa", + "AT" => "Austria", + "AU" => "Australia", + "AW" => "Aruba", + "AZ" => "Azerbaijan", + "BA" => "Bosnia and Herzegovina", + "BB" => "Barbados", + "BD" => "Bangladesh", + "BE" => "Belgium", + "BF" => "Burkina Faso", + "BG" => "Bulgaria", + "BH" => "Bahrain", + "BI" => "Burundi", + "BJ" => "Benin", + "BM" => "Bermuda", + "BN" => "Brunei Darussalam", + "BO" => "Bolivia", + "BR" => "Brazil", + "BS" => "Bahamas", + "BT" => "Bhutan", + "BV" => "Bouvet Island", + "BW" => "Botswana", + "BY" => "Belarus", + "BZ" => "Belize", + "CA" => "Canada", + "CC" => "Cocos (Keeling) Islands", + "CF" => "Central African Republic", + "CG" => "Congo", + "CH" => "Switzerland", + "CI" => "Cote D'Ivoire (Ivory Coast)", + "CK" => "Cook Islands", + "CL" => "Chile", + "CM" => "Cameroon", + "CN" => "China", + "CO" => "Colombia", + "CR" => "Costa Rica", + "CS" => "Czechoslovakia (former)", + "CU" => "Cuba", + "CV" => "Cape Verde", + "CX" => "Christmas Island", + "CY" => "Cyprus", + "CZ" => "Czech Republic", + "DE" => "Germany", + "DJ" => "Djibouti", + "DK" => "Denmark", + "DM" => "Dominica", + "DO" => "Dominican Republic", + "DZ" => "Algeria", + "EC" => "Ecuador", + "EE" => "Estonia", + "EG" => "Egypt", + "EH" => "Western Sahara", + "ER" => "Eritrea", + "ES" => "Spain", + "ET" => "Ethiopia", + "FI" => "Finland", + "FJ" => "Fiji", + "FK" => "Falkland Islands (Malvinas)", + "FM" => "Micronesia", + "FO" => "Faroe Islands", + "FR" => "France", + "FX" => "France, Metropolitan", + "GA" => "Gabon", + "GB" => "Great Britain (UK)", + "GD" => "Grenada", + "GE" => "Georgia", + "GF" => "French Guiana", + "GH" => "Ghana", + "GI" => "Gibraltar", + "GL" => "Greenland", + "GM" => "Gambia", + "GN" => "Guinea", + "GP" => "Guadeloupe", + "GQ" => "Equatorial Guinea", + "GR" => "Greece", + "GS" => "S. Georgia and S. Sandwich Isls.", + "GT" => "Guatemala", + "GU" => "Guam", + "GW" => "Guinea-Bissau", + "GY" => "Guyana", + "HK" => "Hong Kong", + "HM" => "Heard and McDonald Islands", + "HN" => "Honduras", + "HR" => "Croatia (Hrvatska)", + "HT" => "Haiti", + "HU" => "Hungary", + "ID" => "Indonesia", + "IE" => "Ireland", + "IL" => "Israel", + "IN" => "India", + "IO" => "British Indian Ocean Territory", + "IQ" => "Iraq", + "IR" => "Iran", + "IS" => "Iceland", + "IT" => "Italy", + "JM" => "Jamaica", + "JO" => "Jordan", + "JP" => "Japan", + "KE" => "Kenya", + "KG" => "Kyrgyzstan", + "KH" => "Cambodia", + "KI" => "Kiribati", + "KM" => "Comoros", + "KN" => "Saint Kitts and Nevis", + "KP" => "Korea (North)", + "KR" => "Korea (South)", + "KW" => "Kuwait", + "KY" => "Cayman Islands", + "KZ" => "Kazakhstan", + "LA" => "Laos", + "LB" => "Lebanon", + "LC" => "Saint Lucia", + "LI" => "Liechtenstein", + "LK" => "Sri Lanka", + "LR" => "Liberia", + "LS" => "Lesotho", + "LT" => "Lithuania", + "LU" => "Luxembourg", + "LV" => "Latvia", + "LY" => "Libya", + "MA" => "Morocco", + "MC" => "Monaco", + "MD" => "Moldova", + "MG" => "Madagascar", + "MH" => "Marshall Islands", + "MK" => "Macedonia", + "ML" => "Mali", + "MM" => "Myanmar", + "MN" => "Mongolia", + "MO" => "Macau", + "MP" => "Northern Mariana Islands", + "MQ" => "Martinique", + "MR" => "Mauritania", + "MS" => "Montserrat", + "MT" => "Malta", + "MU" => "Mauritius", + "MV" => "Maldives", + "MW" => "Malawi", + "MX" => "Mexico", + "MY" => "Malaysia", + "MZ" => "Mozambique", + "NA" => "Namibia", + "NC" => "New Caledonia", + "NE" => "Niger", + "NF" => "Norfolk Island", + "NG" => "Nigeria", + "NI" => "Nicaragua", + "NL" => "Netherlands", + "NO" => "Norway", + "NP" => "Nepal", + "NR" => "Nauru", + "NT" => "Neutral Zone", + "NU" => "Niue", + "NZ" => "New Zealand (Aotearoa)", + "OM" => "Oman", + "PA" => "Panama", + "PE" => "Peru", + "PF" => "French Polynesia", + "PG" => "Papua New Guinea", + "PH" => "Philippines", + "PK" => "Pakistan", + "PL" => "Poland", + "PM" => "St. Pierre and Miquelon", + "PN" => "Pitcairn", + "PR" => "Puerto Rico", + "PT" => "Portugal", + "PW" => "Palau", + "PY" => "Paraguay", + "QA" => "Qatar", + "RE" => "Reunion", + "RO" => "Romania", + "RU" => "Russian Federation", + "RW" => "Rwanda", + "SA" => "Saudi Arabia", + "Sb" => "Solomon Islands", + "SC" => "Seychelles", + "SD" => "Sudan", + "SE" => "Sweden", + "SG" => "Singapore", + "SH" => "St. Helena", + "SI" => "Slovenia", + "SJ" => "Svalbard and Jan Mayen Islands", + "SK" => "Slovak Republic", + "SL" => "Sierra Leone", + "SM" => "San Marino", + "SN" => "Senegal", + "SO" => "Somalia", + "SR" => "Suriname", + "ST" => "Sao Tome and Principe", + "SU" => "USSR (former)", + "SV" => "El Salvador", + "SY" => "Syria", + "SZ" => "Swaziland", + "TC" => "Turks and Caicos Islands", + "TD" => "Chad", + "TF" => "French Southern Territories", + "TG" => "Togo", + "TH" => "Thailand", + "TJ" => "Tajikistan", + "TK" => "Tokelau", + "TM" => "Turkmenistan", + "TN" => "Tunisia", + "TO" => "Tonga", + "TP" => "East Timor", + "TR" => "Turkey", + "TT" => "Trinidad and Tobago", + "TV" => "Tuvalu", + "TW" => "Taiwan", + "TZ" => "Tanzania", + "UA" => "Ukraine", + "UG" => "Uganda", + "UK" => "United Kingdom", + "UM" => "US Minor Outlying Islands", + "US" => "United States", + "UY" => "Uruguay", + "UZ" => "Uzbekistan", + "VA" => "Vatican City State (Holy See)", + "VC" => "Saint Vincent and the Grenadines", + "VE" => "Venezuela", + "VG" => "Virgin Islands (British)", + "VI" => "Virgin Islands (U.S.)", + "VN" => "Viet Nam", + "VU" => "Vanuatu", + "WF" => "Wallis and Futuna Islands", + "WS" => "Samoa", + "YE" => "Yemen", + "YT" => "Mayotte", + "YU" => "Yugoslavia", + "ZA" => "South Africa", + "ZM" => "Zambia", + "ZR" => "Zaire", + "ZW" => "Zimbabwe" + ); + asort($country_list); + reset($country_list); + return $country_list; + } + + function &getHtmlList() + { + $html_list = array ( + "a" => "<a>", + "abbr" => "<abbr>", + "acronym" => "<acronym>", + "address" => "<address>", + "b" => "<b>", + "bdo" => "<bdo>", + "big" => "<big>", + "blockquote" => "<blockquote>", + "caption" => "<caption>", + "cite" => "<cite>", + "code" => "<code>", + "col" => "<col>", + "colgroup" => "<colgroup>", + "dd" => "<dd>", + "del" => "<del>", + "dfn" => "<dfn>", + "div" => "<div>", + "dl" => "<dl>", + "dt" => "<dt>", + "em" => "<em>", + "font" => "<font>", + "h1" => "<h1>", + "h2" => "<h2>", + "h3" => "<h3>", + "h4" => "<h4>", + "h5" => "<h5>", + "h6" => "<h6>", + "hr" => "<hr>", + "i" => "<i>", + "img" => "<img>", + "ins" => "<ins>", + "kbd" => "<kbd>", + "li" => "<li>", + "map" => "<map>", + "object" => "<object>", + "ol" => "<ol>", + "samp" => "<samp>", + "small" => "<small>", + "strong" => "<strong>", + "sub" => "<sub>", + "sup" => "<sup>", + "table" => "<table>", + "tbody" => "<tbody>", + "td" => "<td>", + "tfoot" => "<tfoot>", + "th" => "<th>", + "thead" => "<thead>", + "tr" => "<tr>", + "tt" => "<tt>", + "ul" => "<ul>", + "var" => "<var>" + ); + asort($html_list); + reset($html_list); + return $html_list; + } + + function &getUserRankList() + { + $db =& Database::getInstance(); + $myts =& MyTextSanitizer::getInstance(); + $sql = "SELECT rank_id, rank_title FROM ".$db->prefix("ranks")." WHERE rank_special = 1"; + $ret = array(); + $result = $db->query($sql); + while ( $myrow = $db->fetchArray($result) ) { + $ret[$myrow['rank_id']] = $myts->makeTboxData4Show($myrow['rank_title']); + } + return $ret; + } + } } ?> From onokazu @ users.sourceforge.jp Tue May 31 12:41:11 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Tue, 31 May 2005 12:41:11 +0900 Subject: [xoops-cvslog 41] CVS update: xoops2jp/html/modules/system/admin/modulesadmin Message-ID: <20050531034111.E6ED42AC00E@users.sourceforge.jp> Index: xoops2jp/html/modules/system/admin/modulesadmin/modulesadmin.php diff -u xoops2jp/html/modules/system/admin/modulesadmin/modulesadmin.php:1.2.6.2 xoops2jp/html/modules/system/admin/modulesadmin/modulesadmin.php:1.2.6.3 --- xoops2jp/html/modules/system/admin/modulesadmin/modulesadmin.php:1.2.6.2 Tue Apr 26 18:29:56 2005 +++ xoops2jp/html/modules/system/admin/modulesadmin/modulesadmin.php Tue May 31 12:41:11 2005 @@ -1,5 +1,5 @@ create(); $module->loadInfo($file); From onokazu @ users.sourceforge.jp Tue May 31 12:41:31 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Tue, 31 May 2005 12:41:31 +0900 Subject: [xoops-cvslog 42] CVS update: xoops2jp/html/modules/system/admin/preferences Message-ID: <20050531034131.762CB2AC00E@users.sourceforge.jp> Index: xoops2jp/html/modules/system/admin/preferences/main.php diff -u xoops2jp/html/modules/system/admin/preferences/main.php:1.2.6.3 xoops2jp/html/modules/system/admin/preferences/main.php:1.2.6.4 --- xoops2jp/html/modules/system/admin/preferences/main.php:1.2.6.3 Fri May 13 20:03:04 2005 +++ xoops2jp/html/modules/system/admin/preferences/main.php Tue May 31 12:41:31 2005 @@ -1,5 +1,5 @@ getVar('confcat_name')), 'pref_form', 'admin.php?fct=preferences'); - $form->addElement(new XoopsFormToken(XoopsMultiTokenHandler::quickCreate('preferences'))); + $form->addElement(new XoopsFormToken(XoopsMultiTokenHandler::quickCreate('preferences'))); $config_handler =& xoops_gethandler('config'); $criteria = new CriteriaCompo(); $criteria->add(new Criteria('conf_modid', 0)); @@ -115,7 +115,7 @@ $handle = opendir(XOOPS_THEME_PATH.'/'); $dirlist = array(); while (false !== ($file = readdir($handle))) { - if (is_dir(XOOPS_THEME_PATH.'/'.$file) && !preg_match("/^[.]{1,2}$/",$file) && strtolower($file) != 'cvs') { + if (is_dir(XOOPS_THEME_PATH.'/'.$file) && !preg_match("/^\..*$/",$file) && strtolower($file) != 'cvs') { $dirlist[$file]=$file; } } @@ -233,7 +233,7 @@ } include_once XOOPS_ROOT_PATH.'/class/xoopsformloader.php'; $form = new XoopsThemeForm(_MD_AM_MODCONFIG, 'pref_form', 'admin.php?fct=preferences'); - $form->addElement(new XoopsFormToken(XoopsMultiTokenHandler::quickCreate('preferences'))); + $form->addElement(new XoopsFormToken(XoopsMultiTokenHandler::quickCreate('preferences'))); $module_handler =& xoops_gethandler('module'); $module =& $module_handler->get($mod); if (file_exists(XOOPS_ROOT_PATH.'/modules/'.$module->getVar('dirname').'/language/'.$xoopsConfig['language'].'/modinfo.php')) { @@ -331,12 +331,12 @@ } if ($op == 'save') { - if(!XoopsMultiTokenHandler::quickValidate('preferences')) { - xoops_cp_header(); - xoops_error("Token Error"); - xoops_cp_footer(); - } - + if(!XoopsMultiTokenHandler::quickValidate('preferences')) { + xoops_cp_header(); + xoops_error("Token Error"); + xoops_cp_footer(); + } + require_once(XOOPS_ROOT_PATH.'/class/template.php'); $xoopsTpl = new XoopsTpl(); $xoopsTpl->clear_all_cache(); From nobunobu @ users.sourceforge.jp Tue May 31 12:48:18 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 31 May 2005 12:48:18 +0900 Subject: [xoops-cvslog 43] CVS update: xoops2jp/html/modules/mydownloads/admin Message-ID: <20050531034818.7D8C02AC00E@users.sourceforge.jp> Index: xoops2jp/html/modules/mydownloads/admin/index.php diff -u xoops2jp/html/modules/mydownloads/admin/index.php:1.2.6.1 xoops2jp/html/modules/mydownloads/admin/index.php:1.2.6.2 --- xoops2jp/html/modules/mydownloads/admin/index.php:1.2.6.1 Mon May 30 21:00:10 2005 +++ xoops2jp/html/modules/mydownloads/admin/index.php Tue May 31 12:48:18 2005 @@ -1,5 +1,5 @@ \n"; echo myTextForm("index.php?op=downloadsConfigMenu", _MD_CANCEL); echo "
    \n"; - echo "
    "; + echo "
    "; $result5=$xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_votedata").""); list($totalvotes) = $xoopsDB->getRowsNum($result5); From nobunobu @ users.sourceforge.jp Tue May 31 12:48:18 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 31 May 2005 12:48:18 +0900 Subject: [xoops-cvslog 44] CVS update: xoops2jp/html/modules/mydownloads/blocks Message-ID: <20050531034818.D50ED2AC012@users.sourceforge.jp> Index: xoops2jp/html/modules/mydownloads/blocks/mydownloads_top.php diff -u xoops2jp/html/modules/mydownloads/blocks/mydownloads_top.php:1.2 xoops2jp/html/modules/mydownloads/blocks/mydownloads_top.php:1.2.6.1 --- xoops2jp/html/modules/mydownloads/blocks/mydownloads_top.php:1.2 Fri Mar 18 21:52:14 2005 +++ xoops2jp/html/modules/mydownloads/blocks/mydownloads_top.php Tue May 31 12:48:18 2005 @@ -1,5 +1,5 @@ "; $form .= " "._MB_MYDOWNLOADS_FILES.""; - $form .= " 
    "._MB_MYDOWNLOADS_CHARS."  "._MB_MYDOWNLOADS_LENGTH.""; + $form .= " 
    "._MB_MYDOWNLOADS_CHARS."  "._MB_MYDOWNLOADS_LENGTH.""; return $form; } ?> From nobunobu @ users.sourceforge.jp Tue May 31 12:48:19 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 31 May 2005 12:48:19 +0900 Subject: [xoops-cvslog 45] CVS update: xoops2jp/html/modules/newbb/language/english Message-ID: <20050531034819.266B62AC00E@users.sourceforge.jp> Index: xoops2jp/html/modules/newbb/language/english/admin.php diff -u xoops2jp/html/modules/newbb/language/english/admin.php:1.2 xoops2jp/html/modules/newbb/language/english/admin.php:1.2.6.1 --- xoops2jp/html/modules/newbb/language/english/admin.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/newbb/language/english/admin.php Tue May 31 12:48:18 2005 @@ -1,5 +1,5 @@ Did you assign at least one moderator? Please go back and correct the form."); +define("_MD_A_YDNFOATPOTFDYAA","You did not fill out all the parts of the form.
    Did you assign at least one moderator? Please go back and correct the form."); define("_MD_A_FORUMCREATED","Forum Created."); define("_MD_A_VTFYJC","View the forum you just created."); define("_MD_A_EYMAACBYAF","Error, you must add a category before you add forums"); Index: xoops2jp/html/modules/newbb/language/english/main.php diff -u xoops2jp/html/modules/newbb/language/english/main.php:1.2 xoops2jp/html/modules/newbb/language/english/main.php:1.2.6.1 --- xoops2jp/html/modules/newbb/language/english/main.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/newbb/language/english/main.php Tue May 31 12:48:18 2005 @@ -1,5 +1,5 @@ Please register."); +define("_MD_ANONNOTALLOWED","Anonymous user not allowed to post.
    Please register."); define("_MD_THANKSSUBMIT","Thanks for your submission!"); define("_MD_REPLYPOSTED","A reply to your topic has been posted."); define("_MD_HELLO","Hello %s,"); From nobunobu @ users.sourceforge.jp Tue May 31 12:48:19 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 31 May 2005 12:48:19 +0900 Subject: [xoops-cvslog 46] CVS update: xoops2jp/html/modules/newbb/language/japanese Message-ID: <20050531034819.6CC2D2AC012@users.sourceforge.jp> Index: xoops2jp/html/modules/newbb/language/japanese/admin.php diff -u xoops2jp/html/modules/newbb/language/japanese/admin.php:1.1 xoops2jp/html/modules/newbb/language/japanese/admin.php:1.1.6.1 --- xoops2jp/html/modules/newbb/language/japanese/admin.php:1.1 Thu Sep 9 14:15:18 2004 +++ xoops2jp/html/modules/newbb/language/japanese/admin.php Tue May 31 12:48:19 2005 @@ -52,7 +52,7 @@ define("_MD_A_NTWNRTFUTCYMDTVTEFS","注意: カテゴリ下のフォーラムは削除されません。フォーラムの削除は個別に行って下さい。"); define("_MD_A_REMOVECATEGORY","カテゴリを削除"); define("_MD_A_CREATENEWCATEGORY","新規カテゴリの作成"); -define("_MD_A_YDNFOATPOTFDYAA","入力フォームに全てのデータを記入して下さい。
    最低1人のモデレータを指定する必要があります。 "); +define("_MD_A_YDNFOATPOTFDYAA","入力フォームに全てのデータを記入して下さい。
    最低1人のモデレータを指定する必要があります。 "); define("_MD_A_FORUMCREATED","フォーラムを作成しました。"); define("_MD_A_VTFYJC","作成したフォーラムを見る"); define("_MD_A_EYMAACBYAF","エラー: フォーラムを追加する前にカテゴリーを追加する必要があります。"); Index: xoops2jp/html/modules/newbb/language/japanese/main.php diff -u xoops2jp/html/modules/newbb/language/japanese/main.php:1.1 xoops2jp/html/modules/newbb/language/japanese/main.php:1.1.6.1 --- xoops2jp/html/modules/newbb/language/japanese/main.php:1.1 Thu Sep 9 14:15:18 2004 +++ xoops2jp/html/modules/newbb/language/japanese/main.php Tue May 31 12:48:19 2005 @@ -113,7 +113,7 @@ //post.php define("_MD_EDITNOTALLOWED","投稿文を編集することはできません。"); define("_MD_EDITEDBY","編集ログ:"); -define("_MD_ANONNOTALLOWED","ゲスト訪問者の方による投稿は許可されていません。
    投稿をご希望の方はメンバー登録をして下さい。"); +define("_MD_ANONNOTALLOWED","ゲスト訪問者の方による投稿は許可されていません。
    投稿をご希望の方はメンバー登録をして下さい。"); define("_MD_THANKSSUBMIT","投稿ありがとうございました。"); define("_MD_REPLYPOSTED","返信が投稿されました。"); define("_MD_HELLO","こんにちは %s さん、"); From nobunobu @ users.sourceforge.jp Tue May 31 12:48:19 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 31 May 2005 12:48:19 +0900 Subject: [xoops-cvslog 47] CVS update: xoops2jp/html/modules/news/blocks Message-ID: <20050531034819.AA8742AC00E@users.sourceforge.jp> Index: xoops2jp/html/modules/news/blocks/news_top.php diff -u xoops2jp/html/modules/news/blocks/news_top.php:1.2 xoops2jp/html/modules/news/blocks/news_top.php:1.2.6.1 --- xoops2jp/html/modules/news/blocks/news_top.php:1.2 Fri Mar 18 21:52:38 2005 +++ xoops2jp/html/modules/news/blocks/news_top.php Tue May 31 12:48:19 2005 @@ -1,5 +1,5 @@ "._MB_NEWS_HITS."\n"; $form .= "\n"; $form .= " "._MB_NEWS_DISP."  "._MB_NEWS_ARTCLS.""; - $form .= " 
    "._MB_NEWS_CHARS."  "._MB_NEWS_LENGTH.""; + $form .= " 
    "._MB_NEWS_CHARS."  "._MB_NEWS_LENGTH.""; return $form; From nobunobu @ users.sourceforge.jp Tue May 31 12:48:19 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 31 May 2005 12:48:19 +0900 Subject: [xoops-cvslog 48] CVS update: xoops2jp/html/modules/system/admin/banners Message-ID: <20050531034819.EC6EC2AC012@users.sourceforge.jp> Index: xoops2jp/html/modules/system/admin/banners/banners.php diff -u xoops2jp/html/modules/system/admin/banners/banners.php:1.2.6.6 xoops2jp/html/modules/system/admin/banners/banners.php:1.2.6.7 --- xoops2jp/html/modules/system/admin/banners/banners.php:1.2.6.6 Mon May 30 19:45:01 2005 +++ xoops2jp/html/modules/system/admin/banners/banners.php Tue May 31 12:48:19 2005 @@ -1,5 +1,5 @@ 0 = "._AM_UNLIMIT."
    "._AM_IMGURLT."
    "._AM_CLICKURLT."
    - "._AM_USEHTML." + "._AM_USEHTML."
    "._AM_CODEHTML."
    @@ -308,7 +308,7 @@ } echo " "._AM_ADDIMPT." "._AM_PURCHT."$impressions "._AM_MADET."$impmade
    - "._AM_IMGURLT."
    + "._AM_IMGURLT."
    "._AM_CLICKURLT."".htmlspecialchars($clickurl,ENT_QUOTES)."
    "._AM_USEHTML; if ($htmlbanner){ From onokazu @ users.sourceforge.jp Tue May 31 12:58:51 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Tue, 31 May 2005 12:58:51 +0900 Subject: [xoops-cvslog 49] CVS update: xoops2jp/html/modules/newbb/include Message-ID: <20050531035851.97C752AC00E@users.sourceforge.jp> Index: xoops2jp/html/modules/newbb/include/search.inc.php diff -u xoops2jp/html/modules/newbb/include/search.inc.php:1.2 xoops2jp/html/modules/newbb/include/search.inc.php:1.2.6.1 --- xoops2jp/html/modules/newbb/include/search.inc.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/newbb/include/search.inc.php Tue May 31 12:58:51 2005 @@ -1,5 +1,5 @@ prefix("bb_posts")." p LEFT JOIN ".$xoopsDB->prefix("bb_posts_text")." t ON t.post_id=p.post_id LEFT JOIN ".$xoopsDB->prefix("bb_forums")." f ON f.forum_id=p.forum_id WHERE f.forum_type=0"; - if ( $userid != 0 ) { - $sql .= " AND p.uid=".$userid." "; - } - // because count() returns 1 even if a supplied variable - // is not an array, we must check if $querryarray is really an array - if ( is_array($queryarray) && $count = count($queryarray) ) { - $sql .= " AND ((p.subject LIKE '%$queryarray[0]%' OR t.post_text LIKE '%$queryarray[0]%')"; - for($i=1;$i<$count;$i++){ - $sql .= " $andor "; - $sql .= "(p.subject LIKE '%$queryarray[$i]%' OR t.post_text LIKE '%$queryarray[$i]%')"; - } - $sql .= ") "; - } - $sql .= "ORDER BY p.post_time DESC"; - $result = $xoopsDB->query($sql,$limit,$offset); - $ret = array(); - $i = 0; - while($myrow = $xoopsDB->fetchArray($result)){ - $ret[$i]['link'] = "viewtopic.php?topic_id=".$myrow['topic_id']."&forum=".$myrow['forum_id']."#forumpost".$myrow['post_id']; - $ret[$i]['title'] = $myrow['subject']; - $ret[$i]['time'] = $myrow['post_time']; - $ret[$i]['uid'] = $myrow['uid']; - $i++; - } - return $ret; + global $xoopsDB; + $sql = "SELECT p.post_id,p.topic_id,p.forum_id,p.post_time,p.uid,p.subject FROM ".$xoopsDB->prefix("bb_posts")." p LEFT JOIN ".$xoopsDB->prefix("bb_posts_text")." t ON t.post_id=p.post_id LEFT JOIN ".$xoopsDB->prefix("bb_forums")." f ON f.forum_id=p.forum_id WHERE f.forum_type=0"; + if ( $userid != 0 ) { + $sql .= " AND p.uid=".$userid." "; + } + // because count() returns 1 even if a supplied variable + // is not an array, we must check if $querryarray is really an array + if ( is_array($queryarray) && $count = count($queryarray) ) { + $sql .= " AND ((p.subject LIKE '%$queryarray[0]%' OR t.post_text LIKE '%$queryarray[0]%')"; + for($i=1;$i<$count;$i++){ + $sql .= " $andor "; + $sql .= "(p.subject LIKE '%$queryarray[$i]%' OR t.post_text LIKE '%$queryarray[$i]%')"; + } + $sql .= ") "; + } + $sql .= "ORDER BY p.post_time DESC"; + $result = $xoopsDB->query($sql,$limit,$offset); + $ret = array(); + $i = 0; + while($myrow = $xoopsDB->fetchArray($result)){ + $ret[$i]['link'] = "viewtopic.php?topic_id=".$myrow['topic_id']."&forum=".$myrow['forum_id']."&post_id=".$myrow['post_id']."#forumpost".$myrow['post_id']; + $ret[$i]['title'] = $myrow['subject']; + $ret[$i]['time'] = $myrow['post_time']; + $ret[$i]['uid'] = $myrow['uid']; + $i++; + } + return $ret; } ?> \ No newline at end of file From onokazu @ users.sourceforge.jp Tue May 31 14:03:47 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Tue, 31 May 2005 14:03:47 +0900 Subject: [xoops-cvslog 50] CVS update: xoops2jp/html/modules/system/admin/modulesadmin Message-ID: <20050531050347.9814A2AC00E@users.sourceforge.jp> Index: xoops2jp/html/modules/system/admin/modulesadmin/modulesadmin.php diff -u xoops2jp/html/modules/system/admin/modulesadmin/modulesadmin.php:1.2.6.3 xoops2jp/html/modules/system/admin/modulesadmin/modulesadmin.php:1.2.6.4 --- xoops2jp/html/modules/system/admin/modulesadmin/modulesadmin.php:1.2.6.3 Tue May 31 12:41:11 2005 +++ xoops2jp/html/modules/system/admin/modulesadmin/modulesadmin.php Tue May 31 14:03:47 2005 @@ -1,5 +1,5 @@
    "._MD_AM_MODULE.""._MD_AM_VERSION.""._MD_AM_LASTUP.""._MD_AM_ACTIVE.""._MD_AM_ORDER."
    "._MD_AM_ORDER0."
    "._MD_AM_ACTION."