From onokazu @ users.sourceforge.jp Mon Aug 1 19:18:13 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 1 Aug 2005 19:18:13 +0900 Subject: [xoops-cvslog 262] CVS update: xoops2jp/html/modules/news/language/japanese/mail_template Message-ID: <20050801101813.DD7C22AC01F@users.sourceforge.jp> Index: xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl diff -u /dev/null xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl:1.1 --- /dev/null Mon Aug 1 19:18:13 2005 +++ xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl Mon Aug 1 19:18:13 2005 @@ -0,0 +1,21 @@ +{X_UNAME}さん、こんにちは + +{X_SITENAME}にて下記ニュース記事が承認されました。 + +記事タイトル: {STORY_NAME} + +このニュース記事を読むには下記URLにアクセスしてください: +{STORY_URL} + +----------- + +このメールはXOOPSの自動通知機能によって送信されています + +自動通知を停止したい場合は下記のURLにアクセスしてください: +{X_UNSUBSCRIBE_URL} + +----------- +{X_SITENAME} ({X_SITEURL}) +管理人 +{X_ADMINMAIL} +----------- \ No newline at end of file Index: xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl000644 diff -u xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl000644:1.1 xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl000644:removed --- xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl000644:1.1 Thu Sep 9 19:03:23 2004 +++ xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl000644 Mon Aug 1 19:18:13 2005 @@ -1,21 +0,0 @@ -{X_UNAME}さん、こんにちは - -{X_SITENAME}にて下記ニュース記事が承認されました。 - -記事タイトル: {STORY_NAME} - -このニュース記事を読むには下記URLにアクセスしてください: -{STORY_URL} - ------------ - -このメールはXOOPSの自動通知機能によって送信されています - -自動通知を停止したい場合は下記のURLにアクセスしてください: -{X_UNSUBSCRIBE_URL} - ------------ -{X_SITENAME} ({X_SITEURL}) -管理人 -{X_ADMINMAIL} ------------ \ No newline at end of file From onokazu @ users.sourceforge.jp Wed Aug 3 21:39:11 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Wed, 3 Aug 2005 21:39:11 +0900 Subject: [xoops-cvslog 264] CVS update: xoops2jp/html Message-ID: <20050803123911.37C532AC03A@users.sourceforge.jp> Index: xoops2jp/html/admin.php diff -u xoops2jp/html/admin.php:1.3 xoops2jp/html/admin.php:1.4 --- xoops2jp/html/admin.php:1.3 Sat Jun 11 11:32:38 2005 +++ xoops2jp/html/admin.php Wed Aug 3 21:39:11 2005 @@ -1,5 +1,5 @@ xoops_setCaching(0); $xoopsTpl->display($xoopsConfig['theme_set'].'/theme.html'); Index: xoops2jp/html/header.php diff -u xoops2jp/html/header.php:1.3 xoops2jp/html/header.php:1.4 --- xoops2jp/html/header.php:1.3 Sat Jun 11 11:32:38 2005 +++ xoops2jp/html/header.php Wed Aug 3 21:39:11 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 @@ -109,7 +109,7 @@ $xoopsTpl->assign(array('xoops_isuser' => false, 'xoops_isadmin' => false)); if (!empty($xoopsModule)) { // set page title - $xoopsTpl->assign(array('xoops_pagetitle' => $xoopsModule->getVar('name'), 'xoops_modulename' => $xoopsModule->getVar('name'), 'xoops_moduledir' => $xoopsModule->getVar('dirname'))); + $xoopsTpl->assign(array('xoops_pagetitle' => $xoopsModule->getVar('name'), 'xoops_modulename' => $xoopsModule->getVar('name'), 'xoops_dirname' => $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 { Index: xoops2jp/html/image.php diff -u xoops2jp/html/image.php:1.3 xoops2jp/html/image.php:1.4 --- xoops2jp/html/image.php:1.3 Sat Jun 11 11:32:38 2005 +++ xoops2jp/html/image.php Wed Aug 3 21:39:11 2005 @@ -1,5 +1,5 @@ '._SR_SHOWALLR.'

'; + echo '
'._SR_SHOWALLR.'

'; } } } Index: xoops2jp/html/user.php diff -u xoops2jp/html/user.php:1.3 xoops2jp/html/user.php:1.4 --- xoops2jp/html/user.php:1.3 Sat Jun 11 11:32:38 2005 +++ xoops2jp/html/user.php Wed Aug 3 21:39:11 2005 @@ -1,5 +1,5 @@ parse()) { - $response->add(new XoopsXmlRpcFault(102)); + $response->add(new XoopsXmlRpcFault(102)); } else { - $module_handler =& xoops_gethandler('module'); - $module =& $module_handler->getByDirname('news'); - if (!is_object($module)) { - $response->add(new XoopsXmlRpcFault(110)); - } else { - $methods = explode('.', $parser->getMethodName()); - switch ($methods[0]) { - case 'blogger': - include_once XOOPS_ROOT_PATH.'/class/xml/rpc/bloggerapi.php'; - $rpc_api = new BloggerApi($parser->getParam(), $response, $module); - break; - case 'metaWeblog': - include_once XOOPS_ROOT_PATH.'/class/xml/rpc/metaweblogapi.php'; - $rpc_api = new MetaWeblogApi($parser->getParam(), $response, $module); - break; - case 'mt': - include_once XOOPS_ROOT_PATH.'/class/xml/rpc/movabletypeapi.php'; - $rpc_api = new MovableTypeApi($parser->getParam(), $response, $module); - break; - case 'xoops': - default: - include_once XOOPS_ROOT_PATH.'/class/xml/rpc/xoopsapi.php'; - $rpc_api = new XoopsApi($parser->getParam(), $response, $module); - break; - } - $method = $methods[1]; - if (!method_exists($rpc_api, $method)) { - $response->add(new XoopsXmlRpcFault(107)); - } else { - $rpc_api->$method(); - } - } + $module_handler =& xoops_gethandler('module'); + $module =& $module_handler->getByDirname('news'); + if (!is_object($module)) { + $response->add(new XoopsXmlRpcFault(110)); + } else { + $methods = explode('.', $parser->getMethodName()); + switch ($methods[0]) { + case 'blogger': + include_once XOOPS_ROOT_PATH.'/class/xml/rpc/bloggerapi.php'; + $rpc_api = new BloggerApi($parser->getParam(), $response, $module); + break; + case 'metaWeblog': + include_once XOOPS_ROOT_PATH.'/class/xml/rpc/metaweblogapi.php'; + $rpc_api = new MetaWeblogApi($parser->getParam(), $response, $module); + break; + case 'mt': + include_once XOOPS_ROOT_PATH.'/class/xml/rpc/movabletypeapi.php'; + $rpc_api = new MovableTypeApi($parser->getParam(), $response, $module); + break; + case 'xoops': + default: + include_once XOOPS_ROOT_PATH.'/class/xml/rpc/xoopsapi.php'; + $rpc_api = new XoopsApi($parser->getParam(), $response, $module); + break; + } + $method = $methods[1]; + if (!method_exists($rpc_api, $method)) { + $response->add(new XoopsXmlRpcFault(107)); + } else { + $rpc_api->$method(); + } + } } $payload =& $response->render(); //$fp = fopen(XOOPS_CACHE_PATH.'/xmllog.txt', 'w'); From onokazu @ users.sourceforge.jp Wed Aug 3 21:39:10 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Wed, 3 Aug 2005 21:39:10 +0900 Subject: [xoops-cvslog 263] CVS update: xoops2jp/docs Message-ID: <20050803123910.006412AC02D@users.sourceforge.jp> Index: xoops2jp/docs/CHANGES.txt diff -u xoops2jp/docs/CHANGES.txt:1.5 xoops2jp/docs/CHANGES.txt:1.6 --- xoops2jp/docs/CHANGES.txt:1.5 Thu Jun 30 14:55:55 2005 +++ xoops2jp/docs/CHANGES.txt Wed Aug 3 21:39:10 2005 @@ -1,12 +1,42 @@ - XOOPS v2 Changelog +XOOPS v2 Changelog ============================ +2005/ 7/31: Version 2.0.11 JP +=============================== +- Fixed infinite refresh of page in visit.php of mydownloads/mylinks + + +2005/ 7/21: Version 2.0.11 JP RC2 +=============================== +- Added security patch to prevent SQL injection in xmlrpcapi.php +- Added security patch for XSS vulnerability in comment post +- Fixed minor display bugs in search result URLs +- Fixed incorrect Smarty tag name being assigned in header.php +- Fixed PHP notice errors in several parts + + 2005/ 6/30: Version 2.0.10.2 JP =============================== - Added security patch to prevent SQL injection in xmlrpcapi.php - Added security patch for XSS vulnerability in comment post +2005/ 6/29: Version 2.0.11 JP RC1 +=============================== +- Merged CriteriaString with the original Cirteria class +- Fixed bug in image admin section when register_globals off. +- Code cleanup in headlinerender.php +- Added missing language constant in the news module +- Fixed bug in xoopspartners admin section when register_globals off. +- Fixed smarty variable typo in common.php +- Fixed invalid template path in template set admin section +- Fixed comment delete button bug +- Changed & to & in some files +- Added missing parameter to redirect URL of newbb/mydownload modules +- Fixed invalid cache header in footer.php +- Fixed bug not being able to send mails when over 200 registered users + + 2005/ 6/28: Version 2.0.10.1 JP =============================== - Added security patch to prevent login spoofing @@ -17,6 +47,15 @@ - Fixed typo: $xoopsConfig -> $xoopsModuleConfig in news module +2005/ 6/15: Version 2.0.11 JP Beta +=============================== +- Fixed parse error in the sections module +- Fixed incorrect use of anonpost option variable in the news module +- Fixed bug not being able to add users to group when active users over 200 +- Fixed bug not being able to add user from the user admin page +- Fixed bug not being able to delete posts in the newbb module + + 2005/ 6/10: Version 2.0.10 JP =============================== - Added fix for better module version number handling From onokazu @ users.sourceforge.jp Wed Aug 3 21:39:11 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Wed, 3 Aug 2005 21:39:11 +0900 Subject: [xoops-cvslog 265] CVS update: xoops2jp/html/class/xml/rpc Message-ID: <20050803123911.984492AC03A@users.sourceforge.jp> Index: xoops2jp/html/class/xml/rpc/xmlrpcapi.php diff -u xoops2jp/html/class/xml/rpc/xmlrpcapi.php:1.4 xoops2jp/html/class/xml/rpc/xmlrpcapi.php:1.5 --- xoops2jp/html/class/xml/rpc/xmlrpcapi.php:1.4 Thu Jun 30 14:07:51 2005 +++ xoops2jp/html/class/xml/rpc/xmlrpcapi.php Wed Aug 3 21:39:11 2005 @@ -1,5 +1,5 @@ user =& $member_handler->loginUser(addSlashes($username), addSlashes($password)); + $this->user =& $member_handler->loginUser(addslashes($username), addslashes($password)); if (!is_object($this->user)) { unset($this->user); return false; From onokazu @ users.sourceforge.jp Wed Aug 3 21:39:11 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Wed, 3 Aug 2005 21:39:11 +0900 Subject: [xoops-cvslog 266] CVS update: xoops2jp/html/class/xml Message-ID: <20050803123911.B6D022AC03B@users.sourceforge.jp> Index: xoops2jp/html/class/xml/saxparser.php diff -u xoops2jp/html/class/xml/saxparser.php:1.3 xoops2jp/html/class/xml/saxparser.php:1.4 --- xoops2jp/html/class/xml/saxparser.php:1.3 Sat Jun 11 11:32:39 2005 +++ xoops2jp/html/class/xml/saxparser.php Wed Aug 3 21:39:11 2005 @@ -1,5 +1,5 @@ xml/SaxParser.class

From onokazu @ users.sourceforge.jp Wed Aug 3 21:39:11 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Wed, 3 Aug 2005 21:39:11 +0900 Subject: [xoops-cvslog 267] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20050803123911.DD3B12AC02D@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/form.php diff -u xoops2jp/html/class/xoopsform/form.php:1.3 xoops2jp/html/class/xoopsform/form.php:1.4 --- xoops2jp/html/class/xoopsform/form.php:1.3 Sat Jun 11 11:32:39 2005 +++ xoops2jp/html/class/xoopsform/form.php Wed Aug 3 21:39:11 2005 @@ -1,5 +1,5 @@ // Index: xoops2jp/html/class/xoopsform/formtextdateselect.php diff -u xoops2jp/html/class/xoopsform/formtextdateselect.php:1.3 xoops2jp/html/class/xoopsform/formtextdateselect.php:1.4 --- xoops2jp/html/class/xoopsform/formtextdateselect.php:1.3 Sat Jun 11 11:32:39 2005 +++ xoops2jp/html/class/xoopsform/formtextdateselect.php Wed Aug 3 21:39:11 2005 @@ -1,5 +1,5 @@ // From onokazu @ users.sourceforge.jp Wed Aug 3 21:39:12 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Wed, 3 Aug 2005 21:39:12 +0900 Subject: [xoops-cvslog 268] CVS update: xoops2jp/html/kernel Message-ID: <20050803123912.6DEA42AC03B@users.sourceforge.jp> Index: xoops2jp/html/kernel/block.php diff -u xoops2jp/html/kernel/block.php:1.3 xoops2jp/html/kernel/block.php:1.4 --- xoops2jp/html/kernel/block.php:1.3 Sat Jun 11 11:32:41 2005 +++ xoops2jp/html/kernel/block.php Wed Aug 3 21:39:12 2005 @@ -1,5 +1,5 @@ // -// ------------------------------------------------------------------------ // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// You may not change or alter any portion of this comment or credits // -// of supporting developers from this source code or any supporting // -// source code which is considered copyrighted (c) material of the // -// original comment or credit authors. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // -// Author: Kazumi Ono (AKA onokazu) // -// URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ // -// Project: The XOOPS Project // -// ------------------------------------------------------------------------- // - -if (!defined('XOOPS_ROOT_PATH')) { - exit(); -} -require_once XOOPS_ROOT_PATH.'/kernel/user.php'; -require_once XOOPS_ROOT_PATH.'/kernel/group.php'; - -/** -* XOOPS member handler class. -* This class provides simple interface (a facade class) for handling groups/users/ -* membership data. -* -* -* @author Kazumi Ono -* @copyright copyright (c) 2000-2003 XOOPS.org -* @package kernel -*/ - -class XoopsMemberHandler{ - - /**#@+ - * holds reference to group handler(DAO) class - * @access private - */ - var $_gHandler; - - /** - * holds reference to user handler(DAO) class - */ - var $_uHandler; - - /** - * holds reference to membership handler(DAO) class - */ - var $_mHandler; - - /** - * holds temporary user objects - */ - var $_members = array(); - /**#@-*/ - - /** - * constructor - * - */ - function XoopsMemberHandler(&$db) - { - $this->_gHandler = new XoopsGroupHandler($db); - $this->_uHandler = new XoopsUserHandler($db); - $this->_mHandler = new XoopsMembershipHandler($db); - } - - /** - * create a new group - * - * @return object XoopsGroup reference to the new group - */ - function &createGroup() - { - return $this->_gHandler->create(); - } - - /** - * create a new user - * - * @return object XoopsUser reference to the new user - */ - function &createUser() - { - return $this->_uHandler->create(); - } - - /** - * retrieve a group - * - * @param int $id ID for the group - * @return object XoopsGroup reference to the group - */ - function getGroup($id) - { - return $this->_gHandler->get($id); - } - - /** - * retrieve a user - * - * @param int $id ID for the user - * @return object XoopsUser reference to the user - */ - function &getUser($id) - { - if (!isset($this->_members[$id])) { - $this->_members[$id] =& $this->_uHandler->get($id); - } - return $this->_members[$id]; - } - - /** - * delete a group - * - * @param object $group reference to the group to delete - * @return bool FALSE if failed - */ - function deleteGroup(&$group) - { - $this->_gHandler->delete($group); - $this->_mHandler->deleteAll(new Criteria('groupid', $group->getVar('groupid'))); - return true; - } - - /** - * delete a user - * - * @param object $user reference to the user to delete - * @return bool FALSE if failed - */ - function deleteUser(&$user) - { - $this->_uHandler->delete($user); - $this->_mHandler->deleteAll(new Criteria('uid', $user->getVar('uid'))); - return true; - } - - /** - * insert a group into the database - * - * @param object $group reference to the group to insert - * @return bool TRUE if already in database and unchanged - * FALSE on failure - */ - function insertGroup(&$group) - { - return $this->_gHandler->insert($group); - } - - /** - * insert a user into the database - * - * @param object $user reference to the user to insert - * @return bool TRUE if already in database and unchanged - * FALSE on failure - */ - function insertUser(&$user, $force = false) - { - return $this->_uHandler->insert($user, $force); - } - - /** - * retrieve groups from the database - * - * @param object $criteria {@link CriteriaElement} - * @param bool $id_as_key use the group's ID as key for the array? - * @return array array of {@link XoopsGroup} objects - */ - function getGroups($criteria = null, $id_as_key = false) - { - return $this->_gHandler->getObjects($criteria, $id_as_key); - } - - /** - * retrieve users from the database - * - * @param object $criteria {@link CriteriaElement} - * @param bool $id_as_key use the group's ID as key for the array? - * @return array array of {@link XoopsUser} objects - */ - function getUsers($criteria = null, $id_as_key = false) - { - return $this->_uHandler->getObjects($criteria, $id_as_key); - } - - /** - * get a list of groupnames and their IDs - * - * @param object $criteria {@link CriteriaElement} object - * @return array associative array of group-IDs and names - */ - function &getGroupList($criteria = null) - { - $groups =& $this->_gHandler->getObjects($criteria, true); - $ret = array(); - foreach (array_keys($groups) as $i) { - $ret[$i] = $groups[$i]->getVar('name'); - } - return $ret; - } - - /** - * get a list of usernames and their IDs - * - * @param object $criteria {@link CriteriaElement} object - * @return array associative array of user-IDs and names - */ - function getUserList($criteria = null) - { - $users =& $this->_uHandler->getObjects($criteria, true); - $ret = array(); - foreach (array_keys($users) as $i) { - $ret[$i] = $users[$i]->getVar('uname'); - } - return $ret; - } - - /** - * add a user to a group - * - * @param int $group_id ID of the group - * @param int $user_id ID of the user - * @return object XoopsMembership - */ - function addUserToGroup($group_id, $user_id) - { - $mship =& $this->_mHandler->create(); - $mship->setVar('groupid', $group_id); - $mship->setVar('uid', $user_id); - return $this->_mHandler->insert($mship); - } - - /** - * remove a list of users from a group - * - * @param int $group_id ID of the group - * @param array $user_ids array of user-IDs - * @return bool success? - */ - function removeUsersFromGroup($group_id, $user_ids = array()) - { - $criteria = new CriteriaCompo(); - $criteria->add(new Criteria('groupid', $group_id)); - $criteria2 = new CriteriaCompo(); - foreach ($user_ids as $uid) { - $criteria2->add(new Criteria('uid', $uid), 'OR'); - } - $criteria->add($criteria2); - return $this->_mHandler->deleteAll($criteria); - } - - /** - * get a list of users belonging to a group - * - * @param int $group_id ID of the group - * @param bool $asobject return the users as objects? - * @param int $limit number of users to return - * @param int $start index of the first user to return - * @return array Array of {@link XoopsUser} objects (if $asobject is TRUE) - * or of associative arrays matching the record structure in the database. - */ - function getUsersByGroup($group_id, $asobject = false, $limit = 0, $start = 0) - { - $user_ids =& $this->_mHandler->getUsersByGroup($group_id, $limit, $start); - if (!$asobject) { - return $user_ids; - } else { - $ret = array(); - foreach ($user_ids as $u_id) { - $user =& $this->getUser($u_id); - if (is_object($user)) { - $ret[] =& $user; - } - unset($user); - } - return $ret; - } - } - - /** - * get a list of groups that a user is member of - * - * @param int $user_id ID of the user - * @param bool $asobject return groups as {@link XoopsGroup} objects or arrays? - * @return array array of objects or arrays - */ - function getGroupsByUser($user_id, $asobject = false) - { - $group_ids =& $this->_mHandler->getGroupsByUser($user_id); - if (!$asobject) { - return $group_ids; - } else { - foreach ($group_ids as $g_id) { - $ret[] =& $this->getGroup($g_id); - } - return $ret; - } - } - - /** - * log in a user - * - * @param string $uname username as entered in the login form - * @param string $pwd password entered in the login form - * @return object XoopsUser reference to the logged in user. FALSE if failed to log in - */ - function &loginUser($uname, $pwd) - { - $criteria = new CriteriaCompo(new CriteriaString('uname', $uname)); - $criteria->add(new CriteriaString('pass', md5($pwd))); - $user =& $this->_uHandler->getObjects($criteria, false); - if (!$user || count($user) != 1) { - return false; - } - return $user[0]; - } - - /** - * logs in a user with an nd5 encrypted password - * - * @param string $uname username - * @param string $md5pwd password encrypted with md5 - * @return object XoopsUser reference to the logged in user. FALSE if failed to log in - */ - function &loginUserMd5($uname, $md5pwd) - { - $criteria = new CriteriaCompo(new CriteriaString('uname', $uname)); - $criteria->add(new CriteriaString('pass', $md5pwd)); - $user =& $this->_uHandler->getObjects($criteria, false); - if (!$user || count($user) != 1) { - return false; - } - return $user[0]; - } - - /** - * count users matching certain conditions - * - * @param object $criteria {@link CriteriaElement} object - * @return int - */ - function getUserCount($criteria = null) - { - return $this->_uHandler->getCount($criteria); - } - - /** - * count users belonging to a group - * - * @param int $group_id ID of the group - * @return int - */ - function getUserCountByGroup($group_id) - { - return $this->_mHandler->getCount(new Criteria('groupid', $group_id)); - } - - /** - * updates a single field in a users record - * - * @param object $user reference to the {@link XoopsUser} object - * @param string $fieldName name of the field to update - * @param string $fieldValue updated value for the field - * @return bool TRUE if success or unchanged, FALSE on failure - */ - function updateUserByField(&$user, $fieldName, $fieldValue) - { - $user->setVar($fieldName, $fieldValue); - return $this->insertUser($user); - } - - /** - * updates a single field in a users record - * - * @param string $fieldName name of the field to update - * @param string $fieldValue updated value for the field - * @param object $criteria {@link CriteriaElement} object - * @return bool TRUE if success or unchanged, FALSE on failure - */ - function updateUsersByField($fieldName, $fieldValue, $criteria = null) - { - return $this->_uHandler->updateAll($fieldName, $fieldValue, $criteria); - } - - /** - * activate a user - * - * @param object $user reference to the {@link XoopsUser} object - * @return bool successful? - */ - function activateUser(&$user) - { - if ($user->getVar('level') != 0) { - return true; - } - $user->setVar('level', 1); - return $this->_uHandler->insert($user, true); - } - -} -?> + // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Kazumi Ono (AKA onokazu) // +// URL: http://www.myweb.ne.jp/, http://www.xoops.org/, http://jp.xoops.org/ // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +require_once XOOPS_ROOT_PATH.'/kernel/user.php'; +require_once XOOPS_ROOT_PATH.'/kernel/group.php'; + +/** +* XOOPS member handler class. +* This class provides simple interface (a facade class) for handling groups/users/ +* membership data. +* +* +* @author Kazumi Ono +* @copyright copyright (c) 2000-2003 XOOPS.org +* @package kernel +*/ + +class XoopsMemberHandler{ + + /**#@+ + * holds reference to group handler(DAO) class + * @access private + */ + var $_gHandler; + + /** + * holds reference to user handler(DAO) class + */ + var $_uHandler; + + /** + * holds reference to membership handler(DAO) class + */ + var $_mHandler; + + /** + * holds temporary user objects + */ + var $_members = array(); + /**#@-*/ + + /** + * constructor + * + */ + function XoopsMemberHandler(&$db) + { + $this->_gHandler = new XoopsGroupHandler($db); + $this->_uHandler = new XoopsUserHandler($db); + $this->_mHandler = new XoopsMembershipHandler($db); + } + + /** + * create a new group + * + * @return object XoopsGroup reference to the new group + */ + function &createGroup() + { + return $this->_gHandler->create(); + } + + /** + * create a new user + * + * @return object XoopsUser reference to the new user + */ + function &createUser() + { + return $this->_uHandler->create(); + } + + /** + * retrieve a group + * + * @param int $id ID for the group + * @return object XoopsGroup reference to the group + */ + function getGroup($id) + { + return $this->_gHandler->get($id); + } + + /** + * retrieve a user + * + * @param int $id ID for the user + * @return object XoopsUser reference to the user + */ + function &getUser($id) + { + if (!isset($this->_members[$id])) { + $this->_members[$id] =& $this->_uHandler->get($id); + } + return $this->_members[$id]; + } + + /** + * delete a group + * + * @param object $group reference to the group to delete + * @return bool FALSE if failed + */ + function deleteGroup(&$group) + { + $this->_gHandler->delete($group); + $this->_mHandler->deleteAll(new Criteria('groupid', $group->getVar('groupid'))); + return true; + } + + /** + * delete a user + * + * @param object $user reference to the user to delete + * @return bool FALSE if failed + */ + function deleteUser(&$user) + { + $this->_uHandler->delete($user); + $this->_mHandler->deleteAll(new Criteria('uid', $user->getVar('uid'))); + return true; + } + + /** + * insert a group into the database + * + * @param object $group reference to the group to insert + * @return bool TRUE if already in database and unchanged + * FALSE on failure + */ + function insertGroup(&$group) + { + return $this->_gHandler->insert($group); + } + + /** + * insert a user into the database + * + * @param object $user reference to the user to insert + * @return bool TRUE if already in database and unchanged + * FALSE on failure + */ + function insertUser(&$user, $force = false) + { + return $this->_uHandler->insert($user, $force); + } + + /** + * retrieve groups from the database + * + * @param object $criteria {@link CriteriaElement} + * @param bool $id_as_key use the group's ID as key for the array? + * @return array array of {@link XoopsGroup} objects + */ + function getGroups($criteria = null, $id_as_key = false) + { + return $this->_gHandler->getObjects($criteria, $id_as_key); + } + + /** + * retrieve users from the database + * + * @param object $criteria {@link CriteriaElement} + * @param bool $id_as_key use the group's ID as key for the array? + * @return array array of {@link XoopsUser} objects + */ + function getUsers($criteria = null, $id_as_key = false) + { + return $this->_uHandler->getObjects($criteria, $id_as_key); + } + + /** + * get a list of groupnames and their IDs + * + * @param object $criteria {@link CriteriaElement} object + * @return array associative array of group-IDs and names + */ + function &getGroupList($criteria = null) + { + $groups =& $this->_gHandler->getObjects($criteria, true); + $ret = array(); + foreach (array_keys($groups) as $i) { + $ret[$i] = $groups[$i]->getVar('name'); + } + return $ret; + } + + /** + * get a list of usernames and their IDs + * + * @param object $criteria {@link CriteriaElement} object + * @return array associative array of user-IDs and names + */ + function getUserList($criteria = null) + { + $users =& $this->_uHandler->getObjects($criteria, true); + $ret = array(); + foreach (array_keys($users) as $i) { + $ret[$i] = $users[$i]->getVar('uname'); + } + return $ret; + } + + /** + * add a user to a group + * + * @param int $group_id ID of the group + * @param int $user_id ID of the user + * @return object XoopsMembership + */ + function addUserToGroup($group_id, $user_id) + { + $mship =& $this->_mHandler->create(); + $mship->setVar('groupid', $group_id); + $mship->setVar('uid', $user_id); + return $this->_mHandler->insert($mship); + } + + /** + * remove a list of users from a group + * + * @param int $group_id ID of the group + * @param array $user_ids array of user-IDs + * @return bool success? + */ + function removeUsersFromGroup($group_id, $user_ids = array()) + { + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('groupid', $group_id)); + $criteria2 = new CriteriaCompo(); + foreach ($user_ids as $uid) { + $criteria2->add(new Criteria('uid', $uid), 'OR'); + } + $criteria->add($criteria2); + return $this->_mHandler->deleteAll($criteria); + } + + /** + * get a list of users belonging to a group + * + * @param int $group_id ID of the group + * @param bool $asobject return the users as objects? + * @param int $limit number of users to return + * @param int $start index of the first user to return + * @return array Array of {@link XoopsUser} objects (if $asobject is TRUE) + * or of associative arrays matching the record structure in the database. + */ + function getUsersByGroup($group_id, $asobject = false, $limit = 0, $start = 0) + { + $user_ids =& $this->_mHandler->getUsersByGroup($group_id, $limit, $start); + if (!$asobject) { + return $user_ids; + } else { + $ret = array(); + foreach ($user_ids as $u_id) { + $user =& $this->getUser($u_id); + if (is_object($user)) { + $ret[] =& $user; + } + unset($user); + } + return $ret; + } + } + + /** + * get a list of groups that a user is member of + * + * @param int $user_id ID of the user + * @param bool $asobject return groups as {@link XoopsGroup} objects or arrays? + * @return array array of objects or arrays + */ + function getGroupsByUser($user_id, $asobject = false) + { + $group_ids =& $this->_mHandler->getGroupsByUser($user_id); + if (!$asobject) { + return $group_ids; + } else { + foreach ($group_ids as $g_id) { + $ret[] =& $this->getGroup($g_id); + } + return $ret; + } + } + + /** + * log in a user + * + * @param string $uname username as entered in the login form + * @param string $pwd password entered in the login form + * @return object XoopsUser reference to the logged in user. FALSE if failed to log in + */ + function &loginUser($uname, $pwd) + { + $criteria = new CriteriaCompo(new Criteria('uname', $uname)); + $criteria->add(new Criteria('pass', md5($pwd))); + $user =& $this->_uHandler->getObjects($criteria, false); + if (!$user || count($user) != 1) { + return false; + } + return $user[0]; + } + + /** + * logs in a user with an nd5 encrypted password + * + * @param string $uname username + * @param string $md5pwd password encrypted with md5 + * @return object XoopsUser reference to the logged in user. FALSE if failed to log in + */ + function &loginUserMd5($uname, $md5pwd) + { + $criteria = new CriteriaCompo(new Criteria('uname', $uname)); + $criteria->add(new Criteria('pass', $md5pwd)); + $user =& $this->_uHandler->getObjects($criteria, false); + if (!$user || count($user) != 1) { + return false; + } + return $user[0]; + } + + /** + * count users matching certain conditions + * + * @param object $criteria {@link CriteriaElement} object + * @return int + */ + function getUserCount($criteria = null) + { + return $this->_uHandler->getCount($criteria); + } + + /** + * count users belonging to a group + * + * @param int $group_id ID of the group + * @return int + */ + function getUserCountByGroup($group_id) + { + return $this->_mHandler->getCount(new Criteria('groupid', $group_id)); + } + + /** + * updates a single field in a users record + * + * @param object $user reference to the {@link XoopsUser} object + * @param string $fieldName name of the field to update + * @param string $fieldValue updated value for the field + * @return bool TRUE if success or unchanged, FALSE on failure + */ + function updateUserByField(&$user, $fieldName, $fieldValue) + { + $user->setVar($fieldName, $fieldValue); + return $this->insertUser($user); + } + + /** + * updates a single field in a users record + * + * @param string $fieldName name of the field to update + * @param string $fieldValue updated value for the field + * @param object $criteria {@link CriteriaElement} object + * @return bool TRUE if success or unchanged, FALSE on failure + */ + function updateUsersByField($fieldName, $fieldValue, $criteria = null) + { + return $this->_uHandler->updateAll($fieldName, $fieldValue, $criteria); + } + + /** + * activate a user + * + * @param object $user reference to the {@link XoopsUser} object + * @return bool successful? + */ + function activateUser(&$user) + { + if ($user->getVar('level') != 0) { + return true; + } + $user->setVar('level', 1); + return $this->_uHandler->insert($user, true); + } + +} +?> Index: xoops2jp/html/kernel/module.php diff -u xoops2jp/html/kernel/module.php:1.3 xoops2jp/html/kernel/module.php:1.4 --- xoops2jp/html/kernel/module.php:1.3 Sat Jun 11 11:32:41 2005 +++ xoops2jp/html/kernel/module.php Wed Aug 3 21:39:12 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/language/japanese/notification.php diff -u xoops2jp/html/language/japanese/notification.php:1.3 xoops2jp/html/language/japanese/notification.php:1.4 --- xoops2jp/html/language/japanese/notification.php:1.3 Sat Jun 11 11:32:41 2005 +++ xoops2jp/html/language/japanese/notification.php Wed Aug 3 21:39:12 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/contact/index.php diff -u xoops2jp/html/modules/contact/index.php:1.3 xoops2jp/html/modules/contact/index.php:1.4 --- xoops2jp/html/modules/contact/index.php:1.3 Sat Jun 11 11:32:41 2005 +++ xoops2jp/html/modules/contact/index.php Wed Aug 3 21:39:12 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/mydownloads/admin/index.php diff -u xoops2jp/html/modules/mydownloads/admin/index.php:1.3 xoops2jp/html/modules/mydownloads/admin/index.php:1.4 --- xoops2jp/html/modules/mydownloads/admin/index.php:1.3 Sat Jun 11 11:32:42 2005 +++ xoops2jp/html/modules/mydownloads/admin/index.php Wed Aug 3 21:39:12 2005 @@ -1,5 +1,5 @@ "; echo ""; echo "\n"; - echo myTextForm("index.php?op=delNewDownload&lid=$lid",_MD_DELETE); + echo myTextForm("index.php?op=delNewDownload&lid=$lid",_MD_DELETE); echo "

"; } }else{ @@ -327,7 +327,7 @@ echo ""; echo "\n"; echo "
\n"; - echo myTextForm("index.php?op=delDownload&lid=".$lid , _MD_DELETE); + echo myTextForm("index.php?op=delDownload&lid=".$lid , _MD_DELETE); echo "\n"; echo myTextForm("index.php?op=downloadsConfigMenu", _MD_CANCEL); echo "
\n"; @@ -363,11 +363,11 @@ $useravgrating = $useravgrating / $uservotes; $useravgrating = number_format($useravgrating, 1); $ratinguname = XoopsUser::getUnameFromId($ratinguser); - // echo "$ratinguname$ratinghostname$rating$useravgrating$uservotes$formatted_dateX\n"; + // echo "$ratinguname$ratinghostname$rating$useravgrating$uservotes$formatted_dateX\n"; // echo "$ratinguname$ratinghostname$rating$useravgrating$uservotes$formatted_date"; echo "$ratinguname$ratinghostname$rating$useravgrating$uservotes$formatted_date"; //echo "
\n"; - echo myTextForm("index.php?op=delVote&lid=$lid&rid=$ratingid" , "X"); + echo myTextForm("index.php?op=delVote&lid=$lid&rid=$ratingid" , "X"); // echo "
\n"; echo "\n"; @@ -393,11 +393,11 @@ $colorswitch="dddddd"; while(list($ratingid, $rating, $ratinghostname, $ratingtimestamp)=$xoopsDB->fetchRow($result5)) { $formatted_date = formatTimestamp($ratingtimestamp); - // echo "$ratinghostname$rating$formatted_dateX"; + // echo "$ratinghostname$rating$formatted_dateX"; echo "$ratinghostname$rating$formatted_date"; //echo "
\n"; //align=\"center\" - echo myTextForm("index.php?op=delVote&lid=$lid&rid=$ratingid" , "X"); + echo myTextForm("index.php?op=delVote&lid=$lid&rid=$ratingid" , "X"); //echo "
\n"; echo ""; @@ -474,11 +474,11 @@ echo "$ownername"; } echo "\n"; - echo myTextForm("index.php?op=ignoreBrokenDownloads&lid=$lid" , "X"); + echo myTextForm("index.php?op=ignoreBrokenDownloads&lid=$lid" , "X"); echo "\n"; - echo myTextForm("index.php?op=modDownload&lid=$lid" , "X"); + echo myTextForm("index.php?op=modDownload&lid=$lid" , "X"); echo "\n"; - echo myTextForm("index.php?op=delBrokenDownloads&lid=$lid" , "X"); + echo myTextForm("index.php?op=delBrokenDownloads&lid=$lid" , "X"); echo "\n"; if ($colorswitch=="#dddddd") { $colorswitch="#ffffff"; @@ -611,11 +611,11 @@ } echo "\n"; echo "
\n"; - echo myTextForm("index.php?op=changeModReq&requestid=$requestid" , _MD_APPROVE); + echo myTextForm("index.php?op=changeModReq&requestid=$requestid" , _MD_APPROVE); echo "\n"; - echo myTextForm("index.php?op=modDownload&lid=$lookup_lid[$requestid]", _EDIT); + echo myTextForm("index.php?op=modDownload&lid=$lookup_lid[$requestid]", _EDIT); echo "\n"; - echo myTextForm("index.php?op=ignoreModReq&requestid=$requestid", _MD_IGNORE); + echo myTextForm("index.php?op=ignoreModReq&requestid=$requestid", _MD_IGNORE); echo "
\n"; echo "
\n"; echo "

"; From onokazu @ users.sourceforge.jp Wed Aug 3 21:39:13 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Wed, 3 Aug 2005 21:39:13 +0900 Subject: [xoops-cvslog 272] CVS update: xoops2jp/html/modules/mydownloads/blocks Message-ID: <20050803123913.14EA22AC03A@users.sourceforge.jp> Index: xoops2jp/html/modules/mydownloads/blocks/mydownloads_top.php diff -u xoops2jp/html/modules/mydownloads/blocks/mydownloads_top.php:1.3 xoops2jp/html/modules/mydownloads/blocks/mydownloads_top.php:1.4 --- xoops2jp/html/modules/mydownloads/blocks/mydownloads_top.php:1.3 Sat Jun 11 11:32:42 2005 +++ xoops2jp/html/modules/mydownloads/blocks/mydownloads_top.php Wed Aug 3 21:39:12 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/mylinks/admin/index.php diff -u xoops2jp/html/modules/mylinks/admin/index.php:1.3 xoops2jp/html/modules/mylinks/admin/index.php:1.4 --- xoops2jp/html/modules/mylinks/admin/index.php:1.3 Sat Jun 11 11:32:43 2005 +++ xoops2jp/html/modules/mylinks/admin/index.php Wed Aug 3 21:39:13 2005 @@ -440,11 +440,11 @@ } echo "\n"; - echo myTextForm("index.php?op=ignoreBrokenLinks&lid=$lid" , "X"); + echo myTextForm("index.php?op=ignoreBrokenLinks&lid=$lid" , "X"); echo "\n"; - echo myTextForm("index.php?op=modLink&lid=$lid" , "X"); + echo myTextForm("index.php?op=modLink&lid=$lid" , "X"); echo "\n"; - echo myTextForm("index.php?op=delBrokenLinks&lid=$lid" , "X"); + echo myTextForm("index.php?op=delBrokenLinks&lid=$lid" , "X"); echo "\n"; if ( $colorswitch == "#dddddd" ) { @@ -570,11 +570,11 @@ } echo "\n"; echo "
\n"; - echo myTextForm("index.php?op=changeModReq&requestid=$requestid" , _MD_APPROVE); + echo myTextForm("index.php?op=changeModReq&requestid=$requestid" , _MD_APPROVE); echo "\n"; - echo myTextForm("index.php?op=modLink&lid=$lookup_lid[$requestid]", _EDIT); + echo myTextForm("index.php?op=modLink&lid=$lookup_lid[$requestid]", _EDIT); echo "\n"; - echo myTextForm("index.php?op=ignoreModReq&requestid=$requestid", _MD_IGNORE); + echo myTextForm("index.php?op=ignoreModReq&requestid=$requestid", _MD_IGNORE); echo "
\n"; echo "
\n"; echo "

"; From onokazu @ users.sourceforge.jp Wed Aug 3 21:39:13 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Wed, 3 Aug 2005 21:39:13 +0900 Subject: [xoops-cvslog 274] CVS update: xoops2jp/html/modules/mydownloads Message-ID: <20050803123913.3A6752AC03B@users.sourceforge.jp> Index: xoops2jp/html/modules/mydownloads/index.php diff -u xoops2jp/html/modules/mydownloads/index.php:1.3 xoops2jp/html/modules/mydownloads/index.php:1.4 --- xoops2jp/html/modules/mydownloads/index.php:1.3 Sat Jun 11 11:32:42 2005 +++ xoops2jp/html/modules/mydownloads/index.php Wed Aug 3 21:39:13 2005 @@ -1,5 +1,5 @@ '._MD_EDITTHISDL.''; + $adminlink = ''._MD_EDITTHISDL.''; } else { $adminlink = ''; } Index: xoops2jp/html/modules/mydownloads/ratefile.php diff -u xoops2jp/html/modules/mydownloads/ratefile.php:1.3 xoops2jp/html/modules/mydownloads/ratefile.php:1.4 --- xoops2jp/html/modules/mydownloads/ratefile.php:1.3 Sat Jun 11 11:32:42 2005 +++ xoops2jp/html/modules/mydownloads/ratefile.php Wed Aug 3 21:39:13 2005 @@ -1,5 +1,5 @@ isAdmin($xoopsModule->mid())) { - $adminlink = ''._MD_EDITTHISDL.''; + $adminlink = ''._MD_EDITTHISDL.''; } else { $adminlink = ''; } Index: xoops2jp/html/modules/mydownloads/submit.php diff -u xoops2jp/html/modules/mydownloads/submit.php:1.2 xoops2jp/html/modules/mydownloads/submit.php:1.3 --- xoops2jp/html/modules/mydownloads/submit.php:1.2 Fri Mar 18 21:52:14 2005 +++ xoops2jp/html/modules/mydownloads/submit.php Wed Aug 3 21:39:13 2005 @@ -1,5 +1,5 @@ getVar('dirname') . '/singlefile.php?cid=' . $cid . '&lid=' . $newid; + $tags['FILE_URL'] = XOOPS_URL . '/modules/' . $xoopsModule->getVar('dirname') . '/singlefile.php?cid=' . $cid . '&lid=' . $newid; $sql = "SELECT title FROM " . $xoopsDB->prefix("mydownloads_cat") . " WHERE cid=" . $cid; $result = $xoopsDB->query($sql); $row = $xoopsDB->fetchArray($result); Index: xoops2jp/html/modules/mydownloads/viewcat.php diff -u xoops2jp/html/modules/mydownloads/viewcat.php:1.3 xoops2jp/html/modules/mydownloads/viewcat.php:1.4 --- xoops2jp/html/modules/mydownloads/viewcat.php:1.3 Sat Jun 11 11:32:42 2005 +++ xoops2jp/html/modules/mydownloads/viewcat.php Wed Aug 3 21:39:13 2005 @@ -1,5 +1,5 @@ 0", $xoopsDB->prefix("mydownloads_downloads"), $lid); $xoopsDB->queryF($sql); $result = $xoopsDB->query("SELECT url FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE lid=$lid AND status>0"); list($url) = $xoopsDB->fetchRow($result); +if (empty($url)) { + header('Location: '.XOOPS_URL.'/'); + exit(); +} if (!preg_match("/^ed2k*:\/\//i", $url)) { - Header("Location: $url"); + Header("Location: $url"); } -echo ""; +$url = htmlspecialchars(preg_replace( '/javascript:/si' , 'java script:', $url ), ENT_QUOTES); +echo ""; exit(); ?> From onokazu @ users.sourceforge.jp Wed Aug 3 21:39:13 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Wed, 3 Aug 2005 21:39:13 +0900 Subject: [xoops-cvslog 275] CVS update: xoops2jp/html/modules/mylinks/blocks Message-ID: <20050803123913.7C9C32AC03A@users.sourceforge.jp> Index: xoops2jp/html/modules/mylinks/blocks/mylinks_top.php diff -u xoops2jp/html/modules/mylinks/blocks/mylinks_top.php:1.3 xoops2jp/html/modules/mylinks/blocks/mylinks_top.php:1.4 --- xoops2jp/html/modules/mylinks/blocks/mylinks_top.php:1.3 Sat Jun 11 11:32:43 2005 +++ xoops2jp/html/modules/mylinks/blocks/mylinks_top.php Wed Aug 3 21:39:13 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/mylinks/index.php diff -u xoops2jp/html/modules/mylinks/index.php:1.3 xoops2jp/html/modules/mylinks/index.php:1.4 --- xoops2jp/html/modules/mylinks/index.php:1.3 Sat Jun 11 11:32:44 2005 +++ xoops2jp/html/modules/mylinks/index.php Wed Aug 3 21:39:13 2005 @@ -1,5 +1,5 @@ getVar('dirname') . '/singlelink.php?cid=' . $cid . '&lid=' . $newid; + $tags['LINK_URL'] = XOOPS_URL . '/modules/'. $xoopsModule->getVar('dirname') . '/singlelink.php?cid=' . $cid . '&lid=' . $newid; $sql = "SELECT title FROM " . $xoopsDB->prefix("mylinks_cat") . " WHERE cid=" . $cid; $result = $xoopsDB->query($sql); $row = $xoopsDB->fetchArray($result); Index: xoops2jp/html/modules/mylinks/viewcat.php diff -u xoops2jp/html/modules/mylinks/viewcat.php:1.3 xoops2jp/html/modules/mylinks/viewcat.php:1.4 --- xoops2jp/html/modules/mylinks/viewcat.php:1.3 Sat Jun 11 11:32:44 2005 +++ xoops2jp/html/modules/mylinks/viewcat.php Wed Aug 3 21:39:13 2005 @@ -1,5 +1,5 @@ 0", $xoopsDB->prefix("mylinks_links"), $lid); $xoopsDB->queryF($sql); $result = $xoopsDB->query("select url from ".$xoopsDB->prefix("mylinks_links")." where lid=$lid and status>0"); list($url) = $xoopsDB->fetchRow($result); +if (empty($url)) { + header('Location: '.XOOPS_URL.'/'); + exit(); +} $url = htmlspecialchars(preg_replace( '/javascript:/si' , 'java script:', $url ), ENT_QUOTES); - - if ( $xoopsModuleConfig['frame'] != "" ) { header('Content-Type:text/html; charset='._CHARSET); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); From onokazu @ users.sourceforge.jp Wed Aug 3 21:39:13 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Wed, 3 Aug 2005 21:39:13 +0900 Subject: [xoops-cvslog 277] CVS update: xoops2jp/html/modules/newbb/admin Message-ID: <20050803123913.CD6DC2AC02D@users.sourceforge.jp> Index: xoops2jp/html/modules/newbb/admin/admin_forums.php diff -u xoops2jp/html/modules/newbb/admin/admin_forums.php:1.3 xoops2jp/html/modules/newbb/admin/admin_forums.php:1.4 --- xoops2jp/html/modules/newbb/admin/admin_forums.php:1.3 Sat Jun 11 11:32:44 2005 +++ xoops2jp/html/modules/newbb/admin/admin_forums.php Wed Aug 3 21:39:13 2005 @@ -6,7 +6,7 @@ copyright : (C) 2001 The phpBB Group email : support @ phpbb.com - $Id: admin_forums.php,v 1.3 2005/06/11 02:32:44 onokazu Exp $ + $Id: admin_forums.php,v 1.4 2005/08/03 12:39:13 onokazu Exp $ ***************************************************************************/ /*************************************************************************** Index: xoops2jp/html/modules/newbb/admin/admin_priv_forums.php diff -u xoops2jp/html/modules/newbb/admin/admin_priv_forums.php:1.3 xoops2jp/html/modules/newbb/admin/admin_priv_forums.php:1.4 --- xoops2jp/html/modules/newbb/admin/admin_priv_forums.php:1.3 Sat Jun 11 11:32:44 2005 +++ xoops2jp/html/modules/newbb/admin/admin_priv_forums.php Wed Aug 3 21:39:13 2005 @@ -6,7 +6,7 @@ copyright : (C) 2001 The phpBB Group email : support @ phpbb.com - $Id: admin_priv_forums.php,v 1.3 2005/06/11 02:32:44 onokazu Exp $ + $Id: admin_priv_forums.php,v 1.4 2005/08/03 12:39:13 onokazu Exp $ ***************************************************************************/ /*************************************************************************** @@ -286,7 +286,7 @@ { $post_text = ($row['can_post']) ? "can" : "can't"; $post_text .= " post"; - $post_toggle_link = XOOPS_URL."/modules/newbb/admin/admin_priv_forums.php?forum=$forum&op_userid=".$row['uid']."&op="; + $post_toggle_link = XOOPS_URL."/modules/newbb/admin/admin_priv_forums.php?forum=$forum&op_userid=".$row['uid']."&op="; if ($row['can_post']) { $post_toggle_link .= "revokeuserpost"; Index: xoops2jp/html/modules/newbb/admin/index.php diff -u xoops2jp/html/modules/newbb/admin/index.php:1.3 xoops2jp/html/modules/newbb/admin/index.php:1.4 --- xoops2jp/html/modules/newbb/admin/index.php:1.3 Sat Jun 11 11:32:44 2005 +++ xoops2jp/html/modules/newbb/admin/index.php Wed Aug 3 21:39:13 2005 @@ -1,5 +1,5 @@ - +   From onokazu @ users.sourceforge.jp Wed Aug 3 21:39:13 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Wed, 3 Aug 2005 21:39:13 +0900 Subject: [xoops-cvslog 278] CVS update: xoops2jp/html/modules/newbb/blocks Message-ID: <20050803123913.EB1812AC03A@users.sourceforge.jp> Index: xoops2jp/html/modules/newbb/blocks/newbb_new.php diff -u xoops2jp/html/modules/newbb/blocks/newbb_new.php:1.3 xoops2jp/html/modules/newbb/blocks/newbb_new.php:1.4 --- xoops2jp/html/modules/newbb/blocks/newbb_new.php:1.3 Sat Jun 11 11:32:45 2005 +++ xoops2jp/html/modules/newbb/blocks/newbb_new.php Wed Aug 3 21:39:13 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/newbb/class/class.forumposts.php diff -u xoops2jp/html/modules/newbb/class/class.forumposts.php:1.3 xoops2jp/html/modules/newbb/class/class.forumposts.php:1.4 --- xoops2jp/html/modules/newbb/class/class.forumposts.php:1.3 Sat Jun 11 11:32:45 2005 +++ xoops2jp/html/modules/newbb/class/class.forumposts.php Wed Aug 3 21:39:13 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/newbb/delete.php diff -u xoops2jp/html/modules/newbb/delete.php:1.4 xoops2jp/html/modules/newbb/delete.php:1.5 --- xoops2jp/html/modules/newbb/delete.php:1.4 Tue Jun 28 16:45:06 2005 +++ xoops2jp/html/modules/newbb/delete.php Wed Aug 3 21:39:14 2005 @@ -1,5 +1,5 @@ isAdmin($xoopsModule->mid()) ) { if ( !is_moderator($forum, $xoopsUser->uid()) ) { - redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_DELNOTALLOWED); + redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_DELNOTALLOWED); exit(); } } } else { - redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_DELNOTALLOWED); + redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_DELNOTALLOWED); exit(); } @@ -75,7 +75,7 @@ redirect_header("viewforum.php?forum=$forum", 2, _MD_POSTSDELETED); exit(); } else { - redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_POSTSDELETED); + redirect_header("viewtopic.php?topic_id=$topic_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum", 2, _MD_POSTSDELETED); exit(); } } else { Index: xoops2jp/html/modules/newbb/edit.php diff -u xoops2jp/html/modules/newbb/edit.php:1.2 xoops2jp/html/modules/newbb/edit.php:1.3 --- xoops2jp/html/modules/newbb/edit.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/newbb/edit.php Wed Aug 3 21:39:14 2005 @@ -1,5 +1,5 @@ nohtml(); Index: xoops2jp/html/modules/newbb/index.php diff -u xoops2jp/html/modules/newbb/index.php:1.3 xoops2jp/html/modules/newbb/index.php:1.4 --- xoops2jp/html/modules/newbb/index.php:1.3 Sat Jun 11 11:32:46 2005 +++ xoops2jp/html/modules/newbb/index.php Wed Aug 3 21:39:14 2005 @@ -1,5 +1,5 @@ getVar("uname"); @@ -138,7 +138,7 @@ $uid = 0; } else { if ( !empty($topic_id) ) { - redirect_header("viewtopic.php?topic_id=".$topic_id."&order=".$order."&viewmode=".$viewmode."&pid=".$pid."&forum=".$forum,2,_MD_ANONNOTALLOWED); + redirect_header("viewtopic.php?topic_id=".$topic_id."&order=".$order."&viewmode=".$viewmode."&pid=".$pid."&forum=".$forum,2,_MD_ANONNOTALLOWED); } else { redirect_header("viewforum.php?forum=".$forum,2,_MD_ANONNOTALLOWED); } @@ -178,7 +178,7 @@ // Define tags for notification message $tags = array(); $tags['THREAD_NAME'] = $HTTP_POST_VARS['subject']; - $tags['THREAD_URL'] = XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/viewtopic.php?forum=' . $forum . '&post_id='.$postid.'&topic_id=' . $forumpost->topic(); + $tags['THREAD_URL'] = XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/viewtopic.php?forum=' . $forum . '&post_id='.$postid.'&topic_id=' . $forumpost->topic(); $tags['POST_URL'] = $tags['THREAD_URL'] . '#forumpost' . $postid; include_once 'include/notification.inc.php'; $forum_info = newbb_notify_iteminfo ('forum', $forum); Index: xoops2jp/html/modules/newbb/reply.php diff -u xoops2jp/html/modules/newbb/reply.php:1.2 xoops2jp/html/modules/newbb/reply.php:1.3 --- xoops2jp/html/modules/newbb/reply.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/newbb/reply.php Wed Aug 3 21:39:14 2005 @@ -1,5 +1,5 @@ prefix("bb_forums")." WHERE forum_id = $forum"; @@ -68,7 +68,7 @@ $accesserror = 1; } if ( $accesserror == 1 ) { - redirect_header("viewtopic.php?topic_id=$topic_id&post_id=$post_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum",2,_MD_NORIGHTTOPOST); + redirect_header("viewtopic.php?topic_id=$topic_id&post_id=$post_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum",2,_MD_NORIGHTTOPOST); exit(); } // Ok, looks like we're good. @@ -88,7 +88,7 @@ $accesserror = 1; } if ( $accesserror == 1 ) { - redirect_header("viewtopic.php?topic_id=$topic_id&post_id=$post_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum",2,_MD_NORIGHTTOPOST); + redirect_header("viewtopic.php?topic_id=$topic_id&post_id=$post_id&order=$order&viewmode=$viewmode&pid=$pid&forum=$forum",2,_MD_NORIGHTTOPOST); exit(); } } Index: xoops2jp/html/modules/newbb/viewforum.php diff -u xoops2jp/html/modules/newbb/viewforum.php:1.2 xoops2jp/html/modules/newbb/viewforum.php:1.3 --- xoops2jp/html/modules/newbb/viewforum.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/newbb/viewforum.php Wed Aug 3 21:39:14 2005 @@ -1,5 +1,5 @@ 3 && $i < $totalpages ) { $pagination .= "..."; } else { - $addlink = '&start='.(($i - 1) * $forumdata['posts_per_page']); + $addlink = '&start='.(($i - 1) * $forumdata['posts_per_page']); $pagination .= '['.$i.']'; } } From onokazu @ users.sourceforge.jp Wed Aug 3 21:39:14 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Wed, 3 Aug 2005 21:39:14 +0900 Subject: [xoops-cvslog 281] CVS update: xoops2jp/html/modules/newbb/include Message-ID: <20050803123914.60CA22AC03A@users.sourceforge.jp> Index: xoops2jp/html/modules/newbb/include/forumform.inc.php diff -u xoops2jp/html/modules/newbb/include/forumform.inc.php:1.3 xoops2jp/html/modules/newbb/include/forumform.inc.php:1.4 --- xoops2jp/html/modules/newbb/include/forumform.inc.php:1.3 Sat Jun 11 11:32:46 2005 +++ xoops2jp/html/modules/newbb/include/forumform.inc.php Wed Aug 3 21:39:14 2005 @@ -1,5 +1,5 @@ query($sql); // TODO: error check $result_array = $xoopsDB->fetchArray($result); $item['name'] = $result_array['topic_title']; - $item['url'] = XOOPS_URL . '/modules/' . $module->getVar('dirname') . '/viewtopic.php?forum=' . $result_array['forum_id'] . '&topic_id=' . $item_id; + $item['url'] = XOOPS_URL . '/modules/' . $module->getVar('dirname') . '/viewtopic.php?forum=' . $result_array['forum_id'] . '&topic_id=' . $item_id; return $item; } Index: xoops2jp/html/modules/newbb/include/search.inc.php diff -u xoops2jp/html/modules/newbb/include/search.inc.php:1.3 xoops2jp/html/modules/newbb/include/search.inc.php:1.4 --- xoops2jp/html/modules/newbb/include/search.inc.php:1.3 Sat Jun 11 11:32:46 2005 +++ xoops2jp/html/modules/newbb/include/search.inc.php Wed Aug 3 21:39:14 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/newbb/language/english/admin.php diff -u xoops2jp/html/modules/newbb/language/english/admin.php:1.3 xoops2jp/html/modules/newbb/language/english/admin.php:1.4 --- xoops2jp/html/modules/newbb/language/english/admin.php:1.3 Sat Jun 11 11:32:46 2005 +++ xoops2jp/html/modules/newbb/language/english/admin.php Wed Aug 3 21:39:14 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/news/admin/index.php diff -u xoops2jp/html/modules/news/admin/index.php:1.3 xoops2jp/html/modules/news/admin/index.php:1.4 --- xoops2jp/html/modules/news/admin/index.php:1.3 Sat Jun 11 11:32:47 2005 +++ xoops2jp/html/modules/news/admin/index.php Wed Aug 3 21:39:14 2005 @@ -1,5 +1,5 @@ "._AM_TOPICDISPLAY."  "._AM_YES." "._AM_YES." "._AM_NO."   "; echo ""._AM_TOPICALIGN." '._MD_IMGDELETE.''; + echo ''._MD_IMGFILE.''.$imgs[$i]->getVar('imgsetimg_file').''._MD_IMGNEWFILE.''._MD_IMGDELETE.''; } echo ''; } @@ -49,7 +49,7 @@ } else { echo ''; for ($i = 0; $i < $icount; $i++) { - echo ''; + echo ''; } echo '
'._MD_SKINIMGS.'
'._MD_IMGFILE.''.$imgs[$i]->getVar('imgsetimg_file').'
'._MD_IMGFILE.''.$imgs[$i]->getVar('imgsetimg_file').'
'; } Index: xoops2jp/html/modules/system/admin/tplsets/tplform.php diff -u xoops2jp/html/modules/system/admin/tplsets/tplform.php:1.3 xoops2jp/html/modules/system/admin/tplsets/tplform.php:1.4 --- xoops2jp/html/modules/system/admin/tplsets/tplform.php:1.3 Sat Jun 11 11:32:53 2005 +++ xoops2jp/html/modules/system/admin/tplsets/tplform.php Wed Aug 3 21:39:17 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/system/admin/userrank/main.php diff -u xoops2jp/html/modules/system/admin/userrank/main.php:1.3 xoops2jp/html/modules/system/admin/userrank/main.php:1.4 --- xoops2jp/html/modules/system/admin/userrank/main.php:1.3 Sat Jun 11 11:32:53 2005 +++ xoops2jp/html/modules/system/admin/userrank/main.php Wed Aug 3 21:40:00 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/system/admin/users/main.php diff -u xoops2jp/html/modules/system/admin/users/main.php:1.4 xoops2jp/html/modules/system/admin/users/main.php:1.5 --- xoops2jp/html/modules/system/admin/users/main.php:1.4 Tue Jun 28 16:45:07 2005 +++ xoops2jp/html/modules/system/admin/users/main.php Wed Aug 3 21:40:00 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/system/admin/version/main.php diff -u xoops2jp/html/modules/system/admin/version/main.php:1.3 xoops2jp/html/modules/system/admin/version/main.php:1.4 --- xoops2jp/html/modules/system/admin/version/main.php:1.3 Sat Jun 11 11:32:54 2005 +++ xoops2jp/html/modules/system/admin/version/main.php Wed Aug 3 21:40:00 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/system/blocks/system_blocks.php diff -u xoops2jp/html/modules/system/blocks/system_blocks.php:1.4 xoops2jp/html/modules/system/blocks/system_blocks.php:1.5 --- xoops2jp/html/modules/system/blocks/system_blocks.php:1.4 Thu Jun 30 14:07:52 2005 +++ xoops2jp/html/modules/system/blocks/system_blocks.php Wed Aug 3 21:40:01 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/xoopsheadline/class/headline.php diff -u xoops2jp/html/modules/xoopsheadline/class/headline.php:1.3 xoops2jp/html/modules/xoopsheadline/class/headline.php:1.4 --- xoops2jp/html/modules/xoopsheadline/class/headline.php:1.3 Sat Jun 11 11:32:56 2005 +++ xoops2jp/html/modules/xoopsheadline/class/headline.php Wed Aug 3 21:40:01 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/xoopsheadline/admin/index.php diff -u xoops2jp/html/modules/xoopsheadline/admin/index.php:1.3 xoops2jp/html/modules/xoopsheadline/admin/index.php:1.4 --- xoops2jp/html/modules/xoopsheadline/admin/index.php:1.3 Sat Jun 11 11:32:56 2005 +++ xoops2jp/html/modules/xoopsheadline/admin/index.php Wed Aug 3 21:40:01 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/xoopsfaq/admin/contentsform.php diff -u xoops2jp/html/modules/xoopsfaq/admin/contentsform.php:1.2 xoops2jp/html/modules/xoopsfaq/admin/contentsform.php:1.3 --- xoops2jp/html/modules/xoopsfaq/admin/contentsform.php:1.2 Fri Mar 18 21:52:49 2005 +++ xoops2jp/html/modules/xoopsfaq/admin/contentsform.php Wed Aug 3 21:40:01 2005 @@ -1,5 +1,5 @@ "._XD_NOHTML."
"; $checked = ($contents_nosmiley == 1) ? " checked='checked'" : ""; Index: xoops2jp/html/modules/xoopsfaq/admin/index.php diff -u xoops2jp/html/modules/xoopsfaq/admin/index.php:1.3 xoops2jp/html/modules/xoopsfaq/admin/index.php:1.4 --- xoops2jp/html/modules/xoopsfaq/admin/index.php:1.3 Sat Jun 11 11:32:55 2005 +++ xoops2jp/html/modules/xoopsfaq/admin/index.php Wed Aug 3 21:40:01 2005 @@ -1,5 +1,5 @@ 0) { + $contents_nohtml = !empty($_POST['contents_nohtml']) ? 1 : 0; + $contents_nosmiley = !empty($_POST['contents_nosmiley']) ? 1 : 0; + $contents_noxcode = !empty($_POST['contents_noxcode']) ? 1 : 0; + $contents_visible = !empty($_POST['contents_visible']) ? 1 : 0; + $contents_order = !empty($_POST['contents_order']) ? intval($_POST['contents_order']) : 0; $myts =& MyTextSanitizer::getInstance(); $title = $myts->stripSlashesGPC($_POST['contents_title']); $contents = $myts->makeTareaData4Save($_POST['contents_contents']); $newid = $xoopsDB->genId($xoopsDB->prefix("xoopsfaq_contents")."_contents_id_seq"); - $sql = "INSERT INTO ".$xoopsDB->prefix("xoopsfaq_contents")." (contents_id, category_id, contents_title, contents_contents, contents_time, contents_order, contents_visible, contents_nohtml, contents_nosmiley, contents_noxcode) VALUES ($newid, $category_id, ".$xoopsDB->quoteString($title).", ".$xoopsDB->quoteString($contents).", ".time().", ".intval($_POST['contents_order']).", ".intval($_POST['contents_visible']).", ".intval($_POST['contents_nohtml']).", ".intval($_POST['contents_nosmiley']).", ".intval($_POST['contents_noxcode']).")"; + $sql = "INSERT INTO ".$xoopsDB->prefix("xoopsfaq_contents")." (contents_id, category_id, contents_title, contents_contents, contents_time, contents_order, contents_visible, contents_nohtml, contents_nosmiley, contents_noxcode) VALUES ($newid, $category_id, ".$xoopsDB->quoteString($title).", ".$xoopsDB->quoteString($contents).", ".time().", ".$contents_order.", ".$contents_visible.", ".$contents_nohtml.", ".$contents_nosmiley.", ".$contents_noxcode.")"; if (!$xoopsDB->query($sql)) { xoops_cp_header(); echo "Could not add contents"; From onokazu @ users.sourceforge.jp Wed Aug 3 21:40:01 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Wed, 3 Aug 2005 21:40:01 +0900 Subject: [xoops-cvslog 311] CVS update: xoops2jp/html/modules/xoopsheadline/language/japanese Message-ID: <20050803124001.E35FB2AC03B@users.sourceforge.jp> Index: xoops2jp/html/modules/xoopsheadline/language/japanese/admin.php diff -u xoops2jp/html/modules/xoopsheadline/language/japanese/admin.php:1.3 xoops2jp/html/modules/xoopsheadline/language/japanese/admin.php:1.4 --- xoops2jp/html/modules/xoopsheadline/language/japanese/admin.php:1.3 Sat Jun 11 11:32:56 2005 +++ xoops2jp/html/modules/xoopsheadline/language/japanese/admin.php Wed Aug 3 21:40:01 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/xoopsmembers/index.php diff -u xoops2jp/html/modules/xoopsmembers/index.php:1.2 xoops2jp/html/modules/xoopsmembers/index.php:1.3 --- xoops2jp/html/modules/xoopsmembers/index.php:1.2 Fri Mar 18 21:52:49 2005 +++ xoops2jp/html/modules/xoopsmembers/index.php Wed Aug 3 21:40:01 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/xoopspartners/admin/index.php diff -u xoops2jp/html/modules/xoopspartners/admin/index.php:1.3 xoops2jp/html/modules/xoopspartners/admin/index.php:1.4 --- xoops2jp/html/modules/xoopspartners/admin/index.php:1.3 Sat Jun 11 11:32:57 2005 +++ xoops2jp/html/modules/xoopspartners/admin/index.php Wed Aug 3 21:40:02 2005 @@ -1,5 +1,5 @@ makeTboxData4Save(formatURL($url)); From onokazu @ users.sourceforge.jp Wed Aug 3 21:40:02 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Wed, 3 Aug 2005 21:40:02 +0900 Subject: [xoops-cvslog 314] CVS update: xoops2jp/html/modules/xoopspartners Message-ID: <20050803124002.7D0EE2AC02D@users.sourceforge.jp> Index: xoops2jp/html/modules/xoopspartners/index.php diff -u xoops2jp/html/modules/xoopspartners/index.php:1.3 xoops2jp/html/modules/xoopspartners/index.php:1.4 --- xoops2jp/html/modules/xoopspartners/index.php:1.3 Sat Jun 11 11:32:57 2005 +++ xoops2jp/html/modules/xoopspartners/index.php Wed Aug 3 21:40:02 2005 @@ -1,5 +1,5 @@ assign("partner_join" ,""._MD_JOIN.""); @@ -48,7 +41,7 @@ $query = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("partners")." WHERE status=1"); list($numrows) = $xoopsDB->fetchrow($query); if( $xoopsModuleConfig['modlimit'] != 0 ) { - $partners = $part->getAllPartners("status = 1",true,$xoopsModuleConfig['modorder'],$xoopsModuleConfig['modorderd'],$xoopsModuleConfig['modlimit'],$init); + $partners = $part->getAllPartners("status = 1",true,$xoopsModuleConfig['modorder'],$xoopsModuleConfig['modorderd'],$xoopsModuleConfig['modlimit'],$start); }else{ $partners = $part->getAllPartners("status = 1",true,$xoopsModuleConfig['modorder'],$xoopsModuleConfig['modorderd']); } @@ -82,7 +75,7 @@ $partner[$i]['title'] = $array_partners[$i]['title']; $partner[$i]['description'] = $array_partners[$i]['description']; if ($xoopsUserIsAdmin) { - $partner[$i]['admin_option'] = "
["._MD_EDIT."] ["._MD_DELETE."]"; + $partner[$i]['admin_option'] = "
["._MD_EDIT."] ["._MD_DELETE."]"; } $xoopsTpl->append("partners", $partner[$i]); } Index: xoops2jp/html/modules/xoopspartners/join.php diff -u xoops2jp/html/modules/xoopspartners/join.php:1.3 xoops2jp/html/modules/xoopspartners/join.php:1.4 --- xoops2jp/html/modules/xoopspartners/join.php:1.3 Sat Jun 11 11:32:57 2005 +++ xoops2jp/html/modules/xoopspartners/join.php Wed Aug 3 21:40:02 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/xoopspoll/admin/index.php diff -u xoops2jp/html/modules/xoopspoll/admin/index.php:1.3 xoops2jp/html/modules/xoopspoll/admin/index.php:1.4 --- xoops2jp/html/modules/xoopspoll/admin/index.php:1.3 Sat Jun 11 11:32:57 2005 +++ xoops2jp/html/modules/xoopspoll/admin/index.php Wed Aug 3 21:40:02 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl000644 diff -u /dev/null xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl000644:1.3 --- /dev/null Wed Aug 3 21:40:04 2005 +++ xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl000644 Wed Aug 3 21:40:04 2005 @@ -0,0 +1,21 @@ +{X_UNAME}さん、こんにちは + +{X_SITENAME}にて下記ニュース記事が承認されました。 + +記事タイトル: {STORY_NAME} + +このニュース記事を読むには下記URLにアクセスしてください: +{STORY_URL} + +----------- + +このメールはXOOPSの自動通知機能によって送信されています + +自動通知を停止したい場合は下記のURLにアクセスしてください: +{X_UNSUBSCRIBE_URL} + +----------- +{X_SITENAME} ({X_SITEURL}) +管理人 +{X_ADMINMAIL} +----------- \ No newline at end of file Index: xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl diff -u xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl:1.1 xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl:removed --- xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl:1.1 Mon Aug 1 19:18:13 2005 +++ xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl Wed Aug 3 21:40:04 2005 @@ -1,21 +0,0 @@ -{X_UNAME}さん、こんにちは - -{X_SITENAME}にて下記ニュース記事が承認されました。 - -記事タイトル: {STORY_NAME} - -このニュース記事を読むには下記URLにアクセスしてください: -{STORY_URL} - ------------ - -このメールはXOOPSの自動通知機能によって送信されています - -自動通知を停止したい場合は下記のURLにアクセスしてください: -{X_UNSUBSCRIBE_URL} - ------------ -{X_SITENAME} ({X_SITEURL}) -管理人 -{X_ADMINMAIL} ------------ \ No newline at end of file From onokazu @ users.sourceforge.jp Sat Aug 13 09:48:07 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Sat, 13 Aug 2005 09:48:07 +0900 Subject: [xoops-cvslog 317] CVS update: xoops2jp/html/include Message-ID: <20050813004807.474DD2AC037@users.sourceforge.jp> Index: xoops2jp/html/include/commentform.inc.php diff -u xoops2jp/html/include/commentform.inc.php:1.2 xoops2jp/html/include/commentform.inc.php:1.2.12.1 --- xoops2jp/html/include/commentform.inc.php:1.2 Fri Mar 18 21:51:55 2005 +++ xoops2jp/html/include/commentform.inc.php Sat Aug 13 09:48:07 2005 @@ -1,5 +1,5 @@ addElement(new XoopsFormText(_CM_TITLE, 'subject', 50, 255, $subject), true); $icons_radio = new XoopsFormRadio(_MESSAGEICON, 'icon', $icon); $subject_icons = XoopsLists::getSubjectsList(); foreach ($subject_icons as $iconfile) { - $icons_radio->addOption($iconfile, ''); + $icons_radio->addOption($iconfile, ''); } $cform->addElement($icons_radio); $cform->addElement(new XoopsFormDhtmlTextArea(_CM_MESSAGE, 'message', $message, 10, 50), true); $option_tray = new XoopsFormElementTray(_OPTIONS,'
'); if ($xoopsUser) { - if ($xoopsConfig['anonpost'] == 1) { - $noname_checkbox = new XoopsFormCheckBox('', 'noname', $noname); - $noname_checkbox->addOption(1, _POSTANON); - $option_tray->addElement($noname_checkbox); - } - if ($xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { - $nohtml_checkbox = new XoopsFormCheckBox('', 'nohtml', $nohtml); - $nohtml_checkbox->addOption(1, _DISABLEHTML); - $option_tray->addElement($nohtml_checkbox); - } + if ($xoopsConfig['anonpost'] == 1) { + $noname_checkbox = new XoopsFormCheckBox('', 'noname', $noname); + $noname_checkbox->addOption(1, _POSTANON); + $option_tray->addElement($noname_checkbox); + } + if ($xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { + $nohtml_checkbox = new XoopsFormCheckBox('', 'nohtml', $nohtml); + $nohtml_checkbox->addOption(1, _DISABLEHTML); + $option_tray->addElement($nohtml_checkbox); + } } $smiley_checkbox = new XoopsFormCheckBox('', 'nosmiley', $nosmiley); $smiley_checkbox->addOption(1, _DISABLESMILEY); Index: xoops2jp/html/include/registerform.php diff -u xoops2jp/html/include/registerform.php:1.4 xoops2jp/html/include/registerform.php:1.4.2.1 --- xoops2jp/html/include/registerform.php:1.4 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/include/registerform.php Sat Aug 13 09:48:07 2005 @@ -1,5 +1,5 @@ addOptionArray(array("AND"=>_SR_ALL, "OR"=>_SR_ANY, "exact"=>_SR_EXACT)); $search_form->addElement($type_select); if (!empty($mids)) { - $mods_checkbox = new XoopsFormCheckBox(_SR_SEARCHIN, "mids[]", $mids); + $mods_checkbox = new XoopsFormCheckBox(_SR_SEARCHIN, "mids[]", $mids); } else { - $mods_checkbox = new XoopsFormCheckBox(_SR_SEARCHIN, "mids[]", $mid); + $mods_checkbox = new XoopsFormCheckBox(_SR_SEARCHIN, "mids[]", $mid); } if (empty($modules)) { $criteria = new CriteriaCompo(); @@ -57,7 +61,7 @@ } $search_form->addElement($mods_checkbox); if ($xoopsConfigSearch['keyword_min'] > 0) { - $search_form->addElement(new XoopsFormLabel(_SR_SEARCHRULE, sprintf(_SR_KEYIGNORE, $xoopsConfigSearch['keyword_min']))); + $search_form->addElement(new XoopsFormLabel(_SR_SEARCHRULE, sprintf(_SR_KEYIGNORE, $xoopsConfigSearch['keyword_min']))); } $search_form->addElement(new XoopsFormHidden("action", "results")); $search_form->addElement(new XoopsFormButton("", "submit", _SR_SEARCH, "submit")); From onokazu @ users.sourceforge.jp Sat Aug 13 09:53:50 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Sat, 13 Aug 2005 09:53:50 +0900 Subject: [xoops-cvslog 318] CVS update: xoops2jp/html/modules/contact Message-ID: <20050813005350.A32682AC032@users.sourceforge.jp> Index: xoops2jp/html/modules/contact/contactform.php diff -u xoops2jp/html/modules/contact/contactform.php:1.2 xoops2jp/html/modules/contact/contactform.php:1.2.12.1 --- xoops2jp/html/modules/contact/contactform.php:1.2 Fri Mar 18 21:52:14 2005 +++ xoops2jp/html/modules/contact/contactform.php Sat Aug 13 09:53:50 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/news/include/storyform.inc.php diff -u xoops2jp/html/modules/news/include/storyform.inc.php:1.5 xoops2jp/html/modules/news/include/storyform.inc.php:1.5.2.1 --- xoops2jp/html/modules/news/include/storyform.inc.php:1.5 Wed Aug 3 21:39:15 2005 +++ xoops2jp/html/modules/news/include/storyform.inc.php Sat Aug 13 09:53:50 2005 @@ -1,5 +1,5 @@ addElement(new XoopsFormToken(XoopsMultiTokenHandler::quickCreate('news_submit'))); From onokazu @ users.sourceforge.jp Sat Aug 13 12:41:44 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Sat, 13 Aug 2005 12:41:44 +0900 Subject: [xoops-cvslog 320] CVS update: xoops2jp/html/include Message-ID: <20050813034144.F14652AC018@users.sourceforge.jp> Index: xoops2jp/html/include/commentform.inc.php diff -u xoops2jp/html/include/commentform.inc.php:1.2 xoops2jp/html/include/commentform.inc.php:1.3 --- xoops2jp/html/include/commentform.inc.php:1.2 Fri Mar 18 21:51:55 2005 +++ xoops2jp/html/include/commentform.inc.php Sat Aug 13 12:41:44 2005 @@ -1,5 +1,5 @@ addElement(new XoopsFormText(_CM_TITLE, 'subject', 50, 255, $subject), true); $icons_radio = new XoopsFormRadio(_MESSAGEICON, 'icon', $icon); $subject_icons = XoopsLists::getSubjectsList(); foreach ($subject_icons as $iconfile) { - $icons_radio->addOption($iconfile, ''); + $icons_radio->addOption($iconfile, ''); } $cform->addElement($icons_radio); $cform->addElement(new XoopsFormDhtmlTextArea(_CM_MESSAGE, 'message', $message, 10, 50), true); $option_tray = new XoopsFormElementTray(_OPTIONS,'
'); if ($xoopsUser) { - if ($xoopsConfig['anonpost'] == 1) { - $noname_checkbox = new XoopsFormCheckBox('', 'noname', $noname); - $noname_checkbox->addOption(1, _POSTANON); - $option_tray->addElement($noname_checkbox); - } - if ($xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { - $nohtml_checkbox = new XoopsFormCheckBox('', 'nohtml', $nohtml); - $nohtml_checkbox->addOption(1, _DISABLEHTML); - $option_tray->addElement($nohtml_checkbox); - } + if ($xoopsConfig['anonpost'] == 1) { + $noname_checkbox = new XoopsFormCheckBox('', 'noname', $noname); + $noname_checkbox->addOption(1, _POSTANON); + $option_tray->addElement($noname_checkbox); + } + if ($xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { + $nohtml_checkbox = new XoopsFormCheckBox('', 'nohtml', $nohtml); + $nohtml_checkbox->addOption(1, _DISABLEHTML); + $option_tray->addElement($nohtml_checkbox); + } } $smiley_checkbox = new XoopsFormCheckBox('', 'nosmiley', $nosmiley); $smiley_checkbox->addOption(1, _DISABLESMILEY); Index: xoops2jp/html/include/registerform.php diff -u xoops2jp/html/include/registerform.php:1.4 xoops2jp/html/include/registerform.php:1.5 --- xoops2jp/html/include/registerform.php:1.4 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/include/registerform.php Sat Aug 13 12:41:44 2005 @@ -1,5 +1,5 @@ addOptionArray(array("AND"=>_SR_ALL, "OR"=>_SR_ANY, "exact"=>_SR_EXACT)); $search_form->addElement($type_select); if (!empty($mids)) { - $mods_checkbox = new XoopsFormCheckBox(_SR_SEARCHIN, "mids[]", $mids); + $mods_checkbox = new XoopsFormCheckBox(_SR_SEARCHIN, "mids[]", $mids); } else { - $mods_checkbox = new XoopsFormCheckBox(_SR_SEARCHIN, "mids[]", $mid); + $mods_checkbox = new XoopsFormCheckBox(_SR_SEARCHIN, "mids[]", $mid); } if (empty($modules)) { $criteria = new CriteriaCompo(); @@ -57,7 +61,7 @@ } $search_form->addElement($mods_checkbox); if ($xoopsConfigSearch['keyword_min'] > 0) { - $search_form->addElement(new XoopsFormLabel(_SR_SEARCHRULE, sprintf(_SR_KEYIGNORE, $xoopsConfigSearch['keyword_min']))); + $search_form->addElement(new XoopsFormLabel(_SR_SEARCHRULE, sprintf(_SR_KEYIGNORE, $xoopsConfigSearch['keyword_min']))); } $search_form->addElement(new XoopsFormHidden("action", "results")); $search_form->addElement(new XoopsFormButton("", "submit", _SR_SEARCH, "submit")); From onokazu @ users.sourceforge.jp Sat Aug 13 12:41:45 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Sat, 13 Aug 2005 12:41:45 +0900 Subject: [xoops-cvslog 321] CVS update: xoops2jp/html/modules/contact Message-ID: <20050813034145.1FD9C2AC01D@users.sourceforge.jp> Index: xoops2jp/html/modules/contact/contactform.php diff -u xoops2jp/html/modules/contact/contactform.php:1.2 xoops2jp/html/modules/contact/contactform.php:1.3 --- xoops2jp/html/modules/contact/contactform.php:1.2 Fri Mar 18 21:52:14 2005 +++ xoops2jp/html/modules/contact/contactform.php Sat Aug 13 12:41:45 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/news/include/storyform.inc.php diff -u xoops2jp/html/modules/news/include/storyform.inc.php:1.5 xoops2jp/html/modules/news/include/storyform.inc.php:1.6 --- xoops2jp/html/modules/news/include/storyform.inc.php:1.5 Wed Aug 3 21:39:15 2005 +++ xoops2jp/html/modules/news/include/storyform.inc.php Sat Aug 13 12:41:45 2005 @@ -1,5 +1,5 @@ addElement(new XoopsFormToken(XoopsMultiTokenHandler::quickCreate('news_submit'))); From onokazu @ users.sourceforge.jp Sat Aug 13 12:50:41 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Sat, 13 Aug 2005 12:50:41 +0900 Subject: [xoops-cvslog 323] CVS update: xoops2jp/docs Message-ID: <20050813035041.DE71B2AC018@users.sourceforge.jp> Index: xoops2jp/docs/CHANGES.txt diff -u xoops2jp/docs/CHANGES.txt:1.6 xoops2jp/docs/CHANGES.txt:1.7 --- xoops2jp/docs/CHANGES.txt:1.6 Wed Aug 3 21:39:10 2005 +++ xoops2jp/docs/CHANGES.txt Sat Aug 13 12:50:41 2005 @@ -1,6 +1,11 @@ XOOPS v2 Changelog ============================ +2005/ 8/: Version 2.0.11.1 JP +=============================== +- Fixed full path disclosure vulnerability in several files + + 2005/ 7/31: Version 2.0.11 JP =============================== - Fixed infinite refresh of page in visit.php of mydownloads/mylinks From onokazu @ users.sourceforge.jp Sat Aug 13 12:50:42 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Sat, 13 Aug 2005 12:50:42 +0900 Subject: [xoops-cvslog 324] CVS update: xoops2jp/html/include Message-ID: <20050813035042.0A3FA2AC01D@users.sourceforge.jp> Index: xoops2jp/html/include/version.php diff -u xoops2jp/html/include/version.php:1.8 xoops2jp/html/include/version.php:1.9 --- xoops2jp/html/include/version.php:1.8 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/include/version.php Sat Aug 13 12:50:41 2005 @@ -1,4 +1,4 @@ \ No newline at end of file From nobunobu @ users.sourceforge.jp Sat Aug 13 23:47:42 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 13 Aug 2005 23:47:42 +0900 Subject: [xoops-cvslog 325] CVS update: xoops2jp/html/modules/mylinks/admin Message-ID: <20050813144742.A97AA2AC013@users.sourceforge.jp> Index: xoops2jp/html/modules/mylinks/admin/index.php diff -u xoops2jp/html/modules/mylinks/admin/index.php:1.4 xoops2jp/html/modules/mylinks/admin/index.php:1.4.2.1 --- xoops2jp/html/modules/mylinks/admin/index.php:1.4 Wed Aug 3 21:39:13 2005 +++ xoops2jp/html/modules/mylinks/admin/index.php Sat Aug 13 23:47:42 2005 @@ -133,7 +133,7 @@ echo "
"; echo ""; echo "\n"; - echo myTextForm("index.php?op=delNewLink&lid=$lid",_MD_DELETE); + echo myTextForm("index.php?op=delNewLink&lid=$lid",_MD_DELETE); echo "

"; } } else { @@ -304,7 +304,7 @@ echo "\n"; echo "
\n"; - echo myTextForm("index.php?op=delLink&lid=".$lid , _MD_DELETE); + echo myTextForm("index.php?op=delLink&lid=".$lid , _MD_DELETE); echo "\n"; echo myTextForm("index.php?op=linksConfigMenu", _MD_CANCEL); echo "
\n"; @@ -340,7 +340,7 @@ $useravgrating = $useravgrating / $uservotes; $useravgrating = number_format($useravgrating, 1); $ratingusername = XoopsUser::getUnameFromId($ratinguser); - echo "".$ratingusername."".$ratinghostname."$rating".$useravgrating."".$uservotes."".$ratingtimestamp."".myTextForm("index.php?op=delVote&lid=$lid&rid=$ratingid", "X")."\n"; + echo "".$ratingusername."".$ratinghostname."$rating".$useravgrating."".$uservotes."".$ratingtimestamp."".myTextForm("index.php?op=delVote&lid=$lid&rid=$ratingid", "X")."\n"; $x++; if ( $colorswitch == "dddddd" ) { $colorswitch="ffffff"; @@ -362,7 +362,7 @@ $colorswitch="dddddd"; while ( list($ratingid, $rating, $ratinghostname, $ratingtimestamp)=$xoopsDB->fetchRow($result5) ) { $formatted_date = formatTimestamp($ratingtimestamp); - echo "$ratinghostname$rating$formatted_date".myTextForm("index.php?op=delVote&lid=$lid&rid=$ratingid", "X").""; + echo "$ratinghostname$rating$formatted_date".myTextForm("index.php?op=delVote&lid=$lid&rid=$ratingid", "X").""; $x++; if ( $colorswitch == "dddddd" ) { $colorswitch="ffffff"; From nobunobu @ users.sourceforge.jp Sat Aug 13 23:47:42 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 13 Aug 2005 23:47:42 +0900 Subject: [xoops-cvslog 326] CVS update: xoops2jp/html/modules/mylinks Message-ID: <20050813144742.C6BC32AC01A@users.sourceforge.jp> Index: xoops2jp/html/modules/mylinks/myheader.php diff -u xoops2jp/html/modules/mylinks/myheader.php:1.4 xoops2jp/html/modules/mylinks/myheader.php:1.4.2.1 --- xoops2jp/html/modules/mylinks/myheader.php:1.4 Wed Aug 3 21:39:13 2005 +++ xoops2jp/html/modules/mylinks/myheader.php Sat Aug 13 23:47:42 2005 @@ -1,5 +1,5 @@ - | | | | Back to | Close Frame + | | | | Back to | Close Frame From nobunobu @ users.sourceforge.jp Sat Aug 13 23:47:42 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 13 Aug 2005 23:47:42 +0900 Subject: [xoops-cvslog 327] CVS update: xoops2jp/html/modules/mylinks/templates Message-ID: <20050813144742.E5FB42AC01D@users.sourceforge.jp> Index: xoops2jp/html/modules/mylinks/templates/mylinks_viewcat.html diff -u xoops2jp/html/modules/mylinks/templates/mylinks_viewcat.html:1.1 xoops2jp/html/modules/mylinks/templates/mylinks_viewcat.html:1.1.12.1 --- xoops2jp/html/modules/mylinks/templates/mylinks_viewcat.html:1.1 Thu Sep 9 14:15:16 2004 +++ xoops2jp/html/modules/mylinks/templates/mylinks_viewcat.html Sat Aug 13 23:47:42 2005 @@ -33,7 +33,7 @@ <{if $show_links == true}> <{if $show_nav == true}> -
<{$lang_sortby}>  <{$lang_title}> ()<{$lang_date}> ()<{$lang_rating}> ()<{$lang_popularity}> () +
<{$lang_sortby}>  <{$lang_title}> ()<{$lang_date}> ()<{$lang_rating}> ()<{$lang_popularity}> ()
<{$lang_cursortedby}>

From nobunobu @ users.sourceforge.jp Sat Aug 13 23:47:43 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 13 Aug 2005 23:47:43 +0900 Subject: [xoops-cvslog 328] CVS update: xoops2jp/html/modules/system/templates Message-ID: <20050813144743.12FE02AC013@users.sourceforge.jp> Index: xoops2jp/html/modules/system/templates/system_imagemanager.html diff -u xoops2jp/html/modules/system/templates/system_imagemanager.html:1.1 xoops2jp/html/modules/system/templates/system_imagemanager.html:1.1.12.1 --- xoops2jp/html/modules/system/templates/system_imagemanager.html:1.1 Thu Sep 9 19:03:23 2004 +++ xoops2jp/html/modules/system/templates/system_imagemanager.html Sat Aug 13 23:47:42 2005 @@ -56,11 +56,11 @@ <{if $show_cat > 0}> - + <{/if}> Index: xoops2jp/html/modules/system/templates/system_imagemanager2.html diff -u xoops2jp/html/modules/system/templates/system_imagemanager2.html:1.1 xoops2jp/html/modules/system/templates/system_imagemanager2.html:1.1.12.1 --- xoops2jp/html/modules/system/templates/system_imagemanager2.html:1.1 Thu Sep 9 19:03:23 2004 +++ xoops2jp/html/modules/system/templates/system_imagemanager2.html Sat Aug 13 23:47:42 2005 @@ -35,7 +35,7 @@
- + <{$lang_addimage}><{$lang_addimage}>
- +
<{$lang_imgmanager}><{$lang_imgmanager}>
Index: xoops2jp/html/modules/system/templates/system_userinfo.html diff -u xoops2jp/html/modules/system/templates/system_userinfo.html:1.2 xoops2jp/html/modules/system/templates/system_userinfo.html:1.2.2.1 --- xoops2jp/html/modules/system/templates/system_userinfo.html:1.2 Sat Jun 11 11:32:55 2005 +++ xoops2jp/html/modules/system/templates/system_userinfo.html Sat Aug 13 23:47:42 2005 @@ -26,8 +26,8 @@ - +
- +
From nobunobu @ users.sourceforge.jp Sat Aug 13 23:56:44 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 13 Aug 2005 23:56:44 +0900 Subject: [xoops-cvslog 329] CVS update: xoops2jp/html/language/japanese Message-ID: <20050813145644.A84B82AC013@users.sourceforge.jp> Index: xoops2jp/html/language/japanese/xoopsmailerlocal.php diff -u xoops2jp/html/language/japanese/xoopsmailerlocal.php:1.1 xoops2jp/html/language/japanese/xoopsmailerlocal.php:1.1.12.1 --- xoops2jp/html/language/japanese/xoopsmailerlocal.php:1.1 Thu Sep 9 14:15:04 2004 +++ xoops2jp/html/language/japanese/xoopsmailerlocal.php Sat Aug 13 23:56:44 2005 @@ -1,63 +1,141 @@ // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: NobuNobu (Nobuki @ Kowa.ORG) // +// URL: http://jp.xoops.org // +// Project: The XOOPS Project // +// ------------------------------------------------------------------------- // class XoopsMailerLocal extends XoopsMailer { - function XoopsMailerLocal(){ - $this->XoopsMailer(); - $this->charSet = 'iso-2022-jp'; - $this->encoding = '7bit'; - } - - function encodeFromName($text){ - return $this->EUCtoJIS($text); - } - - function encodeSubject($text){ - return $this->EUCtoJIS($text); - } - - function encodeBody(&$text){ - $text = $this->EUCtoJIS($text); - } + function XoopsMailerLocal(){ + $this->multimailer = new XoopsMultiMailerLocal(); + $this->reset(); + $this->charSet = 'iso-2022-jp'; + $this->encoding = '7bit'; + } + + function encodeFromName($text){ + return $this->STRtoJIS($text,_CHARSET); + } + + function encodeSubject($text){ + if ($this->multimailer->needs_encode) { + return $this->STRtoJIS($text,_CHARSET); + } else { + return $text; + } + } + + function encodeBody(&$text){ + if ($this->multimailer->needs_encode) { + $text = $this->STRtoJIS($text,_CHARSET); + } + } + + /*------------------------------------- + PHP FORM MAIL 1.01 by TOMO + URL : http://www.spencernetwork.org/ + E-Mail : groove @ spencernetwork.org + --------------------------------------*/ + function STRtoJIS($str, $from_charset){ + if (function_exists('mb_convert_encoding')) { //Use mb_string extension if exists. + $str_JIS = mb_convert_encoding($str, "ISO-2022-JP", $from_charset); + } else if ($from_charset=='EUC-JP') { + $str_JIS = ''; + $mode = 0; + $b = unpack("C*", $str); + $n = count($b); + for ($i = 1; $i <= $n; $i++) { + if ($b[$i] == 0x8E) { + if ($mode != 2) { + $mode = 2; + $str_JIS .= pack("CCC", 0x1B, 0x28, 0x49); + } + $b[$i+1] -= 0x80; + $str_JIS .= pack("C", $b[$i+1]); + $i++; + } elseif ($b[$i] > 0x8E) { + if ($mode != 1){ + $mode = 1; + $str_JIS .= pack("CCC", 0x1B, 0x24, 0x42); + } + $b[$i] -= 0x80; $b[$i+1] -= 0x80; + $str_JIS .= pack("CC", $b[$i], $b[$i+1]); + $i++; + } else { + if ($mode != 0) { + $mode = 0; + $str_JIS .= pack("CCC", 0x1B, 0x28, 0x42); + } + $str_JIS .= pack("C", $b[$i]); + } + } + if ($mode != 0) $str_JIS .= pack("CCC", 0x1B, 0x28, 0x42); + } + return $str_JIS; + } +} +class XoopsMultiMailerLocal extends XoopsMultiMailer { + var $needs_encode; - /*------------------------------------- - PHP FORM MAIL 1.01 by TOMO - URL : http://www.spencernetwork.org/ - E-Mail : groove @ spencernetwork.org - --------------------------------------*/ - function EUCtoJIS($str_EUC){ - $str_JIS = ''; - $mode = 0; - $b = unpack("C*", $str_EUC); - $n = count($b); - for ($i = 1; $i <= $n; $i++) { - if ($b[$i] == 0x8E) { - if ($mode != 2) { - $mode = 2; - $str_JIS .= pack("CCC", 0x1B, 0x28, 0x49); - } - $b[$i+1] -= 0x80; - $str_JIS .= pack("C", $b[$i+1]); - $i++; - } elseif ($b[$i] > 0x8E) { - if ($mode != 1){ - $mode = 1; - $str_JIS .= pack("CCC", 0x1B, 0x24, 0x42); - } - $b[$i] -= 0x80; $b[$i+1] -= 0x80; - $str_JIS .= pack("CC", $b[$i], $b[$i+1]); - $i++; - } else { - if ($mode != 0) { - $mode = 0; - $str_JIS .= pack("CCC", 0x1B, 0x28, 0x42); - } - $str_JIS .= pack("C", $b[$i]); - } - } - if ($mode != 0) $str_JIS .= pack("CCC", 0x1B, 0x28, 0x42); - return $str_JIS; - } + function XoopsMultiMailerLocal() { + $this->XoopsMultiMailer(); + + $this->needs_encode = true; + if (function_exists('mb_convert_encoding')) { + $mb_overload = ini_get('mbstring.func_overload'); + if (($this->Mailer == 'mail') && (intval($mb_overload) & 1)) { //check if mbstring extension overloads mail() + $this->needs_encode = false; + } + } + } + + function addr_format($addr) { + if(empty($addr[1])) { + $formatted = $addr[0]; + } else { + $formatted = sprintf('%s <%s>', $this->encode_header($addr[1], 'text', true), $addr[0]); + } + return $formatted; + } + + function encode_header ($str, $position = 'text', $force=false) { + if (function_exists('mb_convert_encoding')) { //Use mb_string extension if exists. + if ($this->needs_encode || $force) { + $encoded = mb_convert_encoding($str, _CHARSET, mb_detect_encoding($str)); + $encoded = mb_encode_mimeheader($encoded, "ISO-2022-JP", "B", "\n"); + } else { + $encoded = $str; + } + } else { + $encoded = parent::encode_header($str, $position); + } + return $encoded; + } } ?> \ No newline at end of file From onokazu @ users.sourceforge.jp Sun Aug 14 13:49:30 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Sun, 14 Aug 2005 13:49:30 +0900 Subject: [xoops-cvslog 330] CVS update: xoops2jp/docs Message-ID: <20050814044930.4F7CD2AC016@users.sourceforge.jp> Index: xoops2jp/docs/CHANGES.txt diff -u xoops2jp/docs/CHANGES.txt:1.7 xoops2jp/docs/CHANGES.txt:1.8 --- xoops2jp/docs/CHANGES.txt:1.7 Sat Aug 13 12:50:41 2005 +++ xoops2jp/docs/CHANGES.txt Sun Aug 14 13:49:30 2005 @@ -1,7 +1,7 @@ XOOPS v2 Changelog ============================ -2005/ 8/: Version 2.0.11.1 JP +2005/ 8/14: Version 2.0.11.1 JP =============================== - Fixed full path disclosure vulnerability in several files From onokazu @ users.sourceforge.jp Sun Aug 14 14:03:39 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Sun, 14 Aug 2005 14:03:39 +0900 Subject: [xoops-cvslog 331] CVS update: xoops2jp/html/modules/news/language/japanese/mail_template Message-ID: <20050814050339.1552E2AC01E@users.sourceforge.jp> Index: xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl diff -u /dev/null xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl:1.3 --- /dev/null Sun Aug 14 14:03:39 2005 +++ xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl Sun Aug 14 14:03:38 2005 @@ -0,0 +1,21 @@ +{X_UNAME}さん、こんにちは + +{X_SITENAME}にて下記ニュース記事が承認されました。 + +記事タイトル: {STORY_NAME} + +このニュース記事を読むには下記URLにアクセスしてください: +{STORY_URL} + +----------- + +このメールはXOOPSの自動通知機能によって送信されています + +自動通知を停止したい場合は下記のURLにアクセスしてください: +{X_UNSUBSCRIBE_URL} + +----------- +{X_SITENAME} ({X_SITEURL}) +管理人 +{X_ADMINMAIL} +----------- \ No newline at end of file Index: xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl000644 diff -u xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl000644:1.3 xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl000644:removed --- xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl000644:1.3 Wed Aug 3 21:40:04 2005 +++ xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl000644 Sun Aug 14 14:03:39 2005 @@ -1,21 +0,0 @@ -{X_UNAME}さん、こんにちは - -{X_SITENAME}にて下記ニュース記事が承認されました。 - -記事タイトル: {STORY_NAME} - -このニュース記事を読むには下記URLにアクセスしてください: -{STORY_URL} - ------------ - -このメールはXOOPSの自動通知機能によって送信されています - -自動通知を停止したい場合は下記のURLにアクセスしてください: -{X_UNSUBSCRIBE_URL} - ------------ -{X_SITENAME} ({X_SITEURL}) -管理人 -{X_ADMINMAIL} ------------ \ No newline at end of file From onokazu @ users.sourceforge.jp Mon Aug 15 23:18:39 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Mon, 15 Aug 2005 23:18:39 +0900 Subject: [xoops-cvslog 332] CVS update: xoops2jp/html Message-ID: <20050815141840.011E82AC012@users.sourceforge.jp> Index: xoops2jp/html/footer.php diff -u xoops2jp/html/footer.php:1.4 xoops2jp/html/footer.php:1.4.2.1 --- xoops2jp/html/footer.php:1.4 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/footer.php Mon Aug 15 23:18:39 2005 @@ -1,88 +1,91 @@ - // -// ------------------------------------------------------------------------ // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// You may not change or alter any portion of this comment or credits // -// of supporting developers from this source code or any supporting // -// source code which is considered copyrighted (c) material of the // -// original comment or credit authors. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // - -if ( !defined("XOOPS_FOOTER_INCLUDED") ) { - define("XOOPS_FOOTER_INCLUDED",1); - $xoopsLogger->stopTime(); - if ($xoopsOption['theme_use_smarty'] == 0) { - // the old way - $footer = htmlspecialchars($xoopsConfigMetaFooter['footer']).'
Powered by XOOPS © 2001-2005 The XOOPS Project
'; - if (isset($xoopsOption['template_main'])) { - $xoopsTpl->xoops_setCaching(0); - $xoopsTpl->display('db:'.$xoopsOption['template_main']); - } - if (!isset($xoopsOption['show_rblock'])) { - $xoopsOption['show_rblock'] = 0; - } - themefooter($xoopsOption['show_rblock'], $footer); - xoops_footer(); - } else { - // RMV-NOTIFY - include_once XOOPS_ROOT_PATH . '/include/notification_select.php'; - if (isset($xoopsOption['template_main'])) { - if (isset($xoopsCachedTemplateId)) { - $xoopsTpl->assign('xoops_contents', $xoopsTpl->fetch('db:'.$xoopsOption['template_main'], $xoopsCachedTemplateId)); - } else { - $xoopsTpl->assign('xoops_contents', $xoopsTpl->fetch('db:'.$xoopsOption['template_main'])); - } - } else { - if (isset($xoopsCachedTemplate)) { - $xoopsTpl->assign('dummy_content', ob_get_contents()); - $xoopsTpl->assign('xoops_contents', $xoopsTpl->fetch($xoopsCachedTemplate, $xoopsCachedTemplateId)); - } else { - $xoopsTpl->assign('xoops_contents', ob_get_contents()); - } - ob_end_clean(); - } - if (!headers_sent()) { + // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +if ( !defined("XOOPS_FOOTER_INCLUDED") ) { + define("XOOPS_FOOTER_INCLUDED",1); + $xoopsLogger->stopTime(); + if ($xoopsOption['theme_use_smarty'] == 0) { + // the old way + $footer = htmlspecialchars($xoopsConfigMetaFooter['footer']).'
Powered by XOOPS © 2001-2005 The XOOPS Project
'; + if (isset($xoopsOption['template_main'])) { + $xoopsTpl->xoops_setCaching(0); + $xoopsTpl->display('db:'.$xoopsOption['template_main']); + } + if (!isset($xoopsOption['show_rblock'])) { + $xoopsOption['show_rblock'] = 0; + } + themefooter($xoopsOption['show_rblock'], $footer); + xoops_footer(); + } else { + // RMV-NOTIFY + include_once XOOPS_ROOT_PATH . '/include/notification_select.php'; + if (isset($xoopsOption['template_main'])) { + if (isset($xoopsCachedTemplateId)) { + $xoopsTpl->assign('xoops_contents', $xoopsTpl->fetch('db:'.$xoopsOption['template_main'], $xoopsCachedTemplateId)); + } else { + $xoopsTpl->assign('xoops_contents', $xoopsTpl->fetch('db:'.$xoopsOption['template_main'])); + } + } else { + if (isset($xoopsCachedTemplate)) { + $xoopsTpl->assign('dummy_content', ob_get_contents()); + $xoopsTpl->assign('xoops_contents', $xoopsTpl->fetch($xoopsCachedTemplate, $xoopsCachedTemplateId)); + } else { + $xoopsTpl->assign('xoops_contents', ob_get_contents()); + } + ob_end_clean(); + } + if (!headers_sent()) { header('Content-Type:text/html; charset='._CHARSET); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); header('Cache-Control: no-store, no-cache, must-revalidate'); header('Cache-Control: post-check=0, pre-check=0', false); header('Pragma: no-cache'); - } - $xoopsTpl->xoops_setCaching(0); - $xoopsTpl->display($xoopsConfig['theme_set'].'/theme.html'); - } - if ($xoopsConfig['debug_mode'] == 2 && $xoopsUserIsAdmin) { - echo ''; - } -} -?> + } + $xoopsTpl->xoops_setCaching(0); + $xoopsTpl->display($xoopsConfig['theme_set'].'/theme.html'); + } + if ($xoopsConfig['debug_mode'] == 2 && $xoopsUserIsAdmin) { + echo ''; + } +} +?> Index: xoops2jp/html/header.php diff -u xoops2jp/html/header.php:1.4 xoops2jp/html/header.php:1.4.2.1 --- xoops2jp/html/header.php:1.4 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/header.php Mon Aug 15 23:18:39 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/class/xoopsform/formelement.php diff -u xoops2jp/html/class/xoopsform/formelement.php:1.2 xoops2jp/html/class/xoopsform/formelement.php:1.2.12.1 --- xoops2jp/html/class/xoopsform/formelement.php:1.2 Fri Mar 18 21:51:55 2005 +++ xoops2jp/html/class/xoopsform/formelement.php Sat Aug 20 10:17:41 2005 @@ -1,5 +1,5 @@ _extra = trim($extra); + $this->_extra = " " .trim($extra); } else { $this->_extra .= " " . trim($extra); } From nobunobu @ users.sourceforge.jp Sat Aug 20 10:20:32 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 20 Aug 2005 10:20:32 +0900 Subject: [xoops-cvslog 334] CVS update: xoops2jp/html/class Message-ID: <20050820012032.B5DAA2AC018@users.sourceforge.jp> Index: xoops2jp/html/class/module.textsanitizer.php diff -u xoops2jp/html/class/module.textsanitizer.php:1.4 xoops2jp/html/class/module.textsanitizer.php:1.4.2.1 --- xoops2jp/html/class/module.textsanitizer.php:1.4 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/class/module.textsanitizer.php Sat Aug 20 10:20:32 2005 @@ -1,5 +1,5 @@ \\3'; $replacements[] = '\\1'; - $replacements[] = '\\4'; + $replacements[] = '\\5'; $replacements[] = '\\3'; } else { $replacements[] = ''; $replacements[] = ''; - $replacements[] = '\\4'; + $replacements[] = '\\5'; $replacements[] = '\\3'; } $patterns[] = "/\[quote]/sU"; From nobunobu @ users.sourceforge.jp Sat Aug 20 10:28:20 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 20 Aug 2005 10:28:20 +0900 Subject: [xoops-cvslog 335] CVS update: xoops2jp/html/images Message-ID: <20050820012820.1C31F2AC018@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Sat Aug 20 10:28:20 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 20 Aug 2005 10:28:20 +0900 Subject: [xoops-cvslog 336] CVS update: xoops2jp/html/images/banners Message-ID: <20050820012820.38B452AC02D@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Sat Aug 20 10:28:20 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 20 Aug 2005 10:28:20 +0900 Subject: [xoops-cvslog 337] CVS update: xoops2jp/html/images/icons Message-ID: <20050820012820.5501A2AC018@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Sat Aug 20 10:28:20 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 20 Aug 2005 10:28:20 +0900 Subject: [xoops-cvslog 338] CVS update: xoops2jp/html/images/subject Message-ID: <20050820012820.712D12AC02D@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Sat Aug 20 10:28:20 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 20 Aug 2005 10:28:20 +0900 Subject: [xoops-cvslog 339] CVS update: xoops2jp/html/modules/newbb/images Message-ID: <20050820012820.8EB392AC02E@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Sat Aug 20 10:33:36 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 20 Aug 2005 10:33:36 +0900 Subject: [xoops-cvslog 338] CVS update: xoops2jp/docs/images Message-ID: <20050820013336.347812AC018@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Sat Aug 20 10:33:36 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 20 Aug 2005 10:33:36 +0900 Subject: [xoops-cvslog 339] CVS update: xoops2jp/docs/images/japanese Message-ID: <20050820013336.530842AC02D@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Sat Aug 20 10:35:10 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 20 Aug 2005 10:35:10 +0900 Subject: [xoops-cvslog 340] CVS update: xoops2jp/docs/images Message-ID: <20050820013510.3970A2AC018@users.sourceforge.jp> Index: xoops2jp/docs/images/Thumbs.db From nobunobu @ users.sourceforge.jp Sat Aug 20 10:35:10 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 20 Aug 2005 10:35:10 +0900 Subject: [xoops-cvslog 341] CVS update: xoops2jp/docs/images/japanese Message-ID: <20050820013510.56E292AC02D@users.sourceforge.jp> Index: xoops2jp/docs/images/japanese/Thumbs.db From nobunobu @ users.sourceforge.jp Sat Aug 20 10:35:10 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 20 Aug 2005 10:35:10 +0900 Subject: [xoops-cvslog 342] CVS update: xoops2jp/html/images Message-ID: <20050820013510.73CB52AC018@users.sourceforge.jp> Index: xoops2jp/html/images/Thumbs.db From nobunobu @ users.sourceforge.jp Sat Aug 20 10:35:10 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 20 Aug 2005 10:35:10 +0900 Subject: [xoops-cvslog 343] CVS update: xoops2jp/html/images/banners Message-ID: <20050820013510.939AE2AC02E@users.sourceforge.jp> Index: xoops2jp/html/images/banners/Thumbs.db From nobunobu @ users.sourceforge.jp Sat Aug 20 10:35:10 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 20 Aug 2005 10:35:10 +0900 Subject: [xoops-cvslog 344] CVS update: xoops2jp/html/images/subject Message-ID: <20050820013510.D18152AC018@users.sourceforge.jp> Index: xoops2jp/html/images/subject/Thumbs.db From nobunobu @ users.sourceforge.jp Sat Aug 20 10:35:10 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 20 Aug 2005 10:35:10 +0900 Subject: [xoops-cvslog 345] CVS update: xoops2jp/html/images/icons Message-ID: <20050820013510.B331D2AC02D@users.sourceforge.jp> Index: xoops2jp/html/images/icons/Thumbs.db From nobunobu @ users.sourceforge.jp Sat Aug 20 10:35:10 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 20 Aug 2005 10:35:10 +0900 Subject: [xoops-cvslog 346] CVS update: xoops2jp/html/modules/newbb/images Message-ID: <20050820013510.F08CD2AC02E@users.sourceforge.jp> Index: xoops2jp/html/modules/newbb/images/Thumbs.db From nobunobu @ users.sourceforge.jp Sun Aug 21 12:19:46 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 21 Aug 2005 12:19:46 +0900 Subject: [xoops-cvslog 347] CVS update: xoops2jp/html Message-ID: <20050821031946.ABF0D2AC012@users.sourceforge.jp> Index: xoops2jp/html/imagemanager.php diff -u xoops2jp/html/imagemanager.php:1.4 xoops2jp/html/imagemanager.php:1.4.2.1 --- xoops2jp/html/imagemanager.php:1.4 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/imagemanager.php Sun Aug 21 12:19:46 2005 @@ -1,5 +1,5 @@ getSavedDestination(), 'rb'); $fbinary = @fread($fp, filesize($uploader->getSavedDestination())); @fclose($fp); - $image->setVar('image_body', addslashes($fbinary)); + $image->setVar('image_body', $fbinary, true); @unlink($uploader->getSavedDestination()); } if (!$image_handler->insert($image)) { From nobunobu @ users.sourceforge.jp Sun Aug 21 12:21:43 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 21 Aug 2005 12:21:43 +0900 Subject: [xoops-cvslog 348] CVS update: xoops2jp/html/modules/newbb/templates Message-ID: <20050821032143.A0A582AC012@users.sourceforge.jp> Index: xoops2jp/html/modules/newbb/templates/newbb_index.html diff -u xoops2jp/html/modules/newbb/templates/newbb_index.html:1.1 xoops2jp/html/modules/newbb/templates/newbb_index.html:1.1.12.1 --- xoops2jp/html/modules/newbb/templates/newbb_index.html:1.1 Thu Sep 9 14:15:18 2004 +++ xoops2jp/html/modules/newbb/templates/newbb_index.html Sun Aug 21 12:21:43 2005 @@ -13,7 +13,7 @@ <{section name=category loop=$categories}> - + From nobunobu @ users.sourceforge.jp Sun Aug 21 13:16:53 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 21 Aug 2005 13:16:53 +0900 Subject: [xoops-cvslog 349] CVS update: xoops2jp/html/modules/contact Message-ID: <20050821041653.5DBB82AC012@users.sourceforge.jp> Index: xoops2jp/html/modules/contact/index.php diff -u xoops2jp/html/modules/contact/index.php:1.4 xoops2jp/html/modules/contact/index.php:1.4.2.1 --- xoops2jp/html/modules/contact/index.php:1.4 Wed Aug 3 21:39:12 2005 +++ xoops2jp/html/modules/contact/index.php Sun Aug 21 13:16:53 2005 @@ -1,5 +1,5 @@ useMail(); From nobunobu @ users.sourceforge.jp Sun Aug 21 13:16:53 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 21 Aug 2005 13:16:53 +0900 Subject: [xoops-cvslog 350] CVS update: xoops2jp/html/modules/mydownloads/admin Message-ID: <20050821041653.819FB2AC021@users.sourceforge.jp> Index: xoops2jp/html/modules/mydownloads/admin/index.php diff -u xoops2jp/html/modules/mydownloads/admin/index.php:1.4 xoops2jp/html/modules/mydownloads/admin/index.php:1.4.2.1 --- xoops2jp/html/modules/mydownloads/admin/index.php:1.4 Wed Aug 3 21:39:12 2005 +++ xoops2jp/html/modules/mydownloads/admin/index.php Sun Aug 21 13:16:53 2005 @@ -1,5 +1,5 @@ "._MD_DLCONF.""; echo"
<{$categories[category].cat_title}>
<{$categories[category].cat_title}>
  <{$lang_forum}>
" @@ -417,9 +417,9 @@ function delVote() { - global $xoopsDB, $HTTP_GET_VARS, $eh; - $rid = $HTTP_GET_VARS['rid']; - $lid = $HTTP_GET_VARS['lid']; + global $xoopsDB, $eh; + $rid = $_GET['rid']; + $lid = $_GET['lid']; $sql = sprintf("DELETE FROM %s WHERE ratingid = %u", $xoopsDB->prefix("mydownloads_votedata"), $rid); $xoopsDB->query($sql) or $eh->show("0013"); updaterating($lid); @@ -494,8 +494,8 @@ function delBrokenDownloads() { - global $xoopsDB, $HTTP_GET_VARS, $eh; - $lid = $HTTP_GET_VARS['lid']; + global $xoopsDB, $eh; + $lid = $_GET['lid']; $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_broken"), $lid); $xoopsDB->query($sql) or $eh->show("0013"); $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_downloads"), $lid); @@ -505,8 +505,8 @@ function ignoreBrokenDownloads() { - global $xoopsDB, $HTTP_GET_VARS, $eh; - $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_broken"), $HTTP_GET_VARS['lid']); + global $xoopsDB, $eh; + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_broken"), $_GET['lid']); $xoopsDB->query($sql) or $eh->show("0013"); redirect_header("index.php",1,_MD_BROKENDELETED); } @@ -630,8 +630,8 @@ function changeModReq() { - global $xoopsDB, $HTTP_GET_VARS, $eh, $myts; - $requestid = $HTTP_GET_VARS['requestid']; + global $xoopsDB, $eh, $myts; + $requestid = $_GET['requestid']; $query = "SELECT lid, cid, title, url, homepage, version, size, platform, logourl, description FROM ".$xoopsDB->prefix("mydownloads_mod")." WHERE requestid=$requestid"; $result = $xoopsDB->query($query); while(list($lid, $cid, $title, $url, $homepage, $version, $size, $platform, $logourl, $description)=$xoopsDB->fetchRow($result)) { @@ -659,51 +659,51 @@ function ignoreModReq() { - global $xoopsDB, $HTTP_GET_VARS, $eh; - $sql = sprintf("DELETE FROM %s WHERE requestid = %u", $xoopsDB->prefix("mydownloads_mod"), $HTTP_GET_VARS['requestid']); + global $xoopsDB, $eh; + $sql = sprintf("DELETE FROM %s WHERE requestid = %u", $xoopsDB->prefix("mydownloads_mod"), $_GET['requestid']); $xoopsDB->query($sql) or $eh->show("0013"); redirect_header("index.php",1,_MD_MODREQDELETED); } function modDownloadS() { - global $xoopsDB, $HTTP_POST_VARS, $myts, $eh; - $cid = $HTTP_POST_VARS["cid"]; - if (($HTTP_POST_VARS["url"]) || ($HTTP_POST_VARS["url"]!="")) { - $url = $myts->makeTboxData4Save($HTTP_POST_VARS["url"]); - } - $logourl = $myts->makeTboxData4Save($HTTP_POST_VARS["logourl"]); - $title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]); - $homepage = $myts->makeTboxData4Save($HTTP_POST_VARS["homepage"]); - $version = $myts->makeTboxData4Save($HTTP_POST_VARS["version"]); - $size = $myts->makeTboxData4Save($HTTP_POST_VARS["size"]); - $platform = $myts->makeTboxData4Save($HTTP_POST_VARS["platform"]); - $description = $myts->makeTareaData4Save($HTTP_POST_VARS["description"]); - $sql = sprintf("UPDATE %s SET cid = %u, title = '%s', url = '%s', homepage = '%s', version = '%s', size = %u, platform = '%s', logourl = '%s', status = %u, date = %u WHERE lid = %u", $xoopsDB->prefix("mydownloads_downloads"), $cid, $title, $url, $homepage, $version, $size, $platform, $logourl, 2, time(), $HTTP_POST_VARS['lid']); + global $xoopsDB, $myts, $eh; + $cid = $_POST["cid"]; + if (($_POST["url"]) || ($_POST["url"]!="")) { + $url = $myts->makeTboxData4Save($_POST["url"]); + } + $logourl = $myts->makeTboxData4Save($_POST["logourl"]); + $title = $myts->makeTboxData4Save($_POST["title"]); + $homepage = $myts->makeTboxData4Save($_POST["homepage"]); + $version = $myts->makeTboxData4Save($_POST["version"]); + $size = $myts->makeTboxData4Save($_POST["size"]); + $platform = $myts->makeTboxData4Save($_POST["platform"]); + $description = $myts->makeTareaData4Save($_POST["description"]); + $sql = sprintf("UPDATE %s SET cid = %u, title = '%s', url = '%s', homepage = '%s', version = '%s', size = %u, platform = '%s', logourl = '%s', status = %u, date = %u WHERE lid = %u", $xoopsDB->prefix("mydownloads_downloads"), $cid, $title, $url, $homepage, $version, $size, $platform, $logourl, 2, time(), $_POST['lid']); $xoopsDB->query($sql) or $eh->show("0013"); - $sql = sprintf("UPDATE %s SET description = '%s' WHERE lid = %u", $xoopsDB->prefix("mydownloads_text"), $description, $HTTP_POST_VARS['lid']); + $sql = sprintf("UPDATE %s SET description = '%s' WHERE lid = %u", $xoopsDB->prefix("mydownloads_text"), $description, $_POST['lid']); $xoopsDB->query($sql) or $eh->show("0013"); redirect_header("index.php",1,_MD_DBUPDATED); } function delDownload() { - global $xoopsDB, $HTTP_GET_VARS, $eh, $xoopsModule; - $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_downloads"), $HTTP_GET_VARS['lid']); + global $xoopsDB, $eh, $xoopsModule; + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_downloads"), $_GET['lid']); $xoopsDB->query($sql) or $eh->show("0013"); - $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_text"), $HTTP_GET_VARS['lid']); + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_text"), $_GET['lid']); $xoopsDB->query($sql) or $eh->show("0013"); - $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_votedata"), $HTTP_GET_VARS['lid']); + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_votedata"), $_GET['lid']); $xoopsDB->query($sql) or $eh->show("0013"); // delete comments - xoops_comment_delete($xoopsModule->getVar('mid'), $HTTP_GET_VARS['lid']); + xoops_comment_delete($xoopsModule->getVar('mid'), $_GET['lid']); redirect_header("index.php",1,_MD_FILEDELETED); } function modCat() { - global $xoopsDB, $HTTP_POST_VARS, $myts, $eh, $mytree; - $cid = $HTTP_POST_VARS["cid"]; + global $xoopsDB, $myts, $eh, $mytree; + $cid = $_POST["cid"]; xoops_cp_header(); echo "

"._MD_DLCONF."

"; echo"
" @@ -728,16 +728,16 @@ function modCatS() { - global $xoopsDB, $HTTP_POST_VARS, $myts, $eh; - $cid = $HTTP_POST_VARS['cid']; - $sid = $HTTP_POST_VARS['pid']; - $title = $myts->makeTboxData4Save($HTTP_POST_VARS['title']); + global $xoopsDB, $myts, $eh; + $cid = $_POST['cid']; + $sid = $_POST['pid']; + $title = $myts->makeTboxData4Save($_POST['title']); if (empty($title)) { redirect_header("index.php", 2, _MD_ERRORTITLE); exit(); } - if (($HTTP_POST_VARS["imgurl"]) || ($HTTP_POST_VARS["imgurl"]!="")) { - $imgurl = $myts->makeTboxData4Save($HTTP_POST_VARS["imgurl"]); + if (($_POST["imgurl"]) || ($_POST["imgurl"]!="")) { + $imgurl = $myts->makeTboxData4Save($_POST["imgurl"]); } $sql = sprintf("UPDATE %s SET title = '%s', imgurl = '%s', pid = %u WHERE cid = %u", $xoopsDB->prefix("mydownloads_cat"), $title, $imgurl, $sid, $cid); $xoopsDB->query($sql) or $eh->show("0013"); @@ -746,9 +746,9 @@ function delCat() { - global $xoopsDB, $HTTP_GET_VARS, $HTTP_POST_VARS, $eh, $mytree, $xoopsModule; - $cid = isset($HTTP_POST_VARS['cid']) ? intval($HTTP_POST_VARS['cid']) : intval($HTTP_GET_VARS['cid']); - $ok = isset($HTTP_POST_VARS['ok']) ? intval($HTTP_POST_VARS['ok']) : 0; + global $xoopsDB, $eh, $mytree, $xoopsModule; + $cid = isset($_POST['cid']) ? intval($_POST['cid']) : intval($_GET['cid']); + $ok = isset($_POST['ok']) ? intval($_POST['ok']) : 0; if ($ok == 1) { //get all subcategories under the specified category $arr=$mytree->getAllChildId($cid); @@ -798,26 +798,26 @@ function delNewDownload() { - global $xoopsDB, $HTTP_GET_VARS, $eh, $xoopsModule; - $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_downloads"), $HTTP_GET_VARS['lid']); + global $xoopsDB, $eh, $xoopsModule; + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_downloads"), $_GET['lid']); $xoopsDB->query($sql) or $eh->show("0013"); - $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_text"), $HTTP_GET_VARS['lid']); + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mydownloads_text"), $_GET['lid']); $xoopsDB->query($sql) or $eh->show("0013"); // delete comments - xoops_comment_delete($xoopsModule->getVar('mid'), $HTTP_GET_VARS['lid']); + xoops_comment_delete($xoopsModule->getVar('mid'), $_GET['lid']); redirect_header("index.php",1,_MD_FILEDELETED); } function addCat() { - global $xoopsDB, $HTTP_POST_VARS, $myts, $eh; - $pid = $HTTP_POST_VARS["cid"]; - $title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]); + global $xoopsDB, $myts, $eh; + $pid = $_POST["cid"]; + $title = $myts->makeTboxData4Save($_POST["title"]); if (empty($title)) { redirect_header("index.php", 2, _MD_ERRORTITLE); } - if (($HTTP_POST_VARS["imgurl"]) || ($HTTP_POST_VARS["imgurl"]!="")) { - $imgurl = $myts->makeTboxData4Save($HTTP_POST_VARS["imgurl"]); + if (($_POST["imgurl"]) || ($_POST["imgurl"]!="")) { + $imgurl = $myts->makeTboxData4Save($_POST["imgurl"]); } $newid = $xoopsDB->genId($xoopsDB->prefix("mydownloads_cat")."_cid_seq"); $sql = sprintf("INSERT INTO %s (cid, pid, title, imgurl) VALUES (%u, %u, '%s', '%s')", $xoopsDB->prefix("mydownloads_cat"), $newid, $pid, $title, $imgurl); @@ -837,15 +837,15 @@ function addDownload() { - global $xoopsDB, $xoopsUser, $xoopsModule, $HTTP_POST_VARS, $myts, $eh; - $url = $myts->makeTboxData4Save(formatURL($HTTP_POST_VARS["url"])); - $logourl = $myts->makeTboxData4Save($HTTP_POST_VARS["logourl"]); - $title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]); - $homepage = $myts->makeTboxData4Save(formatURL($HTTP_POST_VARS["homepage"])); - $version = $myts->makeTboxData4Save($HTTP_POST_VARS["version"]); - $size = $myts->makeTboxData4Save($HTTP_POST_VARS["size"]); - $platform = $myts->makeTboxData4Save($HTTP_POST_VARS["platform"]); - $description = $myts->makeTareaData4Save($HTTP_POST_VARS["description"]); + global $xoopsDB, $xoopsUser, $xoopsModule, $myts, $eh; + $url = $myts->makeTboxData4Save(formatURL($_POST["url"])); + $logourl = $myts->makeTboxData4Save($_POST["logourl"]); + $title = $myts->makeTboxData4Save($_POST["title"]); + $homepage = $myts->makeTboxData4Save(formatURL($_POST["homepage"])); + $version = $myts->makeTboxData4Save($_POST["version"]); + $size = $myts->makeTboxData4Save($_POST["size"]); + $platform = $myts->makeTboxData4Save($_POST["platform"]); + $description = $myts->makeTareaData4Save($_POST["description"]); $submitter = $xoopsUser->uid(); $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE url='$url'"); list($numrows) = $xoopsDB->fetchRow($result); @@ -877,8 +877,8 @@ xoops_cp_footer(); exit(); } - if ( !empty($HTTP_POST_VARS['cid']) ) { - $cid = $HTTP_POST_VARS['cid']; + if ( !empty($_POST['cid']) ) { + $cid = $_POST['cid']; } else { $cid = 0; } @@ -907,27 +907,27 @@ function approve() { - global $xoopsConfig, $xoopsDB, $HTTP_POST_VARS, $myts, $eh; - $lid = $HTTP_POST_VARS['lid']; - $title = $HTTP_POST_VARS['title']; - $cid = $HTTP_POST_VARS['cid']; + global $xoopsConfig, $xoopsDB, $myts, $eh; + $lid = $_POST['lid']; + $title = $_POST['title']; + $cid = $_POST['cid']; if ( empty($cid) ) { $cid = 0; } - $homepage = $HTTP_POST_VARS['homepage']; - $version = $HTTP_POST_VARS['version']; - $size = $HTTP_POST_VARS['size']; - $platform = $HTTP_POST_VARS['platform']; - $description = $HTTP_POST_VARS['description']; - if (($HTTP_POST_VARS["url"]) || ($HTTP_POST_VARS["url"]!="")) { - $url = $myts->makeTboxData4Save($HTTP_POST_VARS["url"]); + $homepage = $_POST['homepage']; + $version = $_POST['version']; + $size = $_POST['size']; + $platform = $_POST['platform']; + $description = $_POST['description']; + if (($_POST["url"]) || ($_POST["url"]!="")) { + $url = $myts->makeTboxData4Save($_POST["url"]); } - $logourl = $myts->makeTboxData4Save($HTTP_POST_VARS["logourl"]); + $logourl = $myts->makeTboxData4Save($_POST["logourl"]); $title = $myts->makeTboxData4Save($title); $homepage = $myts->makeTboxData4Save($homepage); - $version = $myts->makeTboxData4Save($HTTP_POST_VARS["version"]); - $size = $myts->makeTboxData4Save($HTTP_POST_VARS["size"]); - $platform = $myts->makeTboxData4Save($HTTP_POST_VARS["platform"]); + $version = $myts->makeTboxData4Save($_POST["version"]); + $size = $myts->makeTboxData4Save($_POST["size"]); + $platform = $myts->makeTboxData4Save($_POST["platform"]); $description = $myts->makeTareaData4Save($description); $sql = sprintf("UPDATE %s SET cid = %u, title = '%s', url = '%s', homepage = '%s', version = '%s', size = %u, platform = '%s', logourl = '%s', status = %u, date = %u WHERE lid = %u", $xoopsDB->prefix("mydownloads_downloads"), $cid, $title, $url, $homepage, $version, $size, $platform, $logourl, 1, time(), $lid); $xoopsDB->query($sql) or $eh->show("0013"); @@ -948,10 +948,10 @@ $notification_handler->triggerEvent('file', $lid, 'approve', $tags); redirect_header("index.php",1,_MD_NEWDLADDED); } -if(!isset($HTTP_POST_VARS['op'])) { - $op = isset($HTTP_GET_VARS['op']) ? $HTTP_GET_VARS['op'] : 'main'; +if(!isset($_POST['op'])) { + $op = isset($_GET['op']) ? $_GET['op'] : 'main'; } else { - $op = $HTTP_POST_VARS['op']; + $op = $_POST['op']; } switch ($op) { case "delNewDownload": From nobunobu @ users.sourceforge.jp Sun Aug 21 13:16:53 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 21 Aug 2005 13:16:53 +0900 Subject: [xoops-cvslog 351] CVS update: xoops2jp/html/modules/mydownloads Message-ID: <20050821041653.B4B962AC012@users.sourceforge.jp> Index: xoops2jp/html/modules/mydownloads/brokenfile.php diff -u xoops2jp/html/modules/mydownloads/brokenfile.php:1.2 xoops2jp/html/modules/mydownloads/brokenfile.php:1.2.12.1 --- xoops2jp/html/modules/mydownloads/brokenfile.php:1.2 Fri Mar 18 21:52:14 2005 +++ xoops2jp/html/modules/mydownloads/brokenfile.php Sun Aug 21 13:16:53 2005 @@ -1,5 +1,5 @@ getVar('uid'); } $ip = getenv("REMOTE_ADDR"); - $lid = intval($HTTP_POST_VARS['lid']); + $lid = intval($_POST['lid']); if ( $sender != 0 ) { // Check if REG user is trying to report twice. $result=$xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_broken")." WHERE lid=$lid AND sender=$sender"); @@ -66,7 +66,7 @@ $xoopsOption['template_main'] = 'mydownloads_brokenfile.html'; include XOOPS_ROOT_PATH.'/header.php'; $xoopsTpl->assign('lang_reportbroken', _MD_REPORTBROKEN); - $xoopsTpl->assign('file_id', intval($HTTP_GET_VARS['lid'])); + $xoopsTpl->assign('file_id', intval($_GET['lid'])); $xoopsTpl->assign('lang_thanksforhelp', _MD_THANKSFORHELP); $xoopsTpl->assign('lang_forsecurity', _MD_FORSECURITY); $xoopsTpl->assign('lang_cancel', _MD_CANCEL); Index: xoops2jp/html/modules/mydownloads/comment_new.php diff -u xoops2jp/html/modules/mydownloads/comment_new.php:1.2 xoops2jp/html/modules/mydownloads/comment_new.php:1.2.12.1 --- xoops2jp/html/modules/mydownloads/comment_new.php:1.2 Fri Mar 18 21:52:14 2005 +++ xoops2jp/html/modules/mydownloads/comment_new.php Sun Aug 21 13:16:53 2005 @@ -1,5 +1,5 @@ 0) { // Get file title $sql = "SELECT title FROM " . $xoopsDB->prefix('mydownloads_downloads') . " WHERE lid=" . $com_itemid . ""; Index: xoops2jp/html/modules/mydownloads/modfile.php diff -u xoops2jp/html/modules/mydownloads/modfile.php:1.2 xoops2jp/html/modules/mydownloads/modfile.php:1.2.12.1 --- xoops2jp/html/modules/mydownloads/modfile.php:1.2 Fri Mar 18 21:52:14 2005 +++ xoops2jp/html/modules/mydownloads/modfile.php Sun Aug 21 13:16:53 2005 @@ -1,5 +1,5 @@ prefix("mydownloads_cat"),"cid","pid"); -if($HTTP_POST_VARS['submit']) { +if($_POST['submit']) { $eh = new ErrorHandler; //ErrorHandler object if(empty($xoopsUser)){ redirect_header(XOOPS_URL."/user.php",2,_MD_MUSTREGFIRST); @@ -41,7 +41,7 @@ } $submit_vars = array('lid', 'title', 'url', 'homepage', 'description', 'logourl', 'cid', 'version', 'size', 'platform'); foreach($submit_vars as $submit_key) { - $$submit_key = $HTTP_POST_VARS[$submit_key]; + $$submit_key = $_POST[$submit_key]; } $lid = intval($lid); @@ -83,7 +83,7 @@ exit(); } else { - $lid = intval($HTTP_GET_VARS['lid']); + $lid = intval($_GET['lid']); if(empty($xoopsUser)){ redirect_header(XOOPS_URL."/user.php",2,_MD_MUSTREGFIRST); exit(); Index: xoops2jp/html/modules/mydownloads/ratefile.php diff -u xoops2jp/html/modules/mydownloads/ratefile.php:1.4 xoops2jp/html/modules/mydownloads/ratefile.php:1.4.2.1 --- xoops2jp/html/modules/mydownloads/ratefile.php:1.4 Wed Aug 3 21:39:13 2005 +++ xoops2jp/html/modules/mydownloads/ratefile.php Sun Aug 21 13:16:53 2005 @@ -1,5 +1,5 @@ query("SELECT title FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE lid=$lid"); list($title) = $xoopsDB->fetchRow($result); $title = $myts->makeTboxData4Show($title); Index: xoops2jp/html/modules/mydownloads/singlefile.php diff -u xoops2jp/html/modules/mydownloads/singlefile.php:1.4 xoops2jp/html/modules/mydownloads/singlefile.php:1.4.2.1 --- xoops2jp/html/modules/mydownloads/singlefile.php:1.4 Wed Aug 3 21:39:13 2005 +++ xoops2jp/html/modules/mydownloads/singlefile.php Sun Aug 21 13:16:53 2005 @@ -1,5 +1,5 @@ prefix("mydownloads_downloads")." d, ".$xoopsDB->prefix("mydownloads_text")." t WHERE d.lid=$lid AND d.lid=t.lid AND status>0"; Index: xoops2jp/html/modules/mydownloads/submit.php diff -u xoops2jp/html/modules/mydownloads/submit.php:1.3 xoops2jp/html/modules/mydownloads/submit.php:1.3.2.1 --- xoops2jp/html/modules/mydownloads/submit.php:1.3 Wed Aug 3 21:39:13 2005 +++ xoops2jp/html/modules/mydownloads/submit.php Sun Aug 21 13:16:53 2005 @@ -1,5 +1,5 @@ getVar('uid') : 0; // Check if Title exist - if ($HTTP_POST_VARS["title"]=="") { + if ($_POST["title"]=="") { $eh->show("1001"); } // Check if URL exist - if (($HTTP_POST_VARS["url"]) || ($HTTP_POST_VARS["url"]!="")) { - $url = $HTTP_POST_VARS["url"]; + if (($_POST["url"]) || ($_POST["url"]!="")) { + $url = $_POST["url"]; } if ($url=="") { $eh->show("1016"); } // Check if HomePage exist - if ($HTTP_POST_VARS["homepage"]=="") { + if ($_POST["homepage"]=="") { $eh->show("1017"); } // Check if Description exist - if ($HTTP_POST_VARS['message']=="") { + if ($_POST['message']=="") { $eh->show("1008"); } - $notify = !empty($HTTP_POST_VARS['notify']) ? 1 : 0; + $notify = !empty($_POST['notify']) ? 1 : 0; - if ( !empty($HTTP_POST_VARS['cid']) ) { - $cid = intval($HTTP_POST_VARS['cid']); + if ( !empty($_POST['cid']) ) { + $cid = intval($_POST['cid']); } else { $cid = 0; } $url = $myts->makeTboxData4Save(formatURL($url)); - $title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]); - $homepage = $myts->makeTboxData4Save($HTTP_POST_VARS["homepage"]); - $version = $myts->makeTboxData4Save($HTTP_POST_VARS["version"]); - $size = intval($HTTP_POST_VARS["size"]); - $platform = $myts->makeTboxData4Save($HTTP_POST_VARS["platform"]); - $description = $myts->makeTareaData4Save($HTTP_POST_VARS["message"]); + $title = $myts->makeTboxData4Save($_POST["title"]); + $homepage = $myts->makeTboxData4Save($_POST["homepage"]); + $version = $myts->makeTboxData4Save($_POST["version"]); + $size = intval($_POST["size"]); + $platform = $myts->makeTboxData4Save($_POST["platform"]); + $description = $myts->makeTareaData4Save($_POST["message"]); $date = time(); $newid = $xoopsDB->genId($xoopsDB->prefix("mydownloads_downloads")."_lid_seq"); Index: xoops2jp/html/modules/mydownloads/viewcat.php diff -u xoops2jp/html/modules/mydownloads/viewcat.php:1.4 xoops2jp/html/modules/mydownloads/viewcat.php:1.4.2.1 --- xoops2jp/html/modules/mydownloads/viewcat.php:1.4 Wed Aug 3 21:39:13 2005 +++ xoops2jp/html/modules/mydownloads/viewcat.php Sun Aug 21 13:16:53 2005 @@ -1,5 +1,5 @@ prefix("mydownloads_cat"),"cid","pid"); -$cid = intval($HTTP_GET_VARS['cid']); +$cid = intval($_GET['cid']); include XOOPS_ROOT_PATH."/header.php"; -if (isset($HTTP_GET_VARS['show']) && $HTTP_GET_VARS['show']!="") { - $show = intval($HTTP_GET_VARS['show']); +if (isset($_GET['show']) && $_GET['show']!="") { + $show = intval($_GET['show']); } else { $show = $xoopsModuleConfig['perpage']; } -$min = isset($HTTP_GET_VARS['min']) ? intval($HTTP_GET_VARS['min']) : 0; +$min = isset($_GET['min']) ? intval($_GET['min']) : 0; if (!isset($max)) { $max = $min + $show; } -if(isset($HTTP_GET_VARS['orderby'])) { - $orderby = convertorderbyin($HTTP_GET_VARS['orderby']); +if(isset($_GET['orderby'])) { + $orderby = convertorderbyin($_GET['orderby']); } else { $orderby = "title ASC"; } From nobunobu @ users.sourceforge.jp Sun Aug 21 13:16:53 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 21 Aug 2005 13:16:53 +0900 Subject: [xoops-cvslog 352] CVS update: xoops2jp/html/modules/mylinks/admin Message-ID: <20050821041653.D8C952AC021@users.sourceforge.jp> Index: xoops2jp/html/modules/mylinks/admin/index.php diff -u xoops2jp/html/modules/mylinks/admin/index.php:1.4.2.1 xoops2jp/html/modules/mylinks/admin/index.php:1.4.2.2 --- xoops2jp/html/modules/mylinks/admin/index.php:1.4.2.1 Sat Aug 13 23:47:42 2005 +++ xoops2jp/html/modules/mylinks/admin/index.php Sun Aug 21 13:16:53 2005 @@ -247,9 +247,9 @@ function modLink() { - global $xoopsDB, $HTTP_GET_VARS, $myts, $eh, $mytree, $xoopsConfig; + global $xoopsDB, $myts, $eh, $mytree, $xoopsConfig; $linkimg_array = XoopsLists::getImgListAsArray(XOOPS_ROOT_PATH."/modules/mylinks/images/shots/"); - $lid = $HTTP_GET_VARS['lid']; + $lid = $_GET['lid']; xoops_cp_header(); echo "

"._MD_WEBLINKSCONF."

"; echo"
" @@ -378,9 +378,9 @@ function delVote() { - global $xoopsDB, $HTTP_GET_VARS, $eh; - $rid = $HTTP_GET_VARS['rid']; - $lid = $HTTP_GET_VARS['lid']; + global $xoopsDB, $eh; + $rid = $_GET['rid']; + $lid = $_GET['lid']; $sql = sprintf("DELETE FROM %s WHERE ratingid = %u", $xoopsDB->prefix("mylinks_votedata"), $rid); $xoopsDB->query($sql) or $eh->show("0013"); updaterating($lid); @@ -462,8 +462,8 @@ function delBrokenLinks() { - global $xoopsDB, $HTTP_GET_VARS, $eh; - $lid = $HTTP_GET_VARS['lid']; + global $xoopsDB, $eh; + $lid = $_GET['lid']; $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mylinks_broken"), $lid); $xoopsDB->query($sql) or $eh->show("0013"); $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mylinks_links"), $lid); @@ -474,8 +474,8 @@ function ignoreBrokenLinks() { - global $xoopsDB, $HTTP_GET_VARS, $eh; - $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mylinks_broken"), $HTTP_GET_VARS['lid']); + global $xoopsDB, $eh; + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mylinks_broken"), $_GET['lid']); $xoopsDB->query($sql) or $eh->show("0013"); redirect_header("index.php",1,_MD_BROKENDELETED); exit(); @@ -589,8 +589,8 @@ function changeModReq() { - global $xoopsDB, $HTTP_GET_VARS, $eh, $myts; - $requestid = $HTTP_GET_VARS['requestid']; + global $xoopsDB, $eh, $myts; + $requestid = $_GET['requestid']; $query = "select lid, cid, title, url, logourl, description from ".$xoopsDB->prefix("mylinks_mod")." where requestid=".$requestid.""; $result = $xoopsDB->query($query); while ( list($lid, $cid, $title, $url, $logourl, $description)=$xoopsDB->fetchRow($result) ) { @@ -617,8 +617,8 @@ function ignoreModReq() { - global $xoopsDB, $HTTP_GET_VARS, $eh; - $sql = sprintf("DELETE FROM %s WHERE requestid = %u", $xoopsDB->prefix("mylinks_mod"), $HTTP_GET_VARS['requestid']); + global $xoopsDB, $eh; + $sql = sprintf("DELETE FROM %s WHERE requestid = %u", $xoopsDB->prefix("mylinks_mod"), $_GET['requestid']); $xoopsDB->query($sql) or $eh->show("0013"); redirect_header("index.php",1,_MD_MODREQDELETED); exit(); @@ -626,36 +626,36 @@ function modLinkS() { - global $xoopsDB, $HTTP_POST_VARS, $myts, $eh; - $cid = $HTTP_POST_VARS["cid"]; - if ( ($HTTP_POST_VARS["url"]) || ($HTTP_POST_VARS["url"]!="") ) { - // $url = $myts->formatURL($HTTP_POST_VARS["url"]); + global $xoopsDB, $myts, $eh; + $cid = $_POST["cid"]; + if ( ($_POST["url"]) || ($_POST["url"]!="") ) { + // $url = $myts->formatURL($_POST["url"]); // $url = urlencode($url); - $url = $myts->makeTboxData4Save($HTTP_POST_VARS["url"]); + $url = $myts->makeTboxData4Save($_POST["url"]); } - $logourl = $myts->makeTboxData4Save($HTTP_POST_VARS["logourl"]); - $title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]); + $logourl = $myts->makeTboxData4Save($_POST["logourl"]); + $title = $myts->makeTboxData4Save($_POST["title"]); - $description = $myts->makeTareaData4Save($HTTP_POST_VARS["description"]); - $xoopsDB->query("update ".$xoopsDB->prefix("mylinks_links")." set cid='$cid', title='$title', url='$url', logourl='$logourl', status=2, date=".time()." where lid=".$HTTP_POST_VARS['lid']."") or $eh->show("0013"); - $xoopsDB->query("update ".$xoopsDB->prefix("mylinks_text")." set description='$description' where lid=".$HTTP_POST_VARS['lid']."") or $eh->show("0013"); + $description = $myts->makeTareaData4Save($_POST["description"]); + $xoopsDB->query("update ".$xoopsDB->prefix("mylinks_links")." set cid='$cid', title='$title', url='$url', logourl='$logourl', status=2, date=".time()." where lid=".$_POST['lid']."") or $eh->show("0013"); + $xoopsDB->query("update ".$xoopsDB->prefix("mylinks_text")." set description='$description' where lid=".$_POST['lid']."") or $eh->show("0013"); redirect_header("index.php",1,_MD_DBUPDATED); exit(); } function delLink() { - global $xoopsDB, $HTTP_GET_VARS, $eh, $xoopsModule; - $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mylinks_links"), $HTTP_GET_VARS['lid']); + global $xoopsDB, $eh, $xoopsModule; + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mylinks_links"), $_GET['lid']); $xoopsDB->query($sql) or $eh->show("0013"); - $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mylinks_text"), $HTTP_GET_VARS['lid']); + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mylinks_text"), $_GET['lid']); $xoopsDB->query($sql) or $eh->show("0013"); - $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mylinks_votedata"), $HTTP_GET_VARS['lid']); + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mylinks_votedata"), $_GET['lid']); $xoopsDB->query($sql) or $eh->show("0013"); // delete comments - xoops_comment_delete($xoopsModule->getVar('mid'), $HTTP_GET_VARS['lid']); + xoops_comment_delete($xoopsModule->getVar('mid'), $_GET['lid']); // delete notifications - xoops_notification_deletebyitem ($xoopsModule->getVar('mid'), 'link', $HTTP_GET_VARS['lid']); + xoops_notification_deletebyitem ($xoopsModule->getVar('mid'), 'link', $_GET['lid']); redirect_header("index.php",1,_MD_LINKDELETED); exit(); @@ -663,8 +663,8 @@ function modCat() { - global $xoopsDB, $HTTP_POST_VARS, $myts, $eh, $mytree; - $cid = $HTTP_POST_VARS["cid"]; + global $xoopsDB, $myts, $eh, $mytree; + $cid = $_POST["cid"]; xoops_cp_header(); echo "

"._MD_WEBLINKSCONF."

"; echo"
" @@ -690,15 +690,15 @@ function modCatS() { - global $xoopsDB, $HTTP_POST_VARS, $myts, $eh; - $cid = $HTTP_POST_VARS['cid']; - $pid = $HTTP_POST_VARS['pid']; - $title = $myts->makeTboxData4Save($HTTP_POST_VARS['title']); + global $xoopsDB, $myts, $eh; + $cid = $_POST['cid']; + $pid = $_POST['pid']; + $title = $myts->makeTboxData4Save($_POST['title']); if (empty($title)) { redirect_header("index.php", 2, _MD_ERRORTITLE); } - if ( ($HTTP_POST_VARS["imgurl"]) || ($HTTP_POST_VARS["imgurl"]!="") ) { - $imgurl = $myts->makeTboxData4Save($HTTP_POST_VARS["imgurl"]); + if ( ($_POST["imgurl"]) || ($_POST["imgurl"]!="") ) { + $imgurl = $myts->makeTboxData4Save($_POST["imgurl"]); } $xoopsDB->query("update ".$xoopsDB->prefix("mylinks_cat")." set pid=$pid, title='$title', imgurl='$imgurl' where cid=$cid") or $eh->show("0013"); redirect_header("index.php",1,_MD_DBUPDATED); @@ -706,9 +706,9 @@ function delCat() { - global $xoopsDB, $HTTP_GET_VARS, $HTTP_POST_VARS, $eh, $mytree, $xoopsModule; - $cid = isset($HTTP_POST_VARS['cid']) ? intval($HTTP_POST_VARS['cid']) : intval($HTTP_GET_VARS['cid']); - $ok = isset($HTTP_POST_VARS['ok']) ? intval($HTTP_POST_VARS['ok']) : 0; + global $xoopsDB, $eh, $mytree, $xoopsModule; + $cid = isset($_POST['cid']) ? intval($_POST['cid']) : intval($_GET['cid']); + $ok = isset($_POST['ok']) ? intval($_POST['ok']) : 0; if ( $ok == 1 ) { //get all subcategories under the specified category $arr=$mytree->getAllChildId($cid); @@ -761,31 +761,31 @@ function delNewLink() { - global $xoopsDB, $HTTP_GET_VARS, $eh, $xoopsModule; - $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mylinks_links"), $HTTP_GET_VARS['lid']); + global $xoopsDB, $eh, $xoopsModule; + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mylinks_links"), $_GET['lid']); $xoopsDB->query($sql) or $eh->show("0013"); - $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mylinks_text"), $HTTP_GET_VARS['lid']); + $sql = sprintf("DELETE FROM %s WHERE lid = %u", $xoopsDB->prefix("mylinks_text"), $_GET['lid']); $xoopsDB->query($sql) or $eh->show("0013"); // delete comments - xoops_comment_delete($xoopsModule->getVar('mid'), $HTTP_GET_VARS['lid']); + xoops_comment_delete($xoopsModule->getVar('mid'), $_GET['lid']); // delete notifications - xoops_notification_deletebyitem($xoopsModule->getVar('mid'), 'link', $HTTP_GET_VARS['lid']); + xoops_notification_deletebyitem($xoopsModule->getVar('mid'), 'link', $_GET['lid']); redirect_header("index.php",1,_MD_LINKDELETED); } function addCat() { - global $xoopsDB, $HTTP_POST_VARS, $myts, $eh; - $pid = $HTTP_POST_VARS["cid"]; - $title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]); + global $xoopsDB, $myts, $eh; + $pid = $_POST["cid"]; + $title = $myts->makeTboxData4Save($_POST["title"]); if (empty($title)) { redirect_header("index.php",2,_MD_ERRORTITLE); exit(); } - if ( ($HTTP_POST_VARS["imgurl"]) || ($HTTP_POST_VARS["imgurl"]!="") ) { - // $imgurl = $myts->formatURL($HTTP_POST_VARS["imgurl"]); + if ( ($_POST["imgurl"]) || ($_POST["imgurl"]!="") ) { + // $imgurl = $myts->formatURL($_POST["imgurl"]); // $imgurl = urlencode($imgurl); - $imgurl = $myts->makeTboxData4Save($HTTP_POST_VARS["imgurl"]); + $imgurl = $myts->makeTboxData4Save($_POST["imgurl"]); } $newid = $xoopsDB->genId($xoopsDB->prefix("mylinks_cat")."_cid_seq"); $sql = sprintf("INSERT INTO %s (cid, pid, title, imgurl) VALUES (%u, %u, '%s', '%s')", $xoopsDB->prefix("mylinks_cat"), $newid, $pid, $title, $imgurl); @@ -804,15 +804,15 @@ function addLink() { - global $xoopsConfig, $xoopsDB, $myts, $xoopsUser, $xoopsModule, $eh, $HTTP_POST_VARS; - if ( ($HTTP_POST_VARS["url"]) || ($HTTP_POST_VARS["url"]!="") ) { - // $url=$myts->formatURL($HTTP_POST_VARS["url"]); + global $xoopsConfig, $xoopsDB, $myts, $xoopsUser, $xoopsModule, $eh, $_POST; + if ( ($_POST["url"]) || ($_POST["url"]!="") ) { + // $url=$myts->formatURL($_POST["url"]); // $url = urlencode($url); - $url = $myts->makeTboxData4Save($HTTP_POST_VARS["url"]); + $url = $myts->makeTboxData4Save($_POST["url"]); } - $logourl = $myts->makeTboxData4Save($HTTP_POST_VARS["logourl"]); - $title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]); - $description = $myts->makeTareaData4Save($HTTP_POST_VARS["description"]); + $logourl = $myts->makeTboxData4Save($_POST["logourl"]); + $title = $myts->makeTboxData4Save($_POST["title"]); + $description = $myts->makeTareaData4Save($_POST["description"]); $submitter = $xoopsUser->uid(); $result = $xoopsDB->query("select count(*) from ".$xoopsDB->prefix("mylinks_links")." where url='$url'"); list($numrows) = $xoopsDB->fetchRow($result); @@ -842,8 +842,8 @@ xoops_cp_footer(); exit(); } - if ( !empty($HTTP_POST_VARS['cid']) ) { - $cid = $HTTP_POST_VARS['cid']; + if ( !empty($_POST['cid']) ) { + $cid = $_POST['cid']; } else { $cid = 0; } @@ -871,20 +871,20 @@ function approve() { - global $xoopsConfig, $xoopsDB, $HTTP_POST_VARS, $myts, $eh; - $lid = $HTTP_POST_VARS['lid']; - $title = $HTTP_POST_VARS['title']; - $cid = $HTTP_POST_VARS['cid']; + global $xoopsConfig, $xoopsDB, $myts, $eh; + $lid = $_POST['lid']; + $title = $_POST['title']; + $cid = $_POST['cid']; if ( empty($cid) ) { $cid = 0; } - $description = $HTTP_POST_VARS['description']; - if (($HTTP_POST_VARS["url"]) || ($HTTP_POST_VARS["url"]!="")) { - // $url=$myts->formatURL($HTTP_POST_VARS["url"]); + $description = $_POST['description']; + if (($_POST["url"]) || ($_POST["url"]!="")) { + // $url=$myts->formatURL($_POST["url"]); // $url = urlencode($url); - $url = $myts->makeTboxData4Save($HTTP_POST_VARS["url"]); + $url = $myts->makeTboxData4Save($_POST["url"]); } - $logourl = $myts->makeTboxData4Save($HTTP_POST_VARS["logourl"]); + $logourl = $myts->makeTboxData4Save($_POST["logourl"]); $title = $myts->makeTboxData4Save($title); $description = $myts->makeTareaData4Save($description); $query = "update ".$xoopsDB->prefix("mylinks_links")." set cid='$cid', title='$title', url='$url', logourl='$logourl', status=1, date=".time()." where lid=".$lid.""; @@ -906,10 +906,10 @@ $notification_handler->triggerEvent('link', $lid, 'approve', $tags); redirect_header("index.php",1,_MD_NEWLINKADDED); } -if(!isset($HTTP_POST_VARS['op'])) { - $op = isset($HTTP_GET_VARS['op']) ? $HTTP_GET_VARS['op'] : 'main'; +if(!isset($_POST['op'])) { + $op = isset($_GET['op']) ? $_GET['op'] : 'main'; } else { - $op = $HTTP_POST_VARS['op']; + $op = $_POST['op']; } switch ($op) { case "delNewLink": From nobunobu @ users.sourceforge.jp Sun Aug 21 13:16:54 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 21 Aug 2005 13:16:54 +0900 Subject: [xoops-cvslog 353] CVS update: xoops2jp/html/modules/mylinks Message-ID: <20050821041654.0EC4B2AC012@users.sourceforge.jp> Index: xoops2jp/html/modules/mylinks/brokenlink.php diff -u xoops2jp/html/modules/mylinks/brokenlink.php:1.2 xoops2jp/html/modules/mylinks/brokenlink.php:1.2.12.1 --- xoops2jp/html/modules/mylinks/brokenlink.php:1.2 Fri Mar 18 21:52:24 2005 +++ xoops2jp/html/modules/mylinks/brokenlink.php Sun Aug 21 13:16:53 2005 @@ -1,5 +1,5 @@ getVar('uid'); } - $lid = intval($HTTP_POST_VARS['lid']); + $lid = intval($_POST['lid']); $ip = getenv("REMOTE_ADDR"); if ($sender != 0) { // Check if REG user is trying to report twice. @@ -65,7 +65,7 @@ $xoopsOption['template_main'] = 'mylinks_brokenlink.html'; include XOOPS_ROOT_PATH.'/header.php'; $xoopsTpl->assign('lang_reportbroken', _MD_REPORTBROKEN); - $xoopsTpl->assign('link_id', intval($HTTP_GET_VARS['lid'])); + $xoopsTpl->assign('link_id', intval($_GET['lid'])); $xoopsTpl->assign('lang_thanksforhelp', _MD_THANKSFORHELP); $xoopsTpl->assign('lang_forsecurity', _MD_FORSECURITY); $xoopsTpl->assign('lang_cancel', _MD_CANCEL); Index: xoops2jp/html/modules/mylinks/comment_new.php diff -u xoops2jp/html/modules/mylinks/comment_new.php:1.2 xoops2jp/html/modules/mylinks/comment_new.php:1.2.12.1 --- xoops2jp/html/modules/mylinks/comment_new.php:1.2 Fri Mar 18 21:52:24 2005 +++ xoops2jp/html/modules/mylinks/comment_new.php Sun Aug 21 13:16:53 2005 @@ -1,5 +1,5 @@ 0) { // Get link title $sql = "SELECT title FROM " . $xoopsDB->prefix('mylinks_links') . " WHERE lid=" . $com_itemid . ""; Index: xoops2jp/html/modules/mylinks/modlink.php diff -u xoops2jp/html/modules/mylinks/modlink.php:1.2 xoops2jp/html/modules/mylinks/modlink.php:1.2.12.1 --- xoops2jp/html/modules/mylinks/modlink.php:1.2 Fri Mar 18 21:52:24 2005 +++ xoops2jp/html/modules/mylinks/modlink.php Sun Aug 21 13:16:53 2005 @@ -1,5 +1,5 @@ prefix("mylinks_cat"),"cid","pid"); -if (!empty($HTTP_POST_VARS['submit'])) { +if (!empty($_POST['submit'])) { $eh = new ErrorHandler; //ErrorHandler object if (empty($xoopsUser)) { redirect_header(XOOPS_URL."/user.php",2,_MD_MUSTREGFIRST); @@ -39,26 +39,26 @@ } else { $user = $xoopsUser->getVar('uid'); } - $lid = intval($HTTP_POST_VARS["lid"]); + $lid = intval($_POST["lid"]); // Check if Title exist - if ($HTTP_POST_VARS["title"]=="") { + if ($_POST["title"]=="") { $eh->show("1001"); } // Check if URL exist - if ($HTTP_POST_VARS["url"]=="") { + if ($_POST["url"]=="") { $eh->show("1016"); } // Check if Description exist - if ($HTTP_POST_VARS['description']=="") { + if ($_POST['description']=="") { $eh->show("1008"); } - $url = $myts->makeTboxData4Save($HTTP_POST_VARS["url"]); - $logourl = $myts->makeTboxData4Save($HTTP_POST_VARS["logourl"]); - $cid = intval($HTTP_POST_VARS["cid"]); - $title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]); - $description = $myts->makeTareaData4Save($HTTP_POST_VARS["description"]); + $url = $myts->makeTboxData4Save($_POST["url"]); + $logourl = $myts->makeTboxData4Save($_POST["logourl"]); + $cid = intval($_POST["cid"]); + $title = $myts->makeTboxData4Save($_POST["title"]); + $description = $myts->makeTareaData4Save($_POST["description"]); $newid = $xoopsDB->genId($xoopsDB->prefix("mylinks_mod")."_requestid_seq"); $sql = sprintf("INSERT INTO %s (requestid, lid, cid, title, url, logourl, description, modifysubmitter) VALUES (%u, %u, %u, '%s', '%s', '%s', '%s', %u)", $xoopsDB->prefix("mylinks_mod"), $newid, $lid, $cid, $title, $url, $logourl, $description, $user); $xoopsDB->query($sql) or $eh->show("0013"); @@ -69,7 +69,7 @@ redirect_header("index.php",2,_MD_THANKSFORINFO); exit(); } else { - $lid = intval($HTTP_GET_VARS['lid']); + $lid = intval($_GET['lid']); if (empty($xoopsUser)) { redirect_header(XOOPS_URL."/user.php",2,_MD_MUSTREGFIRST); exit(); Index: xoops2jp/html/modules/mylinks/myheader.php diff -u xoops2jp/html/modules/mylinks/myheader.php:1.4.2.1 xoops2jp/html/modules/mylinks/myheader.php:1.4.2.2 --- xoops2jp/html/modules/mylinks/myheader.php:1.4.2.1 Sat Aug 13 23:47:42 2005 +++ xoops2jp/html/modules/mylinks/myheader.php Sun Aug 21 13:16:53 2005 @@ -1,5 +1,5 @@ "; $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); Index: xoops2jp/html/modules/mylinks/ratelink.php diff -u xoops2jp/html/modules/mylinks/ratelink.php:1.4 xoops2jp/html/modules/mylinks/ratelink.php:1.4.2.1 --- xoops2jp/html/modules/mylinks/ratelink.php:1.4 Wed Aug 3 21:39:13 2005 +++ xoops2jp/html/modules/mylinks/ratelink.php Sun Aug 21 13:16:53 2005 @@ -1,5 +1,5 @@ query("select title from ".$xoopsDB->prefix("mylinks_links")." where lid=$lid"); list($title) = $xoopsDB->fetchRow($result); $xoopsTpl->assign('link', array('id' => $lid, 'cid' => $cid, 'title' => $myts->htmlSpecialChars($title))); Index: xoops2jp/html/modules/mylinks/singlelink.php diff -u xoops2jp/html/modules/mylinks/singlelink.php:1.4 xoops2jp/html/modules/mylinks/singlelink.php:1.4.2.1 --- xoops2jp/html/modules/mylinks/singlelink.php:1.4 Wed Aug 3 21:39:13 2005 +++ xoops2jp/html/modules/mylinks/singlelink.php Sun Aug 21 13:16:53 2005 @@ -1,5 +1,5 @@ prefix("mylinks_cat"),"cid","pid"); -$lid = intval($HTTP_GET_VARS['lid']); -$cid = intval($HTTP_GET_VARS['cid']); +$lid = intval($_GET['lid']); +$cid = intval($_GET['cid']); $xoopsOption['template_main'] = 'mylinks_singlelink.html'; include XOOPS_ROOT_PATH."/header.php"; Index: xoops2jp/html/modules/mylinks/submit.php diff -u xoops2jp/html/modules/mylinks/submit.php:1.3 xoops2jp/html/modules/mylinks/submit.php:1.3.2.1 --- xoops2jp/html/modules/mylinks/submit.php:1.3 Wed Aug 3 21:39:13 2005 +++ xoops2jp/html/modules/mylinks/submit.php Sun Aug 21 13:16:53 2005 @@ -1,5 +1,5 @@ getVar('uid') : 0; // RMV - why store submitter on form?? - //if (!$HTTP_POST_VARS['submitter'] and $xoopsUser) { + //if (!$_POST['submitter'] and $xoopsUser) { // $submitter = $xoopsUser->uid(); - //}elseif(!$HTTP_POST_VARS['submitter'] and !$xoopsUser) { + //}elseif(!$_POST['submitter'] and !$xoopsUser) { // $submitter = 0; //}else{ - // $submitter = intval($HTTP_POST_VARS['submitter']); + // $submitter = intval($_POST['submitter']); //} // Check if Title exist - if ($HTTP_POST_VARS["title"]=="") { + if ($_POST["title"]=="") { $eh->show("1001"); } // Check if URL exist - $url = $HTTP_POST_VARS["url"]; + $url = $_POST["url"]; if ($url=="" || !isset($url)) { $eh->show("1016"); } // Check if Description exist - if ($HTTP_POST_VARS['message']=="") { + if ($_POST['message']=="") { $eh->show("1008"); } - $notify = !empty($HTTP_POST_VARS['notify']) ? 1 : 0; + $notify = !empty($_POST['notify']) ? 1 : 0; - if ( !empty($HTTP_POST_VARS['cid']) ) { - $cid = intval($HTTP_POST_VARS['cid']); + if ( !empty($_POST['cid']) ) { + $cid = intval($_POST['cid']); } else { $cid = 0; } @@ -78,8 +78,8 @@ // $url = urlencode($url); $url = $myts->makeTboxData4Save($url); - $title = $myts->makeTboxData4Save($HTTP_POST_VARS["title"]); - $description = $myts->makeTareaData4Save($HTTP_POST_VARS["message"]); + $title = $myts->makeTboxData4Save($_POST["title"]); + $description = $myts->makeTareaData4Save($_POST["message"]); $date = time(); $newid = $xoopsDB->genId($xoopsDB->prefix("mylinks_links")."_lid_seq"); if ( $xoopsModuleConfig['autoapprove'] == 1 ) { Index: xoops2jp/html/modules/mylinks/viewcat.php diff -u xoops2jp/html/modules/mylinks/viewcat.php:1.4 xoops2jp/html/modules/mylinks/viewcat.php:1.4.2.1 --- xoops2jp/html/modules/mylinks/viewcat.php:1.4 Wed Aug 3 21:39:13 2005 +++ xoops2jp/html/modules/mylinks/viewcat.php Sun Aug 21 13:16:53 2005 @@ -1,5 +1,5 @@ prefix("mylinks_cat"),"cid","pid"); -$cid = intval($HTTP_GET_VARS['cid']); +$cid = intval($_GET['cid']); $xoopsOption['template_main'] = 'mylinks_viewcat.html'; include XOOPS_ROOT_PATH."/header.php"; -if (isset($HTTP_GET_VARS['show'])) { - $show = intval($HTTP_GET_VARS['show']); +if (isset($_GET['show'])) { + $show = intval($_GET['show']); } else { $show = $xoopsModuleConfig['perpage']; } -$min = isset($HTTP_GET_VARS['min']) ? intval($HTTP_GET_VARS['min']) : 0; +$min = isset($_GET['min']) ? intval($_GET['min']) : 0; if (!isset($max)) { $max = $min + $show; } -if(isset($HTTP_GET_VARS['orderby'])) { - $orderby = convertorderbyin($HTTP_GET_VARS['orderby']); +if(isset($_GET['orderby'])) { + $orderby = convertorderbyin($_GET['orderby']); } else { $orderby = "title ASC"; } @@ -146,7 +146,7 @@ $linkpages = ceil($numrows / $show); //Page Numbering if ($linkpages!=1 && $linkpages!=0) { - $cid = intval($HTTP_GET_VARS['cid']); + $cid = intval($_GET['cid']); $prev = $min - $show; if ($prev>=0) { $page_nav .= "« "; From nobunobu @ users.sourceforge.jp Sun Aug 21 13:16:54 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 21 Aug 2005 13:16:54 +0900 Subject: [xoops-cvslog 354] CVS update: xoops2jp/html/modules/newbb Message-ID: <20050821041654.433852AC021@users.sourceforge.jp> Index: xoops2jp/html/modules/newbb/config.php diff -u xoops2jp/html/modules/newbb/config.php:1.2 xoops2jp/html/modules/newbb/config.php:1.2.12.1 --- xoops2jp/html/modules/newbb/config.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/newbb/config.php Sun Aug 21 13:16:54 2005 @@ -1,5 +1,5 @@ assign(array("lang_welcomemsg" => sprintf(_MD_WELCOME,htmlspecialchars($xoopsConfig['sitename'], ENT_QUOTES)), "lang_tostart" => _MD_TOSTART, "lang_totaltopics" => _MD_TOTALTOPICSC, "lang_totalposts" => _MD_TOTALPOSTSC, "total_topics" => get_total_topics(), "total_posts" => get_total_posts(0, 'all'), "lang_lastvisit" => sprintf(_MD_LASTVISIT,formatTimestamp($last_visit)), "lang_currenttime" => sprintf(_MD_TIMENOW,formatTimestamp(time(),"m")), "lang_forum" => _MD_FORUM, "lang_topics" => _MD_TOPICS, "lang_posts" => _MD_POSTS, "lang_lastpost" => _MD_LASTPOST, "lang_moderators" => _MD_MODERATOR)); -$viewcat = (!empty($HTTP_GET_VARS['cat'])) ? intval($HTTP_GET_VARS['cat']) : 0; +$viewcat = (!empty($_GET['cat'])) ? intval($_GET['cat']) : 0; $categories = array(); while ( $cat_row = $xoopsDB->fetchArray($result) ) { $categories[] = $cat_row; Index: xoops2jp/html/modules/newbb/newtopic.php diff -u xoops2jp/html/modules/newbb/newtopic.php:1.3 xoops2jp/html/modules/newbb/newtopic.php:1.3.2.1 --- xoops2jp/html/modules/newbb/newtopic.php:1.3 Wed Aug 3 21:39:14 2005 +++ xoops2jp/html/modules/newbb/newtopic.php Sun Aug 21 13:16:54 2005 @@ -1,5 +1,5 @@ fetchArray($result); if (empty($forumdata['allow_html'])) { - $HTTP_POST_VARS['nohtml'] = 1; + $_POST['nohtml'] = 1; } if ( $forumdata['forum_type'] == 1 ) { // To get here, we have a logged-in user. So, check whether that user is allowed to view @@ -57,7 +57,7 @@ $accesserror = 0; if ( $xoopsUser ) { if ( !$xoopsUser->isAdmin($xoopsModule->mid()) ) { - if ( !check_priv_forum_auth($xoopsUser->uid(), $HTTP_POST_VARS['forum'], true) ) { + if ( !check_priv_forum_auth($xoopsUser->uid(), $_POST['forum'], true) ) { $accesserror = 1; } } @@ -89,22 +89,22 @@ exit(); } } - if ( !empty($HTTP_POST_VARS['contents_preview']) ) { + if ( !empty($_POST['contents_preview']) ) { include XOOPS_ROOT_PATH."/header.php"; echo"
"; $myts =& MyTextSanitizer::getInstance(); - $p_subject = $myts->makeTboxData4Preview($HTTP_POST_VARS['subject']); - $dosmiley = empty($HTTP_POST_VARS['nosmiley']) ? 1 : 0; - $dohtml = empty($HTTP_POST_VARS['nohtml']) ? 1 : 0; - $p_message = $myts->makeTareaData4Preview($HTTP_POST_VARS['message'], $dohtml, $dosmiley, 1); + $p_subject = $myts->makeTboxData4Preview($_POST['subject']); + $dosmiley = empty($_POST['nosmiley']) ? 1 : 0; + $dohtml = empty($_POST['nohtml']) ? 1 : 0; + $p_message = $myts->makeTareaData4Preview($_POST['message'], $dohtml, $dosmiley, 1); themecenterposts($p_subject,$p_message); echo "
"; - $subject = $myts->makeTboxData4PreviewInForm($HTTP_POST_VARS['subject']); - $message = $myts->makeTareaData4PreviewInForm($HTTP_POST_VARS['message']); - $hidden = $myts->makeTboxData4PreviewInForm($HTTP_POST_VARS['hidden']); - $notify = !empty($HTTP_POST_VARS['notify']) ? 1 : 0; - $attachsig = !empty($HTTP_POST_VARS['attachsig']) ? 1 : 0; + $subject = $myts->makeTboxData4PreviewInForm($_POST['subject']); + $message = $myts->makeTareaData4PreviewInForm($_POST['message']); + $hidden = $myts->makeTboxData4PreviewInForm($_POST['hidden']); + $notify = !empty($_POST['notify']) ? 1 : 0; + $attachsig = !empty($_POST['attachsig']) ? 1 : 0; include 'include/forumform.inc.php'; echo"
"; } else { @@ -131,7 +131,7 @@ } else { $isreply = 0; $isnew = 1; - if ( $xoopsUser && empty($HTTP_POST_VARS['noname']) ) { + if ( $xoopsUser && empty($_POST['noname']) ) { $uid = $xoopsUser->getVar("uid"); } else { if ( $forumdata['forum_access'] == 2 ) { @@ -154,17 +154,17 @@ $forumpost->setTopicId($topic_id); $isreply = 1; } - $forumpost->setIp($HTTP_SERVER_VARS['REMOTE_ADDR']); + $forumpost->setIp($_SERVER['REMOTE_ADDR']); $forumpost->setUid($uid); } - $subject = xoops_trim($HTTP_POST_VARS['subject']); + $subject = xoops_trim($_POST['subject']); $subject = ($subject == '') ? _NOTITLE : $subject; $forumpost->setSubject($subject); - $forumpost->setText($HTTP_POST_VARS['message']); - $forumpost->setNohtml($HTTP_POST_VARS['nohtml']); - $forumpost->setNosmiley($HTTP_POST_VARS['nosmiley']); - $forumpost->setIcon($HTTP_POST_VARS['icon']); - $forumpost->setAttachsig($HTTP_POST_VARS['attachsig']); + $forumpost->setText($_POST['message']); + $forumpost->setNohtml($_POST['nohtml']); + $forumpost->setNosmiley($_POST['nosmiley']); + $forumpost->setIcon($_POST['icon']); + $forumpost->setAttachsig($_POST['attachsig']); if (!$postid = $forumpost->store()) { include_once(XOOPS_ROOT_PATH.'/header.php'); xoops_error('Could not insert forum post'); @@ -177,7 +177,7 @@ // RMV-NOTIFY // Define tags for notification message $tags = array(); - $tags['THREAD_NAME'] = $HTTP_POST_VARS['subject']; + $tags['THREAD_NAME'] = $_POST['subject']; $tags['THREAD_URL'] = XOOPS_URL . '/modules/' . $xoopsModule->dirname() . '/viewtopic.php?forum=' . $forum . '&post_id='.$postid.'&topic_id=' . $forumpost->topic(); $tags['POST_URL'] = $tags['THREAD_URL'] . '#forumpost' . $postid; include_once 'include/notification.inc.php'; @@ -196,8 +196,8 @@ $notification_handler->triggerEvent('global', 0, 'new_post', $tags); $notification_handler->triggerEvent('forum', $forum, 'new_post', $tags); $myts =& MyTextSanitizer::getInstance(); - $tags['POST_CONTENT'] = $myts->stripSlashesGPC($HTTP_POST_VARS['message']); - $tags['POST_NAME'] = $myts->stripSlashesGPC($HTTP_POST_VARS['subject']); + $tags['POST_CONTENT'] = $myts->stripSlashesGPC($_POST['message']); + $tags['POST_NAME'] = $myts->stripSlashesGPC($_POST['subject']); $notification_handler->triggerEvent('global', 0, 'new_fullpost', $tags); } @@ -205,14 +205,14 @@ // appropriate event; if unchecked, then unsubscribe if (!empty($xoopsUser) && !empty($xoopsModuleConfig['notification_enabled'])) { - if (!empty($HTTP_POST_VARS['notify'])) { + if (!empty($_POST['notify'])) { $notification_handler->subscribe('thread', $forumpost->getTopicId(), 'new_post'); } else { $notification_handler->unsubscribe('thread', $forumpost->getTopicId(), 'new_post'); } } - if ( $HTTP_POST_VARS['viewmode'] == "flat" ) { + if ( $_POST['viewmode'] == "flat" ) { redirect_header("viewtopic.php?topic_id=".$forumpost->topic()."&post_id=".$postid."&order=".$order."&viewmode=flat&pid=".$pid."&forum=".$forum."#forumpost".$postid."",2,_MD_THANKSSUBMIT); exit(); } else { Index: xoops2jp/html/modules/newbb/reply.php diff -u xoops2jp/html/modules/newbb/reply.php:1.3 xoops2jp/html/modules/newbb/reply.php:1.3.2.1 --- xoops2jp/html/modules/newbb/reply.php:1.3 Wed Aug 3 21:39:14 2005 +++ xoops2jp/html/modules/newbb/reply.php Sun Aug 21 13:16:54 2005 @@ -1,5 +1,5 @@ assign("lang_keywords", _MD_KEYWORDS); @@ -63,7 +63,7 @@ } else { $xoopsOption['template_main']= 'newbb_searchresults.html'; include XOOPS_ROOT_PATH."/header.php"; - $forum = (isset($HTTP_POST_VARS['forum']) && $HTTP_POST_VARS['forum'] != 'all') ? intval($HTTP_POST_VARS['forum']) : 'all'; + $forum = (isset($_POST['forum']) && $_POST['forum'] != 'all') ? intval($_POST['forum']) : 'all'; $xoopsTpl->assign("lang_keywords", _MD_KEYWORDS); $xoopsTpl->assign("lang_searchany", _MD_SEARCHANY); $xoopsTpl->assign("lang_searchall", _MD_SEARCHALL); @@ -71,14 +71,14 @@ $subquery = ''; $query = 'SELECT u.uid,f.forum_id, p.topic_id, u.uname, p.post_time,t.topic_title,t.topic_views,t.topic_replies,f.forum_name FROM '.$xoopsDB->prefix('bb_posts').' p, '.$xoopsDB->prefix('bb_posts_text').' pt, '.$xoopsDB->prefix('users').' u, '.$xoopsDB->prefix('bb_forums').' f,'.$xoopsDB->prefix('bb_topics').' t'; $myts = MyTextSanitizer::getInstance(); - if ( isset($HTTP_POST_VARS['term']) && trim($HTTP_POST_VARS['term']) != "" ) { - $terms = split(' ', $myts->oopsAddSlashes($HTTP_POST_VARS['term'])); // Get all the words into an array + if ( isset($_POST['term']) && trim($_POST['term']) != "" ) { + $terms = split(' ', $myts->oopsAddSlashes($_POST['term'])); // Get all the words into an array if ( strlen($terms[0]) < 4 ) { } $addquery .= "(pt.post_text LIKE '%$terms[0]%'"; $subquery .= "(t.topic_title LIKE '%$terms[0]%'"; - if ( $HTTP_POST_VARS['addterms'] == "any" ) { // AND/OR relates to the ANY or ALL on Search Page + if ( $_POST['addterms'] == "any" ) { // AND/OR relates to the ANY or ALL on Search Page $andor = 'OR'; } else { $andor = 'AND'; @@ -99,12 +99,12 @@ $addquery .= ' AND '; $subquery .= ' AND '; } - $forum = intval($HTTP_POST_VARS['forum']); + $forum = intval($_POST['forum']); $addquery .= ' p.forum_id='.$forum; $subquery .= ' p.forum_id='.$forum; } - if ( isset($HTTP_POST_VARS['search_username']) && trim($HTTP_POST_VARS['search_username']) != "" ) { - $search_username = $myts->oopsAddSlashes(trim($HTTP_POST_VARS['search_username'])); + if ( isset($_POST['search_username']) && trim($_POST['search_username']) != "" ) { + $search_username = $myts->oopsAddSlashes(trim($_POST['search_username'])); if ( !$result = $xoopsDB->query("SELECT uid FROM ".$xoopsDB->prefix("users")." WHERE uname='$search_username'") ) { redirect_header('search.php',1,_MD_ERROROCCURED); exit(); @@ -123,7 +123,7 @@ } } if ( isset($addquery) ) { - switch ( $HTTP_POST_VARS['searchboth'] ) { + switch ( $_POST['searchboth'] ) { case 'both': $query .= " WHERE ( ($subquery) OR ($addquery) ) AND "; break; @@ -140,7 +140,7 @@ } $query .= ' p.post_id = pt.post_id AND p.topic_id = t.topic_id AND p.forum_id = f.forum_id AND p.uid = u.uid AND f.forum_type != 1'; $allowed = array("t.topic_title", "t.topic_views", "t.topic_replies", "f.forum_name", "u.uname"); - $sortby = (!in_array($HTTP_POST_VARS['sortby'], $allowed)) ? "u.uid" : $HTTP_POST_VARS['sortby']; + $sortby = (!in_array($_POST['sortby'], $allowed)) ? "u.uid" : $_POST['sortby']; $query .= ' ORDER BY '.$sortby; if ( !$result = $xoopsDB->query($query,100,0) ) { exit(""._MD_ERROROCCURED."
"._MD_COULDNOTQUERY); Index: xoops2jp/html/modules/newbb/topicmanager.php diff -u xoops2jp/html/modules/newbb/topicmanager.php:1.2 xoops2jp/html/modules/newbb/topicmanager.php:1.2.12.1 --- xoops2jp/html/modules/newbb/topicmanager.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/newbb/topicmanager.php Sun Aug 21 13:16:54 2005 @@ -6,7 +6,7 @@ copyright : (C) 2001 The phpBB Group email : support @ phpbb.com - $Id: topicmanager.php,v 1.2 2005/03/18 12:52:25 onokazu Exp $ + $Id: topicmanager.php,v 1.2.12.1 2005/08/21 04:16:54 nobunobu Exp $ ***************************************************************************/ @@ -19,13 +19,13 @@ * ***************************************************************************/ include "header.php"; -if ( $HTTP_POST_VARS['submit'] ) { +if ( $_POST['submit'] ) { foreach (array('forum', 'topic_id', 'newforum') as $getint) { - ${$getint} = isset($HTTP_POST_VARS[$getint]) ? intval($HTTP_POST_VARS[$getint]) : 0; + ${$getint} = isset($_POST[$getint]) ? intval($_POST[$getint]) : 0; } } else { foreach (array('forum', 'topic_id') as $getint) { - ${$getint} = isset($HTTP_GET_VARS[$getint]) ? intval($HTTP_GET_VARS[$getint]) : 0; + ${$getint} = isset($_GET[$getint]) ? intval($_GET[$getint]) : 0; } } $accesserror = 0; @@ -45,8 +45,8 @@ include XOOPS_ROOT_PATH.'/header.php'; OpenTable(); -if ( $HTTP_POST_VARS['submit'] ) { - switch ($HTTP_POST_VARS['mode']) { +if ( $_POST['submit'] ) { + switch ($_POST['mode']) { case 'del': // Update the users's post count, this might be slow on big topics but it makes other parts of the // forum faster so we win out in the long run. @@ -141,8 +141,8 @@ break; } } else { // No submit - $mode = $HTTP_GET_VARS['mode']; - echo "
+ $mode = $_GET['mode']; + echo "
"; Index: xoops2jp/html/modules/newbb/viewforum.php diff -u xoops2jp/html/modules/newbb/viewforum.php:1.3 xoops2jp/html/modules/newbb/viewforum.php:1.3.2.1 --- xoops2jp/html/modules/newbb/viewforum.php:1.3 Wed Aug 3 21:39:14 2005 +++ xoops2jp/html/modules/newbb/viewforum.php Sun Aug 21 13:16:54 2005 @@ -1,5 +1,5 @@ _MD_TOPICTITLE, "t.topic_replies"=>_MD_NUMBERREPLIES, "u.uname"=>_MD_TOPICPOSTER, "t.topic_views"=>_MD_VIEWS, "p.post_time"=>_MD_LASTPOSTTIME); -if ( !isset($HTTP_GET_VARS['sortname']) || !in_array($HTTP_GET_VARS['sortname'], array_keys($sel_sort_array)) ) { +if ( !isset($_GET['sortname']) || !in_array($_GET['sortname'], array_keys($sel_sort_array)) ) { $sortname = "p.post_time"; } else { - $sortname = $HTTP_GET_VARS['sortname']; + $sortname = $_GET['sortname']; } $xoopsTpl->assign('lang_sortby', _MD_SORTEDBY); @@ -144,7 +144,7 @@ // assign to template $xoopsTpl->assign('forum_selection_sort', $forum_selection_sort); -$sortorder = (!isset($HTTP_GET_VARS['sortorder']) || $HTTP_GET_VARS['sortorder'] != "ASC") ? "DESC" : "ASC"; +$sortorder = (!isset($_GET['sortorder']) || $_GET['sortorder'] != "ASC") ? "DESC" : "ASC"; $forum_selection_order = ''; foreach ($sel_since_array as $sort_since_v) { @@ -183,7 +183,7 @@ $xoopsTpl->assign('lang_date', _MD_DATE); $startdate = time() - (86400* $sortsince); -$start = !empty($HTTP_GET_VARS['start']) ? intval($HTTP_GET_VARS['start']) : 0; +$start = !empty($_GET['start']) ? intval($_GET['start']) : 0; $sql = 'SELECT t.*, u.uname, u2.uname as last_poster, p.post_time as last_post_time, p.icon FROM '.$xoopsDB->prefix("bb_topics").' t LEFT JOIN '.$xoopsDB->prefix('users').' u ON u.uid = t.topic_poster LEFT JOIN '.$xoopsDB->prefix('bb_posts').' p ON p.post_id = t.topic_last_post_id LEFT JOIN '.$xoopsDB->prefix('users').' u2 ON u2.uid = p.uid WHERE t.forum_id = '.$forum.' AND (p.post_time > '.$startdate.' OR t.topic_sticky=1) ORDER BY topic_sticky DESC, '.$sortname.' '.$sortorder; if ( !$result = $xoopsDB->query($sql,$forumdata['topics_per_page'],$start) ) { Index: xoops2jp/html/modules/newbb/viewtopic.php diff -u xoops2jp/html/modules/newbb/viewtopic.php:1.2 xoops2jp/html/modules/newbb/viewtopic.php:1.2.12.1 --- xoops2jp/html/modules/newbb/viewtopic.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/newbb/viewtopic.php Sun Aug 21 13:16:54 2005 @@ -1,5 +1,5 @@ prefix('bb_topics').' t LEFT JOIN '.$xoopsDB->prefix('bb_forums').' f ON f.forum_id = t.forum_id WHERE t.topic_time > '.$topic_time.' AND t.forum_id = '.$forum.' ORDER BY t.topic_time ASC LIMIT 1'; -} elseif ( isset($HTTP_GET_VARS['move']) && 'prev' == $HTTP_GET_VARS['move']) { +} elseif ( isset($_GET['move']) && 'prev' == $_GET['move']) { $sql = 'SELECT t.topic_id, t.topic_title, t.topic_time, t.topic_status, t.topic_sticky, t.topic_last_post_id, f.forum_id, f.forum_name, f.forum_access, f.forum_type, f.allow_html, f.allow_sig, f.posts_per_page, f.hot_threshold, f.topics_per_page FROM '.$xoopsDB->prefix('bb_topics').' t LEFT JOIN '.$xoopsDB->prefix('bb_forums').' f ON f.forum_id = t.forum_id WHERE t.topic_time < '.$topic_time.' AND t.forum_id = '.$forum.' ORDER BY t.topic_time DESC LIMIT 1'; } else { $sql = 'SELECT t.topic_id, t.topic_title, t.topic_time, t.topic_status, t.topic_sticky, t.topic_last_post_id, f.forum_id, f.forum_name, f.forum_access, f.forum_type, f.allow_html, f.allow_sig, f.posts_per_page, f.hot_threshold, f.topics_per_page FROM '.$xoopsDB->prefix('bb_topics').' t LEFT JOIN '.$xoopsDB->prefix('bb_forums').' f ON f.forum_id = t.forum_id WHERE t.topic_id = '.$topic_id.' AND t.forum_id = '.$forum; @@ -229,7 +229,7 @@ } // initialize the start number of select query -$start = !empty($HTTP_GET_VARS['start']) ? intval($HTTP_GET_VARS['start']) : 0; +$start = !empty($_GET['start']) ? intval($_GET['start']) : 0; $total_posts = get_total_posts($topic_id, 'topic'); if ($total_posts > 50) { From nobunobu @ users.sourceforge.jp Sun Aug 21 13:16:54 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 21 Aug 2005 13:16:54 +0900 Subject: [xoops-cvslog 355] CVS update: xoops2jp/html/modules/newbb/include Message-ID: <20050821041654.634D12AC012@users.sourceforge.jp> Index: xoops2jp/html/modules/newbb/include/forumform.inc.php diff -u xoops2jp/html/modules/newbb/include/forumform.inc.php:1.4 xoops2jp/html/modules/newbb/include/forumform.inc.php:1.4.2.1 --- xoops2jp/html/modules/newbb/include/forumform.inc.php:1.4 Wed Aug 3 21:39:14 2005 +++ xoops2jp/html/modules/newbb/include/forumform.inc.php Sun Aug 21 13:16:54 2005 @@ -1,5 +1,5 @@  "; } else { From nobunobu @ users.sourceforge.jp Sun Aug 21 13:16:54 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 21 Aug 2005 13:16:54 +0900 Subject: [xoops-cvslog 356] CVS update: xoops2jp/html/modules/news/admin Message-ID: <20050821041654.82B3E2AC02A@users.sourceforge.jp> Index: xoops2jp/html/modules/news/admin/storyform.inc.php diff -u xoops2jp/html/modules/news/admin/storyform.inc.php:1.4 xoops2jp/html/modules/news/admin/storyform.inc.php:1.4.2.1 --- xoops2jp/html/modules/news/admin/storyform.inc.php:1.4 Wed Aug 3 21:39:14 2005 +++ xoops2jp/html/modules/news/admin/storyform.inc.php Sun Aug 21 13:16:54 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/news/archive.php diff -u xoops2jp/html/modules/news/archive.php:1.2 xoops2jp/html/modules/news/archive.php:1.2.12.1 --- xoops2jp/html/modules/news/archive.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/news/archive.php Sun Aug 21 13:16:54 2005 @@ -1,5 +1,5 @@ _CAL_JANUARY, 2 => _CAL_FEBRUARY, 3 => _CAL_MARCH, 4 => _CAL_APRIL, 5 => _CAL_MAY, 6 => _CAL_JUNE, 7 => _CAL_JULY, 8 => _CAL_AUGUST, 9 => _CAL_SEPTEMBER, 10 => _CAL_OCTOBER, 11 => _CAL_NOVEMBER, 12 => _CAL_DECEMBER); -$fromyear = (isset($HTTP_GET_VARS['year'])) ? intval ($HTTP_GET_VARS['year']): 0; -$frommonth = (isset($HTTP_GET_VARS['month'])) ? intval($HTTP_GET_VARS['month']) : 0; +$fromyear = (isset($_GET['year'])) ? intval ($_GET['year']): 0; +$frommonth = (isset($_GET['month'])) ? intval($_GET['month']) : 0; $useroffset = ""; if($xoopsUser){ Index: xoops2jp/html/modules/news/comment_new.php diff -u xoops2jp/html/modules/news/comment_new.php:1.2 xoops2jp/html/modules/news/comment_new.php:1.2.12.1 --- xoops2jp/html/modules/news/comment_new.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/news/comment_new.php Sun Aug 21 13:16:54 2005 @@ -1,5 +1,5 @@ 0) { $article = new NewsStory($com_itemid); $com_replytext = _POSTEDBY.' '.$article->uname().' '._DATE.' '.formatTimestamp($article->published()).'

'.$article->hometext(); Index: xoops2jp/html/modules/news/index.php diff -u xoops2jp/html/modules/news/index.php:1.2 xoops2jp/html/modules/news/index.php:1.2.12.1 --- xoops2jp/html/modules/news/index.php:1.2 Fri Mar 18 21:52:25 2005 +++ xoops2jp/html/modules/news/index.php Sun Aug 21 13:16:54 2005 @@ -1,5 +1,5 @@ 30) { $xoopsOption['storynum'] = $xoopsModuleConfig['storyhome']; } @@ -43,8 +43,8 @@ $xoopsOption['storynum'] = $xoopsModuleConfig['storyhome']; } -if ( isset($HTTP_GET_VARS['start']) ) { - $start = intval($HTTP_GET_VARS['start']); +if ( isset($_GET['start']) ) { + $start = intval($_GET['start']); } else { $start = 0; } Index: xoops2jp/html/modules/news/print.php diff -u xoops2jp/html/modules/news/print.php:1.4 xoops2jp/html/modules/news/print.php:1.4.2.1 --- xoops2jp/html/modules/news/print.php:1.4 Wed Aug 3 21:39:14 2005 +++ xoops2jp/html/modules/news/print.php Sun Aug 21 13:16:54 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/sections/index.php diff -u xoops2jp/html/modules/sections/index.php:1.4 xoops2jp/html/modules/sections/index.php:1.4.2.1 --- xoops2jp/html/modules/sections/index.php:1.4 Wed Aug 3 21:39:15 2005 +++ xoops2jp/html/modules/sections/index.php Sun Aug 21 13:16:54 2005 @@ -1,5 +1,5 @@ "; } -$op = isset($HTTP_GET_VARS['op']) ? trim($HTTP_GET_VARS['op']) : ''; -$secid = isset($HTTP_GET_VARS['secid']) ? intval($HTTP_GET_VARS['secid']) : 0; -$page = isset($HTTP_GET_VARS['page']) ? intval($HTTP_GET_VARS['page']) : 0; -$artid = isset($HTTP_GET_VARS['artid']) ? intval($HTTP_GET_VARS['artid']) : 0; +$op = isset($_GET['op']) ? trim($_GET['op']) : ''; +$secid = isset($_GET['secid']) ? intval($_GET['secid']) : 0; +$page = isset($_GET['page']) ? intval($_GET['page']) : 0; +$artid = isset($_GET['artid']) ? intval($_GET['artid']) : 0; switch ( $op ) { From nobunobu @ users.sourceforge.jp Sun Aug 21 13:16:54 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 21 Aug 2005 13:16:54 +0900 Subject: [xoops-cvslog 359] CVS update: xoops2jp/html/modules/sections/admin Message-ID: <20050821041654.C9A1D2AC012@users.sourceforge.jp> Index: xoops2jp/html/modules/sections/admin/index.php diff -u xoops2jp/html/modules/sections/admin/index.php:1.5 xoops2jp/html/modules/sections/admin/index.php:1.5.2.1 --- xoops2jp/html/modules/sections/admin/index.php:1.5 Wed Aug 3 21:39:15 2005 +++ xoops2jp/html/modules/sections/admin/index.php Sun Aug 21 13:16:54 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/xoopsfaq/index.php diff -u xoops2jp/html/modules/xoopsfaq/index.php:1.2 xoops2jp/html/modules/xoopsfaq/index.php:1.2.12.1 --- xoops2jp/html/modules/xoopsfaq/index.php:1.2 Fri Mar 18 21:52:49 2005 +++ xoops2jp/html/modules/xoopsfaq/index.php Sun Aug 21 13:16:54 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/xoopsheadline/index.php diff -u xoops2jp/html/modules/xoopsheadline/index.php:1.2 xoops2jp/html/modules/xoopsheadline/index.php:1.2.12.1 --- xoops2jp/html/modules/xoopsheadline/index.php:1.2 Fri Mar 18 21:52:49 2005 +++ xoops2jp/html/modules/xoopsheadline/index.php Sun Aug 21 13:16:55 2005 @@ -1,5 +1,5 @@ getObjects(new Criteria('headline_display', 1)); From nobunobu @ users.sourceforge.jp Sun Aug 21 13:16:55 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 21 Aug 2005 13:16:55 +0900 Subject: [xoops-cvslog 362] CVS update: xoops2jp/html/modules/xoopsmembers Message-ID: <20050821041655.552732AC02A@users.sourceforge.jp> Index: xoops2jp/html/modules/xoopsmembers/index.php diff -u xoops2jp/html/modules/xoopsmembers/index.php:1.3 xoops2jp/html/modules/xoopsmembers/index.php:1.3.2.1 --- xoops2jp/html/modules/xoopsmembers/index.php:1.3 Wed Aug 3 21:40:01 2005 +++ xoops2jp/html/modules/xoopsmembers/index.php Sun Aug 21 13:16:55 2005 @@ -1,5 +1,5 @@ add(new Criteria('uname', $myts->addSlashes(trim($HTTP_POST_VARS['user_uname'])).'%', 'LIKE')); + $criteria->add(new Criteria('uname', $myts->addSlashes(trim($_POST['user_uname'])).'%', 'LIKE')); break; case XOOPS_MATCH_END: - $criteria->add(new Criteria('uname', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_uname'])), 'LIKE')); + $criteria->add(new Criteria('uname', '%'.$myts->addSlashes(trim($_POST['user_uname'])), 'LIKE')); break; case XOOPS_MATCH_EQUAL: - $criteria->add(new Criteria('uname', $myts->addSlashes(trim($HTTP_POST_VARS['user_uname'])))); + $criteria->add(new Criteria('uname', $myts->addSlashes(trim($_POST['user_uname'])))); break; case XOOPS_MATCH_CONTAIN: - $criteria->add(new Criteria('uname', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_uname'])).'%', 'LIKE')); + $criteria->add(new Criteria('uname', '%'.$myts->addSlashes(trim($_POST['user_uname'])).'%', 'LIKE')); break; } } - if ( !empty($HTTP_POST_VARS['user_name']) ) { - $match = (!empty($HTTP_POST_VARS['user_name_match'])) ? intval($HTTP_POST_VARS['user_name_match']) : XOOPS_MATCH_START; + if ( !empty($_POST['user_name']) ) { + $match = (!empty($_POST['user_name_match'])) ? intval($_POST['user_name_match']) : XOOPS_MATCH_START; switch ($match) { case XOOPS_MATCH_START: - $criteria->add(new Criteria('name', $myts->addSlashes(trim($HTTP_POST_VARS['user_name'])).'%', 'LIKE')); + $criteria->add(new Criteria('name', $myts->addSlashes(trim($_POST['user_name'])).'%', 'LIKE')); break; case XOOPS_MATCH_END: - $criteria->add(new Criteria('name', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_name'])).'%', 'LIKE')); + $criteria->add(new Criteria('name', '%'.$myts->addSlashes(trim($_POST['user_name'])).'%', 'LIKE')); break; case XOOPS_MATCH_EQUAL: - $criteria->add(new Criteria('name', $myts->addSlashes(trim($HTTP_POST_VARS['user_name'])))); + $criteria->add(new Criteria('name', $myts->addSlashes(trim($_POST['user_name'])))); break; case XOOPS_MATCH_CONTAIN: - $criteria->add(new Criteria('name', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_name'])).'%', 'LIKE')); + $criteria->add(new Criteria('name', '%'.$myts->addSlashes(trim($_POST['user_name'])).'%', 'LIKE')); break; } } - if ( !empty($HTTP_POST_VARS['user_email']) ) { - $match = (!empty($HTTP_POST_VARS['user_email_match'])) ? intval($HTTP_POST_VARS['user_email_match']) : XOOPS_MATCH_START; + if ( !empty($_POST['user_email']) ) { + $match = (!empty($_POST['user_email_match'])) ? intval($_POST['user_email_match']) : XOOPS_MATCH_START; switch ($match) { case XOOPS_MATCH_START: - $criteria->add(new Criteria('email', $myts->addSlashes(trim($HTTP_POST_VARS['user_email'])).'%', 'LIKE')); + $criteria->add(new Criteria('email', $myts->addSlashes(trim($_POST['user_email'])).'%', 'LIKE')); break; case XOOPS_MATCH_END: - $criteria->add(new Criteria('email', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_email'])), 'LIKE')); + $criteria->add(new Criteria('email', '%'.$myts->addSlashes(trim($_POST['user_email'])), 'LIKE')); break; case XOOPS_MATCH_EQUAL: - $criteria->add(new Criteria('email', $myts->addSlashes(trim($HTTP_POST_VARS['user_email'])))); + $criteria->add(new Criteria('email', $myts->addSlashes(trim($_POST['user_email'])))); break; case XOOPS_MATCH_CONTAIN: - $criteria->add(new Criteria('email', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_email'])).'%', 'LIKE')); + $criteria->add(new Criteria('email', '%'.$myts->addSlashes(trim($_POST['user_email'])).'%', 'LIKE')); break; } if ( !$iamadmin ) { $criteria->add(new Criteria('user_viewemail', 1)); } } - if ( !empty($HTTP_POST_VARS['user_url']) ) { - $url = formatURL(trim($HTTP_POST_VARS['user_url'])); + if ( !empty($_POST['user_url']) ) { + $url = formatURL(trim($_POST['user_url'])); $criteria->add(new Criteria('url', $myts->addSlashes($url).'%', 'LIKE')); } - if ( !empty($HTTP_POST_VARS['user_icq']) ) { - $match = (!empty($HTTP_POST_VARS['user_icq_match'])) ? intval($HTTP_POST_VARS['user_icq_match']) : XOOPS_MATCH_START; + if ( !empty($_POST['user_icq']) ) { + $match = (!empty($_POST['user_icq_match'])) ? intval($_POST['user_icq_match']) : XOOPS_MATCH_START; switch ($match) { case XOOPS_MATCH_START: - $criteria->add(new Criteria('user_icq', $myts->addSlashes(trim($HTTP_POST_VARS['user_icq'])).'%', 'LIKE')); + $criteria->add(new Criteria('user_icq', $myts->addSlashes(trim($_POST['user_icq'])).'%', 'LIKE')); break; case XOOPS_MATCH_END: - $criteria->add(new Criteria('user_icq', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_icq'])), 'LIKE')); + $criteria->add(new Criteria('user_icq', '%'.$myts->addSlashes(trim($_POST['user_icq'])), 'LIKE')); break; case XOOPS_MATCH_EQUAL: - $criteria->add(new Criteria('user_icq', $myts->addSlashes(trim($HTTP_POST_VARS['user_icq'])))); + $criteria->add(new Criteria('user_icq', $myts->addSlashes(trim($_POST['user_icq'])))); break; case XOOPS_MATCH_CONTAIN: - $criteria->add(new Criteria('user_icq', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_icq'])).'%', 'LIKE')); + $criteria->add(new Criteria('user_icq', '%'.$myts->addSlashes(trim($_POST['user_icq'])).'%', 'LIKE')); break; } } - if ( !empty($HTTP_POST_VARS['user_aim']) ) { - $match = (!empty($HTTP_POST_VARS['user_aim_match'])) ? intval($HTTP_POST_VARS['user_aim_match']) : XOOPS_MATCH_START; + if ( !empty($_POST['user_aim']) ) { + $match = (!empty($_POST['user_aim_match'])) ? intval($_POST['user_aim_match']) : XOOPS_MATCH_START; switch ($match) { case XOOPS_MATCH_START: - $criteria->add(new Criteria('user_aim', $myts->addSlashes(trim($HTTP_POST_VARS['user_aim'])).'%', 'LIKE')); + $criteria->add(new Criteria('user_aim', $myts->addSlashes(trim($_POST['user_aim'])).'%', 'LIKE')); break; case XOOPS_MATCH_END: - $criteria->add(new Criteria('user_aim', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_aim'])), 'LIKE')); + $criteria->add(new Criteria('user_aim', '%'.$myts->addSlashes(trim($_POST['user_aim'])), 'LIKE')); break; case XOOPS_MATCH_EQUAL: - $criteria->add(new Criteria('user_aim', $myts->addSlashes(trim($HTTP_POST_VARS['user_aim'])))); + $criteria->add(new Criteria('user_aim', $myts->addSlashes(trim($_POST['user_aim'])))); break; case XOOPS_MATCH_CONTAIN: - $criteria->add(new Criteria('user_aim', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_aim'])).'%', 'LIKE')); + $criteria->add(new Criteria('user_aim', '%'.$myts->addSlashes(trim($_POST['user_aim'])).'%', 'LIKE')); break; } } - if ( !empty($HTTP_POST_VARS['user_yim']) ) { - $match = (!empty($HTTP_POST_VARS['user_yim_match'])) ? intval($HTTP_POST_VARS['user_yim_match']) : XOOPS_MATCH_START; + if ( !empty($_POST['user_yim']) ) { + $match = (!empty($_POST['user_yim_match'])) ? intval($_POST['user_yim_match']) : XOOPS_MATCH_START; switch ($match) { case XOOPS_MATCH_START: - $criteria->add(new Criteria('user_yim', $myts->addSlashes(trim($HTTP_POST_VARS['user_yim'])).'%', 'LIKE')); + $criteria->add(new Criteria('user_yim', $myts->addSlashes(trim($_POST['user_yim'])).'%', 'LIKE')); break; case XOOPS_MATCH_END: - $criteria->add(new Criteria('user_yim', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_yim'])), 'LIKE')); + $criteria->add(new Criteria('user_yim', '%'.$myts->addSlashes(trim($_POST['user_yim'])), 'LIKE')); break; case XOOPS_MATCH_EQUAL: - $criteria->add(new Criteria('user_yim', $myts->addSlashes(trim($HTTP_POST_VARS['user_yim'])))); + $criteria->add(new Criteria('user_yim', $myts->addSlashes(trim($_POST['user_yim'])))); break; case XOOPS_MATCH_CONTAIN: - $criteria->add(new Criteria('user_yim', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_yim'])).'%', 'LIKE')); + $criteria->add(new Criteria('user_yim', '%'.$myts->addSlashes(trim($_POST['user_yim'])).'%', 'LIKE')); break; } } - if ( !empty($HTTP_POST_VARS['user_msnm']) ) { - $match = (!empty($HTTP_POST_VARS['user_msnm_match'])) ? intval($HTTP_POST_VARS['user_msnm_match']) : XOOPS_MATCH_START; + if ( !empty($_POST['user_msnm']) ) { + $match = (!empty($_POST['user_msnm_match'])) ? intval($_POST['user_msnm_match']) : XOOPS_MATCH_START; switch ($match) { case XOOPS_MATCH_START: - $criteria->add(new Criteria('user_msnm', $myts->addSlashes(trim($HTTP_POST_VARS['user_msnm'])).'%', 'LIKE')); + $criteria->add(new Criteria('user_msnm', $myts->addSlashes(trim($_POST['user_msnm'])).'%', 'LIKE')); break; case XOOPS_MATCH_END: - $criteria->add(new Criteria('user_msnm', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_msnm'])), 'LIKE')); + $criteria->add(new Criteria('user_msnm', '%'.$myts->addSlashes(trim($_POST['user_msnm'])), 'LIKE')); break; case XOOPS_MATCH_EQUAL: - $criteria->add(new Criteria('user_msnm', $myts->addSlashes(trim($HTTP_POST_VARS['user_msnm'])))); + $criteria->add(new Criteria('user_msnm', $myts->addSlashes(trim($_POST['user_msnm'])))); break; case XOOPS_MATCH_CONTAIN: - $criteria->add(new Criteria('user_msnm', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_msnm'])).'%', 'LIKE')); + $criteria->add(new Criteria('user_msnm', '%'.$myts->addSlashes(trim($_POST['user_msnm'])).'%', 'LIKE')); break; } } - if ( !empty($HTTP_POST_VARS['user_from']) ) { - $criteria->add(new Criteria('user_from', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_from'])).'%', 'LIKE')); + if ( !empty($_POST['user_from']) ) { + $criteria->add(new Criteria('user_from', '%'.$myts->addSlashes(trim($_POST['user_from'])).'%', 'LIKE')); } - if ( !empty($HTTP_POST_VARS['user_intrest']) ) { - $criteria->add(new Criteria('user_intrest', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_intrest'])).'%', 'LIKE')); + if ( !empty($_POST['user_intrest']) ) { + $criteria->add(new Criteria('user_intrest', '%'.$myts->addSlashes(trim($_POST['user_intrest'])).'%', 'LIKE')); } - if ( !empty($HTTP_POST_VARS['user_occ']) ) { - $criteria->add(new Criteria('user_occ', '%'.$myts->addSlashes(trim($HTTP_POST_VARS['user_occ'])).'%', 'LIKE')); + if ( !empty($_POST['user_occ']) ) { + $criteria->add(new Criteria('user_occ', '%'.$myts->addSlashes(trim($_POST['user_occ'])).'%', 'LIKE')); } - if ( !empty($HTTP_POST_VARS['user_lastlog_more']) && is_numeric($HTTP_POST_VARS['user_lastlog_more']) ) { - $f_user_lastlog_more = intval(trim($HTTP_POST_VARS['user_lastlog_more'])); + if ( !empty($_POST['user_lastlog_more']) && is_numeric($_POST['user_lastlog_more']) ) { + $f_user_lastlog_more = intval(trim($_POST['user_lastlog_more'])); $time = time() - (60 * 60 * 24 * $f_user_lastlog_more); if ( $time > 0 ) { $criteria->add(new Criteria('last_login', $time, '<')); } } - if ( !empty($HTTP_POST_VARS['user_lastlog_less']) && is_numeric($HTTP_POST_VARS['user_lastlog_less']) ) { - $f_user_lastlog_less = intval(trim($HTTP_POST_VARS['user_lastlog_less'])); + if ( !empty($_POST['user_lastlog_less']) && is_numeric($_POST['user_lastlog_less']) ) { + $f_user_lastlog_less = intval(trim($_POST['user_lastlog_less'])); $time = time() - (60 * 60 * 24 * $f_user_lastlog_less); if ( $time > 0 ) { $criteria->add(new Criteria('last_login', $time, '>')); } } - if ( !empty($HTTP_POST_VARS['user_reg_more']) && is_numeric($HTTP_POST_VARS['user_reg_more']) ) { - $f_user_reg_more = intval(trim($HTTP_POST_VARS['user_reg_more'])); + if ( !empty($_POST['user_reg_more']) && is_numeric($_POST['user_reg_more']) ) { + $f_user_reg_more = intval(trim($_POST['user_reg_more'])); $time = time() - (60 * 60 * 24 * $f_user_reg_more); if ( $time > 0 ) { $criteria->add(new Criteria('user_regdate', $time, '<')); } } - if ( !empty($HTTP_POST_VARS['user_reg_less']) && is_numeric($HTTP_POST_VARS['user_reg_less']) ) { - $f_user_reg_less = intval($HTTP_POST_VARS['user_reg_less']); + if ( !empty($_POST['user_reg_less']) && is_numeric($_POST['user_reg_less']) ) { + $f_user_reg_less = intval($_POST['user_reg_less']); $time = time() - (60 * 60 * 24 * $f_user_reg_less); if ( $time > 0 ) { $criteria->add(new Criteria('user_regdate', $time, '>')); } } - if ( isset($HTTP_POST_VARS['user_posts_more']) && is_numeric($HTTP_POST_VARS['user_posts_more']) ) { - $criteria->add(new Criteria('posts', intval($HTTP_POST_VARS['user_posts_more']), '>')); + if ( isset($_POST['user_posts_more']) && is_numeric($_POST['user_posts_more']) ) { + $criteria->add(new Criteria('posts', intval($_POST['user_posts_more']), '>')); } - if ( !empty($HTTP_POST_VARS['user_posts_less']) && is_numeric($HTTP_POST_VARS['user_posts_less']) ) { - $criteria->add(new Criteria('posts', intval($HTTP_POST_VARS['user_posts_less']), '<')); + if ( !empty($_POST['user_posts_less']) && is_numeric($_POST['user_posts_less']) ) { + $criteria->add(new Criteria('posts', intval($_POST['user_posts_less']), '<')); } $criteria->add(new Criteria('level', 0, '>')); $validsort = array("uname", "email", "last_login", "user_regdate", "posts"); - $sort = (!in_array($HTTP_POST_VARS['user_sort'], $validsort)) ? "uname" : $HTTP_POST_VARS['user_sort']; + $sort = (!in_array($_POST['user_sort'], $validsort)) ? "uname" : $_POST['user_sort']; $order = "ASC"; - if ( isset($HTTP_POST_VARS['user_order']) && $HTTP_POST_VARS['user_order'] == "DESC") { + if ( isset($_POST['user_order']) && $_POST['user_order'] == "DESC") { $order = "DESC"; } - $limit = (!empty($HTTP_POST_VARS['limit'])) ? intval($HTTP_POST_VARS['limit']) : 20; + $limit = (!empty($_POST['limit'])) ? intval($_POST['limit']) : 20; if ( $limit == 0 || $limit > 50 ) { $limit = 50; } - $start = (!empty($HTTP_POST_VARS['start'])) ? intval($HTTP_POST_VARS['start']) : 0; + $start = (!empty($_POST['start'])) ? intval($_POST['start']) : 0; $member_handler =& xoops_gethandler('member'); $total = $member_handler->getUserCount($criteria); $xoopsTpl->assign('lang_search', _MM_SEARCH); @@ -374,13 +374,13 @@ $totalpages = ceil($total / $limit); if ( $totalpages > 1 ) { $hiddenform = ""; - foreach ( $HTTP_POST_VARS as $k => $v ) { + foreach ( $_POST as $k => $v ) { $hiddenform .= "\n"; } - if (!isset($HTTP_POST_VARS['limit'])) { + if (!isset($_POST['limit'])) { $hiddenform .= "\n"; } - if (!isset($HTTP_POST_VARS['start'])) { + if (!isset($_POST['start'])) { $hiddenform .= "\n"; } $prev = $start - $limit; From nobunobu @ users.sourceforge.jp Sun Aug 21 13:16:55 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 21 Aug 2005 13:16:55 +0900 Subject: [xoops-cvslog 363] CVS update: xoops2jp/html/modules/xoopspartners Message-ID: <20050821041655.7A17C2AC049@users.sourceforge.jp> Index: xoops2jp/html/modules/xoopspartners/join.php diff -u xoops2jp/html/modules/xoopspartners/join.php:1.4 xoops2jp/html/modules/xoopspartners/join.php:1.4.2.1 --- xoops2jp/html/modules/xoopspartners/join.php:1.4 Wed Aug 3 21:40:02 2005 +++ xoops2jp/html/modules/xoopspartners/join.php Sun Aug 21 13:16:55 2005 @@ -1,5 +1,5 @@ setTemplate("join.tpl"); $xoopsMailer->assign("SITENAME", $xoopsConfig['sitename']); $xoopsMailer->assign("SITEURL", XOOPS_URL."/"); - $xoopsMailer->assign("IP", $HTTP_SERVER_VARS['REMOTE_ADDR']); + $xoopsMailer->assign("IP", $_SERVER['REMOTE_ADDR']); $xoopsMailer->assign("URL", $url); $xoopsMailer->assign("IMAGE", $image); $xoopsMailer->assign("TITLE", $title); Index: xoops2jp/html/modules/xoopspartners/vpartner.php diff -u xoops2jp/html/modules/xoopspartners/vpartner.php:1.2 xoops2jp/html/modules/xoopspartners/vpartner.php:1.2.12.1 --- xoops2jp/html/modules/xoopspartners/vpartner.php:1.2 Fri Mar 18 21:52:49 2005 +++ xoops2jp/html/modules/xoopspartners/vpartner.php Sun Aug 21 13:16:55 2005 @@ -1,5 +1,5 @@ load($id); if ( $part->getVar("url") ) { - if ( !isset($HTTP_COOKIE_VARS['partners'][$id]) ) { + if ( !isset($_COOKIE['partners'][$id]) ) { setcookie("partners[$id]", $id, $xoopsModuleConfig['cookietime']); $part->setHits($id); } From nobunobu @ users.sourceforge.jp Sun Aug 21 13:16:55 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 21 Aug 2005 13:16:55 +0900 Subject: [xoops-cvslog 364] CVS update: xoops2jp/html/modules/xoopspoll Message-ID: <20050821041655.9B7462AC012@users.sourceforge.jp> Index: xoops2jp/html/modules/xoopspoll/index.php diff -u xoops2jp/html/modules/xoopspoll/index.php:1.2 xoops2jp/html/modules/xoopspoll/index.php:1.2.12.1 --- xoops2jp/html/modules/xoopspoll/index.php:1.2 Fri Mar 18 21:52:49 2005 +++ xoops2jp/html/modules/xoopspoll/index.php Sun Aug 21 13:16:55 2005 @@ -1,5 +1,5 @@ assign('lang_pollslist', _PL_POLLSLIST); $xoopsTpl->assign('lang_pollquestion' , _PL_POLLQUESTION); $xoopsTpl->assign('lang_pollvoters', _PL_VOTERS); @@ -67,8 +67,8 @@ unset($polls); } include XOOPS_ROOT_PATH."/footer.php"; -} elseif ( !empty($HTTP_POST_VARS['option_id']) ) { - $voted_polls = (!empty($HTTP_COOKIE_VARS['voted_polls'])) ? $HTTP_COOKIE_VARS['voted_polls'] : array(); +} elseif ( !empty($_POST['option_id']) ) { + $voted_polls = (!empty($_COOKIE['voted_polls'])) ? $_COOKIE['voted_polls'] : array(); $mail_author = false; $poll = new XoopsPoll($poll_id); if ( !$poll->hasExpired() ) { @@ -78,7 +78,7 @@ setcookie("voted_polls[$poll_id]", 1, 0); $msg = _PL_ALREADYVOTED; } else { - $poll->vote($HTTP_POST_VARS['option_id'], xoops_getenv('REMOTE_ADDR'), $xoopsUser->getVar("uid")); + $poll->vote($_POST['option_id'], xoops_getenv('REMOTE_ADDR'), $xoopsUser->getVar("uid")); $poll->updateCount(); setcookie("voted_polls[$poll_id]", 1, 0); $msg = _PL_THANKSFORVOTE; @@ -88,7 +88,7 @@ setcookie("voted_polls[$poll_id]", 1, 0); $msg = _PL_ALREADYVOTED; } else { - $poll->vote($HTTP_POST_VARS['option_id'], xoops_getenv('REMOTE_ADDR')); + $poll->vote($_POST['option_id'], xoops_getenv('REMOTE_ADDR')); $poll->updateCount(); setcookie("voted_polls[$poll_id]", 1, 0); $msg = _PL_THANKSFORVOTE; Index: xoops2jp/html/modules/xoopspoll/pollresults.php diff -u xoops2jp/html/modules/xoopspoll/pollresults.php:1.2 xoops2jp/html/modules/xoopspoll/pollresults.php:1.2.12.1 --- xoops2jp/html/modules/xoopspoll/pollresults.php:1.2 Fri Mar 18 21:52:49 2005 +++ xoops2jp/html/modules/xoopspoll/pollresults.php Sun Aug 21 13:16:55 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/kernel/tplfile.php diff -u xoops2jp/html/kernel/tplfile.php:1.2 xoops2jp/html/kernel/tplfile.php:1.2.12.1 --- xoops2jp/html/kernel/tplfile.php:1.2 Fri Mar 18 21:52:14 2005 +++ xoops2jp/html/kernel/tplfile.php Wed Aug 24 18:40:22 2005 @@ -1,5 +1,5 @@ db->prefix('tplfile')." WHERE tpl_tplset='".$tplset."' GROUP BY tpl_module"; + $sql = "SELECT tpl_module, COUNT(tpl_id) AS count FROM ".$this->db->prefix('tplfile')." WHERE tpl_tplset=".$this->db->quoteString($tplset)." GROUP BY tpl_module"; $result = $this->db->query($sql); if (!$result) { return $ret; @@ -275,7 +275,7 @@ { $criteria = new CriteriaCompo(); if (isset($tplset)) { - $criteria->add(new Criteria('tpl_tplset', $tplset)); + $criteria->add(new Criteria('tpl_tplset', addslashes(trim($tplset)))); } if (isset($module)) { $criteria->add(new Criteria('tpl_module', $module)); @@ -303,7 +303,7 @@ function templateExists($tplname, $tplset_name) { $criteria = new CriteriaCompo(new Criteria('tpl_file', trim($tplname))); - $criteria->add(new Criteria('tpl_tplset', trim($tplset_name))); + $criteria->add(new Criteria('tpl_tplset', addslashes(trim($tplset_name)))); if ($this->getCount($criteria) > 0) { return true; } From nobunobu @ users.sourceforge.jp Wed Aug 24 18:40:22 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Wed, 24 Aug 2005 18:40:22 +0900 Subject: [xoops-cvslog 366] CVS update: xoops2jp/html/modules/system/admin/preferences Message-ID: <20050824094022.D94042AC048@users.sourceforge.jp> Index: xoops2jp/html/modules/system/admin/preferences/main.php diff -u xoops2jp/html/modules/system/admin/preferences/main.php:1.4 xoops2jp/html/modules/system/admin/preferences/main.php:1.4.2.1 --- xoops2jp/html/modules/system/admin/preferences/main.php:1.4 Wed Aug 3 21:39:17 2005 +++ xoops2jp/html/modules/system/admin/preferences/main.php Wed Aug 24 18:40:22 2005 @@ -1,5 +1,5 @@ getList(); asort($tplsetlist); foreach ($tplsetlist as $key => $name) { - $ele->addOption($key, $name); + $ele->addOption($key, htmlspecialchars($name, ENT_QUOTES)); } // old theme value is used to determine whether to update cache or not. kind of dirty way $form->addElement(new XoopsFormHidden('_old_theme', $config[$i]->getConfValueForOutput())); From minahito @ users.sourceforge.jp Thu Aug 25 12:15:31 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 25 Aug 2005 12:15:31 +0900 Subject: [xoops-cvslog 367] CVS update: xoops2jp/html Message-ID: <20050825031531.03D1A2AC01F@users.sourceforge.jp> Index: xoops2jp/html/misc.php diff -u xoops2jp/html/misc.php:1.4 xoops2jp/html/misc.php:1.4.2.1 --- xoops2jp/html/misc.php:1.4 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/misc.php Thu Aug 25 12:15:31 2005 @@ -1,5 +1,5 @@

- '> + '>
Index: xoops2jp/html/class/pagenav.php diff -u xoops2jp/html/class/pagenav.php:1.4 xoops2jp/html/class/pagenav.php:1.4.2.1 --- xoops2jp/html/class/pagenav.php:1.4 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/class/pagenav.php Thu Aug 25 12:16:06 2005 @@ -1,5 +1,5 @@ url = $_SERVER['PHP_SELF'].'?'.$extra_arg.trim($start_name).'='; + $this->url = xoops_getenv('PHP_SELF').'?'.$extra_arg.trim($start_name).'='; } /** @@ -125,7 +125,7 @@ $total_pages = ceil($this->total / $this->perpage); $ret = ''; if ( $total_pages > 1 ) { - $ret = ''; + $ret = ''; $ret .= '
"; + echo ""; } function showTreeFoot() From minahito @ users.sourceforge.jp Thu Aug 25 12:16:18 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 25 Aug 2005 12:16:18 +0900 Subject: [xoops-cvslog 370] CVS update: xoops2jp/html/class/smarty/plugins Message-ID: <20050825031618.8ED132AC01F@users.sourceforge.jp> Index: xoops2jp/html/class/smarty/plugins/function.xoops_link.php diff -u xoops2jp/html/class/smarty/plugins/function.xoops_link.php:1.2 xoops2jp/html/class/smarty/plugins/function.xoops_link.php:1.2.12.1 --- xoops2jp/html/class/smarty/plugins/function.xoops_link.php:1.2 Fri Mar 18 21:51:55 2005 +++ xoops2jp/html/class/smarty/plugins/function.xoops_link.php Thu Aug 25 12:16:18 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/include/common.php diff -u xoops2jp/html/include/common.php:1.6 xoops2jp/html/include/common.php:1.6.2.1 --- xoops2jp/html/include/common.php:1.6 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/include/common.php Thu Aug 25 12:16:50 2005 @@ -1,5 +1,5 @@ \"\'\(\)]/",$_SERVER['REQUEST_URI'])) + die(); } $xoopsRequestUri = $_SERVER[ 'REQUEST_URI' ]; // Deprecated (use the corrected $_SERVER variable now) /**#@-*/ From minahito @ users.sourceforge.jp Thu Aug 25 12:17:09 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 25 Aug 2005 12:17:09 +0900 Subject: [xoops-cvslog 372] CVS update: xoops2jp/html/include Message-ID: <20050825031709.8EE2A2AC01F@users.sourceforge.jp> Index: xoops2jp/html/include/functions.php diff -u xoops2jp/html/include/functions.php:1.4 xoops2jp/html/include/functions.php:1.4.2.1 --- xoops2jp/html/include/functions.php:1.4 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/include/functions.php Thu Aug 25 12:17:09 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/include/notification_functions.php diff -u xoops2jp/html/include/notification_functions.php:1.2 xoops2jp/html/include/notification_functions.php:1.2.12.1 --- xoops2jp/html/include/notification_functions.php:1.2 Fri Mar 18 21:51:55 2005 +++ xoops2jp/html/include/notification_functions.php Thu Aug 25 12:17:26 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/newbb/admin/admin_forums.php diff -u xoops2jp/html/modules/newbb/admin/admin_forums.php:1.4 xoops2jp/html/modules/newbb/admin/admin_forums.php:1.4.2.1 --- xoops2jp/html/modules/newbb/admin/admin_forums.php:1.4 Wed Aug 3 21:39:13 2005 +++ xoops2jp/html/modules/newbb/admin/admin_forums.php Thu Aug 25 12:18:00 2005 @@ -6,7 +6,7 @@ copyright : (C) 2001 The phpBB Group email : support @ phpbb.com - $Id: admin_forums.php,v 1.4 2005/08/03 12:39:13 onokazu Exp $ + $Id: admin_forums.php,v 1.4.2.1 2005/08/25 03:18:00 minahito Exp $ ***************************************************************************/ /*************************************************************************** @@ -157,7 +157,7 @@ ."
".$prefix." getVar("comment_id")."'>".$this->getVar("subject")."".XoopsUser::getUnameFromId($this->getVar("user_id"))."".$date."
".$prefix." getVar("comment_id")."'>".$this->getVar("subject")."".XoopsUser::getUnameFromId($this->getVar("user_id"))."".$date."
"; echo "

"._MD_A_FORUMCONF."

"; ?> - +
@@ -312,7 +312,7 @@ ."
"; echo "

"._MD_A_FORUMCONF."

"; ?> - +
@@ -373,7 +373,7 @@ $cat_data = $xoopsDB->fetchArray($result); $cat_title = $myts->makeTboxData4Edit($cat_data["cat_title"]); ?> - +
@@ -404,7 +404,7 @@ ."
"; echo "

"._MD_A_FORUMCONF."

"; ?> - +
@@ -443,7 +443,7 @@ ."
"; echo "

"._MD_A_FORUMCONF."

"; ?> - +
@@ -500,7 +500,7 @@ ."
"; echo "

"._MD_A_FORUMCONF."

"; ?> - +
@@ -603,7 +603,7 @@ exit(); } ?> - +
@@ -750,7 +750,7 @@ } } ?> - +
@@ -768,7 +768,7 @@ } while ( $m = $xoopsDB->fetchArray($r) ) { echo "\n"; - echo "\n"; + echo "\n"; echo "\n"; echo "\n"; echo " - Index: xoops2jp/html/modules/newbb/admin/admin_priv_forums.php diff -u xoops2jp/html/modules/newbb/admin/admin_priv_forums.php:1.4 xoops2jp/html/modules/newbb/admin/admin_priv_forums.php:1.4.2.1 --- xoops2jp/html/modules/newbb/admin/admin_priv_forums.php:1.4 Wed Aug 3 21:39:13 2005 +++ xoops2jp/html/modules/newbb/admin/admin_priv_forums.php Thu Aug 25 12:18:00 2005 @@ -6,7 +6,7 @@ copyright : (C) 2001 The phpBB Group email : support @ phpbb.com - $Id: admin_priv_forums.php,v 1.4 2005/08/03 12:39:13 onokazu Exp $ + $Id: admin_priv_forums.php,v 1.4.2.1 2005/08/25 03:18:00 minahito Exp $ ***************************************************************************/ /*************************************************************************** @@ -37,7 +37,7 @@ // No opcode passed. Show list of private forums. ?> - +
".$myts->makeTboxData4Show($m['cat_title'])."\n"; @@ -805,7 +805,7 @@
+
From minahito @ users.sourceforge.jp Thu Aug 25 12:18:06 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 25 Aug 2005 12:18:06 +0900 Subject: [xoops-cvslog 375] CVS update: xoops2jp/html/modules/newbb Message-ID: <20050825031806.4A6A02AC01F@users.sourceforge.jp> Index: xoops2jp/html/modules/newbb/config.php diff -u xoops2jp/html/modules/newbb/config.php:1.2.12.1 xoops2jp/html/modules/newbb/config.php:1.2.12.2 --- xoops2jp/html/modules/newbb/config.php:1.2.12.1 Sun Aug 21 13:16:54 2005 +++ xoops2jp/html/modules/newbb/config.php Thu Aug 25 12:18:06 2005 @@ -1,5 +1,5 @@ + echo "
@@ -206,7 +206,7 @@
- + @@ -265,7 +265,7 @@
"; From minahito @ users.sourceforge.jp Thu Aug 25 12:18:15 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 25 Aug 2005 12:18:15 +0900 Subject: [xoops-cvslog 376] CVS update: xoops2jp/html/modules/system/blocks Message-ID: <20050825031815.712902AC01F@users.sourceforge.jp> Index: xoops2jp/html/modules/system/blocks/system_blocks.php diff -u xoops2jp/html/modules/system/blocks/system_blocks.php:1.5 xoops2jp/html/modules/system/blocks/system_blocks.php:1.5.2.1 --- xoops2jp/html/modules/system/blocks/system_blocks.php:1.5 Wed Aug 3 21:40:01 2005 +++ xoops2jp/html/modules/system/blocks/system_blocks.php Thu Aug 25 12:18:15 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/news/admin/storyform.inc.php diff -u xoops2jp/html/modules/news/admin/storyform.inc.php:1.4.2.1 xoops2jp/html/modules/news/admin/storyform.inc.php:1.4.2.2 --- xoops2jp/html/modules/news/admin/storyform.inc.php:1.4.2.1 Sun Aug 21 13:16:54 2005 +++ xoops2jp/html/modules/news/admin/storyform.inc.php Thu Aug 25 12:18:25 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/docs/INSTALL.ja.html diff -u xoops2jp/docs/INSTALL.ja.html:1.2 xoops2jp/docs/INSTALL.ja.html:1.2.2.1 --- xoops2jp/docs/INSTALL.ja.html:1.2 Sat Jun 11 11:32:36 2005 +++ xoops2jp/docs/INSTALL.ja.html Thu Aug 25 12:22:42 2005 @@ -1,254 +1,254 @@ - - - -Xoopsインストールガイド - - - - - - - -
-

XOOPSのインストール方法

-
-
-

はじめてのインストール

-

-

はじめに

-

-XOOPSのインストールを始める前に、サーバ上で稼動・運用するソフトウエアのインストールや管理についての知識を習得されるよう、おすすめします。 -人生と同じで、簡単な方法や答えはありません。 -XOOPSはサーバベースのソフトウエアで、皆さんがよくご存知のデスクトップアプリケーションほど簡単にはインストールできませんので、 -以下で示すソフトウエアのインストールや設定を習得してください。 -この機会にCGIスクリプトや、HTTPサーバの設定に詳しくなってしまいましょう。 -私たちに寄せられる質問の80%は、サーバ設定の間違いや、サーバソフトウエア同士の通信衝突に原因があります。 -どんなサーバでも、まったく同じように構成されているものは1つもなく、 -自分の環境に合わせて適切に構成しなければなりません。 -

- -

-はじめてXOOPSをインストールする場合、 -少なくとも以下のソフトウエアをサーバコンピュータにインストールしておく必要があります。 -

-
-* HTTPサーバ (Apache または IIS) 注:XOOPS公式サポートHTTPサーバはApache
-* PHP 4.0.5 以上 (4.1.1 以上を推奨)
-* MySQL データベース 3.23.XX
-
- -

インストールを始める前に次の準備をしてください

-
-* HTTPサーバ、PHP、データベースサーバを適切にセットアップする。
-* XOOPSをインストールするデータベースを作成する。
-
-(もし、作成する権限がない場合は、サーバ管理者かサーバホスティング会社に依頼してください。)
-
-* 上記のデータベースにアクセスできる、データベースサーバのユーザアカウントを準備する。
-* XOOPSのファイルをサーバにアップロードし、「uploads/」、「cache/」、「templates_c/」ディレクトリ、 -および「mainfile.php」ファイルのパーミッションをPHPから書き込み可能に設定する。 -
-* ブラウザのクッキーとJavaScriptを有効にする。
-
-
- -

ローカル環境へのインストール

-

-開発作業やテストのためにXOOPSをローカル環境で実行させる場合には、 -これまでに述べた通りにサーバソフトウエアとその設定が準備できているか確認してください。 -次に、XOOPSのパッケージに含まれる「html」ディレクトリのすべてのディレクトリやファイルを、 -コンピュータのドキュメントルート以下にコピーします。 - コピー後、ブラウザのアドレスに「http://あなたのURL」(または「http://127.0.0.1」)と入力すると、 -自動的にインストールウィザードが開始されます。 -

- -

インターネット上のサーバへのインストール

-

-インターネットに接続されたサーバにインストールするには、まずXOOPSファイルをローカルな自分のコンピュータで解凍します。 -もし、サーバへのtelnetかSSHアクセスを許可されているなら、サーバで解凍してもかまいません。 -解凍が済んだらXOOPSの「html」内にあるすべてのディレクトリやファイルを、 -ホストコンピュータのドキュメントルートに(FTPを使って、または、telnetかSSHを使って)コピー・移動します。 -(もし、ドキュメントルートがわからない場合は、サーバ管理者か、利用しているサーバホスティング会社に問い合わせてください)。 -転送後、ブラウザのアドレスに「http://あなたのサイトのURL」と入力すると、インストールウィザードが開始されます。 -(このとき、必ず最終的にユーザがアクセスするURLでアクセスしてください。 -IPアドレス等でアクセスするとうまくいきません。 -

- -

インストール ステップ・バイ・ステップ

-

-これまでに述べた通りに作業すると、インストールウィザード画面が表示されます。 -最初のウィザード画面ではインストーラの言語表示の種類を選択します。 -日本語表示にするには、リストボックスから「japanese」を選択して、「Next」ボタンをクリックします。 -

-img2.gif -

- -

-「XOOPS 2.0 インストールウィザードへようこそ」画面が表示されますので、内容をよく読み「次へ」ボタンをクリックして進みます。 -(特に準備をもう一度よく読んで、インストールの準備ができているかどうか確認してください。) -

-img3.gif -

- -

-次のウィザード画面には、パーミッションが正しく設定されているかどうかの確認結果が表示されます。 -先頭に緑色の信号が付いたディレクトリとファイルは、パーミッションが正しく設定されているものです。 -先頭に赤色の信号が付いたものはパーミッションが正しく設定されていないので、 -パーミッションをPHPから書き込み可能へ設定し直してください。 -(よく分からない場合、通常chmod 777として問題ありません。) -Win32環境でインストールを実行している場合には通常パーミッションを設定する必要はありませんので、 -すべてのディレクトリとファイルに緑色の信号が表示されるはずです。 -Unix環境でインストールを実行している場合には、各ディレクトリとファイルに正しいパーミッションを設定する必要があります。 -画面のようにすべてが緑色の信号で表示されたら、「次へ」ボタンをクリックして進みます。
-
-img4.gif -

- -

-次のウィザード画面には、XOOPSをインストールするディレクトリやブラウザでアクセスするためのURLなど、 -「データベース、およびパス・URLの設定」の入力フォームが表示されます。 -

-「データベースサーバ」には、使用するデータベースサーバの種類を指定します。 -

-「データベースサーバのホスト名」には、データベースサーバのホスト名を入力します。 -ほとんどの場合、localhostという名前ですが、 -必ずサイト管理者やサーバのホスティング会社に問い合わせて、正しいデータベースホスト名を入力します。 -

-「データベースユーザ名」と「データベースパスワード」には、 -XOOPSがデータベースに接続する際に使用するユーザ名とパスワードを入力します。 -(テスト用のローカル環境以外では、セキュリティー上rootユーザとすべきではありません。 -また、ホスティングサービスを利用の場合は、ホスティング会社からあなたが使用できるユーザ名が知らされているはずです。) -
-「データベース名」には、XOOPSで使うデータベースの名前を入力します。 -上記のデータベースユーザは、このデータベースのアクセス・操作権限を持つ必要があります。 -ホスティングサービスを利用の場合は、ホスティング会社から使用できるデータベース名が指定されている場合があります。 -

-「テーブル接頭語」にはXOOPSが使うテーブル名の先頭に付ける接頭語を入力します。 -テーブル接頭語は、ほかのソフトウエアが使用するテーブル名との重複をさけるためのものです。 -あまり長いものにしないようにすることが望ましいです。 -

-「データベースへ持続的接続」は、よく分からない場合は、初期設定のまま「いいえ」を選択します。 -

-「XOOPSへのパス」には、ホストコンピュータにおける、XOOPSまでのフルパスを入力します。
-「XOOPSへのURL」には、ブラウザでXOOPSにアクセスするためのURLを入力します。
-入力フォームには自動で認識された値が入っていますが、必ず正しいかどうか確認してください。 -不明な場合は、サーバ管理者やホスティング会社に問い合わせて、正しく入力してください。 -また、Windowsではパスの区切り記号に「¥」を使いますが、ここでは「/」を使ってください。 -また、最後へ「.../htdocs/」のように「/」を入力しないでください。 -

-すべての項目を入力したら「次へ」ボタンをクリックして進みます。 -

-img6.gif
-

- -

-次のウィザード画面には、前のフォームで入力した「データベース、およびパス・URLの設定」の内容が一覧形式で表示されます。 -インストールが失敗する原因のほとんどは、設定内容を注意深く確認していないことによるものです。 -もし、間違っていたら「戻る」ボタンをクリックして入力をやり直します。 -一覧が正しければ「次へ」ボタンをクリックして進みます。 -

-img7.gif -

- -

-入力した「データベース、およびパス・URLの設定」の内容がXOOPSの設定ファイル「mainfile.php」に書き込まれ、 -次のウィザード画面に書き込み処理の結果が表示されます。 -先頭に緑色の信号が付いた書き込み処理は正常に実行できています。 -すべてが正常に書き込み処理できたことを確認したら、「次へ」ボタンをクリックして進みます。 -

-img9.gif -

- -

-mainfile.phpに書き込まれたXOOPSディレクトリへのパスとXOOPSへのURLがウィザードによって検証され、 -次のウィザード画面にその検証結果が表示されます。 -先頭に緑色の信号が付いた検証結果は正常なので、「次へ」ボタンをクリックして進みます。 -先頭に赤色の信号が付いた場合は、インストーラが検出したパスとURLが、設定されたものと尾異なっています。 -上記で設定した項目が正しいか確認してください。 -間違っていた場合は、インストールをはじめからやり直してください。 -(サーバの設定によっては、まれに、設定が正しくてもエラーとなる場合があります。その際は、無視して次に進んでください。) -「次へ」ボタンをクリックして進みます。 -

-img10.gif -

- -

-次のウィザード画面には、「データベース、およびパス・URLの設定」でフォームに入力したデータベースの内容が一覧で表示されます。 -設定が正しければ「次へ」ボタンをクリックして進みます。 -間違っている場合は、インストールをはじめからやり直してください。 -img11.gif -

- -

-次のウィザード画面には、データベースへの接続と「データベース、およびパス・URLの設定」で入力したデータベースが存在するかどうかの確認画面が表示されます。 -先頭に青色の信号が付いた確認に問題はありません。 -「次へ」ボタンをクリックして進みます。 -「データベースサーバへ...」の先頭に赤色の信号がある場合は、 -「データベース、およびパス・URLの設定」で入力したデータベースユーザー名・パスワードまたはデータベース名が間違っているか、 -PHP・データベースサーバの設定が間違っています。 -インストールをはじめからやり直してください。
-
-img12.gif -

- -

-データベースにXOOPSのテーブルが作成され、次のウィザード画面に作成結果が一覧表示されます。 -先頭に緑色の付いたテーブルは正常に作成されています。 -先頭に赤色の付いたテーブルは作成に失敗しています。 -すべてのテーブルが正しく作成できていたら、「次へ」ボタンをクリックして進みます。
-
-img13.gif -

- -

-次のウィザード画面には、管理者ユーザを作成するためのフォームが表示されます。 -XOOPSのインストールが完了したら、この管理者ユーザ名でログインし、XOOPSをセットアップします。 -ユーザ名とパスワードは、忘れないようにしてください。 -また、「管理者ユーザー名」「パスワード」とも、半角英数字とし、スペースを含めないことを推奨します。 -フォームのすべてに入力が済んだら「次へ」ボタンをクリックして進みます。 -

-img14.gif -

- -

-XOOPSで使うアイコンや初期データが各テーブルに作成され、次のウィザード画面にその結果が表示されます。 -すべてのデータの作成や書き込みの先頭に緑色の信号が付いていることを確認し、 -「次へ」ボタンをクリックしてインストールを完了します。 -

-img15.gif -

- -

インストール成功!

-

-お疲れさまでした、これでXOOPSのインストール作業はすべて完了しました。 -サイトに貼られた「ここ」リンクをクリックして、インストールしたXOOPSのサイトにアクセスし、この管理者ユーザ名でログインし、洗練されたポータルサイトを構築してください。 -もし、このガイドに従ってもインストールできない場合は XOOPSサイトにあるマニュアル・FAQ で調べたり、 -XOOPS日本語公式サイトのフォーラムで開発チームのメンバーやたくさんのXOOPSユーザーに敬意を払って質問すれば、 -きっとインストールを成功させる方法を見つけられることでしょう。 -

-img16.gif

-

- + + + +Xoopsインストールガイド + + + + + + + +
+

XOOPSのインストール方法

+
+
+

はじめてのインストール

+

+

はじめに

+

+XOOPSのインストールを始める前に、サーバ上で稼動・運用するソフトウエアのインストールや管理についての知識を習得されるよう、おすすめします。 +人生と同じで、簡単な方法や答えはありません。 +XOOPSはサーバベースのソフトウエアで、皆さんがよくご存知のデスクトップアプリケーションほど簡単にはインストールできませんので、 +以下で示すソフトウエアのインストールや設定を習得してください。 +この機会にCGIスクリプトや、HTTPサーバの設定に詳しくなってしまいましょう。 +私たちに寄せられる質問の80%は、サーバ設定の間違いや、サーバソフトウエア同士の通信衝突に原因があります。 +どんなサーバでも、まったく同じように構成されているものは1つもなく、 +自分の環境に合わせて適切に構成しなければなりません。 +

+ +

+はじめてXOOPSをインストールする場合、 +少なくとも以下のソフトウエアをサーバコンピュータにインストールしておく必要があります。 +

+
+* HTTPサーバ (Apache または IIS) 注:XOOPS公式サポートHTTPサーバはApache
+* PHP 4.1.0 以上 (4.1.1 以上を推奨)
+* MySQL データベース 3.23.XX
+
+ +

インストールを始める前に次の準備をしてください

+
+* HTTPサーバ、PHP、データベースサーバを適切にセットアップする。
+* XOOPSをインストールするデータベースを作成する。
+
+(もし、作成する権限がない場合は、サーバ管理者かサーバホスティング会社に依頼してください。)
+
+* 上記のデータベースにアクセスできる、データベースサーバのユーザアカウントを準備する。
+* XOOPSのファイルをサーバにアップロードし、「uploads/」、「cache/」、「templates_c/」ディレクトリ、 +および「mainfile.php」ファイルのパーミッションをPHPから書き込み可能に設定する。 +
+* ブラウザのクッキーとJavaScriptを有効にする。
+
+
+ +

ローカル環境へのインストール

+

+開発作業やテストのためにXOOPSをローカル環境で実行させる場合には、 +これまでに述べた通りにサーバソフトウエアとその設定が準備できているか確認してください。 +次に、XOOPSのパッケージに含まれる「html」ディレクトリのすべてのディレクトリやファイルを、 +コンピュータのドキュメントルート以下にコピーします。 + コピー後、ブラウザのアドレスに「http://あなたのURL」(または「http://127.0.0.1」)と入力すると、 +自動的にインストールウィザードが開始されます。 +

+ +

インターネット上のサーバへのインストール

+

+インターネットに接続されたサーバにインストールするには、まずXOOPSファイルをローカルな自分のコンピュータで解凍します。 +もし、サーバへのtelnetかSSHアクセスを許可されているなら、サーバで解凍してもかまいません。 +解凍が済んだらXOOPSの「html」内にあるすべてのディレクトリやファイルを、 +ホストコンピュータのドキュメントルートに(FTPを使って、または、telnetかSSHを使って)コピー・移動します。 +(もし、ドキュメントルートがわからない場合は、サーバ管理者か、利用しているサーバホスティング会社に問い合わせてください)。 +転送後、ブラウザのアドレスに「http://あなたのサイトのURL」と入力すると、インストールウィザードが開始されます。 +(このとき、必ず最終的にユーザがアクセスするURLでアクセスしてください。 +IPアドレス等でアクセスするとうまくいきません。 +

+ +

インストール ステップ・バイ・ステップ

+

+これまでに述べた通りに作業すると、インストールウィザード画面が表示されます。 +最初のウィザード画面ではインストーラの言語表示の種類を選択します。 +日本語表示にするには、リストボックスから「japanese」を選択して、「Next」ボタンをクリックします。 +

+img2.gif +

+ +

+「XOOPS 2.0 インストールウィザードへようこそ」画面が表示されますので、内容をよく読み「次へ」ボタンをクリックして進みます。 +(特に準備をもう一度よく読んで、インストールの準備ができているかどうか確認してください。) +

+img3.gif +

+ +

+次のウィザード画面には、パーミッションが正しく設定されているかどうかの確認結果が表示されます。 +先頭に緑色の信号が付いたディレクトリとファイルは、パーミッションが正しく設定されているものです。 +先頭に赤色の信号が付いたものはパーミッションが正しく設定されていないので、 +パーミッションをPHPから書き込み可能へ設定し直してください。 +(よく分からない場合、通常chmod 777として問題ありません。) +Win32環境でインストールを実行している場合には通常パーミッションを設定する必要はありませんので、 +すべてのディレクトリとファイルに緑色の信号が表示されるはずです。 +Unix環境でインストールを実行している場合には、各ディレクトリとファイルに正しいパーミッションを設定する必要があります。 +画面のようにすべてが緑色の信号で表示されたら、「次へ」ボタンをクリックして進みます。
+
+img4.gif +

+ +

+次のウィザード画面には、XOOPSをインストールするディレクトリやブラウザでアクセスするためのURLなど、 +「データベース、およびパス・URLの設定」の入力フォームが表示されます。 +

+「データベースサーバ」には、使用するデータベースサーバの種類を指定します。 +

+「データベースサーバのホスト名」には、データベースサーバのホスト名を入力します。 +ほとんどの場合、localhostという名前ですが、 +必ずサイト管理者やサーバのホスティング会社に問い合わせて、正しいデータベースホスト名を入力します。 +

+「データベースユーザ名」と「データベースパスワード」には、 +XOOPSがデータベースに接続する際に使用するユーザ名とパスワードを入力します。 +(テスト用のローカル環境以外では、セキュリティー上rootユーザとすべきではありません。 +また、ホスティングサービスを利用の場合は、ホスティング会社からあなたが使用できるユーザ名が知らされているはずです。) +
+「データベース名」には、XOOPSで使うデータベースの名前を入力します。 +上記のデータベースユーザは、このデータベースのアクセス・操作権限を持つ必要があります。 +ホスティングサービスを利用の場合は、ホスティング会社から使用できるデータベース名が指定されている場合があります。 +

+「テーブル接頭語」にはXOOPSが使うテーブル名の先頭に付ける接頭語を入力します。 +テーブル接頭語は、ほかのソフトウエアが使用するテーブル名との重複をさけるためのものです。 +あまり長いものにしないようにすることが望ましいです。 +

+「データベースへ持続的接続」は、よく分からない場合は、初期設定のまま「いいえ」を選択します。 +

+「XOOPSへのパス」には、ホストコンピュータにおける、XOOPSまでのフルパスを入力します。
+「XOOPSへのURL」には、ブラウザでXOOPSにアクセスするためのURLを入力します。
+入力フォームには自動で認識された値が入っていますが、必ず正しいかどうか確認してください。 +不明な場合は、サーバ管理者やホスティング会社に問い合わせて、正しく入力してください。 +また、Windowsではパスの区切り記号に「¥」を使いますが、ここでは「/」を使ってください。 +また、最後へ「.../htdocs/」のように「/」を入力しないでください。 +

+すべての項目を入力したら「次へ」ボタンをクリックして進みます。 +

+img6.gif
+

+ +

+次のウィザード画面には、前のフォームで入力した「データベース、およびパス・URLの設定」の内容が一覧形式で表示されます。 +インストールが失敗する原因のほとんどは、設定内容を注意深く確認していないことによるものです。 +もし、間違っていたら「戻る」ボタンをクリックして入力をやり直します。 +一覧が正しければ「次へ」ボタンをクリックして進みます。 +

+img7.gif +

+ +

+入力した「データベース、およびパス・URLの設定」の内容がXOOPSの設定ファイル「mainfile.php」に書き込まれ、 +次のウィザード画面に書き込み処理の結果が表示されます。 +先頭に緑色の信号が付いた書き込み処理は正常に実行できています。 +すべてが正常に書き込み処理できたことを確認したら、「次へ」ボタンをクリックして進みます。 +

+img9.gif +

+ +

+mainfile.phpに書き込まれたXOOPSディレクトリへのパスとXOOPSへのURLがウィザードによって検証され、 +次のウィザード画面にその検証結果が表示されます。 +先頭に緑色の信号が付いた検証結果は正常なので、「次へ」ボタンをクリックして進みます。 +先頭に赤色の信号が付いた場合は、インストーラが検出したパスとURLが、設定されたものと尾異なっています。 +上記で設定した項目が正しいか確認してください。 +間違っていた場合は、インストールをはじめからやり直してください。 +(サーバの設定によっては、まれに、設定が正しくてもエラーとなる場合があります。その際は、無視して次に進んでください。) +「次へ」ボタンをクリックして進みます。 +

+img10.gif +

+ +

+次のウィザード画面には、「データベース、およびパス・URLの設定」でフォームに入力したデータベースの内容が一覧で表示されます。 +設定が正しければ「次へ」ボタンをクリックして進みます。 +間違っている場合は、インストールをはじめからやり直してください。 +img11.gif +

+ +

+次のウィザード画面には、データベースへの接続と「データベース、およびパス・URLの設定」で入力したデータベースが存在するかどうかの確認画面が表示されます。 +先頭に青色の信号が付いた確認に問題はありません。 +「次へ」ボタンをクリックして進みます。 +「データベースサーバへ...」の先頭に赤色の信号がある場合は、 +「データベース、およびパス・URLの設定」で入力したデータベースユーザー名・パスワードまたはデータベース名が間違っているか、 +PHP・データベースサーバの設定が間違っています。 +インストールをはじめからやり直してください。
+
+img12.gif +

+ +

+データベースにXOOPSのテーブルが作成され、次のウィザード画面に作成結果が一覧表示されます。 +先頭に緑色の付いたテーブルは正常に作成されています。 +先頭に赤色の付いたテーブルは作成に失敗しています。 +すべてのテーブルが正しく作成できていたら、「次へ」ボタンをクリックして進みます。
+
+img13.gif +

+ +

+次のウィザード画面には、管理者ユーザを作成するためのフォームが表示されます。 +XOOPSのインストールが完了したら、この管理者ユーザ名でログインし、XOOPSをセットアップします。 +ユーザ名とパスワードは、忘れないようにしてください。 +また、「管理者ユーザー名」「パスワード」とも、半角英数字とし、スペースを含めないことを推奨します。 +フォームのすべてに入力が済んだら「次へ」ボタンをクリックして進みます。 +

+img14.gif +

+ +

+XOOPSで使うアイコンや初期データが各テーブルに作成され、次のウィザード画面にその結果が表示されます。 +すべてのデータの作成や書き込みの先頭に緑色の信号が付いていることを確認し、 +「次へ」ボタンをクリックしてインストールを完了します。 +

+img15.gif +

+ +

インストール成功!

+

+お疲れさまでした、これでXOOPSのインストール作業はすべて完了しました。 +サイトに貼られた「ここ」リンクをクリックして、インストールしたXOOPSのサイトにアクセスし、この管理者ユーザ名でログインし、洗練されたポータルサイトを構築してください。 +もし、このガイドに従ってもインストールできない場合は XOOPSサイトにあるマニュアル・FAQ で調べたり、 +XOOPS日本語公式サイトのフォーラムで開発チームのメンバーやたくさんのXOOPSユーザーに敬意を払って質問すれば、 +きっとインストールを成功させる方法を見つけられることでしょう。 +

+img16.gif

+

+ \ No newline at end of file From onokazu @ users.sourceforge.jp Sun Aug 28 14:19:39 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Sun, 28 Aug 2005 14:19:39 +0900 Subject: [xoops-cvslog 379] CVS update: xoops2jp/html/include Message-ID: <20050828051939.4D3E32AC01C@users.sourceforge.jp> Index: xoops2jp/html/include/version.php diff -u xoops2jp/html/include/version.php:1.8 xoops2jp/html/include/version.php:1.8.2.1 --- xoops2jp/html/include/version.php:1.8 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/include/version.php Sun Aug 28 14:19:39 2005 @@ -1,4 +1,4 @@ \ No newline at end of file From nobunobu @ users.sourceforge.jp Sun Aug 28 22:46:13 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 28 Aug 2005 22:46:13 +0900 Subject: [xoops-cvslog 380] CVS update: xoops2jp/html/modules/system/admin/users Message-ID: <20050828134613.F1DC52AC024@users.sourceforge.jp> Index: xoops2jp/html/modules/system/admin/users/main.php diff -u xoops2jp/html/modules/system/admin/users/main.php:1.5 xoops2jp/html/modules/system/admin/users/main.php:1.5.2.1 --- xoops2jp/html/modules/system/admin/users/main.php:1.5 Wed Aug 3 21:40:00 2005 +++ xoops2jp/html/modules/system/admin/users/main.php Sun Aug 28 22:46:13 2005 @@ -1,5 +1,5 @@ getUser($uid); $myts =& MyTextSanitizer::getInstance(); - if ($edituser->getVar('uname') != $username && $member_handler->getUserCount(new Criteria('uname', addslashes($username))) > 0) { + if ($edituser->getVar('uname', 'n') != $username && $member_handler->getUserCount(new Criteria('uname', addslashes($username))) > 0) { xoops_cp_header(); echo 'User name '.htmlspecialchars($username).' already exists'; xoops_cp_footer(); From nobunobu @ users.sourceforge.jp Sun Aug 28 22:48:21 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 28 Aug 2005 22:48:21 +0900 Subject: [xoops-cvslog 381] CVS update: xoops2jp/html/language/english Message-ID: <20050828134821.A743B2AC024@users.sourceforge.jp> Index: xoops2jp/html/language/english/notification.php diff -u xoops2jp/html/language/english/notification.php:1.2 xoops2jp/html/language/english/notification.php:1.2.12.1 --- xoops2jp/html/language/english/notification.php:1.2 Fri Mar 18 21:52:14 2005 +++ xoops2jp/html/language/english/notification.php Sun Aug 28 22:48:21 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/language/japanese/notification.php diff -u xoops2jp/html/language/japanese/notification.php:1.4 xoops2jp/html/language/japanese/notification.php:1.4.2.1 --- xoops2jp/html/language/japanese/notification.php:1.4 Wed Aug 3 21:39:12 2005 +++ xoops2jp/html/language/japanese/notification.php Sun Aug 28 22:48:21 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/notifications.php diff -u xoops2jp/html/notifications.php:1.2 xoops2jp/html/notifications.php:1.2.12.1 --- xoops2jp/html/notifications.php:1.2 Fri Mar 18 21:51:55 2005 +++ xoops2jp/html/notifications.php Sun Aug 28 22:48:21 2005 @@ -1,5 +1,5 @@ getVar('uid'); @@ -38,29 +38,29 @@ $op = 'list'; if (isset($_POST['op'])) { - $op = trim($_POST['op']); + $op = trim($_POST['op']); } elseif (isset($_GET['op'])) { - $op = trim($_GET['op']); + $op = trim($_GET['op']); } if (isset($_POST['delete'])) { - $op = 'delete'; + $op = 'delete'; } elseif (isset($_GET['delete'])) { - $op = 'delete'; + $op = 'delete'; } if (isset($_POST['delete_ok'])) { - $op = 'delete_ok'; + $op = 'delete_ok'; } if (isset($_POST['delete_cancel'])) { - $op = 'cancel'; + $op = 'cancel'; } switch ($op) { case 'cancel': - // FIXME: does this always go back to correct location?? - redirect_header ('index.php'); - break; + // FIXME: does this always go back to correct location?? + redirect_header ('index.php'); + break; case 'list': @@ -70,89 +70,89 @@ // TODO: need to span over multiple pages...??? - // Get an array of all notifications for the selected user + // Get an array of all notifications for the selected user - $criteria = new Criteria ('not_uid', $uid); - $criteria->setSort ('not_modid,not_category,not_itemid'); - $notification_handler =& xoops_gethandler('notification'); - $notifications =& $notification_handler->getObjects($criteria); - - // Generate the info for the template - - $module_handler =& xoops_gethandler('module'); - include_once XOOPS_ROOT_PATH . '/include/notification_functions.php'; - - $modules = array(); - $prev_modid = -1; - $prev_category = -1; - $prev_item = -1; - foreach ($notifications as $n) { - $modid = $n->getVar('not_modid'); - if ($modid != $prev_modid) { - $prev_modid = $modid; - $prev_category = -1; - $prev_item = -1; - $module =& $module_handler->get($modid); - $modules[$modid] = array ('id'=>$modid, 'name'=>$module->getVar('name'), 'categories'=>array()); - // TODO: note, we could auto-generate the url from the id - // and category info... (except when category has multiple - // subscription scripts defined...) - // OR, add one more option to xoops_version 'view_from' - // which tells us where to redirect... BUT, e.g. forums, it - // still wouldn't give us all the required info... e.g. the - // topic ID doesn't give us the ID of the forum which is - // a required argument... - - // Get the lookup function, if exists - $not_config = $module->getInfo('notification'); - $lookup_func = ''; - if (!empty($not_config['lookup_file'])) { - $lookup_file = XOOPS_ROOT_PATH . '/modules/' . $module->getVar('dirname') . '/' . $not_config['lookup_file']; - if (file_exists($lookup_file)) { - include_once $lookup_file; - if (!empty($not_config['lookup_func']) && function_exists($not_config['lookup_func'])) { - $lookup_func = $not_config['lookup_func']; - } - } - } - } - $category = $n->getVar('not_category'); - if ($category != $prev_category) { - $prev_category = $category; - $prev_item = -1; - $category_info =& notificationCategoryInfo($category, $modid); - $modules[$modid]['categories'][$category] = array ('name'=>$category, 'title'=>$category_info['title'], 'items'=>array()); - } - $item = $n->getVar('not_itemid'); - if ($item != $prev_item) { - $prev_item = $item; - if (!empty($lookup_func)) { - $item_info = $lookup_func($category, $item); - } else { - $item_info = array ('name'=>'['._NOT_NAMENOTAVAILABLE.']', 'url'=>''); - } - $modules[$modid]['categories'][$category]['items'][$item] = array ('id'=>$item, 'name'=>$item_info['name'], 'url'=>$item_info['url'], 'notifications'=>array()); - } - $event_info =& notificationEventInfo($category, $n->getVar('not_event'), $n->getVar('not_modid')); - $modules[$modid]['categories'][$category]['items'][$item]['notifications'][] = array ('id'=>$n->getVar('not_id'), 'module_id'=>$n->getVar('not_modid'), 'category'=>$n->getVar('not_category'), 'category_title'=>$category_info['title'], 'item_id'=>$n->getVar('not_itemid'), 'event'=>$n->getVar('not_event'), 'event_title'=>$event_info['title'], 'user_id'=>$n->getVar('not_uid')); - } - $xoopsOption['template_main'] = 'system_notification_list.html'; - include XOOPS_ROOT_PATH.'/header.php'; - $xoopsTpl->assign ('modules', $modules); - $user_info = array ('uid' => $xoopsUser->getVar('uid')); - $xoopsTpl->assign ('user', $user_info); - $xoopsTpl->assign ('lang_cancel', _CANCEL); - $xoopsTpl->assign ('lang_clear', _NOT_CLEAR); - $xoopsTpl->assign ('lang_delete', _DELETE); - $xoopsTpl->assign ('lang_checkall', _NOT_CHECKALL); - $xoopsTpl->assign ('lang_module', _NOT_MODULE); - $xoopsTpl->assign ('lang_event', _NOT_EVENT); - $xoopsTpl->assign ('lang_events', _NOT_EVENTS); - $xoopsTpl->assign ('lang_category', _NOT_CATEGORY); - $xoopsTpl->assign ('lang_itemid', _NOT_ITEMID); - $xoopsTpl->assign ('lang_itemname', _NOT_ITEMNAME); - $xoopsTpl->assign ('lang_activenotifications', _NOT_ACTIVENOTIFICATIONS); - include XOOPS_ROOT_PATH.'/footer.php'; + $criteria = new Criteria ('not_uid', $uid); + $criteria->setSort ('not_modid,not_category,not_itemid'); + $notification_handler =& xoops_gethandler('notification'); + $notifications =& $notification_handler->getObjects($criteria); + + // Generate the info for the template + + $module_handler =& xoops_gethandler('module'); + include_once XOOPS_ROOT_PATH . '/include/notification_functions.php'; + + $modules = array(); + $prev_modid = -1; + $prev_category = -1; + $prev_item = -1; + foreach ($notifications as $n) { + $modid = $n->getVar('not_modid'); + if ($modid != $prev_modid) { + $prev_modid = $modid; + $prev_category = -1; + $prev_item = -1; + $module =& $module_handler->get($modid); + $modules[$modid] = array ('id'=>$modid, 'name'=>$module->getVar('name'), 'categories'=>array()); + // TODO: note, we could auto-generate the url from the id + // and category info... (except when category has multiple + // subscription scripts defined...) + // OR, add one more option to xoops_version 'view_from' + // which tells us where to redirect... BUT, e.g. forums, it + // still wouldn't give us all the required info... e.g. the + // topic ID doesn't give us the ID of the forum which is + // a required argument... + + // Get the lookup function, if exists + $not_config = $module->getInfo('notification'); + $lookup_func = ''; + if (!empty($not_config['lookup_file'])) { + $lookup_file = XOOPS_ROOT_PATH . '/modules/' . $module->getVar('dirname') . '/' . $not_config['lookup_file']; + if (file_exists($lookup_file)) { + include_once $lookup_file; + if (!empty($not_config['lookup_func']) && function_exists($not_config['lookup_func'])) { + $lookup_func = $not_config['lookup_func']; + } + } + } + } + $category = $n->getVar('not_category'); + if ($category != $prev_category) { + $prev_category = $category; + $prev_item = -1; + $category_info =& notificationCategoryInfo($category, $modid); + $modules[$modid]['categories'][$category] = array ('name'=>$category, 'title'=>$category_info['title'], 'items'=>array()); + } + $item = $n->getVar('not_itemid'); + if ($item != $prev_item) { + $prev_item = $item; + if (!empty($lookup_func)) { + $item_info = $lookup_func($category, $item); + } else { + $item_info = array ('name'=>'['._NOT_NAMENOTAVAILABLE.']', 'url'=>''); + } + $modules[$modid]['categories'][$category]['items'][$item] = array ('id'=>$item, 'name'=>$item_info['name'], 'url'=>$item_info['url'], 'notifications'=>array()); + } + $event_info =& notificationEventInfo($category, $n->getVar('not_event'), $n->getVar('not_modid')); + $modules[$modid]['categories'][$category]['items'][$item]['notifications'][] = array ('id'=>$n->getVar('not_id'), 'module_id'=>$n->getVar('not_modid'), 'category'=>$n->getVar('not_category'), 'category_title'=>$category_info['title'], 'item_id'=>$n->getVar('not_itemid'), 'event'=>$n->getVar('not_event'), 'event_title'=>$event_info['title'], 'user_id'=>$n->getVar('not_uid')); + } + $xoopsOption['template_main'] = 'system_notification_list.html'; + include XOOPS_ROOT_PATH.'/header.php'; + $xoopsTpl->assign ('modules', $modules); + $user_info = array ('uid' => $xoopsUser->getVar('uid')); + $xoopsTpl->assign ('user', $user_info); + $xoopsTpl->assign ('lang_cancel', _CANCEL); + $xoopsTpl->assign ('lang_clear', _NOT_CLEAR); + $xoopsTpl->assign ('lang_delete', _DELETE); + $xoopsTpl->assign ('lang_checkall', _NOT_CHECKALL); + $xoopsTpl->assign ('lang_module', _NOT_MODULE); + $xoopsTpl->assign ('lang_event', _NOT_EVENT); + $xoopsTpl->assign ('lang_events', _NOT_EVENTS); + $xoopsTpl->assign ('lang_category', _NOT_CATEGORY); + $xoopsTpl->assign ('lang_itemid', _NOT_ITEMID); + $xoopsTpl->assign ('lang_itemname', _NOT_ITEMNAME); + $xoopsTpl->assign ('lang_activenotifications', _NOT_ACTIVENOTIFICATIONS); + include XOOPS_ROOT_PATH.'/footer.php'; // TODO: another display mode... instead of one notification per line, // show one line per item_id, with checkboxes for the available options... @@ -171,42 +171,52 @@ break; -//case 'delete': -case 'delete_ok': - - if (empty($_POST['del_not'])) { - redirect_header('notifications.php', 2, _NOT_NOTHINGTODELETE); - } - include XOOPS_ROOT_PATH.'/header.php'; - $hidden_vars = array('uid'=>$uid, 'delete_ok'=>1, 'del_not'=>$_POST['del_not']); - print '

'._NOT_DELETINGNOTIFICATIONS.'

'; - xoops_confirm($hidden_vars, xoops_getenv('PHP_SELF'), _NOT_RUSUREDEL); - include XOOPS_ROOT_PATH.'/footer.php'; - -// FIXME: There is a problem here... in xoops_confirm it treats arrays as -// optional radio arguments on the confirmation page... change this or -// write new function... - - break; - -//case 'delete_ok': case 'delete': - if (empty($_POST['del_not'])) { - redirect_header('notifications.php', 2, _NOT_NOTHINGTODELETE); - } - $notification_handler =& xoops_gethandler('notification'); - foreach ($_POST['del_not'] as $n_array) { - foreach ($n_array as $n) { - $notification =& $notification_handler->get($n); - if ($notification->getVar('not_uid') == $uid) { - $notification_handler->delete($notification); - } - } - } - redirect_header('notifications.php', 2, _NOT_DELETESUCCESS); - break; + if (empty($_POST['del_not'])||!is_array($_POST['del_not'])) { + redirect_header('notifications.php', 2, _NOT_NOTHINGTODELETE); + } + $del_notifications = array(); + foreach($_POST['del_not'] as $not_modid => $not_ids) { + if (!is_array($not_ids)) { + redirect_header('notifications.php', 2, _NOT_NOTHINGTODELETE); + } + foreach ($not_ids as $not_id) { + $del_notifications[] = intval($not_modid).'|'.intval($not_id); + } + } + $del_not = implode(',', $del_notifications); + include XOOPS_ROOT_PATH.'/header.php'; + $hidden_vars = array('delete_ok'=>1, 'del_not'=>$del_not); + print '

'._NOT_DELETINGNOTIFICATIONS.'

'; + xoops_confirm($hidden_vars, xoops_getenv('PHP_SELF'), _NOT_RUSUREDEL); + include XOOPS_ROOT_PATH.'/footer.php'; + break; + +case 'delete_ok': + if(!xoops_confirm_validate()) { + redirect_header('notifications.php',2,'Ticket Error'); + } + if (empty($_POST['del_not'])) { + redirect_header('notifications.php', 2, _NOT_NOTHINGTODELETE); + } + $del_notifications = explode(',', $_POST['del_not']); + if (!is_array($del_notifications) || count($del_notifications)==0) { + redirect_header('notifications.php', 2, _NOT_NOTHINGTODELETE); + } + $notification_handler =& xoops_gethandler('notification'); + foreach ($del_notifications as $del_notification) { + $del_notification_items = explode('|',$del_notification); + if (is_array($del_notification_items) && (count($del_notification_items)==2) && !empty($del_notification_items[0]) && !empty($del_notification_items[1])) { + $notification =& $notification_handler->get(intval($del_notification_items[1])); + if (!empty($notification) && ($notification->getVar('not_uid') == $uid) && ($notification->getVar('not_modid') == intval($del_notification_items[0]))) { + $notification_handler->delete($notification); + } + } + } + redirect_header('notifications.php', 2, _NOT_DELETESUCCESS); + break; default: - break; + break; } ?> From nobunobu @ users.sourceforge.jp Sun Aug 28 22:49:35 2005 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 28 Aug 2005 22:49:35 +0900 Subject: [xoops-cvslog 384] CVS update: xoops2jp/html/modules/system/templates Message-ID: <20050828134935.33AEF2AC024@users.sourceforge.jp> Index: xoops2jp/html/modules/system/templates/system_notification_list.html diff -u xoops2jp/html/modules/system/templates/system_notification_list.html:1.1 xoops2jp/html/modules/system/templates/system_notification_list.html:1.1.12.1 --- xoops2jp/html/modules/system/templates/system_notification_list.html:1.1 Thu Sep 9 19:03:23 2004 +++ xoops2jp/html/modules/system/templates/system_notification_list.html Sun Aug 28 22:49:35 2005 @@ -2,7 +2,7 @@
- + @@ -10,7 +10,7 @@ <{foreach item=module from=$modules}> - + <{foreach item=category from=$module.categories}> From onokazu @ users.sourceforge.jp Wed Aug 31 05:21:54 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Wed, 31 Aug 2005 05:21:54 +0900 Subject: [xoops-cvslog 385] CVS update: xoops2jp/html Message-ID: <20050830202154.3220F2AC031@users.sourceforge.jp> Index: xoops2jp/html/misc.php diff -u xoops2jp/html/misc.php:1.4.2.1 xoops2jp/html/misc.php:1.4.2.2 --- xoops2jp/html/misc.php:1.4.2.1 Thu Aug 25 12:15:31 2005 +++ xoops2jp/html/misc.php Wed Aug 31 05:21:54 2005 @@ -1,5 +1,5 @@
<{$lang_event}> <{$lang_category}> <{$lang_itemid}>
<{$lang_module}>: <{$module.name}>
'; break; case "friend": + if (!is_object($xoopsUser)) { + break; + } if ( !isset($_POST['op']) || $_POST['op'] == "sendform" ) { $token=&XoopsMultiTokenHandler::quickCreate('misc_sendform'); - if (is_object($xoopsUser)) { - $yname = $xoopsUser->getVar("uname", 'e'); - $ymail = $xoopsUser->getVar("email", 'e'); - $fname = ""; - $fmail = ""; - } else { - $yname = ""; - $ymail = ""; - $fname = ""; - $fmail = ""; - } + $yname = $xoopsUser->getVar("uname", 'e'); + $ymail = $xoopsUser->getVar("email", 'e'); + $fname = ""; + $fmail = ""; printCheckForm(); echo '
'; @@ -135,11 +131,7 @@ exit(); } $myts =& MyTextsanitizer::getInstance(); - if (is_object($xoopsUser)) { - $ymail = $xoopsUser->getVar("email"); - } else { - $ymail = isset($_POST['ymail']) ? $myts->stripSlashesGPC(trim($_POST['ymail'])) : ''; - } + $ymail = $xoopsUser->getVar("email"); if ( !isset($_POST['yname']) || trim($_POST['yname']) == "" || $ymail == '' || !isset($_POST['fname']) || trim($_POST['fname']) == "" || !isset($_POST['fmail']) || trim($_POST['fmail']) == '' ) { redirect_header(XOOPS_URL."/misc.php?action=showpopups&type=friend&op=sendform",2,_MSC_NEEDINFO); exit(); From onokazu @ users.sourceforge.jp Wed Aug 31 05:21:54 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Wed, 31 Aug 2005 05:21:54 +0900 Subject: [xoops-cvslog 386] CVS update: xoops2jp/html/modules/system/blocks Message-ID: <20050830202154.5A2C32AC037@users.sourceforge.jp> Index: xoops2jp/html/modules/system/blocks/system_blocks.php diff -u xoops2jp/html/modules/system/blocks/system_blocks.php:1.5.2.1 xoops2jp/html/modules/system/blocks/system_blocks.php:1.5.2.2 --- xoops2jp/html/modules/system/blocks/system_blocks.php:1.5.2.1 Thu Aug 25 12:18:15 2005 +++ xoops2jp/html/modules/system/blocks/system_blocks.php Wed Aug 31 05:21:54 2005 @@ -1,5 +1,5 @@ "._MB_SYSTEM_RECO.""; + if (is_object($xoopsUser)) { + $block['recommendlink'] = ""._MB_SYSTEM_RECO.""; + } else { + $block['recommendlink'] = ''; + } return $block; } From onokazu @ users.sourceforge.jp Wed Aug 31 05:51:02 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Wed, 31 Aug 2005 05:51:02 +0900 Subject: [xoops-cvslog 387] CVS update: xoops2jp/html/modules/news/language/japanese/mail_template Message-ID: <20050830205102.817242AC015@users.sourceforge.jp> Index: xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl diff -u /dev/null xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl:1.3.2.1 --- /dev/null Wed Aug 31 05:51:02 2005 +++ xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl Wed Aug 31 05:51:02 2005 @@ -0,0 +1,21 @@ +{X_UNAME}さん、こんにちは + +{X_SITENAME}にて下記ニュース記事が承認されました。 + +記事タイトル: {STORY_NAME} + +このニュース記事を読むには下記URLにアクセスしてください: +{STORY_URL} + +----------- + +このメールはXOOPSの自動通知機能によって送信されています + +自動通知を停止したい場合は下記のURLにアクセスしてください: +{X_UNSUBSCRIBE_URL} + +----------- +{X_SITENAME} ({X_SITEURL}) +管理人 +{X_ADMINMAIL} +----------- \ No newline at end of file Index: xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl000644 diff -u xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl000644:1.3 xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl000644:removed --- xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl000644:1.3 Wed Aug 3 21:40:04 2005 +++ xoops2jp/html/modules/news/language/japanese/mail_template/story_approve_notify.tpl000644 Wed Aug 31 05:51:02 2005 @@ -1,21 +0,0 @@ -{X_UNAME}さん、こんにちは - -{X_SITENAME}にて下記ニュース記事が承認されました。 - -記事タイトル: {STORY_NAME} - -このニュース記事を読むには下記URLにアクセスしてください: -{STORY_URL} - ------------ - -このメールはXOOPSの自動通知機能によって送信されています - -自動通知を停止したい場合は下記のURLにアクセスしてください: -{X_UNSUBSCRIBE_URL} - ------------ -{X_SITENAME} ({X_SITEURL}) -管理人 -{X_ADMINMAIL} ------------ \ No newline at end of file From onokazu @ users.sourceforge.jp Wed Aug 31 06:41:55 2005 From: onokazu @ users.sourceforge.jp (onokazu) Date: Wed, 31 Aug 2005 06:41:55 +0900 Subject: [xoops-cvslog 388] CVS update: xoops2jp/docs Message-ID: <20050830214155.D73192AC015@users.sourceforge.jp> Index: xoops2jp/docs/CHANGES.txt diff -u xoops2jp/docs/CHANGES.txt:1.6 xoops2jp/docs/CHANGES.txt:1.6.2.1 --- xoops2jp/docs/CHANGES.txt:1.6 Wed Aug 3 21:39:10 2005 +++ xoops2jp/docs/CHANGES.txt Wed Aug 31 06:41:55 2005 @@ -1,6 +1,22 @@ XOOPS v2 Changelog ============================ +2005/ 8/31: Version 2.0.12 JP Beta +=============================== +- Changed $HTTP_XXX_VARS to $_XXX +- Limit send to friend feature in siteinfo block to registered users only +- Fixed bug in duplicate user name checking +- Added sanitization to PHP_SELF variable +- Fixed invalid usages of HTML +- Fixed some bugs sending japanese mails +- Fixed regex bug in module.textsanitizer.php + + +2005/ 8/14: Version 2.0.11.1 JP +=============================== +- Fixed full path disclosure vulnerability in several files + + 2005/ 7/31: Version 2.0.11 JP =============================== - Fixed infinite refresh of page in visit.php of mydownloads/mylinks
'._MSC_RECOMMENDSITE.'