From minahito @ users.sourceforge.jp Sun Oct 1 18:46:20 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 1 Oct 2006 18:46:20 +0900 Subject: [xoops-cvslog 4708] CVS update: xoops2jp/html/class Message-ID: <20061001094620.0B5052AC029@users.sourceforge.jp> Index: xoops2jp/html/class/XCube_ActionForm.class.php diff -u xoops2jp/html/class/XCube_ActionForm.class.php:1.1.2.36 xoops2jp/html/class/XCube_ActionForm.class.php:1.1.2.37 --- xoops2jp/html/class/XCube_ActionForm.class.php:1.1.2.36 Wed Jul 26 19:50:06 2006 +++ xoops2jp/html/class/XCube_ActionForm.class.php Sun Oct 1 18:46:19 2006 @@ -1,7 +1,7 @@ Index: xoops2jp/html/class/XCube_Validator.class.php diff -u xoops2jp/html/class/XCube_Validator.class.php:1.1.2.1 xoops2jp/html/class/XCube_Validator.class.php:1.1.2.2 --- xoops2jp/html/class/XCube_Validator.class.php:1.1.2.1 Fri Jan 27 17:01:51 2006 +++ xoops2jp/html/class/XCube_Validator.class.php Sun Oct 1 18:46:35 2006 @@ -127,17 +127,17 @@ return true; } else { - if (!is_a($form, "XCube_XCube_FileProperty")) { + if (!is_a($form, "XCube_FileProperty")) { return true; } $extArr = explode(",", $vars['extension']); foreach ($extArr as $ext) { - if (strtolower($from->mValue->getExtension()) == strtolower($ext)) { + if (strtolower($form->mValue->getExtension()) == strtolower($ext)) { return true; } } - + return false; } } @@ -151,7 +151,7 @@ return true; } else { - if (!is_a($form, "XCube_XCube_FileProperty")) { + if (!is_a($form, "XCube_FileProperty")) { return true; } From minahito @ users.sourceforge.jp Sun Oct 1 18:47:04 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 1 Oct 2006 18:47:04 +0900 Subject: [xoops-cvslog 4710] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20061001094704.D17902AC029@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/forms/SmilesAdminEditForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/SmilesAdminEditForm.class.php:1.1.2.4 xoops2jp/html/modules/base/admin/forms/SmilesAdminEditForm.class.php:1.1.2.5 --- xoops2jp/html/modules/base/admin/forms/SmilesAdminEditForm.class.php:1.1.2.4 Fri Aug 18 20:30:01 2006 +++ xoops2jp/html/modules/base/admin/forms/SmilesAdminEditForm.class.php Sun Oct 1 18:47:04 2006 @@ -1,7 +1,7 @@ _mIsNew && $this->get('smile_url') == null) { - $this->addErrorMessage(_AD_BASE_ERROR_SMILE_URL_REQUIED); + $this->addErrorMessage(XCube_Utils::formatMessage(_MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_SMILE_URL)); } } From minahito @ users.sourceforge.jp Sun Oct 1 18:47:39 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 1 Oct 2006 18:47:39 +0900 Subject: [xoops-cvslog 4711] CVS update: xoops2jp/html/modules/base/forms Message-ID: <20061001094739.1241A2AC0BC@users.sourceforge.jp> Index: xoops2jp/html/modules/base/forms/ImageUploadForm.class.php diff -u xoops2jp/html/modules/base/forms/ImageUploadForm.class.php:1.1.2.3 xoops2jp/html/modules/base/forms/ImageUploadForm.class.php:1.1.2.4 --- xoops2jp/html/modules/base/forms/ImageUploadForm.class.php:1.1.2.3 Fri Aug 18 20:28:48 2006 +++ xoops2jp/html/modules/base/forms/ImageUploadForm.class.php Sun Oct 1 18:47:38 2006 @@ -30,8 +30,6 @@ // $this->mFieldProperties['image_name'] =& new XCube_FieldProperty($this); $this->mFieldProperties['image_name']->setDependsByArray(array('extension')); - $this->mFieldProperties['image_name']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMAGE_NAME); - $this->mFieldProperties['image_name']->addMessage('maxlength', _AD_BASE_ERROR_EXTENSION, _AD_BASE_LANG_IMAGE_NAME); $this->mFieldProperties['image_name']->addVar('extension', 'jpg,gif,png'); $this->mFieldProperties['image_nicename'] =& new XCube_FieldProperty($this); From minahito @ users.sourceforge.jp Sun Oct 1 18:48:30 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 1 Oct 2006 18:48:30 +0900 Subject: [xoops-cvslog 4712] CVS update: xoops2jp/html/modules/stdCache/blocks Message-ID: <20061001094830.227822AC029@users.sourceforge.jp> Index: xoops2jp/html/modules/stdCache/blocks/cacheclear.php diff -u xoops2jp/html/modules/stdCache/blocks/cacheclear.php:1.1.2.1 xoops2jp/html/modules/stdCache/blocks/cacheclear.php:1.1.2.2 --- xoops2jp/html/modules/stdCache/blocks/cacheclear.php:1.1.2.1 Fri Jan 6 12:04:26 2006 +++ xoops2jp/html/modules/stdCache/blocks/cacheclear.php Sun Oct 1 18:48:30 2006 @@ -3,11 +3,11 @@ function Stdcache_cacheclear_show() { $root =& XCube_Root::getSingleton(); - $cache =& $root->getCacheSystem(); - if (!$cache->enableCache()) { + + if (!$root->mController->isEnableCacheFeature()) { return false; } - + if($handler = opendir(XOOPS_CACHE_PATH)) { while(($file = readdir($handler)) !== false) { if(preg_match("/\w+\.cache\.html$/", $file, $matches)) { From minahito @ users.sourceforge.jp Sun Oct 1 18:48:41 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 1 Oct 2006 18:48:41 +0900 Subject: [xoops-cvslog 4713] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20061001094841.8307D2AC029@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/UserInfoAction.class.php diff -u xoops2jp/html/modules/user/actions/UserInfoAction.class.php:1.1.2.9 xoops2jp/html/modules/user/actions/UserInfoAction.class.php:1.1.2.10 --- xoops2jp/html/modules/user/actions/UserInfoAction.class.php:1.1.2.9 Thu Sep 14 17:17:39 2006 +++ xoops2jp/html/modules/user/actions/UserInfoAction.class.php Sun Oct 1 18:48:41 2006 @@ -1,7 +1,7 @@ setAttribute("rank", $this->mRankObject); $myts =& MyTextSanitizer::getInstance(); - $userSignature = $myts->makeTareaData4Show($this->mObject->get('user_sig'), 0, 1, 1); - - $render->setAttribute('user_signature', $userSignature); $render->setAttribute("searchResults", $this->mSearchResults); From minahito @ users.sourceforge.jp Sun Oct 1 18:48:47 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 1 Oct 2006 18:48:47 +0900 Subject: [xoops-cvslog 4714] CVS update: xoops2jp/html/modules/user/templates Message-ID: <20061001094847.C48802AC029@users.sourceforge.jp> Index: xoops2jp/html/modules/user/templates/user_userinfo.html diff -u xoops2jp/html/modules/user/templates/user_userinfo.html:1.1.2.16 xoops2jp/html/modules/user/templates/user_userinfo.html:1.1.2.17 --- xoops2jp/html/modules/user/templates/user_userinfo.html:1.1.2.16 Sun Sep 24 14:25:48 2006 +++ xoops2jp/html/modules/user/templates/user_userinfo.html Sun Oct 1 18:48:47 2006 @@ -131,7 +131,7 @@ <{$smarty.const._MD_USER_LANG_USER_SIG}> - <{$user_signature}> + <{$thisUser->getShow('user_sig')}> From minahito @ users.sourceforge.jp Sun Oct 1 18:49:10 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 1 Oct 2006 18:49:10 +0900 Subject: [xoops-cvslog 4715] CVS update: xoops2jp/html/modules/user/language/english Message-ID: <20061001094910.E1C612AC0BC@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/english/main.php diff -u xoops2jp/html/modules/user/language/english/main.php:1.1.2.22 xoops2jp/html/modules/user/language/english/main.php:1.1.2.23 --- xoops2jp/html/modules/user/language/english/main.php:1.1.2.22 Sun Aug 27 01:44:07 2006 +++ xoops2jp/html/modules/user/language/english/main.php Sun Oct 1 18:49:10 2006 @@ -5,7 +5,7 @@ define('_MD_USER_ERROR_AVATAR_SELECT', "ERROR - Please select valid avatar."); define('_MD_USER_ERROR_AVATAR_SIZE', "Uploaded file exceeds the dimensions limit for avatar."); define('_MD_USER_ERROR_DBUPDATE_FAILED', "Failed updating database"); -define('_MD_USER_ERROR_EMAIL_FORMAT', "{0} is an incorrect email address"); +define('_MD_USER_ERROR_EMAIL', "{0} is an incorrect email address"); define('_MD_USER_ERROR_INJURY', "The specified value {0} is wrong."); define('_MD_USER_ERROR_INVALID_EMAIL', "Invalid email"); define('_MD_USER_ERROR_MAXLENGTH', "Input {0} with {1} or less characters."); From minahito @ users.sourceforge.jp Sun Oct 1 18:49:11 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 1 Oct 2006 18:49:11 +0900 Subject: [xoops-cvslog 4716] CVS update: xoops2jp/html/modules/user/language/japanese Message-ID: <20061001094911.1065C2AC0E7@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/japanese/main.php diff -u xoops2jp/html/modules/user/language/japanese/main.php:1.1.2.24 xoops2jp/html/modules/user/language/japanese/main.php:1.1.2.25 --- xoops2jp/html/modules/user/language/japanese/main.php:1.1.2.24 Sun Aug 27 01:44:07 2006 +++ xoops2jp/html/modules/user/language/japanese/main.php Sun Oct 1 18:49:10 2006 @@ -5,7 +5,7 @@ define('_MD_USER_ERROR_AVATAR_SELECT', "指定したアバターは不正です"); define('_MD_USER_ERROR_AVATAR_SIZE', "アバターの画像サイズが許容サイズをオーバーしています"); define('_MD_USER_ERROR_DBUPDATE_FAILED', "データベースの更新に失敗しました"); -define('_MD_USER_ERROR_EMAIL_FORMAT', "{0}は不正なメールアドレスです"); +define('_MD_USER_ERROR_EMAIL', "{0}は不正なメールアドレスです"); define('_MD_USER_ERROR_INJURY', "{0}の入力値が不正です"); define('_MD_USER_ERROR_INVALID_EMAIL', "不正なメールアドレスです"); define('_MD_USER_ERROR_MAXLENGTH', "{0}は半角{1}文字以内で入力して下さい"); From minahito @ users.sourceforge.jp Sun Oct 1 18:50:38 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 1 Oct 2006 18:50:38 +0900 Subject: [xoops-cvslog 4717] CVS update: xoops2jp/html/modules/user/forms Message-ID: <20061001095038.C3F942AC029@users.sourceforge.jp> Index: xoops2jp/html/modules/user/forms/LostPassEditForm.class.php diff -u xoops2jp/html/modules/user/forms/LostPassEditForm.class.php:1.1.2.4 xoops2jp/html/modules/user/forms/LostPassEditForm.class.php:1.1.2.5 --- xoops2jp/html/modules/user/forms/LostPassEditForm.class.php:1.1.2.4 Sat Sep 23 12:11:01 2006 +++ xoops2jp/html/modules/user/forms/LostPassEditForm.class.php Sun Oct 1 18:50:38 2006 @@ -1,7 +1,7 @@ mFieldProperties['email'] =& new XCube_FieldProperty($this); $this->mFieldProperties['email']->setDependsByArray(array('required', 'email')); $this->mFieldProperties['email']->addMessage('required', _MD_USER_ERROR_REQUIRED, _MD_USER_LANG_EMAIL); - $this->mFieldProperties['email']->addMessage('email', _MD_USER_ERROR_EMAIL_FORMAT, _MD_USER_LANG_EMAIL); + $this->mFieldProperties['email']->addMessage('email', _MD_USER_ERROR_EMAIL, _MD_USER_LANG_EMAIL); } } Index: xoops2jp/html/modules/user/forms/EditUserForm.class.php diff -u xoops2jp/html/modules/user/forms/EditUserForm.class.php:1.1.2.16 xoops2jp/html/modules/user/forms/EditUserForm.class.php:1.1.2.17 --- xoops2jp/html/modules/user/forms/EditUserForm.class.php:1.1.2.16 Sun Aug 27 01:50:27 2006 +++ xoops2jp/html/modules/user/forms/EditUserForm.class.php Sun Oct 1 18:50:38 2006 @@ -68,7 +68,7 @@ $this->mFieldProperties['email']->addMessage("required", _MD_USER_ERROR_REQUIRED, _MD_USER_LANG_EMAIL, "60"); $this->mFieldProperties['email']->addMessage("maxlength", _MD_USER_ERROR_MAXLENGTH, _MD_USER_LANG_EMAIL, "60"); $this->mFieldProperties['email']->addVar("maxlength", 60); - $this->mFieldProperties['email']->addMessage('email', _MD_USER_ERROR_EMAIL_FORMAT); + $this->mFieldProperties['email']->addMessage('email', _MD_USER_ERROR_EMAIL, _MD_USER_LANG_EMAIL); } $this->mFieldProperties['url'] =& new XCube_FieldProperty($this); Index: xoops2jp/html/modules/user/forms/UserRegisterEditForm.class.php diff -u xoops2jp/html/modules/user/forms/UserRegisterEditForm.class.php:1.1.2.11 xoops2jp/html/modules/user/forms/UserRegisterEditForm.class.php:1.1.2.12 --- xoops2jp/html/modules/user/forms/UserRegisterEditForm.class.php:1.1.2.11 Sun Aug 27 01:50:27 2006 +++ xoops2jp/html/modules/user/forms/UserRegisterEditForm.class.php Sun Oct 1 18:50:38 2006 @@ -48,7 +48,7 @@ $this->mFieldProperties['email']->addMessage('maxlength', _MD_USER_ERROR_MAXLENGTH, _MD_USER_LANG_EMAIL, '60'); $this->mFieldProperties['email']->addMessage('required', _MD_USER_ERROR_REQUIRED, _MD_USER_LANG_EMAIL, '60'); $this->mFieldProperties['email']->addVar('maxlength', 60); - $this->mFieldProperties['email']->addMessage('email', _MD_USER_ERROR_EMAIL_FORMAT); + $this->mFieldProperties['email']->addMessage('email', _MD_USER_ERROR_EMAIL, _MD_USER_LANG_EMAIL); $this->mFieldProperties['url'] =& new XCube_FieldProperty($this); $this->mFieldProperties['url']->setDependsByArray(array('maxlength')); From minahito @ users.sourceforge.jp Sun Oct 1 18:53:26 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 1 Oct 2006 18:53:26 +0900 Subject: [xoops-cvslog 4718] CVS update: xoops2jp/html/modules/user/admin/forms Message-ID: <20061001095326.DD3CF2AC029@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php diff -u xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php:1.1.2.7 xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php:1.1.2.8 --- xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php:1.1.2.7 Sun Aug 20 11:50:06 2006 +++ xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php Sun Oct 1 18:53:26 2006 @@ -1,7 +1,7 @@ mFieldProperties['rank_max']->addMessage('required', _MD_USER_ERROR_REQUIRED, _AD_USER_LANG_RANK_MAX); $this->mFieldProperties['rank_max']->addMessage('min', _AD_USER_ERROR_MIN, _AD_USER_LANG_RANK_MAX, 0); $this->mFieldProperties['rank_max']->addVar('min', 0); + + $this->mFieldProperties['rank_image'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['rank_image']->setDependsByArray(array('extension')); + $this->mFieldProperties['rank_image']->addMessage('extension', _MD_USER_ERROR_AVATAR_EXTENSION, _AD_USER_LANG_AVATAR_FILE); + $this->mFieldProperties['rank_image']->addVar('extension', "gif,png,jpg"); } function validateRank_max() From minahito @ users.sourceforge.jp Sun Oct 1 18:55:34 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 1 Oct 2006 18:55:34 +0900 Subject: [xoops-cvslog 4719] CVS update: xoops2jp/html/modules/user/admin/forms Message-ID: <20061001095534.82DA62AC0BC@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php diff -u xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php:1.1.2.8 xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php:1.1.2.9 --- xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php:1.1.2.8 Sun Oct 1 18:53:26 2006 +++ xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php Sun Oct 1 18:55:34 2006 @@ -1,7 +1,7 @@ mFieldProperties['rank_image'] =& new XCube_FieldProperty($this); $this->mFieldProperties['rank_image']->setDependsByArray(array('extension')); - $this->mFieldProperties['rank_image']->addMessage('extension', _MD_USER_ERROR_AVATAR_EXTENSION, _AD_USER_LANG_AVATAR_FILE); + $this->mFieldProperties['rank_image']->addMessage('extension', _MD_USER_ERROR_AVATAR_EXTENSION, _MD_USER_LANG_RANK_IMAGE); $this->mFieldProperties['rank_image']->addVar('extension', "gif,png,jpg"); } From minahito @ users.sourceforge.jp Sun Oct 1 18:55:41 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 1 Oct 2006 18:55:41 +0900 Subject: [xoops-cvslog 4720] CVS update: xoops2jp/html/modules/user/admin/.xml Message-ID: <20061001095541.151852AC0BC@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/.xml/ranks_edit.xml diff -u xoops2jp/html/modules/user/admin/.xml/ranks_edit.xml:1.1.2.4 xoops2jp/html/modules/user/admin/.xml/ranks_edit.xml:1.1.2.5 --- xoops2jp/html/modules/user/admin/.xml/ranks_edit.xml:1.1.2.4 Fri Aug 18 18:05:39 2006 +++ xoops2jp/html/modules/user/admin/.xml/ranks_edit.xml Sun Oct 1 18:55:40 2006 @@ -34,5 +34,10 @@ + + + + + From minahito @ users.sourceforge.jp Sun Oct 1 18:55:54 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 1 Oct 2006 18:55:54 +0900 Subject: [xoops-cvslog 4721] CVS update: xoops2jp/html/modules/user/forms Message-ID: <20061001095554.3AE062AC029@users.sourceforge.jp> Index: xoops2jp/html/modules/user/forms/AvatarEditForm.class.php diff -u xoops2jp/html/modules/user/forms/AvatarEditForm.class.php:1.1.2.5 xoops2jp/html/modules/user/forms/AvatarEditForm.class.php:1.1.2.6 --- xoops2jp/html/modules/user/forms/AvatarEditForm.class.php:1.1.2.5 Wed Jul 19 19:21:25 2006 +++ xoops2jp/html/modules/user/forms/AvatarEditForm.class.php Sun Oct 1 18:55:54 2006 @@ -1,7 +1,7 @@ mFieldProperties['uploadavatar'] =& new XCube_FieldProperty($this); - $this->mFieldProperties['uploadavatar']->setDependsByArray(array('extension,maxfilesize')); + $this->mFieldProperties['uploadavatar']->setDependsByArray(array('extension', 'maxfilesize')); $this->mFieldProperties['uploadavatar']->addMessage('extension', _MD_USER_ERROR_AVATAR_EXTENSION); $this->mFieldProperties['uploadavatar']->addVar('extension', "jpg,gif,png"); $this->mFieldProperties['uploadavatar']->addMessage('maxfilesize', _MD_USER_ERROR_AVATAR_MAXFILESIZE); @@ -71,12 +71,14 @@ $this->mFormFile = $this->get('uploadavatar'); - $this->mFormFile->setRandomToBodyName('cavt'); + if ($this->mFormFile != null) { + $this->mFormFile->setRandomToBodyName('cavt'); - $filename = $this->mFormFile->getFileName(); - $this->mFormFile->setBodyName(substr($filename, 0, 25)); + $filename = $this->mFormFile->getFileName(); + $this->mFormFile->setBodyName(substr($filename, 0, 25)); - $obj->set('user_avatar', $this->mFormFile->getFileName()); //< TODO + $obj->set('user_avatar', $this->mFormFile->getFileName()); //< TODO + } } /** From tom_g3x @ users.sourceforge.jp Sun Oct 1 21:18:17 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Sun, 1 Oct 2006 21:18:17 +0900 Subject: [xoops-cvslog 4722] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20061001121817.F18312AC0F1@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/image_list.html diff -u xoops2jp/html/modules/base/admin/templates/image_list.html:1.1.2.16 xoops2jp/html/modules/base/admin/templates/image_list.html:1.1.2.17 --- xoops2jp/html/modules/base/admin/templates/image_list.html:1.1.2.16 Tue Sep 19 19:16:33 2006 +++ xoops2jp/html/modules/base/admin/templates/image_list.html Sun Oct 1 21:18:17 2006 @@ -7,7 +7,7 @@

<{$smarty.const._AD_BASE_LANG_IMAGE_LIST}> (<{$category->getShow('imgcat_name')}>)

Index: xoops2jp/html/modules/base/admin/templates/imagecategory_list.html diff -u xoops2jp/html/modules/base/admin/templates/imagecategory_list.html:1.1.2.13 xoops2jp/html/modules/base/admin/templates/imagecategory_list.html:1.1.2.14 --- xoops2jp/html/modules/base/admin/templates/imagecategory_list.html:1.1.2.13 Wed Sep 20 11:55:58 2006 +++ xoops2jp/html/modules/base/admin/templates/imagecategory_list.html Sun Oct 1 21:18:17 2006 @@ -60,6 +60,7 @@ From minahito @ users.sourceforge.jp Mon Oct 2 18:28:43 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 18:28:43 +0900 Subject: [xoops-cvslog 4723] CVS update: xoops2jp/html/modules/base/templates Message-ID: <20061002092843.0EDF62AC099@users.sourceforge.jp> Index: xoops2jp/html/modules/base/templates/legacy_install_modules.html diff -u xoops2jp/html/modules/base/templates/legacy_install_modules.html:1.1.2.2 xoops2jp/html/modules/base/templates/legacy_install_modules.html:1.1.2.3 --- xoops2jp/html/modules/base/templates/legacy_install_modules.html:1.1.2.2 Tue Apr 11 17:39:08 2006 +++ xoops2jp/html/modules/base/templates/legacy_install_modules.html Mon Oct 2 18:28:42 2006 @@ -33,14 +33,14 @@ <{foreach item=module from=$uninstalled}> - + <{/foreach}> <{foreach item=module from=$disabled}> - + From minahito @ users.sourceforge.jp Mon Oct 2 19:18:04 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 19:18:04 +0900 Subject: [xoops-cvslog 4724] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20061002101804.7625D2AC083@users.sourceforge.jp> Index: xoops2jp/html/modules/base/language/japanese/main.php diff -u xoops2jp/html/modules/base/language/japanese/main.php:1.1.2.26 xoops2jp/html/modules/base/language/japanese/main.php:1.1.2.27 --- xoops2jp/html/modules/base/language/japanese/main.php:1.1.2.26 Sat Sep 2 15:09:25 2006 +++ xoops2jp/html/modules/base/language/japanese/main.php Mon Oct 2 19:18:04 2006 @@ -8,6 +8,7 @@ define('_MD_BASE_ERROR_PERMISSION', "パーミッションエラー"); define('_MD_BASE_ERROR_REQUIRED', "{0}は必ず入力して下さい"); define('_MD_BASE_ERROR_SEARCH_QUERY_REQUIRED', "有効な長さの検索キーワードを入力してください。"); +define('_MD_BASE_ERROR_YOU_MUST_UPLOAD', "画像をアップロードしてください"); define('_MD_BASE_FORMAT_SEARCH_SEPARATOR', "/[\s, ]+/"); define('_MD_BASE_LANG_ANDOR', "AndOr"); define('_MD_BASE_LANG_CLICKASMILIE', "画像をクリックすると顔アイコン(スマイリー)を本文に追加することができます。"); From minahito @ users.sourceforge.jp Mon Oct 2 19:18:04 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 19:18:04 +0900 Subject: [xoops-cvslog 4725] CVS update: xoops2jp/html/modules/base/language/english Message-ID: <20061002101804.A23592AC1F8@users.sourceforge.jp> Index: xoops2jp/html/modules/base/language/english/main.php diff -u xoops2jp/html/modules/base/language/english/main.php:1.1.2.26 xoops2jp/html/modules/base/language/english/main.php:1.1.2.27 --- xoops2jp/html/modules/base/language/english/main.php:1.1.2.26 Sat Sep 2 15:09:25 2006 +++ xoops2jp/html/modules/base/language/english/main.php Mon Oct 2 19:18:04 2006 @@ -8,6 +8,7 @@ define('_MD_BASE_ERROR_PERMISSION', "Permission denied"); define('_MD_BASE_ERROR_REQUIRED', "{0} is required."); define('_MD_BASE_ERROR_SEARCH_QUERY_REQUIRED', "Input keywords of minimum length."); +define('_MD_BASE_ERROR_YOU_MUST_UPLOAD', "You must upload an image file."); define('_MD_BASE_FORMAT_SEARCH_SEPARATOR', "/[\s,]+/"); define('_MD_BASE_LANG_ANDOR', "AndOr"); define('_MD_BASE_LANG_CLICKASMILIE', "Click a smiley to insert it into your message."); From minahito @ users.sourceforge.jp Mon Oct 2 19:21:10 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 19:21:10 +0900 Subject: [xoops-cvslog 4726] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20061002102110.CBF912AC1F8@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/ImageCreateAction.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/actions/ImageCreateAction.class.php:1.1.2.1 --- /dev/null Mon Oct 2 19:21:10 2006 +++ xoops2jp/html/modules/base/admin/actions/ImageCreateAction.class.php Mon Oct 2 19:21:10 2006 @@ -0,0 +1,116 @@ +mActionForm =& new Legacy_ImageAdminCreateForm(); + $this->mActionForm->prepare(); + } + + function getDefaultView(&$controller, &$xoopsUser) + { + $flag = parent::getDefaultView($controller, $xoopsUser); + + if ($flag == LEGACY_FRAME_VIEW_INPUT && $this->_enableCatchImgcat()) { + $this->mActionForm->set('imgcat_id', xoops_getrequest('imgcat_id')); + } + + return $flag; + } + + function _enableCatchImgcat() + { + return true; + } + + function _doExecute() + { + $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $category =& $handler->get($this->mActionForm->get('imgcat_id')); + + // + // [TODO] + // Should the following procedure be after parent::_doExecute()? + // + if ($category->get('imgcat_storetype') == 'file') { + $this->_storeFile(); + } + else { + $this->_storeDB(); + } + + return parent::_doExecute(); + } + + function _storeFile() + { + if ($this->mActionForm->mFormFile != null) { + if (!$this->mActionForm->mFormFile->saveAs(XOOPS_UPLOAD_PATH)) { + return false; + } + } + + // + // If there is a old file, delete it + // + if ($this->mActionForm->mOldFilename != null) { + @unlink(XOOPS_UPLOAD_PATH . "/" . $this->mActionForm->mOldFilename); + } + } + + function _storeDB() + { + + } + + function executeViewInput(&$controller, &$xoopsUser, &$render) + { + $this->mObject->loadImagecategory(); + + $render->setTemplateName("image_edit.html"); + $render->setAttribute('actionForm', $this->mActionForm); + $render->setAttribute('object', $this->mObject); + + $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $categoryArr =& $handler->getObjects(); + $render->setAttribute('categoryArr', $categoryArr); + } + + function executeViewSuccess(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward("./index.php?action=ImageList&imgcat_id=" . $this->mActionForm->get('imgcat_id')); + } + + function executeViewError(&$controller, &$xoopsUser, &$render) + { + $controller->executeRedirect("./index.php?action=ImagecategoryList", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + } + + function executeViewCancel(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward("./index.php?action=ImageList&imgcat_id=" . $this->mActionForm->get('imgcat_id')); + } +} + +?> From minahito @ users.sourceforge.jp Mon Oct 2 19:21:34 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 19:21:34 +0900 Subject: [xoops-cvslog 4727] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20061002102134.288C82AC1F8@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php:1.1.2.9 xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php:1.1.2.10 --- xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php:1.1.2.9 Thu Sep 28 10:45:42 2006 +++ xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php Mon Oct 2 19:21:34 2006 @@ -1,84 +1,37 @@ mActionForm =& new Legacy_ImageAdminEditForm(); $this->mActionForm->prepare(); } - function getDefaultView(&$controller, &$xoopsUser) + function isEnableCreate() { - $flag = parent::getDefaultView($controller, $xoopsUser); - - if ($flag == LEGACY_FRAME_VIEW_INPUT) { - $this->mActionForm->set('imgcat_id', xoops_getrequest('imgcat_id')); - } - - return $flag; - } - - function _doExecute() - { - $handler =& xoops_getmodulehandler('imagecategory', 'base'); - $category =& $handler->get($this->mActionForm->get('imgcat_id')); - - // - // [TODO] - // Should the following procedure be after parent::_doExecute()? - // - if ($category->get('imgcat_storetype') == 'file') { - $this->_storeFile(); - } - else { - $this->_storeDB(); - } - - return parent::_doExecute(); + return false; } - function _storeFile() + function _enableCatchImgcat() { - if ($this->mActionForm->mFormFile != null) { - if (!$this->mActionForm->mFormFile->saveAs(XOOPS_UPLOAD_PATH)) { - return false; - } - } - - // - // If there is a old file, delete it - // - if ($this->mActionForm->mOldFilename != null) { - @unlink(XOOPS_UPLOAD_PATH . "/" . $this->mActionForm->mOldFilename); - } + return false; } - function _storeDB() - { - - } - function executeViewInput(&$controller, &$xoopsUser, &$render) { $this->mObject->loadImagecategory(); @@ -88,24 +41,11 @@ $render->setAttribute('object', $this->mObject); $handler =& xoops_getmodulehandler('imagecategory', 'base'); - $categoryArr =& $handler->getObjects(); + $t_category = $handler->get($this->mObject->get('imgcat_id')); + + $categoryArr =& $handler->getObjects(new Criteria('imgcat_storetype', $t_category->get('imgcat_storetype'))); $render->setAttribute('categoryArr', $categoryArr); } - - function executeViewSuccess(&$controller, &$xoopsUser, &$render) - { - $controller->executeForward("./index.php?action=ImageList&imgcat_id=" . $this->mActionForm->get('imgcat_id')); - } - - function executeViewError(&$controller, &$xoopsUser, &$render) - { - $controller->executeRedirect("./index.php?action=ImagecategoryList", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); - } - - function executeViewCancel(&$controller, &$xoopsUser, &$render) - { - $controller->executeForward("./index.php?action=ImageList&imgcat_id=" . $this->mActionForm->get('imgcat_id')); - } } ?> From minahito @ users.sourceforge.jp Mon Oct 2 19:21:55 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 19:21:55 +0900 Subject: [xoops-cvslog 4728] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20061002102156.028A32AC1F8@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/forms/ImageAdminEditForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/ImageAdminEditForm.class.php:1.1.2.8 xoops2jp/html/modules/base/admin/forms/ImageAdminEditForm.class.php:1.1.2.9 --- xoops2jp/html/modules/base/admin/forms/ImageAdminEditForm.class.php:1.1.2.8 Fri Aug 18 20:30:01 2006 +++ xoops2jp/html/modules/base/admin/forms/ImageAdminEditForm.class.php Mon Oct 2 19:21:55 2006 @@ -1,7 +1,7 @@ _mImgcatId = $obj->get('imgcat_id'); } - function getImgcatId() - { - return $this->_mIsNew ? $this->get('imgcat_id') : $this->_mImgcatId; - } - function update(&$obj) { parent::update($obj); @@ -66,4 +61,20 @@ } } +class Legacy_ImageAdminEditForm extends Legacy_ImageAdminCreateForm +{ + function validateImgcat_id() + { + parent::validateImgcat_id(); + + $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $currentCategory =& $handler->get($this->_mImgcatId); + + $specificCategory =& $handler->get($this->get('imgcat_id')); + if ($currentCategory->get('imgcat_storetype') != $specificCategory->get('imgcat_storetype')) { + $this->set('imgcat_id', $this->_mImgcatId); + } + } +} + ?> From minahito @ users.sourceforge.jp Mon Oct 2 19:47:45 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 19:47:45 +0900 Subject: [xoops-cvslog 4729] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20061002104745.4FE1A2AC11C@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/image_edit.html diff -u xoops2jp/html/modules/base/admin/templates/image_edit.html:1.1.2.14 xoops2jp/html/modules/base/admin/templates/image_edit.html:1.1.2.15 --- xoops2jp/html/modules/base/admin/templates/image_edit.html:1.1.2.14 Sat Sep 2 22:54:32 2006 +++ xoops2jp/html/modules/base/admin/templates/image_edit.html Mon Oct 2 19:47:45 2006 @@ -25,7 +25,7 @@ <{/if}> - + <{xoops_token form=$actionForm}> <{xoops_input type=hidden name=image_id value=$actionForm->get('image_id')}>
<{$obj->getImageCount()|escape}> " alt="<{$smarty.const._AD_BASE_LANG_LIST}>" title="<{$smarty.const._AD_BASE_LANG_LIST}>" /> + " alt="<{$smarty.const._AD_BASE_LANG_IMAGE_NEW}>" title="<{$smarty.const._AD_BASE_LANG_IMAGE_NEW}>" /> " alt="<{$smarty.const._EDIT}>" title="<{$smarty.const._EDIT}>" /> " alt="<{$smarty.const._DELETE}>" title="<{$smarty.const._DELETE}>" />
   <{$module}> <{$smarty.const._SYS_MODULE_UNINSTALLED}>
   <{$module}> <{$smarty.const._SYS_MODULE_DISABLED}> <{$smarty.const._UNINSTALL}>
@@ -73,18 +73,14 @@ <{xoops_input type=text name=image_weight value=$actionForm->get('image_weight') size=5}> - <{if $object->isNew()}> - - - - - <{else}> - <{xoops_input type=hidden name=imgcat_id value=$actionForm->get('imgcat_id')}> - <{/if}> + + + + From ryuji_amano @ users.sourceforge.jp Sat Oct 7 15:30:10 2006 From: ryuji_amano @ users.sourceforge.jp (Ryuji AMANO) Date: Sat, 7 Oct 2006 15:30:10 +0900 Subject: [xoops-cvslog 4843] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20061007063010.1F4602AC073@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php diff -u xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php:1.1.2.9 xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php:1.1.2.9.2.1 --- xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php:1.1.2.9 Mon Sep 25 18:39:41 2006 +++ xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php Sat Oct 7 15:30:09 2006 @@ -1,7 +1,7 @@ mObject->isAdmin()) { //< FIXME + if ($xoopsUser->isAdmin()) { //< FIXME return true; } elseif ($this->mObject->get('uid') == $xoopsUser->get('uid')) { From ryuji_amano @ users.sourceforge.jp Sat Oct 7 15:30:10 2006 From: ryuji_amano @ users.sourceforge.jp (Ryuji AMANO) Date: Sat, 7 Oct 2006 15:30:10 +0900 Subject: [xoops-cvslog 4844] CVS update: xoops2jp/html/modules/user/forms Message-ID: <20061007063010.58B0D2AC090@users.sourceforge.jp> Index: xoops2jp/html/modules/user/forms/LostPassEditForm.class.php diff -u xoops2jp/html/modules/user/forms/LostPassEditForm.class.php:1.1.2.4.2.2 xoops2jp/html/modules/user/forms/LostPassEditForm.class.php:1.1.2.4.2.3 --- xoops2jp/html/modules/user/forms/LostPassEditForm.class.php:1.1.2.4.2.2 Fri Sep 29 17:14:45 2006 +++ xoops2jp/html/modules/user/forms/LostPassEditForm.class.php Sat Oct 7 15:30:10 2006 @@ -1,7 +1,7 @@ mFieldProperties['email'] =& new XCube_FieldProperty($this); $this->mFieldProperties['email']->setDependsByArray(array('required', 'email')); $this->mFieldProperties['email']->addMessage('required', _MD_USER_ERROR_REQUIRED, _MD_USER_LANG_EMAIL); - $this->mFieldProperties['email']->addMessage('email', _MD_USER_ERROR_EMAIL_FORMAT, _MD_USER_LANG_EMAIL); + $this->mFieldProperties['email']->addMessage('email', _MD_USER_ERROR_EMAIL, _MD_USER_LANG_EMAIL); } } Index: xoops2jp/html/modules/user/forms/AbstractUserEditForm.class.php diff -u xoops2jp/html/modules/user/forms/AbstractUserEditForm.class.php:1.1.2.11.2.2 xoops2jp/html/modules/user/forms/AbstractUserEditForm.class.php:1.1.2.11.2.3 --- xoops2jp/html/modules/user/forms/AbstractUserEditForm.class.php:1.1.2.11.2.2 Fri Sep 29 17:14:45 2006 +++ xoops2jp/html/modules/user/forms/AbstractUserEditForm.class.php Sat Oct 7 15:30:10 2006 @@ -25,7 +25,7 @@ // $userHandler=&xoops_gethandler('user'); $criteria =& new CriteriaCompo(new Criteria('uname', $this->get('uname'))); - if ($this->get('uid')) { + if ($this->get('uid') > 0) { $criteria->add(new Criteria('uid', $this->get('uid'), '<>')); } if ($userHandler->getCount($criteria) > 0) { @@ -71,9 +71,21 @@ foreach ($this->mConfig['bad_emails'] as $t_email) { if (!empty($t_email) && preg_match("/${t_email}/i", $this->get('email'))) { $this->addErrorMessage(_MD_USER_ERROR_INVALID_EMAIL); - break; + return; } } + + // + // email unique check + // + $userHandler=&xoops_gethandler('user'); + $criteria =& new CriteriaCompo(new Criteria('email', $this->get('email'))); + if ($this->get('uid') > 0) { + $criteria->add(new Criteria('uid', $this->get('uid'), '<>')); + } + if ($userHandler->getCount($criteria) > 0) { + $this->addErrorMessage(_MD_USER_ERROR_EMAILTAKEN); + } } } Index: xoops2jp/html/modules/user/forms/AvatarEditForm.class.php diff -u xoops2jp/html/modules/user/forms/AvatarEditForm.class.php:1.1.2.5.2.2 xoops2jp/html/modules/user/forms/AvatarEditForm.class.php:1.1.2.5.2.3 --- xoops2jp/html/modules/user/forms/AvatarEditForm.class.php:1.1.2.5.2.2 Fri Sep 29 17:14:45 2006 +++ xoops2jp/html/modules/user/forms/AvatarEditForm.class.php Sat Oct 7 15:30:10 2006 @@ -1,7 +1,7 @@ mFieldProperties['uploadavatar'] =& new XCube_FieldProperty($this); - $this->mFieldProperties['uploadavatar']->setDependsByArray(array('extension,maxfilesize')); + $this->mFieldProperties['uploadavatar']->setDependsByArray(array('extension', 'maxfilesize')); $this->mFieldProperties['uploadavatar']->addMessage('extension', _MD_USER_ERROR_AVATAR_EXTENSION); $this->mFieldProperties['uploadavatar']->addVar('extension', "jpg,gif,png"); $this->mFieldProperties['uploadavatar']->addMessage('maxfilesize', _MD_USER_ERROR_AVATAR_MAXFILESIZE); @@ -71,6 +71,7 @@ $this->mFormFile = $this->get('uploadavatar'); + if ($this->mFormFile != null) { $this->mFormFile->setRandomToBodyName('cavt'); $filename = $this->mFormFile->getFileName(); @@ -78,6 +79,7 @@ $obj->set('user_avatar', $this->mFormFile->getFileName()); //< TODO } + } /** * @return UserAvatarObject Index: xoops2jp/html/modules/user/forms/UserRegisterEditForm.class.php diff -u xoops2jp/html/modules/user/forms/UserRegisterEditForm.class.php:1.1.2.11 xoops2jp/html/modules/user/forms/UserRegisterEditForm.class.php:1.1.2.11.2.1 --- xoops2jp/html/modules/user/forms/UserRegisterEditForm.class.php:1.1.2.11 Sun Aug 27 01:50:27 2006 +++ xoops2jp/html/modules/user/forms/UserRegisterEditForm.class.php Sat Oct 7 15:30:10 2006 @@ -48,7 +48,7 @@ $this->mFieldProperties['email']->addMessage('maxlength', _MD_USER_ERROR_MAXLENGTH, _MD_USER_LANG_EMAIL, '60'); $this->mFieldProperties['email']->addMessage('required', _MD_USER_ERROR_REQUIRED, _MD_USER_LANG_EMAIL, '60'); $this->mFieldProperties['email']->addVar('maxlength', 60); - $this->mFieldProperties['email']->addMessage('email', _MD_USER_ERROR_EMAIL_FORMAT); + $this->mFieldProperties['email']->addMessage('email', _MD_USER_ERROR_EMAIL, _MD_USER_LANG_EMAIL); $this->mFieldProperties['url'] =& new XCube_FieldProperty($this); $this->mFieldProperties['url']->setDependsByArray(array('maxlength')); Index: xoops2jp/html/modules/user/forms/EditUserForm.class.php diff -u xoops2jp/html/modules/user/forms/EditUserForm.class.php:1.1.2.16 xoops2jp/html/modules/user/forms/EditUserForm.class.php:1.1.2.16.2.1 --- xoops2jp/html/modules/user/forms/EditUserForm.class.php:1.1.2.16 Sun Aug 27 01:50:27 2006 +++ xoops2jp/html/modules/user/forms/EditUserForm.class.php Sat Oct 7 15:30:10 2006 @@ -68,7 +68,7 @@ $this->mFieldProperties['email']->addMessage("required", _MD_USER_ERROR_REQUIRED, _MD_USER_LANG_EMAIL, "60"); $this->mFieldProperties['email']->addMessage("maxlength", _MD_USER_ERROR_MAXLENGTH, _MD_USER_LANG_EMAIL, "60"); $this->mFieldProperties['email']->addVar("maxlength", 60); - $this->mFieldProperties['email']->addMessage('email', _MD_USER_ERROR_EMAIL_FORMAT); + $this->mFieldProperties['email']->addMessage('email', _MD_USER_ERROR_EMAIL, _MD_USER_LANG_EMAIL); } $this->mFieldProperties['url'] =& new XCube_FieldProperty($this); From minahito @ users.sourceforge.jp Sat Oct 7 15:36:26 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:36:26 +0900 Subject: [xoops-cvslog 4845] CVS update: xoops2jp/html/modules/pm/class Message-ID: <20061007063626.ED6F52AC051@users.sourceforge.jp> Index: xoops2jp/html/modules/pm/class/priv_msgs.php diff -u /dev/null xoops2jp/html/modules/pm/class/priv_msgs.php:1.1.4.1 --- /dev/null Sat Oct 7 15:36:26 2006 +++ xoops2jp/html/modules/pm/class/priv_msgs.php Sat Oct 7 15:36:26 2006 @@ -0,0 +1,31 @@ +initVar('msg_id', XOBJ_DTYPE_INT, '', true); + $this->initVar('msg_image', XOBJ_DTYPE_STRING, '', false, 100); + $this->initVar('subject', XOBJ_DTYPE_STRING, '', true, 255); + $this->initVar('from_userid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('to_userid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('msg_time', XOBJ_DTYPE_INT, '0', true); + $this->initVar('msg_text', XOBJ_DTYPE_TEXT, '', true); + $this->initVar('read_msg', XOBJ_DTYPE_BOOL, '0', true); + } +} + +class PmPriv_msgsHandler extends XoopsObjectGenericHandler +{ + var $mTable = "priv_msgs"; + var $mPrimary = "msg_id"; + var $mClass = "PmPriv_msgsObject"; +} + +?> From minahito @ users.sourceforge.jp Sat Oct 7 15:36:39 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:36:39 +0900 Subject: [xoops-cvslog 4846] CVS update: xoops2jp/html/modules/pm/actions Message-ID: <20061007063639.B82812AC051@users.sourceforge.jp> Index: xoops2jp/html/modules/pm/actions/PmliteAction.class.php diff -u xoops2jp/html/modules/pm/actions/PmliteAction.class.php:1.1.2.3 xoops2jp/html/modules/pm/actions/PmliteAction.class.php:1.1.2.3.2.1 --- xoops2jp/html/modules/pm/actions/PmliteAction.class.php:1.1.2.3 Thu Aug 17 18:09:51 2006 +++ xoops2jp/html/modules/pm/actions/PmliteAction.class.php Sat Oct 7 15:36:39 2006 @@ -1,7 +1,7 @@ Index: xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php diff -u xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php:1.1.2.10.2.3 xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php:1.1.2.10.2.4 --- xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php:1.1.2.10.2.3 Thu Oct 5 18:10:38 2006 +++ xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php Sat Oct 7 15:36:56 2006 @@ -100,9 +100,9 @@ function update(&$obj) { - $obj->setVar('to_userid', $this->get('to_userid')); - $obj->setVar('subject', $this->get('subject')); - $obj->setVar('msg_text', $this->get('message')); + $obj->set('to_userid', $this->get('to_userid')); + $obj->set('subject', $this->get('subject')); + $obj->set('msg_text', $this->get('message')); } function resetToUser() @@ -164,9 +164,9 @@ function update(&$obj) { - $obj->setVar('to_userid', $this->_mUid); - $obj->setVar('subject', $this->get('subject')); - $obj->setVar('msg_text', $this->get('message')); + $obj->set('to_userid', $this->_mUid); + $obj->set('subject', $this->get('subject')); + $obj->set('msg_text', $this->get('message')); } function resetToUser() From minahito @ users.sourceforge.jp Sat Oct 7 15:39:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:39:57 +0900 Subject: [xoops-cvslog 4848] CVS update: xoops2jp/html/modules/stdCache/blocks Message-ID: <20061007063957.2D34E2AC051@users.sourceforge.jp> Index: xoops2jp/html/modules/stdCache/blocks/cacheclear.php diff -u xoops2jp/html/modules/stdCache/blocks/cacheclear.php:1.1.2.1 xoops2jp/html/modules/stdCache/blocks/cacheclear.php:1.1.2.1.2.1 --- xoops2jp/html/modules/stdCache/blocks/cacheclear.php:1.1.2.1 Fri Jan 6 12:04:26 2006 +++ xoops2jp/html/modules/stdCache/blocks/cacheclear.php Sat Oct 7 15:39:57 2006 @@ -3,15 +3,15 @@ function Stdcache_cacheclear_show() { $root =& XCube_Root::getSingleton(); - $cache =& $root->getCacheSystem(); - if (!$cache->enableCache()) { + + if (!$root->mController->isEnableCacheFeature()) { return false; } - + if($handler = opendir(XOOPS_CACHE_PATH)) { while(($file = readdir($handler)) !== false) { if(preg_match("/\w+\.cache\.html$/", $file, $matches)) { - @unlink($matches[0]); + @unlink(XOOPS_CACHE_PATH . "/" . $matches[0]); } } closedir($handler); From minahito @ users.sourceforge.jp Sat Oct 7 15:40:06 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:40:06 +0900 Subject: [xoops-cvslog 4849] CVS update: xoops2jp/html/themes/cube_default Message-ID: <20061007064006.02A812AC051@users.sourceforge.jp> Index: xoops2jp/html/themes/cube_default/style.css diff -u xoops2jp/html/themes/cube_default/style.css:1.1.2.1 xoops2jp/html/themes/cube_default/style.css:1.1.2.1.2.1 --- xoops2jp/html/themes/cube_default/style.css:1.1.2.1 Fri Dec 30 17:32:04 2005 +++ xoops2jp/html/themes/cube_default/style.css Sat Oct 7 15:40:05 2006 @@ -490,15 +490,28 @@ border-left: solid 1px #7a7acc; } -div.xoopsCode { - background: #f5f5f5; - margin: 0; - padding: 0 6px 6px 6px; +div.xoopsCode, div.xoopsQuote { + width:98%; + height: 100%; + padding: 0; +} + +div.xoopsCode pre { border: solid 1px #c0c0c0; + margin:0; + overflow:auto; + padding:0 1em; + min-height:4em; + height:auto; +} +/* for IExplorer */ +* html div.xoopsCode pre { + height:4em; + height:auto; /* IE 6.x */ + width:40em; } -div.xoopsQuote { - background: #f5f5f5; +div.xoopsQuote blockquote { margin: 0; padding: 0 6px 6px 6px; border: solid 1px #c0c0c0; From minahito @ users.sourceforge.jp Sat Oct 7 15:40:17 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:40:17 +0900 Subject: [xoops-cvslog 4850] CVS update: xoops2jp/html/modules/legacyRender/class Message-ID: <20061007064017.4F62F2AC073@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/class/bannerclient.php diff -u xoops2jp/html/modules/legacyRender/class/bannerclient.php:1.1.2.3 xoops2jp/html/modules/legacyRender/class/bannerclient.php:1.1.2.3.2.1 --- xoops2jp/html/modules/legacyRender/class/bannerclient.php:1.1.2.3 Mon Jul 10 14:54:45 2006 +++ xoops2jp/html/modules/legacyRender/class/bannerclient.php Sat Oct 7 15:40:17 2006 @@ -7,6 +7,9 @@ var $mBanners = array(); var $_mBannersLoadedFlag = false; + /** + * @todo A name of this property is a strange. banner finish? + */ var $mFinishBanners = array(); var $_mFinishBannersLoadedFlag = false; @@ -55,10 +58,10 @@ function loadBannerfinish() { - if ($this->_mBannerfinishCountFlag == false) { + if ($this->_mFinishBannersLoadedFlag == false) { $handler =& xoops_getmodulehandler('bannerfinish', 'legacyRender'); $this->mFinishBanners =& $handler->getObjects(new Criteria('cid', $this->get('cid'))); - $this->_mBannerfinishCountLoadedFlag = true; + $this->_mFinishBannersLoadedFlag = true; } } From minahito @ users.sourceforge.jp Sat Oct 7 15:44:28 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:44:28 +0900 Subject: [xoops-cvslog 4851] CVS update: xoops2jp/html/kernel Message-ID: <20061007064428.77FBE2AC073@users.sourceforge.jp> Index: xoops2jp/html/kernel/object.php diff -u xoops2jp/html/kernel/object.php:1.2.8.12 xoops2jp/html/kernel/object.php:1.2.8.12.2.1 --- xoops2jp/html/kernel/object.php:1.2.8.12 Tue Aug 1 17:25:16 2006 +++ xoops2jp/html/kernel/object.php Sat Oct 7 15:44:28 2006 @@ -1,5 +1,5 @@ getVar($key, 's'); } + /** + * Sets $value to $key property. This method calls setVar(), but make + * not_gpc true for the compatibility with XoopsSimpleObject. + * @param string $key + * @param mixed $value + */ function set($key, $value) { - $this->setVar($key, $value); + $this->setVar($key, $value, true); } function get($key) From minahito @ users.sourceforge.jp Sat Oct 7 15:44:39 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:44:39 +0900 Subject: [xoops-cvslog 4852] CVS update: xoops2jp/html/modules/base/admin Message-ID: <20061007064439.09A6F2AC073@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/css.php diff -u xoops2jp/html/modules/base/admin/css.php:1.1.2.8 xoops2jp/html/modules/base/admin/css.php:1.1.2.8.2.1 --- xoops2jp/html/modules/base/admin/css.php:1.1.2.8 Fri Aug 18 21:03:33 2006 +++ xoops2jp/html/modules/base/admin/css.php Sat Oct 7 15:44:38 2006 @@ -1,7 +1,6 @@ Index: xoops2jp/html/modules/legacyRender/admin/forms/BannerAdminEditForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/BannerAdminEditForm.class.php:1.1.2.3.2.2 xoops2jp/html/modules/legacyRender/admin/forms/BannerAdminEditForm.class.php:1.1.2.3.2.3 --- xoops2jp/html/modules/legacyRender/admin/forms/BannerAdminEditForm.class.php:1.1.2.3.2.2 Fri Sep 29 17:14:33 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/BannerAdminEditForm.class.php Sat Oct 7 15:45:01 2006 @@ -1,7 +1,7 @@ mFieldProperties['bid']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_BID); $this->mFieldProperties['cid'] =& new XCube_FieldProperty($this); - $this->mFieldProperties['cid']->setDependsByArray(array('required','objectExsist')); + $this->mFieldProperties['cid']->setDependsByArray(array('required','objectExist')); $this->mFieldProperties['cid']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_CID); $this->mFieldProperties['cid']->addMessage('objectExist', _AD_LEGACYRENDER_ERROR_OBJECT_EXIST, _AD_LEGACYRENDER_LANG_CID); $this->mFieldProperties['cid']->addVar('handler', 'bannerclient'); From minahito @ users.sourceforge.jp Sat Oct 7 15:45:13 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:45:13 +0900 Subject: [xoops-cvslog 4854] CVS update: xoops2jp/html/modules/legacyRender/admin/forms Message-ID: <20061007064513.3E1F72AC073@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/forms/BannerclientAdminEditForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/BannerclientAdminEditForm.class.php:1.1.2.3.2.2 xoops2jp/html/modules/legacyRender/admin/forms/BannerclientAdminEditForm.class.php:1.1.2.3.2.3 --- xoops2jp/html/modules/legacyRender/admin/forms/BannerclientAdminEditForm.class.php:1.1.2.3.2.2 Fri Sep 29 17:14:33 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/BannerclientAdminEditForm.class.php Sat Oct 7 15:45:13 2006 @@ -1,7 +1,7 @@ get('login')) > 0) { $handler =& xoops_getmodulehandler('bannerclient', 'legacyRender'); - $t_objs =& $handler->getObjects(new Criteria('login', $this->get('login'))); - if (count($t_objs) > 0) { + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('login', $this->get('login'))); + $criteria->add(new Criteria('cid', $this->get('cid'), '<>')); + + if ($handler->getCount($criteria) > 0) { $this->addErrorMessage(_AD_LEGACYRENDER_ERROR_LOGIN_REPETITION); } } From minahito @ users.sourceforge.jp Sat Oct 7 15:45:22 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:45:22 +0900 Subject: [xoops-cvslog 4855] CVS update: xoops2jp/html/modules/legacyRender/admin/forms Message-ID: <20061007064522.482FD2AC0E3@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php:1.1.2.8 xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php:1.1.2.8.2.1 --- xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php:1.1.2.8 Wed May 17 18:36:04 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php Sat Oct 7 15:45:22 2006 @@ -66,6 +66,11 @@ $this->_mNavi->addExtra('tpl_type', xoops_getrequest('tpl_type')); $this->_mCriteria->add(new Criteria('tpl_type', array(XOBJ_DTYPE_STRING, xoops_getrequest('tpl_type')))); } + + if (isset($_REQUEST['tpl_file'])) { + $this->_mNavi->addExtra('tpl_file', xoops_getrequest('tpl_file')); + $this->_mCriteria->add(new Criteria('tpl_file', '%' . xoops_getrequest('tpl_file') . '%', 'LIKE')); + } // // @todo We can remove the following code: From minahito @ users.sourceforge.jp Sat Oct 7 15:45:29 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:45:29 +0900 Subject: [xoops-cvslog 4856] CVS update: xoops2jp/html/modules/legacyRender/admin/forms Message-ID: <20061007064529.E53732AC090@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php:1.1.2.1 xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php:1.1.2.1.2.1 --- xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php:1.1.2.1 Wed May 17 18:35:39 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php Sat Oct 7 15:45:29 2006 @@ -54,6 +54,11 @@ $this->_mNavi->addExtra('tpl_type', xoops_getrequest('tpl_type')); $this->_mCriteria->add(new Criteria('tpl_type', array(XOBJ_DTYPE_STRING, xoops_getrequest('tpl_type')))); } + + if (isset($_REQUEST['tpl_file'])) { + $this->_mNavi->addExtra('tpl_file', xoops_getrequest('tpl_file')); + $this->_mCriteria->add(new Criteria('tpl_file', '%' . xoops_getrequest('tpl_file') . '%', 'LIKE')); + } $this->_mNavi->addExtra('sort', $this->mSort); From minahito @ users.sourceforge.jp Sat Oct 7 15:47:29 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:47:29 +0900 Subject: [xoops-cvslog 4857] CVS update: xoops2jp/html/modules/legacyRender/admin/class Message-ID: <20061007064729.4FE672AC073@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php diff -u xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php:1.1.2.3.2.2 xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php:1.1.2.3.2.3 --- xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php:1.1.2.3.2.2 Fri Sep 29 17:14:33 2006 +++ xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php Sat Oct 7 15:47:29 2006 @@ -23,7 +23,7 @@ $ret =""; foreach ($this->mExtra as $key => $value) { - if (!isset($mask[$key])) { + if (!in_array($key, $mask)) { $value = htmlspecialchars($value, ENT_QUOTES); $ret .= ""; } From minahito @ users.sourceforge.jp Sat Oct 7 15:49:27 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:49:27 +0900 Subject: [xoops-cvslog 4858] CVS update: xoops2jp/html/modules/legacyRender/admin/actions Message-ID: <20061007064927.D23DD2AC073@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php:1.1.2.13 xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php:1.1.2.13.2.1 --- xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php:1.1.2.13 Tue Jul 11 12:05:13 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php Sat Oct 7 15:49:27 2006 @@ -1,7 +1,7 @@ _mTmpFileName); - $obj->Source->set('tpl_source', $source); - $obj->set('tpl_lastmodified', time()); - $obj->set('tpl_lastimported', time()); - - $successFlag &= $handler->insert($obj); - - $xoopsTpl =& new XoopsTpl(); - $xoopsTpl->clear_cache('db:' . $obj->get('tpl_file')); - $xoopsTpl->clear_compiled_tpl('db:' . $obj->get('tpl_file')); + if ($formFile != null) { + $source = file_get_contents($formFile->_mTmpFileName); + $obj->Source->set('tpl_source', $source); + $obj->set('tpl_lastmodified', time()); + $obj->set('tpl_lastimported', time()); + + $successFlag &= $handler->insert($obj); + + $xoopsTpl =& new XoopsTpl(); + $xoopsTpl->clear_cache('db:' . $obj->get('tpl_file')); + $xoopsTpl->clear_compiled_tpl('db:' . $obj->get('tpl_file')); + } unset($obj); unset($formFile); From minahito @ users.sourceforge.jp Sat Oct 7 15:49:36 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:49:36 +0900 Subject: [xoops-cvslog 4859] CVS update: xoops2jp/html/modules/legacyRender/admin/actions Message-ID: <20061007064936.602FB2AC0CD@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/actions/TplsetDownloadAction.class.php diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplsetDownloadAction.class.php:1.1.2.2 xoops2jp/html/modules/legacyRender/admin/actions/TplsetDownloadAction.class.php:1.1.2.2.2.1 --- xoops2jp/html/modules/legacyRender/admin/actions/TplsetDownloadAction.class.php:1.1.2.2 Tue Jul 11 12:05:43 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/TplsetDownloadAction.class.php Sat Oct 7 15:49:36 2006 @@ -1,7 +1,7 @@ getShow('tpl_file') . '">' . "\n" . " " . $files[$i]->getShow('tpl_module') . "" . "\n" . - " module" . $files[$i]->getShow('tpl_module') . "" . "\n" . + " module" . "\n" . " " . $files[$i]->getShow('tpl_lastmodified') . "" . "\n" . " " . "\n"; From minahito @ users.sourceforge.jp Sat Oct 7 15:49:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:49:57 +0900 Subject: [xoops-cvslog 4860] CVS update: xoops2jp/html/install/sql Message-ID: <20061007064957.984972AC073@users.sourceforge.jp> Index: xoops2jp/html/install/sql/mysql.data.sql diff -u xoops2jp/html/install/sql/mysql.data.sql:1.1.8.1 xoops2jp/html/install/sql/mysql.data.sql:1.1.8.1.2.1 --- xoops2jp/html/install/sql/mysql.data.sql:1.1.8.1 Fri Aug 25 19:13:55 2006 +++ xoops2jp/html/install/sql/mysql.data.sql Sat Oct 7 15:49:57 2006 @@ -13,7 +13,7 @@ # Dumping data for table `bannerclient` # -INSERT INTO bannerclient VALUES (0, 'XOOPS', 'XOOPS Dev Team', 'webmaster @ xoops.org', '', '', ''); +INSERT INTO bannerclient VALUES (0, 'Sample client', 'XOOPS Project Team', '', '', '', ''); # # Dumping data for table `bannerfinish` From minahito @ users.sourceforge.jp Sat Oct 7 15:49:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:49:57 +0900 Subject: [xoops-cvslog 4861] CVS update: xoops2jp/html/install/include Message-ID: <20061007064957.BD1B92AC090@users.sourceforge.jp> Index: xoops2jp/html/install/include/makedata.php diff -u xoops2jp/html/install/include/makedata.php:1.1.2.6 xoops2jp/html/install/include/makedata.php:1.1.2.6.2.1 --- xoops2jp/html/install/include/makedata.php:1.1.2.6 Fri Sep 22 21:59:17 2006 +++ xoops2jp/html/install/include/makedata.php Sat Oct 7 15:49:57 2006 @@ -1,5 +1,5 @@ insert('config', " VALUES (69,0,6,'from','_MD_AM_MAILFROM','','_MD_AM_MAILFROMDESC','textbox','text', 1)"); $dbm->insert('config', " VALUES (70,0,6,'fromname','_MD_AM_MAILFROMNAME','','_MD_AM_MAILFROMNAMEDESC','textbox','text',2)"); $dbm->insert('config', " VALUES (71, 0, 1, 'sslloginlink', '_MD_AM_SSLLINK', 'https://', '_MD_AM_SSLLINKDSC', 'textbox', 'text', 33)"); - $dbm->insert('config', " VALUES (72, 0, 1, 'theme_set_allowed', '_MD_AM_THEMEOK', '".serialize(array('default'))."', '_MD_AM_THEMEOKDSC', 'theme_multi', 'array', 13)"); + $dbm->insert('config', " VALUES (72, 0, 1, 'theme_set_allowed', '_MD_AM_THEMEOK', '".serialize(array('cube_default'))."', '_MD_AM_THEMEOKDSC', 'theme_multi', 'array', 13)"); // RMV-NOTIFY... Need to specify which user is sender of notification PM $dbm->insert('config', " VALUES (73,0,6,'fromuid','_MD_AM_MAILFROMUID','1','_MD_AM_MAILFROMUIDDESC','user','int',3)"); // data for table 'users' From minahito @ users.sourceforge.jp Sat Oct 7 15:50:06 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:50:06 +0900 Subject: [xoops-cvslog 4862] CVS update: xoops2jp/html/include Message-ID: <20061007065006.DD2A62AC073@users.sourceforge.jp> Index: xoops2jp/html/include/common.php diff -u xoops2jp/html/include/common.php:1.4.8.15.2.2 xoops2jp/html/include/common.php:1.4.8.15.2.3 --- xoops2jp/html/include/common.php:1.4.8.15.2.2 Fri Oct 6 20:15:18 2006 +++ xoops2jp/html/include/common.php Sat Oct 7 15:50:06 2006 @@ -1,7 +1,7 @@ loadSiteConfig(XCUBE_SITE_SETTING_FILE, XCUBE_SITE_CUSTOM_FILE); $root->setupController(); From minahito @ users.sourceforge.jp Sat Oct 7 15:50:51 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:50:51 +0900 Subject: [xoops-cvslog 4863] CVS update: xoops2jp/html/modules/base/language/english Message-ID: <20061007065051.6533C2AC073@users.sourceforge.jp> Index: xoops2jp/html/modules/base/language/english/main.php diff -u xoops2jp/html/modules/base/language/english/main.php:1.1.2.26 xoops2jp/html/modules/base/language/english/main.php:1.1.2.26.2.1 --- xoops2jp/html/modules/base/language/english/main.php:1.1.2.26 Sat Sep 2 15:09:25 2006 +++ xoops2jp/html/modules/base/language/english/main.php Sat Oct 7 15:50:51 2006 @@ -8,6 +8,7 @@ define('_MD_BASE_ERROR_PERMISSION', "Permission denied"); define('_MD_BASE_ERROR_REQUIRED', "{0} is required."); define('_MD_BASE_ERROR_SEARCH_QUERY_REQUIRED', "Input keywords of minimum length."); +define('_MD_BASE_ERROR_YOU_MUST_UPLOAD', "You must upload an image file."); define('_MD_BASE_FORMAT_SEARCH_SEPARATOR', "/[\s,]+/"); define('_MD_BASE_LANG_ANDOR', "AndOr"); define('_MD_BASE_LANG_CLICKASMILIE', "Click a smiley to insert it into your message."); From minahito @ users.sourceforge.jp Sat Oct 7 15:50:51 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:50:51 +0900 Subject: [xoops-cvslog 4864] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20061007065051.88A5D2AC090@users.sourceforge.jp> Index: xoops2jp/html/modules/base/language/japanese/main.php diff -u xoops2jp/html/modules/base/language/japanese/main.php:1.1.2.26 xoops2jp/html/modules/base/language/japanese/main.php:1.1.2.26.2.1 --- xoops2jp/html/modules/base/language/japanese/main.php:1.1.2.26 Sat Sep 2 15:09:25 2006 +++ xoops2jp/html/modules/base/language/japanese/main.php Sat Oct 7 15:50:51 2006 @@ -8,6 +8,7 @@ define('_MD_BASE_ERROR_PERMISSION', "パーミッションエラー"); define('_MD_BASE_ERROR_REQUIRED', "{0}は必ず入力して下さい"); define('_MD_BASE_ERROR_SEARCH_QUERY_REQUIRED', "有効な長さの検索キーワードを入力してください。"); +define('_MD_BASE_ERROR_YOU_MUST_UPLOAD', "画像をアップロードしてください"); define('_MD_BASE_FORMAT_SEARCH_SEPARATOR', "/[\s, ]+/"); define('_MD_BASE_LANG_ANDOR', "AndOr"); define('_MD_BASE_LANG_CLICKASMILIE', "画像をクリックすると顔アイコン(スマイリー)を本文に追加することができます。"); From minahito @ users.sourceforge.jp Sat Oct 7 15:50:51 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:50:51 +0900 Subject: [xoops-cvslog 4865] CVS update: xoops2jp/html/modules/base/templates Message-ID: <20061007065051.B6B7B2AC073@users.sourceforge.jp> Index: xoops2jp/html/modules/base/templates/legacy_install_modules.html diff -u xoops2jp/html/modules/base/templates/legacy_install_modules.html:1.1.2.2 xoops2jp/html/modules/base/templates/legacy_install_modules.html:1.1.2.2.2.1 --- xoops2jp/html/modules/base/templates/legacy_install_modules.html:1.1.2.2 Tue Apr 11 17:39:08 2006 +++ xoops2jp/html/modules/base/templates/legacy_install_modules.html Sat Oct 7 15:50:51 2006 @@ -33,14 +33,14 @@ <{foreach item=module from=$uninstalled}> - + <{/foreach}> <{foreach item=module from=$disabled}> - + From minahito @ users.sourceforge.jp Sat Oct 7 15:51:00 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:51:00 +0900 Subject: [xoops-cvslog 4866] CVS update: xoops2jp/html/modules/base/forms Message-ID: <20061007065100.BFD7A2AC073@users.sourceforge.jp> Index: xoops2jp/html/modules/base/forms/ImageUploadForm.class.php diff -u xoops2jp/html/modules/base/forms/ImageUploadForm.class.php:1.1.2.3.2.3 xoops2jp/html/modules/base/forms/ImageUploadForm.class.php:1.1.2.3.2.4 --- xoops2jp/html/modules/base/forms/ImageUploadForm.class.php:1.1.2.3.2.3 Thu Oct 5 18:07:40 2006 +++ xoops2jp/html/modules/base/forms/ImageUploadForm.class.php Sat Oct 7 15:51:00 2006 @@ -30,8 +30,6 @@ // $this->mFieldProperties['image_name'] =& new XCube_FieldProperty($this); $this->mFieldProperties['image_name']->setDependsByArray(array('extension')); - $this->mFieldProperties['image_name']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMAGE_NAME); - $this->mFieldProperties['image_name']->addMessage('maxlength', _AD_BASE_ERROR_EXTENSION, _AD_BASE_LANG_IMAGE_NAME); $this->mFieldProperties['image_name']->addVar('extension', 'jpg,gif,png'); $this->mFieldProperties['image_nicename'] =& new XCube_FieldProperty($this); @@ -51,7 +49,7 @@ */ function validateImgcat_id() { - $imgcat_id = $this->getImgcatId(); + $imgcat_id = $this->get('imgcat_id'); if ($imgcat_id != null) { $root =& XCube_Root::getSingleton(); $xoopsUser =& $root->mController->mRoot->mContext->mXoopsUser; @@ -77,7 +75,7 @@ $formFile = $this->get('image_name'); if ($formFile == null && $this->_mIsNew ) { - $this->addErrorMessage(_MD_BASE_ERROR_REQUIRED); + $this->addErrorMessage(_MD_BASE_ERROR_YOU_MUST_UPLOAD); } } @@ -86,7 +84,7 @@ parent::validate(); $handler =& xoops_getmodulehandler('imagecategory', 'base'); - $category =& $handler->get($this->getImgcatId()); + $category =& $handler->get($this->get('imgcat_id')); $formFile = $this->get('image_name'); @@ -107,11 +105,6 @@ } } - function getImgcatId() - { - return $this->get('imgcat_id'); - } - function load(&$obj) { $this->set('image_nicename', $obj->get('image_nicename')); @@ -125,10 +118,10 @@ { $obj->set('image_nicename', $this->get('image_nicename')); $obj->set('image_display', true); - $obj->set('imgcat_id', $this->getImgcatId()); + $obj->set('imgcat_id', $this->get('imgcat_id')); $handler =& xoops_getmodulehandler('imagecategory', 'base'); - $category =& $handler->get($this->getImgcatId()); + $category =& $handler->get($this->get('imgcat_id')); $this->mFormFile = $this->get('image_name'); From minahito @ users.sourceforge.jp Sat Oct 7 15:51:07 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:51:07 +0900 Subject: [xoops-cvslog 4867] CVS update: xoops2jp/html/modules/base/admin/theme/icons Message-ID: <20061007065107.C675E2AC073@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/theme/icons/add.gif From minahito @ users.sourceforge.jp Sat Oct 7 15:51:23 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:51:23 +0900 Subject: [xoops-cvslog 4868] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20061007065123.485B82AC073@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/image_list.html diff -u xoops2jp/html/modules/base/admin/templates/image_list.html:1.1.2.16 xoops2jp/html/modules/base/admin/templates/image_list.html:1.1.2.16.2.1 --- xoops2jp/html/modules/base/admin/templates/image_list.html:1.1.2.16 Tue Sep 19 19:16:33 2006 +++ xoops2jp/html/modules/base/admin/templates/image_list.html Sat Oct 7 15:51:23 2006 @@ -7,7 +7,7 @@

<{$smarty.const._AD_BASE_LANG_IMAGE_LIST}> (<{$category->getShow('imgcat_name')}>)

<{$smarty.const._AD_BASE_LANG_IMGCAT_ID}>"> - -
<{$smarty.const._AD_BASE_LANG_IMGCAT_ID}>"> + +
From minahito @ users.sourceforge.jp Mon Oct 2 19:47:54 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 19:47:54 +0900 Subject: [xoops-cvslog 4730] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20061002104754.1531D2AC1F7@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/image_list.html diff -u xoops2jp/html/modules/base/admin/templates/image_list.html:1.1.2.17 xoops2jp/html/modules/base/admin/templates/image_list.html:1.1.2.18 --- xoops2jp/html/modules/base/admin/templates/image_list.html:1.1.2.17 Sun Oct 1 21:18:17 2006 +++ xoops2jp/html/modules/base/admin/templates/image_list.html Mon Oct 2 19:47:53 2006 @@ -7,7 +7,7 @@

<{$smarty.const._AD_BASE_LANG_IMAGE_LIST}> (<{$category->getShow('imgcat_name')}>)

From minahito @ users.sourceforge.jp Mon Oct 2 19:48:13 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 19:48:13 +0900 Subject: [xoops-cvslog 4731] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20061002104813.82A7F2AC096@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/imagecategory_list.html diff -u xoops2jp/html/modules/base/admin/templates/imagecategory_list.html:1.1.2.14 xoops2jp/html/modules/base/admin/templates/imagecategory_list.html:1.1.2.15 --- xoops2jp/html/modules/base/admin/templates/imagecategory_list.html:1.1.2.14 Sun Oct 1 21:18:17 2006 +++ xoops2jp/html/modules/base/admin/templates/imagecategory_list.html Mon Oct 2 19:48:13 2006 @@ -60,7 +60,7 @@ From minahito @ users.sourceforge.jp Mon Oct 2 19:48:26 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 19:48:26 +0900 Subject: [xoops-cvslog 4732] CVS update: xoops2jp/html/modules/base/forms Message-ID: <20061002104826.2ABB72AC096@users.sourceforge.jp> Index: xoops2jp/html/modules/base/forms/ImageUploadForm.class.php diff -u xoops2jp/html/modules/base/forms/ImageUploadForm.class.php:1.1.2.4 xoops2jp/html/modules/base/forms/ImageUploadForm.class.php:1.1.2.5 --- xoops2jp/html/modules/base/forms/ImageUploadForm.class.php:1.1.2.4 Sun Oct 1 18:47:38 2006 +++ xoops2jp/html/modules/base/forms/ImageUploadForm.class.php Mon Oct 2 19:48:26 2006 @@ -49,7 +49,7 @@ */ function validateImgcat_id() { - $imgcat_id = $this->getImgcatId(); + $imgcat_id = $this->get('imgcat_id'); if ($imgcat_id != null) { $root =& XCube_Root::getSingleton(); $xoopsUser =& $root->mController->getXoopsUser(); @@ -75,7 +75,7 @@ $formFile = $this->get('image_name'); if ($formFile == null && $this->_mIsNew ) { - $this->addErrorMessage(_MD_BASE_ERROR_REQUIRED); + $this->addErrorMessage(_MD_BASE_ERROR_YOU_MUST_UPLOAD); } } @@ -84,7 +84,7 @@ parent::validate(); $handler =& xoops_getmodulehandler('imagecategory', 'base'); - $category =& $handler->get($this->getImgcatId()); + $category =& $handler->get($this->get('imgcat_id')); $formFile = $this->get('image_name'); @@ -105,11 +105,6 @@ } } - function getImgcatId() - { - return $this->get('imgcat_id'); - } - function load(&$obj) { $this->set('image_nicename', $obj->get('image_nicename')); @@ -123,10 +118,10 @@ { $obj->set('image_nicename', $this->get('image_nicename')); $obj->set('image_display', true); - $obj->set('imgcat_id', $this->getImgcatId()); + $obj->set('imgcat_id', $this->get('imgcat_id')); $handler =& xoops_getmodulehandler('imagecategory', 'base'); - $category =& $handler->get($this->getImgcatId()); + $category =& $handler->get($this->get('imgcat_id')); $this->mFormFile = $this->get('image_name'); From tom_g3x @ users.sourceforge.jp Mon Oct 2 19:55:34 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Mon, 2 Oct 2006 19:55:34 +0900 Subject: [xoops-cvslog 4733] CVS update: xoops2jp/html/modules/base/admin/theme/icons Message-ID: <20061002105534.B035A2AC096@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/theme/icons/add.gif From minahito @ users.sourceforge.jp Mon Oct 2 22:07:33 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 22:07:33 +0900 Subject: [xoops-cvslog 4734] CVS update: xoops2jp/html/include Message-ID: <20061002130733.A14CB2AC061@users.sourceforge.jp> Index: xoops2jp/html/include/version.php diff -u xoops2jp/html/include/version.php:1.4.8.12 xoops2jp/html/include/version.php:1.4.8.13 --- xoops2jp/html/include/version.php:1.4.8.12 Fri Sep 22 18:32:09 2006 +++ xoops2jp/html/include/version.php Mon Oct 2 22:07:33 2006 @@ -1,5 +1,5 @@ \ No newline at end of file From minahito @ users.sourceforge.jp Mon Oct 2 22:16:25 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 22:16:25 +0900 Subject: [xoops-cvslog 4735] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20061002131625.A3BCC2AC061@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/ImageCreateAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/ImageCreateAction.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/actions/ImageCreateAction.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/actions/ImageCreateAction.class.php:1.1.2.1 Mon Oct 2 19:21:10 2006 +++ xoops2jp/html/modules/base/admin/actions/ImageCreateAction.class.php Mon Oct 2 22:16:25 2006 @@ -1,7 +1,7 @@ executeForward("./index.php?action=ImageList&imgcat_id=" . $this->mActionForm->get('imgcat_id')); + $controller->executeForward("./index.php?action=ImagecategoryList"); } } Index: xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php:1.1.2.10 xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php:1.1.2.11 --- xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php:1.1.2.10 Mon Oct 2 19:21:34 2006 +++ xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php Mon Oct 2 22:16:25 2006 @@ -1,7 +1,7 @@ getObjects(new Criteria('imgcat_storetype', $t_category->get('imgcat_storetype'))); $render->setAttribute('categoryArr', $categoryArr); } + + function executeViewCancel(&$controller, &$xoopsUser, $&$render) + { + $controller->executeForward('./index.php?action=ImageList&imgcat_id=' . $this->mObject->get('imgcat_id')); + } } ?> From minahito @ users.sourceforge.jp Mon Oct 2 22:24:20 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 22:24:20 +0900 Subject: [xoops-cvslog 4736] CVS update: xoops2jp/html/modules/user/language/english Message-ID: <20061002132420.E36842AC03F@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/english/main.php diff -u xoops2jp/html/modules/user/language/english/main.php:1.1.2.23 xoops2jp/html/modules/user/language/english/main.php:1.1.2.24 --- xoops2jp/html/modules/user/language/english/main.php:1.1.2.23 Sun Oct 1 18:49:10 2006 +++ xoops2jp/html/modules/user/language/english/main.php Mon Oct 2 22:24:20 2006 @@ -6,11 +6,11 @@ define('_MD_USER_ERROR_AVATAR_SIZE', "Uploaded file exceeds the dimensions limit for avatar."); define('_MD_USER_ERROR_DBUPDATE_FAILED', "Failed updating database"); define('_MD_USER_ERROR_EMAIL', "{0} is an incorrect email address"); +define('_MD_USER_ERROR_EMAILTAKEN', "Email has been taken."); define('_MD_USER_ERROR_INJURY', "The specified value {0} is wrong."); define('_MD_USER_ERROR_INVALID_EMAIL', "Invalid email"); define('_MD_USER_ERROR_MAXLENGTH', "Input {0} with {1} or less characters."); define('_MD_USER_ERROR_MINLENGTH', "Input {0} with {1} or more characters."); -define('_MD_USER_ERROR_NAME_RESERVED', "Name is reserved."); define('_MD_USER_ERROR_PASSWORD', "The passwords you gave did not match."); define('_MD_USER_ERROR_REQUIRED', "{0} is required."); define('_MD_USER_ERROR_SEND_MAIL', "Email transmission failed. Please contact site administrator."); @@ -46,7 +46,7 @@ define('_MD_USER_LANG_NEWPWDREQ', "New Password Request at %s"); define('_MD_USER_LANG_NEWUSERREGAT', "New user registration at %s"); define('_MD_USER_LANG_NICKNAME', "Username"); -define('_MD_USER_LANG_NICKNAMETAKEN', "ERROR: Username has been taken."); +define('_MD_USER_LANG_NICKNAMETAKEN', "Username has been taken."); define('_MD_USER_LANG_NO', "No"); define('_MD_USER_LANG_NOACTTPADM', "The selected user has been deactivated or has not been activated yet."); define('_MD_USER_LANG_NOPROBLEM', "No problem. Simply enter the e-mail address we have on file for your account."); From minahito @ users.sourceforge.jp Mon Oct 2 22:24:21 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 22:24:21 +0900 Subject: [xoops-cvslog 4737] CVS update: xoops2jp/html/modules/user/language/japanese Message-ID: <20061002132421.148CB2AC061@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/japanese/main.php diff -u xoops2jp/html/modules/user/language/japanese/main.php:1.1.2.25 xoops2jp/html/modules/user/language/japanese/main.php:1.1.2.26 --- xoops2jp/html/modules/user/language/japanese/main.php:1.1.2.25 Sun Oct 1 18:49:10 2006 +++ xoops2jp/html/modules/user/language/japanese/main.php Mon Oct 2 22:24:20 2006 @@ -6,11 +6,11 @@ define('_MD_USER_ERROR_AVATAR_SIZE', "アバターの画像サイズが許容サイズをオーバーしています"); define('_MD_USER_ERROR_DBUPDATE_FAILED', "データベースの更新に失敗しました"); define('_MD_USER_ERROR_EMAIL', "{0}は不正なメールアドレスです"); +define('_MD_USER_ERROR_EMAILTAKEN', "このメールアドレスは既に使用されています"); define('_MD_USER_ERROR_INJURY', "{0}の入力値が不正です"); define('_MD_USER_ERROR_INVALID_EMAIL', "不正なメールアドレスです"); define('_MD_USER_ERROR_MAXLENGTH', "{0}は半角{1}文字以内で入力して下さい"); define('_MD_USER_ERROR_MINLENGTH', "{0}は半角{1}文字以上にして下さい"); -define('_MD_USER_ERROR_NAME_RESERVED', "このユーザ名は使用できません。"); define('_MD_USER_ERROR_PASSWORD', "パスワードと確認用パスワードが一致しません"); define('_MD_USER_ERROR_REQUIRED', "{0}は必ず入力して下さい"); define('_MD_USER_ERROR_SEND_MAIL', "メールの送信に失敗しました。管理者に御連絡下さい。"); @@ -46,7 +46,7 @@ define('_MD_USER_LANG_NEWPWDREQ', "新規パスワードのリクエスト@%s"); define('_MD_USER_LANG_NEWUSERREGAT', "新規登録ユーザ@%s"); define('_MD_USER_LANG_NICKNAME', "ユーザ名"); -define('_MD_USER_LANG_NICKNAMETAKEN', "このユーザ名は既に使用されています。"); +define('_MD_USER_LANG_NICKNAMETAKEN', "このユーザ名は既に使用されています"); define('_MD_USER_LANG_NO', "いいえ"); define('_MD_USER_LANG_NOACTTPADM', "選択されたユーザはまだ存在しないか、承認が完了していません。"); define('_MD_USER_LANG_NOPROBLEM', "ご心配なく。まずはあなたが登録に使用したメールアドレスを入力し、ボタンをクリックしてください。 パスワード取得用のリンクが記載されたメールがあなたの登録メールアドレス宛に送られます。"); From minahito @ users.sourceforge.jp Mon Oct 2 22:24:49 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 22:24:49 +0900 Subject: [xoops-cvslog 4738] CVS update: xoops2jp/html/modules/user/forms Message-ID: <20061002132449.74FCC2AC03F@users.sourceforge.jp> Index: xoops2jp/html/modules/user/forms/AbstractUserEditForm.class.php diff -u xoops2jp/html/modules/user/forms/AbstractUserEditForm.class.php:1.1.2.11 xoops2jp/html/modules/user/forms/AbstractUserEditForm.class.php:1.1.2.12 --- xoops2jp/html/modules/user/forms/AbstractUserEditForm.class.php:1.1.2.11 Sun Aug 27 01:50:27 2006 +++ xoops2jp/html/modules/user/forms/AbstractUserEditForm.class.php Mon Oct 2 22:24:49 2006 @@ -25,7 +25,7 @@ // $userHandler=&xoops_gethandler('user'); $criteria =& new CriteriaCompo(new Criteria('uname', $this->get('uname'))); - if ($this->get('uid')) { + if ($this->get('uid') > 0) { $criteria->add(new Criteria('uid', $this->get('uid'), '<>')); } if ($userHandler->getCount($criteria) > 0) { @@ -71,9 +71,21 @@ foreach ($this->mConfig['bad_emails'] as $t_email) { if (!empty($t_email) && preg_match("/${t_email}/i", $this->get('email'))) { $this->addErrorMessage(_MD_USER_ERROR_INVALID_EMAIL); - break; + return; } } + + // + // email unique check + // + $userHandler=&xoops_gethandler('user'); + $criteria =& new CriteriaCompo(new Criteria('email', $this->get('email'))); + if ($this->get('uid') > 0) { + $criteria->add(new Criteria('uid', $this->get('uid'), '<>')); + } + if ($userHandler->getCount($criteria) > 0) { + $this->addErrorMessage(_MD_USER_ERROR_EMAILTAKEN); + } } } From minahito @ users.sourceforge.jp Mon Oct 2 22:28:34 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 22:28:34 +0900 Subject: [xoops-cvslog 4739] CVS update: xoops2jp/html/install/sql Message-ID: <20061002132834.8F8162AC061@users.sourceforge.jp> Index: xoops2jp/html/install/sql/mysql.data.sql diff -u xoops2jp/html/install/sql/mysql.data.sql:1.1.8.1 xoops2jp/html/install/sql/mysql.data.sql:1.1.8.2 --- xoops2jp/html/install/sql/mysql.data.sql:1.1.8.1 Fri Aug 25 19:13:55 2006 +++ xoops2jp/html/install/sql/mysql.data.sql Mon Oct 2 22:28:34 2006 @@ -13,7 +13,7 @@ # Dumping data for table `bannerclient` # -INSERT INTO bannerclient VALUES (0, 'XOOPS', 'XOOPS Dev Team', 'webmaster @ xoops.org', '', '', ''); +INSERT INTO bannerclient VALUES (0, 'Sample client', 'XOOPS Project Team', '', '', '', ''); # # Dumping data for table `bannerfinish` From minahito @ users.sourceforge.jp Mon Oct 2 22:48:51 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 22:48:51 +0900 Subject: [xoops-cvslog 4740] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20061002134851.6262F2AC053@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php diff -u xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php:1.1.2.9 xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php:1.1.2.10 --- xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php:1.1.2.9 Mon Sep 25 18:39:41 2006 +++ xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php Mon Oct 2 22:48:51 2006 @@ -1,7 +1,7 @@ mObject->isAdmin()) { //< FIXME + if ($xoopsUser->isAdmin()) { //< FIXME return true; } elseif ($this->mObject->get('uid') == $xoopsUser->get('uid')) { From minahito @ users.sourceforge.jp Mon Oct 2 23:03:32 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 23:03:32 +0900 Subject: [xoops-cvslog 4741] CVS update: xoops2jp/html/modules/base/admin Message-ID: <20061002140332.887E12AC053@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/css.php diff -u xoops2jp/html/modules/base/admin/css.php:1.1.2.8 xoops2jp/html/modules/base/admin/css.php:1.1.2.9 --- xoops2jp/html/modules/base/admin/css.php:1.1.2.8 Fri Aug 18 21:03:33 2006 +++ xoops2jp/html/modules/base/admin/css.php Mon Oct 2 23:03:32 2006 @@ -1,7 +1,6 @@ Index: xoops2jp/html/modules/legacyRender/admin/forms/BannerAdminEditForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/BannerAdminEditForm.class.php:1.1.2.3 xoops2jp/html/modules/legacyRender/admin/forms/BannerAdminEditForm.class.php:1.1.2.4 --- xoops2jp/html/modules/legacyRender/admin/forms/BannerAdminEditForm.class.php:1.1.2.3 Mon Jul 10 16:24:22 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/BannerAdminEditForm.class.php Mon Oct 2 23:15:52 2006 @@ -1,7 +1,7 @@ mFieldProperties['bid']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_BID); $this->mFieldProperties['cid'] =& new XCube_FieldProperty($this); - $this->mFieldProperties['cid']->setDependsByArray(array('required','objectExsist')); + $this->mFieldProperties['cid']->setDependsByArray(array('required','objectExist')); $this->mFieldProperties['cid']->addMessage('required', _AD_LEGACYRENDER_ERROR_REQUIRED, _AD_LEGACYRENDER_LANG_CID); $this->mFieldProperties['cid']->addMessage('objectExist', _AD_LEGACYRENDER_ERROR_OBJECT_EXIST, _AD_LEGACYRENDER_LANG_CID); $this->mFieldProperties['cid']->addVar('handler', 'bannerclient'); From minahito @ users.sourceforge.jp Mon Oct 2 23:15:59 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 23:15:59 +0900 Subject: [xoops-cvslog 4743] CVS update: xoops2jp/html/modules/legacyRender/admin/forms Message-ID: <20061002141559.C0D1B2AC03F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/forms/BannerclientAdminEditForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/BannerclientAdminEditForm.class.php:1.1.2.3 xoops2jp/html/modules/legacyRender/admin/forms/BannerclientAdminEditForm.class.php:1.1.2.4 --- xoops2jp/html/modules/legacyRender/admin/forms/BannerclientAdminEditForm.class.php:1.1.2.3 Mon Jul 10 14:57:21 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/BannerclientAdminEditForm.class.php Mon Oct 2 23:15:59 2006 @@ -1,7 +1,7 @@ get('login')) > 0) { $handler =& xoops_getmodulehandler('bannerclient', 'legacyRender'); - $t_objs =& $handler->getObjects(new Criteria('login', $this->get('login'))); - if (count($t_objs) > 0) { + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('login', $this->get('login'))); + $criteria->add(new Criteria('cid', $this->get('cid'), '<>')); + + if ($handler->getCount($criteria) > 0) { $this->addErrorMessage(_AD_LEGACYRENDER_ERROR_LOGIN_REPETITION); } } From minahito @ users.sourceforge.jp Mon Oct 2 23:16:10 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 23:16:10 +0900 Subject: [xoops-cvslog 4744] CVS update: xoops2jp/html/modules/legacyRender/class Message-ID: <20061002141610.A78742AC03F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/class/bannerclient.php diff -u xoops2jp/html/modules/legacyRender/class/bannerclient.php:1.1.2.3 xoops2jp/html/modules/legacyRender/class/bannerclient.php:1.1.2.4 --- xoops2jp/html/modules/legacyRender/class/bannerclient.php:1.1.2.3 Mon Jul 10 14:54:45 2006 +++ xoops2jp/html/modules/legacyRender/class/bannerclient.php Mon Oct 2 23:16:10 2006 @@ -7,6 +7,9 @@ var $mBanners = array(); var $_mBannersLoadedFlag = false; + /** + * @todo A name of this property is a strange. banner finish? + */ var $mFinishBanners = array(); var $_mFinishBannersLoadedFlag = false; @@ -55,10 +58,10 @@ function loadBannerfinish() { - if ($this->_mBannerfinishCountFlag == false) { + if ($this->_mFinishBannersLoadedFlag == false) { $handler =& xoops_getmodulehandler('bannerfinish', 'legacyRender'); $this->mFinishBanners =& $handler->getObjects(new Criteria('cid', $this->get('cid'))); - $this->_mBannerfinishCountLoadedFlag = true; + $this->_mFinishBannersLoadedFlag = true; } } From minahito @ users.sourceforge.jp Mon Oct 2 23:23:29 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 2 Oct 2006 23:23:29 +0900 Subject: [xoops-cvslog 4745] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061002142329.5992E2AC03F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.80 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79 Mon Sep 25 12:22:52 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Mon Oct 2 23:23:29 2006 @@ -1,7 +1,7 @@ mModuleController->isModuleProcess()) { if (!$this->mModuleController->isActive()) { - die('NOT ACTIVE'); ///< @todo + /** + * Notify that the current user accesses none-activate module + * controller. + */ + XCube_DelegateUtils::call('Legacy.Event.ModuleNotActive'); + $this->executeForward(XOOPS_URL); + die(); } if (!$this->mModuleController->hasPermission()) { From minahito @ users.sourceforge.jp Tue Oct 3 01:22:51 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 3 Oct 2006 01:22:51 +0900 Subject: [xoops-cvslog 4746] CVS update: xoops2jp/html/include Message-ID: <20061002162251.15EDB2AC053@users.sourceforge.jp> Index: xoops2jp/html/include/version.php diff -u xoops2jp/html/include/version.php:1.4.8.13 xoops2jp/html/include/version.php:1.4.8.14 --- xoops2jp/html/include/version.php:1.4.8.13 Mon Oct 2 22:07:33 2006 +++ xoops2jp/html/include/version.php Tue Oct 3 01:22:50 2006 @@ -1,5 +1,5 @@ \ No newline at end of file From minahito @ users.sourceforge.jp Tue Oct 3 12:35:54 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 3 Oct 2006 12:35:54 +0900 Subject: [xoops-cvslog 4747] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20061003033554.E4F622AC10F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/imagecategory_list.html diff -u xoops2jp/html/modules/base/admin/templates/imagecategory_list.html:1.1.2.15 xoops2jp/html/modules/base/admin/templates/imagecategory_list.html:1.1.2.16 --- xoops2jp/html/modules/base/admin/templates/imagecategory_list.html:1.1.2.15 Mon Oct 2 19:48:13 2006 +++ xoops2jp/html/modules/base/admin/templates/imagecategory_list.html Tue Oct 3 12:35:54 2006 @@ -53,7 +53,11 @@ From minahito @ users.sourceforge.jp Tue Oct 3 14:39:37 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 3 Oct 2006 14:39:37 +0900 Subject: [xoops-cvslog 4748] CVS update: xoops2jp/html/modules/user/admin/forms Message-ID: <20061003053937.A4BE02AC157@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php diff -u xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php:1.1.2.9 xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php:1.1.2.10 --- xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php:1.1.2.9 Sun Oct 1 18:55:34 2006 +++ xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php Tue Oct 3 14:39:37 2006 @@ -1,7 +1,7 @@ mFieldProperties['rank_image'] =& new XCube_FieldProperty($this); $this->mFieldProperties['rank_image']->setDependsByArray(array('extension')); - $this->mFieldProperties['rank_image']->addMessage('extension', _MD_USER_ERROR_AVATAR_EXTENSION, _MD_USER_LANG_RANK_IMAGE); + $this->mFieldProperties['rank_image']->addMessage('extension', _MD_USER_ERROR_AVATAR_EXTENSION, _AD_USER_LANG_RANK_IMAGE); $this->mFieldProperties['rank_image']->addVar('extension', "gif,png,jpg"); } From minahito @ users.sourceforge.jp Tue Oct 3 14:39:51 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 3 Oct 2006 14:39:51 +0900 Subject: [xoops-cvslog 4749] CVS update: xoops2jp/html/modules/user/admin/forms Message-ID: <20061003053951.126A72AC157@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php diff -u xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.16 xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.17 --- xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.16 Sun Sep 24 14:33:26 2006 +++ xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php Tue Oct 3 14:39:50 2006 @@ -1,7 +1,7 @@ mFieldProperties['email']->setDependsByArray(array('required', 'maxlength', 'email')); $this->mFieldProperties['email']->addMessage('maxlength', _MD_USER_ERROR_MAXLENGTH, _MD_USER_LANG_EMAIL, '60'); $this->mFieldProperties['email']->addVar('maxlength', 60); - $this->mFieldProperties['email']->addMessage('email', _MD_USER_ERROR_EMAIL_FORMAT, _MD_USER_LANG_EMAIL); + $this->mFieldProperties['email']->addMessage('email', _MD_USER_ERROR_EMAIL, _MD_USER_LANG_EMAIL); $this->mFieldProperties['url'] =& new XCube_FieldProperty($this); $this->mFieldProperties['url']->setDependsByArray(array('maxlength')); From minahito @ users.sourceforge.jp Tue Oct 3 14:40:10 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 3 Oct 2006 14:40:10 +0900 Subject: [xoops-cvslog 4750] CVS update: xoops2jp/html/modules/stdCache/blocks Message-ID: <20061003054012.1A7A62AC157@users.sourceforge.jp> Index: xoops2jp/html/modules/stdCache/blocks/cacheclear.php diff -u xoops2jp/html/modules/stdCache/blocks/cacheclear.php:1.1.2.2 xoops2jp/html/modules/stdCache/blocks/cacheclear.php:1.1.2.3 --- xoops2jp/html/modules/stdCache/blocks/cacheclear.php:1.1.2.2 Sun Oct 1 18:48:30 2006 +++ xoops2jp/html/modules/stdCache/blocks/cacheclear.php Tue Oct 3 14:40:10 2006 @@ -11,7 +11,7 @@ if($handler = opendir(XOOPS_CACHE_PATH)) { while(($file = readdir($handler)) !== false) { if(preg_match("/\w+\.cache\.html$/", $file, $matches)) { - @unlink($matches[0]); + @unlink(XOOPS_CACHE_PATH . "/" . $matches[0]); } } closedir($handler); From minahito @ users.sourceforge.jp Tue Oct 3 14:40:25 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 3 Oct 2006 14:40:25 +0900 Subject: [xoops-cvslog 4751] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20061003054025.0511B2AC157@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/preference_edit.html diff -u xoops2jp/html/modules/base/admin/templates/preference_edit.html:1.1.2.22 xoops2jp/html/modules/base/admin/templates/preference_edit.html:1.1.2.23 --- xoops2jp/html/modules/base/admin/templates/preference_edit.html:1.1.2.22 Sun Sep 24 15:53:12 2006 +++ xoops2jp/html/modules/base/admin/templates/preference_edit.html Tue Oct 3 14:40:24 2006 @@ -48,7 +48,7 @@ <{foreach item=config from=$objectArr}> - +
<{$obj->getImageCount()|escape}> " alt="<{$smarty.const._AD_BASE_LANG_LIST}>" title="<{$smarty.const._AD_BASE_LANG_LIST}>" /> - " alt="<{$smarty.const._AD_BASE_LANG_IMAGE_NEW}>" title="<{$smarty.const._AD_BASE_LANG_IMAGE_NEW}>" /> + " alt="<{$smarty.const._AD_BASE_LANG_IMAGE_NEW}>" title="<{$smarty.const._AD_BASE_LANG_IMAGE_NEW}>" /> " alt="<{$smarty.const._EDIT}>" title="<{$smarty.const._EDIT}>" /> " alt="<{$smarty.const._DELETE}>" title="<{$smarty.const._DELETE}>" /> <{$obj->get('imgcat_maxwidth')|number_format}> <{$obj->get('imgcat_maxheight')|number_format}> - <{if $obj->getShow('imgcat_display') == 1}><{$smarty.const._YES}><{else}><{$smarty.const._YES}><{/if}> + <{if $obj->get('imgcat_display') == 1}> + <{$smarty.const._YES}> + <{else}> + <{$smarty.const._NO}> + <{/if}> <{$obj->getShow('imgcat_weight')}> <{$obj->getShow('imgcat_storetype')}>
-
<{$config->getTitle()|escape}> +
<{$config->getTitle()}> <{if $config->get('conf_desc') != null}>

<{$config->getDesc()}>

<{/if}> From minahito @ users.sourceforge.jp Tue Oct 3 17:17:55 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 3 Oct 2006 17:17:55 +0900 Subject: [xoops-cvslog 4752] CVS update: xoops2jp/html/modules/pm/class Message-ID: <20061003081755.95B0A2AC0AA@users.sourceforge.jp> Index: xoops2jp/html/modules/pm/class/priv_msgs.php diff -u /dev/null xoops2jp/html/modules/pm/class/priv_msgs.php:1.1.2.1 --- /dev/null Tue Oct 3 17:17:55 2006 +++ xoops2jp/html/modules/pm/class/priv_msgs.php Tue Oct 3 17:17:55 2006 @@ -0,0 +1,31 @@ +initVar('msg_id', XOBJ_DTYPE_INT, '', true); + $this->initVar('msg_image', XOBJ_DTYPE_STRING, '', false, 100); + $this->initVar('subject', XOBJ_DTYPE_STRING, '', true, 255); + $this->initVar('from_userid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('to_userid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('msg_time', XOBJ_DTYPE_INT, '0', true); + $this->initVar('msg_text', XOBJ_DTYPE_TEXT, '', true); + $this->initVar('read_msg', XOBJ_DTYPE_BOOL, '0', true); + } +} + +class PmPriv_msgsHandler extends XoopsObjectGenericHandler +{ + var $mTable = "priv_msgs"; + var $mPrimary = "msg_id"; + var $mClass = "PmPriv_msgsObject"; +} + +?> From minahito @ users.sourceforge.jp Tue Oct 3 17:28:51 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 3 Oct 2006 17:28:51 +0900 Subject: [xoops-cvslog 4753] CVS update: xoops2jp/html/kernel Message-ID: <20061003082851.124FB2AC204@users.sourceforge.jp> Index: xoops2jp/html/kernel/object.php diff -u xoops2jp/html/kernel/object.php:1.2.8.12 xoops2jp/html/kernel/object.php:1.2.8.13 --- xoops2jp/html/kernel/object.php:1.2.8.12 Tue Aug 1 17:25:16 2006 +++ xoops2jp/html/kernel/object.php Tue Oct 3 17:28:50 2006 @@ -1,5 +1,5 @@ getVar($key, 's'); } + /** + * Sets $value to $key property. This method calls setVar(), but make + * not_gpc true for the compatibility with XoopsSimpleObject. + * @param string $key + * @param mixed $value + */ function set($key, $value) { - $this->setVar($key, $value); + $this->setVar($key, $value, true); } function get($key) From minahito @ users.sourceforge.jp Tue Oct 3 17:38:38 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 3 Oct 2006 17:38:38 +0900 Subject: [xoops-cvslog 4754] CVS update: xoops2jp/html/modules/pm/forms Message-ID: <20061003083838.2CC7E2AC208@users.sourceforge.jp> Index: xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php diff -u xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php:1.1.2.10 xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php:1.1.2.11 --- xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php:1.1.2.10 Sun Sep 10 19:39:14 2006 +++ xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php Tue Oct 3 17:38:38 2006 @@ -100,9 +100,9 @@ function update(&$obj) { - $obj->setVar('to_userid', $this->get('to_userid')); - $obj->setVar('subject', $this->get('subject')); - $obj->setVar('msg_text', $this->get('message')); + $obj->set('to_userid', $this->get('to_userid')); + $obj->set('subject', $this->get('subject')); + $obj->set('msg_text', $this->get('message')); } function resetToUser() @@ -164,9 +164,9 @@ function update(&$obj) { - $obj->setVar('to_userid', $this->_mUid); - $obj->setVar('subject', $this->get('subject')); - $obj->setVar('msg_text', $this->get('message')); + $obj->set('to_userid', $this->_mUid); + $obj->set('subject', $this->get('subject')); + $obj->set('msg_text', $this->get('message')); } function resetToUser() From minahito @ users.sourceforge.jp Tue Oct 3 17:38:49 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 3 Oct 2006 17:38:49 +0900 Subject: [xoops-cvslog 4755] CVS update: xoops2jp/html/modules/pm/actions Message-ID: <20061003083849.BBA872AC208@users.sourceforge.jp> Index: xoops2jp/html/modules/pm/actions/PmliteAction.class.php diff -u xoops2jp/html/modules/pm/actions/PmliteAction.class.php:1.1.2.3 xoops2jp/html/modules/pm/actions/PmliteAction.class.php:1.1.2.4 --- xoops2jp/html/modules/pm/actions/PmliteAction.class.php:1.1.2.3 Thu Aug 17 18:09:51 2006 +++ xoops2jp/html/modules/pm/actions/PmliteAction.class.php Tue Oct 3 17:38:49 2006 @@ -1,7 +1,7 @@ Index: xoops2jp/html/modules/base/kernel/Legacy_AdminRenderSystem.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.12 xoops2jp/html/modules/base/kernel/Legacy_AdminRenderSystem.class.php:removed --- xoops2jp/html/modules/base/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.12 Fri Aug 25 19:14:46 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_AdminRenderSystem.class.php Tue Oct 3 18:29:40 2006 @@ -1,353 +0,0 @@ -compile_id = null; - $this->_canUpdateFromFile = true; - $this->compile_check = true; - $this->compile_dir = XOOPS_COMPILE_PATH; - $this->left_delimiter = "<{"; - $this->right_delimiter = "}>"; - - // - // [TODO] - // If we don't set true to the following flag, a user can not recover - // with deleting additional theme. But, a user should to select true or - // false by site_custom.ini.php. - // - $this->force_compile = false; - } - - function setModulePrefix($prefix) - { - $this->mModulePrefix = $prefix; - } - - function _get_auto_filename($autoBase, $autoSource = null, $auotId = null) - { - $autoSource = $this->mModulePrefix . "_admin_" . $autoSource; - return parent::_get_auto_filename($autoBase, $autoSource, $auotId); - } - - function _fetch_resource_info(&$params) - { - $_return = false; - - $root =& XCube_Root::getSingleton(); - $theme = $root->mSiteConfig['Legacy']['Theme']; - $dirname = $this->mModulePrefix; - - if ($dirname != null) { - $params['resource_base_path'] = XOOPS_THEME_PATH . "/" . $theme . "/modules/" . $dirname; - $params['quiet'] = true; - - $_return = parent::_fetch_resource_info($params); - } - - if (!$_return) { - unset ($params['resource_base_path']); - $params['quiet'] = false; - - $_return = parent::_fetch_resource_info($params); - } - - return $_return; - } - -} - -/** - * [TODO] - * We depends on Legacy_RenderSystem that a add-in module defines. We must stop - * this situation. - */ -class Legacy_AdminRenderSystem extends Legacy_RenderSystem -{ - var $mController; - var $mSmarty; - - /** - * This is the buffer which stores standard output when the render-target - * in renderMain() doesn't use a template. - * - * @access private - * @var string - */ - var $_mStdoutBuffer = null; - - function prepare(&$controller) - { - $this->mController =& $controller; - - $this->mSmarty =& new Legacy_AdminSmarty(); - $this->mSmarty->register_modifier("theme", "Legacy_modifier_theme"); - $this->mSmarty->register_function("stylesheet", "Legacy_function_stylesheet"); - - $this->mSmarty->assign(array( - "xoops_url" => XOOPS_URL, - "xoops_rootpath" => XOOPS_ROOT_PATH, - "xoops_langcode" => _LANGCODE, - "xoops_charset" => _CHARSET, - "xoops_version" => XOOPS_VERSION, - "xoops_upload_url" => XOOPS_UPLOAD_URL) - ); - - if ($controller->getConfig('theme_fromfile')) { - $this->mSmarty->force_compile = true; - } - } - - function renderBlock(&$target) - { - $this->mSmarty->template_dir = XOOPS_ROOT_PATH . "/modules/base/admin/templates"; - - foreach ($target->getAttributes() as $key => $value) { - $this->mSmarty->assign($key, $value); - } - - $this->mSmarty->setModulePrefix("base"); - $result = $this->mSmarty->fetch("blocks/" . $target->getTemplateName()); - $target->setResult($result); - - // - // Reset - // - foreach($target->getAttributes() as $key => $value) { - $this->mSmarty->clear_assign($key); - } - } - - function renderTheme(&$target) - { - // - // Assign from attributes of the render-target. - // - foreach($target->getAttributes() as $key=>$value) { - $this->mSmarty->assign($key,$value); - } - - $this->mSmarty->assign('stdout_buffer', $this->_mStdoutBuffer); - - // - // Get a virtual current module object from the controller and assign it. - // - $moduleObject =& $this->mController->getVirtualCurrentModule(); - $this->mSmarty->assign("currentModule", $moduleObject); - - // - // Other attributes - // - $this->mSmarty->assign('xoops_sitename', htmlspecialchars($this->mController->getConfig('sitename'), ENT_QUOTES)); - $this->mSmarty->assign('xoops_slogan', htmlspecialchars($this->mController->getConfig('slogan'), ENT_QUOTES)); - - // - // Theme rendering - // - $blocks = array(); - foreach($this->mController->mBlockContents[0] as $key => $result) { - // $this->mSmarty->append('xoops_lblocks', $result); - $blocks[$result['name']] = $result; - } - $this->mSmarty->assign('xoops_lblocks', $blocks); - - // - // Check Theme or Fallback - // - $root =& XCube_Root::getSingleton(); - $theme = $root->mSiteConfig['Legacy']['Theme']; - - if (file_exists(XOOPS_ROOT_PATH."/themes/".$theme."/admin_theme.html")) { - $this->mSmarty->template_dir=XOOPS_THEME_PATH."/".$theme; - } - else { - $this->mSmarty->template_dir=LEGACY_ADMIN_RENDER_FALLBACK_PATH; - } - - $this->mSmarty->setModulePrefix(''); - $result=$this->mSmarty->fetch("file:admin_theme.html"); - - $target->setResult($result); - } - - function renderMain(&$target) - { - // - // Assign from attributes of the render-target. - // - foreach ($target->getAttributes() as $key=>$value) { - $this->mSmarty->assign($key, $value); - } - - $result = null; - - if ($target->getTemplateName()) { - if ($target->getModuleName()) { - $this->mSmarty->setModulePrefix($target->getModuleName()); - $this->mSmarty->template_dir = XOOPS_MODULE_PATH . "/" . $target->getModuleName() . "/admin/". LEGACY_ADMIN_RENDER_TEMPLATE_DIRNAME; - } - - $result=$this->mSmarty->fetch("file:".$target->getTemplateName()); - $buffer = $target->getAttribute("stdout_buffer"); - - $this->_mStdoutBuffer .= $buffer; - } - else { - $result=$target->getAttribute("stdout_buffer"); - } - - $target->setResult($result); - - // - // Clear assign. - // - foreach ($target->getAttributes() as $key=>$value) { - $this->mSmarty->clear_assign($key); - } - } -} - -/** - * Return URL string by "overriding" rule. - * (Now, test implement) - * 1) Search file in specified theme directory. - * 2) Search file in current module template directory. - * 3) Search file in fallback theme directory. - */ -function Legacy_modifier_theme($string) -{ - $infoArr = Legacy_get_ovveride_file($string); - - if ($infoArr['theme'] != null && $infoArr['dirname'] != null) { - return XOOPS_THEME_URL . "/" . $infoArr['theme'] . "/modules/" . $infoArr['dirname'] . "/" . $string; - } - elseif ($infoArr['theme'] != null) { - return XOOPS_THEME_URL . "/" . $infoArr['theme'] . "/" . $string; - } - elseif ($infoArr['dirname'] != null) { - return XOOPS_MODULE_URL . "/" . $infoArr['dirname'] . "/admin/templates/" . $string; - } - - return LEGACY_ADMIN_RENDER_FALLBACK_URL . "/" . $string; -} - -function Legacy_function_stylesheet($params, &$smarty) -{ - $file = $params['file']; - if (strstr($file, "..") !== false) { - return; - } - - $media = (isset($params['media'])) ? $params['media'] : "all"; - - $infoArr = Legacy_get_ovveride_file($file, "stylesheets/"); - - // TEMP - // TODO We must return FALLBACK_URL here. - if ($infoArr['file'] != null) { - $request = array(); - foreach ($infoArr as $key => $value) { - if ($value != null) { - $request[] = "${key}=${value}"; - } - } - $url = XOOPS_MODULE_URL . "/base/admin/css.php?" . implode("&", $request); - print ''; - } -} - -function Legacy_get_ovveride_file($file, $prefix = null, $isSpDirname = false) -{ - $root =& XCube_Root::getSingleton(); - $modController =& $root->mController->getModuleController(); - $moduleObject =& $modController->getXoopsModule(); - - if ($isSpDirname && is_object($moduleObject) && $moduleObject->get('dirname') == 'base' && isset($_REQUEST['dirname'])) { - if (preg_match("/^[a-z0-9_]+$/i", xoops_getrequest('dirname'))) { - $handler =& xoops_gethandler('module'); - $moduleObject =& $handler->getByDirname(xoops_getrequest('dirname')); - } - } - - $theme = $root->mSiteConfig['Legacy']['Theme']; - - $ret = array(); - $ret['theme'] = $theme; - $ret['file'] = $file; - - $file = $prefix . $file; - - if (!is_object($moduleObject)) { - $themePath = XOOPS_THEME_PATH . "/" . $theme . "/" . $file; - if (file_exists($themePath)) { - return $ret; - } - - $ret['theme'] = null; - return $ret; - } - else { - $dirname = $moduleObject->get('dirname'); - - $ret['dirname'] = $dirname; - - $themePath = XOOPS_THEME_PATH . "/" . $theme . "/modules/" . $dirname . "/" . $file; - if (file_exists($themePath)) { - return $ret; - } - - $themePath = XOOPS_THEME_PATH . "/" . $theme . "/" . $file; - if (file_exists($themePath)) { - $ret['dirname'] = null; - return $ret; - } - - $ret['theme'] = null; - - $modulePath = XOOPS_MODULE_PATH . "/" . $dirname . "/admin/templates/" . $file; - if (file_exists($modulePath)) { - return $ret; - } - - $ret['dirname'] = null; - - if (file_exists(LEGACY_ADMIN_RENDER_FALLBACK_PATH . "/" . $file)) { - return $ret; - } - - $ret['file'] =null; - return $ret; - } -} - -?> \ No newline at end of file From minahito @ users.sourceforge.jp Tue Oct 3 18:30:07 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 3 Oct 2006 18:30:07 +0900 Subject: [xoops-cvslog 4757] CVS update: xoops2jp/html/settings Message-ID: <20061003093007.0CF0C2AC15E@users.sourceforge.jp> Index: xoops2jp/html/settings/site_default.ini.php diff -u xoops2jp/html/settings/site_default.ini.php:1.1.2.17 xoops2jp/html/settings/site_default.ini.php:1.1.2.17.2.1 --- xoops2jp/html/settings/site_default.ini.php:1.1.2.17 Sun Sep 24 23:07:34 2006 +++ xoops2jp/html/settings/site_default.ini.php Tue Oct 3 18:30:06 2006 @@ -44,7 +44,7 @@ SystemTemplatePrefix=legacy [Legacy_AdminRenderSystem] -path=/modules/base/kernel +path=/modules/legacyRender/kernel class=Legacy_AdminRenderSystem */ From minahito @ users.sourceforge.jp Tue Oct 3 18:30:17 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 3 Oct 2006 18:30:17 +0900 Subject: [xoops-cvslog 4758] CVS update: xoops2jp/html/modules/legacyRender/kernel Message-ID: <20061003093017.6BE912AC15E@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php diff -u /dev/null xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.1 --- /dev/null Tue Oct 3 18:30:17 2006 +++ xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php Tue Oct 3 18:30:17 2006 @@ -0,0 +1,353 @@ +compile_id = null; + $this->_canUpdateFromFile = true; + $this->compile_check = true; + $this->compile_dir = XOOPS_COMPILE_PATH; + $this->left_delimiter = "<{"; + $this->right_delimiter = "}>"; + + // + // [TODO] + // If we don't set true to the following flag, a user can not recover + // with deleting additional theme. But, a user should to select true or + // false by site_custom.ini.php. + // + $this->force_compile = false; + } + + function setModulePrefix($prefix) + { + $this->mModulePrefix = $prefix; + } + + function _get_auto_filename($autoBase, $autoSource = null, $auotId = null) + { + $autoSource = $this->mModulePrefix . "_admin_" . $autoSource; + return parent::_get_auto_filename($autoBase, $autoSource, $auotId); + } + + function _fetch_resource_info(&$params) + { + $_return = false; + + $root =& XCube_Root::getSingleton(); + $theme = $root->mSiteConfig['Legacy']['Theme']; + $dirname = $this->mModulePrefix; + + if ($dirname != null) { + $params['resource_base_path'] = XOOPS_THEME_PATH . "/" . $theme . "/modules/" . $dirname; + $params['quiet'] = true; + + $_return = parent::_fetch_resource_info($params); + } + + if (!$_return) { + unset ($params['resource_base_path']); + $params['quiet'] = false; + + $_return = parent::_fetch_resource_info($params); + } + + return $_return; + } + +} + +/** + * [TODO] + * We depends on Legacy_RenderSystem that a add-in module defines. We must stop + * this situation. + */ +class Legacy_AdminRenderSystem extends Legacy_RenderSystem +{ + var $mController; + var $mSmarty; + + /** + * This is the buffer which stores standard output when the render-target + * in renderMain() doesn't use a template. + * + * @access private + * @var string + */ + var $_mStdoutBuffer = null; + + function prepare(&$controller) + { + $this->mController =& $controller; + + $this->mSmarty =& new Legacy_AdminSmarty(); + $this->mSmarty->register_modifier("theme", "Legacy_modifier_theme"); + $this->mSmarty->register_function("stylesheet", "Legacy_function_stylesheet"); + + $this->mSmarty->assign(array( + "xoops_url" => XOOPS_URL, + "xoops_rootpath" => XOOPS_ROOT_PATH, + "xoops_langcode" => _LANGCODE, + "xoops_charset" => _CHARSET, + "xoops_version" => XOOPS_VERSION, + "xoops_upload_url" => XOOPS_UPLOAD_URL) + ); + + if ($controller->getConfig('theme_fromfile')) { + $this->mSmarty->force_compile = true; + } + } + + function renderBlock(&$target) + { + $this->mSmarty->template_dir = XOOPS_ROOT_PATH . "/modules/base/admin/templates"; + + foreach ($target->getAttributes() as $key => $value) { + $this->mSmarty->assign($key, $value); + } + + $this->mSmarty->setModulePrefix("base"); + $result = $this->mSmarty->fetch("blocks/" . $target->getTemplateName()); + $target->setResult($result); + + // + // Reset + // + foreach($target->getAttributes() as $key => $value) { + $this->mSmarty->clear_assign($key); + } + } + + function renderTheme(&$target) + { + // + // Assign from attributes of the render-target. + // + foreach($target->getAttributes() as $key=>$value) { + $this->mSmarty->assign($key,$value); + } + + $this->mSmarty->assign('stdout_buffer', $this->_mStdoutBuffer); + + // + // Get a virtual current module object from the controller and assign it. + // + $moduleObject =& $this->mController->getVirtualCurrentModule(); + $this->mSmarty->assign("currentModule", $moduleObject); + + // + // Other attributes + // + $this->mSmarty->assign('xoops_sitename', htmlspecialchars($this->mController->getConfig('sitename'), ENT_QUOTES)); + $this->mSmarty->assign('xoops_slogan', htmlspecialchars($this->mController->getConfig('slogan'), ENT_QUOTES)); + + // + // Theme rendering + // + $blocks = array(); + foreach($this->mController->mBlockContents[0] as $key => $result) { + // $this->mSmarty->append('xoops_lblocks', $result); + $blocks[$result['name']] = $result; + } + $this->mSmarty->assign('xoops_lblocks', $blocks); + + // + // Check Theme or Fallback + // + $root =& XCube_Root::getSingleton(); + $theme = $root->mSiteConfig['Legacy']['Theme']; + + if (file_exists(XOOPS_ROOT_PATH."/themes/".$theme."/admin_theme.html")) { + $this->mSmarty->template_dir=XOOPS_THEME_PATH."/".$theme; + } + else { + $this->mSmarty->template_dir=LEGACY_ADMIN_RENDER_FALLBACK_PATH; + } + + $this->mSmarty->setModulePrefix(''); + $result=$this->mSmarty->fetch("file:admin_theme.html"); + + $target->setResult($result); + } + + function renderMain(&$target) + { + // + // Assign from attributes of the render-target. + // + foreach ($target->getAttributes() as $key=>$value) { + $this->mSmarty->assign($key, $value); + } + + $result = null; + + if ($target->getTemplateName()) { + if ($target->getModuleName()) { + $this->mSmarty->setModulePrefix($target->getModuleName()); + $this->mSmarty->template_dir = XOOPS_MODULE_PATH . "/" . $target->getModuleName() . "/admin/". LEGACY_ADMIN_RENDER_TEMPLATE_DIRNAME; + } + + $result=$this->mSmarty->fetch("file:".$target->getTemplateName()); + $buffer = $target->getAttribute("stdout_buffer"); + + $this->_mStdoutBuffer .= $buffer; + } + else { + $result=$target->getAttribute("stdout_buffer"); + } + + $target->setResult($result); + + // + // Clear assign. + // + foreach ($target->getAttributes() as $key=>$value) { + $this->mSmarty->clear_assign($key); + } + } +} + +/** + * Return URL string by "overriding" rule. + * (Now, test implement) + * 1) Search file in specified theme directory. + * 2) Search file in current module template directory. + * 3) Search file in fallback theme directory. + */ +function Legacy_modifier_theme($string) +{ + $infoArr = Legacy_get_ovveride_file($string); + + if ($infoArr['theme'] != null && $infoArr['dirname'] != null) { + return XOOPS_THEME_URL . "/" . $infoArr['theme'] . "/modules/" . $infoArr['dirname'] . "/" . $string; + } + elseif ($infoArr['theme'] != null) { + return XOOPS_THEME_URL . "/" . $infoArr['theme'] . "/" . $string; + } + elseif ($infoArr['dirname'] != null) { + return XOOPS_MODULE_URL . "/" . $infoArr['dirname'] . "/admin/templates/" . $string; + } + + return LEGACY_ADMIN_RENDER_FALLBACK_URL . "/" . $string; +} + +function Legacy_function_stylesheet($params, &$smarty) +{ + $file = $params['file']; + if (strstr($file, "..") !== false) { + return; + } + + $media = (isset($params['media'])) ? $params['media'] : "all"; + + $infoArr = Legacy_get_ovveride_file($file, "stylesheets/"); + + // TEMP + // TODO We must return FALLBACK_URL here. + if ($infoArr['file'] != null) { + $request = array(); + foreach ($infoArr as $key => $value) { + if ($value != null) { + $request[] = "${key}=${value}"; + } + } + $url = XOOPS_MODULE_URL . "/base/admin/css.php?" . implode("&", $request); + print ''; + } +} + +function Legacy_get_ovveride_file($file, $prefix = null, $isSpDirname = false) +{ + $root =& XCube_Root::getSingleton(); + $modController =& $root->mController->getModuleController(); + $moduleObject =& $modController->getXoopsModule(); + + if ($isSpDirname && is_object($moduleObject) && $moduleObject->get('dirname') == 'base' && isset($_REQUEST['dirname'])) { + if (preg_match("/^[a-z0-9_]+$/i", xoops_getrequest('dirname'))) { + $handler =& xoops_gethandler('module'); + $moduleObject =& $handler->getByDirname(xoops_getrequest('dirname')); + } + } + + $theme = $root->mSiteConfig['Legacy']['Theme']; + + $ret = array(); + $ret['theme'] = $theme; + $ret['file'] = $file; + + $file = $prefix . $file; + + if (!is_object($moduleObject)) { + $themePath = XOOPS_THEME_PATH . "/" . $theme . "/" . $file; + if (file_exists($themePath)) { + return $ret; + } + + $ret['theme'] = null; + return $ret; + } + else { + $dirname = $moduleObject->get('dirname'); + + $ret['dirname'] = $dirname; + + $themePath = XOOPS_THEME_PATH . "/" . $theme . "/modules/" . $dirname . "/" . $file; + if (file_exists($themePath)) { + return $ret; + } + + $themePath = XOOPS_THEME_PATH . "/" . $theme . "/" . $file; + if (file_exists($themePath)) { + $ret['dirname'] = null; + return $ret; + } + + $ret['theme'] = null; + + $modulePath = XOOPS_MODULE_PATH . "/" . $dirname . "/admin/templates/" . $file; + if (file_exists($modulePath)) { + return $ret; + } + + $ret['dirname'] = null; + + if (file_exists(LEGACY_ADMIN_RENDER_FALLBACK_PATH . "/" . $file)) { + return $ret; + } + + $ret['file'] =null; + return $ret; + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Tue Oct 3 18:30:31 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 3 Oct 2006 18:30:31 +0900 Subject: [xoops-cvslog 4759] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061003093031.06D3B2AC15E@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_Identity.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Identity.class.php:1.1.2.3 xoops2jp/html/modules/base/kernel/Legacy_Identity.class.php:1.1.2.4 --- xoops2jp/html/modules/base/kernel/Legacy_Identity.class.php:1.1.2.3 Fri Sep 29 19:43:40 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Identity.class.php Tue Oct 3 18:30:30 2006 @@ -1,7 +1,7 @@ Index: xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php:1.1.2.5 xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php:1.1.2.5.2.1 --- xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php:1.1.2.5 Mon Sep 25 10:27:04 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php Tue Oct 3 18:30:38 2006 @@ -1,7 +1,7 @@ mController->getXoopsUser(); - - // - // The guest user is never administrator. - // - if (!is_object($xoopsUser)) + if (!is_object($this->mController->mXoopsUser)) { return false; - - // - // Decide $mid as a argument for checkRight() by current module's dirname. - // - $mid = 0; - if ($this->mModuleObject->get('dirname') == 'base' || $this->mModuleObject->get('dirname') == 'system') { - $mid = -1; } - else { - $mid = $this->mModuleObject->get('mid'); + + $this->_loadRole(); + $t_prefix = 'Module.' . $this->mModuleObject->get('name'); + + if (!$this->mController->mRoot->mContext->mUser->isInRole($t_prefix . '.Admin')) { + // + // Decide $mid as a argument for checkRight() by current module's dirname. + // + $mid = 0; + if ($this->mModuleObject->get('dirname') == 'base' || $this->mModuleObject->get('dirname') == 'system') { + $mid = -1; + } + else { + $mid = $this->mModuleObject->get('mid'); + } + + $modPermHandler =& xoops_gethandler('groupperm'); + return $modPermHandler->checkRight('module_admin', $mid, $this->mController->mXoopsUser->getGroups()); } - $modPermHandler =& xoops_gethandler('groupperm'); - return $modPermHandler->checkRight('module_admin', $mid, $xoopsUser->getGroups()); + $GLOBALS['xoopsUserIsAdmin'] = true; + + return true; } /** Index: xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:1.1.2.13 xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:1.1.2.13.2.1 --- xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:1.1.2.13 Mon Sep 25 18:37:07 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php Tue Oct 3 18:30:38 2006 @@ -1,7 +1,7 @@ mController->mXoopsUser; - $xoopsModule=&$this->mModuleObject; - $modPermHandler =& xoops_gethandler('groupperm'); + $this->_loadRole(); + $t_prefix = 'Module.' . $this->mModuleObject->get('name'); + + if (!$this->mController->mRoot->mContext->mUser->isInRole($t_prefix . '.Visitor')) { + return false; + } + + $GLOBALS['xoopsUserIsAdmin'] = $this->mController->mRoot->mContext->mUser->isInRole($t_prefix . '.Admin'); - if(is_object($xoopsUser)) { - if (!$modPermHandler->checkRight('module_read', $xoopsModule->getVar('mid'), $xoopsUser->getGroups())) { - return false; - } - $GLOBALS['xoopsUserIsAdmin']=$xoopsUser->isAdmin($xoopsModule->getVar('mid')); - return true; + return true; + } + + /** + * Loads permission of this module and set the information as roles to the + * current user. + * + * [Note] Anonymous user can't get the admin permission, even if he is + * allowed to it. + */ + function _loadRole() + { + $xoopsUser =& $this->mController->mXoopsUser; + $module =& $this->mModuleObject; + + $groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS; + + $handler =& xoops_gethandler('groupperm'); + if ($handler->checkRight('module_read', $module->get('mid'), $groups)) { + $this->mController->mRoot->mContext->mUser->addRole('Module.' . $module->get('name') . '.Visitor'); } - else { - $GLOBALS['xoopsUserIsAdmin'] = false; - return $modPermHandler->checkRight('module_read', $xoopsModule->getVar('mid'), XOOPS_GROUP_ANONYMOUS); + + if (is_object($xoopsUser) && $handler->checkRight('module_admin', $module->get('mid'), $groups)) { + $this->mController->mRoot->mContext->mUser->addRole('Module.' . $module->get('name') . '.Admin'); } } From minahito @ users.sourceforge.jp Tue Oct 3 19:02:52 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 3 Oct 2006 19:02:52 +0900 Subject: [xoops-cvslog 4761] CVS update: xoops2jp/html/modules/base/class Message-ID: <20061003100252.0879C2AC0F3@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/group_permission.php diff -u /dev/null xoops2jp/html/modules/base/class/group_permission.php:1.1.2.1 --- /dev/null Tue Oct 3 19:02:51 2006 +++ xoops2jp/html/modules/base/class/group_permission.php Tue Oct 3 19:02:51 2006 @@ -0,0 +1,56 @@ +initVar('gperm_id', XOBJ_DTYPE_INT, '', true); + $this->initVar('gperm_groupid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('gperm_itemid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('gperm_modid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('gperm_name', XOBJ_DTYPE_STRING, '', true, 50); + } +} + +class BaseGroup_permissionHandler extends XoopsObjectGenericHandler +{ + var $mTable = "group_permission"; + var $mPrimary = "gperm_id"; + var $mClass = "BaseGroup_permissionObject"; + + /** + * Gets array of roles by array of group ID. + * @param int $mid + * @param array $groups + * @return array + */ + function getRolesByModule($mid, $groups) + { + $retRoles = array(); + + $sql = "SELECT gperm_name FROM " . $this->db->prefix($this->mTable) . " WHERE gperm_modid=" . intval($mid) . " AND gperm_itemid=0 AND "; + $groupSql = array(); + + foreach ($groups as $gid) { + $groupSql[] = "gperm_groupid=" . intval($gid); + } + + $sql .= "(" . implode(' OR ', $groupSql) . ")"; + + $result = $this->db->query($sql); + + if (!$result) { + return $retRoles; + } + + while ($row = $this->db->fetchArray($result)) { + $retRoles[] = $row['gperm_name']; + } + + return $retRoles; + } +} + +?> From tom_g3x @ users.sourceforge.jp Tue Oct 3 19:19:51 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Tue, 3 Oct 2006 19:19:51 +0900 Subject: [xoops-cvslog 4762] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20061003101951.E24302AC15B@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php:1.1.2.11 xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php:1.1.2.12 --- xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php:1.1.2.11 Mon Oct 2 22:16:25 2006 +++ xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php Tue Oct 3 19:19:51 2006 @@ -1,7 +1,7 @@ setAttribute('categoryArr', $categoryArr); } - function executeViewCancel(&$controller, &$xoopsUser, $&$render) + function executeViewCancel(&$controller, &$xoopsUser, &$render) { $controller->executeForward('./index.php?action=ImageList&imgcat_id=' . $this->mObject->get('imgcat_id')); } From tom_g3x @ users.sourceforge.jp Tue Oct 3 21:27:44 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Tue, 3 Oct 2006 21:27:44 +0900 Subject: [xoops-cvslog 4763] CVS update: xoops2jp/html/themes/cube_default Message-ID: <20061003122744.530412AC0B5@users.sourceforge.jp> Index: xoops2jp/html/themes/cube_default/style.css diff -u xoops2jp/html/themes/cube_default/style.css:1.1.2.1 xoops2jp/html/themes/cube_default/style.css:1.1.2.2 --- xoops2jp/html/themes/cube_default/style.css:1.1.2.1 Fri Dec 30 17:32:04 2005 +++ xoops2jp/html/themes/cube_default/style.css Tue Oct 3 21:27:44 2006 @@ -490,15 +490,28 @@ border-left: solid 1px #7a7acc; } -div.xoopsCode { - background: #f5f5f5; - margin: 0; - padding: 0 6px 6px 6px; +div.xoopsCode, div.xoopsQuote { + width:98%; + height: 100%; + padding: 0; +} + +div.xoopsCode pre { border: solid 1px #c0c0c0; + margin:0; + overflow:auto; + padding:0 1em; + min-height:4em; + height:auto; +} +/* for IExplorer */ +* html div.xoopsCode pre { + height:4em; + height:auto; /* IE 6.x */ + width:40em; } -div.xoopsQuote { - background: #f5f5f5; +div.xoopsQuote blockquote { margin: 0; padding: 0 6px 6px 6px; border: solid 1px #c0c0c0; From tom_g3x @ users.sourceforge.jp Wed Oct 4 01:10:00 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Wed, 4 Oct 2006 01:10:00 +0900 Subject: [xoops-cvslog 4764] CVS update: xoops2jp/html/modules/base/admin/theme/icons Message-ID: <20061003161000.1F4AE2AC17D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/theme/icons/add.gif From minahito @ users.sourceforge.jp Wed Oct 4 14:11:46 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 4 Oct 2006 14:11:46 +0900 Subject: [xoops-cvslog 4765] CVS update: xoops2jp/html/modules/user/admin/forms Message-ID: <20061004051146.385DE2AC186@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php diff -u xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.17 xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.18 --- xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.17 Tue Oct 3 14:39:50 2006 +++ xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php Wed Oct 4 14:11:46 2006 @@ -1,7 +1,7 @@ get('email')) > 0) { + // + // email unique check + // + $userHandler=&xoops_gethandler('user'); + $criteria =& new CriteriaCompo(new Criteria('email', $this->get('email'))); + if ($this->get('uid') > 0) { + $criteria->add(new Criteria('uid', $this->get('uid'), '<>')); + } + if ($userHandler->getCount($criteria) > 0) { + $this->addErrorMessage(_MD_USER_ERROR_EMAILTAKEN); + } + } + } + function validateUrl() { $t_url = $this->get('url'); From minahito @ users.sourceforge.jp Thu Oct 5 18:06:11 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:06:11 +0900 Subject: [xoops-cvslog 4766] CVS update: xoops2jp/html/include Message-ID: <20061005090611.1DAAC2AC05C@users.sourceforge.jp> Index: xoops2jp/html/include/cp_header.php diff -u xoops2jp/html/include/cp_header.php:1.2.8.5 xoops2jp/html/include/cp_header.php:1.2.8.5.2.1 --- xoops2jp/html/include/cp_header.php:1.2.8.5 Fri Aug 18 18:12:25 2006 +++ xoops2jp/html/include/cp_header.php Thu Oct 5 18:06:10 2006 @@ -1,7 +1,7 @@ mController); + $root->mController->setStrategy($strategy); +$root->mController->setupModuleContext(); // // TODO Index: xoops2jp/html/include/cp_functions.php diff -u xoops2jp/html/include/cp_functions.php:1.2.8.4 xoops2jp/html/include/cp_functions.php:1.2.8.4.2.1 --- xoops2jp/html/include/cp_functions.php:1.2.8.4 Wed Aug 9 18:34:00 2006 +++ xoops2jp/html/include/cp_functions.php Thu Oct 5 18:06:10 2006 @@ -1,5 +1,5 @@ mController); + $root->mController->setStrategy($strategy); + $root->mController->setupModuleContext(); require_once XOOPS_ROOT_PATH."/header.php"; } From minahito @ users.sourceforge.jp Thu Oct 5 18:06:25 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:06:25 +0900 Subject: [xoops-cvslog 4767] CVS update: xoops2jp/html/modules/base/actions Message-ID: <20061005090625.614A52AC05C@users.sourceforge.jp> Index: xoops2jp/html/modules/base/actions/NotifyCancelAction.class.php diff -u xoops2jp/html/modules/base/actions/NotifyCancelAction.class.php:1.1.2.1 xoops2jp/html/modules/base/actions/NotifyCancelAction.class.php:1.1.2.1.2.1 --- xoops2jp/html/modules/base/actions/NotifyCancelAction.class.php:1.1.2.1 Wed Jul 26 19:53:00 2006 +++ xoops2jp/html/modules/base/actions/NotifyCancelAction.class.php Thu Oct 5 18:06:25 2006 @@ -1,7 +1,7 @@ executeForward(XOOPS_URL); + $contoller->executeForward(XOOPS_URL . '/'); } function execute(&$contoller, &$xoopsUser) { - $contoller->executeForward(XOOPS_URL); + $contoller->executeForward(XOOPS_URL . '/'); } } Index: xoops2jp/html/modules/base/actions/SearchResultsAction.class.php diff -u xoops2jp/html/modules/base/actions/SearchResultsAction.class.php:1.1.2.10 xoops2jp/html/modules/base/actions/SearchResultsAction.class.php:1.1.2.10.2.1 --- xoops2jp/html/modules/base/actions/SearchResultsAction.class.php:1.1.2.10 Mon Sep 25 18:34:29 2006 +++ xoops2jp/html/modules/base/actions/SearchResultsAction.class.php Thu Oct 5 18:06:25 2006 @@ -36,7 +36,7 @@ function hasPermission(&$controller, &$xoopsUser) { if ($this->mConfig['enable_search'] != 1) { - $controller->executeRedirect(XOOPS_URL, 3, _MD_BASE_ERROR_SEARCH_NOT_ENABLED); + $controller->executeRedirect(XOOPS_URL . '/', 3, _MD_BASE_ERROR_SEARCH_NOT_ENABLED); return false; } return true; @@ -140,7 +140,7 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - $controller->executeForward(XOOPS_URL); + $controller->executeForward(XOOPS_URL . '/'); } } From minahito @ users.sourceforge.jp Thu Oct 5 18:06:38 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:06:38 +0900 Subject: [xoops-cvslog 4768] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20061005090638.B81892AC263@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/HelpAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/HelpAction.class.php:1.1.2.15 xoops2jp/html/modules/base/admin/actions/HelpAction.class.php:1.1.2.15.2.1 --- xoops2jp/html/modules/base/admin/actions/HelpAction.class.php:1.1.2.15 Mon Sep 25 18:34:40 2006 +++ xoops2jp/html/modules/base/admin/actions/HelpAction.class.php Thu Oct 5 18:06:38 2006 @@ -1,7 +1,7 @@ mController->getConfig('language'); if ( $dirname == null ) { - $modController =& $root->mController->getModuleController(); - $moduleObject =& $modController->getXoopsModule(); + $moduleObject =& $root->mContext->mXoopsModule; $dirname = $moduleObject->get('dirname'); } @@ -86,8 +85,7 @@ function Legacy_modifier_helpimage($file) { $root =& XCube_Root::getSingleton(); - $modController =& $root->mController->getModuleController(); - $moduleObject =& $modController->getXoopsModule(); + $moduleObject =& $root->mContext->mXoopsModule; $language = $root->mController->getConfig('language'); $dirname = $moduleObject->get('dirname'); From minahito @ users.sourceforge.jp Thu Oct 5 18:06:55 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:06:55 +0900 Subject: [xoops-cvslog 4769] CVS update: xoops2jp/html/modules/base/admin/blocks Message-ID: <20061005090655.1090B2AC0A2@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php diff -u xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.10.2.1 xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.10.2.2 --- xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.10.2.1 Thu Sep 28 14:01:28 2006 +++ xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php Thu Oct 5 18:06:54 2006 @@ -12,7 +12,7 @@ * * @package legacy */ -class Legacy_AdminSideMenu extends Legacy_BlockProcedure +class Legacy_AdminSideMenu extends Legacy_AbstractBlockProcedure { var $mModules = array(); @@ -38,14 +38,21 @@ return 0; } - function enableCached() + function enableCache() { return false; } - function execute(&$controller, &$user, &$render) + function execute() { - $this->mCurrentModule =& $controller->mModuleController->mModuleObject; + $root =& XCube_Root::getSingleton(); + + $controller =& $root->mController; + $user =& $root->mController->mRoot->mContext->mXoopsUser; + $render =& $this->getRenderBuffer(); + + $this->mCurrentModule =& $controller->mRoot->mContext->mXoopsModule; + if ($this->mCurrentModule->get('dirname') == 'base') { if (xoops_getrequest('action') == "help") { $moduleHandler =& xoops_gethandler('module'); @@ -101,16 +108,10 @@ $render->setTemplateName('legacy_admin_block_sidemenu.html'); $render->setAttribute('modules', $this->mModules); $render->setAttribute('currentModule', $this->mCurrentModule); - } - - function hasResult() - { - return true; - } - - function getRenderSystemName() - { - return 'Legacy_AdminRenderSystem'; + + $renderSystem =& $root->getRenderSystem($this->getRenderSystemName()); + + $renderSystem->renderBlock($render); } } Index: xoops2jp/html/modules/base/admin/blocks/AdminActionSearch.class.php diff -u xoops2jp/html/modules/base/admin/blocks/AdminActionSearch.class.php:1.1.2.4.2.1 xoops2jp/html/modules/base/admin/blocks/AdminActionSearch.class.php:1.1.2.4.2.2 --- xoops2jp/html/modules/base/admin/blocks/AdminActionSearch.class.php:1.1.2.4.2.1 Thu Sep 28 14:01:28 2006 +++ xoops2jp/html/modules/base/admin/blocks/AdminActionSearch.class.php Thu Oct 5 18:06:54 2006 @@ -10,7 +10,7 @@ * * @package legacy */ -class Legacy_AdminActionSearch extends Legacy_BlockProcedure +class Legacy_AdminActionSearch extends Legacy_AbstractBlockProcedure { function getName() { @@ -32,9 +32,15 @@ return false; } - function execute(&$controller, &$user, &$render) + function execute() { + $render =& $this->getRenderBuffer(); $render->setTemplateName('legacy_admin_block_actionsearch.html'); + + $root =& XCube_Root::getSingleton(); + $renderSystem =& $root->getRenderSystem($this->getRenderSystemName()); + + $renderSystem->renderBlock($render); } function hasResult() From minahito @ users.sourceforge.jp Thu Oct 5 18:07:09 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:07:09 +0900 Subject: [xoops-cvslog 4770] CVS update: xoops2jp/html/modules/base/admin/class Message-ID: <20061005090709.502912AC0A2@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php diff -u xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php:1.1.2.19 xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php:1.1.2.19.2.1 --- xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php:1.1.2.19 Fri Sep 22 19:38:06 2006 +++ xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php Thu Oct 5 18:07:09 2006 @@ -128,7 +128,7 @@ // Add a permission which administrators can read. // $root =& XCube_Root::getSingleton(); - $groups = $root->mController->mXoopsUser->getGroups(); + $groups = $root->mContext->mXoopsUser->getGroups(); foreach($groups as $mygroup) { $readPerm =& $this->_createPermission($mygroup); $readPerm->setVar('gperm_name', 'module_read'); Index: xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php diff -u xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.24 xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.24.2.1 --- xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.24 Sun Sep 10 20:57:35 2006 +++ xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php Thu Oct 5 18:07:09 2006 @@ -309,7 +309,7 @@ } } else { $root =& XCube_Root::getSingleton(); - $groups = $root->mController->mXoopsUser->getGroups(); + $groups = $root->mContext->mXoopsUser->getGroups(); foreach ($groups as $mygroup) { $bperm->setVar('gperm_groupid', $mygroup); $bperm->setNew(); From minahito @ users.sourceforge.jp Thu Oct 5 18:07:21 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:07:21 +0900 Subject: [xoops-cvslog 4771] CVS update: xoops2jp/html/modules/base/blocks Message-ID: <20061005090721.5D9062AC0A2@users.sourceforge.jp> Index: xoops2jp/html/modules/base/blocks/legacy_usermenu.php diff -u xoops2jp/html/modules/base/blocks/legacy_usermenu.php:1.1.2.4 xoops2jp/html/modules/base/blocks/legacy_usermenu.php:1.1.2.4.2.1 --- xoops2jp/html/modules/base/blocks/legacy_usermenu.php:1.1.2.4 Mon Sep 25 18:35:35 2006 +++ xoops2jp/html/modules/base/blocks/legacy_usermenu.php Thu Oct 5 18:07:21 2006 @@ -1,7 +1,7 @@ mController->mXoopsUser; + $xoopsUser =& $root->mController->mRoot->mContext->mXoopsUser; if (is_object($xoopsUser)) { $block = array(); Index: xoops2jp/html/modules/base/blocks/legacy_mainmenu.php diff -u xoops2jp/html/modules/base/blocks/legacy_mainmenu.php:1.1.2.2 xoops2jp/html/modules/base/blocks/legacy_mainmenu.php:1.1.2.2.2.1 --- xoops2jp/html/modules/base/blocks/legacy_mainmenu.php:1.1.2.2 Mon Apr 3 14:44:24 2006 +++ xoops2jp/html/modules/base/blocks/legacy_mainmenu.php Thu Oct 5 18:07:21 2006 @@ -1,8 +1,8 @@ mController->mModuleController->mModuleObject; - $xoopsUser =& $root->mController->mXoopsUser; + $xoopsModule =& $root->mContext->mXoopsModule; + $xoopsUser =& $root->mController->mRoot->mContext->mXoopsUser; $block = array(); From minahito @ users.sourceforge.jp Thu Oct 5 18:07:31 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:07:31 +0900 Subject: [xoops-cvslog 4772] CVS update: xoops2jp/html/modules/base/class Message-ID: <20061005090731.E8F142AC0A2@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/ActionFrame.class.php diff -u xoops2jp/html/modules/base/class/ActionFrame.class.php:1.1.2.12.2.1 xoops2jp/html/modules/base/class/ActionFrame.class.php:1.1.2.12.2.2 --- xoops2jp/html/modules/base/class/ActionFrame.class.php:1.1.2.12.2.1 Thu Sep 28 14:01:41 2006 +++ xoops2jp/html/modules/base/class/ActionFrame.class.php Thu Oct 5 18:07:31 2006 @@ -101,9 +101,9 @@ die(); } - $this->mAction->prepare($controller, $controller->getXoopsUser()); + $this->mAction->prepare($controller, $controller->mRoot->mContext->mXoopsUser); - if (!$this->mAction->hasPermission($controller, $controller->getXoopsUser())) { + if (!$this->mAction->hasPermission($controller, $controller->mRoot->mContext->mXoopsUser)) { if ($this->mAdminFlag) { $controller->executeForward(XOOPS_URL . "/admin.php"); } @@ -113,35 +113,35 @@ } if (xoops_getenv("REQUEST_METHOD") == "POST") { - $viewStatus = $this->mAction->execute($controller, $controller->getXoopsUser()); + $viewStatus = $this->mAction->execute($controller, $controller->mRoot->mContext->mXoopsUser); } else { - $viewStatus = $this->mAction->getDefaultView($controller, $controller->getXoopsUser()); + $viewStatus = $this->mAction->getDefaultView($controller, $controller->mRoot->mContext->mXoopsUser); } switch($viewStatus) { case LEGACY_FRAME_VIEW_SUCCESS: - $this->mAction->executeViewSuccess($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewSuccess($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case LEGACY_FRAME_VIEW_ERROR: - $this->mAction->executeViewError($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewError($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case LEGACY_FRAME_VIEW_INDEX: - $this->mAction->executeViewIndex($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewIndex($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case LEGACY_FRAME_VIEW_INPUT: - $this->mAction->executeViewInput($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewInput($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case LEGACY_FRAME_VIEW_PREVIEW: - $this->mAction->executeViewPreview($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewPreview($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case LEGACY_FRAME_VIEW_CANCEL: - $this->mAction->executeViewCancel($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewCancel($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; } } Index: xoops2jp/html/modules/base/class/DebuggerManager.class.php diff -u xoops2jp/html/modules/base/class/DebuggerManager.class.php:1.1.2.2 xoops2jp/html/modules/base/class/DebuggerManager.class.php:1.1.2.2.2.1 --- xoops2jp/html/modules/base/class/DebuggerManager.class.php:1.1.2.2 Sat Jun 17 00:51:21 2006 +++ xoops2jp/html/modules/base/class/DebuggerManager.class.php Thu Oct 5 18:07:31 2006 @@ -1,5 +1,5 @@ mController->getXoopsUser(); + $user =& $root->mContext->mXoopsUser; return is_object($user) ? $user->isAdmin(0) : false; } From minahito @ users.sourceforge.jp Thu Oct 5 18:07:41 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:07:41 +0900 Subject: [xoops-cvslog 4773] CVS update: xoops2jp/html/modules/base/forms Message-ID: <20061005090741.1FA492AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/forms/ImageUploadForm.class.php diff -u xoops2jp/html/modules/base/forms/ImageUploadForm.class.php:1.1.2.3.2.2 xoops2jp/html/modules/base/forms/ImageUploadForm.class.php:1.1.2.3.2.3 --- xoops2jp/html/modules/base/forms/ImageUploadForm.class.php:1.1.2.3.2.2 Fri Sep 29 17:14:09 2006 +++ xoops2jp/html/modules/base/forms/ImageUploadForm.class.php Thu Oct 5 18:07:40 2006 @@ -54,7 +54,7 @@ $imgcat_id = $this->getImgcatId(); if ($imgcat_id != null) { $root =& XCube_Root::getSingleton(); - $xoopsUser =& $root->mController->getXoopsUser(); + $xoopsUser =& $root->mController->mRoot->mContext->mXoopsUser; $groups = array(); if (is_object($xoopsUser)) { From minahito @ users.sourceforge.jp Thu Oct 5 18:07:49 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:07:49 +0900 Subject: [xoops-cvslog 4774] CVS update: xoops2jp/html/modules/base/include Message-ID: <20061005090749.F0BEA2AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/include/Legacy_EventFunctions.class.php diff -u /dev/null xoops2jp/html/modules/base/include/Legacy_EventFunctions.class.php:1.1.2.1 --- /dev/null Thu Oct 5 18:07:49 2006 +++ xoops2jp/html/modules/base/include/Legacy_EventFunctions.class.php Thu Oct 5 18:07:49 2006 @@ -0,0 +1,203 @@ +mController->setupModuleContext('base'); + + $moduleRunner =& new Legacy_ActionFrame(false); + + $action = isset($_REQUEST['op']) ? ucfirst(xoops_getrequest('op')) : "List"; + $moduleRunner->setMode(LEGACY_FRAME_MODE_IMAGE); + $moduleRunner->setActionName($action); + + $root->mController->setActionStrategy($moduleRunner); + + $root->mController->executeAction(); + + $root->mController->executeView(); + } + + function backend() + { + require_once XOOPS_MODULE_PATH . "/base/class/ActionFrame.class.php"; + + $root =& XCube_Root::getSingleton(); + $root->mController->setupModuleContext('base'); + + $moduleRunner =& new Legacy_ActionFrame(false); + $moduleRunner->setActionName('Backend'); + + $root->mController->setActionStrategy($moduleRunner); + + $root->mController->executeAction(); + + $root->mController->executeView(); + } + + function search() + { + require_once XOOPS_MODULE_PATH . "/base/class/ActionFrame.class.php"; + + $root =& XCube_Root::getSingleton(); + $root->mController->setupModuleContext('base'); + + $moduleRunner =& new Legacy_ActionFrame(false); + $moduleRunner->setMode(LEGACY_FRAME_MODE_SEARCH); + $moduleRunner->setActionName(ucfirst(xoops_getrequest('action'))); + + $root->mController->mExecute->add(array(&$moduleRunner, 'execute')); + + $root->mController->execute(); + + $root->mController->executeView(); + + } + + function misc() + { + require_once XOOPS_BASE_PATH . "/class/ActionFrame.class.php"; + + $root =& XCube_Root::getSingleton(); + $root->mController->setupModuleContext('base'); + + $actionName = isset($_REQUEST['type']) ? ucfirst(xoops_getrequest('type')) : "Smilies"; + + $moduleRunner = new Legacy_ActionFrame(false); + $moduleRunner->setMode(LEGACY_FRAME_MODE_MISC); + $moduleRunner->setActionName($actionName); + + $root->mController->setActionStrategy($moduleRunner); + + $root->mController->setDialogMode(true); + + $root->mController->executeAction(); + + $root->mController->executeView(); + } + + function notifications() + { + require_once XOOPS_BASE_PATH . "/class/ActionFrame.class.php"; + + $root =& XCube_Root::getSingleton(); + $root->mController->setupModuleContext('base'); + + // + // 'Notify' is prefix to guard accessing from misc.php. + // + $actionName = isset($_REQUEST['op']) ? trim(xoops_getrequest('op')) : "List"; + if (isset($_REQUEST['delete'])) { + $actionName = "Delete"; + } + if (isset($_REQUEST['delete_cancel'])) { + $actionName = "Cancel"; + } + + $moduleRunner = new Legacy_ActionFrame(false); + $moduleRunner->setMode(LEGACY_FRAME_MODE_NOTIFY); + $moduleRunner->setActionName($actionName); + + $root->mController->mExecute->add(array(&$moduleRunner, 'execute')); + + $root->mController->execute(); + + $root->mController->executeView(); + } + + /** + * This functions is add to 'Legacyfunction.Notifications.Select'. + * + * @param XCube_RenderBuffer $render + */ + function notifications_select(&$render) + { + require_once XOOPS_ROOT_PATH . '/include/notification_constants.php'; + require_once XOOPS_ROOT_PATH . '/include/notification_functions.php'; + + $root =& XCube_Root::getSingleton(); + $xoopsModule =& $root->mContext->mXoopsModule; + $moduleConfig =& $root->mContext->mModuleConfig; + $xoopsUser =& $root->mContext->mXoopsUser; + + $xoops_notification = array(); + $xoops_notification['show'] = is_object($xoopsModule) && is_object($xoopsUser) && notificationEnabled('inline') ? 1 : 0; + + if ($xoops_notification['show']) { + $root->mLanguageManager->loadPageTypeMessageCatalog('notification'); + $categories =& notificationSubscribableCategoryInfo(); + $event_count = 0; + if (!empty($categories)) { + $notification_handler =& xoops_gethandler('notification'); + foreach ($categories as $category) { + $section['name'] = $category['name']; + $section['title'] = $category['title']; + $section['description'] = $category['description']; + $section['itemid'] = $category['item_id']; + $section['events'] = array(); + $subscribed_events =& $notification_handler->getSubscribedEvents($category['name'], $category['item_id'], $xoopsModule->get('mid'), $xoopsUser->get('uid')); + foreach (notificationEvents($category['name'], true) as $event) { + if (!empty($event['admin_only']) && !$xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { + continue; + } + if (!empty($event['invisible'])) { + continue; + } + $subscribed = in_array($event['name'], $subscribed_events) ? 1 : 0; + $section['events'][$event['name']] = array ('name'=>$event['name'], 'title'=>$event['title'], 'caption'=>$event['caption'], 'description'=>$event['description'], 'subscribed'=>$subscribed); + $event_count ++; + } + $xoops_notification['categories'][$category['name']] = $section; + } + $xoops_notification['target_page'] = "notification_update.php"; + $xoops_notification['redirect_script'] = xoops_getenv('PHP_SELF'); + + $render->setAttribute('editprofile_url', $urlXOOPS_URL . '/edituser.php?uid=' . $xoopsUser->getShow('uid')); + + switch ($xoopsUser->getVar('notify_method')) { + case XOOPS_NOTIFICATION_METHOD_DISABLE: + $render->setAttribute('user_method', _NOT_DISABLE); + break; + case XOOPS_NOTIFICATION_METHOD_PM: + $render->setAttribute('user_method', _NOT_PM); + break; + case XOOPS_NOTIFICATION_METHOD_EMAIL: + $render->setAttribute('user_method', _NOT_EMAIL); + break; + } + } else { + $xoops_notification['show'] = 0; + } + if ($event_count == 0) { + $xoops_notification['show'] = 0; + } + } + + $render->setAttribute('xoops_notification', $xoops_notification); + } + + /** + * This member function is added to 'User_UserViewAction.GetUserPosts'. + * Recount posts of $xoopsUser in the comment system. + * + * @static + */ + function recountPost(&$posts, $xoopsUser) + { + $handler =& xoops_gethandler('comment'); + $criteria =& new Criteria('com_uid', $xoopsUser->get('uid')); + $posts += $handler->getCount($criteria); + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Oct 5 18:08:00 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:08:00 +0900 Subject: [xoops-cvslog 4775] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061005090800.E03462AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php diff -u /dev/null xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php:1.1.2.1 --- /dev/null Thu Oct 5 18:08:00 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php Thu Oct 5 18:08:00 2006 @@ -0,0 +1,164 @@ +mRoot->mContext->mBaseRenderSystemName = "Legacy_AdminRenderSystem"; + + // + // Cover the spec of admin.php of the system module, for the compatibility. + // + if (isset($_REQUEST['fct']) && $_REQUEST['fct'] == "users") { + $GLOBALS['xoopsOption']['pagetype'] = "user"; + } + + $this->mSetupBlock =& new XCube_Delegate(); + $this->mSetupBlock->register('Legacy_AdminControllerStrategy.SetupBlock'); + } + + function _setupFilterChain() + { + parent::_setupFilterChain(); + + // + // Auto pre-loading. + // + if($this->mController->mRoot->getSiteConfig('Legacy', 'AutoPreload') == 1) { + $this->mController->_processPreload(XOOPS_ROOT_PATH . "/preload/admin"); + } + } + + function setupModuleContext(&$context, $dirname) + { + if ($dirname == null) { + $dirname = 'base'; + } + + Legacy_PublicControllerStrategy::setupModuleContext($context, $dirname); + } + + function &_createModule() + { + $module =& new Legacy_AdminModule(); + return $module; + } + + function setupBlock() + { + require_once XOOPS_BASE_PATH . "/admin/blocks/AdminActionSearch.class.php"; + require_once XOOPS_BASE_PATH . "/admin/blocks/AdminSideMenu.class.php"; + $this->mController->_mBlockChain[] =& new Legacy_AdminActionSearch(); + $this->mController->_mBlockChain[] =& new Legacy_AdminSideMenu(); + + $this->mSetupBlock->call(new XCube_Ref($this->mController)); + } + + function _processPreBlockFilter() + { + parent::_processPreBlockFilter(); + $this->mController->_processModulePreload('/admin/preload'); + } + + function &getVirtualCurrentModule() + { + $module = null; + + if ($this->mController->mRoot->mContext->mModule != null) { + $module =& $this->mController->mRoot->mContext->mXoopsModule; + + if ($module->get('dirname') == "base" && isset($_REQUEST['dirname'])) { + if (in_array(xoops_getrequest('action'), $this->_mSpecialActions)) { + $handler =& xoops_gethandler('module'); + $module =& $handler->getByDirname(xoops_getrequest('dirname')); + } + } + elseif ($module->get('dirname') == "base" && xoops_getrequest('action') == 'PreferenceEdit' && isset($_REQUEST['confmod_id'])) { + $handler =& xoops_gethandler('module'); + $module =& $handler->get(intval(xoops_getrequest('confmod_id'))); + } + } + + return $module; + } + + function &getMainThemeObject() + { + $handler =& xoops_getmodulehandler('theme', 'base'); + $theme =& $handler->create(); + + // + // TODO Load manifesto here. + // + $theme->set('dirname', $this->mController->mRoot->mSiteConfig['Legacy']['Theme']); + $theme->set('render_system', 'Legacy_AdminRenderSystem'); + + return $theme; + } + + function isEnableCacheFeature() + { + return false; + } + + function enableAccess() + { + if (!is_object($this->mController->mRoot->mContext->mXoopsUser)) { + return false; + } + + if ($this->mController->mRoot->mContext->mModule != null) { + $dirname = $this->mController->mRoot->mContext->mXoopsModule->get('dirname'); + + if ($this->mController->mRoot->mContext->mUser->isInRole("Module.${dirname}.Admin")) { + return true; + } + + // + // Decide $mid as a argument for checkRight() by current module's dirname. + // + $dirname = $this->mController->mRoot->mContext->mXoopsModule->get('dirname'); + if ($dirname == 'base' || $dirname == 'system') { + $handler =& xoops_gethandler('groupperm'); + return $handler->checkRight('module_admin', -1, $this->mController->mRoot->mContext->mXoopsUser->getGroups()); + } + } + + return false; + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Oct 5 18:08:12 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:08:12 +0900 Subject: [xoops-cvslog 4776] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061005090812.AA8662AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php diff -u /dev/null xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.1 --- /dev/null Thu Oct 5 18:08:12 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php Thu Oct 5 18:08:12 2006 @@ -0,0 +1,134 @@ +mRoot->mContext->mBaseRenderSystemName = "Legacy_RenderSystem"; + + if (!defined("LEGACY_DEPENDENCE_RENDERER")) { + define("LEGACY_DEPENDENCE_RENDERER", "Legacy_RenderSystem"); + } + } + + function setupModuleContext(&$context, $dirname) + { + $handler =& xoops_gethandler('module'); + $context->mModule =& $this->_createModule(); + $context->mModule->mXoopsModule =& $handler->getByDirname($dirname); + $context->mXoopsModule =& $context->mModule->mXoopsModule; + + if ($context->mXoopsModule == null) { + return; + } + + if ($context->mXoopsModule->get('hasconfig') == 1 || $context->mXoopsModule->get('hascomments') == 1) { + $handler =& xoops_gethandler('config'); + $context->mModule->mModuleConfig =& $handler->getConfigsByCat(0, $context->mXoopsModule->get('mid')); + $context->mModuleConfig =& $context->mModule->mModuleConfig; + } + + // + // Load Roles + // @todo clean code + // + $xoopsUser =& $context->mXoopsUser; + $groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS; + + $handler =& xoops_gethandler('groupperm'); + if ($handler->checkRight('module_read', $context->mXoopsModule->get('mid'), $groups)) { + $this->mController->mRoot->mContext->mUser->addRole('Module.' . $context->mXoopsModule->get('dirname') . '.Visitor'); + } + + if (is_object($xoopsUser) && $handler->checkRight('module_admin', $context->mXoopsModule->get('mid'), $groups)) { + $this->mController->mRoot->mContext->mUser->addRole('Module.' . $context->mXoopsModule->get('dirname') . '.Admin'); + } + + $handler =& xoops_getmodulehandler('group_permission', 'base'); + $roleArr = $handler->getRolesByModule($context->mXoopsModule->get('mid'), $groups); + foreach ($roleArr as $role) { + $context->mUser->addRole($role); + } + } + + function &_createModule() + { + $module =& new Legacy_Module(); + return $module; + } + + function setupBlock() + { + $showFlag =0; + $mid=0; + + if($this->mController->mRoot->mContext->mModule != null) { + $showFlag = (preg_match("/index\.php$/i", xoops_getenv('PHP_SELF')) && $this->mController->mConfig['startpage'] == $this->mController->mRoot->mContext->mXoopsModule->get('dirname')); + $mid = $this->mController->mRoot->mContext->mXoopsModule->get('mid'); + } + else { + // + // If you does not have module_contoller, this request is to toppage or other pages of toppage. + // + $mid = preg_match("/index\.php$/i", xoops_getenv('PHP_SELF')) ? -1 : 0; + } + + $blockHandler =& xoops_gethandler('block'); + $showCenterFlag = (SHOW_CENTERBLOCK_LEFT | SHOW_CENTERBLOCK_CENTER | SHOW_CENTERBLOCK_RIGHT); + $showRightFlag = SHOW_SIDEBLOCK_RIGHT; + $showFlag = SHOW_SIDEBLOCK_LEFT | $showRightFlag | $showCenterFlag; + $groups = is_object($this->mController->mRoot->mContext->mXoopsUser) ? $this->mController->mRoot->mContext->mXoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS; + + $blockObjects=&$blockHandler->getBlocks($groups, $mid, $showFlag); + foreach($blockObjects as $blockObject) { + $block =& new Legacy_BlockProcedureAdapter($blockObject); + if ($block->prepare() !== false) { + $this->mController->_mBlockChain[] =& $block; + } + unset($block); + unset($blockObject); + } + } + + function &getMainThemeObject() + { + // [TODO] + // Because get() of the virtual handler is heavy, we have to consider + // the new solution about this process. + // + $handler =& xoops_getmodulehandler('theme', 'base'); + $theme =& $handler->get($this->mController->getTheme()); + + return $theme; + } + + function isEnableCacheFeature() + { + return true; + } + + function enableAccess() + { + if ($this->mController->mRoot->mContext->mModule != null) { + $dirname = $this->mController->mRoot->mContext->mXoopsModule->get('dirname'); + + $GLOBALS['xoopsUserIsAdmin'] = $this->mController->mRoot->mContext->mUser->isInRole("Module.${dirname}.Admin"); + + return $this->mController->mRoot->mContext->mUser->isInRole("Module.${dirname}.Visitor"); + } + + return true; + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Oct 5 18:08:22 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:08:22 +0900 Subject: [xoops-cvslog 4777] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061005090822.1E5E72AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_HttpContext.class.php diff -u /dev/null xoops2jp/html/modules/base/kernel/Legacy_HttpContext.class.php:1.1.2.1 --- /dev/null Thu Oct 5 18:08:22 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_HttpContext.class.php Thu Oct 5 18:08:21 2006 @@ -0,0 +1,169 @@ +mXoopsModule. + * @access public + * @var XoopsModule + */ + var $mXoopsModule = null; + + /** + * The array for Xoops, which is configured in the preference of the base. + * This property and $xoopsConfig (X2) is the same. + */ + var $mXoopsConfig = array(); + + /** + * The array for Xoops Module Config. This is a short cut to mModule->mConfig. + * @access public + * @var array + */ + var $mModuleConfig = array(); + + /** + * A name of the render system used by the controller strategy. + */ + var $mBaseRenderSystemName = ""; +} + +class Legacy_Module +{ + /** + * @access public + * @var XoopsModule + */ + var $mXoopsModule = null; + + /** + * @access public + * @var array + */ + var $mModuleConfig = array(); + + var $mCacheInfo = null; + + var $mRender = null; + + function &getCacheInfo() + { + if (!is_object($this->mCacheInfo)) { + $this->_createCacheInfo(); + } + + return $this->mCacheInfo; + } + + function _createCacheInfo() + { + $this->mCacheInfo =& new Legacy_ModuleCacheInformation(); + $this->mCacheInfo->mURL = xoops_getenv('REQUEST_URI'); + $this->mCacheInfo->setModule($this->mXoopsModule); + } + + function &getRenderBuffer() + { + if ($this->mRender == null) { + $this->_createRenderBuffer(); + } + + return $this->mRender; + } + + function _createRenderBuffer() + { + $this->mRender =& new XCube_RenderTarget(); + $this->mRender->setType(XCUBE_RENDER_TARGET_TYPE_MAIN); + if ($this->mXoopsModule != null) { + $this->mRender->setModuleName($this->mXoopsModule->get('dirname')); + } + } + + function getRenderSystemName() + { + $root =& XCube_Root::getSingleton(); + return $root->mContext->mBaseRenderSystemName; + } + + function isActive() + { + return $this->mXoopsModule->get('isactive') ? true : false; + } + + function setupLanguage() + { + $root =& XCube_Root::getSingleton(); + $root->mLanguageManager->loadModuleMessageCatalog($this->mXoopsModule->getVar('dirname')); + } + + /** + * Gets a value indicating whether the current module has a option of + * configurations to use the cache system. + * @return bool + */ + function hasCacheConfig() + { + if (xoops_getenv('REQUEST_METHOD') == 'POST') { + return false; + } + + $root =& XCube_Root::getSingleton(); + + return is_object($this->mXoopsModule) && !empty($root->mController->mConfig['module_cache'][$this->mXoopsModule->get('mid')]); + } + + /** + * Initializes a cache information object, and returns it. + * @return Legacy_ModuleCacheInformation + */ + function &createCacheInfo() + { + $this->mCacheInfo =& new Legacy_ModuleCacheInformation(); + $this->mCacheInfo->mURL = xoops_getenv('REQUEST_URI'); + $this->mCacheInfo->setModule($xoopsModule); + + return $this->mCacheInfo; + } +} + +class Legacy_AdminModule extends Legacy_Module +{ + function setupLanguage() + { + $root =& XCube_Root::getSingleton(); + if (isset($this->mXoopsModule->modinfo['cube_style']) && $this->mXoopsModule->modinfo['cube_style'] != false) { + $root->mLanguageManager->loadModuleMessageCatalog($this->mXoopsModule->get('dirname')); + } + $root->mLanguageManager->loadModuleAdminMessageCatalog($this->mXoopsModule->get('dirname')); + $root->mLanguageManager->loadModinfoMessageCatalog($this->mXoopsModule->get('dirname')); + } + + function hasCacheConfig() + { + return false; + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Oct 5 18:08:28 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:08:28 +0900 Subject: [xoops-cvslog 4778] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061005090828.BB1C42AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php:1.1.2.11.2.1 xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php:removed --- xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php:1.1.2.11.2.1 Thu Sep 28 19:23:50 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php Thu Oct 5 18:08:28 2006 @@ -1,208 +0,0 @@ -mController->mModuleController->setupModuleObject('base'); - $root->mController->mModuleController->setupRenderTarget(); - - $moduleRunner =& new Legacy_ActionFrame(false); - - $action = isset($_REQUEST['op']) ? ucfirst(xoops_getrequest('op')) : "List"; - $moduleRunner->setMode(LEGACY_FRAME_MODE_IMAGE); - $moduleRunner->setActionName($action); - - $root->mController->setActionStrategy($moduleRunner); - - $root->mController->executeAction(); - - $root->mController->executeView(); - } - - function backend() - { - require_once XOOPS_MODULE_PATH . "/base/class/ActionFrame.class.php"; - - $root =& XCube_Root::getSingleton(); - $root->mController->mModuleController->setupModuleObject('base'); - $root->mController->mModuleController->setupRenderTarget(); - - $moduleRunner =& new Legacy_ActionFrame(false); - $moduleRunner->setActionName('Backend'); - - $root->mController->setActionStrategy($moduleRunner); - - $root->mController->executeAction(); - - $root->mController->executeView(); - } - - function search() - { - require_once XOOPS_MODULE_PATH . "/base/class/ActionFrame.class.php"; - - $root =& XCube_Root::getSingleton(); - $root->mController->mModuleController->setupModuleObject('base'); - $root->mController->mModuleController->setupRenderTarget(); - - $moduleRunner =& new Legacy_ActionFrame(false); - $moduleRunner->setMode(LEGACY_FRAME_MODE_SEARCH); - $moduleRunner->setActionName(ucfirst(xoops_getrequest('action'))); - - $root->mController->mExecute->add(array(&$moduleRunner, 'execute')); - - $root->mController->execute(); - - $root->mController->executeView(); - - } - - function misc() - { - require_once XOOPS_BASE_PATH . "/class/ActionFrame.class.php"; - - $root =& XCube_Root::getSingleton(); - $root->mController->mModuleController->setupModuleObject('base'); - $root->mController->mModuleController->setupRenderTarget(); - - $actionName = isset($_REQUEST['type']) ? ucfirst(xoops_getrequest('type')) : "Smilies"; - - $moduleRunner = new Legacy_ActionFrame(false); - $moduleRunner->setMode(LEGACY_FRAME_MODE_MISC); - $moduleRunner->setActionName($actionName); - - $root->mController->setActionStrategy($moduleRunner); - - $root->mController->setDialogMode(true); - - $root->mController->executeAction(); - - $root->mController->executeView(); - } - - function notifications() - { - require_once XOOPS_BASE_PATH . "/class/ActionFrame.class.php"; - - $root =& XCube_Root::getSingleton(); - $root->mController->mModuleController->setupModuleObject('base'); - $root->mController->mModuleController->setupRenderTarget(); - - // - // 'Notify' is prefix to guard accessing from misc.php. - // - $actionName = isset($_REQUEST['op']) ? trim(xoops_getrequest('op')) : "List"; - if (isset($_REQUEST['delete'])) { - $actionName = "Delete"; - } - if (isset($_REQUEST['delete_cancel'])) { - $actionName = "Cancel"; - } - - $moduleRunner = new Legacy_ActionFrame(false); - $moduleRunner->setMode(LEGACY_FRAME_MODE_NOTIFY); - $moduleRunner->setActionName($actionName); - - $root->mController->setActionStrategy($moduleRunner); - - $root->mController->executeAction(); - - $root->mController->executeView(); - } - - /** - * This functions is add to 'Legacyfunction.Notifications.Select'. - * - * @param XCube_RenderBuffer $render - */ - function notifications_select(&$render) - { - require_once XOOPS_ROOT_PATH . '/include/notification_constants.php'; - require_once XOOPS_ROOT_PATH . '/include/notification_functions.php'; - - $root =& XCube_Root::getSingleton(); - $xoopsModule =& $root->mController->mModuleController->mModuleObject; - $moduleConfig =& $root->mController->mModuleController->mConfig; - $xoopsUser =& $root->mController->getXoopsUser(); - - $xoops_notification = array(); - $xoops_notification['show'] = is_object($xoopsModule) && is_object($xoopsUser) && notificationEnabled('inline') ? 1 : 0; - - if ($xoops_notification['show']) { - $root->mLanguageManager->loadPageTypeMessageCatalog('notification'); - $categories =& notificationSubscribableCategoryInfo(); - $event_count = 0; - if (!empty($categories)) { - $notification_handler =& xoops_gethandler('notification'); - foreach ($categories as $category) { - $section['name'] = $category['name']; - $section['title'] = $category['title']; - $section['description'] = $category['description']; - $section['itemid'] = $category['item_id']; - $section['events'] = array(); - $subscribed_events =& $notification_handler->getSubscribedEvents($category['name'], $category['item_id'], $xoopsModule->get('mid'), $xoopsUser->get('uid')); - foreach (notificationEvents($category['name'], true) as $event) { - if (!empty($event['admin_only']) && !$xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { - continue; - } - if (!empty($event['invisible'])) { - continue; - } - $subscribed = in_array($event['name'], $subscribed_events) ? 1 : 0; - $section['events'][$event['name']] = array ('name'=>$event['name'], 'title'=>$event['title'], 'caption'=>$event['caption'], 'description'=>$event['description'], 'subscribed'=>$subscribed); - $event_count ++; - } - $xoops_notification['categories'][$category['name']] = $section; - } - $xoops_notification['target_page'] = "notification_update.php"; - $xoops_notification['redirect_script'] = xoops_getenv('PHP_SELF'); - - $render->setAttribute('editprofile_url', $urlXOOPS_URL . '/edituser.php?uid=' . $xoopsUser->getShow('uid')); - - switch ($xoopsUser->getVar('notify_method')) { - case XOOPS_NOTIFICATION_METHOD_DISABLE: - $render->setAttribute('user_method', _NOT_DISABLE); - break; - case XOOPS_NOTIFICATION_METHOD_PM: - $render->setAttribute('user_method', _NOT_PM); - break; - case XOOPS_NOTIFICATION_METHOD_EMAIL: - $render->setAttribute('user_method', _NOT_EMAIL); - break; - } - } else { - $xoops_notification['show'] = 0; - } - if ($event_count == 0) { - $xoops_notification['show'] = 0; - } - } - - $render->setAttribute('xoops_notification', $xoops_notification); - } - - /** - * This member function is added to 'User_UserViewAction.GetUserPosts'. - * Recount posts of $xoopsUser in the comment system. - * - * @static - */ - function recountPost(&$posts, $xoopsUser) - { - $handler =& xoops_gethandler('comment'); - $criteria =& new Criteria('com_uid', $xoopsUser->get('uid')); - $posts += $handler->getCount($criteria); - } -} - -?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Oct 5 18:08:39 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:08:39 +0900 Subject: [xoops-cvslog 4779] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061005090839.88A2E2AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.3 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.4 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.3 Fri Sep 29 17:14:20 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Thu Oct 5 18:08:39 2006 @@ -1,7 +1,7 @@ mGetBlockCacheFilePath =& new XCube_Delegate(); set_magic_quotes_runtime(0); // ^^; + } + + function prepare(&$root) + { + parent::prepare($root); // // Decide status. [TEST] @@ -141,8 +143,14 @@ elseif(substr($urlInfo[0], 0, 9) == "admin.php") { $adminStateFlag=true; } - - $this->_mStrategy = $adminStateFlag ? new Legacy_AdminControllerStrategy($this) : new Legacy_PublicControllerStrategy($this); + + if ($adminStateFlag) { + require_once XOOPS_ROOT_PATH . "/modules/base/kernel/Legacy_AdminControllerStrategy.class.php"; + $this->_mStrategy =& new Legacy_AdminControllerStrategy($this); + } + else { + $this->_mStrategy =& new Legacy_PublicControllerStrategy($this); + } } /** @@ -179,8 +187,8 @@ $this->_setupUser(); - $this->_setupModuleController(); - + $this->setupModuleContext(); + $this->_processModuleController(); } @@ -273,7 +281,7 @@ $cacheInfo =& new Legacy_BlockCacheInformation(); - foreach ($this->mBlockChain as $blockProcedure) { + foreach ($this->_mBlockChain as $blockProcedure) { $renderTarget->reset(); // @@ -287,7 +295,7 @@ // Reset the block cache information structure, and initialize. // $cacheInfo->reset(); - $cacheInfo->setBlock($blockProcedure->mAdapteeBlockObject); //< FIXME + $cacheInfo->setBlock($blockProcedure); //< FIXME $this->mCheckEnableBlockCache->call(new XCube_Ref($cacheInfo)); $filepath = $this->getBlockCacheFilePath($cacheInfo); @@ -312,26 +320,24 @@ } if (!$usedCacheFlag) { - $renderSystem =& $this->mRoot->getRenderSystem($blockProcedure->getRenderSystemName()); - - $blockProcedure->execute($this, $this->getXoopsUser(), $renderTarget); + $blockProcedure->execute(); - if (!$blockProcedure->hasResult()) { + if (!$blockProcedure->isDisplay()) { continue; } - $renderSystem->renderBlock($renderTarget); + $renderBuffer =& $blockProcedure->getRenderBuffer(); $this->mBlockShowFlags[$blockProcedure->getEntryIndex()] = true; $this->mBlockContents[$blockProcedure->getEntryIndex()][] = array( 'name' => $blockProcedure->getName(), 'title'=>$blockProcedure->getTitle(), - 'content'=>$renderTarget->getResult(), + 'content'=>$renderBuffer->getResult(), 'weight'=>$blockProcedure->getWeight() ); if ($this->isEnableCacheFeature() && $blockProcedure->getCacheTime() > 0 && $cacheInfo->isEnableCache()) { - $this->cacheRenderTarget($this->getBlockCacheFilePath($cacheInfo), $renderTarget); + $this->cacheRenderTarget($this->getBlockCacheFilePath($cacheInfo), $renderBuffer); } } @@ -349,33 +355,50 @@ return explode("/",$subPath); } - function _setupModuleController() + function setupModuleContext($dirname = null) { - $this->_mStrategy->setupModuleController(); + if ($dirname == null) { + // + // Sets a module object. + // + $urlInfo = $this->_parseUrl(); + + if (count($urlInfo) >= 2) { + if (strtolower($urlInfo[0]) == 'modules') { + $dirname = $urlInfo[1]; + } + } + elseif (substr($urlInfo[0], 0, 9) == 'admin.php') { + $dirname = 'base'; + } + } + + if ($dirname == null) { + return; + } + + if (!file_exists(XOOPS_ROOT_PATH . "/modules/" . $dirname . "/" . LEGACY_XOOPS_MODULE_MANIFESTO_FILENAME)) { + return; + } + + $this->_mStrategy->setupModuleContext($this->mRoot->mContext, $dirname); } - function &getModuleController() - { - return $this->mModuleController; - } - function _processModuleController() { - $this->mModuleController->prepare(); - - if ($this->mModuleController->isModuleProcess()) { - if (!$this->mModuleController->isActive()) { + if ($this->mRoot->mContext->mModule != null) { + if (!$this->mRoot->mContext->mModule->isActive()) { die('NOT ACTIVE'); ///< @todo } - - if (!$this->mModuleController->hasPermission()) { + + if (!$this->_mStrategy->enableAccess()) { $this->executeRedirect(XOOPS_URL . '/',1,_NOPERM); // TODO Depens on const message catalog. - } - - $this->mModuleController->setupLanguage(); + } + + $this->mRoot->mContext->mModule->setupLanguage(); - $GLOBALS['xoopsModule'] =& $this->mModuleController->mModuleObject; // TODO - $GLOBALS['xoopsModuleConfig'] = $this->mModuleController->getConfig(); + $GLOBALS['xoopsModule'] =& $this->mRoot->mContext->mXoopsModule; + $GLOBALS['xoopsModuleConfig'] =& $this->mRoot->mContext->mModuleConfig; } } @@ -415,21 +438,10 @@ /****************************************************/ /* Principal */ /****************************************************/ - - if (is_object($this->mXoopsUser)) { -/* $this->mUser->_mId = $this->mXoopsUser->get('uid'); //< FIXME - $this->mUser->setGuest(false); - $this->mUser->setService(false);*/ - } -/* else { - $this->mUser->_mId = 0; //< FIXME - $this->mUser->setGuest(true); - $this->mUser->setService(false); - }*/ // Set instance to global variable for compatiblity with XOOPS 2.0.x - $GLOBALS['xoopsUser'] =& $this->mXoopsUser; - $GLOBALS['xoopsUserIsAdmin'] = is_object($this->mXoopsUser) ? $this->mXoopsUser->isAdmin(1) : false; //@todo Remove '1' + $GLOBALS['xoopsUser'] =& $this->mRoot->mContext->mXoopsUser; + $GLOBALS['xoopsUserIsAdmin'] = is_object($this->mRoot->mContext->mXoopsUser) ? $this->mRoot->mContext->mXoopsUser->isAdmin(1) : false; //@todo Remove '1' // // Set member handler to global variables for compatibility with XOOPS 2.0.x. @@ -671,31 +683,33 @@ // // cache check // - $cacheInfo =& $this->mModuleController->createCacheInfo(); - - $this->mCheckEnableModuleCache->call(new XCube_Ref($cacheInfo)); - - if ($this->isEnableCacheFeature() && $this->mModuleController->hasCacheConfig()) { - // - // Checks whether the cache file exists. - // - $xoopsModule =& $this->mModuleController->getXoopsModule(); - - $cachetime = $this->mConfig['module_cache'][$xoopsModule->get('mid')]; - $filepath = $this->getModuleCacheFilePath($cacheInfo); + if ($this->mRoot->mContext->mModule != null && $this->isEnableCacheFeature()) { + $cacheInfo =& $this->mRoot->mContext->mModule->createCacheInfo(); - // - // Checks whether the active cache file exists. If it's OK, load - // cache and do display. - // - if ($cacheInfo->isEnableCache() && $this->existActiveCacheFile($filepath, $cachetime)) { - $renderSystem =& $this->mRoot->getRenderSystem($this->mModuleController->getDependRenderSystem()); - $renderTarget =& $renderSystem->createRenderTarget(XCUBE_RENDER_TARGET_TYPE_MAIN); - $renderTarget->setResult($this->loadCache($filepath)); - - $this->_executeViewTheme($renderTarget); + $this->mCheckEnableModuleCache->call(new XCube_Ref($cacheInfo)); + + if ($this->mRoot->mContext->mModule->hasCacheConfig()) { + // + // Checks whether the cache file exists. + // + $xoopsModule =& $this->mRoot->mContext->mXoopsModule; + + $cachetime = $this->mConfig['module_cache'][$xoopsModule->get('mid')]; + $filepath = $this->getModuleCacheFilePath($cacheInfo); - exit(0); + // + // Checks whether the active cache file exists. If it's OK, load + // cache and do display. + // + if ($cacheInfo->isEnableCache() && $this->existActiveCacheFile($filepath, $cachetime)) { + $renderSystem =& $this->mRoot->getRenderSystem($this->mModule->getRenderSystemName()); + $renderTarget =& $renderSystem->createRenderTarget(XCUBE_RENDER_TARGET_TYPE_MAIN); + $renderTarget->setResult($this->loadCache($filepath)); + + $this->_executeViewTheme($renderTarget); + + exit(0); + } } } @@ -713,44 +727,43 @@ function executeView() { - $renderSystem =& $this->mRoot->getRenderSystem($this->mModuleController->getDependRenderSystem()); - $renderTarget =& $this->mModuleController->getRenderTarget(); + if ($this->mRoot->mContext->mModule != null) { + $renderSystem =& $this->mRoot->getRenderSystem($this->mRoot->mContext->mModule->getRenderSystemName()); + $renderTarget =& $this->mRoot->mContext->mModule->getRenderBuffer(); - // - // Buffering handling of standard output for main render target is responsibility - // of a controller. Of course all controllers do not have to implement this. - // The following lines are movement for compatibility and the feature of - // this controller. - // + // + // Buffering handling of standard output for main render target is responsibility + // of a controller. Of course all controllers do not have to implement this. + // The following lines are movement for compatibility and the feature of + // this controller. + // - - // require_once XOOPS_ROOT_PATH . '/include/notification_select.php'; - - // Wmm... - if (is_object($renderTarget)) { - if ($renderTarget->getTemplateName() == null) { - if (isset($GLOBALS['xoopsOption']['template_main'])) { - $renderTarget->setTemplateName($GLOBALS['xoopsOption']['template_main']); + // Wmm... + if (is_object($renderTarget)) { + if ($renderTarget->getTemplateName() == null) { + if (isset($GLOBALS['xoopsOption']['template_main'])) { + $renderTarget->setTemplateName($GLOBALS['xoopsOption']['template_main']); + } } + + $renderTarget->setAttribute("stdout_buffer", ob_get_contents()); } + + ob_end_clean(); - $renderTarget->setAttribute("stdout_buffer", ob_get_contents()); - } - - ob_end_clean(); - - if (is_object($renderTarget)) { - $renderSystem->renderWithTarget($renderTarget); - - // - // Cache Control - // - if ($this->isEnableCacheFeature() && $this->mModuleController->hasCacheConfig()) { - if ($this->mModuleController->mCacheInfo->isEnableCache()) { - $this->cacheRenderTarget($this->getModuleCacheFilePath($this->mModuleController->mCacheInfo), $renderTarget); + if (is_object($renderTarget)) { + $renderSystem->renderWithTarget($renderTarget); + + // + // Cache Control + // + if ($this->isEnableCacheFeature() && $this->mRoot->mContext->mModule->hasCacheConfig()) { + if ($this->mRoot->mContext->mModule->mCacheInfo->isEnableCache()) { + $this->cacheRenderTarget($this->getModuleCacheFilePath($this->mRoot->mContext->mModule->mCacheInfo), $renderTarget); + } + } + else { } - } - else { } } @@ -763,20 +776,18 @@ function _executeViewTheme(&$resultRenderTarget) { // - // Theme Control + // Get the render-system through theme object. // - $screenTarget = $this->mDialogMode ? new Legacy_DialogRenderTarget() : new Legacy_ThemeRenderTarget(); + $theme =& $this->_mStrategy->getMainThemeObject(); + + $renderSystem =& $this->mRoot->getRenderSystem($theme->get('render_system')); + $screenTarget = $renderSystem->getThemeRenderTarget($this->mDialogMode); if (is_object($resultRenderTarget)) { $screenTarget->setAttribute('xoops_contents', $resultRenderTarget->getResult()); } - // - // Get the render-system through theme object. - // - $theme =& $this->_mStrategy->getMainThemeObject(); - $renderSystem =& $this->mRoot->getRenderSystem($theme->get('render_system')); $screenTarget->setTemplateName($theme->get('dirname')); // @@ -788,16 +799,16 @@ // Debug Process // $isAdmin=false; - if(is_object($this->mXoopsUser)) { - if($this->mModuleController->isModuleProcess() && $this->mModuleController->isActive()) { + if(is_object($this->mRoot->mContext->mXoopsUser)) { + if($this->mRoot->mContext->mModule != null && $this->mRoot->mContext->mModule->isActive()) { // @todo I depend on Legacy Module Controller. - $mid=$this->mModuleController->mModuleObject->getVar('mid'); + $mid = $this->mRoot->mContext->mXoopsModule->getVar('mid'); } else { - $mid=1; ///< @todo Do not use literal directly! + $mid = 1; ///< @todo Do not use literal directly! } - $isAdmin = $this->mXoopsUser->isAdmin($mid); + $isAdmin = $this->mRoot->mContext->mXoopsUser->isAdmin($mid); } if ($isAdmin) { @@ -809,7 +820,7 @@ { $delegateManager =& parent::_createDelegateManager(); - $file = XOOPS_ROOT_PATH . "/modules/base/kernel/Legacy_EventFunctions.class.php"; + $file = XOOPS_ROOT_PATH . "/modules/base/include/Legacy_EventFunctions.class.php"; $delegateManager->add('Legacypage.Notifications.Access', 'Legacy_EventFunction::notifications', $file); $delegateManager->add('Legacyfunction.Notifications.Select', 'Legacy_EventFunction::notifications_select', $file); @@ -843,18 +854,18 @@ */ function checkLogin() { - if (!is_object($this->mXoopsUser)) { - $this->mCheckLogin->call(new XCube_Ref($this->mXoopsUser)); + if (!is_object($this->mRoot->mContext->mXoopsUser)) { + $this->mCheckLogin->call(new XCube_Ref($this->mRoot->mContext->mXoopsUser)); $this->mRoot->mLanguageManager->loadModuleMessageCatalog('base'); - if(is_object($this->mXoopsUser)) { + if(is_object($this->mRoot->mContext->mXoopsUser)) { // RMV-NOTIFY // Perform some maintenance of notification records $notification_handler =& xoops_gethandler('notification'); - $notification_handler->doLoginMaintenance($this->mXoopsUser->get('uid')); + $notification_handler->doLoginMaintenance($this->mRoot->mContext->mXoopsUser->get('uid')); - XCube_DelegateUtils::call("Site.CheckLogin.Success", new XCube_Ref($this->mXoopsUser)); + XCube_DelegateUtils::call("Site.CheckLogin.Success", new XCube_Ref($this->mRoot->mContext->mXoopsUser)); // // Fall back process for login success. @@ -871,10 +882,10 @@ } } - $this->executeRedirect($url, 1, XCube_Utils::formatMessage(_MD_BASE_MESSAGE_LOGIN_SUCCESS, $this->mXoopsUser->get('uname'))); + $this->executeRedirect($url, 1, XCube_Utils::formatMessage(_MD_BASE_MESSAGE_LOGIN_SUCCESS, $this->mRoot->mContext->mXoopsUser->get('uname'))); } else { - XCube_DelegateUtils::call("Site.CheckLogin.Fail", new XCube_Ref($this->mXoopsUser)); + XCube_DelegateUtils::call("Site.CheckLogin.Fail", new XCube_Ref($this->mRoot->mContext->mXoopsUser)); // // Fall back process for login fail. @@ -895,7 +906,7 @@ function logout() { $successFlag = false; - $xoopsUser =& $this->getXoopsUser(); + $xoopsUser =& $this->mRoot->mContext->mXoopsUser; if (is_object($xoopsUser)) { @@ -941,16 +952,11 @@ // The following line depends on XCube_Controller process of executeCommon. // But, There is no other method. // - $this->_setupModuleController(); + $this->setupModuleContext(); $this->_processModuleController(); } } - function &getXoopsUser() - { - return $this->mXoopsUser; - } - /** * Set bool flag to dialog mode flag. * If you set true, executeView() will use Legacy_DialogRenderTarget class as @@ -1197,6 +1203,17 @@ return null; } + + function &_createContext() + { + require_once XOOPS_ROOT_PATH . "/modules/base/kernel/Legacy_HttpContext.class.php"; + + $context =& new Legacy_HttpContext(); + $request =& new XCube_HttpRequest(); + $context->setRequest($request); + + return $context; + } } /** @@ -1238,12 +1255,18 @@ } /** - * Create a instance of ModuleController, and set it to mModuleController - * property of $controller. - * - * @param $controller Legacy_Controller - */ - function setupModuleController() + * Create some instances for the module process. + * @param Legacy_HttpContext $context + */ + function setupModuleContext(&$context) + { + } + + /** + * Gets the module object. + * @return Legacy_Module + */ + function &_createModule() { } @@ -1276,189 +1299,13 @@ function isEnableCacheFeature() { } -} - -class Legacy_PublicControllerStrategy extends Legacy_AbstractControllerStrategy -{ - var $mStatusFlag = LEGACY_CONTROLLER_STATE_PUBLIC; - - function Legacy_PublicControllerStrategy(&$controller) - { - parent::Legacy_AbstractControllerStrategy($controller); - - if (!defined("LEGACY_DEPENDENCE_RENDERER")) { - define("LEGACY_DEPENDENCE_RENDERER", "Legacy_RenderSystem"); - } - } - - function setupModuleController() - { - require_once XOOPS_BASE_PATH . "/kernel/Legacy_ModuleController.class.php"; - $this->mController->mModuleController =& new Legacy_ModuleController($this->mController); - } - - function setupBlock() - { - $showFlag =0; - $mid=0; - - if($this->mController->mModuleController->isModuleProcess()) { - $showFlag = (preg_match("/index\.php$/i", xoops_getenv('PHP_SELF')) && $this->mController->mConfig['startpage'] == $this->mController->mModuleController->mModuleObject->getVar('dirname')); - $mid = $this->mController->mModuleController->mModuleObject->getVar('mid'); - } - else { - // - // If you does not have module_contoller, this request is to toppage or other pages of toppage. - // - $mid = preg_match("/index\.php$/i", xoops_getenv('PHP_SELF')) ? -1 : 0; - } - - $blockHandler =& xoops_gethandler('block'); - $showCenterFlag = (SHOW_CENTERBLOCK_LEFT | SHOW_CENTERBLOCK_CENTER | SHOW_CENTERBLOCK_RIGHT); - $showRightFlag = SHOW_SIDEBLOCK_RIGHT; - $showFlag = SHOW_SIDEBLOCK_LEFT | $showRightFlag | $showCenterFlag; - $groups = is_object($this->mController->mXoopsUser) ? $this->mController->mXoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS; - - $blockObjects=&$blockHandler->getBlocks($groups, $mid, $showFlag); - foreach($blockObjects as $blockObject) { - $this->mController->mBlockChain[] =& new Legacy_AdaptBlockProcedure($blockObject); - unset($blockObject); - } - } - - function &getMainThemeObject() - { - // [TODO] - // Because get() of the virtual handler is heavy, we have to consider - // the new solution about this process. - // - $handler =& xoops_getmodulehandler('theme', 'base'); - $theme =& $handler->get($this->mController->getTheme()); - - return $theme; - } - - function isEnableCacheFeature() - { - return true; - } -} - -class Legacy_AdminControllerStrategy extends Legacy_AbstractControllerStrategy -{ - var $mStatusFlag = LEGACY_CONTROLLER_STATE_ADMIN; /** - * @var XCube_Delegate - * @param XCube_Controller &$controller - */ - var $mSetupBlock = null; - - /** - * If this array includes current action, getVirtualCurrentModule() returns - * the module object that specified by dirname. - * - * @access private + * Gets a value indicating whether the current user can access to the current module. + * @return bool */ - var $_mSpecialActions = array("Help", "CommentList"); - - function Legacy_AdminControllerStrategy(&$controller) - { - global $xoopsOption; - - parent::Legacy_AbstractControllerStrategy($controller); - - // - // TODO We have to develop complated-switching-controller-mechanizm. - // - if (!defined("LEGACY_DEPENDENCE_RENDERER")) { - define("LEGACY_DEPENDENCE_RENDERER", "Legacy_AdminRenderSystem"); - } - - // - // Cover the spec of admin.php of the system module, for the compatibility. - // - if (isset($_REQUEST['fct']) && $_REQUEST['fct'] == "users") { - $GLOBALS['xoopsOption']['pagetype'] = "user"; - } - - $this->mSetupBlock =& new XCube_Delegate(); - $this->mSetupBlock->register('Legacy_AdminControllerStrategy.SetupBlock'); - } - - function _setupFilterChain() - { - parent::_setupFilterChain(); - - // - // Auto pre-loading. - // - if($this->mController->mRoot->getSiteConfig('Legacy', 'AutoPreload') == 1) { - $this->mController->_processPreload(XOOPS_ROOT_PATH . "/preload/admin"); - } - } - - function setupModuleController() - { - require_once XOOPS_BASE_PATH . "/kernel/Legacy_AdminModuleController.class.php"; - $this->mController->mModuleController =& new Legacy_AdminModuleController($this->mController); - } - - function setupBlock() - { - require_once XOOPS_BASE_PATH . "/admin/blocks/AdminActionSearch.class.php"; - require_once XOOPS_BASE_PATH . "/admin/blocks/AdminSideMenu.class.php"; - $this->mController->mBlockChain[] =& new Legacy_AdminActionSearch(); - $this->mController->mBlockChain[] =& new Legacy_AdminSideMenu(); - - $this->mSetupBlock->call(new XCube_Ref($this->mController)); - } - - function _processPreBlockFilter() + function enableAccess() { - parent::_processPreBlockFilter(); - $this->mController->_processModulePreload('/admin/preload'); - } - - function &getVirtualCurrentModule() - { - $module = null; - - if ($this->mController->mModuleController->isModuleProcess()) { - $module =& $this->mController->mModuleController->getXoopsModule(); - - if ($module->get('dirname') == "base" && isset($_REQUEST['dirname'])) { - if (in_array(xoops_getrequest('action'), $this->_mSpecialActions)) { - $handler =& xoops_gethandler('module'); - $module =& $handler->getByDirname(xoops_getrequest('dirname')); - } - } - elseif ($module->get('dirname') == "base" && xoops_getrequest('action') == 'PreferenceEdit' && isset($_REQUEST['confmod_id'])) { - $handler =& xoops_gethandler('module'); - $module =& $handler->get(intval(xoops_getrequest('confmod_id'))); - } - } - - return $module; - } - - function &getMainThemeObject() - { - $handler =& xoops_getmodulehandler('theme', 'base'); - $theme =& $handler->create(); - - // - // TODO Load manifesto here. - // - $theme->set('dirname', $this->mController->mRoot->mSiteConfig['Legacy']['Theme']); - $theme->set('render_system', 'Legacy_AdminRenderSystem'); - - return $theme; - } - - function isEnableCacheFeature() - { - return false; } } From minahito @ users.sourceforge.jp Thu Oct 5 18:08:50 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:08:50 +0900 Subject: [xoops-cvslog 4780] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061005090850.602EC2AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php:1.1.2.1.2.1 xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php:1.1.2.1.2.2 --- xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php:1.1.2.1.2.1 Thu Sep 28 14:03:56 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php Thu Oct 5 18:08:50 2006 @@ -1,37 +1,81 @@ mRender)) { + $this->_createRenderBuffer(); + } + + return $this->mRender; + } + + /** + * Gets a name of the dependence render-system. + * @return string + */ + function getRenderSystemName() { + $root =& XCube_Root::getSingleton(); + return $root->mContext->mBaseRenderSystemName; } + /** + * Creates a instance of the render buffer, and set it to the property. + * This is a helper function for sub-classes. + * @access protected + */ + function &_createRenderBuffer() + { + $this->mRender =& new XCube_RenderTarget(); + $this->mRender->setType(XCUBE_RENDER_TARGET_TYPE_BLOCK); + + return $this->mRender; + } + function getId() { } - function enableCached() + function getName() + { + } + + /** + * Gets a value indicating whether the block can be cached. + * @return bool + */ + function enableCache() { - return true; } /** @@ -40,11 +84,11 @@ */ function getCacheTime() { - return 0; } function getTitle() { + return $this->_mBlock->get('title'); } function getEntryIndex() @@ -54,105 +98,112 @@ function getWeight() { } - - function hasResult() - { - } - function &getResult() - { - } - /** - * Return a name of the render-system which this object requests to render. - * - * @return string + * Gets a value indicating whether this block nees to display its content. */ - function getRenderSystemName() + function isDisplay() { + return true; } } -/** - * The adapter class for XoopsBlock objects of XOOPS2 JP. - * @see Legacy_BlockProcedure - */ -class Legacy_AdaptBlockProcedure extends Legacy_BlockProcedure +class Legacy_BlockProcedure extends Legacy_AbstractBlockProcedure { /** - * @access private + * @var XoopsBlock */ - var $mAdapteeBlockObject; - - var $mResultData; - - function Legacy_AdaptBlockProcedure(&$blockObject) + var $_mBlock = null; + + /** + * @var XCube_RenderTarget + */ + var $mRender = null; + + function Legacy_BlockProcedure(&$block) { - $this->mAdapteeBlockObject=&$blockObject; + $this->_mBlock =& $block; } - - function execute(&$controller, &$user, &$render) + + function prepare() { - $this->mResultData =& $this->mAdapteeBlockObject->buildBlock(); - $render->setAttribute("mid", $this->getId()); - - if ($this->mAdapteeBlockObject->get('template') == null) { - $render->setTemplateName('system_dummy.html'); - $render->setAttribute('dummy_content', $this->mResultData['content']); - } - else { - $render->setTemplateName($this->mAdapteeBlockObject->get('template')); - $render->setAttribute('block', $this->mResultData); - } + return true; } function getId() { - return $this->mAdapteeBlockObject->get('bid'); + return $this->_mBlock->get('bid'); } - function enableCached() + function getName() { - return true; + return $this->_mBlock->get('title'); + } + + function enableCache() + { + return $this->_mBlock->get('bcachetime') > 0; } - /** - * Return cache time - * @return int - */ function getCacheTime() { - return $this->mAdapteeBlockObject->get('bcachetime'); + return $this->_mBlock->get('bcachetime'); } function getTitle() { - return $this->mAdapteeBlockObject->get('title'); + return $this->_mBlock->get('title'); } function getEntryIndex() { - return $this->mAdapteeBlockObject->getVar('side'); + return $this->_mBlock->getVar('side'); } function getWeight() { - return $this->mAdapteeBlockObject->get('weight'); - } - - function hasResult() - { - return !empty($this->mResultData); + return $this->_mBlock->get('weight'); } +} + +/** + * The adapter class for XoopsBlock objects of XOOPS2 JP. + * @see Legacy_AbstractBlockProcedure + */ +class Legacy_BlockProcedureAdapter extends Legacy_BlockProcedure +{ + var $_mDisplayFlag = true; - function &getResult() + function execute() { - return $this->mResultData; + $result =& $this->_mBlock->buildBlock(); + + if (empty($result)) { + $this->_mDisplayFlag = false; + return; + } + + $render =& $this->getRenderBuffer(); + $render->setAttribute("mid", $this->getId()); + + if ($this->_mBlock->get('template') == null) { + $render->setTemplateName('system_dummy.html'); + $render->setAttribute('dummy_content', $result['content']); + } + else { + $render->setTemplateName($this->_mBlock->get('template')); + $render->setAttribute('block', $result); + } + + $root =& XCube_Root::getSingleton(); + $renderSystem =& $root->getRenderSystem($this->getRenderSystemName()); + + $renderSystem->renderBlock($render); } - function getRenderSystemName() + function isDisplay() { - return 'Legacy_RenderSystem'; + return $this->_mDisplayFlag; } } From minahito @ users.sourceforge.jp Thu Oct 5 18:08:55 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:08:55 +0900 Subject: [xoops-cvslog 4781] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061005090855.A3C0C2AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php:1.1.2.5.2.1 xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php:1.1.2.5.2.2 --- xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php:1.1.2.5.2.1 Tue Oct 3 18:30:38 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php Thu Oct 5 18:08:55 2006 @@ -1,7 +1,7 @@ mController->mXoopsUser)) { + if (!is_object($this->mController->mRoot->mContext->mXoopsUser)) { return false; } @@ -68,7 +68,7 @@ } $modPermHandler =& xoops_gethandler('groupperm'); - return $modPermHandler->checkRight('module_admin', $mid, $this->mController->mXoopsUser->getGroups()); + return $modPermHandler->checkRight('module_admin', $mid, $this->mController->mRoot->mContext->mXoopsUser->getGroups()); } $GLOBALS['xoopsUserIsAdmin'] = true; From minahito @ users.sourceforge.jp Thu Oct 5 18:09:12 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:09:12 +0900 Subject: [xoops-cvslog 4782] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061005090912.EBF632AC0A2@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_CacheInformation.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_CacheInformation.class.php:1.1.2.2 xoops2jp/html/modules/base/kernel/Legacy_CacheInformation.class.php:1.1.2.2.2.1 --- xoops2jp/html/modules/base/kernel/Legacy_CacheInformation.class.php:1.1.2.2 Mon Sep 25 12:22:36 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_CacheInformation.class.php Thu Oct 5 18:09:12 2006 @@ -142,11 +142,11 @@ /** * Sets a block object. * - * @param XoopsBlock $block + * @param Legacy_AbstractBlockProcedure $blockProcedure */ - function setBlock(&$block) + function setBlock(&$blockProcedure) { - $this->mBlock =& $block; + $this->mBlock =& $blockProcedure->_mBlock; } function reset() From minahito @ users.sourceforge.jp Thu Oct 5 18:09:32 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:09:32 +0900 Subject: [xoops-cvslog 4783] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061005090932.ED6F92AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:1.1.2.13.2.1 xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:1.1.2.13.2.2 --- xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:1.1.2.13.2.1 Tue Oct 3 18:30:38 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php Thu Oct 5 18:09:32 2006 @@ -1,15 +1,11 @@ mController->mXoopsUser; + $xoopsUser =& $this->mController->mRoot->mContext->mXoopsUser; $module =& $this->mModuleObject; $groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS; @@ -267,31 +263,5 @@ return "Legacy_RenderSystem"; } - /** - * Initializes a cache information object, and returns it. - * @return Legacy_ModuleCacheInformation - */ - function &createCacheInfo() - { - $this->mCacheInfo =& new Legacy_ModuleCacheInformation(); - $this->mCacheInfo->mURL = xoops_getenv('REQUEST_URI'); - $this->mCacheInfo->setModule($xoopsModule); - - return $this->mCacheInfo; - } - - /** - * Gets a value indicating whether the current module has a option of - * configurations to use the cache system. - * @return bool - */ - function hasCacheConfig() - { - if (xoops_getenv('REQUEST_METHOD') == 'POST') { - return false; - } - - return is_object($this->mModuleObject) && !empty($this->mController->mConfig['module_cache'][$this->mModuleObject->get('mid')]); - } } ?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Oct 5 18:09:44 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:09:44 +0900 Subject: [xoops-cvslog 4784] CVS update: xoops2jp/html/modules/base/preload/Primary Message-ID: <20061005090944.3BC5E2AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php diff -u xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php:1.1.2.6.2.1 xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php:1.1.2.6.2.2 --- xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php:1.1.2.6.2.1 Thu Sep 28 14:03:56 2006 +++ xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php Thu Oct 5 18:09:44 2006 @@ -1,7 +1,7 @@ mController->mConfig['closesite'] == 1) || is_array(Legacy_Utils::checkSystemModules())) { - $this->mController->mSetupUser->add("Legacy_Controller.SetupUser", "Legacy_SiteClose::callbackSetupUser", XCUBE_DELEGATE_PRIORITY_FINAL); + $this->mController->mSetupUser->add("Legacy_SiteClose::callbackSetupUser", XCUBE_DELEGATE_PRIORITY_FINAL); $this->mRoot->mDelegateManager->add("Site.CheckLogin.Success", array(&$this, "callbackCheckLoginSuccess")); } } @@ -27,7 +27,7 @@ */ function callbackSetupUser(&$principal, &$controller, &$context) { - $retArray = XCube_Utils::checkSystemModules(); + $retArray = Legacy_Utils::checkSystemModules(); $accessAllowFlag = false; if (!empty($_POST['xoops_login'])) { @@ -37,8 +37,8 @@ $controller->checkLogin(); return; - } elseif (is_object($controller->mXoopsUser)) { - foreach ($controller->mXoopsUser->getGroups() as $group) { + } elseif (is_object($context->mXoopsUser)) { + foreach ($context->mXoopsUser->getGroups() as $group) { if (in_array($group, $controller->mConfig['closesite_okgrp']) || XOOPS_GROUP_ADMIN == $group) { $accessAllowFlag = true; break; @@ -48,8 +48,8 @@ // @todo Devide following lines to another preload file if ($accessAllowFlag && is_array($retArray)) { - if (in_array(XOOPS_GROUP_ADMIN, $controller->mXoopsUser->getGroups())) { - $GLOBALS['xoopsUser'] = $controller->mXoopsUser; + if (in_array(XOOPS_GROUP_ADMIN, $context->mXoopsUser->getGroups())) { + $GLOBALS['xoopsUser'] = $context->mXoopsUser; if (!empty($_POST['cube_module_install'])) { //@todo use Ticket require_once XOOPS_BASE_PATH . "/admin/class/ModuleInstaller.class.php"; if (isset($_POST['uninstalled_modules']) && is_array($_POST['uninstalled_modules'])){ From minahito @ users.sourceforge.jp Thu Oct 5 18:09:58 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:09:58 +0900 Subject: [xoops-cvslog 4785] CVS update: xoops2jp/html/modules/legacyRender/kernel Message-ID: <20061005090958.3CD932AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php diff -u xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.30.2.1 xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.30.2.2 --- xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.30.2.1 Thu Sep 28 14:04:21 2006 +++ xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php Thu Oct 5 18:09:58 2006 @@ -1,6 +1,6 @@ mController->mXoopsUser)) { + if (is_object($this->mController->mRoot->mContext->mXoopsUser)) { $arr = array( 'xoops_isuser' => true, - 'xoops_userid' => $this->mController->mXoopsUser->getShow('uid'), - 'xoops_uname' => $this->mController->mXoopsUser->getShow('uname') + 'xoops_userid' => $this->mController->mRoot->mContext->mXoopsUser->getShow('uid'), + 'xoops_uname' => $this->mController->mRoot->mContext->mXoopsUser->getShow('uname') ); } else { @@ -123,8 +123,8 @@ // // Assign module informations. // - if($this->mController->mModuleController->isModuleProcess()) { // The process of module - $xoopsModule=&$this->mController->mModuleController->mModuleObject; + if($this->mController->mRoot->mContext->mModule != null) { // The process of module + $xoopsModule =& $this->mController->mRoot->mContext->mXoopsModule; $this->mXoopsTpl->assign(array('xoops_modulename' => $xoopsModule->getShow('name'), 'xoops_dirname' => $xoopsModule->getShow('dirname'))); if (!$this->mXoopsTpl->get_template_vars('xoops_pagetitle')) { @@ -431,6 +431,15 @@ return $renderTarget; } + + /** + * @TODO This function is not cool! + */ + function &getThemeRenderTarget($isDialog = false) + { + $screenTarget = $isDialog ? new Legacy_DialogRenderTarget() : new Legacy_ThemeRenderTarget(); + return $screenTarget; + } } function LegacyRender_smartyfunction_notifications_select($params, &$smarty) Index: xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php diff -u xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.1 xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.2 --- xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.1 Tue Oct 3 18:30:17 2006 +++ xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php Thu Oct 5 18:09:58 2006 @@ -289,8 +289,7 @@ function Legacy_get_ovveride_file($file, $prefix = null, $isSpDirname = false) { $root =& XCube_Root::getSingleton(); - $modController =& $root->mController->getModuleController(); - $moduleObject =& $modController->getXoopsModule(); + $moduleObject =& $root->mContext->mXoopsModule; if ($isSpDirname && is_object($moduleObject) && $moduleObject->get('dirname') == 'base' && isset($_REQUEST['dirname'])) { if (preg_match("/^[a-z0-9_]+$/i", xoops_getrequest('dirname'))) { From minahito @ users.sourceforge.jp Thu Oct 5 18:10:12 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:10:12 +0900 Subject: [xoops-cvslog 4786] CVS update: xoops2jp/html/modules/legacyRender/class Message-ID: <20061005091012.67A212AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php diff -u xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php:1.1.2.6.2.1 xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php:1.1.2.6.2.2 --- xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php:1.1.2.6.2.1 Thu Sep 28 14:04:20 2006 +++ xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php Thu Oct 5 18:10:12 2006 @@ -65,9 +65,9 @@ $handler =& xoops_gethandler('config'); $moduleConfig =& $handler->getConfigsByDirname('legacyRender'); - $this->mAction->prepare($controller, $controller->getXoopsUser(), $moduleConfig); + $this->mAction->prepare($controller, $controller->mRoot->mContext->mXoopsUser, $moduleConfig); - if (!$this->mAction->hasPermission($controller, $controller->getXoopsUser())) { + if (!$this->mAction->hasPermission($controller, $controller->mRoot->mContext->mXoopsUser)) { if ($this->mAdminFlag) { $controller->executeForward(XOOPS_URL . "/admin.php"); } @@ -77,35 +77,35 @@ } if (xoops_getenv("REQUEST_METHOD") == "POST") { - $viewStatus = $this->mAction->execute($controller, $controller->getXoopsUser()); + $viewStatus = $this->mAction->execute($controller, $controller->mRoot->mContext->mXoopsUser); } else { - $viewStatus = $this->mAction->getDefaultView($controller, $controller->getXoopsUser()); + $viewStatus = $this->mAction->getDefaultView($controller, $controller->mRoot->mContext->mXoopsUser); } switch($viewStatus) { case LEGACYRENDER_FRAME_VIEW_SUCCESS: - $this->mAction->executeViewSuccess($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewSuccess($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case LEGACYRENDER_FRAME_VIEW_ERROR: - $this->mAction->executeViewError($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewError($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case LEGACYRENDER_FRAME_VIEW_INDEX: - $this->mAction->executeViewIndex($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewIndex($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case LEGACYRENDER_FRAME_VIEW_INPUT: - $this->mAction->executeViewInput($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewInput($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case LEGACYRENDER_FRAME_VIEW_PREVIEW: - $this->mAction->executeViewPreview($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewPreview($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case LEGACYRENDER_FRAME_VIEW_CANCEL: - $this->mAction->executeViewCancel($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewCancel($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; } } From minahito @ users.sourceforge.jp Thu Oct 5 18:10:22 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:10:22 +0900 Subject: [xoops-cvslog 4787] CVS update: xoops2jp/html/modules/base/service Message-ID: <20061005091022.31FA72AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/service/LegacySearchService.class.php diff -u xoops2jp/html/modules/base/service/LegacySearchService.class.php:1.1.2.8.2.1 xoops2jp/html/modules/base/service/LegacySearchService.class.php:1.1.2.8.2.2 --- xoops2jp/html/modules/base/service/LegacySearchService.class.php:1.1.2.8.2.1 Thu Sep 28 19:24:49 2006 +++ xoops2jp/html/modules/base/service/LegacySearchService.class.php Thu Oct 5 18:10:22 2006 @@ -248,7 +248,7 @@ function getUserGroups() { $root =& XCube_Root::getSingleton(); - $user =& $root->mController->mXoopsUser; + $user =& $root->mController->mRoot->mContext->mXoopsUser; $groups = array(); if (!is_object($user)) { From minahito @ users.sourceforge.jp Thu Oct 5 18:10:30 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:10:30 +0900 Subject: [xoops-cvslog 4788] CVS update: xoops2jp/html/modules/pm/class Message-ID: <20061005091030.2A6992AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/pm/class/ActionFrame.class.php diff -u xoops2jp/html/modules/pm/class/ActionFrame.class.php:1.1.2.6.2.1 xoops2jp/html/modules/pm/class/ActionFrame.class.php:1.1.2.6.2.2 --- xoops2jp/html/modules/pm/class/ActionFrame.class.php:1.1.2.6.2.1 Thu Sep 28 14:04:20 2006 +++ xoops2jp/html/modules/pm/class/ActionFrame.class.php Thu Oct 5 18:10:30 2006 @@ -1,7 +1,7 @@ getConfigsByDirname('pm'); - $this->mAction->prepare($controller, $controller->getXoopsUser(), $moduleConfig); + $this->mAction->prepare($controller, $controller->mRoot->mContext->mXoopsUser, $moduleConfig); - if (!$this->mAction->hasPermission($controller, $controller->getXoopsUser(), $moduleConfig)) { + if (!$this->mAction->hasPermission($controller, $controller->mRoot->mContext->mXoopsUser, $moduleConfig)) { $this->doPermissionError($controller); return; } if (xoops_getenv("REQUEST_METHOD") == "POST") { - $viewStatus = $this->mAction->execute($controller, $controller->getXoopsUser()); + $viewStatus = $this->mAction->execute($controller, $controller->mRoot->mContext->mXoopsUser); } else { - $viewStatus = $this->mAction->getDefaultView($controller, $controller->getXoopsUser()); + $viewStatus = $this->mAction->getDefaultView($controller, $controller->mRoot->mContext->mXoopsUser); } switch($viewStatus) { case PM_FRAME_VIEW_SUCCESS: - $this->mAction->executeViewSuccess($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewSuccess($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case PM_FRAME_VIEW_ERROR: - $this->mAction->executeViewError($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewError($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case PM_FRAME_VIEW_INDEX: - $this->mAction->executeViewIndex($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewIndex($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case PM_FRAME_VIEW_INPUT: - $this->mAction->executeViewInput($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewInput($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case PM_FRAME_VIEW_PREVIEW: - $this->mAction->executeViewPreview($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewPreview($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case PM_FRAME_VIEW_CANCEL: - $this->mAction->executeViewCancel($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewCancel($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; } } From minahito @ users.sourceforge.jp Thu Oct 5 18:10:38 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:10:38 +0900 Subject: [xoops-cvslog 4789] CVS update: xoops2jp/html/modules/pm/forms Message-ID: <20061005091038.2BC8C2AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php diff -u xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php:1.1.2.10.2.2 xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php:1.1.2.10.2.3 --- xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php:1.1.2.10.2.2 Fri Sep 29 17:14:45 2006 +++ xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php Thu Oct 5 18:10:38 2006 @@ -198,7 +198,7 @@ $pm =& $handler->get($form->get('msg_id')); if (is_object($pm)) { $root =& XCube_Root::getSingleton(); - $currentUser =& $root->mController->getXoopsUser(); + $currentUser =& $root->mContext->mXoopsUser; if ($pm->get('to_userid') == $currentUser->get('uid')) { $form->setToUserByUid($pm->get('from_userid')); From minahito @ users.sourceforge.jp Thu Oct 5 18:10:47 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:10:47 +0900 Subject: [xoops-cvslog 4790] CVS update: xoops2jp/html/modules/stdCache/kernel Message-ID: <20061005091047.276AB2AC0A2@users.sourceforge.jp> Index: xoops2jp/html/modules/stdCache/kernel/StdRenderCache.class.php diff -u xoops2jp/html/modules/stdCache/kernel/StdRenderCache.class.php:1.1.2.3.2.1 xoops2jp/html/modules/stdCache/kernel/StdRenderCache.class.php:1.1.2.3.2.2 --- xoops2jp/html/modules/stdCache/kernel/StdRenderCache.class.php:1.1.2.3.2.1 Fri Sep 29 17:14:45 2006 +++ xoops2jp/html/modules/stdCache/kernel/StdRenderCache.class.php Thu Oct 5 18:10:47 2006 @@ -1,5 +1,5 @@ mController->mXoopsUser; + $user =& $root->mContext->mXoopsUser; $groups = is_object($user) ? $user->getGroups() : XOOPS_GROUP_ANONYMOUS; $this->_setGroupIds($groups); From minahito @ users.sourceforge.jp Thu Oct 5 18:10:56 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:10:56 +0900 Subject: [xoops-cvslog 4791] CVS update: xoops2jp/html/modules/stdCache/preload Message-ID: <20061005091056.6546B2AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/stdCache/preload/Initialize.class.php diff -u xoops2jp/html/modules/stdCache/preload/Initialize.class.php:1.1.2.1 xoops2jp/html/modules/stdCache/preload/Initialize.class.php:1.1.2.1.2.1 --- xoops2jp/html/modules/stdCache/preload/Initialize.class.php:1.1.2.1 Sun Sep 24 23:05:09 2006 +++ xoops2jp/html/modules/stdCache/preload/Initialize.class.php Thu Oct 5 18:10:56 2006 @@ -16,7 +16,7 @@ function checkForBlock(&$cacheInfo) { - $user =& $this->mController->mXoopsUser; + $user =& $this->mRoot->mContext->mXoopsUser; if (is_object($user)) { $cacheInfo->mGroupArr = $user->getGroups(); $cacheInfo->setEnableCache(!in_array(XOOPS_GROUP_ADMIN, $user->getGroups())); @@ -29,7 +29,7 @@ function checkForModule(&$cacheInfo) { - $user =& $this->mController->mXoopsUser; + $user =& $this->mRoot->mContext->mXoopsUser; if (is_object($user)) { $cacheInfo->mGroupArr = $user->getGroups(); $cacheInfo->setEnableCache(!in_array(XOOPS_GROUP_ADMIN, $user->getGroups())); From minahito @ users.sourceforge.jp Thu Oct 5 18:11:11 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:11:11 +0900 Subject: [xoops-cvslog 4792] CVS update: xoops2jp/html/modules/user/class Message-ID: <20061005091111.D82172AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/user/class/ActionFrame.class.php diff -u xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.9.2.1 xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.9.2.2 --- xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.9.2.1 Thu Sep 28 14:04:21 2006 +++ xoops2jp/html/modules/user/class/ActionFrame.class.php Thu Oct 5 18:11:11 2006 @@ -62,7 +62,7 @@ die(); } - if ($this->mAction->isSecure() && !is_object($controller->getXoopsUser())) { + if ($this->mAction->isSecure() && !is_object($controller->mRoot->mContext->mXoopsUser)) { // // error // @@ -70,9 +70,9 @@ die("TODO"); } - $this->mAction->prepare($controller, $controller->getXoopsUser(), $controller->mModuleController->mConfig); + $this->mAction->prepare($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModuleConfig); - if (!$this->mAction->hasPermission($controller, $controller->getXoopsUser(), $controller->mModuleController->mConfig)) { + if (!$this->mAction->hasPermission($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModuleConfig)) { // // error // @@ -81,35 +81,35 @@ } if (xoops_getenv("REQUEST_METHOD") == "POST") { - $viewStatus = $this->mAction->execute($controller, $controller->getXoopsUser()); + $viewStatus = $this->mAction->execute($controller, $controller->mRoot->mContext->mXoopsUser); } else { - $viewStatus = $this->mAction->getDefaultView($controller, $controller->getXoopsUser()); + $viewStatus = $this->mAction->getDefaultView($controller, $controller->mRoot->mContext->mXoopsUser); } - + switch($viewStatus) { case USER_FRAME_VIEW_SUCCESS: - $this->mAction->executeViewSuccess($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewSuccess($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case USER_FRAME_VIEW_ERROR: - $this->mAction->executeViewError($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewError($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case USER_FRAME_VIEW_INDEX: - $this->mAction->executeViewIndex($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewIndex($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case USER_FRAME_VIEW_INPUT: - $this->mAction->executeViewInput($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewInput($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case USER_FRAME_VIEW_PREVIEW: - $this->mAction->executeViewPreview($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewPreview($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; case USER_FRAME_VIEW_CANCEL: - $this->mAction->executeViewCancel($controller, $controller->getXoopsUser(), $controller->mModuleController->mRenderTarget); + $this->mAction->executeViewCancel($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); break; } } From minahito @ users.sourceforge.jp Thu Oct 5 18:11:16 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:11:16 +0900 Subject: [xoops-cvslog 4793] CVS update: xoops2jp/html/modules/user/preload/Primary Message-ID: <20061005091116.0B5752AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/user/preload/Primary/Primary.class.php diff -u xoops2jp/html/modules/user/preload/Primary/Primary.class.php:1.1.2.7.2.3 xoops2jp/html/modules/user/preload/Primary/Primary.class.php:1.1.2.7.2.4 --- xoops2jp/html/modules/user/preload/Primary/Primary.class.php:1.1.2.7.2.3 Fri Sep 29 17:14:45 2006 +++ xoops2jp/html/modules/user/preload/Primary/Primary.class.php Thu Oct 5 18:11:15 2006 @@ -40,22 +40,22 @@ { function setupUser(&$principal, &$controller, &$context) { - if (is_object($controller->mXoopsUser)) { + if (is_object($context->mXoopsUser)) { return; } if (!empty($_SESSION['xoopsUserId'])) { $memberHandler = xoops_gethandler('member'); $user =& $memberHandler->getUser($_SESSION['xoopsUserId']); - $controller->mXoopsUser = $user; - if (!is_object($controller->mXoopsUser)) { - $controller->mXoopsUser = null; + $context->mXoopsUser =& $user; + if (!is_object($context->mXoopsUser)) { + $context->mXoopsUser = null; $_SESSION = array(); } else { - $controller->mXoopsUser->setGroups($_SESSION['xoopsUserGroups']); + $context->mXoopsUser->setGroups($_SESSION['xoopsUserGroups']); - $identity =& new Legacy_Identity($controller->mXoopsUser); + $identity =& new Legacy_Identity($context->mXoopsUser); $principal = new Legacy_GenericPrincipal($identity, $_SESSION['xoopsUserGroups']); // From minahito @ users.sourceforge.jp Thu Oct 5 18:11:24 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 18:11:24 +0900 Subject: [xoops-cvslog 4794] CVS update: xoops2jp/html/modules/user/kernel Message-ID: <20061005091124.5C3162AC08A@users.sourceforge.jp> Index: xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php diff -u xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php:1.1.2.11 xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php:1.1.2.11.2.1 --- xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php:1.1.2.11 Sat Sep 2 16:32:08 2006 +++ xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php Thu Oct 5 18:11:24 2006 @@ -1,7 +1,7 @@ mController->getXoopsUser(); + $xoopsUser =& $root->mContext->mXoopsUser; if (is_object($xoopsUser)) { $url = XOOPS_MODULE_URL . "/user/index.php?action=UserInfo&uid=" . $xoopsUser->get('uid'); } @@ -49,7 +49,7 @@ $url = XOOPS_MODULE_URL . "/user/index.php?action=EditUser&uid=" . $uid; } else { - $xoopsUser =& $root->mController->getXoopsUser(); + $xoopsUser =& $root->mContext->mXoopsUser; if (is_object($xoopsUser)) { $url = XOOPS_MODULE_URL . "/user/index.php?action=EditUser&uid=" . $xoopsUser->get('uid'); } @@ -65,7 +65,7 @@ function register() { $root =& XCube_Root::getSingleton(); - $xoopsUser =& $root->mController->getXoopsUser(); + $xoopsUser =& $root->mContext->mXoopsUser; if (is_object($xoopsUser)) { $root->mController->executeForward(XOOPS_URL); @@ -83,7 +83,7 @@ function lostpass() { $root =& XCube_Root::getSingleton(); - $xoopsUser =& $root->mController->getXoopsUser(); + $xoopsUser =& $root->mContext->mXoopsUser; if (is_object($xoopsUser)) { $root->mController->executeForward(XOOPS_URL); @@ -101,7 +101,7 @@ { $root =& XCube_Root::getSingleton(); $op = isset($_REQUEST['op']) ? trim(xoops_getrequest('op')) : "main"; - $xoopsUser =& $root->mController->getXoopsUser(); + $xoopsUser =& $root->mContext->mXoopsUser; switch($op) { case "main": @@ -217,8 +217,7 @@ require_once XOOPS_MODULE_PATH . "/user/class/ActionFrame.class.php"; $root =& XCube_Root::getSingleton(); - $root->mController->mModuleController->setupModuleObject('user'); - $root->mController->mModuleController->setupRenderTarget(); + $root->mController->setupModuleContext('user'); $actionName = "MiscOnline"; From minahito @ users.sourceforge.jp Thu Oct 5 19:17:06 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 19:17:06 +0900 Subject: [xoops-cvslog 4795] CVS update: xoops2jp/html/core Message-ID: <20061005101706.E8F372AC039@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_Controller.class.php diff -u xoops2jp/html/core/XCube_Controller.class.php:1.1.2.1 xoops2jp/html/core/XCube_Controller.class.php:1.1.2.2 --- xoops2jp/html/core/XCube_Controller.class.php:1.1.2.1 Fri Sep 29 17:13:22 2006 +++ xoops2jp/html/core/XCube_Controller.class.php Thu Oct 5 19:17:06 2006 @@ -1,7 +1,7 @@ mConfig[$id]; - } - else { - return $this->mConfig; - } - } - - /** * Calls the preFilter() member function of action filters which have been * loaded to the list of the controller. * From minahito @ users.sourceforge.jp Thu Oct 5 19:17:26 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 19:17:26 +0900 Subject: [xoops-cvslog 4796] CVS update: xoops2jp/html/modules/base/actions Message-ID: <20061005101726.1C3C32AC039@users.sourceforge.jp> Index: xoops2jp/html/modules/base/actions/BackendAction.class.php diff -u xoops2jp/html/modules/base/actions/BackendAction.class.php:1.1.2.7 xoops2jp/html/modules/base/actions/BackendAction.class.php:1.1.2.7.2.1 --- xoops2jp/html/modules/base/actions/BackendAction.class.php:1.1.2.7 Mon Aug 7 20:27:26 2006 +++ xoops2jp/html/modules/base/actions/BackendAction.class.php Thu Oct 5 19:17:25 2006 @@ -49,7 +49,7 @@ function executeViewIndex(&$controller, &$xoopsUser, &$render) { - $xoopsConfig = $controller->getConfig(); + $xoopsConfig = $controller->mRoot->mContext->mXoopsConfig; // // Set up the render buffer. From minahito @ users.sourceforge.jp Thu Oct 5 19:17:46 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 19:17:46 +0900 Subject: [xoops-cvslog 4797] CVS update: xoops2jp/html/modules/base/actions Message-ID: <20061005101746.99A242AC039@users.sourceforge.jp> Index: xoops2jp/html/modules/base/actions/MiscFriendAction.class.php diff -u xoops2jp/html/modules/base/actions/MiscFriendAction.class.php:1.1.2.3 xoops2jp/html/modules/base/actions/MiscFriendAction.class.php:1.1.2.3.2.1 --- xoops2jp/html/modules/base/actions/MiscFriendAction.class.php:1.1.2.3 Mon Sep 25 18:34:29 2006 +++ xoops2jp/html/modules/base/actions/MiscFriendAction.class.php Thu Oct 5 19:17:46 2006 @@ -43,13 +43,13 @@ $this->mMailer =& getMailer(); $this->mMailer->setTemplate("tellfriend.tpl"); - $this->mMailer->assign("SITENAME", $controller->getConfig('sitename')); - $this->mMailer->assign("ADMINMAIL", $controller->getConfig('adminmail')); + $this->mMailer->assign("SITENAME", $this->mRoot->mContext->getXoopsConfig('sitename')); + $this->mMailer->assign("ADMINMAIL", $this->mRoot->mContext->getXoopsConfig('adminmail')); $this->mMailer->assign("SITEURL", XOOPS_URL . '/'); $this->mActionForm->update($this->mMailer); - $this->mMailer->setSubject(sprintf(_MSC_INTSITE, $controller->getConfig('sitename'))); + $this->mMailer->setSubject(sprintf(_MSC_INTSITE, $this->mRoot->mContext->getXoopsConfig('sitename'))); return $this->mMailer->send() ? LEGACY_FRAME_VIEW_SUCCESS : LEGACY_FRAME_VIEW_ERROR; } From minahito @ users.sourceforge.jp Thu Oct 5 19:17:53 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 19:17:53 +0900 Subject: [xoops-cvslog 4798] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20061005101753.01C572AC039@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/InstallWizardAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/InstallWizardAction.class.php:1.1.2.4 xoops2jp/html/modules/base/admin/actions/InstallWizardAction.class.php:1.1.2.4.2.1 --- xoops2jp/html/modules/base/admin/actions/InstallWizardAction.class.php:1.1.2.4 Wed Aug 2 12:04:42 2006 +++ xoops2jp/html/modules/base/admin/actions/InstallWizardAction.class.php Thu Oct 5 19:17:53 2006 @@ -1,6 +1,6 @@ mLicence = $this->mModuleObject->modinfo['installer']['licence']['title']; $file = $this->mModuleObject->modinfo['installer']['licence']['file']; - $language = $root->mController->getConfig('language'); + $language = $root->mContext->getXoopsConfig('language'); // // TODO Replace with language manager. Index: xoops2jp/html/modules/base/admin/actions/HelpAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/HelpAction.class.php:1.1.2.15.2.1 xoops2jp/html/modules/base/admin/actions/HelpAction.class.php:1.1.2.15.2.2 --- xoops2jp/html/modules/base/admin/actions/HelpAction.class.php:1.1.2.15.2.1 Thu Oct 5 18:06:38 2006 +++ xoops2jp/html/modules/base/admin/actions/HelpAction.class.php Thu Oct 5 19:17:53 2006 @@ -1,7 +1,7 @@ mController->getConfig('language'); + $language = $root->mContext->getXoopsConfig('language'); if ( $dirname == null ) { $moduleObject =& $root->mContext->mXoopsModule; @@ -87,7 +87,7 @@ $root =& XCube_Root::getSingleton(); $moduleObject =& $root->mContext->mXoopsModule; - $language = $root->mController->getConfig('language'); + $language = $root->mContext->getXoopsConfig('language'); $dirname = $moduleObject->get('dirname'); $url = XOOPS_MODULE_URL . "/${dirname}/language/${language}/help/images/${file}"; @@ -144,7 +144,7 @@ $moduleHandler =& xoops_gethandler('module'); $this->mModuleObject =& $moduleHandler->getByDirname($this->_mDirname); - $language =& $controller->getConfig('language'); + $language =& $controller->mRoot->mContext->getXoopsConfig('language'); // // TODO We must change the following lines to ActionForm. From minahito @ users.sourceforge.jp Thu Oct 5 19:18:12 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 19:18:12 +0900 Subject: [xoops-cvslog 4799] CVS update: xoops2jp/html/modules/user/class Message-ID: <20061005101812.BD9362AC039@users.sourceforge.jp> Index: xoops2jp/html/modules/user/class/RegistMailBuilder.class.php diff -u xoops2jp/html/modules/user/class/RegistMailBuilder.class.php:1.1.2.8 xoops2jp/html/modules/user/class/RegistMailBuilder.class.php:1.1.2.8.2.1 --- xoops2jp/html/modules/user/class/RegistMailBuilder.class.php:1.1.2.8 Fri Aug 18 14:35:30 2006 +++ xoops2jp/html/modules/user/class/RegistMailBuilder.class.php Thu Oct 5 19:18:12 2006 @@ -1,7 +1,7 @@ mController->getConfig('language'); + $language = $root->mContext->getXoopsConfig('language'); $this->mMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/user/language/' . $language . '/mail_template/'); $this->mMailer->setTemplate('register.tpl'); } @@ -116,7 +116,7 @@ function setTemplate() { $root=&XCube_Root::getSingleton(); - $language = $root->mController->getConfig('language'); + $language = $root->mContext->getXoopsConfig('language'); $this->mMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/user/language/' . $language . '/mail_template/'); $this->mMailer->setTemplate('adminactivate.tpl'); } @@ -186,7 +186,7 @@ function setTemplate() { $root=&XCube_Root::getSingleton(); - $language = $root->mController->getConfig('language'); + $language = $root->mContext->getXoopsConfig('language'); $this->mMailer->setTemplateDir(XOOPS_ROOT_PATH . '/modules/user/language/' . $language . '/mail_template/'); $this->mMailer->setTemplate('activated.tpl'); } Index: xoops2jp/html/modules/user/class/LostPassMailBuilder.class.php diff -u xoops2jp/html/modules/user/class/LostPassMailBuilder.class.php:1.1.2.5 xoops2jp/html/modules/user/class/LostPassMailBuilder.class.php:1.1.2.5.2.1 --- xoops2jp/html/modules/user/class/LostPassMailBuilder.class.php:1.1.2.5 Fri Aug 18 14:35:30 2006 +++ xoops2jp/html/modules/user/class/LostPassMailBuilder.class.php Thu Oct 5 19:18:12 2006 @@ -1,7 +1,7 @@ mController->getConfig('language'); + $language = $root->mContext->getXoopsConfig('language'); $this->mMailer->setTemplateDir(XOOPS_MODULE_PATH . '/user/language/' . $language . '/mail_template/'); $this->mMailer->setTemplate("lostpass1.tpl"); } @@ -103,7 +103,7 @@ function setTemplate() { $root=&XCube_Root::getSingleton(); - $language = $root->mController->getConfig('language'); + $language = $root->mContext->getXoopsConfig('language'); $this->mMailer->setTemplateDir(XOOPS_MODULE_PATH . '/user/language/' . $language . '/mail_template/'); $this->mMailer->setTemplate("lostpass2.tpl"); } From minahito @ users.sourceforge.jp Thu Oct 5 19:18:12 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 19:18:12 +0900 Subject: [xoops-cvslog 4800] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20061005101812.EC1172AC267@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/UserActivateAction.class.php diff -u xoops2jp/html/modules/user/actions/UserActivateAction.class.php:1.1.2.6 xoops2jp/html/modules/user/actions/UserActivateAction.class.php:1.1.2.6.2.1 --- xoops2jp/html/modules/user/actions/UserActivateAction.class.php:1.1.2.6 Sun Sep 24 19:37:30 2006 +++ xoops2jp/html/modules/user/actions/UserActivateAction.class.php Thu Oct 5 19:18:12 2006 @@ -1,7 +1,7 @@ mConfig['activation_type'] == 2) { $builder =& new RegistAdminCommitMailBuilder(); - $director =& new UserRegistMailDirector($this->mObject, $controller->getConfig(), $this->mConfig); + $director =& new UserRegistMailDirector($this->mObject, $controller->mRoot->mContext->getXoopsConfig(), $this->mConfig); $director->contruct($builder); $mailer=&$builder->getResult(); if ($mailer->send()) { Index: xoops2jp/html/modules/user/actions/UserRegister_confirmAction.class.php diff -u xoops2jp/html/modules/user/actions/UserRegister_confirmAction.class.php:1.1.2.16 xoops2jp/html/modules/user/actions/UserRegister_confirmAction.class.php:1.1.2.16.2.1 --- xoops2jp/html/modules/user/actions/UserRegister_confirmAction.class.php:1.1.2.16 Sun Sep 24 19:38:02 2006 +++ xoops2jp/html/modules/user/actions/UserRegister_confirmAction.class.php Thu Oct 5 19:18:12 2006 @@ -1,7 +1,7 @@ mNewUser =& $memberHandler->createUser(); $this->mRegistForm->update($this->mNewUser); - $this->mNewUser->set('uorder', $controller->getConfig('com_order'), true); - $this->mNewUser->set('umode', $controller->getConfig('com_mode'), true); + $this->mNewUser->set('uorder', $controller->mRoot->mContext->getXoopsConfig('com_order'), true); + $this->mNewUser->set('umode', $controller->mRoot->mContext->getXoopsConfig('com_mode'), true); if ($this->mConfig['activation_type'] == 1) { $this->mNewUser->setVar('level', 1, true); } @@ -105,7 +105,7 @@ $builder = ($activationType == 0) ? new User_RegistUserActivateMailBuilder() : new User_RegistUserAdminActivateMailBuilder(); - $director =& new User_UserRegistMailDirector($builder, $this->mNewUser, $controller->getConfig(), $this->mConfig); + $director =& new User_UserRegistMailDirector($builder, $this->mNewUser, $controller->mRoot->mContext->getXoopsConfig(), $this->mConfig); $director->contruct(); $mailer =& $builder->getResult(); @@ -117,7 +117,7 @@ { if($this->mConfig['new_user_notify'] == 1 && !empty($this->mConfig['new_user_notify_group'])) { $builder =& new User_RegistUserNotifyMailBuilder(); - $director =& new User_UserRegistMailDirector($builder, $this->mNewUser, $controller->getConfig(), $this->mConfig); + $director =& new User_UserRegistMailDirector($builder, $this->mNewUser, $controller->mRoot->mContext->getXoopsConfig(), $this->mConfig); $director->contruct(); $mailer =& $builder->getResult(); $mailer->send(); From minahito @ users.sourceforge.jp Thu Oct 5 19:18:13 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 19:18:13 +0900 Subject: [xoops-cvslog 4801] CVS update: xoops2jp/html/modules/base/preload Message-ID: <20061005101813.2C79F2AC039@users.sourceforge.jp> Index: xoops2jp/html/modules/base/preload/ThemeSelect.class.php diff -u xoops2jp/html/modules/base/preload/ThemeSelect.class.php:1.1.2.8.2.1 xoops2jp/html/modules/base/preload/ThemeSelect.class.php:1.1.2.8.2.2 --- xoops2jp/html/modules/base/preload/ThemeSelect.class.php:1.1.2.8.2.1 Thu Sep 28 14:03:55 2006 +++ xoops2jp/html/modules/base/preload/ThemeSelect.class.php Thu Oct 5 19:18:12 2006 @@ -1,7 +1,7 @@ get('theme'); - if (is_array($userTheme) && in_array($userTheme, $this->mController->getConfig('theme_set_allowed'))) { + if (is_array($userTheme) && in_array($userTheme, $this->mRoot->mContext->getXoopsConfig('theme_set_allowed'))) { $_SESSION['xoopsUserTheme'] = $userTheme; } } function _isSelectableTheme($theme_name) { - return in_array($theme_name, $this->mController->mConfig['theme_set_allowed']); + return in_array($theme_name, $this->mRoot->mContext->getXoopsConfig('theme_set_allowed')); } } Index: xoops2jp/html/modules/base/preload/IndexRedirector.class.php diff -u xoops2jp/html/modules/base/preload/IndexRedirector.class.php:1.1.2.1 xoops2jp/html/modules/base/preload/IndexRedirector.class.php:1.1.2.1.2.1 --- xoops2jp/html/modules/base/preload/IndexRedirector.class.php:1.1.2.1 Sat Sep 2 10:47:31 2006 +++ xoops2jp/html/modules/base/preload/IndexRedirector.class.php Thu Oct 5 19:18:13 2006 @@ -14,7 +14,7 @@ function redirect() { - $startPage = $this->mController->getConfig('startpage'); + $startPage = $this->mRoot->mContext->getXoopsConfig('startpage'); if ($startPage != null && $startPage != "--") { $handler =& xoops_gethandler('module'); $module =& $handler->get($startPage); From minahito @ users.sourceforge.jp Thu Oct 5 19:18:13 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 19:18:13 +0900 Subject: [xoops-cvslog 4802] CVS update: xoops2jp/html/modules/base/service Message-ID: <20061005101813.5ADA32AC267@users.sourceforge.jp> Index: xoops2jp/html/modules/base/service/LegacySearchService.class.php diff -u xoops2jp/html/modules/base/service/LegacySearchService.class.php:1.1.2.8.2.2 xoops2jp/html/modules/base/service/LegacySearchService.class.php:1.1.2.8.2.3 --- xoops2jp/html/modules/base/service/LegacySearchService.class.php:1.1.2.8.2.2 Thu Oct 5 18:10:22 2006 +++ xoops2jp/html/modules/base/service/LegacySearchService.class.php Thu Oct 5 19:18:13 2006 @@ -201,7 +201,7 @@ } $root =& XCube_Root::getSingleton(); - $timezone = $root->mController->getConfig('server_TZ') * 3600; + $timezone = $root->mContext->getXoopsConfig('server_TZ') * 3600; $handler =& xoops_gethandler('module'); $module =& $handler->get($mid); From minahito @ users.sourceforge.jp Thu Oct 5 19:18:13 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 19:18:13 +0900 Subject: [xoops-cvslog 4803] CVS update: xoops2jp/html/modules/user/preload/Primary Message-ID: <20061005101813.8B7982AC039@users.sourceforge.jp> Index: xoops2jp/html/modules/user/preload/Primary/Primary.class.php diff -u xoops2jp/html/modules/user/preload/Primary/Primary.class.php:1.1.2.7.2.4 xoops2jp/html/modules/user/preload/Primary/Primary.class.php:1.1.2.7.2.5 --- xoops2jp/html/modules/user/preload/Primary/Primary.class.php:1.1.2.7.2.4 Thu Oct 5 18:11:15 2006 +++ xoops2jp/html/modules/user/preload/Primary/Primary.class.php Thu Oct 5 19:18:13 2006 @@ -62,7 +62,7 @@ // Use 'mysession' // $root =& XCube_Root::getSingleton(); - $xoopsConfig = $root->mController->getConfig(); + $xoopsConfig = $root->mContext->mXoopsConfig; if ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '') { setcookie($xoopsConfig['session_name'], session_id(), time() + (60 * $xoopsConfig['session_expire']), '/', '', 0); From minahito @ users.sourceforge.jp Thu Oct 5 19:18:13 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 19:18:13 +0900 Subject: [xoops-cvslog 4804] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061005101813.C0BDC2AC267@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_HttpContext.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_HttpContext.class.php:1.1.2.1 xoops2jp/html/modules/base/kernel/Legacy_HttpContext.class.php:1.1.2.2 --- xoops2jp/html/modules/base/kernel/Legacy_HttpContext.class.php:1.1.2.1 Thu Oct 5 18:08:21 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_HttpContext.class.php Thu Oct 5 19:18:13 2006 @@ -1,7 +1,7 @@ mXoopsConfig[$id]) ? $this->mXoopsConfig[$id] : null; + } + + return $this->mXoopsConfig; + } + } class Legacy_Module Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.4 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.5 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.4 Thu Oct 5 18:08:39 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Thu Oct 5 19:18:13 2006 @@ -1,7 +1,7 @@ mConfig=&$configHandler->getConfigsByCat(XOOPS_CONF); + $this->mRoot->mContext =& $this->mConfig; $this->setTheme($this->mConfig['theme_set']); $this->mConfig['language'] = $this->mRoot->mLanguageManager->getLanguage(); - $GLOBALS['xoopsConfig']=&$this->mConfig; + $GLOBALS['xoopsConfig'] =& $this->mRoot->mContext; $GLOBALS['config_handler'] =& $configHandler; } From minahito @ users.sourceforge.jp Thu Oct 5 19:18:13 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 19:18:13 +0900 Subject: [xoops-cvslog 4805] CVS update: xoops2jp/html/modules/legacyRender/kernel Message-ID: <20061005101813.EB58B2AC039@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php diff -u xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.2 xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.3 --- xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.2 Thu Oct 5 18:09:58 2006 +++ xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php Thu Oct 5 19:18:13 2006 @@ -123,7 +123,7 @@ "xoops_upload_url" => XOOPS_UPLOAD_URL) ); - if ($controller->getConfig('theme_fromfile')) { + if ($controller->mRoot->mContext->getXoopsConfig('theme_fromfile')) { $this->mSmarty->force_compile = true; } } @@ -168,8 +168,8 @@ // // Other attributes // - $this->mSmarty->assign('xoops_sitename', htmlspecialchars($this->mController->getConfig('sitename'), ENT_QUOTES)); - $this->mSmarty->assign('xoops_slogan', htmlspecialchars($this->mController->getConfig('slogan'), ENT_QUOTES)); + $this->mSmarty->assign('xoops_sitename', htmlspecialchars($this->mController->mRoot->mContext->getXoopsConfig('sitename'), ENT_QUOTES)); + $this->mSmarty->assign('xoops_slogan', htmlspecialchars($this->mController->mRoot->mContext->getXoopsConfig('slogan'), ENT_QUOTES)); // // Theme rendering From minahito @ users.sourceforge.jp Thu Oct 5 19:18:14 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 19:18:14 +0900 Subject: [xoops-cvslog 4806] CVS update: xoops2jp/html/modules/legacyRender/admin/actions Message-ID: <20061005101814.267852AC267@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/actions/TplsetListAction.class.php diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplsetListAction.class.php:1.1.2.10.2.2 xoops2jp/html/modules/legacyRender/admin/actions/TplsetListAction.class.php:1.1.2.10.2.3 --- xoops2jp/html/modules/legacyRender/admin/actions/TplsetListAction.class.php:1.1.2.10.2.2 Fri Sep 29 17:14:34 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/TplsetListAction.class.php Thu Oct 5 19:18:13 2006 @@ -68,7 +68,7 @@ } if ($this->mActiveTemplateSet == null) { - $this->mActiveTemplateSet = $controller->getConfig('template_set'); + $this->mActiveTemplateSet = $controller->mRoot->mContext->getXoopsConfig('template_set'); } $render->setTemplateName("tplset_list.html"); From minahito @ users.sourceforge.jp Thu Oct 5 19:18:14 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 19:18:14 +0900 Subject: [xoops-cvslog 4807] CVS update: xoops2jp/html/modules/base/class Message-ID: <20061005101814.594882AC268@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php diff -u xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php:1.1.2.9.2.1 xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php:1.1.2.9.2.2 --- xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php:1.1.2.9.2.1 Fri Sep 29 17:14:01 2006 +++ xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php Thu Oct 5 19:18:14 2006 @@ -110,7 +110,7 @@ // if ($this->mAdaptee->hasHelp()) { $root =& XCube_Root::getSingleton(); - $language = $root->mController->getConfig('language'); + $language = $root->mContext->getXoopsConfig('language'); $helpfile = $this->mAdaptee->getHelp(); $dir = XOOPS_MODULE_PATH . "/" . $this->mAdaptee->getVar('dirname') . "/language/" . $language; Index: xoops2jp/html/modules/base/class/commentstatus.php diff -u xoops2jp/html/modules/base/class/commentstatus.php:1.1.2.3 xoops2jp/html/modules/base/class/commentstatus.php:1.1.2.3.2.1 --- xoops2jp/html/modules/base/class/commentstatus.php:1.1.2.3 Sat Aug 26 16:15:14 2006 +++ xoops2jp/html/modules/base/class/commentstatus.php Thu Oct 5 19:18:14 2006 @@ -20,7 +20,7 @@ function BaseCommentstatusHandler(&$db) { $root =& XCube_Root::getSingleton(); - $language = $root->mController->getConfig('language'); + $language = $root->mContext->getXoopsConfig('language'); $root->mLanguageManager->loadPageTypeMessageCatalog('comment'); $this->_mResults[XOOPS_COMMENT_PENDING] =& $this->create(); From minahito @ users.sourceforge.jp Thu Oct 5 19:18:14 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 19:18:14 +0900 Subject: [xoops-cvslog 4808] CVS update: xoops2jp/html/modules/user/admin/actions Message-ID: <20061005101814.862B22AC039@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/actions/UserEditAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/UserEditAction.class.php:1.1.2.7 xoops2jp/html/modules/user/admin/actions/UserEditAction.class.php:1.1.2.7.2.1 --- xoops2jp/html/modules/user/admin/actions/UserEditAction.class.php:1.1.2.7 Wed Sep 27 12:35:07 2006 +++ xoops2jp/html/modules/user/admin/actions/UserEditAction.class.php Thu Oct 5 19:18:14 2006 @@ -1,7 +1,7 @@ mObject == null && $this->isEnableCreate()) { $root =& XCube_Root::getSingleton(); $this->mObject =& $this->mObjectHandler->create(); - $this->mObject->set('timezone_offset', $root->mController->getConfig('server_TZ')); + $this->mObject->set('timezone_offset', $root->mContext->getXoopsConfig('server_TZ')); } } From minahito @ users.sourceforge.jp Thu Oct 5 19:18:14 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 19:18:14 +0900 Subject: [xoops-cvslog 4809] CVS update: xoops2jp/html/modules/pm/actions Message-ID: <20061005101814.B46052AC267@users.sourceforge.jp> Index: xoops2jp/html/modules/pm/actions/DefaultAction.class.php diff -u xoops2jp/html/modules/pm/actions/DefaultAction.class.php:1.1.2.2.2.2 xoops2jp/html/modules/pm/actions/DefaultAction.class.php:1.1.2.2.2.3 --- xoops2jp/html/modules/pm/actions/DefaultAction.class.php:1.1.2.2.2.2 Fri Sep 29 17:14:46 2006 +++ xoops2jp/html/modules/pm/actions/DefaultAction.class.php Thu Oct 5 19:18:14 2006 @@ -1,7 +1,7 @@ setAttribute("pmObjects", $this->mPmObjects); $render->setAttribute("total_messages", count($this->mPmObjects)); $render->setAttribute("currentUser", $xoopsUser); - $render->setAttribute("anonymous", $controller->getConfig('anonymous')); + $render->setAttribute("anonymous", $controller->mRoot->mContext->getXoopsConfig('anonymous')); $render->setAttribute("pageNavi", $this->mPageNavi); $render->setAttribute("actionForm", $this->mActionForm); } Index: xoops2jp/html/modules/pm/actions/ReadAction.class.php diff -u xoops2jp/html/modules/pm/actions/ReadAction.class.php:1.1.2.3 xoops2jp/html/modules/pm/actions/ReadAction.class.php:1.1.2.3.2.1 --- xoops2jp/html/modules/pm/actions/ReadAction.class.php:1.1.2.3 Thu Jul 27 18:40:43 2006 +++ xoops2jp/html/modules/pm/actions/ReadAction.class.php Thu Oct 5 19:18:14 2006 @@ -1,7 +1,7 @@ setAttribute("privMessage", $this->mPrivMessage); $render->setAttribute("previousMessage", $this->mPreviousMessage); $render->setAttribute("nextMessage", $this->mNextMessage); - $render->setAttribute("anonymous", $controller->getConfig('anonymous')); + $render->setAttribute("anonymous", $controller->mRoot->mContext->getXoopsConfig('anonymous')); } } From minahito @ users.sourceforge.jp Thu Oct 5 19:18:14 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 19:18:14 +0900 Subject: [xoops-cvslog 4810] CVS update: xoops2jp/html/modules/user/kernel Message-ID: <20061005101814.E59352AC039@users.sourceforge.jp> Index: xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php diff -u xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php:1.1.2.11.2.1 xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php:1.1.2.11.2.2 --- xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php:1.1.2.11.2.1 Thu Oct 5 18:11:24 2006 +++ xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php Thu Oct 5 19:18:14 2006 @@ -1,7 +1,7 @@ mController->getConfig(); + $xoopsConfig = $root->mContext->mXoopsConfig; if ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '') { setcookie($xoopsConfig['session_name'], session_id(), time() + (60 * $xoopsConfig['session_expire']), '/', '', 0); @@ -187,7 +187,7 @@ function logout(&$successFlag, $xoopsUser) { $root =& XCube_Root::getSingleton(); - $xoopsConfig = $root->mController->getConfig(); + $xoopsConfig = $root->mContext->mXoopsConfig; $root->mLanguageManager->loadModuleMessageCatalog('user'); From minahito @ users.sourceforge.jp Thu Oct 5 19:18:15 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 5 Oct 2006 19:18:15 +0900 Subject: [xoops-cvslog 4811] CVS update: xoops2jp/html/modules/base/preload/Primary Message-ID: <20061005101815.1FF3D2AC267@users.sourceforge.jp> Index: xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php diff -u xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php:1.1.2.6.2.2 xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php:1.1.2.6.2.3 --- xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php:1.1.2.6.2.2 Thu Oct 5 18:09:44 2006 +++ xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php Thu Oct 5 19:18:14 2006 @@ -1,7 +1,7 @@ mController->getConfig('closesite')) { + if ($this->mRoot->mContext->getXoopsConfig('closesite')) { $accessAllowed = false; foreach ($xoopsUser->getGroups() as $group) { - if (in_array($group, $this->mController->getConfig('closesite_okgrp')) || ($group == XOOPS_GROUP_ADMIN)) { + if (in_array($group, $this->mRoot->mContext->getXoopsConfig('closesite_okgrp')) || ($group == XOOPS_GROUP_ADMIN)) { $accessAllowed = true; break; } From minahito @ users.sourceforge.jp Fri Oct 6 15:48:59 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 6 Oct 2006 15:48:59 +0900 Subject: [xoops-cvslog 4812] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061006064859.599732AC1B1@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.5 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.6 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.5 Thu Oct 5 19:18:13 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Fri Oct 6 15:48:59 2006 @@ -1,7 +1,7 @@ mConfig=&$configHandler->getConfigsByCat(XOOPS_CONF); - $this->mRoot->mContext =& $this->mConfig; + $this->mRoot->mContext->mXoopsConfig =& $this->mConfig; $this->setTheme($this->mConfig['theme_set']); $this->mConfig['language'] = $this->mRoot->mLanguageManager->getLanguage(); - $GLOBALS['xoopsConfig'] =& $this->mRoot->mContext; + $GLOBALS['xoopsConfig'] =& $this->mRoot->mContext->mXoopsConfig; $GLOBALS['config_handler'] =& $configHandler; } From minahito @ users.sourceforge.jp Fri Oct 6 17:27:37 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 6 Oct 2006 17:27:37 +0900 Subject: [xoops-cvslog 4813] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061006082737.2D0D92AC1C5@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.1 xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.2 --- xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.1 Thu Oct 5 18:08:12 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php Fri Oct 6 17:27:37 2006 @@ -1,7 +1,7 @@ mController->mRoot->mContext->mModule != null) { $dirname = $this->mController->mRoot->mContext->mXoopsModule->get('dirname'); - $GLOBALS['xoopsUserIsAdmin'] = $this->mController->mRoot->mContext->mUser->isInRole("Module.${dirname}.Admin"); - return $this->mController->mRoot->mContext->mUser->isInRole("Module.${dirname}.Visitor"); } From minahito @ users.sourceforge.jp Fri Oct 6 17:27:55 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 6 Oct 2006 17:27:55 +0900 Subject: [xoops-cvslog 4814] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061006082755.67B202AC1C5@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php:1.1.2.1 xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php:1.1.2.2 --- xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php:1.1.2.1 Thu Oct 5 18:08:00 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php Fri Oct 6 17:27:55 2006 @@ -1,7 +1,7 @@ mController->mRoot->mContext->mXoopsUser)) { + $principal =& $this->mController->mRoot->mContext->mUser; + + if (!$principal->mIdentity->isAuthenticated()) { return false; } if ($this->mController->mRoot->mContext->mModule != null) { $dirname = $this->mController->mRoot->mContext->mXoopsModule->get('dirname'); - if ($this->mController->mRoot->mContext->mUser->isInRole("Module.${dirname}.Admin")) { - return true; - } - - // - // Decide $mid as a argument for checkRight() by current module's dirname. - // - $dirname = $this->mController->mRoot->mContext->mXoopsModule->get('dirname'); if ($dirname == 'base' || $dirname == 'system') { - $handler =& xoops_gethandler('groupperm'); - return $handler->checkRight('module_admin', -1, $this->mController->mRoot->mContext->mXoopsUser->getGroups()); + return $principal->isInRole('Site.Administrator'); } + + return $principal->isInRole("Module.${dirname}.Admin"); + } + else { + return $principal->isInRole('Site.Administrator'); } return false; Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.6 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.7 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.6 Fri Oct 6 15:48:59 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Fri Oct 6 17:27:55 2006 @@ -1,7 +1,7 @@ mRoot->mContext->mXoopsUser; $GLOBALS['xoopsUserIsAdmin'] = is_object($this->mRoot->mContext->mXoopsUser) ? $this->mRoot->mContext->mXoopsUser->isAdmin(1) : false; //@todo Remove '1' From minahito @ users.sourceforge.jp Fri Oct 6 17:28:14 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 6 Oct 2006 17:28:14 +0900 Subject: [xoops-cvslog 4815] CVS update: xoops2jp/html/modules/user/preload/Primary Message-ID: <20061006082814.19D552AC1C5@users.sourceforge.jp> Index: xoops2jp/html/modules/user/preload/Primary/Primary.class.php diff -u xoops2jp/html/modules/user/preload/Primary/Primary.class.php:1.1.2.7.2.5 xoops2jp/html/modules/user/preload/Primary/Primary.class.php:1.1.2.7.2.6 --- xoops2jp/html/modules/user/preload/Primary/Primary.class.php:1.1.2.7.2.5 Thu Oct 5 19:18:13 2006 +++ xoops2jp/html/modules/user/preload/Primary/Primary.class.php Fri Oct 6 17:28:13 2006 @@ -55,9 +55,18 @@ else { $context->mXoopsUser->setGroups($_SESSION['xoopsUserGroups']); - $identity =& new Legacy_Identity($context->mXoopsUser); - $principal = new Legacy_GenericPrincipal($identity, $_SESSION['xoopsUserGroups']); + $roles = array(); + $roles[] = "Site.RegisteredUser"; + if ($context->mXoopsUser->isAdmin(-1)) { + $roles[] = "Site.Administrator"; + } + if (in_array(XOOPS_GROUP_ADMIN, $_SESSION['xoopsUserGroups'])) { + $roles[] = "Site.Owner"; + } + $identity =& new Legacy_Identity($context->mXoopsUser); + $principal = new Legacy_GenericPrincipal($identity, $roles); + // // Use 'mysession' // @@ -71,7 +80,7 @@ } else { $identity =& new Legacy_AnonymousIdentity(); - $principal = new Legacy_GenericPrincipal($identity, array(XOOPS_GROUP_ANONYMOUS)); + $principal = new Legacy_GenericPrincipal($identity, array("Site.GuestUser")); } } } From minahito @ users.sourceforge.jp Fri Oct 6 17:28:50 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 6 Oct 2006 17:28:50 +0900 Subject: [xoops-cvslog 4816] CVS update: xoops2jp/html/core Message-ID: <20061006082850.B35302AC1C5@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_HttpContext.class.php diff -u xoops2jp/html/core/XCube_HttpContext.class.php:1.1.2.1 xoops2jp/html/core/XCube_HttpContext.class.php:1.1.2.2 --- xoops2jp/html/core/XCube_HttpContext.class.php:1.1.2.1 Fri Sep 29 17:13:22 2006 +++ xoops2jp/html/core/XCube_HttpContext.class.php Fri Oct 6 17:28:50 2006 @@ -1,7 +1,7 @@ Index: xoops2jp/html/modules/base/admin/actions/HelpAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/HelpAction.class.php:1.1.2.15.2.2 xoops2jp/html/modules/base/admin/actions/HelpAction.class.php:1.1.2.15.2.3 --- xoops2jp/html/modules/base/admin/actions/HelpAction.class.php:1.1.2.15.2.2 Thu Oct 5 19:17:53 2006 +++ xoops2jp/html/modules/base/admin/actions/HelpAction.class.php Fri Oct 6 18:46:45 2006 @@ -1,7 +1,7 @@ mCreateHelpSmarty->register('Legacy_HelpAction.CreateHelpSmarty'); } - function hasPermission(&$controller, &$xoopsUser) + function prepare(&$controller, &$xoopsUser) { + parent::prepare($controller, $xoopsUser); $this->_mDirname = xoops_getrequest('dirname'); - - $moduleHandler =& xoops_gethandler('module'); - $permHandler =& xoops_gethandler('groupperm'); - - $module =& $moduleHandler->getByDirname($this->_mDirname); - - return $permHandler->checkRight('module_admin', $module->get('mid'), $xoopsUser->getGroups()); + } + + function hasPermission(&$controller, &$xoopsUser) + { + $dirname = xoops_getrequest('dirname'); + Legacy_RoleManager::loadRolesByDirname($this->_mDirname); + return $controller->mRoot->mContext->mUser->isInRole('Module.' . $dirname . '.Admin'); } function getDefaultView(&$controller, &$xoopsUser) From minahito @ users.sourceforge.jp Fri Oct 6 18:47:03 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 6 Oct 2006 18:47:03 +0900 Subject: [xoops-cvslog 4818] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20061006094703.0328C2AC08F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/PreferenceEditAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/PreferenceEditAction.class.php:1.1.2.15 xoops2jp/html/modules/base/admin/actions/PreferenceEditAction.class.php:1.1.2.15.2.1 --- xoops2jp/html/modules/base/admin/actions/PreferenceEditAction.class.php:1.1.2.15 Tue Sep 26 13:34:17 2006 +++ xoops2jp/html/modules/base/admin/actions/PreferenceEditAction.class.php Fri Oct 6 18:47:02 2006 @@ -256,8 +256,8 @@ function hasPermission(&$controller, &$xoopsUser) { - $permHandler =& xoops_gethandler('groupperm'); - return $permHandler->checkRight('module_admin', $this->_mMaster->mModule->get('mid'), $xoopsUser->getGroups()); + Legacy_RoleManager::loadRolesByModule($this->_mMaster->mModule); + return $controller->mRoot->mContext->mUser->isInRole('Module.' . $this->_mMaster->mModule->get('dirname') . '.Admin'); } function executeViewSuccess(&$controller, &$xoopsUser, &$render) From minahito @ users.sourceforge.jp Fri Oct 6 18:47:18 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 6 Oct 2006 18:47:18 +0900 Subject: [xoops-cvslog 4819] CVS update: xoops2jp/html/modules/base/class Message-ID: <20061006094718.C4EFF2AC011@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/ActionFrame.class.php diff -u xoops2jp/html/modules/base/class/ActionFrame.class.php:1.1.2.12.2.2 xoops2jp/html/modules/base/class/ActionFrame.class.php:1.1.2.12.2.3 --- xoops2jp/html/modules/base/class/ActionFrame.class.php:1.1.2.12.2.2 Thu Oct 5 18:07:31 2006 +++ xoops2jp/html/modules/base/class/ActionFrame.class.php Fri Oct 6 18:47:18 2006 @@ -162,12 +162,7 @@ function hasPermission(&$controller, &$xoopsUser) { if ($this->_mAdminFlag) { - $moduleHandler =& xoops_gethandler('module'); - $permHandler =& xoops_gethandler('groupperm'); - - $module =& $moduleHandler->getByDirname('base'); - - return $permHandler->checkRight('module_admin', $module->get('mid'), $xoopsUser->getGroups()); + return $controller->mRoot->mContext->mUser->isInRole('Module.base.Admin'); } else { // From minahito @ users.sourceforge.jp Fri Oct 6 18:47:36 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 6 Oct 2006 18:47:36 +0900 Subject: [xoops-cvslog 4820] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061006094736.7A3682AC011@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php:1.1.2.2 xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php:1.1.2.3 --- xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php:1.1.2.2 Fri Oct 6 17:27:55 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php Fri Oct 6 18:47:36 2006 @@ -1,7 +1,7 @@ mController->mRoot->mContext->mModule != null) { $dirname = $this->mController->mRoot->mContext->mXoopsModule->get('dirname'); - if ($dirname == 'base' || $dirname == 'system') { + if ($dirname == 'base') { return $principal->isInRole('Site.Administrator'); } From minahito @ users.sourceforge.jp Fri Oct 6 18:47:44 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 6 Oct 2006 18:47:44 +0900 Subject: [xoops-cvslog 4821] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061006094744.41FCC2AC011@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php:1.1.2.5.2.2 xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php:removed --- xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php:1.1.2.5.2.2 Thu Oct 5 18:08:55 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_AdminModuleController.class.php Fri Oct 6 18:47:44 2006 @@ -1,190 +0,0 @@ -mModuleObject) && $this->mModuleObject->getVar('isactive'); - } - - /** - * Check current user's permission, return boolean as its result. If current - * module's dirname is Base or System, check whether current user has one of - * the permissions of administrator. - * - * The check of this method is loose for Base module and System module only. - * But, In Base module's controller, system must check his permission strictly. - * - * @access public - * @todo This method re-writes $GLOBAL['xoopsUserIsAdmin']! Wmm... - * @return bool - */ - function hasPermission() - { - if (!is_object($this->mController->mRoot->mContext->mXoopsUser)) { - return false; - } - - $this->_loadRole(); - $t_prefix = 'Module.' . $this->mModuleObject->get('name'); - - if (!$this->mController->mRoot->mContext->mUser->isInRole($t_prefix . '.Admin')) { - // - // Decide $mid as a argument for checkRight() by current module's dirname. - // - $mid = 0; - if ($this->mModuleObject->get('dirname') == 'base' || $this->mModuleObject->get('dirname') == 'system') { - $mid = -1; - } - else { - $mid = $this->mModuleObject->get('mid'); - } - - $modPermHandler =& xoops_gethandler('groupperm'); - return $modPermHandler->checkRight('module_admin', $mid, $this->mController->mRoot->mContext->mXoopsUser->getGroups()); - } - - $GLOBALS['xoopsUserIsAdmin'] = true; - - return true; - } - - /** - @return void - */ - function setupModuleObject($dirname = null) - { - if ($dirname == null) { - $dirname = $this->_getDirname(); - } - - $moduleHandler =& xoops_gethandler('module'); - - // - // When user accesses to root/admin.php, $dirname is null. - // - $module = null; - if($dirname != null) { - $module=&$moduleHandler->getByDirname($dirname); - } - else { - $module =& $moduleHandler->getByDirname("base"); - } - - // - // We must set $xoopsModule to some module that use $xoopsModule in message catalog file. - // - $GLOBALS['xoopsModule']=&$module; - - if ($module->get('hasconfig') == 1 || $module->get('hascomments') == 1) { - $configHandler =& xoops_gethandler('config'); - $this->mConfig =& $configHandler->getConfigsByCat(0, $module->get('mid')); - } - $GLOBALS['xoopsModuleConfig'] =& $this->mConfig; - - $dmy =& $module->getInfo(); - - // - // Load admin menu, and add preference and help menu by own judge. - // - $module->loadAdminMenu(); - if ($module->getVar('hasnotification') - || ($module->getInfo('config') && is_array($module->getInfo('config'))) - || ($module->getInfo('comments') && is_array($module->getInfo('comments')))) { - $module->adminmenu[] = array( - 'link' => XOOPS_URL.'/modules/base/admin/index.php?action=PreferenceEdit&confmod_id=' . $module->getVar('mid'), - 'title' => _PREFERENCES, - 'absolute' => true); - } - - if ($module->hasHelp()) { - $helpUrl = XOOPS_MODULE_URL . '/base/admin/index.php?action=Help&dirname=' . $module->getVar('dirname'); - $module->adminmenu[] = array('link' => $helpUrl, - 'title' => _HELP, - 'absolute' => true); - } - $this->mModuleObject =& $module; - } - - - /** - * @access private - */ - function _getDirname() - { - $url_arr = explode("/",strstr($_SERVER['REQUEST_URI'],'/modules/')); - return isset($url_arr[2]) ? $url_arr[2] : null; - } - - function setupLanguage() - { - $languageManager =& $this->mController->mRoot->getLanguageManager(); - if (isset($this->mModuleObject->modinfo['cube_style']) && $this->mModuleObject->modinfo['cube_style'] != false) { - $languageManager->loadModuleMessageCatalog($this->mModuleObject->getVar('dirname')); - } - $languageManager->loadModuleAdminMessageCatalog($this->mModuleObject->getVar('dirname')); - $languageManager->loadModinfoMessageCatalog($this->mModuleObject->getVar('dirname')); - } - - function _processErrorModuleNotExist() - { - // Wmm... - require_once XOOPS_ROOT_PATH ."/header.php"; - print "

" . _MODULENOEXIST . "

"; - require_once XOOPS_ROOT_PATH ."/footer.php"; - exit(); - } - - function getModuleDir() - { - return XOOPS_ROOT_PATH."/modules/".$this->mModuleObject->getVar('dirname')."/admin"; - } - - /** - * Return module's directory name. This function is dependent on the design - * of Legacy. - */ - function getDirname() - { - return is_object($this->mModuleObject) ? $this->mModuleObject->get('dirname') : null; - } - - function &getXoopsModule() - { - return $this->mModuleObject; - } - - function getDependRenderSystem() - { - return "Legacy_AdminRenderSystem"; - } -} - -?> \ No newline at end of file From minahito @ users.sourceforge.jp Fri Oct 6 18:47:59 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 6 Oct 2006 18:47:59 +0900 Subject: [xoops-cvslog 4822] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061006094759.E582D2AC011@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.7 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.8 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.7 Fri Oct 6 17:27:55 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Fri Oct 6 18:47:59 2006 @@ -1,7 +1,7 @@ Index: xoops2jp/html/modules/base/kernel/Legacy_HttpContext.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_HttpContext.class.php:1.1.2.2 xoops2jp/html/modules/base/kernel/Legacy_HttpContext.class.php:1.1.2.3 --- xoops2jp/html/modules/base/kernel/Legacy_HttpContext.class.php:1.1.2.2 Thu Oct 5 19:18:13 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_HttpContext.class.php Fri Oct 6 18:48:12 2006 @@ -1,11 +1,13 @@ mCacheInfo)) { - $this->_createCacheInfo(); - } - - return $this->mCacheInfo; - } - - function _createCacheInfo() - { - $this->mCacheInfo =& new Legacy_ModuleCacheInformation(); - $this->mCacheInfo->mURL = xoops_getenv('REQUEST_URI'); - $this->mCacheInfo->setModule($this->mXoopsModule); - } - - function &getRenderBuffer() - { - if ($this->mRender == null) { - $this->_createRenderBuffer(); - } - - return $this->mRender; - } - - function _createRenderBuffer() - { - $this->mRender =& new XCube_RenderTarget(); - $this->mRender->setType(XCUBE_RENDER_TARGET_TYPE_MAIN); - if ($this->mXoopsModule != null) { - $this->mRender->setModuleName($this->mXoopsModule->get('dirname')); - } - } - - function getRenderSystemName() - { - $root =& XCube_Root::getSingleton(); - return $root->mContext->mBaseRenderSystemName; - } - - function isActive() - { - return $this->mXoopsModule->get('isactive') ? true : false; - } - - function setupLanguage() - { - $root =& XCube_Root::getSingleton(); - $root->mLanguageManager->loadModuleMessageCatalog($this->mXoopsModule->getVar('dirname')); - } - - /** - * Gets a value indicating whether the current module has a option of - * configurations to use the cache system. - * @return bool - */ - function hasCacheConfig() - { - if (xoops_getenv('REQUEST_METHOD') == 'POST') { - return false; - } - - $root =& XCube_Root::getSingleton(); - - return is_object($this->mXoopsModule) && !empty($root->mController->mConfig['module_cache'][$this->mXoopsModule->get('mid')]); - } - - /** - * Initializes a cache information object, and returns it. - * @return Legacy_ModuleCacheInformation - */ - function &createCacheInfo() - { - $this->mCacheInfo =& new Legacy_ModuleCacheInformation(); - $this->mCacheInfo->mURL = xoops_getenv('REQUEST_URI'); - $this->mCacheInfo->setModule($xoopsModule); - - return $this->mCacheInfo; - } -} - -class Legacy_AdminModule extends Legacy_Module -{ - function setupLanguage() - { - $root =& XCube_Root::getSingleton(); - if (isset($this->mXoopsModule->modinfo['cube_style']) && $this->mXoopsModule->modinfo['cube_style'] != false) { - $root->mLanguageManager->loadModuleMessageCatalog($this->mXoopsModule->get('dirname')); - } - $root->mLanguageManager->loadModuleAdminMessageCatalog($this->mXoopsModule->get('dirname')); - $root->mLanguageManager->loadModinfoMessageCatalog($this->mXoopsModule->get('dirname')); - } - - function hasCacheConfig() - { - return false; - } -} - ?> \ No newline at end of file From minahito @ users.sourceforge.jp Fri Oct 6 18:48:22 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 6 Oct 2006 18:48:22 +0900 Subject: [xoops-cvslog 4824] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061006094823.0551C2AC011@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_Module.class.php diff -u /dev/null xoops2jp/html/modules/base/kernel/Legacy_Module.class.php:1.1.2.1 --- /dev/null Fri Oct 6 18:48:22 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Module.class.php Fri Oct 6 18:48:22 2006 @@ -0,0 +1,127 @@ +mCacheInfo)) { + $this->_createCacheInfo(); + } + + return $this->mCacheInfo; + } + + function _createCacheInfo() + { + $this->mCacheInfo =& new Legacy_ModuleCacheInformation(); + $this->mCacheInfo->mURL = xoops_getenv('REQUEST_URI'); + $this->mCacheInfo->setModule($this->mXoopsModule); + } + + function &getRenderBuffer() + { + if ($this->mRender == null) { + $this->_createRenderBuffer(); + } + + return $this->mRender; + } + + function _createRenderBuffer() + { + $this->mRender =& new XCube_RenderTarget(); + $this->mRender->setType(XCUBE_RENDER_TARGET_TYPE_MAIN); + if ($this->mXoopsModule != null) { + $this->mRender->setModuleName($this->mXoopsModule->get('dirname')); + } + } + + function getRenderSystemName() + { + $root =& XCube_Root::getSingleton(); + return $root->mContext->mBaseRenderSystemName; + } + + function isActive() + { + return $this->mXoopsModule->get('isactive') ? true : false; + } + + function setupLanguage() + { + $root =& XCube_Root::getSingleton(); + $root->mLanguageManager->loadModuleMessageCatalog($this->mXoopsModule->getVar('dirname')); + } + + /** + * Gets a value indicating whether the current module has a option of + * configurations to use the cache system. + * @return bool + */ + function hasCacheConfig() + { + if (xoops_getenv('REQUEST_METHOD') == 'POST') { + return false; + } + + $root =& XCube_Root::getSingleton(); + + return is_object($this->mXoopsModule) && !empty($root->mController->mConfig['module_cache'][$this->mXoopsModule->get('mid')]); + } + + /** + * Initializes a cache information object, and returns it. + * @return Legacy_ModuleCacheInformation + */ + function &createCacheInfo() + { + $this->mCacheInfo =& new Legacy_ModuleCacheInformation(); + $this->mCacheInfo->mURL = xoops_getenv('REQUEST_URI'); + $this->mCacheInfo->setModule($xoopsModule); + + return $this->mCacheInfo; + } +} + +class Legacy_AdminModule extends Legacy_Module +{ + function setupLanguage() + { + $root =& XCube_Root::getSingleton(); + + $this->mXoopsModule->loadInfo($this->mXoopsModule->get('dirname')); + + if (isset($this->mXoopsModule->modinfo['cube_style']) && $this->mXoopsModule->modinfo['cube_style'] != false) { + $root->mLanguageManager->loadModuleMessageCatalog($this->mXoopsModule->get('dirname')); + } + $root->mLanguageManager->loadModuleAdminMessageCatalog($this->mXoopsModule->get('dirname')); + $root->mLanguageManager->loadModinfoMessageCatalog($this->mXoopsModule->get('dirname')); + } + + function hasCacheConfig() + { + return false; + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Fri Oct 6 18:48:32 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 6 Oct 2006 18:48:32 +0900 Subject: [xoops-cvslog 4825] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061006094832.556A82AC08F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:1.1.2.13.2.2 xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:removed --- xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:1.1.2.13.2.2 Thu Oct 5 18:09:32 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php Fri Oct 6 18:48:32 2006 @@ -1,267 +0,0 @@ -mController =& $controller; - $this->mCacheInformation =& new Legacy_ModuleCacheInformation(); - } - - function getConfig($key = null) - { - if($key != null) { - return isset($this->mConfig[$key]) ? $this->mConfig[$key] : null; - } - else { - return $this->mConfig; - } - } - - function _isActiveCheck() - { - return true; - } - - function prepare() - { - // Is this request module process? - if (!$this->isModuleProcess()) { - return; - } - - // - // Set up module object - // - $this->setupModuleObject($this->_getDirName()); - - if ($this->_isActiveCheck() && !$this->isActive()) { - return; - } - - // - // Setup render buffer. - // - $this->setupRenderTarget(); - } - - /** - * Create an object of the specified module, and set it to member property - * $mModuleObject. And load the config of the module, too. - * - * This member function is useful in the case that active module and - * current module are different. - * - * @param string $dirname - * @see prepare() - * @see setupRenderTarget() - */ - function setupModuleObject($dirname) - { - $handler =& xoops_gethandler('module'); - $this->mModuleObject =& $handler->getByDirname($dirname); - - if ($this->mModuleObject != null) { - if ($this->mModuleObject->get('hasconfig') == 1 || $this->mModuleObject->get('hascomments') == 1) { - $configHandler =& xoops_gethandler('config'); - $this->mConfig =& $configHandler->getConfigsByCat(0, $this->mModuleObject->get('mid')); - } - } - } - - /** - * Create an object of the render-target, and set it to member property - * $mRenderTarget. If $dirname is empty, fetch dirname from current module - * object and use it. - * - * This member function is useful to regenerate the render-target. For - * example, if active module and current module are different, the active - * module needs regenerating the render-target. - * - * @param string $dirname - * @see prepare() - */ - function setupRenderTarget($dirname = null) - { - $renderSystem =& $this->mController->mRoot->getRenderSystem($this->getRenderSystemName()); - $this->mRenderTarget =& $renderSystem->createRenderTarget(XCUBE_RENDER_TARGET_TYPE_MAIN); - if ($dirname == null) { - if (is_object($this->mModuleObject)) { - $this->mRenderTarget->setModuleName($this->mModuleObject->get('dirname')); - } - } - else { - $this->mRenderTarget->setModuleName($dirname); - } - } - - /** - * If this request is calling module, return true. - * @return boolean - */ - function isModuleProcess() - { - return file_exists(LEGACY_XOOPS_MODULE_MANIFESTO_FILENAME); - } - - /** - * If module requested is available, return true. - * @return boolean - */ - function isActive() - { - return is_object($this->mModuleObject) && $this->mModuleObject->getVar('isactive'); - } - - /** - * If the current user can access to this module, return true. - * - * @todo This method re-writes $GLOBAL['xoopsUserIsAdmin']! Wmm... - * @return bool - */ - function hasPermission() - { - $this->_loadRole(); - $t_prefix = 'Module.' . $this->mModuleObject->get('name'); - - if (!$this->mController->mRoot->mContext->mUser->isInRole($t_prefix . '.Visitor')) { - return false; - } - - $GLOBALS['xoopsUserIsAdmin'] = $this->mController->mRoot->mContext->mUser->isInRole($t_prefix . '.Admin'); - - return true; - } - - /** - * Loads permission of this module and set the information as roles to the - * current user. - * - * [Note] Anonymous user can't get the admin permission, even if he is - * allowed to it. - */ - function _loadRole() - { - $xoopsUser =& $this->mController->mRoot->mContext->mXoopsUser; - $module =& $this->mModuleObject; - - $groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS; - - $handler =& xoops_gethandler('groupperm'); - if ($handler->checkRight('module_read', $module->get('mid'), $groups)) { - $this->mController->mRoot->mContext->mUser->addRole('Module.' . $module->get('name') . '.Visitor'); - } - - if (is_object($xoopsUser) && $handler->checkRight('module_admin', $module->get('mid'), $groups)) { - $this->mController->mRoot->mContext->mUser->addRole('Module.' . $module->get('name') . '.Admin'); - } - } - - /** - @return void - */ - function _createModuleObject() - { - $moduleHandler=&xoops_gethandler('module'); - $this->mModuleObject =& $moduleHandler->getByDirname($this->_getDirname()); - } - - - function _getDirname() - { - $url_arr = explode("/",strstr($_SERVER['REQUEST_URI'],'/modules/')); - return (isset($url_arr[2])) ? $url_arr[2] : null; - } - - function setupLanguage($dirname = null) - { - $languageManager =& $this->mController->mRoot->getLanguageManager(); - if ($dirname == null) { - $languageManager->loadModuleMessageCatalog($this->mModuleObject->getVar('dirname')); - } - else { - $languageManager->loadModuleMessageCatalog($dirname); - } - } - - function _processErrorModuleNotExist() - { - // Wmm... - require_once XOOPS_ROOT_PATH ."/header.php"; - print "

" . _MODULENOEXIST . "

"; - require_once XOOPS_ROOT_PATH ."/footer.php"; - exit(); - } - - function getModuleDir() - { - return XOOPS_ROOT_PATH."/modules/".$this->mModuleObject->getVar('dirname'); - } - - /** - * Return module's directory name. This function is dependent on the design - * of Legacy. - */ - function getDirname() - { - return is_object($this->mModuleObject) ? $this->mModuleObject->get('dirname') : null; - } - - function &getXoopsModule() - { - return $this->mModuleObject; - } - - function &getRenderTarget() - { - return $this->mRenderTarget; - } - - function getRenderSystemName() - { - return $this->getDependRenderSystem(); - } - - /** - * @deprecated - */ - function getDependRenderSystem() - { - return "Legacy_RenderSystem"; - } - -} -?> \ No newline at end of file From minahito @ users.sourceforge.jp Fri Oct 6 18:48:45 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 6 Oct 2006 18:48:45 +0900 Subject: [xoops-cvslog 4826] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061006094845.EF69E2AC08F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.2 xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.3 --- xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.2 Fri Oct 6 17:27:37 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php Fri Oct 6 18:48:45 2006 @@ -1,7 +1,7 @@ mXoopsUser; - $groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS; - - $handler =& xoops_gethandler('groupperm'); - if ($handler->checkRight('module_read', $context->mXoopsModule->get('mid'), $groups)) { - $this->mController->mRoot->mContext->mUser->addRole('Module.' . $context->mXoopsModule->get('dirname') . '.Visitor'); - } - - if (is_object($xoopsUser) && $handler->checkRight('module_admin', $context->mXoopsModule->get('mid'), $groups)) { - $this->mController->mRoot->mContext->mUser->addRole('Module.' . $context->mXoopsModule->get('dirname') . '.Admin'); - } - - $handler =& xoops_getmodulehandler('group_permission', 'base'); - $roleArr = $handler->getRolesByModule($context->mXoopsModule->get('mid'), $groups); - foreach ($roleArr as $role) { - $context->mUser->addRole($role); - } + Legacy_RoleManager::loadRolesByMid($context->mXoopsModule->get('mid')); } function &_createModule() From minahito @ users.sourceforge.jp Fri Oct 6 18:48:56 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 6 Oct 2006 18:48:56 +0900 Subject: [xoops-cvslog 4827] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061006094856.6A34D2AC08F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_RoleManager.class.php diff -u /dev/null xoops2jp/html/modules/base/kernel/Legacy_RoleManager.class.php:1.1.2.1 --- /dev/null Fri Oct 6 18:48:56 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_RoleManager.class.php Fri Oct 6 18:48:56 2006 @@ -0,0 +1,87 @@ +mContext; + + if ($module == null) { + return; + } + + if (isset($cache[$module->get('mid')])) { + return; + } + + $groups = is_object($context->mXoopsUser) ? $context->mXoopsUser->getGroups() : array(XOOPS_GROUP_ANONYMOUS); + + $handler =& xoops_gethandler('groupperm'); + if ($handler->checkRight('module_read', $module->get('mid'), $groups)) { + $context->mUser->addRole('Module.' . $module->get('dirname') . '.Visitor'); + } + + if (is_object($context->mXoopsUser) && $handler->checkRight('module_admin', $module->get('mid'), $groups)) { + $context->mUser->addRole('Module.' . $module->get('dirname') . '.Admin'); + } + + $handler =& xoops_getmodulehandler('group_permission', 'base'); + $roleArr = $handler->getRolesByModule($module->get('mid'), $groups); + foreach ($roleArr as $role) { + $context->mUser->addRole('Module.' . $module->get('dirname') . '.' . $role); + } + + $cache[$module->get('mid')] = true; + } + + /** + * Loads roles of the specific module with $mid, and set loaded roles to + * the current principal. + * @static + * @param int $mid + */ + function loadRolesByMid($mid) + { + $handler =& xoops_gethandler('module'); + $module =& $handler->get($mid); + + if (is_object($module)) { + Legacy_RoleManager::loadRolesByModule($module); + } + } + + /** + * Loads roles of the specific module with $dirname, and set loaded roles + * to the current principal. + * @static + * @param string $dirname The dirname of the specific module. + * @see loadRolesByMid() + */ + function loadRolesByDirname($dirname) + { + $handler =& xoops_gethandler('module'); + $module =& $handler->getByDirname($dirname); + + if (is_object($module)) { + Legacy_RoleManager::loadRolesByModule($module); + } + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Fri Oct 6 18:49:05 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 6 Oct 2006 18:49:05 +0900 Subject: [xoops-cvslog 4828] CVS update: xoops2jp/html/core Message-ID: <20061006094905.5D1842AC0AD@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_Module.class.php diff -u xoops2jp/html/core/XCube_Module.class.php:1.1.2.1 xoops2jp/html/core/XCube_Module.class.php:removed --- xoops2jp/html/core/XCube_Module.class.php:1.1.2.1 Fri Sep 29 17:13:22 2006 +++ xoops2jp/html/core/XCube_Module.class.php Fri Oct 6 18:49:05 2006 @@ -1,22 +0,0 @@ - \ No newline at end of file Index: xoops2jp/html/core/XCube_Procedure.class.php diff -u xoops2jp/html/core/XCube_Procedure.class.php:1.1.2.1 xoops2jp/html/core/XCube_Procedure.class.php:removed --- xoops2jp/html/core/XCube_Procedure.class.php:1.1.2.1 Fri Sep 29 17:13:22 2006 +++ xoops2jp/html/core/XCube_Procedure.class.php Fri Oct 6 18:49:05 2006 @@ -1,52 +0,0 @@ -mExecute =& new XCube_Delegate(); - } - - function prepare() - { - } - - /** - * Gets a value indicating whether the specific user can execute this logic. - * @param XCube_Principal $principal - * @return bool - */ - function hasPermission(&$principal) - { - return true; - } - - function execute() - { - $this->mExecute->call(new XCube_Ref($this)); - } - - /** - * Gets a name of the render-system which this object requests to render. - * @return string - */ - function getRenderSystemName() - { - } -} - -?> \ No newline at end of file From minahito @ users.sourceforge.jp Fri Oct 6 18:49:16 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 6 Oct 2006 18:49:16 +0900 Subject: [xoops-cvslog 4829] CVS update: xoops2jp/html/core Message-ID: <20061006094916.D28742AC08F@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_Controller.class.php diff -u xoops2jp/html/core/XCube_Controller.class.php:1.1.2.2 xoops2jp/html/core/XCube_Controller.class.php:1.1.2.3 --- xoops2jp/html/core/XCube_Controller.class.php:1.1.2.2 Thu Oct 5 19:17:06 2006 +++ xoops2jp/html/core/XCube_Controller.class.php Fri Oct 6 18:49:16 2006 @@ -1,13 +1,12 @@ Index: xoops2jp/html/core/XCube_PageNavigator.class.php diff -u xoops2jp/html/core/XCube_PageNavigator.class.php:1.1.2.1 xoops2jp/html/core/XCube_PageNavigator.class.php:1.1.2.2 --- xoops2jp/html/core/XCube_PageNavigator.class.php:1.1.2.1 Fri Sep 29 17:13:22 2006 +++ xoops2jp/html/core/XCube_PageNavigator.class.php Fri Oct 6 20:14:36 2006 @@ -1,55 +1,149 @@ mUrl = $url; $this->setTotal($total); $this->mFlags = $flags; + + $this->mExtraFetch =& new XCube_Delegate(); } + /** + * Gets values which this navigator handles, from the request. And, sets + * values to this object's properties. + */ function fetch() { + $root =& XCube_Root::getSingleton(); + $startKey = $this->getStartKey(); $perpageKey = $this->getPerpageKey(); - - if ($this->mFlags & XCUBE_PAGENAVI_START && isset($_REQUEST[$startKey])) { - $this->mStart = intval($_REQUEST[$startKey]); + + if ($this->mFlags & XCUBE_PAGENAVI_START) { + $t_start = $root->mContext->mRequest->getRequest($this->getStartKey()); + if ($t_start != null && intval($t_start) >= 0) { + $this->mStart = intval($t_start); + } } - if ($this->mFlags & XCUBE_PAGENAVI_PERPAGE && isset($_REQUEST[$perpageKey]) && !$this->mPerpageFreeze) { - $this->mPerpage = intval($_REQUEST[$perpageKey]); + if ($this->mFlags & XCUBE_PAGENAVI_PERPAGE && !$this->mPerpageFreeze) { + $t_perpage = $root->mContext->mRequest->getRequest($this->getPerpageKey()); + if ($t_perpage != null && intval($t_perpage) >= 0) { + $this->mPerpage = intval($t_perpage); + } } + + $this->mExtraFetch->call(new XCube_Ref($this)); } - function addExtra($key,$value) + function addExtra($key, $value) { - $this->mExtra[$key]=$value; + $this->mExtra[$key] = $value; } function removeExtra($key) @@ -135,10 +229,15 @@ function setTotal($total) { $this->mTotal = intval($total); + $this->_mIsSpecifiedTotal = true; } function getTotal() { + if (!$this->_mIsSpecifiedTotal) { + $this->mGetTotal->call(new XCube_Ref($this->mTotal), $this); + } + return $this->mTotal; } From minahito @ users.sourceforge.jp Fri Oct 6 20:15:18 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 6 Oct 2006 20:15:18 +0900 Subject: [xoops-cvslog 4831] CVS update: xoops2jp/html/include Message-ID: <20061006111518.5CDAC2AC0E5@users.sourceforge.jp> Index: xoops2jp/html/include/common.php diff -u xoops2jp/html/include/common.php:1.4.8.15.2.1 xoops2jp/html/include/common.php:1.4.8.15.2.2 --- xoops2jp/html/include/common.php:1.4.8.15.2.1 Fri Sep 29 17:23:50 2006 +++ xoops2jp/html/include/common.php Fri Oct 6 20:15:18 2006 @@ -1,7 +1,7 @@ loadSiteConfig(XCUBE_SITE_SETTING_FILE, XCUBE_SITE_CUSTOM_FILE); $root->setupController(); From minahito @ users.sourceforge.jp Sat Oct 7 10:40:27 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 10:40:27 +0900 Subject: [xoops-cvslog 4832] CVS update: xoops2jp/html/modules/legacyRender/admin/forms Message-ID: <20061007014027.1E5C92AC0A5@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php:1.1.2.8 xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php:1.1.2.9 --- xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php:1.1.2.8 Wed May 17 18:36:04 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php Sat Oct 7 10:40:26 2006 @@ -66,6 +66,11 @@ $this->_mNavi->addExtra('tpl_type', xoops_getrequest('tpl_type')); $this->_mCriteria->add(new Criteria('tpl_type', array(XOBJ_DTYPE_STRING, xoops_getrequest('tpl_type')))); } + + if (isset($_REQUEST['tpl_file'])) { + $this->_mNavi->addExtra('tpl_file', xoops_getrequest('tpl_file')); + $this->_mCriteria->add(new Criteria('tpl_file', '%' . xoops_getrequest('tpl_file') . '%', 'LIKE')); + } // // @todo We can remove the following code: From minahito @ users.sourceforge.jp Sat Oct 7 11:02:19 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 11:02:19 +0900 Subject: [xoops-cvslog 4833] CVS update: xoops2jp/html/install/include Message-ID: <20061007020219.865A02AC0B2@users.sourceforge.jp> Index: xoops2jp/html/install/include/makedata.php diff -u xoops2jp/html/install/include/makedata.php:1.1.2.6 xoops2jp/html/install/include/makedata.php:1.1.2.7 --- xoops2jp/html/install/include/makedata.php:1.1.2.6 Fri Sep 22 21:59:17 2006 +++ xoops2jp/html/install/include/makedata.php Sat Oct 7 11:02:19 2006 @@ -1,5 +1,5 @@ insert('config', " VALUES (69,0,6,'from','_MD_AM_MAILFROM','','_MD_AM_MAILFROMDESC','textbox','text', 1)"); $dbm->insert('config', " VALUES (70,0,6,'fromname','_MD_AM_MAILFROMNAME','','_MD_AM_MAILFROMNAMEDESC','textbox','text',2)"); $dbm->insert('config', " VALUES (71, 0, 1, 'sslloginlink', '_MD_AM_SSLLINK', 'https://', '_MD_AM_SSLLINKDSC', 'textbox', 'text', 33)"); - $dbm->insert('config', " VALUES (72, 0, 1, 'theme_set_allowed', '_MD_AM_THEMEOK', '".serialize(array('default'))."', '_MD_AM_THEMEOKDSC', 'theme_multi', 'array', 13)"); + $dbm->insert('config', " VALUES (72, 0, 1, 'theme_set_allowed', '_MD_AM_THEMEOK', '".serialize(array('cube_default'))."', '_MD_AM_THEMEOKDSC', 'theme_multi', 'array', 13)"); // RMV-NOTIFY... Need to specify which user is sender of notification PM $dbm->insert('config', " VALUES (73,0,6,'fromuid','_MD_AM_MAILFROMUID','1','_MD_AM_MAILFROMUIDDESC','user','int',3)"); // data for table 'users' From minahito @ users.sourceforge.jp Sat Oct 7 11:06:28 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 11:06:28 +0900 Subject: [xoops-cvslog 4834] CVS update: xoops2jp/html/modules/legacyRender/admin/actions Message-ID: <20061007020628.A750A2AC0B2@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/actions/TplsetDownloadAction.class.php diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplsetDownloadAction.class.php:1.1.2.2 xoops2jp/html/modules/legacyRender/admin/actions/TplsetDownloadAction.class.php:1.1.2.3 --- xoops2jp/html/modules/legacyRender/admin/actions/TplsetDownloadAction.class.php:1.1.2.2 Tue Jul 11 12:05:43 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/TplsetDownloadAction.class.php Sat Oct 7 11:06:28 2006 @@ -1,7 +1,7 @@ getShow('tpl_file') . '">' . "\n" . " " . $files[$i]->getShow('tpl_module') . "" . "\n" . - " module" . $files[$i]->getShow('tpl_module') . "" . "\n" . + " module" . "\n" . " " . $files[$i]->getShow('tpl_lastmodified') . "" . "\n" . " " . "\n"; Index: xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php:1.1.2.13 xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php:1.1.2.14 --- xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php:1.1.2.13 Tue Jul 11 12:05:13 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php Sat Oct 7 11:06:28 2006 @@ -1,7 +1,7 @@ _mTmpFileName); - $obj->Source->set('tpl_source', $source); - $obj->set('tpl_lastmodified', time()); - $obj->set('tpl_lastimported', time()); - - $successFlag &= $handler->insert($obj); - - $xoopsTpl =& new XoopsTpl(); - $xoopsTpl->clear_cache('db:' . $obj->get('tpl_file')); - $xoopsTpl->clear_compiled_tpl('db:' . $obj->get('tpl_file')); + if ($formFile != null) { + $source = file_get_contents($formFile->_mTmpFileName); + $obj->Source->set('tpl_source', $source); + $obj->set('tpl_lastmodified', time()); + $obj->set('tpl_lastimported', time()); + + $successFlag &= $handler->insert($obj); + + $xoopsTpl =& new XoopsTpl(); + $xoopsTpl->clear_cache('db:' . $obj->get('tpl_file')); + $xoopsTpl->clear_compiled_tpl('db:' . $obj->get('tpl_file')); + } unset($obj); unset($formFile); From minahito @ users.sourceforge.jp Sat Oct 7 11:06:38 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 11:06:38 +0900 Subject: [xoops-cvslog 4835] CVS update: xoops2jp/html/modules/legacyRender/admin/class Message-ID: <20061007020638.233A42AC0B2@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php diff -u xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php:1.1.2.3 xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php:1.1.2.4 --- xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php:1.1.2.3 Tue Mar 28 22:30:48 2006 +++ xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php Sat Oct 7 11:06:37 2006 @@ -23,7 +23,7 @@ $ret =""; foreach ($this->mExtra as $key => $value) { - if (!isset($mask[$key])) { + if (!in_array($key, $mask)) { $value = htmlspecialchars($value, ENT_QUOTES); $ret .= ""; } From minahito @ users.sourceforge.jp Sat Oct 7 11:06:46 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 11:06:46 +0900 Subject: [xoops-cvslog 4836] CVS update: xoops2jp/html/modules/legacyRender/admin/forms Message-ID: <20061007020646.AA0DF2AC0B2@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php:1.1.2.1 xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php:1.1.2.1 Wed May 17 18:35:39 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php Sat Oct 7 11:06:46 2006 @@ -54,6 +54,11 @@ $this->_mNavi->addExtra('tpl_type', xoops_getrequest('tpl_type')); $this->_mCriteria->add(new Criteria('tpl_type', array(XOBJ_DTYPE_STRING, xoops_getrequest('tpl_type')))); } + + if (isset($_REQUEST['tpl_file'])) { + $this->_mNavi->addExtra('tpl_file', xoops_getrequest('tpl_file')); + $this->_mCriteria->add(new Criteria('tpl_file', '%' . xoops_getrequest('tpl_file') . '%', 'LIKE')); + } $this->_mNavi->addExtra('sort', $this->mSort); From minahito @ users.sourceforge.jp Sat Oct 7 13:08:01 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 13:08:01 +0900 Subject: [xoops-cvslog 4837] CVS update: xoops2jp/html/include Message-ID: <20061007040801.DB6122AC059@users.sourceforge.jp> Index: xoops2jp/html/include/version.php diff -u xoops2jp/html/include/version.php:1.4.8.14 xoops2jp/html/include/version.php:1.4.8.15 --- xoops2jp/html/include/version.php:1.4.8.14 Tue Oct 3 01:22:50 2006 +++ xoops2jp/html/include/version.php Sat Oct 7 13:08:01 2006 @@ -1,5 +1,5 @@ \ No newline at end of file From ryuji_amano @ users.sourceforge.jp Sat Oct 7 15:30:10 2006 From: ryuji_amano @ users.sourceforge.jp (Ryuji AMANO) Date: Sat, 7 Oct 2006 15:30:10 +0900 Subject: [xoops-cvslog 4838] CVS update: xoops2jp/html/modules/user/language/japanese Message-ID: <20061007063010.878072AC0CD@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/japanese/main.php diff -u xoops2jp/html/modules/user/language/japanese/main.php:1.1.2.24 xoops2jp/html/modules/user/language/japanese/main.php:1.1.2.24.2.1 --- xoops2jp/html/modules/user/language/japanese/main.php:1.1.2.24 Sun Aug 27 01:44:07 2006 +++ xoops2jp/html/modules/user/language/japanese/main.php Sat Oct 7 15:30:10 2006 @@ -5,7 +5,8 @@ define('_MD_USER_ERROR_AVATAR_SELECT', "指定したアバターは不正です"); define('_MD_USER_ERROR_AVATAR_SIZE', "アバターの画像サイズが許容サイズをオーバーしています"); define('_MD_USER_ERROR_DBUPDATE_FAILED', "データベースの更新に失敗しました"); -define('_MD_USER_ERROR_EMAIL_FORMAT', "{0}は不正なメールアドレスです"); +define('_MD_USER_ERROR_EMAIL', "{0}は不正なメールアドレスです"); +define('_MD_USER_ERROR_EMAILTAKEN', "このメールアドレスは既に使用されています"); define('_MD_USER_ERROR_INJURY', "{0}の入力値が不正です"); define('_MD_USER_ERROR_INVALID_EMAIL', "不正なメールアドレスです"); define('_MD_USER_ERROR_MAXLENGTH', "{0}は半角{1}文字以内で入力して下さい"); @@ -46,7 +47,7 @@ define('_MD_USER_LANG_NEWPWDREQ', "新規パスワードのリクエスト@%s"); define('_MD_USER_LANG_NEWUSERREGAT', "新規登録ユーザ@%s"); define('_MD_USER_LANG_NICKNAME', "ユーザ名"); -define('_MD_USER_LANG_NICKNAMETAKEN', "このユーザ名は既に使用されています。"); +define('_MD_USER_LANG_NICKNAMETAKEN', "このユーザ名は既に使用されています"); define('_MD_USER_LANG_NO', "いいえ"); define('_MD_USER_LANG_NOACTTPADM', "選択されたユーザはまだ存在しないか、承認が完了していません。"); define('_MD_USER_LANG_NOPROBLEM', "ご心配なく。まずはあなたが登録に使用したメールアドレスを入力し、ボタンをクリックしてください。 パスワード取得用のリンクが記載されたメールがあなたの登録メールアドレス宛に送られます。"); From ryuji_amano @ users.sourceforge.jp Sat Oct 7 15:30:10 2006 From: ryuji_amano @ users.sourceforge.jp (Ryuji AMANO) Date: Sat, 7 Oct 2006 15:30:10 +0900 Subject: [xoops-cvslog 4839] CVS update: xoops2jp/html/modules/user/admin/forms Message-ID: <20061007063010.B11752AC0E3@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php diff -u xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.16.2.2 xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.16.2.3 --- xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php:1.1.2.16.2.2 Fri Sep 29 17:14:44 2006 +++ xoops2jp/html/modules/user/admin/forms/UserAdminEditForm.class.php Sat Oct 7 15:30:10 2006 @@ -1,7 +1,7 @@ mFieldProperties['email']->setDependsByArray(array('required', 'maxlength', 'email')); $this->mFieldProperties['email']->addMessage('maxlength', _MD_USER_ERROR_MAXLENGTH, _MD_USER_LANG_EMAIL, '60'); $this->mFieldProperties['email']->addVar('maxlength', 60); - $this->mFieldProperties['email']->addMessage('email', _MD_USER_ERROR_EMAIL_FORMAT, _MD_USER_LANG_EMAIL); + $this->mFieldProperties['email']->addMessage('email', _MD_USER_ERROR_EMAIL, _MD_USER_LANG_EMAIL); $this->mFieldProperties['url'] =& new XCube_FieldProperty($this); $this->mFieldProperties['url']->setDependsByArray(array('maxlength')); @@ -187,6 +187,23 @@ } } + function validateEmail() + { + if (strlen($this->get('email')) > 0) { + // + // email unique check + // + $userHandler=&xoops_gethandler('user'); + $criteria =& new CriteriaCompo(new Criteria('email', $this->get('email'))); + if ($this->get('uid') > 0) { + $criteria->add(new Criteria('uid', $this->get('uid'), '<>')); + } + if ($userHandler->getCount($criteria) > 0) { + $this->addErrorMessage(_MD_USER_ERROR_EMAILTAKEN); + } + } + } + function validateUrl() { $t_url = $this->get('url'); From ryuji_amano @ users.sourceforge.jp Sat Oct 7 15:30:10 2006 From: ryuji_amano @ users.sourceforge.jp (Ryuji AMANO) Date: Sat, 7 Oct 2006 15:30:10 +0900 Subject: [xoops-cvslog 4840] CVS update: xoops2jp/html/modules/user/admin/.xml Message-ID: <20061007063010.DB3B12AC0CD@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/.xml/ranks_edit.xml diff -u xoops2jp/html/modules/user/admin/.xml/ranks_edit.xml:1.1.2.4 xoops2jp/html/modules/user/admin/.xml/ranks_edit.xml:1.1.2.4.2.1 --- xoops2jp/html/modules/user/admin/.xml/ranks_edit.xml:1.1.2.4 Fri Aug 18 18:05:39 2006 +++ xoops2jp/html/modules/user/admin/.xml/ranks_edit.xml Sat Oct 7 15:30:10 2006 @@ -34,5 +34,10 @@ + + + + + From ryuji_amano @ users.sourceforge.jp Sat Oct 7 15:30:11 2006 From: ryuji_amano @ users.sourceforge.jp (Ryuji AMANO) Date: Sat, 7 Oct 2006 15:30:11 +0900 Subject: [xoops-cvslog 4841] CVS update: xoops2jp/html/modules/user/language/english Message-ID: <20061007063011.101AF2AC0E3@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/english/main.php diff -u xoops2jp/html/modules/user/language/english/main.php:1.1.2.22 xoops2jp/html/modules/user/language/english/main.php:1.1.2.22.2.1 --- xoops2jp/html/modules/user/language/english/main.php:1.1.2.22 Sun Aug 27 01:44:07 2006 +++ xoops2jp/html/modules/user/language/english/main.php Sat Oct 7 15:30:10 2006 @@ -5,7 +5,8 @@ define('_MD_USER_ERROR_AVATAR_SELECT', "ERROR - Please select valid avatar."); define('_MD_USER_ERROR_AVATAR_SIZE', "Uploaded file exceeds the dimensions limit for avatar."); define('_MD_USER_ERROR_DBUPDATE_FAILED', "Failed updating database"); -define('_MD_USER_ERROR_EMAIL_FORMAT', "{0} is an incorrect email address"); +define('_MD_USER_ERROR_EMAIL', "{0} is an incorrect email address"); +define('_MD_USER_ERROR_EMAILTAKEN', "Email has been taken."); define('_MD_USER_ERROR_INJURY', "The specified value {0} is wrong."); define('_MD_USER_ERROR_INVALID_EMAIL', "Invalid email"); define('_MD_USER_ERROR_MAXLENGTH', "Input {0} with {1} or less characters."); @@ -46,7 +47,7 @@ define('_MD_USER_LANG_NEWPWDREQ', "New Password Request at %s"); define('_MD_USER_LANG_NEWUSERREGAT', "New user registration at %s"); define('_MD_USER_LANG_NICKNAME', "Username"); -define('_MD_USER_LANG_NICKNAMETAKEN', "ERROR: Username has been taken."); +define('_MD_USER_LANG_NICKNAMETAKEN', "Username has been taken."); define('_MD_USER_LANG_NO', "No"); define('_MD_USER_LANG_NOACTTPADM', "The selected user has been deactivated or has not been activated yet."); define('_MD_USER_LANG_NOPROBLEM', "No problem. Simply enter the e-mail address we have on file for your account."); From ryuji_amano @ users.sourceforge.jp Sat Oct 7 15:30:11 2006 From: ryuji_amano @ users.sourceforge.jp (Ryuji AMANO) Date: Sat, 7 Oct 2006 15:30:11 +0900 Subject: [xoops-cvslog 4842] CVS update: xoops2jp/html/modules/user/templates Message-ID: <20061007063011.354C42AC0CD@users.sourceforge.jp> Index: xoops2jp/html/modules/user/templates/user_userinfo.html diff -u xoops2jp/html/modules/user/templates/user_userinfo.html:1.1.2.16 xoops2jp/html/modules/user/templates/user_userinfo.html:1.1.2.16.2.1 --- xoops2jp/html/modules/user/templates/user_userinfo.html:1.1.2.16 Sun Sep 24 14:25:48 2006 +++ xoops2jp/html/modules/user/templates/user_userinfo.html Sat Oct 7 15:30:11 2006 @@ -131,7 +131,7 @@
<{$smarty.const._MD_USER_LANG_USER_SIG}>
<{$user_signature}><{$thisUser->getShow('user_sig')}>
   <{$module}> <{$smarty.const._SYS_MODULE_UNINSTALLED}>
   <{$module}> <{$smarty.const._SYS_MODULE_DISABLED}> <{$smarty.const._UNINSTALL}>
Index: xoops2jp/html/modules/base/admin/templates/image_edit.html diff -u xoops2jp/html/modules/base/admin/templates/image_edit.html:1.1.2.14 xoops2jp/html/modules/base/admin/templates/image_edit.html:1.1.2.14.2.1 --- xoops2jp/html/modules/base/admin/templates/image_edit.html:1.1.2.14 Sat Sep 2 22:54:32 2006 +++ xoops2jp/html/modules/base/admin/templates/image_edit.html Sat Oct 7 15:51:23 2006 @@ -25,7 +25,7 @@ <{/if}> - + <{xoops_token form=$actionForm}> <{xoops_input type=hidden name=image_id value=$actionForm->get('image_id')}>
@@ -73,18 +73,14 @@ <{xoops_input type=text name=image_weight value=$actionForm->get('image_weight') size=5}> - <{if $object->isNew()}> - - - - - <{else}> - <{xoops_input type=hidden name=imgcat_id value=$actionForm->get('imgcat_id')}> - <{/if}> + + + + From minahito @ users.sourceforge.jp Sat Oct 7 15:51:32 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:51:32 +0900 Subject: [xoops-cvslog 4869] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20061007065132.2A7BA2AC073@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/ImageCreateAction.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/actions/ImageCreateAction.class.php:1.1.4.1 --- /dev/null Sat Oct 7 15:51:32 2006 +++ xoops2jp/html/modules/base/admin/actions/ImageCreateAction.class.php Sat Oct 7 15:51:32 2006 @@ -0,0 +1,116 @@ +mActionForm =& new Legacy_ImageAdminCreateForm(); + $this->mActionForm->prepare(); + } + + function getDefaultView(&$controller, &$xoopsUser) + { + $flag = parent::getDefaultView($controller, $xoopsUser); + + if ($flag == LEGACY_FRAME_VIEW_INPUT && $this->_enableCatchImgcat()) { + $this->mActionForm->set('imgcat_id', xoops_getrequest('imgcat_id')); + } + + return $flag; + } + + function _enableCatchImgcat() + { + return true; + } + + function _doExecute() + { + $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $category =& $handler->get($this->mActionForm->get('imgcat_id')); + + // + // [TODO] + // Should the following procedure be after parent::_doExecute()? + // + if ($category->get('imgcat_storetype') == 'file') { + $this->_storeFile(); + } + else { + $this->_storeDB(); + } + + return parent::_doExecute(); + } + + function _storeFile() + { + if ($this->mActionForm->mFormFile != null) { + if (!$this->mActionForm->mFormFile->saveAs(XOOPS_UPLOAD_PATH)) { + return false; + } + } + + // + // If there is a old file, delete it + // + if ($this->mActionForm->mOldFilename != null) { + @unlink(XOOPS_UPLOAD_PATH . "/" . $this->mActionForm->mOldFilename); + } + } + + function _storeDB() + { + + } + + function executeViewInput(&$controller, &$xoopsUser, &$render) + { + $this->mObject->loadImagecategory(); + + $render->setTemplateName("image_edit.html"); + $render->setAttribute('actionForm', $this->mActionForm); + $render->setAttribute('object', $this->mObject); + + $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $categoryArr =& $handler->getObjects(); + $render->setAttribute('categoryArr', $categoryArr); + } + + function executeViewSuccess(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward("./index.php?action=ImageList&imgcat_id=" . $this->mActionForm->get('imgcat_id')); + } + + function executeViewError(&$controller, &$xoopsUser, &$render) + { + $controller->executeRedirect("./index.php?action=ImagecategoryList", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + } + + function executeViewCancel(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward("./index.php?action=ImagecategoryList"); + } +} + +?> From minahito @ users.sourceforge.jp Sat Oct 7 15:51:47 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 15:51:47 +0900 Subject: [xoops-cvslog 4870] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20061007065147.580C02AC073@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php:1.1.2.9 xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php:1.1.2.9.2.1 --- xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php:1.1.2.9 Thu Sep 28 10:45:42 2006 +++ xoops2jp/html/modules/base/admin/actions/ImageEditAction.class.php Sat Oct 7 15:51:47 2006 @@ -1,84 +1,37 @@ mActionForm =& new Legacy_ImageAdminEditForm(); $this->mActionForm->prepare(); } - function getDefaultView(&$controller, &$xoopsUser) - { - $flag = parent::getDefaultView($controller, $xoopsUser); - - if ($flag == LEGACY_FRAME_VIEW_INPUT) { - $this->mActionForm->set('imgcat_id', xoops_getrequest('imgcat_id')); - } - - return $flag; - } - - function _doExecute() + function isEnableCreate() { - $handler =& xoops_getmodulehandler('imagecategory', 'base'); - $category =& $handler->get($this->mActionForm->get('imgcat_id')); - - // - // [TODO] - // Should the following procedure be after parent::_doExecute()? - // - if ($category->get('imgcat_storetype') == 'file') { - $this->_storeFile(); - } - else { - $this->_storeDB(); - } - - return parent::_doExecute(); + return false; } - function _storeFile() + function _enableCatchImgcat() { - if ($this->mActionForm->mFormFile != null) { - if (!$this->mActionForm->mFormFile->saveAs(XOOPS_UPLOAD_PATH)) { - return false; - } - } - - // - // If there is a old file, delete it - // - if ($this->mActionForm->mOldFilename != null) { - @unlink(XOOPS_UPLOAD_PATH . "/" . $this->mActionForm->mOldFilename); - } + return false; } - function _storeDB() - { - - } - function executeViewInput(&$controller, &$xoopsUser, &$render) { $this->mObject->loadImagecategory(); @@ -88,23 +41,15 @@ $render->setAttribute('object', $this->mObject); $handler =& xoops_getmodulehandler('imagecategory', 'base'); - $categoryArr =& $handler->getObjects(); + $t_category = $handler->get($this->mObject->get('imgcat_id')); + + $categoryArr =& $handler->getObjects(new Criteria('imgcat_storetype', $t_category->get('imgcat_storetype'))); $render->setAttribute('categoryArr', $categoryArr); } - - function executeViewSuccess(&$controller, &$xoopsUser, &$render) - { - $controller->executeForward("./index.php?action=ImageList&imgcat_id=" . $this->mActionForm->get('imgcat_id')); - } - - function executeViewError(&$controller, &$xoopsUser, &$render) - { - $controller->executeRedirect("./index.php?action=ImagecategoryList", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); - } function executeViewCancel(&$controller, &$xoopsUser, &$render) { - $controller->executeForward("./index.php?action=ImageList&imgcat_id=" . $this->mActionForm->get('imgcat_id')); + $controller->executeForward('./index.php?action=ImageList&imgcat_id=' . $this->mObject->get('imgcat_id')); } } From minahito @ users.sourceforge.jp Sat Oct 7 16:11:59 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 16:11:59 +0900 Subject: [xoops-cvslog 4871] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20061007071159.0B8E52AC03B@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/forms/ImageAdminEditForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/ImageAdminEditForm.class.php:1.1.2.8.2.2 xoops2jp/html/modules/base/admin/forms/ImageAdminEditForm.class.php:1.1.2.8.2.3 --- xoops2jp/html/modules/base/admin/forms/ImageAdminEditForm.class.php:1.1.2.8.2.2 Fri Sep 29 17:13:50 2006 +++ xoops2jp/html/modules/base/admin/forms/ImageAdminEditForm.class.php Sat Oct 7 16:11:58 2006 @@ -1,7 +1,7 @@ _mImgcatId = $obj->get('imgcat_id'); } - function getImgcatId() - { - return $this->_mIsNew ? $this->get('imgcat_id') : $this->_mImgcatId; - } - function update(&$obj) { parent::update($obj); @@ -66,4 +61,20 @@ } } +class Legacy_ImageAdminEditForm extends Legacy_ImageAdminCreateForm +{ + function validateImgcat_id() + { + parent::validateImgcat_id(); + + $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $currentCategory =& $handler->get($this->_mImgcatId); + + $specificCategory =& $handler->get($this->get('imgcat_id')); + if ($currentCategory->get('imgcat_storetype') != $specificCategory->get('imgcat_storetype')) { + $this->set('imgcat_id', $this->_mImgcatId); + } + } +} + ?> Index: xoops2jp/html/modules/base/admin/forms/SmilesAdminEditForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/SmilesAdminEditForm.class.php:1.1.2.4.2.2 xoops2jp/html/modules/base/admin/forms/SmilesAdminEditForm.class.php:1.1.2.4.2.3 --- xoops2jp/html/modules/base/admin/forms/SmilesAdminEditForm.class.php:1.1.2.4.2.2 Fri Sep 29 17:13:50 2006 +++ xoops2jp/html/modules/base/admin/forms/SmilesAdminEditForm.class.php Sat Oct 7 16:11:58 2006 @@ -1,7 +1,7 @@ _mIsNew && $this->get('smile_url') == null) { - $this->addErrorMessage(_AD_BASE_ERROR_SMILE_URL_REQUIED); + $this->addErrorMessage(XCube_Utils::formatMessage(_MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_SMILE_URL)); } } From minahito @ users.sourceforge.jp Sat Oct 7 16:28:36 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 16:28:36 +0900 Subject: [xoops-cvslog 4872] CVS update: xoops2jp/html/modules/base/admin Message-ID: <20061007072836.880E02AC01E@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/css.php diff -u xoops2jp/html/modules/base/admin/css.php:1.1.2.8.2.1 xoops2jp/html/modules/base/admin/css.php:1.1.2.8.2.2 --- xoops2jp/html/modules/base/admin/css.php:1.1.2.8.2.1 Sat Oct 7 15:44:38 2006 +++ xoops2jp/html/modules/base/admin/css.php Sat Oct 7 16:28:36 2006 @@ -2,6 +2,11 @@ require_once "../../../mainfile.php"; +// +// @todo Why does this file know Legacy_RenderSystem? +// +require_once XOOPS_ROOT_PATH . "/header.php"; + function Legacy_modifier_css_theme($string) { $infoArr = Legacy_get_ovveride_file($string, null, true); From minahito @ users.sourceforge.jp Sat Oct 7 16:33:22 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 16:33:22 +0900 Subject: [xoops-cvslog 4873] CVS update: xoops2jp/html/modules/base/class Message-ID: <20061007073322.1F8202AC03B@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php diff -u xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php:1.1.2.9.2.2 xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php:1.1.2.9.2.3 --- xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php:1.1.2.9.2.2 Thu Oct 5 19:18:14 2006 +++ xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php Sat Oct 7 16:33:21 2006 @@ -2,12 +2,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_ROOT_PATH."/core/XCube_Module.class.php"; - -/** - * This is adapter for XCube_Module by XoopsModule. - */ -class Legacy_ModuleAdapter extends XCube_Module +class Legacy_ModuleAdapter { var $mAdaptee; From ryuji_amano @ users.sourceforge.jp Sat Oct 7 16:34:54 2006 From: ryuji_amano @ users.sourceforge.jp (Ryuji AMANO) Date: Sat, 7 Oct 2006 16:34:54 +0900 Subject: [xoops-cvslog 4874] CVS update: xoops2jp/html/core Message-ID: <20061007073454.DE3BA2AC044@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_Validator.class.php diff -u xoops2jp/html/core/XCube_Validator.class.php:1.1.2.1 xoops2jp/html/core/XCube_Validator.class.php:1.1.2.2 --- xoops2jp/html/core/XCube_Validator.class.php:1.1.2.1 Fri Sep 29 17:13:22 2006 +++ xoops2jp/html/core/XCube_Validator.class.php Sat Oct 7 16:34:54 2006 @@ -1,7 +1,7 @@ mValue->getExtension()) == strtolower($ext)) { + if (strtolower($form->mValue->getExtension()) == strtolower($ext)) { return true; } } @@ -158,7 +158,7 @@ return true; } else { - if (!is_a($form, "XCube_XCube_FileProperty")) { + if (!is_a($form, "XCube_FileProperty")) { return true; } From ryuji_amano @ users.sourceforge.jp Sat Oct 7 16:44:15 2006 From: ryuji_amano @ users.sourceforge.jp (Ryuji AMANO) Date: Sat, 7 Oct 2006 16:44:15 +0900 Subject: [xoops-cvslog 4875] CVS update: xoops2jp/html/core Message-ID: <20061007074415.5F3D02AC03B@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_Utils.class.php diff -u xoops2jp/html/core/XCube_Utils.class.php:1.1.2.1 xoops2jp/html/core/XCube_Utils.class.php:1.1.2.2 --- xoops2jp/html/core/XCube_Utils.class.php:1.1.2.1 Fri Sep 29 17:13:22 2006 +++ xoops2jp/html/core/XCube_Utils.class.php Sat Oct 7 16:44:15 2006 @@ -1,7 +1,7 @@ mController->executeRedirect($url, $time, $messages); + } + function formatMessage() { $arr = func_get_args(); - if (count($arr) == 0) { + if(count($arr)==0) return null; - } $message = $arr[0]; for($i = 1; $i < count($arr); $i++) { @@ -27,6 +40,41 @@ return $message; } + + function formatMessageByMap($subject,$arr) + { + $searches=array(); + $replaces=array(); + foreach($arr as $key=>$value) { + $searches[]="{".$key."}"; + $replaces[]=$value; + } + + return str_replace($searches,$replaces,$subject); + } + + function checkSystemModules() { + $root=&XCube_Root::getSingleton(); + $systemModules = array_map('trim', explode(',',$root->getSiteConfig('Cube','SystemModules'))); + $recommendedModules = array_map('trim', explode(',',$root->getSiteConfig('Cube','RecommendedModules'))); + $moduleHandler =& xoops_gethandler('module'); + $uninstalledModules = array(); + $disabledModules = array(); + foreach($systemModules as $systemModule) { + if(!empty($systemModule)) { + if(!($moduleObject =& $moduleHandler->getByDirname($systemModule))) { + $uninstalledModules[] = $systemModule; + } else if(!$moduleObject->getVar('isactive')) { + $disabledModules[] = $systemModule; + } + } + } + if ((count($uninstalledModules)==0)&&(count($disabledModules)==0)) { + return true; + } else { + return array('uninstalled' =>$uninstalledModules, 'disabled'=>$disabledModules, 'recommended'=>$recommendedModules); + } + } } ?> \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 7 16:45:15 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 16:45:15 +0900 Subject: [xoops-cvslog 4876] CVS update: xoops2jp/html/core Message-ID: <20061007074515.0525E2AC03B@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_ActionForm.class.php diff -u xoops2jp/html/core/XCube_ActionForm.class.php:1.1.2.1 xoops2jp/html/core/XCube_ActionForm.class.php:1.1.2.2 --- xoops2jp/html/core/XCube_ActionForm.class.php:1.1.2.1 Fri Sep 29 17:13:22 2006 +++ xoops2jp/html/core/XCube_ActionForm.class.php Sat Oct 7 16:45:15 2006 @@ -1,7 +1,7 @@ Index: xoops2jp/html/core/XCube_UserAccount.class.php diff -u xoops2jp/html/core/XCube_UserAccount.class.php:1.1.2.1 xoops2jp/html/core/XCube_UserAccount.class.php:removed --- xoops2jp/html/core/XCube_UserAccount.class.php:1.1.2.1 Fri Sep 29 17:13:22 2006 +++ xoops2jp/html/core/XCube_UserAccount.class.php Sat Oct 7 16:45:24 2006 @@ -1,83 +0,0 @@ -loadGroup(); - return $this->mGroups; - } - - function loadGroup() - { - } - - function getId() - { - return $this->mId; - } - - /** - * @return bool - */ - function isGuest() - { - return $this->_mIsGuest; - } - - /** - * param bool $flag - */ - function setGuest($flag) - { - $this->_mIsGuest = $flag; - } - - /** - * @return bool - */ - function isService() - { - return $this->_mIsService; - } - - /** - * param bool $flag - */ - function setService($flag) - { - $this->_mIsService = $flag; - } -} - -?> \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 7 16:46:28 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 16:46:28 +0900 Subject: [xoops-cvslog 4878] CVS update: xoops2jp/html/modules/base/include Message-ID: <20061007074628.411FE2AC03B@users.sourceforge.jp> Index: xoops2jp/html/modules/base/include/Legacy_EventFunctions.class.php diff -u xoops2jp/html/modules/base/include/Legacy_EventFunctions.class.php:1.1.2.1 xoops2jp/html/modules/base/include/Legacy_EventFunctions.class.php:removed --- xoops2jp/html/modules/base/include/Legacy_EventFunctions.class.php:1.1.2.1 Thu Oct 5 18:07:49 2006 +++ xoops2jp/html/modules/base/include/Legacy_EventFunctions.class.php Sat Oct 7 16:46:28 2006 @@ -1,203 +0,0 @@ -mController->setupModuleContext('base'); - - $moduleRunner =& new Legacy_ActionFrame(false); - - $action = isset($_REQUEST['op']) ? ucfirst(xoops_getrequest('op')) : "List"; - $moduleRunner->setMode(LEGACY_FRAME_MODE_IMAGE); - $moduleRunner->setActionName($action); - - $root->mController->setActionStrategy($moduleRunner); - - $root->mController->executeAction(); - - $root->mController->executeView(); - } - - function backend() - { - require_once XOOPS_MODULE_PATH . "/base/class/ActionFrame.class.php"; - - $root =& XCube_Root::getSingleton(); - $root->mController->setupModuleContext('base'); - - $moduleRunner =& new Legacy_ActionFrame(false); - $moduleRunner->setActionName('Backend'); - - $root->mController->setActionStrategy($moduleRunner); - - $root->mController->executeAction(); - - $root->mController->executeView(); - } - - function search() - { - require_once XOOPS_MODULE_PATH . "/base/class/ActionFrame.class.php"; - - $root =& XCube_Root::getSingleton(); - $root->mController->setupModuleContext('base'); - - $moduleRunner =& new Legacy_ActionFrame(false); - $moduleRunner->setMode(LEGACY_FRAME_MODE_SEARCH); - $moduleRunner->setActionName(ucfirst(xoops_getrequest('action'))); - - $root->mController->mExecute->add(array(&$moduleRunner, 'execute')); - - $root->mController->execute(); - - $root->mController->executeView(); - - } - - function misc() - { - require_once XOOPS_BASE_PATH . "/class/ActionFrame.class.php"; - - $root =& XCube_Root::getSingleton(); - $root->mController->setupModuleContext('base'); - - $actionName = isset($_REQUEST['type']) ? ucfirst(xoops_getrequest('type')) : "Smilies"; - - $moduleRunner = new Legacy_ActionFrame(false); - $moduleRunner->setMode(LEGACY_FRAME_MODE_MISC); - $moduleRunner->setActionName($actionName); - - $root->mController->setActionStrategy($moduleRunner); - - $root->mController->setDialogMode(true); - - $root->mController->executeAction(); - - $root->mController->executeView(); - } - - function notifications() - { - require_once XOOPS_BASE_PATH . "/class/ActionFrame.class.php"; - - $root =& XCube_Root::getSingleton(); - $root->mController->setupModuleContext('base'); - - // - // 'Notify' is prefix to guard accessing from misc.php. - // - $actionName = isset($_REQUEST['op']) ? trim(xoops_getrequest('op')) : "List"; - if (isset($_REQUEST['delete'])) { - $actionName = "Delete"; - } - if (isset($_REQUEST['delete_cancel'])) { - $actionName = "Cancel"; - } - - $moduleRunner = new Legacy_ActionFrame(false); - $moduleRunner->setMode(LEGACY_FRAME_MODE_NOTIFY); - $moduleRunner->setActionName($actionName); - - $root->mController->mExecute->add(array(&$moduleRunner, 'execute')); - - $root->mController->execute(); - - $root->mController->executeView(); - } - - /** - * This functions is add to 'Legacyfunction.Notifications.Select'. - * - * @param XCube_RenderBuffer $render - */ - function notifications_select(&$render) - { - require_once XOOPS_ROOT_PATH . '/include/notification_constants.php'; - require_once XOOPS_ROOT_PATH . '/include/notification_functions.php'; - - $root =& XCube_Root::getSingleton(); - $xoopsModule =& $root->mContext->mXoopsModule; - $moduleConfig =& $root->mContext->mModuleConfig; - $xoopsUser =& $root->mContext->mXoopsUser; - - $xoops_notification = array(); - $xoops_notification['show'] = is_object($xoopsModule) && is_object($xoopsUser) && notificationEnabled('inline') ? 1 : 0; - - if ($xoops_notification['show']) { - $root->mLanguageManager->loadPageTypeMessageCatalog('notification'); - $categories =& notificationSubscribableCategoryInfo(); - $event_count = 0; - if (!empty($categories)) { - $notification_handler =& xoops_gethandler('notification'); - foreach ($categories as $category) { - $section['name'] = $category['name']; - $section['title'] = $category['title']; - $section['description'] = $category['description']; - $section['itemid'] = $category['item_id']; - $section['events'] = array(); - $subscribed_events =& $notification_handler->getSubscribedEvents($category['name'], $category['item_id'], $xoopsModule->get('mid'), $xoopsUser->get('uid')); - foreach (notificationEvents($category['name'], true) as $event) { - if (!empty($event['admin_only']) && !$xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { - continue; - } - if (!empty($event['invisible'])) { - continue; - } - $subscribed = in_array($event['name'], $subscribed_events) ? 1 : 0; - $section['events'][$event['name']] = array ('name'=>$event['name'], 'title'=>$event['title'], 'caption'=>$event['caption'], 'description'=>$event['description'], 'subscribed'=>$subscribed); - $event_count ++; - } - $xoops_notification['categories'][$category['name']] = $section; - } - $xoops_notification['target_page'] = "notification_update.php"; - $xoops_notification['redirect_script'] = xoops_getenv('PHP_SELF'); - - $render->setAttribute('editprofile_url', $urlXOOPS_URL . '/edituser.php?uid=' . $xoopsUser->getShow('uid')); - - switch ($xoopsUser->getVar('notify_method')) { - case XOOPS_NOTIFICATION_METHOD_DISABLE: - $render->setAttribute('user_method', _NOT_DISABLE); - break; - case XOOPS_NOTIFICATION_METHOD_PM: - $render->setAttribute('user_method', _NOT_PM); - break; - case XOOPS_NOTIFICATION_METHOD_EMAIL: - $render->setAttribute('user_method', _NOT_EMAIL); - break; - } - } else { - $xoops_notification['show'] = 0; - } - if ($event_count == 0) { - $xoops_notification['show'] = 0; - } - } - - $render->setAttribute('xoops_notification', $xoops_notification); - } - - /** - * This member function is added to 'User_UserViewAction.GetUserPosts'. - * Recount posts of $xoopsUser in the comment system. - * - * @static - */ - function recountPost(&$posts, $xoopsUser) - { - $handler =& xoops_gethandler('comment'); - $criteria =& new Criteria('com_uid', $xoopsUser->get('uid')); - $posts += $handler->getCount($criteria); - } -} - -?> \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 7 16:46:38 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 16:46:38 +0900 Subject: [xoops-cvslog 4879] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061007074638.613062AC044@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php diff -u /dev/null xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php:1.1.2.11.2.3 --- /dev/null Sat Oct 7 16:46:38 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php Sat Oct 7 16:46:38 2006 @@ -0,0 +1,203 @@ +mController->setupModuleContext('base'); + + $moduleRunner =& new Legacy_ActionFrame(false); + + $action = isset($_REQUEST['op']) ? ucfirst(xoops_getrequest('op')) : "List"; + $moduleRunner->setMode(LEGACY_FRAME_MODE_IMAGE); + $moduleRunner->setActionName($action); + + $root->mController->setActionStrategy($moduleRunner); + + $root->mController->executeAction(); + + $root->mController->executeView(); + } + + function backend() + { + require_once XOOPS_MODULE_PATH . "/base/class/ActionFrame.class.php"; + + $root =& XCube_Root::getSingleton(); + $root->mController->setupModuleContext('base'); + + $moduleRunner =& new Legacy_ActionFrame(false); + $moduleRunner->setActionName('Backend'); + + $root->mController->setActionStrategy($moduleRunner); + + $root->mController->executeAction(); + + $root->mController->executeView(); + } + + function search() + { + require_once XOOPS_MODULE_PATH . "/base/class/ActionFrame.class.php"; + + $root =& XCube_Root::getSingleton(); + $root->mController->setupModuleContext('base'); + + $moduleRunner =& new Legacy_ActionFrame(false); + $moduleRunner->setMode(LEGACY_FRAME_MODE_SEARCH); + $moduleRunner->setActionName(ucfirst(xoops_getrequest('action'))); + + $root->mController->mExecute->add(array(&$moduleRunner, 'execute')); + + $root->mController->execute(); + + $root->mController->executeView(); + + } + + function misc() + { + require_once XOOPS_BASE_PATH . "/class/ActionFrame.class.php"; + + $root =& XCube_Root::getSingleton(); + $root->mController->setupModuleContext('base'); + + $actionName = isset($_REQUEST['type']) ? ucfirst(xoops_getrequest('type')) : "Smilies"; + + $moduleRunner = new Legacy_ActionFrame(false); + $moduleRunner->setMode(LEGACY_FRAME_MODE_MISC); + $moduleRunner->setActionName($actionName); + + $root->mController->setActionStrategy($moduleRunner); + + $root->mController->setDialogMode(true); + + $root->mController->executeAction(); + + $root->mController->executeView(); + } + + function notifications() + { + require_once XOOPS_BASE_PATH . "/class/ActionFrame.class.php"; + + $root =& XCube_Root::getSingleton(); + $root->mController->setupModuleContext('base'); + + // + // 'Notify' is prefix to guard accessing from misc.php. + // + $actionName = isset($_REQUEST['op']) ? trim(xoops_getrequest('op')) : "List"; + if (isset($_REQUEST['delete'])) { + $actionName = "Delete"; + } + if (isset($_REQUEST['delete_cancel'])) { + $actionName = "Cancel"; + } + + $moduleRunner = new Legacy_ActionFrame(false); + $moduleRunner->setMode(LEGACY_FRAME_MODE_NOTIFY); + $moduleRunner->setActionName($actionName); + + $root->mController->mExecute->add(array(&$moduleRunner, 'execute')); + + $root->mController->execute(); + + $root->mController->executeView(); + } + + /** + * This functions is add to 'Legacyfunction.Notifications.Select'. + * + * @param XCube_RenderBuffer $render + */ + function notifications_select(&$render) + { + require_once XOOPS_ROOT_PATH . '/include/notification_constants.php'; + require_once XOOPS_ROOT_PATH . '/include/notification_functions.php'; + + $root =& XCube_Root::getSingleton(); + $xoopsModule =& $root->mContext->mXoopsModule; + $moduleConfig =& $root->mContext->mModuleConfig; + $xoopsUser =& $root->mContext->mXoopsUser; + + $xoops_notification = array(); + $xoops_notification['show'] = is_object($xoopsModule) && is_object($xoopsUser) && notificationEnabled('inline') ? 1 : 0; + + if ($xoops_notification['show']) { + $root->mLanguageManager->loadPageTypeMessageCatalog('notification'); + $categories =& notificationSubscribableCategoryInfo(); + $event_count = 0; + if (!empty($categories)) { + $notification_handler =& xoops_gethandler('notification'); + foreach ($categories as $category) { + $section['name'] = $category['name']; + $section['title'] = $category['title']; + $section['description'] = $category['description']; + $section['itemid'] = $category['item_id']; + $section['events'] = array(); + $subscribed_events =& $notification_handler->getSubscribedEvents($category['name'], $category['item_id'], $xoopsModule->get('mid'), $xoopsUser->get('uid')); + foreach (notificationEvents($category['name'], true) as $event) { + if (!empty($event['admin_only']) && !$xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { + continue; + } + if (!empty($event['invisible'])) { + continue; + } + $subscribed = in_array($event['name'], $subscribed_events) ? 1 : 0; + $section['events'][$event['name']] = array ('name'=>$event['name'], 'title'=>$event['title'], 'caption'=>$event['caption'], 'description'=>$event['description'], 'subscribed'=>$subscribed); + $event_count ++; + } + $xoops_notification['categories'][$category['name']] = $section; + } + $xoops_notification['target_page'] = "notification_update.php"; + $xoops_notification['redirect_script'] = xoops_getenv('PHP_SELF'); + + $render->setAttribute('editprofile_url', $urlXOOPS_URL . '/edituser.php?uid=' . $xoopsUser->getShow('uid')); + + switch ($xoopsUser->getVar('notify_method')) { + case XOOPS_NOTIFICATION_METHOD_DISABLE: + $render->setAttribute('user_method', _NOT_DISABLE); + break; + case XOOPS_NOTIFICATION_METHOD_PM: + $render->setAttribute('user_method', _NOT_PM); + break; + case XOOPS_NOTIFICATION_METHOD_EMAIL: + $render->setAttribute('user_method', _NOT_EMAIL); + break; + } + } else { + $xoops_notification['show'] = 0; + } + if ($event_count == 0) { + $xoops_notification['show'] = 0; + } + } + + $render->setAttribute('xoops_notification', $xoops_notification); + } + + /** + * This member function is added to 'User_UserViewAction.GetUserPosts'. + * Recount posts of $xoopsUser in the comment system. + * + * @static + */ + function recountPost(&$posts, $xoopsUser) + { + $handler =& xoops_gethandler('comment'); + $criteria =& new Criteria('com_uid', $xoopsUser->get('uid')); + $posts += $handler->getCount($criteria); + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 7 16:46:47 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 16:46:47 +0900 Subject: [xoops-cvslog 4880] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061007074647.A58B42AC044@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_UserAccountAdapter.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_UserAccountAdapter.class.php:1.1.2.2.2.1 xoops2jp/html/modules/base/kernel/Legacy_UserAccountAdapter.class.php:removed --- xoops2jp/html/modules/base/kernel/Legacy_UserAccountAdapter.class.php:1.1.2.2.2.1 Fri Sep 29 17:14:20 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_UserAccountAdapter.class.php Sat Oct 7 16:46:47 2006 @@ -1,27 +0,0 @@ -mAdaptee=&$xoopsUser; - } - - function getId() - { - return is_object($this->mAdaptee) ? $this->mAdaptee->uid() : 0; - } - - function isAnonymous() - { - return is_object($this->mAdaptee) ? false : true; - } -} - -?> \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 7 16:46:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 16:46:57 +0900 Subject: [xoops-cvslog 4881] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061007074657.96CB92AC044@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.8 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.9 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.8 Fri Oct 6 18:47:59 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Sat Oct 7 16:46:57 2006 @@ -1,7 +1,7 @@ add('Legacypage.Notifications.Access', 'Legacy_EventFunction::notifications', $file); $delegateManager->add('Legacyfunction.Notifications.Select', 'Legacy_EventFunction::notifications_select', $file); From minahito @ users.sourceforge.jp Sat Oct 7 17:18:46 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 17:18:46 +0900 Subject: [xoops-cvslog 4882] CVS update: xoops2jp/html/core Message-ID: <20061007081846.5A12E2AC075@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_HttpContext.class.php diff -u xoops2jp/html/core/XCube_HttpContext.class.php:1.1.2.2 xoops2jp/html/core/XCube_HttpContext.class.php:1.1.2.3 --- xoops2jp/html/core/XCube_HttpContext.class.php:1.1.2.2 Fri Oct 6 17:28:50 2006 +++ xoops2jp/html/core/XCube_HttpContext.class.php Sat Oct 7 17:18:46 2006 @@ -1,7 +1,7 @@ _getArrayRequest($_REQUEST[$key]); } @@ -178,12 +179,12 @@ */ function _getArrayRequest($arr) { - foreach (array_keys($arr) as $t_key => $t_value) { - if (is_array($t_value)) { - $arr[$t_key] = $this->_getArrayRequest($t_value); + foreach (array_keys($arr) as $t_key) { + if (is_array($arr[$t_key])) { + $arr[$t_key] = $this->_getArrayRequest($arr[$t_key]); } else { - $arr[$t_key] = stripslashes($t_value); + $arr[$t_key] = stripslashes($arr[$t_key]); } } From minahito @ users.sourceforge.jp Sat Oct 7 17:19:40 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 17:19:40 +0900 Subject: [xoops-cvslog 4883] CVS update: xoops2jp/html/core Message-ID: <20061007081940.09CF42AC01E@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_HttpContext.class.php diff -u xoops2jp/html/core/XCube_HttpContext.class.php:1.1.2.3 xoops2jp/html/core/XCube_HttpContext.class.php:1.1.2.4 --- xoops2jp/html/core/XCube_HttpContext.class.php:1.1.2.3 Sat Oct 7 17:18:46 2006 +++ xoops2jp/html/core/XCube_HttpContext.class.php Sat Oct 7 17:19:39 2006 @@ -1,7 +1,7 @@ _getArrayRequest($_REQUEST[$key]); } From minahito @ users.sourceforge.jp Sat Oct 7 17:26:33 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 17:26:33 +0900 Subject: [xoops-cvslog 4884] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061007082633.7AEA02AC075@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.9 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.10 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.9 Sat Oct 7 16:46:57 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Sat Oct 7 17:26:33 2006 @@ -1,7 +1,7 @@ mRoot->mContext->mModule != null) { if (!$this->mRoot->mContext->mModule->isActive()) { - die('NOT ACTIVE'); ///< @todo + /** + * Notify that the current user accesses none-activate module + * controller. + */ + XCube_DelegateUtils::call('Legacy.Event.ModuleNotActive'); + $this->executeForward(XOOPS_URL); + die(); } if (!$this->_mStrategy->enableAccess()) { From minahito @ users.sourceforge.jp Sat Oct 7 17:32:48 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 17:32:48 +0900 Subject: [xoops-cvslog 4885] CVS update: xoops2jp/html/modules/pm/class Message-ID: <20061007083248.EB49D2AC01E@users.sourceforge.jp> Index: xoops2jp/html/modules/pm/class/priv_msgs.php diff -u xoops2jp/html/modules/pm/class/priv_msgs.php:1.1.4.1 xoops2jp/html/modules/pm/class/priv_msgs.php:1.1.4.2 --- xoops2jp/html/modules/pm/class/priv_msgs.php:1.1.4.1 Sat Oct 7 15:36:26 2006 +++ xoops2jp/html/modules/pm/class/priv_msgs.php Sat Oct 7 17:32:48 2006 @@ -1,7 +1,7 @@ initVar('subject', XOBJ_DTYPE_STRING, '', true, 255); $this->initVar('from_userid', XOBJ_DTYPE_INT, '0', true); $this->initVar('to_userid', XOBJ_DTYPE_INT, '0', true); - $this->initVar('msg_time', XOBJ_DTYPE_INT, '0', true); + $this->initVar('msg_time', XOBJ_DTYPE_INT, time(), true); $this->initVar('msg_text', XOBJ_DTYPE_TEXT, '', true); $this->initVar('read_msg', XOBJ_DTYPE_BOOL, '0', true); } From minahito @ users.sourceforge.jp Sat Oct 7 17:34:02 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 17:34:02 +0900 Subject: [xoops-cvslog 4886] CVS update: xoops2jp/html/modules/pm/class Message-ID: <20061007083402.C16542AC01E@users.sourceforge.jp> Index: xoops2jp/html/modules/pm/class/priv_msgs.php diff -u xoops2jp/html/modules/pm/class/priv_msgs.php:1.1.4.2 xoops2jp/html/modules/pm/class/priv_msgs.php:1.1.4.3 --- xoops2jp/html/modules/pm/class/priv_msgs.php:1.1.4.2 Sat Oct 7 17:32:48 2006 +++ xoops2jp/html/modules/pm/class/priv_msgs.php Sat Oct 7 17:34:02 2006 @@ -1,7 +1,7 @@ initVar('msg_id', XOBJ_DTYPE_INT, '', true); - $this->initVar('msg_image', XOBJ_DTYPE_STRING, '', false, 100); + $this->initVar('msg_image', XOBJ_DTYPE_STRING, 'icon1.gif', false, 100); $this->initVar('subject', XOBJ_DTYPE_STRING, '', true, 255); $this->initVar('from_userid', XOBJ_DTYPE_INT, '0', true); $this->initVar('to_userid', XOBJ_DTYPE_INT, '0', true); From minahito @ users.sourceforge.jp Sat Oct 7 17:39:52 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 17:39:52 +0900 Subject: [xoops-cvslog 4887] CVS update: xoops2jp/html/core Message-ID: <20061007083952.73ABD2AC075@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_Property.class.php diff -u xoops2jp/html/core/XCube_Property.class.php:1.1.2.1 xoops2jp/html/core/XCube_Property.class.php:1.1.2.2 --- xoops2jp/html/core/XCube_Property.class.php:1.1.2.1 Fri Sep 29 17:13:22 2006 +++ xoops2jp/html/core/XCube_Property.class.php Sat Oct 7 17:39:52 2006 @@ -1,7 +1,7 @@ mValue)) { return false; } - $this->mValue->mKey = $key; - $this->mValue->fetch(); + if (!$this->mValue->hasUploadFile()) { $this->mValue = null; } From minahito @ users.sourceforge.jp Sat Oct 7 17:43:13 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 17:43:13 +0900 Subject: [xoops-cvslog 4888] CVS update: xoops2jp/html/core Message-ID: <20061007084313.07C4C2AC059@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_Property.class.php diff -u xoops2jp/html/core/XCube_Property.class.php:1.1.2.2 xoops2jp/html/core/XCube_Property.class.php:1.1.2.3 --- xoops2jp/html/core/XCube_Property.class.php:1.1.2.2 Sat Oct 7 17:39:52 2006 +++ xoops2jp/html/core/XCube_Property.class.php Sat Oct 7 17:43:12 2006 @@ -1,7 +1,7 @@ mIndex !== null) { + $this->mValue->mKey = $this->mIndex; + } + $this->mValue->fetch(); if (!$this->mValue->hasUploadFile()) { @@ -453,14 +459,15 @@ return true; } - function fetch() + function fetch(&$form) { unset($this->mProperties); $this->mProperties = array(); if (isset($_FILES[$this->mName]) && is_array($_FILES[$this->mName]['name'])) { foreach ($_FILES[$this->mName]['name'] as $_key => $_val) { $this->mProperties[$_key] =& new $this->mPropertyClassName($this->mName); - $this->mProperties[$_key]->fetch($_key); + $this->mProperties[$_key]->mIndex = $_key; + $this->mProperties[$_key]->fetch($form); } } } From ryuji_amano @ users.sourceforge.jp Sat Oct 7 17:54:31 2006 From: ryuji_amano @ users.sourceforge.jp (Ryuji AMANO) Date: Sat, 7 Oct 2006 17:54:31 +0900 Subject: [xoops-cvslog 4889] CVS update: xoops2jp/html/core Message-ID: <20061007085431.7158B2AC03A@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_Theme.class.php diff -u xoops2jp/html/core/XCube_Theme.class.php:1.1.2.1 xoops2jp/html/core/XCube_Theme.class.php:1.1.2.2 --- xoops2jp/html/core/XCube_Theme.class.php:1.1.2.1 Fri Sep 29 17:13:22 2006 +++ xoops2jp/html/core/XCube_Theme.class.php Sat Oct 7 17:54:31 2006 @@ -1,7 +1,7 @@ _mManifesto = parse_ini_file($file, true); - $this->mName = $this->_mManifesto['Manifesto']['Name']; - $this->mDepends = $this->_mManifesto['Manifesto']['Depends']; - $this->mVersion = $this->_mManifesto['Manifesto']['Version']; - $this->mUrl = $this->_mManifesto['Manifesto']['Url']; + $this->mName = isset($this->_mManifesto['Manifesto']['Name']) ? $this->_mManifesto['Manifesto']['Name'] : ""; + $this->mDepends = isset($this->_mManifesto['Manifesto']['Depends']) ? $this->_mManifesto['Manifesto']['Depends'] : ""; + $this->mVersion = isset($this->_mManifesto['Manifesto']['Version']) ? $this->_mManifesto['Manifesto']['Version'] : ""; + $this->mUrl = isset($this->_mManifesto['Manifesto']['Url']) ? $this->_mManifesto['Manifesto']['Url'] : ""; - $this->mRenderSystemName = $this->_mManifesto['Theme']['RenderSystem']; - $this->mAuthor = $this->_mManifesto['Theme']['Author']; + $this->mRenderSystemName = isset($this->_mManifesto['Theme']['RenderSystem']) ? $this->_mManifesto['Theme']['RenderSystem'] : ""; + $this->mAuthor = isset($this->_mManifesto['Theme']['Author']) ? $this->_mManifesto['Theme']['Author'] : ""; if (isset($this->_mManifesto['Theme']['ScreenShot'])) { $this->mScreenShot = $this->_mManifesto['Theme']['ScreenShot']; @@ -88,7 +88,7 @@ $this->mDescription = $this->_mManifesto['Theme']['Description']; } - $this->mFormat = $this->_mManifesto['Theme']['Format']; + $this->mFormat = isset($this->_mManifesto['Theme']['Format']) ? $this->_mManifesto['Theme']['Format'] : ""; return true; } Index: xoops2jp/html/core/XCube_Delegate.class.php diff -u xoops2jp/html/core/XCube_Delegate.class.php:1.1.2.1 xoops2jp/html/core/XCube_Delegate.class.php:1.1.2.2 --- xoops2jp/html/core/XCube_Delegate.class.php:1.1.2.1 Fri Sep 29 17:13:22 2006 +++ xoops2jp/html/core/XCube_Delegate.class.php Sat Oct 7 17:54:31 2006 @@ -1,7 +1,6 @@ 0) { $this->_setSignatures(func_get_args()); } + $this->_mUniqueID = md5(uniqid(rand(), true)); } /** @@ -288,6 +289,11 @@ } } } + + function getID() + { + return $this->_mUniqueID; + } } /** @@ -329,15 +335,13 @@ */ function register($name, &$delegate) { - if (!isset($this->_mDelegates[$name])) { - $this->_mDelegates[$name] =& $delegate; + if (!isset($this->_mDelegates[$name][$delegate->getID()])) { + $this->_mDelegates[$name][$delegate->getID()] =& $delegate; if (isset($this->_mCallbacks[$name]) && count($this->_mCallbacks[$name]) > 0) { foreach (array_keys($this->_mCallbacks[$name]) as $key) { $delegate->add($this->_mCallbacks[$name][$key], $this->_mCallbackParameters[$name][$key][0], $this->_mCallbackParameters[$name][$key][1]); } - unset($this->_mCallbacks[$name]); - unset($this->_mCallbackParameters[$name]); } return true; @@ -362,12 +366,12 @@ function add($name, $callback, $param3 = null, $param4 = null) { if (isset($this->_mDelegates[$name])) { - $this->_mDelegates[$name]->add($callback, $param3, $param4); - } - else { - $this->_mCallbacks[$name][] = $callback; - $this->_mCallbackParameters[$name][] = array('0' => $param3, '1' => $param4); + foreach(array_keys($this->_mDelegates[$name]) as $key) { + $this->_mDelegates[$name][$key]->add($callback, $param3, $param4); + } } + $this->_mCallbacks[$name][] = $callback; + $this->_mCallbackParameters[$name][] = array('0' => $param3, '1' => $param4); } /** @@ -381,18 +385,19 @@ function delete($name, $delcallback) { if (isset($this->_mDelegates[$name])) { - $this->_mDelegates[$name]->delete($delcallback); - } else { - if (isset($this->_mCallbacks[$name])) { - foreach(array_keys($this->_mCallbacks[$name]) as $key) { - $callback = $this->_mCallbacks[$name][$key]; - if (XCube_DelegateUtils::_compareCallback($callback, $delcallback)) { - unset($this->_mCallbacks[$name][$key]); - unset($this->_mCallbackParameters[$name][$key]); - } - } - } - } + foreach(array_keys($this->_mDelegates[$name]) as $key) { + $this->_mDelegates[$name][$key]->delete($delcallback); + } + } + if (isset($this->_mCallbacks[$name])) { + foreach(array_keys($this->_mCallbacks[$name]) as $key) { + $callback = $this->_mCallbacks[$name][$key]; + if (XCube_DelegateUtils::_compareCallback($callback, $delcallback)) { + unset($this->_mCallbacks[$name][$key]); + unset($this->_mCallbackParameters[$name][$key]); + } + } + } } /** @@ -405,13 +410,14 @@ function reset($name) { if (isset($this->_mDelegates[$name])) { - $this->_mDelegates[$name]->reset(); - } else { - if (isset($this->_mCallbacks[$name])) { - unset($this->_mCallbacks[$name]); - unset($this->_mCallbackParameters[$name]); - } - } + foreach(array_keys($this->_mDelegates[$name]) as $key) { + $this->_mDelegates[$name][$key]->reset(); + } + } + if (isset($this->_mCallbacks[$name])) { + unset($this->_mCallbacks[$name]); + unset($this->_mCallbackParameters[$name]); + } } @@ -459,7 +465,8 @@ if ($root->mDelegateManager != null) { $delegates = $root->mDelegateManager->getDelegates(); if (isset($delegates[$delegateName])) { - $delegate =& $delegates[$delegateName]; + $keys = array_keys($delegates[$delegateName]); + $delegate =& $delegates[$delegateName][$keys[0]]; } else { $delegate =& new XCube_Delegate; $root->mDelegateManager->register($delegateName, $delegate); From ryuji_amano @ users.sourceforge.jp Sat Oct 7 17:58:28 2006 From: ryuji_amano @ users.sourceforge.jp (Ryuji AMANO) Date: Sat, 7 Oct 2006 17:58:28 +0900 Subject: [xoops-cvslog 4890] CVS update: xoops2jp/html/class Message-ID: <20061007085828.9016D2AC03A@users.sourceforge.jp> Index: xoops2jp/html/class/XCube_RenderSystem.class.php diff -u xoops2jp/html/class/XCube_RenderSystem.class.php:1.1.2.18 xoops2jp/html/class/XCube_RenderSystem.class.php:1.1.2.19 --- xoops2jp/html/class/XCube_RenderSystem.class.php:1.1.2.18 Thu Aug 10 18:41:34 2006 +++ xoops2jp/html/class/XCube_RenderSystem.class.php Sat Oct 7 17:58:28 2006 @@ -1,7 +1,7 @@ mAttributes; } - function setRenderBuffer() + function setRenderBuffer($buf) { $this->mRenderBuffer = $buf; } - function getRenderBuffer($buf) + function getRenderBuffer() { return $this->mRenderBuffer; } From minahito @ users.sourceforge.jp Sat Oct 7 18:01:56 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 18:01:56 +0900 Subject: [xoops-cvslog 4891] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061007090156.ED3692AC03A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php:1.1.2.11.2.3 xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php:1.1.2.11.2.4 --- xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php:1.1.2.11.2.3 Sat Oct 7 16:46:38 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php Sat Oct 7 18:01:56 2006 @@ -20,10 +20,10 @@ $action = isset($_REQUEST['op']) ? ucfirst(xoops_getrequest('op')) : "List"; $moduleRunner->setMode(LEGACY_FRAME_MODE_IMAGE); $moduleRunner->setActionName($action); + + $root->mController->mExecute->add(array(&$moduleRunner, 'execute')); - $root->mController->setActionStrategy($moduleRunner); - - $root->mController->executeAction(); + $root->mController->execute(); $root->mController->executeView(); } @@ -38,9 +38,9 @@ $moduleRunner =& new Legacy_ActionFrame(false); $moduleRunner->setActionName('Backend'); - $root->mController->setActionStrategy($moduleRunner); + $root->mController->mExecute->add(array(&$moduleRunner, 'execute')); - $root->mController->executeAction(); + $root->mController->execute(); $root->mController->executeView(); } @@ -77,11 +77,11 @@ $moduleRunner->setMode(LEGACY_FRAME_MODE_MISC); $moduleRunner->setActionName($actionName); - $root->mController->setActionStrategy($moduleRunner); + $root->mController->mExecute->add(array(&$moduleRunner, 'execute')); $root->mController->setDialogMode(true); - $root->mController->executeAction(); + $root->mController->execute(); $root->mController->executeView(); } From minahito @ users.sourceforge.jp Sat Oct 7 18:04:53 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 18:04:53 +0900 Subject: [xoops-cvslog 4892] CVS update: xoops2jp/html/modules/user/kernel Message-ID: <20061007090453.7C47C2AC03A@users.sourceforge.jp> Index: xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php diff -u xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php:1.1.2.11.2.2 xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php:1.1.2.11.2.3 --- xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php:1.1.2.11.2.2 Thu Oct 5 19:18:14 2006 +++ xoops2jp/html/modules/user/kernel/LegacypageFunctions.class.php Sat Oct 7 18:04:53 2006 @@ -1,7 +1,7 @@ setActionName($actionName); - $root->mController->setActionStrategy($moduleRunner); + $root->mController->mExecute->add(array(&$moduleRunner, 'execute')); $root->mController->setDialogMode(true); - $root->mController->executeAction(); + $root->mController->execute(); $root->mController->executeView(); } From minahito @ users.sourceforge.jp Sat Oct 7 18:25:08 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 18:25:08 +0900 Subject: [xoops-cvslog 4893] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20061007092508.1EFDC2AC016@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/module_list_confirm.html diff -u xoops2jp/html/modules/base/admin/templates/module_list_confirm.html:1.1.2.13 xoops2jp/html/modules/base/admin/templates/module_list_confirm.html:1.1.2.13.2.1 --- xoops2jp/html/modules/base/admin/templates/module_list_confirm.html:1.1.2.13 Fri Sep 15 18:37:22 2006 +++ xoops2jp/html/modules/base/admin/templates/module_list_confirm.html Sat Oct 7 18:25:07 2006 @@ -21,24 +21,24 @@ From minahito @ users.sourceforge.jp Sat Oct 7 23:50:44 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 23:50:44 +0900 Subject: [xoops-cvslog 4900] CVS update: xoops2jp/html/modules/user/admin/forms Message-ID: <20061007145044.67D242AC073@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php diff -u xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php:1.1.2.7.2.2 xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php:1.1.2.7.2.3 --- xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php:1.1.2.7.2.2 Fri Sep 29 17:14:44 2006 +++ xoops2jp/html/modules/user/admin/forms/RanksAdminEditForm.class.php Sat Oct 7 23:50:44 2006 @@ -1,7 +1,7 @@ get('rank_max') < $this->get('rank_min')) { - $this->addErrorMessage(_MD_USER_ERROR_INJURY_MIN_MAX); + $this->addErrorMessage(_AD_USER_ERROR_INJURY_MIN_MAX); } } From minahito @ users.sourceforge.jp Sat Oct 7 23:50:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 23:50:57 +0900 Subject: [xoops-cvslog 4901] CVS update: xoops2jp/html/modules/user/language/english Message-ID: <20061007145057.7939B2AC073@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/english/admin.php diff -u xoops2jp/html/modules/user/language/english/admin.php:1.1.2.30 xoops2jp/html/modules/user/language/english/admin.php:1.1.2.30.2.1 --- xoops2jp/html/modules/user/language/english/admin.php:1.1.2.30 Tue Sep 19 16:41:53 2006 +++ xoops2jp/html/modules/user/language/english/admin.php Sat Oct 7 23:50:57 2006 @@ -4,6 +4,7 @@ define('_AD_USER_ERROR_EMAIL', "{0} is an invalid email address"); define('_AD_USER_ERROR_GROUP_VALUE', "Specified group value is wrong."); define('_AD_USER_ERROR_IMAGE_REQUIRED', "You must select an image file."); +define('_AD_USER_ERROR_INJURY_MIN_MAX', "Relationship between minimum value and maximum value is wrong."); define('_AD_USER_ERROR_INTRANGE', "Incorrect input on {0}."); define('_AD_USER_ERROR_MAILJOB_SEND_FAIL', "Failed sending mail or private message."); define('_AD_USER_ERROR_MAILJOB_SEND_MEANS', "You must choose one or more mail delivery method(s)."); From minahito @ users.sourceforge.jp Sat Oct 7 23:50:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 23:50:57 +0900 Subject: [xoops-cvslog 4902] CVS update: xoops2jp/html/modules/user/language/japanese Message-ID: <20061007145057.9F01D2AC0AF@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/japanese/admin.php diff -u xoops2jp/html/modules/user/language/japanese/admin.php:1.1.2.37 xoops2jp/html/modules/user/language/japanese/admin.php:1.1.2.37.2.1 --- xoops2jp/html/modules/user/language/japanese/admin.php:1.1.2.37 Tue Sep 19 16:41:54 2006 +++ xoops2jp/html/modules/user/language/japanese/admin.php Sat Oct 7 23:50:57 2006 @@ -4,6 +4,7 @@ define('_AD_USER_ERROR_EMAIL', "{0}は不正なメールアドレスです"); define('_AD_USER_ERROR_GROUP_VALUE', "指定されたグループの値が不正です"); define('_AD_USER_ERROR_IMAGE_REQUIRED', "イメージ画像を必ず指定して下さい"); +define('_AD_USER_ERROR_INJURY_MIN_MAX', "最小値と最大値の関係が不正です"); define('_AD_USER_ERROR_INTRANGE', "{0}に対して不正な入力です"); define('_AD_USER_ERROR_MAILJOB_SEND_FAIL', "メール・プライベートメッセージの送信に失敗しました"); define('_AD_USER_ERROR_MAILJOB_SEND_MEANS', "最低ひとつの送信方法を指定してください"); From tom_g3x @ users.sourceforge.jp Sun Oct 8 00:36:15 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Sun, 8 Oct 2006 00:36:15 +0900 Subject: [xoops-cvslog 4903] CVS update: xoops2jp/html/modules/legacyRender/language/japanese Message-ID: <20061007153615.7D5422AC090@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/language/japanese/admin.php diff -u xoops2jp/html/modules/legacyRender/language/japanese/admin.php:1.1.2.25 xoops2jp/html/modules/legacyRender/language/japanese/admin.php:1.1.2.25.2.1 --- xoops2jp/html/modules/legacyRender/language/japanese/admin.php:1.1.2.25 Wed Sep 20 18:48:54 2006 +++ xoops2jp/html/modules/legacyRender/language/japanese/admin.php Sun Oct 8 00:36:15 2006 @@ -48,7 +48,7 @@ define('_AD_LEGACYRENDER_LANG_HTMLCODE', "HTMLコード"); define('_AD_LEGACYRENDER_LANG_IMAGEURL', "画像URL"); define('_AD_LEGACYRENDER_LANG_IMPMADE', "表示回数"); -define('_AD_LEGACYRENDER_LANG_IMPRESSIONS', "インプレッション数"); +define('_AD_LEGACYRENDER_LANG_IMPRESSIONS', "表示回数"); define('_AD_LEGACYRENDER_LANG_IMPTOTAL', "残り表示回数"); define('_AD_LEGACYRENDER_LANG_LOGIN', "ログイン名"); define('_AD_LEGACYRENDER_LANG_MORE', "もっと"); From onokazu @ users.sourceforge.jp Sun Oct 8 15:13:46 2006 From: onokazu @ users.sourceforge.jp (onokazu) Date: Sun, 8 Oct 2006 15:13:46 +0900 Subject: [xoops-cvslog 4904] CVS update: xoops2jp/html/install/class Message-ID: <20061008061346.E50522AC119@users.sourceforge.jp> Index: xoops2jp/html/install/class/textsanitizer.php diff -u xoops2jp/html/install/class/textsanitizer.php:1.2 xoops2jp/html/install/class/textsanitizer.php:1.2.20.1 --- xoops2jp/html/install/class/textsanitizer.php:1.2 Fri Mar 18 21:52:14 2005 +++ xoops2jp/html/install/class/textsanitizer.php Sun Oct 8 15:13:46 2006 @@ -1,5 +1,5 @@ should not be allowed since nl2br will be used - * when storing data - */ - function TextSanitizer() - { - - } - - function &getInstance() - { - static $instance; - if (!isset($instance)) { - $instance = new TextSanitizer(); - } - return $instance; - } - - function &makeClickable(&$text) - { - $patterns = array("/([^]_a-z0-9-=\"'\/])([a-z]+?):\/\/([^, \r\n\"\(\)'<>]+)/i", "/([^]_a-z0-9-=\"'\/])www\.([a-z0-9\-]+)\.([^, \r\n\"\(\)'<>]+)/i", "/([^]_a-z0-9-=\"'\/])([a-z0-9\-_.]+?)@([^, \r\n\"\(\)'<>]+)/i"); - $replacements = array("\\1\\2://\\3", "\\1www.\\2.\\3", "\\1\\2@\\3"); - return preg_replace($patterns, $replacements, $text); - } - - function &nl2Br($text) - { - return preg_replace("/(\015\012)|(\015)|(\012)/","
",$text); - } - - function &addSlashes($text, $force=false) - { - if ($force) { - return addslashes($text); - } - if (!get_magic_quotes_gpc()) { - $text =& addslashes($text); - } - return $text; - } - - /* - * if magic_quotes_gpc is on, stirip back slashes - */ - function &stripSlashesGPC($text) - { - if (get_magic_quotes_gpc()) { - $text =& stripslashes($text); - } - return $text; - } - - /* - * for displaying data in html textbox forms - */ - function &htmlSpecialChars($text) - { - return preg_replace("/&/i", '&', htmlspecialchars($text, ENT_QUOTES)); - } - - function &undoHtmlSpecialChars(&$text) - { - return preg_replace(array("/>/i", "/</i", "/"/i", "/'/i"), array(">", "<", "\"", "'"), $text); - } - - /* - * Filters textarea form data in DB for display - */ - function &displayText($text, $html=false) - { - if (! $html) { - // html not allowed - $text =& $this->htmlSpecialChars($text); - } - $text =& $this->makeClickable($text); - $text =& $this->nl2Br($text); - return $text; - } - - /* - * Filters textarea form data submitted for preview - */ - function &previewText($text, $html=false) - { - $text =& $this->stripSlashesGPC($text); - return $this->displayText($text, $html); - } + /* + * Constructor of this class + * Gets allowed html tags from admin config settings + *
should not be allowed since nl2br will be used + * when storing data + */ + function TextSanitizer() + { + + } + + function &getInstance() + { + static $instance; + if (!isset($instance)) { + $instance = new TextSanitizer(); + } + return $instance; + } + + function &makeClickable(&$text) + { + $patterns = array("/([^]_a-z0-9-=\"'\/])([a-z]+?):\/\/([^, \r\n\"\(\)'<>]+)/i", "/([^]_a-z0-9-=\"'\/])www\.([a-z0-9\-]+)\.([^, \r\n\"\(\)'<>]+)/i", "/([^]_a-z0-9-=\"'\/])([a-z0-9\-_.]+?)@([^, \r\n\"\(\)'<>]+)/i"); + $replacements = array("\\1\\2://\\3", "\\1www.\\2.\\3", "\\1\\2@\\3"); + return preg_replace($patterns, $replacements, $text); + } + + function &nl2Br($text) + { + return preg_replace("/(\015\012)|(\015)|(\012)/","
",$text); + } + + function &addSlashes($text, $force=false) + { + if ($force) { + return addslashes($text); + } + if (!get_magic_quotes_gpc()) { + $text =& addslashes($text); + } + return $text; + } + + /* + * if magic_quotes_gpc is on, stirip back slashes + */ + function &stripSlashesGPC($text) + { + if (get_magic_quotes_gpc()) { + $text =& stripslashes($text); + } + return $text; + } + + /* + * for displaying data in html textbox forms + */ + function &htmlSpecialChars($text) + { + $text = preg_replace("/&/i", '&', htmlspecialchars($text, ENT_QUOTES)); + return $text; + } + + function &undoHtmlSpecialChars(&$text) + { + return preg_replace(array("/>/i", "/</i", "/"/i", "/'/i"), array(">", "<", "\"", "'"), $text); + } + + /* + * Filters textarea form data in DB for display + */ + function &displayText($text, $html=false) + { + if (! $html) { + // html not allowed + $text =& $this->htmlSpecialChars($text); + } + $text =& $this->makeClickable($text); + $text =& $this->nl2Br($text); + return $text; + } + + /* + * Filters textarea form data submitted for preview + */ + function &previewText($text, $html=false) + { + $text =& $this->stripSlashesGPC($text); + return $this->displayText($text, $html); + } ##################### Deprecated Methods ###################### - function sanitizeForDisplay($text, $allowhtml = 0, $smiley = 1, $bbcode = 1) - { - if ( $allowhtml == 0 ) { - $text = $this->htmlSpecialChars($text); - } else { - //$config =& $GLOBALS['xoopsConfig']; - //$allowed = $config['allowed_html']; - //$text = strip_tags($text, $allowed); - $text = $this->makeClickable($text); - } - if ( $smiley == 1 ) { - $text = $this->smiley($text); - } - if ( $bbcode == 1 ) { - $text = $this->xoopsCodeDecode($text); - } - $text = $this->nl2Br($text); - return $text; - } - - function sanitizeForPreview($text, $allowhtml = 0, $smiley = 1, $bbcode = 1) - { - $text = $this->oopsStripSlashesGPC($text); - if ( $allowhtml == 0 ) { - $text = $this->htmlSpecialChars($text); - } else { - //$config =& $GLOBALS['xoopsConfig']; - //$allowed = $config['allowed_html']; - //$text = strip_tags($text, $allowed); - $text = $this->makeClickable($text); - } - if ( $smiley == 1 ) { - $text = $this->smiley($text); - } - if ( $bbcode == 1 ) { - $text = $this->xoopsCodeDecode($text); - } - $text = $this->nl2Br($text); - return $text; - } - - function makeTboxData4Save($text) - { - //$text = $this->undoHtmlSpecialChars($text); - return $this->addSlashes($text); - } - - function makeTboxData4Show($text, $smiley=0) - { - $text = $this->htmlSpecialChars($text); - return $text; - } - - function makeTboxData4Edit($text) - { - return $this->htmlSpecialChars($text); - } - - function makeTboxData4Preview($text, $smiley=0) - { - $text = $this->stripSlashesGPC($text); - $text = $this->htmlSpecialChars($text); - return $text; - } - - function makeTboxData4PreviewInForm($text) - { - $text = $this->stripSlashesGPC($text); - return $this->htmlSpecialChars($text); - } - - function makeTareaData4Save($text) - { - return $this->addSlashes($text); - } - - function &makeTareaData4Show(&$text, $html=1, $smiley=1, $xcode=1) - { - return $this->displayTarea($text, $html, $smiley, $xcode); - } - - function makeTareaData4Edit($text) - { - return htmlSpecialChars($text, ENT_QUOTES); - } - - function &makeTareaData4Preview(&$text, $html=1, $smiley=1, $xcode=1) - { - return $this->previewTarea($text, $html, $smiley, $xcode); - } - - function makeTareaData4PreviewInForm($text) - { - //if magic_quotes_gpc is on, do stipslashes - $text = $this->stripSlashesGPC($text); - return htmlSpecialChars($text, ENT_QUOTES); - } - - function makeTareaData4InsideQuotes($text) - { - return $this->htmlSpecialChars($text); - } - - function &oopsStripSlashesGPC($text) - { - return $this->stripSlashesGPC($text); - } - - function &oopsStripSlashesRT($text) - { - if (get_magic_quotes_runtime()) { - $text =& stripslashes($text); - } - return $text; - } - - function &oopsAddSlashes($text) - { - return $this->addSlashes($text); - } - - function &oopsHtmlSpecialChars($text) - { - return $this->htmlSpecialChars($text); - } - - function &oopsNl2Br($text) - { - return $this->nl2br($text); - } + function sanitizeForDisplay($text, $allowhtml = 0, $smiley = 1, $bbcode = 1) + { + if ( $allowhtml == 0 ) { + $text = $this->htmlSpecialChars($text); + } else { + //$config =& $GLOBALS['xoopsConfig']; + //$allowed = $config['allowed_html']; + //$text = strip_tags($text, $allowed); + $text = $this->makeClickable($text); + } + if ( $smiley == 1 ) { + $text = $this->smiley($text); + } + if ( $bbcode == 1 ) { + $text = $this->xoopsCodeDecode($text); + } + $text = $this->nl2Br($text); + return $text; + } + + function sanitizeForPreview($text, $allowhtml = 0, $smiley = 1, $bbcode = 1) + { + $text = $this->oopsStripSlashesGPC($text); + if ( $allowhtml == 0 ) { + $text = $this->htmlSpecialChars($text); + } else { + //$config =& $GLOBALS['xoopsConfig']; + //$allowed = $config['allowed_html']; + //$text = strip_tags($text, $allowed); + $text = $this->makeClickable($text); + } + if ( $smiley == 1 ) { + $text = $this->smiley($text); + } + if ( $bbcode == 1 ) { + $text = $this->xoopsCodeDecode($text); + } + $text = $this->nl2Br($text); + return $text; + } + + function makeTboxData4Save($text) + { + //$text = $this->undoHtmlSpecialChars($text); + return $this->addSlashes($text); + } + + function makeTboxData4Show($text, $smiley=0) + { + $text = $this->htmlSpecialChars($text); + return $text; + } + + function makeTboxData4Edit($text) + { + return $this->htmlSpecialChars($text); + } + + function makeTboxData4Preview($text, $smiley=0) + { + $text = $this->stripSlashesGPC($text); + $text = $this->htmlSpecialChars($text); + return $text; + } + + function makeTboxData4PreviewInForm($text) + { + $text = $this->stripSlashesGPC($text); + return $this->htmlSpecialChars($text); + } + + function makeTareaData4Save($text) + { + return $this->addSlashes($text); + } + + function &makeTareaData4Show(&$text, $html=1, $smiley=1, $xcode=1) + { + return $this->displayTarea($text, $html, $smiley, $xcode); + } + + function makeTareaData4Edit($text) + { + return htmlSpecialChars($text, ENT_QUOTES); + } + + function &makeTareaData4Preview(&$text, $html=1, $smiley=1, $xcode=1) + { + return $this->previewTarea($text, $html, $smiley, $xcode); + } + + function makeTareaData4PreviewInForm($text) + { + //if magic_quotes_gpc is on, do stipslashes + $text = $this->stripSlashesGPC($text); + return htmlSpecialChars($text, ENT_QUOTES); + } + + function makeTareaData4InsideQuotes($text) + { + return $this->htmlSpecialChars($text); + } + + function &oopsStripSlashesGPC($text) + { + return $this->stripSlashesGPC($text); + } + + function &oopsStripSlashesRT($text) + { + if (get_magic_quotes_runtime()) { + $text =& stripslashes($text); + } + return $text; + } + + function &oopsAddSlashes($text) + { + return $this->addSlashes($text); + } + + function &oopsHtmlSpecialChars($text) + { + return $this->htmlSpecialChars($text); + } + + function &oopsNl2Br($text) + { + return $this->nl2br($text); + } } ?> \ No newline at end of file From nobunobu @ users.sourceforge.jp Sun Oct 8 21:15:23 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 8 Oct 2006 21:15:23 +0900 Subject: [xoops-cvslog 4905] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061008121523.BDB452AC13C@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.10 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.11 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.10 Sat Oct 7 17:26:33 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Sun Oct 8 21:15:23 2006 @@ -1,7 +1,7 @@ mConfig=&$configHandler->getConfigsByCat(XOOPS_CONF); - $this->mRoot->mContext->mXoopsConfig =& $this->mConfig; + + $config =& $configHandler->getConfigsByCat(XOOPS_CONF); + + $this->setTheme($config['theme_set']); + $config['language'] = $this->mRoot->mLanguageManager->getLanguage(); + + $this->mRoot->mContext->mXoopsConfig =& $config; + $this->mConfig =& $config; // Compatiblity for 2.1Alpha + $GLOBALS['xoopsConfig'] =& $config; // Compatiblity for 2.0.x - $this->setTheme($this->mConfig['theme_set']); - $this->mConfig['language'] = $this->mRoot->mLanguageManager->getLanguage(); - - $GLOBALS['xoopsConfig'] =& $this->mRoot->mContext->mXoopsConfig; $GLOBALS['config_handler'] =& $configHandler; } @@ -598,7 +601,7 @@ require_once XOOPS_BASE_PATH . "/class/DebuggerManager.class.php"; - $debug_mode = $this->mConfig['debug_mode']; + $debug_mode = $this->mRoot->mContext->mXoopsConfig['debug_mode']; if (defined("OH_MY_GOD_HELP_ME")) { $debug_mode = XOOPS_DEBUG_PHP; } @@ -698,7 +701,7 @@ // $xoopsModule =& $this->mRoot->mContext->mXoopsModule; - $cachetime = $this->mConfig['module_cache'][$xoopsModule->get('mid')]; + $cachetime = $this->mRoot->mContext->mXoopsConfig['module_cache'][$xoopsModule->get('mid')]; $filepath = $this->getModuleCacheFilePath($cacheInfo); // @@ -726,7 +729,7 @@ function setTheme($theme) { $this->mTheme = $theme; - $this->mConfig['theme_set'] = $theme; + $this->mRoot->mContext->mXoopsConfig['theme_set'] = $theme; } function executeView() @@ -1238,7 +1241,8 @@ } function _setupFilterChain() - { $primaryPreloads = $this->mController->mRoot->getSiteConfig('Legacy.PrimaryPreloads'); + { + $primaryPreloads = $this->mController->mRoot->getSiteConfig('Legacy.PrimaryPreloads'); foreach ($primaryPreloads as $className => $classPath) { if (file_exists(XOOPS_ROOT_PATH . $classPath)) { require_once XOOPS_ROOT_PATH . $classPath; From nobunobu @ users.sourceforge.jp Sun Oct 8 21:15:23 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 8 Oct 2006 21:15:23 +0900 Subject: [xoops-cvslog 4906] CVS update: xoops2jp/html/modules/base/preload Message-ID: <20061008121523.E41402AC143@users.sourceforge.jp> Index: xoops2jp/html/modules/base/preload/IPbanningFilter.class.php diff -u xoops2jp/html/modules/base/preload/IPbanningFilter.class.php:1.1.2.2 xoops2jp/html/modules/base/preload/IPbanningFilter.class.php:1.1.2.2.2.1 --- xoops2jp/html/modules/base/preload/IPbanningFilter.class.php:1.1.2.2 Thu Sep 14 15:06:13 2006 +++ xoops2jp/html/modules/base/preload/IPbanningFilter.class.php Sun Oct 8 21:15:23 2006 @@ -1,7 +1,7 @@ mController->mConfig['enable_badips']) { + if ($this->mRoot->mContext->getXoopsConfig('enable_badips')) { if (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR']) { foreach ($this->mController->mConfig['bad_ips'] as $bi) { if(!empty($bi) && strstr($_SERVER['REMOTE_ADDR'], $bi)!==false) { From nobunobu @ users.sourceforge.jp Sun Oct 8 21:15:24 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 8 Oct 2006 21:15:24 +0900 Subject: [xoops-cvslog 4907] CVS update: xoops2jp/html/modules/base/preload/Primary Message-ID: <20061008121524.1463C2AC13C@users.sourceforge.jp> Index: xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php diff -u xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php:1.1.2.6.2.3 xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php:1.1.2.6.2.4 --- xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php:1.1.2.6.2.3 Thu Oct 5 19:18:14 2006 +++ xoops2jp/html/modules/base/preload/Primary/SiteClose.class.php Sun Oct 8 21:15:23 2006 @@ -1,7 +1,7 @@ mController->mConfig['closesite'] == 1) || is_array(Legacy_Utils::checkSystemModules())) { + if (($this->mRoot->mContext->getXoopsConfig('closesite') == 1) || is_array(Legacy_Utils::checkSystemModules())) { $this->mController->mSetupUser->add("Legacy_SiteClose::callbackSetupUser", XCUBE_DELEGATE_PRIORITY_FINAL); $this->mRoot->mDelegateManager->add("Site.CheckLogin.Success", array(&$this, "callbackCheckLoginSuccess")); } @@ -29,6 +29,7 @@ { $retArray = Legacy_Utils::checkSystemModules(); $accessAllowFlag = false; + $xoopsConfig = $controller->mRoot->mContext->getXoopsConfig(); if (!empty($_POST['xoops_login'])) { if (is_array($retArray)) { @@ -39,7 +40,7 @@ return; } elseif (is_object($context->mXoopsUser)) { foreach ($context->mXoopsUser->getGroups() as $group) { - if (in_array($group, $controller->mConfig['closesite_okgrp']) || XOOPS_GROUP_ADMIN == $group) { + if (in_array($group, $xoopsConfig['closesite_okgrp']) || XOOPS_GROUP_ADMIN == $group) { $accessAllowFlag = true; break; } @@ -97,9 +98,9 @@ $xoopsTpl =& new XoopsTpl(); $xoopsTpl->assign('cube_module_uninstall', htmlspecialchars($_GET['cube_module_uninstall'],ENT_QUOTES)); $xoopsTpl->assign( array( - 'xoops_sitename' => htmlspecialchars($controller->mConfig['sitename']), + 'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename']), 'xoops_themecss' => xoops_getcss(), - 'xoops_imageurl' => XOOPS_THEME_URL . '/' . $controller->mConfig['theme_set'] . '/', + 'xoops_imageurl' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/', )); ///< @todo filebase template with absolute file path $xoopsTpl->compile_check = true; @@ -139,9 +140,9 @@ $xoopsTpl->assign('disabled',$retArray['disabled']); $xoopsTpl->assign('option',$optionModules); $xoopsTpl->assign(array( - 'xoops_sitename' => htmlspecialchars($controller->mConfig['sitename']), + 'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename']), 'xoops_themecss' => xoops_getcss(), - 'xoops_imageurl' => XOOPS_THEME_URL . '/' . $controller->mConfig['theme_set'] . '/' + 'xoops_imageurl' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/' )); ///< @todo filebase template with absolute file path $xoopsTpl->compile_check = true; @@ -156,13 +157,13 @@ if (!$accessAllowFlag) { require_once XOOPS_ROOT_PATH . '/class/template.php'; $xoopsTpl =& new XoopsTpl(); - $xoopsTpl->assign(array('xoops_sitename' => htmlspecialchars($controller->mConfig['sitename']), + $xoopsTpl->assign(array('xoops_sitename' => htmlspecialchars($xoopsConfig['sitename']), 'xoops_themecss' => xoops_getcss(), - 'xoops_imageurl' => XOOPS_THEME_URL . '/' . $controller->mConfig['theme_set'] . '/', + 'xoops_imageurl' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/', 'lang_login' => _LOGIN, 'lang_username' => _USERNAME, 'lang_password' => _PASSWORD, - 'lang_siteclosemsg' => $controller->mConfig['closesite_text'] + 'lang_siteclosemsg' => $xoopsConfig['closesite_text'] )); $xoopsTpl->compile_check = true; From minahito @ users.sourceforge.jp Tue Oct 10 15:12:08 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 10 Oct 2006 15:12:08 +0900 Subject: [xoops-cvslog 4908] CVS update: xoops2jp/html/modules/base Message-ID: <20061010061208.D57F02AC1E0@users.sourceforge.jp> Index: xoops2jp/html/modules/base/index.php diff -u xoops2jp/html/modules/base/index.php:1.1.2.1.2.1 xoops2jp/html/modules/base/index.php:1.1.2.1.2.2 --- xoops2jp/html/modules/base/index.php:1.1.2.1.2.1 Thu Sep 28 14:01:14 2006 +++ xoops2jp/html/modules/base/index.php Tue Oct 10 15:12:08 2006 @@ -8,12 +8,12 @@ $actionName = isset($_GET['action']) ? trim($_GET['action']) : "Default"; -$moduleRunner = new Legacy_ActionFrame(false); +$moduleRunner =& new Legacy_ActionFrame(false); $moduleRunner->setActionName($actionName); $root->mController->mExecute->add(array(&$moduleRunner, 'execute')); -$root->mController->executeAction(); +$root->mController->execute(); require_once XOOPS_ROOT_PATH . "/footer.php"; From minahito @ users.sourceforge.jp Tue Oct 10 15:12:23 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 10 Oct 2006 15:12:23 +0900 Subject: [xoops-cvslog 4909] CVS update: xoops2jp/html/modules/base/admin Message-ID: <20061010061223.839422AC1E0@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/index.php diff -u xoops2jp/html/modules/base/admin/index.php:1.1.2.2.2.1 xoops2jp/html/modules/base/admin/index.php:1.1.2.2.2.2 --- xoops2jp/html/modules/base/admin/index.php:1.1.2.2.2.1 Thu Sep 28 14:01:14 2006 +++ xoops2jp/html/modules/base/admin/index.php Tue Oct 10 15:12:23 2006 @@ -8,7 +8,7 @@ $actionName = isset($_GET['action']) ? trim($_GET['action']) : "ModuleList"; -$moduleRunner = new Legacy_ActionFrame(true); +$moduleRunner =& new Legacy_ActionFrame(true); $moduleRunner->setActionName($actionName); $root->mController->mExecute->add(array(&$moduleRunner, 'execute')); From minahito @ users.sourceforge.jp Tue Oct 10 15:12:38 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 10 Oct 2006 15:12:38 +0900 Subject: [xoops-cvslog 4910] CVS update: xoops2jp/html/modules/base/class Message-ID: <20061010061238.76BA92AC1E0@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/ActionFrame.class.php diff -u xoops2jp/html/modules/base/class/ActionFrame.class.php:1.1.2.12.2.3 xoops2jp/html/modules/base/class/ActionFrame.class.php:1.1.2.12.2.4 --- xoops2jp/html/modules/base/class/ActionFrame.class.php:1.1.2.12.2.3 Fri Oct 6 18:47:18 2006 +++ xoops2jp/html/modules/base/class/ActionFrame.class.php Tue Oct 10 15:12:38 2006 @@ -44,6 +44,13 @@ function setActionName($name) { $this->mActionName = $name; + + // + // Temp FIXME! + // + $root =& XCube_Root::getSingleton(); + $root->mContext->setAttribute('actionName', $name); + $root->mContext->mModule->setAttribute('actionName', $name); } /** @@ -73,7 +80,7 @@ // // Add mode. // - $this->mActionName = $this->mMode . $this->mActionName; + $this->setActionName($this->mMode . $this->mActionName); // // Create action object by mActionName From minahito @ users.sourceforge.jp Tue Oct 10 15:13:00 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 10 Oct 2006 15:13:00 +0900 Subject: [xoops-cvslog 4911] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061010061300.BDDC62AC1E7@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_Module.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Module.class.php:1.1.2.2 xoops2jp/html/modules/base/kernel/Legacy_Module.class.php:1.1.2.3 --- xoops2jp/html/modules/base/kernel/Legacy_Module.class.php:1.1.2.2 Sat Oct 7 18:52:22 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Module.class.php Tue Oct 10 15:13:00 2006 @@ -1,12 +1,18 @@ mAttributes[$key] = $value; + } + + /** + * Gets a value indicating whether the value specified by $key exists. + * + * @param string $key + * @return mixed + */ + function hasAttribute($key) + { + return isset($this->mAttributes[$key]); + } + + /** + * Gets a value of attributes with $key. If the value specified by $key + * doesn't exist in attributes, gets null. + * + * @param string $key + * @return mixed + */ + function getAttribute($key) + { + return isset($this->mAttributes[$key]) ? $this->mAttributes[$key] : null; + } + function &getCacheInfo() { if (!is_object($this->mCacheInfo)) { From minahito @ users.sourceforge.jp Tue Oct 10 15:13:12 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 10 Oct 2006 15:13:12 +0900 Subject: [xoops-cvslog 4912] CVS update: xoops2jp/html/modules/legacyRender/class Message-ID: <20061010061312.EF5512AC1E0@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php diff -u xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php:1.1.2.6.2.2 xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php:1.1.2.6.2.3 --- xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php:1.1.2.6.2.2 Thu Oct 5 18:10:12 2006 +++ xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php Tue Oct 10 15:13:12 2006 @@ -28,6 +28,13 @@ function setActionName($name) { $this->mActionName = $name; + + // + // Temp FIXME! + // + $root =& XCube_Root::getSingleton(); + $root->mContext->setAttribute('actionName', $name); + $root->mContext->mModule->setAttribute('actionName', $name); } function execute(&$controller) From minahito @ users.sourceforge.jp Tue Oct 10 15:13:20 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 10 Oct 2006 15:13:20 +0900 Subject: [xoops-cvslog 4913] CVS update: xoops2jp/html/modules/pm/class Message-ID: <20061010061320.BA44C2AC1E0@users.sourceforge.jp> Index: xoops2jp/html/modules/pm/class/ActionFrame.class.php diff -u xoops2jp/html/modules/pm/class/ActionFrame.class.php:1.1.2.6.2.2 xoops2jp/html/modules/pm/class/ActionFrame.class.php:1.1.2.6.2.3 --- xoops2jp/html/modules/pm/class/ActionFrame.class.php:1.1.2.6.2.2 Thu Oct 5 18:10:30 2006 +++ xoops2jp/html/modules/pm/class/ActionFrame.class.php Tue Oct 10 15:13:20 2006 @@ -1,7 +1,7 @@ mActionName = $name; + + // + // Temp FIXME! + // + $root =& XCube_Root::getSingleton(); + $root->mContext->setAttribute('actionName', $name); + $root->mContext->mModule->setAttribute('actionName', $name); } function &execute(&$controller) From minahito @ users.sourceforge.jp Tue Oct 10 15:13:33 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 10 Oct 2006 15:13:33 +0900 Subject: [xoops-cvslog 4914] CVS update: xoops2jp/html/modules/user/class Message-ID: <20061010061333.DB4E62AC1E0@users.sourceforge.jp> Index: xoops2jp/html/modules/user/class/ActionFrame.class.php diff -u xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.9.2.2 xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.9.2.3 --- xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.9.2.2 Thu Oct 5 18:11:11 2006 +++ xoops2jp/html/modules/user/class/ActionFrame.class.php Tue Oct 10 15:13:33 2006 @@ -28,6 +28,13 @@ function setActionName($name) { $this->mActionName = $name; + + // + // Temp FIXME! + // + $root =& XCube_Root::getSingleton(); + $root->mContext->setAttribute('actionName', $name); + $root->mContext->mModule->setAttribute('actionName', $name); } function execute(&$controller) From minahito @ users.sourceforge.jp Tue Oct 10 17:10:50 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 10 Oct 2006 17:10:50 +0900 Subject: [xoops-cvslog 4915] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061010081050.1F0B92AC083@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.3 xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.4 --- xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.3 Fri Oct 6 18:48:45 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php Tue Oct 10 17:10:49 2006 @@ -1,7 +1,7 @@ mController->mRoot->mContext->mXoopsUser) ? $this->mController->mRoot->mContext->mXoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS; - $blockObjects=&$blockHandler->getBlocks($groups, $mid, $showFlag); + $blockObjects =& $blockHandler->getBlocks($groups, $mid, $showFlag); foreach($blockObjects as $blockObject) { - $block =& new Legacy_BlockProcedureAdapter($blockObject); + // + // IMPORTANT CONVENTION + // + $block = null; + $func = $blockObject->get('show_func'); + if (substr($func, 0, 4) == 'cl::') { + $className = substr($func, 4); + if (!class_exists($className)) { + $filePath = XOOPS_ROOT_PATH . '/modules/' . $blockObject->get('dirname') . '/blocks/' . $blockObject->get('func_file'); + if (!file_exists($filePath)) { + continue; + } + + require_once $filePath; + + if (!class_exists($className)) { + continue; + } + } + + $block =& new $className($blockObject); + } + else { + $block =& new Legacy_BlockProcedureAdapter($blockObject); + } + if ($block->prepare() !== false) { $this->mController->_mBlockChain[] =& $block; } From minahito @ users.sourceforge.jp Tue Oct 10 17:55:13 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 10 Oct 2006 17:55:13 +0900 Subject: [xoops-cvslog 4916] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20061010085513.1CD1F2AC03E@users.sourceforge.jp> Index: xoops2jp/html/modules/base/language/japanese/admin.php diff -u xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.59 xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.59.2.1 --- xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.59 Fri Sep 22 19:37:24 2006 +++ xoops2jp/html/modules/base/language/japanese/admin.php Tue Oct 10 17:55:12 2006 @@ -234,6 +234,7 @@ define('_AD_BASE_MESSAGE_INSTALLATION_MODULE_SUCCESSFUL', "{0} モジュールのインストールに成功しました"); define('_AD_BASE_MESSAGE_TEMPLATE_INSTALLED', "テンプレート {0} をインストールしました"); define('_AD_BASE_MESSAGE_UNINSTALLATION_MODULE_SUCCESSFUL', "{0} モジュールのアンインストールに成功しました"); +define('_AD_BASE_MESSAGE_UNINSTALLATION_BLOCK_SUCCESSFUL', "{0} ブロックのアンインストールに成功しました"); define('_AD_BASE_MESSAGE_UPDATE_STARTED', "アップデートを開始します"); define('_AD_BASE_MESSAGE_UPDATING_MODULE_SUCCESSFUL', "{0} モジュールのアップデートに成功しました"); define('_AD_BASE_TIPS_ADD_CUSTOM_BLOCK', "新しいブロックをインストールして、サイトをカスタマイズしましょう。
モジュール付属のブロック以外にも、カスタムブロックを追加して、自由なメッセージをブロックカラムに追加できます。"); From minahito @ users.sourceforge.jp Tue Oct 10 17:55:13 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 10 Oct 2006 17:55:13 +0900 Subject: [xoops-cvslog 4917] CVS update: xoops2jp/html/modules/base/language/english Message-ID: <20061010085513.42A732AC083@users.sourceforge.jp> Index: xoops2jp/html/modules/base/language/english/admin.php diff -u xoops2jp/html/modules/base/language/english/admin.php:1.1.2.52 xoops2jp/html/modules/base/language/english/admin.php:1.1.2.52.2.1 --- xoops2jp/html/modules/base/language/english/admin.php:1.1.2.52 Fri Sep 22 19:37:24 2006 +++ xoops2jp/html/modules/base/language/english/admin.php Tue Oct 10 17:55:13 2006 @@ -233,6 +233,7 @@ define('_AD_BASE_MESSAGE_INSTALLATION_MODULE_SUCCESSFUL', "Installation of '{0}' module has been successful."); define('_AD_BASE_MESSAGE_TEMPLATE_INSTALLED', "Template '{0}' has been installed."); define('_AD_BASE_MESSAGE_UNINSTALLATION_MODULE_SUCCESSFUL', "Uninstallation of '{0}' module has been successful."); +define('_AD_BASE_MESSAGE_UNINSTALLATION_BLOCK_SUCCESSFUL', "Uninstallation of '{0}' block has been successful."); define('_AD_BASE_MESSAGE_UPDATE_STARTED', "Update started."); define('_AD_BASE_MESSAGE_UPDATING_MODULE_SUCCESSFUL', "Updating '{0}' module has been successful."); define('_AD_BASE_TIPS_ADD_CUSTOM_BLOCK', "Install new blocks, and set your site just the way you want it!
If you want to have a block with free content that is not part of a module, simply create a custom block and write your message in it."); From minahito @ users.sourceforge.jp Tue Oct 10 17:55:43 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 10 Oct 2006 17:55:43 +0900 Subject: [xoops-cvslog 4918] CVS update: xoops2jp/html/modules/base/admin/class Message-ID: <20061010085543.342322AC03E@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php diff -u xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.24.2.1 xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.24.2.2 --- xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.24.2.1 Thu Oct 5 18:07:09 2006 +++ xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php Tue Oct 10 17:55:43 2006 @@ -195,20 +195,32 @@ $blockHandler =& xoops_gethandler('block'); $blockObj =& $blockHandler->create(); - $blockObj->setVar('mid', $module->getVar('mid')); - $blockObj->setVar('options', $options); - $blockObj->setVar('name', $block['name']); - $blockObj->setVar('title', $block['name']); - $blockObj->setVar('block_type', 'M'); - $blockObj->setVar('c_type', 1); - $blockObj->setVar('isactive', 1); - $blockObj->setVar('dirname', $module->getVar('dirname')); - $blockObj->setVar('func_file', $block['file']); - $blockObj->setVar('show_func', $block['show_func']); - $blockObj->setVar('edit_func', $edit_func); - $blockObj->setVar('template', $template); - $blockObj->setVar('last_modified', time()); - $blockObj->setVar('visible', $visible); + $blockObj->set('mid', $module->getVar('mid')); + $blockObj->set('options', $options); + $blockObj->set('name', $block['name']); + $blockObj->set('title', $block['name']); + $blockObj->set('block_type', 'M'); + $blockObj->set('c_type', 1); + $blockObj->set('isactive', 1); + $blockObj->set('dirname', $module->getVar('dirname')); + $blockObj->set('func_file', $block['file']); + + // + // IMPORTANT CONVENTION + // + $show_func = ""; + if (isset($block['class'])) { + $show_func = "cl::" . $block['class']; + } + else { + $show_func = $block['show_func']; + } + + $blockObj->set('show_func', $show_func); + $blockObj->set('edit_func', $edit_func); + $blockObj->set('template', $template); + $blockObj->set('last_modified', time()); + $blockObj->set('visible', $visible); return $blockObj; } @@ -327,7 +339,7 @@ function unInstallBlock(&$block, &$log) { $blockHandler =& xoops_gethandler('block'); $blockHandler->delete($block); - $log->addReport("Uninstall block '".$block->getVar('name')); + $log->addReport(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_UNINSTALLATION_BLOCK_SUCCESSFUL, $block->get('name')); // // delete permission // From minahito @ users.sourceforge.jp Tue Oct 10 18:00:10 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 10 Oct 2006 18:00:10 +0900 Subject: [xoops-cvslog 4919] CVS update: xoops2jp/html/modules/base/admin/class Message-ID: <20061010090010.610752AC0A9@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php diff -u xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.24.2.2 xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.24.2.3 --- xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.24.2.2 Tue Oct 10 17:55:43 2006 +++ xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php Tue Oct 10 18:00:10 2006 @@ -339,7 +339,7 @@ function unInstallBlock(&$block, &$log) { $blockHandler =& xoops_gethandler('block'); $blockHandler->delete($block); - $log->addReport(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_UNINSTALLATION_BLOCK_SUCCESSFUL, $block->get('name')); + $log->addReport(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_UNINSTALLATION_BLOCK_SUCCESSFUL, $block->get('name'))); // // delete permission // From minahito @ users.sourceforge.jp Tue Oct 10 19:39:34 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 10 Oct 2006 19:39:34 +0900 Subject: [xoops-cvslog 4920] CVS update: xoops2jp/html/modules/user/admin/actions Message-ID: <20061010103934.902802AC024@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/actions/UserViewAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/UserViewAction.class.php:1.1.2.2 xoops2jp/html/modules/user/admin/actions/UserViewAction.class.php:1.1.2.2.2.1 --- xoops2jp/html/modules/user/admin/actions/UserViewAction.class.php:1.1.2.2 Mon Aug 7 20:32:00 2006 +++ xoops2jp/html/modules/user/admin/actions/UserViewAction.class.php Tue Oct 10 19:39:34 2006 @@ -77,7 +77,7 @@ // Do 'recount' // $posts = 0; - $this->mGetUserPosts->call(new XCube_Ref($posts), $xoopsUser); + $this->mGetUserPosts->call(new XCube_Ref($posts), $this->mObject); $this->mObject->set('posts', $posts); From minahito @ users.sourceforge.jp Tue Oct 10 19:55:22 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 10 Oct 2006 19:55:22 +0900 Subject: [xoops-cvslog 4921] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061010105522.6313E2AC0D6@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php:1.1.2.1.2.2 xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php:1.1.2.1.2.3 --- xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php:1.1.2.1.2.2 Thu Oct 5 18:08:50 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php Tue Oct 10 19:55:22 2006 @@ -1,7 +1,7 @@ mRender; } + /** + * Gets a number as ID. + * @return int + */ function getId() { } - + + /** + * Gets a name of this block. + * @return string + */ function getName() { } @@ -86,21 +98,34 @@ { } + /** + * Gets a title of this block. + * @return string + */ function getTitle() { return $this->_mBlock->get('title'); } + /** + * Gets a column index of this block. + * @return int + */ function getEntryIndex() { } + /** + * Gets a weight of this block. + * @return int + */ function getWeight() { } /** * Gets a value indicating whether this block nees to display its content. + * @return bool */ function isDisplay() { @@ -108,6 +133,11 @@ } } +/** + * This class extends the base class to exchange of information with the + * controller. And, it has a XoopsBlock instance, and some public methods for + * the public side and the control panel side. + */ class Legacy_BlockProcedure extends Legacy_AbstractBlockProcedure { /** @@ -164,6 +194,14 @@ { return $this->_mBlock->get('weight'); } + + /** + * Gets rendered HTML buffer for the option form of the control panel. + * @return string + */ + function getOptionForm() + { + } } /** @@ -205,6 +243,75 @@ { return $this->_mDisplayFlag; } + + function getOptionForm() + { + if ($this->_mBlock->get('func_file') && $this->_mBlock->get('edit_func')) { + $func_file = XOOPS_MODULE_PATH . "/" . $this->_mBlock->get('dirname') . "/blocks/" . $this->_mBlock->get('func_file'); + if (file_exists($func_file)) { + require $func_file; + $edit_func = $this->_mBlock->get('edit_func'); + + $options = explode('|', $this->_mBlock->get('options')); + + if (function_exists($edit_func)) { + // + // load language file. + // + $root =& XCube_Root::getSingleton(); + $langManager =& $root->getLanguageManager(); + $langManager->loadBlockMessageCatalog($this->_mBlock->get('dirname')); + + return call_user_func($edit_func, $options); + } + } + } + + return null; + } +} + +/** + * Static method collection for blocks in the public side. + */ +class Legacy_BlockUtils +{ + /** + * Creates a instance of the block procedure with the generating convention. + * And, returns it. + * @static + * @return Legacy_BlockProcedure + */ + function createBlockProcedure(&$block) + { + // + // IMPORTANT CONVENTION + // + $retBlock = null; + $func = $block->get('show_func'); + if (substr($func, 0, 4) == 'cl::') { + $className = substr($func, 4); + if (!class_exists($className)) { + $filePath = XOOPS_ROOT_PATH . '/modules/' . $block->get('dirname') . '/blocks/' . $block->get('func_file'); + if (!file_exists($filePath)) { + continue; + } + + require_once $filePath; + + if (!class_exists($className)) { + continue; + } + } + + $retBlock =& new $className($block); + } + else { + $retBlock =& new Legacy_BlockProcedureAdapter($block); + } + + return $retBlock; + } } ?> \ No newline at end of file From minahito @ users.sourceforge.jp Tue Oct 10 19:55:36 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 10 Oct 2006 19:55:36 +0900 Subject: [xoops-cvslog 4922] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061010105536.4FF042AC0EE@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.4 xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.5 --- xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.4 Tue Oct 10 17:10:49 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php Tue Oct 10 19:55:36 2006 @@ -1,7 +1,7 @@ getBlocks($groups, $mid, $showFlag); foreach($blockObjects as $blockObject) { - // - // IMPORTANT CONVENTION - // - $block = null; - $func = $blockObject->get('show_func'); - if (substr($func, 0, 4) == 'cl::') { - $className = substr($func, 4); - if (!class_exists($className)) { - $filePath = XOOPS_ROOT_PATH . '/modules/' . $blockObject->get('dirname') . '/blocks/' . $blockObject->get('func_file'); - if (!file_exists($filePath)) { - continue; - } - - require_once $filePath; - - if (!class_exists($className)) { - continue; - } - } - - $block =& new $className($blockObject); - } - else { - $block =& new Legacy_BlockProcedureAdapter($blockObject); - } + $block =& Legacy_BlockUtils::createBlockProcedure($blockObject); if ($block->prepare() !== false) { $this->mController->_mBlockChain[] =& $block; From minahito @ users.sourceforge.jp Tue Oct 10 19:55:47 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 10 Oct 2006 19:55:47 +0900 Subject: [xoops-cvslog 4923] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20061010105547.C70AD2AC0EE@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.10.2.1 xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.10.2.2 --- xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.10.2.1 Sat Oct 7 18:25:40 2006 +++ xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php Tue Oct 10 19:55:47 2006 @@ -1,7 +1,7 @@ mObject->get('func_file') && $this->mObject->get('edit_func')) { - $func_file = XOOPS_MODULE_PATH . "/" . $this->mObject->get('dirname') . "/blocks/" . $this->mObject->get('func_file'); - if (file_exists($func_file)) { - require $func_file; - $edit_func = $this->mObject->get('edit_func'); - - $options = explode('|', $this->mObject->get('options')); - - if (function_exists($edit_func)) { - // - // load language file. - // - $root =& XCube_Root::getSingleton(); - $langManager =& $root->getLanguageManager(); - $langManager->loadBlockMessageCatalog($this->mObject->get('dirname')); - - $this->_mOptionForm = call_user_func($edit_func, $options); - } - } - } + $this->_mOptionForm = $this->_getOptionForm(); $render->setAttribute('optionForm', $this->_mOptionForm); } + + /** + * Gets rendered HTML buffer of the block optional edit form. + */ + function _getOptionForm() + { + $block =& Legacy_BlockUtils::createBlockProcedure($this->mObject); + return $block->getOptionForm(); + } function executeViewSuccess(&$controller, &$xoopsUser, &$render) { From minahito @ users.sourceforge.jp Wed Oct 11 17:10:19 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 11 Oct 2006 17:10:19 +0900 Subject: [xoops-cvslog 4924] CVS update: xoops2jp/html/modules/legacyRender/kernel Message-ID: <20061011081019.E12D42AC01D@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php diff -u xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.3 xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.4 --- xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.3 Thu Oct 5 19:18:13 2006 +++ xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php Wed Oct 11 17:10:19 2006 @@ -175,7 +175,7 @@ // Theme rendering // $blocks = array(); - foreach($this->mController->mBlockContents[0] as $key => $result) { + foreach($this->mController->mRoot->mContext->mAttributes['legacy_BlockContents'][0] as $key => $result) { // $this->mSmarty->append('xoops_lblocks', $result); $blocks[$result['name']] = $result; } @@ -212,9 +212,9 @@ $result = null; if ($target->getTemplateName()) { - if ($target->getModuleName()) { - $this->mSmarty->setModulePrefix($target->getModuleName()); - $this->mSmarty->template_dir = XOOPS_MODULE_PATH . "/" . $target->getModuleName() . "/admin/". LEGACY_ADMIN_RENDER_TEMPLATE_DIRNAME; + if ($target->getAttribute('legacy_module') != null) { + $this->mSmarty->setModulePrefix($target->getAttribute('legacy_module')); + $this->mSmarty->template_dir = XOOPS_MODULE_PATH . "/" . $target->getAttribute('legacy_module') . "/admin/". LEGACY_ADMIN_RENDER_TEMPLATE_DIRNAME; } $result=$this->mSmarty->fetch("file:".$target->getTemplateName()); From minahito @ users.sourceforge.jp Wed Oct 11 17:10:32 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 11 Oct 2006 17:10:32 +0900 Subject: [xoops-cvslog 4925] CVS update: xoops2jp/html/modules/legacyRender/kernel Message-ID: <20061011081032.6EB982AC01D@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderTarget.class.php diff -u xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderTarget.class.php:1.1.2.3 xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderTarget.class.php:1.1.2.3.2.1 --- xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderTarget.class.php:1.1.2.3 Tue Mar 28 22:30:50 2006 +++ xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderTarget.class.php Wed Oct 11 17:10:32 2006 @@ -1,10 +1,15 @@ setType(XCUBE_RENDER_TARGET_TYPE_THEME); + $this->setAttribute('legacy_buffertype', LEGACY_RENDER_TARGET_TYPE_THEME); } function sendHeader() @@ -66,7 +71,7 @@ function Legacy_RenderTargetMain() { parent::XCube_RenderTarget(); - $this->setType(XCUBE_RENDER_TARGET_TYPE_MAIN); + $this->setAttribute('legacy_buffertype', LEGACY_RENDER_TARGET_TYPE_MAIN); } } From minahito @ users.sourceforge.jp Wed Oct 11 17:11:19 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 11 Oct 2006 17:11:19 +0900 Subject: [xoops-cvslog 4926] CVS update: xoops2jp/html/modules/legacyRender/kernel Message-ID: <20061011081119.AA11E2AC02F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php diff -u xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.30.2.2 xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.30.2.3 --- xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.30.2.2 Thu Oct 5 18:09:58 2006 +++ xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php Wed Oct 11 17:11:19 2006 @@ -1,6 +1,6 @@ mBlockContents = array(); } function prepare(&$controller) @@ -197,7 +193,7 @@ // // The following lines are temporary until we will finish changing the style! // - switch ($target->getType()) { + switch ($target->getAttribute('legacy_buffertype')) { case XCUBE_RENDER_TARGET_TYPE_BLOCK: $this->renderBlock($target); break; @@ -285,8 +281,8 @@ foreach($assignNameMap as $key=>$val) { $this->mXoopsTpl->assign($val['showflag'],$this->_getBlockShowFlag($val['showflag'])); - if(isset($this->mController->mBlockContents[$key])) { - foreach($this->mController->mBlockContents[$key] as $result) { + if(isset($this->mController->mRoot->mContext->mAttributes['legacy_BlockContents'][$key])) { + foreach($this->mController->mRoot->mContext->mAttributes['legacy_BlockContents'][$key] as $result) { $this->mXoopsTpl->append($val['block'], $result); } } @@ -312,17 +308,17 @@ switch($area) { case 'xoops_showrblock' : if (isset($GLOBALS['show_rblock']) && empty($GLOBALS['show_rblock'])) return 0; - return (!empty($this->mController->mBlockShowFlags[XOOPS_SIDEBLOCK_RIGHT])) ? 1 : 0; + return (!empty($this->mController->mRoot->mContext->mAttributes['legacy_BlockShowFlags'][XOOPS_SIDEBLOCK_RIGHT])) ? 1 : 0; break; case 'xoops_showlblock' : if (isset($GLOBALS['show_lblock']) && empty($GLOBALS['show_lblock'])) return 0; - return (!empty($this->mController->mBlockShowFlags[XOOPS_SIDEBLOCK_LEFT])) ? 1 : 0; + return (!empty($this->mController->mRoot->mContext->mAttributes['legacy_BlockShowFlags'][XOOPS_SIDEBLOCK_LEFT])) ? 1 : 0; break; case 'xoops_showcblock' : if (isset($GLOBALS['show_cblock']) && empty($GLOBALS['show_cblock'])) return 0; - return (!empty($this->mController->mBlockShowFlags[XOOPS_CENTERBLOCK_LEFT])|| - !empty($this->mController->mBlockShowFlags[XOOPS_CENTERBLOCK_RIGHT])|| - !empty($this->mController->mBlockShowFlags[XOOPS_CENTERBLOCK_CENTER])) ? 1 : 0; + return (!empty($this->mController->mRoot->mContext->mAttributes['legacy_BlockShowFlags'][XOOPS_CENTERBLOCK_LEFT])|| + !empty($this->mController->mRoot->mContext->mAttributes['legacy_BlockShowFlags'][XOOPS_CENTERBLOCK_RIGHT])|| + !empty($this->mController->mRoot->mContext->mAttributes['legacy_BlockShowFlags'][XOOPS_CENTERBLOCK_CENTER])) ? 1 : 0; break; default : return 0; @@ -415,7 +411,7 @@ $this->_renderFooter(); } - function &createRenderTarget($type = XCUBE_RENDER_TARGET_TYPE_MAIN) + function &createRenderTarget($type = LEGACY_RENDER_TARGET_TYPE_MAIN, $option = null) { $renderTarget = null; switch ($type) { @@ -423,9 +419,13 @@ $renderTarget =& new Legacy_RenderTargetMain(); break; + case LEGACY_RENDER_TARGET_TYPE_BLOCK: + $renderTarget =& new XCube_RenderTarget(); + $renderTarget->setAttribute('legacy_buffertype', LEGACY_RENDER_TARGET_TYPE_BLOCK); + break; + default: $renderTarget =& new XCube_RenderTarget(); - $renderTarget->setType($type); break; } @@ -444,14 +444,14 @@ function LegacyRender_smartyfunction_notifications_select($params, &$smarty) { - $renderTarget =& new XCube_RenderTarget(); - $renderTarget->setType(XCUBE_RENDER_TARGET_TYPE_MAIN); + $root =& XCube_Root::getSingleton(); + $renderSystem =& $root->getRenderSystem('Legacy_RenderSystem'); + + $renderTarget =& $renderSystem->createRenderTarget('main'); $renderTarget->setTemplateName("legacy_notification_select_form.html"); XCube_DelegateUtils::call('Legacyfunction.Notifications.Select', new XCube_Ref($renderTarget)); - $root =& XCube_Root::getSingleton(); - $renderSystem =& $root->getRenderSystem('Legacy_RenderSystem'); $renderSystem->renderWithTarget($renderTarget); return $renderTarget->getResult(); From minahito @ users.sourceforge.jp Wed Oct 11 17:12:58 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 11 Oct 2006 17:12:58 +0900 Subject: [xoops-cvslog 4927] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061011081258.0D6CD2AC01D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php:1.1.2.11.2.4 xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php:1.1.2.11.2.5 --- xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php:1.1.2.11.2.4 Sat Oct 7 18:01:56 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_EventFunctions.class.php Wed Oct 11 17:12:57 2006 @@ -162,7 +162,7 @@ $xoops_notification['target_page'] = "notification_update.php"; $xoops_notification['redirect_script'] = xoops_getenv('PHP_SELF'); - $render->setAttribute('editprofile_url', $urlXOOPS_URL . '/edituser.php?uid=' . $xoopsUser->getShow('uid')); + $render->setAttribute('editprofile_url', XOOPS_URL . '/edituser.php?uid=' . $xoopsUser->getShow('uid')); switch ($xoopsUser->getVar('notify_method')) { case XOOPS_NOTIFICATION_METHOD_DISABLE: From minahito @ users.sourceforge.jp Wed Oct 11 17:13:17 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 11 Oct 2006 17:13:17 +0900 Subject: [xoops-cvslog 4928] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061011081317.A02E52AC01D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_Module.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Module.class.php:1.1.2.3 xoops2jp/html/modules/base/kernel/Legacy_Module.class.php:1.1.2.4 --- xoops2jp/html/modules/base/kernel/Legacy_Module.class.php:1.1.2.3 Tue Oct 10 15:13:00 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Module.class.php Wed Oct 11 17:13:17 2006 @@ -1,7 +1,7 @@ mRender =& new XCube_RenderTarget(); - $this->mRender->setType(XCUBE_RENDER_TARGET_TYPE_MAIN); + $root =& XCube_Root::getSingleton(); + $renderSystem =& $root->getRenderSystem($this->getRenderSystemName()); + + $this->mRender =& $renderSystem->createRenderTarget('main'); if ($this->mXoopsModule != null) { - $this->mRender->setModuleName($this->mXoopsModule->get('dirname')); + $this->mRender->setAttribute('legacy_module', $this->mXoopsModule->get('dirname')); } } From minahito @ users.sourceforge.jp Wed Oct 11 17:13:40 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 11 Oct 2006 17:13:40 +0900 Subject: [xoops-cvslog 4929] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061011081340.ED64B2AC01D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.11 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.12 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.11 Sun Oct 8 21:15:23 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Wed Oct 11 17:13:40 2006 @@ -1,7 +1,7 @@ setType(XCUBE_RENDER_TARGET_TYPE_BLOCK); - + $context =& $this->mRoot->mContext; $cacheInfo =& new Legacy_BlockCacheInformation(); foreach ($this->_mBlockChain as $blockProcedure) { - $renderTarget->reset(); - // // This is a flag indicating whether the controller needs to call // the logic of the block. @@ -307,8 +296,8 @@ if ($cacheInfo->isEnableCache() && $this->existActiveCacheFile($filepath, $blockProcedure->getCacheTime())) { $content = $this->loadCache($filepath); if ($content != null) { - $this->mBlockShowFlags[$blockProcedure->getEntryIndex()] = true; - $this->mBlockContents[$blockProcedure->getEntryIndex()][] = array( + $context->mAttributes['legacy_BlockShowFlags'][$blockProcedure->getEntryIndex()] = true; + $context->mAttributes['legacy_BlockContents'][$blockProcedure->getEntryIndex()][] = array( 'name' => $blockProcedure->getName(), 'title' => $blockProcedure->getTitle(), 'content' => $content, @@ -329,8 +318,8 @@ $renderBuffer =& $blockProcedure->getRenderBuffer(); - $this->mBlockShowFlags[$blockProcedure->getEntryIndex()] = true; - $this->mBlockContents[$blockProcedure->getEntryIndex()][] = array( + $context->mAttributes['legacy_BlockShowFlags'][$blockProcedure->getEntryIndex()] = true; + $context->mAttributes['legacy_BlockContents'][$blockProcedure->getEntryIndex()][] = array( 'name' => $blockProcedure->getName(), 'title'=>$blockProcedure->getTitle(), 'content'=>$renderBuffer->getResult(), From minahito @ users.sourceforge.jp Wed Oct 11 17:13:54 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 11 Oct 2006 17:13:54 +0900 Subject: [xoops-cvslog 4930] CVS update: xoops2jp/html/modules/base/actions Message-ID: <20061011081354.A28272AC01D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/actions/BackendAction.class.php diff -u xoops2jp/html/modules/base/actions/BackendAction.class.php:1.1.2.7.2.1 xoops2jp/html/modules/base/actions/BackendAction.class.php:1.1.2.7.2.2 --- xoops2jp/html/modules/base/actions/BackendAction.class.php:1.1.2.7.2.1 Thu Oct 5 19:17:25 2006 +++ xoops2jp/html/modules/base/actions/BackendAction.class.php Wed Oct 11 17:13:54 2006 @@ -54,9 +54,10 @@ // // Set up the render buffer. // - $renderTarget =& new XCube_RenderTarget(); - $renderTarget->setType(XCUBE_RENDER_TARGET_TYPE_MAIN); + $renderSystem =& $controller->mRoot->getRenderSystem('Legacy_RenderSystem'); + $renderTarget =& $renderSystem->createRenderTarget('main'); + $renderTarget->setTemplateName("legacy_rss.html"); $renderTarget->setAttribute('channel_title', $xoopsConfig['sitename']); @@ -93,7 +94,6 @@ // // Rendering // - $renderSystem =& $controller->mRoot->getRenderSystem('Legacy_RenderSystem'); $renderSystem->renderWithTarget($renderTarget); if (function_exists('mb_http_output')) { From minahito @ users.sourceforge.jp Wed Oct 11 17:14:01 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 11 Oct 2006 17:14:01 +0900 Subject: [xoops-cvslog 4931] CVS update: xoops2jp/html/include Message-ID: <20061011081401.C43332AC01D@users.sourceforge.jp> Index: xoops2jp/html/include/functions.php diff -u xoops2jp/html/include/functions.php:1.2.8.19 xoops2jp/html/include/functions.php:1.2.8.19.2.1 --- xoops2jp/html/include/functions.php:1.2.8.19 Mon Sep 25 23:50:56 2006 +++ xoops2jp/html/include/functions.php Wed Oct 11 17:14:01 2006 @@ -1,5 +1,5 @@ getRenderSystem($root->mContext->mBaseRenderSystemName); + + $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoops_error.html"); + $renderTarget->setAttribute("style", $style); $renderTarget->setAttribute("title", $title); $renderTarget->setAttribute("message", $message); - $renderer =& $root->getRenderSystem(LEGACY_DEPENDENCE_RENDERER); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); print $renderTarget->getResult(); } @@ -94,15 +96,17 @@ function xoops_result($message, $title='') { $root =& XCube_Root::getSingleton(); - $renderTarget =& new Legacy_RenderTargetMain(); + $renderSystem =& $root->getRenderSystem($root->mContext->mBaseRenderSystemName); + + $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoops_result.html"); + $renderTarget->setAttribute("title", $title); $renderTarget->setAttribute("message", $message); - $renderer =& $root->getRenderSystem(LEGACY_DEPENDENCE_RENDERER); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); print $renderTarget->getResult(); } @@ -121,9 +125,11 @@ $tokenHandler->register($token); $root =& XCube_Root::getSingleton(); - $renderTarget =& new Legacy_RenderTargetMain(); + $renderSystem =& $root->getRenderSystem($root->mContext->mBaseRenderSystemName); + + $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoops_confirm.html"); $renderTarget->setAttribute("action", $action); @@ -133,8 +139,7 @@ $renderTarget->setAttribute("tokenName", $token->getTokenName()); $renderTarget->setAttribute("tokenValue", $token->getTokenValue()); - $renderer =& $root->getRenderSystem(LEGACY_DEPENDENCE_RENDERER); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); print $renderTarget->getResult(); } From minahito @ users.sourceforge.jp Wed Oct 11 17:14:11 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 11 Oct 2006 17:14:11 +0900 Subject: [xoops-cvslog 4932] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061011081411.597632AC01D@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/formtextdateselect.php diff -u xoops2jp/html/class/xoopsform/formtextdateselect.php:1.2.8.4 xoops2jp/html/class/xoopsform/formtextdateselect.php:1.2.8.4.2.1 --- xoops2jp/html/class/xoopsform/formtextdateselect.php:1.2.8.4 Sat Sep 23 00:47:21 2006 +++ xoops2jp/html/class/xoopsform/formtextdateselect.php Wed Oct 11 17:14:11 2006 @@ -1,5 +1,5 @@ getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); + + $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoopsform_textdateselect.html"); $renderTarget->setAttribute("element", $this); $renderTarget->setAttribute("date", date("Y-m-d", $this->getValue())); $jstime = formatTimestamp($this->getValue(), '"F j, Y H:i:s"'); - include_once XOOPS_ROOT_PATH.'/include/calendarjs.php'; + include_once XOOPS_ROOT_PATH.'/include/calendarjs.php'; //< FIXME - $renderer =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); return $renderTarget->getResult(); } Index: xoops2jp/html/class/xoopsform/formselect.php diff -u xoops2jp/html/class/xoopsform/formselect.php:1.2.8.3 xoops2jp/html/class/xoopsform/formselect.php:1.2.8.3.2.1 --- xoops2jp/html/class/xoopsform/formselect.php:1.2.8.3 Sat Sep 23 00:47:21 2006 +++ xoops2jp/html/class/xoopsform/formselect.php Wed Oct 11 17:14:11 2006 @@ -1,5 +1,5 @@ getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); + + $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoopsform_select.html"); $renderTarget->setAttribute("element", $this); - $renderer =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); return $renderTarget->getResult(); } Index: xoops2jp/html/class/xoopsform/formfile.php diff -u xoops2jp/html/class/xoopsform/formfile.php:1.2.8.2 xoops2jp/html/class/xoopsform/formfile.php:1.2.8.2.2.1 --- xoops2jp/html/class/xoopsform/formfile.php:1.2.8.2 Sat Sep 23 00:47:21 2006 +++ xoops2jp/html/class/xoopsform/formfile.php Wed Oct 11 17:14:11 2006 @@ -1,5 +1,5 @@ getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); + + $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoopsform_file.html"); $renderTarget->setAttribute("element", $this); - $renderer =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); $renderer->renderWithTarget($renderTarget); return $renderTarget->getResult(); Index: xoops2jp/html/class/xoopsform/formtextarea.php diff -u xoops2jp/html/class/xoopsform/formtextarea.php:1.2.8.2 xoops2jp/html/class/xoopsform/formtextarea.php:1.2.8.2.2.1 --- xoops2jp/html/class/xoopsform/formtextarea.php:1.2.8.2 Sat Sep 23 00:47:21 2006 +++ xoops2jp/html/class/xoopsform/formtextarea.php Wed Oct 11 17:14:11 2006 @@ -1,5 +1,5 @@ getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); + + $renderTarget =& $renderSystem->createRenderTarget(); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoopsform_textarea.html"); $renderTarget->setAttribute("element", $this); - $renderer =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); return $renderTarget->getResult(); } Index: xoops2jp/html/class/xoopsform/formtext.php diff -u xoops2jp/html/class/xoopsform/formtext.php:1.2.8.2 xoops2jp/html/class/xoopsform/formtext.php:1.2.8.2.2.1 --- xoops2jp/html/class/xoopsform/formtext.php:1.2.8.2 Sat Sep 23 00:47:21 2006 +++ xoops2jp/html/class/xoopsform/formtext.php Wed Oct 11 17:14:11 2006 @@ -1,5 +1,5 @@ getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); + + $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoopsform_text.html"); $renderTarget->setAttribute("element", $this); - $renderer =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); return $renderTarget->getResult(); } Index: xoops2jp/html/class/xoopsform/themeform.php diff -u xoops2jp/html/class/xoopsform/themeform.php:1.2.8.3 xoops2jp/html/class/xoopsform/themeform.php:1.2.8.3.2.1 --- xoops2jp/html/class/xoopsform/themeform.php:1.2.8.3 Sat Sep 23 15:57:46 2006 +++ xoops2jp/html/class/xoopsform/themeform.php Wed Oct 11 17:14:11 2006 @@ -1,5 +1,5 @@ getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); + $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoopsform_themeform.html"); $renderTarget->setAttribute("form", $this); - $renderer =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); $ret = $renderTarget->getResult(); $ret .= $this->renderValidationJS( true ); Index: xoops2jp/html/class/xoopsform/formcheckbox.php diff -u xoops2jp/html/class/xoopsform/formcheckbox.php:1.2.8.2 xoops2jp/html/class/xoopsform/formcheckbox.php:1.2.8.2.2.1 --- xoops2jp/html/class/xoopsform/formcheckbox.php:1.2.8.2 Sat Sep 23 00:47:21 2006 +++ xoops2jp/html/class/xoopsform/formcheckbox.php Wed Oct 11 17:14:11 2006 @@ -1,5 +1,5 @@ getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); + + $renderTarget =& $renderSystem->createRenderTarget('main'); if ( count($this->getOptions()) > 1 && substr($this->getName(), -2, 2) != "[]" ) { $newname = $this->getName()."[]"; $this->setName($newname); } - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoopsform_checkbox.html"); $renderTarget->setAttribute("element", $this); - $renderer =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); return $renderTarget->getResult(); } Index: xoops2jp/html/class/xoopsform/formlabel.php diff -u xoops2jp/html/class/xoopsform/formlabel.php:1.2.8.2 xoops2jp/html/class/xoopsform/formlabel.php:1.2.8.2.2.1 --- xoops2jp/html/class/xoopsform/formlabel.php:1.2.8.2 Sat Sep 23 00:47:21 2006 +++ xoops2jp/html/class/xoopsform/formlabel.php Wed Oct 11 17:14:11 2006 @@ -1,5 +1,5 @@ getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); + + $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoopsform_label.html"); $renderTarget->setAttribute("element", $this); - $renderer =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); return $renderTarget->getResult(); } Index: xoops2jp/html/class/xoopsform/formhidden.php diff -u xoops2jp/html/class/xoopsform/formhidden.php:1.2.8.2 xoops2jp/html/class/xoopsform/formhidden.php:1.2.8.2.2.1 --- xoops2jp/html/class/xoopsform/formhidden.php:1.2.8.2 Sat Sep 23 00:47:21 2006 +++ xoops2jp/html/class/xoopsform/formhidden.php Wed Oct 11 17:14:11 2006 @@ -1,5 +1,5 @@ getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); + + $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoopsform_hidden.html"); $renderTarget->setAttribute("element", $this); - $renderer =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); return $renderTarget->getResult(); } Index: xoops2jp/html/class/xoopsform/simpleform.php diff -u xoops2jp/html/class/xoopsform/simpleform.php:1.2.8.2 xoops2jp/html/class/xoopsform/simpleform.php:1.2.8.2.2.1 --- xoops2jp/html/class/xoopsform/simpleform.php:1.2.8.2 Sat Sep 23 00:47:21 2006 +++ xoops2jp/html/class/xoopsform/simpleform.php Wed Oct 11 17:14:11 2006 @@ -1,5 +1,5 @@ getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); + + $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoopsform_simpleform.html"); $renderTarget->setAttribute("form", $this); - $renderer =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); return $renderTarget->getResult(); } Index: xoops2jp/html/class/xoopsform/grouppermform.php diff -u xoops2jp/html/class/xoopsform/grouppermform.php:1.2.8.3 xoops2jp/html/class/xoopsform/grouppermform.php:1.2.8.3.2.1 --- xoops2jp/html/class/xoopsform/grouppermform.php:1.2.8.3 Sat Sep 23 00:47:21 2006 +++ xoops2jp/html/class/xoopsform/grouppermform.php Wed Oct 11 17:14:11 2006 @@ -1,5 +1,5 @@ addElement($tray); $root =& XCube_Root::getSingleton(); - $renderTarget =& new Legacy_RenderTargetMain(); + $renderSystem =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); + + $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoopsform_grouppermform.html"); + $renderTarget->setAttribute("form", $this); - $renderer =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); return $renderTarget->getResult(); } Index: xoops2jp/html/class/xoopsform/form.php diff -u xoops2jp/html/class/xoopsform/form.php:1.2.8.4 xoops2jp/html/class/xoopsform/form.php:1.2.8.4.2.1 --- xoops2jp/html/class/xoopsform/form.php:1.2.8.4 Sat Sep 23 11:03:09 2006 +++ xoops2jp/html/class/xoopsform/form.php Wed Oct 11 17:14:11 2006 @@ -1,5 +1,5 @@ getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); + + $renderTarget =& $renderSystem->createRenderTarget(); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoopsform_opt_validationjs.html"); $renderTarget->setAttribute('form', $this); $renderTarget->setAttribute('withtags', $withtags); @@ -392,8 +394,7 @@ $renderTarget->setAttribute('required', $required); $renderTarget->setAttribute('required_count', $reqcount); - $renderer =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); return $renderTarget->getResult(); Index: xoops2jp/html/class/xoopsform/formpassword.php diff -u xoops2jp/html/class/xoopsform/formpassword.php:1.2.8.2 xoops2jp/html/class/xoopsform/formpassword.php:1.2.8.2.2.1 --- xoops2jp/html/class/xoopsform/formpassword.php:1.2.8.2 Sat Sep 23 00:47:21 2006 +++ xoops2jp/html/class/xoopsform/formpassword.php Wed Oct 11 17:14:11 2006 @@ -1,5 +1,5 @@ getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); + + $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoopsform_password.html"); $renderTarget->setAttribute("element", $this); - $renderer =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); return $renderTarget->getResult(); } Index: xoops2jp/html/class/xoopsform/formelementtray.php diff -u xoops2jp/html/class/xoopsform/formelementtray.php:1.2.8.2 xoops2jp/html/class/xoopsform/formelementtray.php:1.2.8.2.2.1 --- xoops2jp/html/class/xoopsform/formelementtray.php:1.2.8.2 Sat Sep 23 00:47:21 2006 +++ xoops2jp/html/class/xoopsform/formelementtray.php Wed Oct 11 17:14:11 2006 @@ -1,5 +1,5 @@ getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); + + $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoopsform_elementtray.html"); $renderTarget->setAttribute("tray", $this); - $renderer =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); return $renderTarget->getResult(); } Index: xoops2jp/html/class/xoopsform/formbutton.php diff -u xoops2jp/html/class/xoopsform/formbutton.php:1.2.8.2 xoops2jp/html/class/xoopsform/formbutton.php:1.2.8.2.2.1 --- xoops2jp/html/class/xoopsform/formbutton.php:1.2.8.2 Sat Sep 23 00:47:21 2006 +++ xoops2jp/html/class/xoopsform/formbutton.php Wed Oct 11 17:14:11 2006 @@ -1,5 +1,5 @@ getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); + + $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoopsform_button.html"); $renderTarget->setAttribute("element", $this); - $renderer =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); return $renderTarget->getResult(); } Index: xoops2jp/html/class/xoopsform/tableform.php diff -u xoops2jp/html/class/xoopsform/tableform.php:1.2.8.2 xoops2jp/html/class/xoopsform/tableform.php:1.2.8.2.2.1 --- xoops2jp/html/class/xoopsform/tableform.php:1.2.8.2 Sat Sep 23 00:47:21 2006 +++ xoops2jp/html/class/xoopsform/tableform.php Wed Oct 11 17:14:11 2006 @@ -1,5 +1,5 @@ getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); + + $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoopsform_tableform.html"); $renderTarget->setAttribute("form", $this); - $renderer =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); return $renderTarget->getResult(); } Index: xoops2jp/html/class/xoopsform/formdhtmltextarea.php diff -u xoops2jp/html/class/xoopsform/formdhtmltextarea.php:1.2.8.6 xoops2jp/html/class/xoopsform/formdhtmltextarea.php:1.2.8.6.2.1 --- xoops2jp/html/class/xoopsform/formdhtmltextarea.php:1.2.8.6 Tue Sep 26 13:33:57 2006 +++ xoops2jp/html/class/xoopsform/formdhtmltextarea.php Wed Oct 11 17:14:11 2006 @@ -1,5 +1,5 @@ getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); + + $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoopsform_dhtmltextarea.html"); $renderTarget->setAttribute("element", $this); - $renderer =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); $ret = $renderTarget->getResult(); $ret .= $this->_renderSmileys(); @@ -112,15 +113,15 @@ $smilesArr =& $handler->getObjects(new Criteria('display', 1)); $root =& XCube_Root::getSingleton(); - $renderTarget =& new Legacy_RenderTargetMain(); + $renderSystem =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); + $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoopsform_opt_smileys.html"); $renderTarget->setAttribute("element", $this); $renderTarget->setAttribute("smilesArr", $smilesArr); - $renderer =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); return $renderTarget->getResult(); } Index: xoops2jp/html/class/xoopsform/formradio.php diff -u xoops2jp/html/class/xoopsform/formradio.php:1.2.8.2 xoops2jp/html/class/xoopsform/formradio.php:1.2.8.2.2.1 --- xoops2jp/html/class/xoopsform/formradio.php:1.2.8.2 Sat Sep 23 00:47:21 2006 +++ xoops2jp/html/class/xoopsform/formradio.php Wed Oct 11 17:14:11 2006 @@ -1,5 +1,5 @@ getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); + + $renderTarget =& $renderSystem->createRenderTarget(); - $renderTarget->setModuleName("base"); + $renderTarget->setAttribute('legacy_module', 'base'); $renderTarget->setTemplateName("legacy_xoopsform_radio.html"); $renderTarget->setAttribute("element", $this); - $renderer =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); return $renderTarget->getResult(); } From minahito @ users.sourceforge.jp Wed Oct 11 17:17:43 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 11 Oct 2006 17:17:43 +0900 Subject: [xoops-cvslog 4933] CVS update: xoops2jp/html/core Message-ID: <20061011081743.3DC6A2AC01D@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_RenderSystem.class.php diff -u xoops2jp/html/core/XCube_RenderSystem.class.php:1.1.2.1 xoops2jp/html/core/XCube_RenderSystem.class.php:1.1.2.2 --- xoops2jp/html/core/XCube_RenderSystem.class.php:1.1.2.1 Fri Sep 29 17:13:22 2006 +++ xoops2jp/html/core/XCube_RenderSystem.class.php Wed Oct 11 17:17:43 2006 @@ -1,7 +1,7 @@ mName; } - function setModuleName($name) - { - $this->mModuleName = $name; - } - - function getModuleName() - { - return $this->mModuleName; - } - function setTemplateName($name) { $this->mTemplateName = $name; @@ -121,19 +114,23 @@ /** * Set render-target type. * @param $type int Use constants that are defined by us. + * @deprecated */ function setType($type) { $this->mType = $type; + $this->setAttribute('legacy_buffertype', $type); } /** * Return render-target type. * @return int + * @deprecated */ function getType() { - return $this->mType; + return $this->getAttribute('legacy_buffertype', $type); + //return $this->mType; } /** @@ -142,7 +139,6 @@ function reset() { $this->setTemplateName(null); - $this->setModuleName(null); unset($this->mAttributes); $this->mAttributes = array(); $this->mRenderBuffer = null; @@ -181,14 +177,11 @@ /** * Create an object of the render-target, and return it. * - * @param int $type The number which shows the type of the render-target. Use constants. * @return XCube_RenderTarget */ - function &createRenderTarget($type = XCUBE_RENDER_TARGET_TYPE_MAIN) + function &createRenderTarget() { $renderTarget =& new XCube_RenderTarget(); - $renderTarget->setType($type); - return $renderTarget; } From nobunobu @ users.sourceforge.jp Thu Oct 12 00:18:37 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Thu, 12 Oct 2006 00:18:37 +0900 Subject: [xoops-cvslog 4934] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061011151837.623F52AC0F4@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/formfile.php diff -u xoops2jp/html/class/xoopsform/formfile.php:1.2.8.2.2.1 xoops2jp/html/class/xoopsform/formfile.php:1.2.8.2.2.2 --- xoops2jp/html/class/xoopsform/formfile.php:1.2.8.2.2.1 Wed Oct 11 17:14:11 2006 +++ xoops2jp/html/class/xoopsform/formfile.php Thu Oct 12 00:18:37 2006 @@ -1,5 +1,5 @@ setTemplateName("legacy_xoopsform_file.html"); $renderTarget->setAttribute("element", $this); - $renderer->renderWithTarget($renderTarget); + $renderSystem->renderWithTarget($renderTarget); return $renderTarget->getResult(); } From nobunobu @ users.sourceforge.jp Thu Oct 12 00:19:02 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Thu, 12 Oct 2006 00:19:02 +0900 Subject: [xoops-cvslog 4935] CVS update: xoops2jp/html/modules/base/templates Message-ID: <20061011151902.342702AC0F4@users.sourceforge.jp> Index: xoops2jp/html/modules/base/templates/legacy_xoopsform_elementtray.html diff -u xoops2jp/html/modules/base/templates/legacy_xoopsform_elementtray.html:1.1.2.2 xoops2jp/html/modules/base/templates/legacy_xoopsform_elementtray.html:1.1.2.2.2.1 --- xoops2jp/html/modules/base/templates/legacy_xoopsform_elementtray.html:1.1.2.2 Sat Sep 23 17:42:21 2006 +++ xoops2jp/html/modules/base/templates/legacy_xoopsform_elementtray.html Thu Oct 12 00:19:02 2006 @@ -3,7 +3,7 @@ <{$tray->getDelimeter()}> <{/if}> <{if is_object($element) }> - <{if $element->getCaption != ''}> + <{if $element->getCaption() != ''}> <{$element->getCaption()}>  <{/if}> <{$element->render()}> From minahito @ users.sourceforge.jp Thu Oct 12 20:00:26 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 20:00:26 +0900 Subject: [xoops-cvslog 4936] CVS update: xoops2jp/html/class/smarty/plugins Message-ID: <20061012110026.3927D2AC220@users.sourceforge.jp> Index: xoops2jp/html/class/smarty/plugins/function.xoops_explaceholder.php diff -u /dev/null xoops2jp/html/class/smarty/plugins/function.xoops_explaceholder.php:1.1.2.1 --- /dev/null Thu Oct 12 20:00:26 2006 +++ xoops2jp/html/class/smarty/plugins/function.xoops_explaceholder.php Thu Oct 12 20:00:26 2006 @@ -0,0 +1,32 @@ + + * ------------------------------------------------------------- + */ +function smarty_function_xoops_explaceholder($params, &$smarty) +{ + $buf = null; + + if (isset($params['control'])) { + XCube_DelegateUtils::call('Legacy.Event.Explaceholder.Get.' . $params['control'], new XCube_Ref($buf), $params); + + if ($buf === null) { + XCube_DelegateUtils::call('Legacy.Event.Explaceholder.Get', new XCube_Ref($buf), $params['control'], $params); + } + } + + return $buf; +} + +?> From minahito @ users.sourceforge.jp Thu Oct 12 20:00:35 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 20:00:35 +0900 Subject: [xoops-cvslog 4937] CVS update: xoops2jp/html/class/smarty/plugins Message-ID: <20061012110035.EDE552AC220@users.sourceforge.jp> Index: xoops2jp/html/class/smarty/plugins/function.xoops_pagenavi.php diff -u xoops2jp/html/class/smarty/plugins/function.xoops_pagenavi.php:1.1.2.3 xoops2jp/html/class/smarty/plugins/function.xoops_pagenavi.php:1.1.2.3.2.1 --- xoops2jp/html/class/smarty/plugins/function.xoops_pagenavi.php:1.1.2.3 Fri Jan 27 17:23:38 2006 +++ xoops2jp/html/class/smarty/plugins/function.xoops_pagenavi.php Thu Oct 12 20:00:35 2006 @@ -10,84 +10,70 @@ * Author: minahito * Purpose: the place holder for xoops pagenavi. * Input: pagenavi = - * total = - * current = - * perpage = - * url = * offset = * - * Examples: {xoops_pagenavi total=20 current=3 url="list.php?start="} + * Examples: {xoops_pagenavi pagenavi=$pagenavi} * ------------------------------------------------------------- */ function smarty_function_xoops_pagenavi($params, &$smarty) { - $ret=""; + $ret = ""; - if(isset($params['pagenavi'])&&is_object($params['pagenavi'])) { - $perPage =$params['pagenavi']->getPerpage(); - if ($perPage == 0) { + if (isset($params['pagenavi']) && is_object($params['pagenavi'])) { + + $navi =& $params['pagenavi']; + + $perPage = $navi->getPerpage(); + + $total = $navi->getTotalItems(); + $totalPages = $navi->getTotalPages(); + + if ($totalPages == 0) { return; } - - $total=$params['pagenavi']->getTotal(); - $totalPages = ceil($params['pagenavi']->getTotal() / $perPage); - $url=$params['pagenavi']->getRenderUrl(); - $current=$params['pagenavi']->getStart(); - } - else { - $perPage=isset($params['perpage']) ? intval($params['perpage']) : 20; - if ($perPage == 0) { - return; + + $url = $navi->renderURLForPage(); + $current = $navi->getStart(); + + $offset = isset($params['offset']) ? intval($params['offset']) : 4; + + // + // check prev + // + if($navi->hasPrivPage()) { + $ret .= @sprintf("«", $navi->renderURLForPage($navi->getPrivStart())); } - $total=$params['total']; - $totalPages = ceil($total / $perPage); - $url=$params['url']; - $current=$params['current']; - } - - $offset=isset($params['offset']) ? intval($params['offset']) : 4; - - if($totalPages==0) - return; - - // - // check prev - // - $prev=$current-$perPage; - if($prev>=0) - $ret.=@sprintf("«",$url,$prev); - - - // - // counting - // - $counter=1; - $currentPage=intval(floor(($current+$perPage)/$perPage)); - while($counter<=$totalPages) { - if($counter==$currentPage) { - $ret.=@sprintf("(%d) ",$counter); - } - elseif(($counter>$currentPage-$offset && $counter<$currentPage+$offset) || $counter==1 || $counter==$totalPages) { - if($counter==$totalPages && $currentPage<$totalPages-$offset) { - $ret.="... "; + // + // counting + // + $counter=1; + $currentPage = $navi->getCurrentPage(); + while($counter<=$totalPages) { + if($counter==$currentPage) { + $ret.=@sprintf("(%d) ",$counter); } - $ret .= @sprintf("%d ",$url,($counter-1)*$perPage,$counter); - if($counter==1 && $currentPage>1 + $offset) { - $ret.="... "; + elseif(($counter>$currentPage-$offset && $counter<$currentPage+$offset) || $counter==1 || $counter==$totalPages) { + if($counter==$totalPages && $currentPage<$totalPages-$offset) { + $ret.="... "; + } + $ret .= @sprintf("%d ",$navi->renderURLForPage(($counter-1)*$perPage),$counter); + if($counter==1 && $currentPage>1 + $offset) { + $ret.="... "; + } } + $counter++; + } + + // + // check next + // + $next=$current + $perPage; + if($navi->hasNextPage()) { + $ret.=@sprintf("»",$navi->renderURLForPage($navi->getNextStart())); } - $counter++; } - // - // check next - // - $next=$current + $perPage; - if($total>$next) - $ret.=@sprintf("»",$url,$next); - - print $ret; } From minahito @ users.sourceforge.jp Thu Oct 12 20:00:45 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 20:00:45 +0900 Subject: [xoops-cvslog 4938] CVS update: xoops2jp/html/core Message-ID: <20061012110045.2BB112AC221@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_PageNavigator.class.php diff -u xoops2jp/html/core/XCube_PageNavigator.class.php:1.1.2.2 xoops2jp/html/core/XCube_PageNavigator.class.php:1.1.2.3 --- xoops2jp/html/core/XCube_PageNavigator.class.php:1.1.2.2 Fri Oct 6 20:14:36 2006 +++ xoops2jp/html/core/XCube_PageNavigator.class.php Thu Oct 12 20:00:45 2006 @@ -1,7 +1,7 @@ mUrl = $url; - $this->setTotal($total); $this->mFlags = $flags; - $this->mExtraFetch =& new XCube_Delegate(); + $this->mFetch =& new XCube_Delegate(); + $this->mFetch->add(array(&$this, 'fetchNaviControl')); + + $this->mGetTotalItems =& new XCube_Delegate(); } /** @@ -119,6 +122,11 @@ */ function fetch() { + $this->mFetch->call(new XCube_Ref($this)); + } + + function fetchNaviControl() + { $root =& XCube_Root::getSingleton(); $startKey = $this->getStartKey(); @@ -137,8 +145,6 @@ $this->mPerpage = intval($t_perpage); } } - - $this->mExtraFetch->call(new XCube_Ref($this)); } function addExtra($key, $value) @@ -208,6 +214,56 @@ return $url . $demiliter . $this->getStartKey() . "="; } + function renderUrlForSort() + { + if(count($this->mExtra) > 0) { + $tarr=array(); + + foreach($this->mExtra as $key=>$value) { + $tarr[]=$key."=".urlencode($value); + } + + $tarr[] = $this->getPerpageKey() . "=" . $this->mPerpage; + + if(strpos($this->mUrl,"?")!==false) { + return $this->mUrl."&".implode("&",$tarr); + } + else { + return $this->mUrl."?".implode("&",$tarr); + } + } + + return $this->mUrl; + } + + function renderUrlForPage($page = null) + { + $tarr=array(); + + foreach($this->mExtra as $key=>$value) { + $tarr[]=$key."=".urlencode($value); + } + + foreach($this->mSort as $key=>$value) { + $tarr[]=$key."=".urlencode($value); + } + + $tarr[] = $this->getPerpageKey() . "=" . $this->getPerpage(); + + if ($page !== null) { + $tarr[] = $this->getStartKey() . '=' . intval($page); + } + + if(strpos($this->mUrl,"?")!==false) { + return $this->mUrl."&".implode("&",$tarr); + } + else { + return $this->mUrl."?".implode("&",$tarr); + } + + return $this->mUrl; + } + /** * Return url string for sort. The return value is complete style. */ @@ -226,21 +282,30 @@ return $this->mStart; } - function setTotal($total) + function setTotalItems($total) { $this->mTotal = intval($total); $this->_mIsSpecifiedTotal = true; } - function getTotal() + function getTotalItems() { - if (!$this->_mIsSpecifiedTotal) { - $this->mGetTotal->call(new XCube_Ref($this->mTotal), $this); + if ($this->_mIsSpecifedTotalItems == false) { + $total = 0; + $this->mGetTotalItems->call(new XCube_Ref($total)); + $this->setTotalItems($total); + + $this->_mIsSpecifedTotalItems = true; } return $this->mTotal; } + function getTotalPages() + { + return ceil($this->getTotalItems() / $this->getPerpage()); + } + function setPerpage($perpage) { $this->mPerpage = intval($perpage); @@ -275,6 +340,35 @@ { return $this->mPrefix . "perpage"; } + + function getCurrentPage() + { + return intval(floor(($this->getStart() + $this->getPerpage()) / $this->getPerpage())); + } + + function hasPrivPage() + { + return ($this->getStart() - $this->getPerpage()) >= 0; + } + + function getPrivStart() + { + $prev = $this->getStart() - $this->getPerpage(); + + return ($prev > 0) ? $prev : 0; + } + + function hasNextPage() + { + return $this->getTotalItems() > ($this->getStart() + $this->getPerpage()); + } + + function getNextStart() + { + $next = $this->getStart() + $this->getPerpage(); + + return ($this->getTotalItems() > $next) ? $next : 0; + } } ?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Oct 12 20:01:07 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 20:01:07 +0900 Subject: [xoops-cvslog 4939] CVS update: xoops2jp/html/include Message-ID: <20061012110107.DB0F42AC222@users.sourceforge.jp> Index: xoops2jp/html/include/cp_header.php diff -u xoops2jp/html/include/cp_header.php:1.2.8.5.2.1 xoops2jp/html/include/cp_header.php:1.2.8.5.2.2 --- xoops2jp/html/include/cp_header.php:1.2.8.5.2.1 Thu Oct 5 18:06:10 2006 +++ xoops2jp/html/include/cp_header.php Thu Oct 12 20:01:07 2006 @@ -1,7 +1,7 @@ mController->setStrategy($strategy); $root->mController->setupModuleContext(); +$root->mController->_mStrategy->setupModuleLanguage(); //< Umm... // // TODO Index: xoops2jp/html/include/cp_functions.php diff -u xoops2jp/html/include/cp_functions.php:1.2.8.4.2.1 xoops2jp/html/include/cp_functions.php:1.2.8.4.2.2 --- xoops2jp/html/include/cp_functions.php:1.2.8.4.2.1 Thu Oct 5 18:06:10 2006 +++ xoops2jp/html/include/cp_functions.php Thu Oct 12 20:01:07 2006 @@ -1,5 +1,5 @@ mController->setStrategy($strategy); $root->mController->setupModuleContext(); + $root->mController->_mStrategy->setupModuleLanguage(); //< Umm... require_once XOOPS_ROOT_PATH."/header.php"; } From minahito @ users.sourceforge.jp Thu Oct 12 20:01:30 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 20:01:30 +0900 Subject: [xoops-cvslog 4940] CVS update: xoops2jp/html/modules/base/actions Message-ID: <20061012110130.2F3D52AC221@users.sourceforge.jp> Index: xoops2jp/html/modules/base/actions/ImageListAction.class.php diff -u xoops2jp/html/modules/base/actions/ImageListAction.class.php:1.1.2.3 xoops2jp/html/modules/base/actions/ImageListAction.class.php:1.1.2.3.2.1 --- xoops2jp/html/modules/base/actions/ImageListAction.class.php:1.1.2.3 Thu Jul 20 17:19:34 2006 +++ xoops2jp/html/modules/base/actions/ImageListAction.class.php Thu Oct 12 20:01:30 2006 @@ -24,9 +24,9 @@ return $handler; } - function &_getFilterForm(&$navi) + function &_getFilterForm() { - $filter =& new Legacy_ImageFilterForm($navi); + $filter =& new Legacy_ImageFilterForm($this->_getNavi(), $this->_getHandler()); return $filter; } @@ -56,7 +56,7 @@ } $render->setAttribute("objects", $this->mObjects); - $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); $render->setAttribute('imgcatId', $this->mImgcatId); From minahito @ users.sourceforge.jp Thu Oct 12 20:01:45 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 20:01:45 +0900 Subject: [xoops-cvslog 4941] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20061012110145.17E732AC220@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/ActSearchAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/ActSearchAction.class.php:1.1.2.10.2.1 xoops2jp/html/modules/base/admin/actions/ActSearchAction.class.php:1.1.2.10.2.2 --- xoops2jp/html/modules/base/admin/actions/ActSearchAction.class.php:1.1.2.10.2.1 Thu Sep 28 14:01:28 2006 +++ xoops2jp/html/modules/base/admin/actions/ActSearchAction.class.php Thu Oct 12 20:01:44 2006 @@ -2,7 +2,6 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_BASE_PATH."/class/Legacy_ModuleAdapter.class.php"; require_once XOOPS_BASE_PATH."/admin/forms/ActionSearchForm.class.php"; class Legacy_ActionSearchArgs @@ -89,6 +88,7 @@ parent::Legacy_Action($flag); $this->mSearchAction =& new XCube_Delegate(); + $this->mSearchAction->add(array(&$this, 'defaultSearch')); $this->mSearchAction->register('Legacy_ActSearchAction.SearchAction'); } @@ -105,21 +105,24 @@ $perm = $db->prefix("group_permission"); $groups = implode(",", $xoopsUser->getGroups()); - $sql = "SELECT ${mod}.* FROM ${mod},${perm} " . - "WHERE ${mod}.mid=${perm}.gperm_itemid AND ${perm}.gperm_name='module_admin' AND ${perm}.gperm_groupid IN (${groups}) " . - "ORDER BY ${mod}.weight"; - - $result = $db->query($sql); - while ($row = $db->fetchArray($result)) { - $xoopsModule =& new XoopsModule(); - $xoopsModule->assignVars($row); - - $adapter =& new Legacy_ModuleAdapter($xoopsModule); - $adapter->prepareAdmin($controller); + // + // FIXME ActiveCheck + // +// $sql = "SELECT ${mod}.* FROM ${mod},${perm} " . +// "WHERE ${perm}.gperm_modid=1 AND ${mod}.mid=${perm}.gperm_itemid AND ${perm}.gperm_name='module_admin' AND ${perm}.gperm_groupid IN (${groups}) " . +// "ORDER BY ${mod}.weight"; + + $handler =& xoops_gethandler('groupperm'); + $midArr = $handler->getItemIds('module_admin', $xoopsUser->getGroups()); + + $handler =& xoops_gethandler('module'); + foreach ($midArr as $mid) { + $module =& $handler->get($mid); + $adapter =& new Legacy_ModuleAdapter($module); // FIXMED $this->mModules[] =& $adapter; - - unset($xoopsModule); + + unset($module); unset($adapter); } } @@ -153,6 +156,13 @@ } } + function defaultSearch(&$searchArgs) + { + foreach (array_keys($this->mModules) as $key) { + $this->mModules[$key]->searchAction($searchArgs); + } + } + function execute(&$controller, &$xoopsUser) { return $this->getDefaultView($controller, $xoopsUser); From minahito @ users.sourceforge.jp Thu Oct 12 20:02:00 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 20:02:00 +0900 Subject: [xoops-cvslog 4942] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20061012110200.0FB0A2AC220@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/BlockInstallListAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/BlockInstallListAction.class.php:1.1.2.2 xoops2jp/html/modules/base/admin/actions/BlockInstallListAction.class.php:1.1.2.2.2.1 --- xoops2jp/html/modules/base/admin/actions/BlockInstallListAction.class.php:1.1.2.2 Mon Aug 7 20:27:34 2006 +++ xoops2jp/html/modules/base/admin/actions/BlockInstallListAction.class.php Thu Oct 12 20:01:59 2006 @@ -1,7 +1,7 @@ _getPageNavi(), $this->_getHandler()); return $filter; } @@ -41,7 +41,7 @@ } $render->setAttribute("objects", $this->mObjects); - $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); } } From minahito @ users.sourceforge.jp Thu Oct 12 20:02:11 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 20:02:11 +0900 Subject: [xoops-cvslog 4943] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20061012110211.0D83B2AC220@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/ImageListAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/ImageListAction.class.php:1.1.2.4 xoops2jp/html/modules/base/admin/actions/ImageListAction.class.php:1.1.2.4.2.1 --- xoops2jp/html/modules/base/admin/actions/ImageListAction.class.php:1.1.2.4 Tue Aug 8 18:47:17 2006 +++ xoops2jp/html/modules/base/admin/actions/ImageListAction.class.php Thu Oct 12 20:02:10 2006 @@ -1,7 +1,7 @@ _getPageNavi(), $this->_getHandler()); return $filter; } @@ -54,7 +54,7 @@ } $render->setAttribute("objects", $this->mObjects); - $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); $render->setAttribute("category", $this->mCategory); } Index: xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php:1.1.2.8 xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php:1.1.2.8.2.1 --- xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php:1.1.2.8 Tue Aug 8 18:47:04 2006 +++ xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php Thu Oct 12 20:02:10 2006 @@ -1,7 +1,7 @@ _getPageNavi(), $this->_getHandler()); return $filter; } @@ -59,7 +59,7 @@ $render->setTemplateName("comment_list.html"); $render->setAttribute("objects", $this->mObjects); - $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); $render->setAttribute("moduleArr", $moduleArr); $render->setAttribute("statusArr", $statusArr); } Index: xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php:1.1.2.7 xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php:1.1.2.7.2.1 --- xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php:1.1.2.7 Fri Aug 18 20:30:00 2006 +++ xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php Thu Oct 12 20:02:10 2006 @@ -1,7 +1,7 @@ _getPageNavi(), $this->_getHandler()); return $filter; } @@ -76,7 +76,7 @@ } $render->setAttribute("objects", $this->mObjects); - $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); // // Load cache-time pattern objects and set. Index: xoops2jp/html/modules/base/admin/actions/SmilesListAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/SmilesListAction.class.php:1.1.2.3 xoops2jp/html/modules/base/admin/actions/SmilesListAction.class.php:1.1.2.3.2.1 --- xoops2jp/html/modules/base/admin/actions/SmilesListAction.class.php:1.1.2.3 Tue Aug 8 18:47:25 2006 +++ xoops2jp/html/modules/base/admin/actions/SmilesListAction.class.php Thu Oct 12 20:02:10 2006 @@ -1,7 +1,7 @@ _getPageNavi(), $this->_getHandler()); return $filter; } @@ -33,7 +33,7 @@ { $render->setTemplateName("smiles_list.html"); $render->setAttribute("objects", $this->mObjects); - $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); } } Index: xoops2jp/html/modules/base/admin/actions/ModuleListAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/ModuleListAction.class.php:1.1.2.10 xoops2jp/html/modules/base/admin/actions/ModuleListAction.class.php:1.1.2.10.2.1 --- xoops2jp/html/modules/base/admin/actions/ModuleListAction.class.php:1.1.2.10 Fri Aug 18 20:30:00 2006 +++ xoops2jp/html/modules/base/admin/actions/ModuleListAction.class.php Thu Oct 12 20:02:10 2006 @@ -1,7 +1,7 @@ mFilter =& new Legacy_ModuleListFilterForm($this->mNavi); + $this->mFilter =& new Legacy_ModuleListFilterForm(); $this->mFilter->fetch(); - - $moduleHandler =& xoops_gethandler('module'); // dmy $criteria =& new Criteria('mid', 0, '>'); $criteria->setSort($this->mFilter->getSort()); $criteria->setOrder($this->mFilter->getOrder()); + $moduleHandler =& xoops_gethandler('module'); $this->mModuleObjects =& $moduleHandler->getObjects($criteria); return LEGACY_FRAME_VIEW_INDEX; Index: xoops2jp/html/modules/base/admin/actions/ImagecategoryListAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/ImagecategoryListAction.class.php:1.1.2.2 xoops2jp/html/modules/base/admin/actions/ImagecategoryListAction.class.php:1.1.2.2.2.1 --- xoops2jp/html/modules/base/admin/actions/ImagecategoryListAction.class.php:1.1.2.2 Tue Aug 1 19:32:01 2006 +++ xoops2jp/html/modules/base/admin/actions/ImagecategoryListAction.class.php Thu Oct 12 20:02:10 2006 @@ -1,7 +1,7 @@ _getPageNavi(), $this->_getHandler()); return $filter; } @@ -33,7 +33,7 @@ { $render->setTemplateName("imagecategory_list.html"); $render->setAttribute("objects", $this->mObjects); - $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); } } From minahito @ users.sourceforge.jp Thu Oct 12 20:02:52 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 20:02:52 +0900 Subject: [xoops-cvslog 4944] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20061012110252.670982AC219@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/forms/SmilesFilterForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/SmilesFilterForm.class.php:1.1.2.6 xoops2jp/html/modules/base/admin/forms/SmilesFilterForm.class.php:1.1.2.6.2.1 --- xoops2jp/html/modules/base/admin/forms/SmilesFilterForm.class.php:1.1.2.6 Sat Aug 5 15:18:18 2006 +++ xoops2jp/html/modules/base/admin/forms/SmilesFilterForm.class.php Thu Oct 12 20:02:52 2006 @@ -22,32 +22,33 @@ SMILES_SORT_KEY_EMOTION => 'emotion', SMILES_SORT_KEY_DISPLAY => 'display' ); + + function getDefaultSortKey() + { + return SMILES_SORT_KEY_DEFAULT; + } function fetch() { - $this->mSort = isset($_REQUEST['sort']) ? intval(xoops_getrequest('sort')) : SMILES_SORT_KEY_DEFAULT; - - if (!isset($this->mSortKeys[abs($this->mSort)])) { - $this->mSort = SMILES_SORT_KEY_DEFAULT; - } + parent::fetch(); if (isset($_REQUEST['code'])) { - $this->_mNavi->addExtra('code', xoops_getrequest('code')); + $this->mNavi->addExtra('code', xoops_getrequest('code')); $this->_mCriteria->add(new Criteria('code', xoops_getrequest('code'))); } if (isset($_REQUEST['smile_url'])) { - $this->_mNavi->addExtra('smile_url', xoops_getrequest('smile_url')); + $this->mNavi->addExtra('smile_url', xoops_getrequest('smile_url')); $this->_mCriteria->add(new Criteria('smile_url', xoops_getrequest('smile_url'))); } if (isset($_REQUEST['emotion'])) { - $this->_mNavi->addExtra('emotion', xoops_getrequest('emotion')); + $this->mNavi->addExtra('emotion', xoops_getrequest('emotion')); $this->_mCriteria->add(new Criteria('emotion', xoops_getrequest('emotion'))); } if (isset($_REQUEST['display'])) { - $this->_mNavi->addExtra('display', xoops_getrequest('display')); + $this->mNavi->addExtra('display', xoops_getrequest('display')); $this->_mCriteria->add(new Criteria('display', xoops_getrequest('display'))); } Index: xoops2jp/html/modules/base/admin/forms/ImagecategoryFilterForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/ImagecategoryFilterForm.class.php:1.1.2.2 xoops2jp/html/modules/base/admin/forms/ImagecategoryFilterForm.class.php:1.1.2.2.2.1 --- xoops2jp/html/modules/base/admin/forms/ImagecategoryFilterForm.class.php:1.1.2.2 Tue Aug 1 19:40:05 2006 +++ xoops2jp/html/modules/base/admin/forms/ImagecategoryFilterForm.class.php Thu Oct 12 20:02:52 2006 @@ -1,7 +1,7 @@ 'imgcat_storetype' ); - function fetch() + function getDefaultSortKey() { - $this->mSort = isset($_REQUEST['sort']) ? intval(xoops_getrequest('sort')) : IMAGECATEGORY_SORT_KEY_DEFAULT; - - if (!isset($this->mSortKeys[abs($this->mSort)])) { - $this->mSort = IMAGECATEGORY_SORT_KEY_DEFAULT; - } + return IMAGECATEGORY_SORT_KEY_DEFAULT; + } + function fetch() + { + parent::fetch(); + if (isset($_REQUEST['imgcat_name'])) { - $this->_mNavi->addExtra('imgcat_name', xoops_getrequest('imgcat_name')); + $this->mNavi->addExtra('imgcat_name', xoops_getrequest('imgcat_name')); $this->_mCriteria->add(new Criteria('imgcat_name', xoops_getrequest('imgcat_name'))); } if (isset($_REQUEST['imgcat_display'])) { - $this->_mNavi->addExtra('imgcat_display', xoops_getrequest('imgcat_display')); + $this->mNavi->addExtra('imgcat_display', xoops_getrequest('imgcat_display')); $this->_mCriteria->add(new Criteria('imgcat_display', xoops_getrequest('imgcat_display'))); } if (isset($_REQUEST['imgcat_type'])) { - $this->_mNavi->addExtra('imgcat_type', xoops_getrequest('imgcat_type')); + $this->mNavi->addExtra('imgcat_type', xoops_getrequest('imgcat_type')); $this->_mCriteria->add(new Criteria('imgcat_type', xoops_getrequest('imgcat_type'))); } if (isset($_REQUEST['imgcat_storetype'])) { - $this->_mNavi->addExtra('imgcat_storetype', xoops_getrequest('imgcat_storetype')); + $this->mNavi->addExtra('imgcat_storetype', xoops_getrequest('imgcat_storetype')); $this->_mCriteria->add(new Criteria('imgcat_storetype', xoops_getrequest('imgcat_storetype'))); } Index: xoops2jp/html/modules/base/admin/forms/CommentFilterForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/CommentFilterForm.class.php:1.1.2.7 xoops2jp/html/modules/base/admin/forms/CommentFilterForm.class.php:1.1.2.7.2.1 --- xoops2jp/html/modules/base/admin/forms/CommentFilterForm.class.php:1.1.2.7 Tue Aug 1 19:39:11 2006 +++ xoops2jp/html/modules/base/admin/forms/CommentFilterForm.class.php Thu Oct 12 20:02:52 2006 @@ -1,7 +1,7 @@ 'dobr' ); - function fetch() + function getDefaultSortKey() { - $this->mSort = isset($_REQUEST['sort']) ? intval(xoops_getrequest('sort')) : COMMENT_SORT_KEY_DEFAULT; + return COMMENT_SORT_KEY_DEFAULT; + } - if (!isset($this->mSortKeys[abs($this->mSort)])) { - $this->mSort = COMMENT_SORT_KEY_DEFAULT; - } + function fetch() + { + parent::fetch(); if (isset($_REQUEST['com_modid']) && intval(xoops_getrequest('com_modid')) > 0) { - $this->_mNavi->addExtra('com_modid', xoops_getrequest('com_modid')); + $this->mNavi->addExtra('com_modid', xoops_getrequest('com_modid')); $this->_mCriteria->add(new Criteria('com_modid', xoops_getrequest('com_modid'))); } elseif (isset($_REQUEST['dirname'])) { - $this->_mNavi->addExtra('dirname', xoops_getrequest('dirname')); + $this->mNavi->addExtra('dirname', xoops_getrequest('dirname')); $handler =& xoops_gethandler('module'); $module =& $handler->getByDirname(xoops_getrequest('dirname')); @@ -80,22 +81,22 @@ } if (isset($_REQUEST['com_icon'])) { - $this->_mNavi->addExtra('com_icon', xoops_getrequest('com_icon')); + $this->mNavi->addExtra('com_icon', xoops_getrequest('com_icon')); $this->_mCriteria->add(new Criteria('com_icon', xoops_getrequest('com_icon'))); } if (isset($_REQUEST['com_uid'])) { - $this->_mNavi->addExtra('com_uid', xoops_getrequest('com_uid')); + $this->mNavi->addExtra('com_uid', xoops_getrequest('com_uid')); $this->_mCriteria->add(new Criteria('com_uid', xoops_getrequest('com_uid'))); } if (isset($_REQUEST['com_ip'])) { - $this->_mNavi->addExtra('com_ip', xoops_getrequest('com_ip')); + $this->mNavi->addExtra('com_ip', xoops_getrequest('com_ip')); $this->_mCriteria->add(new Criteria('com_ip', xoops_getrequest('com_ip'))); } if (xoops_getrequest('com_status') > 0) { - $this->_mNavi->addExtra('com_status', xoops_getrequest('com_status')); + $this->mNavi->addExtra('com_status', xoops_getrequest('com_status')); $this->_mCriteria->add(new Criteria('com_status', xoops_getrequest('com_status'))); } Index: xoops2jp/html/modules/base/admin/forms/BlockFilterForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/BlockFilterForm.class.php:1.1.2.7 xoops2jp/html/modules/base/admin/forms/BlockFilterForm.class.php:1.1.2.7.2.1 --- xoops2jp/html/modules/base/admin/forms/BlockFilterForm.class.php:1.1.2.7 Tue Aug 1 19:37:25 2006 +++ xoops2jp/html/modules/base/admin/forms/BlockFilterForm.class.php Thu Oct 12 20:02:52 2006 @@ -1,7 +1,7 @@ 'last_modified' ); - function fetch() + function getDefaultSortKey() { - $this->mSort = isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : NEWBLOCKS_SORT_KEY_DEFAULT; - - if (!isset($this->mSortKeys[abs($this->mSort)])) { - $this->mSort = NEWBLOCKS_SORT_KEY_DEFAULT; - } + return NEWBLOCKS_SORT_KEY_DEFAULT; + } + function fetch() + { + parent::fetch(); + if (isset($_REQUEST['mid'])) { - $this->_mNavi->addExtra('mid', xoops_getrequest('mid')); + $this->mNavi->addExtra('mid', xoops_getrequest('mid')); $this->_mCriteria->add(new Criteria('mid', xoops_getrequest('mid'))); } if (isset($_REQUEST['side'])) { - $this->_mNavi->addExtra('side', xoops_getrequest('side')); + $this->mNavi->addExtra('side', xoops_getrequest('side')); $this->_mCriteria->add(new Criteria('side', xoops_getrequest('side'))); } if (isset($_REQUEST['weight'])) { - $this->_mNavi->addExtra('weight', xoops_getrequest('weight')); + $this->mNavi->addExtra('weight', xoops_getrequest('weight')); $this->_mCriteria->add(new Criteria('weight', xoops_getrequest('weight'))); } if (isset($_REQUEST['block_type'])) { - $this->_mNavi->addExtra('block_type', xoops_getrequest('block_type')); + $this->mNavi->addExtra('block_type', xoops_getrequest('block_type')); $this->_mCriteria->add(new Criteria('block_type', xoops_getrequest('block_type'))); } if (isset($_REQUEST['c_type'])) { - $this->_mNavi->addExtra('c_type', xoops_getrequest('c_type')); + $this->mNavi->addExtra('c_type', xoops_getrequest('c_type')); $this->_mCriteria->add(new Criteria('c_type', xoops_getrequest('c_type'))); } if (isset($_REQUEST['dirname'])) { - $this->_mNavi->addExtra('dirname', xoops_getrequest('dirname')); + $this->mNavi->addExtra('dirname', xoops_getrequest('dirname')); $this->_mCriteria->add(new Criteria('dirname', xoops_getrequest('dirname'))); } Index: xoops2jp/html/modules/base/admin/forms/ModuleListFilterForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/ModuleListFilterForm.class.php:1.1.2.6 xoops2jp/html/modules/base/admin/forms/ModuleListFilterForm.class.php:1.1.2.6.2.1 --- xoops2jp/html/modules/base/admin/forms/ModuleListFilterForm.class.php:1.1.2.6 Sun Sep 3 01:20:48 2006 +++ xoops2jp/html/modules/base/admin/forms/ModuleListFilterForm.class.php Thu Oct 12 20:02:52 2006 @@ -1,7 +1,7 @@ "hascomments" ); - function fetch() + function Legacy_ModuleListFilterForm() { - $this->mSort = isset($_REQUEST['sort']) ? intval(xoops_getrequest('sort')) : MODULE_SORT_KEY_DEFAULT; + $this->_mCriteria =& new CriteriaCompo(); + } - if (!isset($this->mSortKeys[abs($this->mSort)])) { - $this->mSort = MODULE_SORT_KEY_DEFAULT; - } + function getDefaultSortKey() + { + return MODULE_SORT_KEY_DEFAULT; + } + + function fetch() + { + $this->fetchSort(); if (isset($_REQUEST['special'])) { $this->mSpecial = intval(xoops_getreqeust('special')); Index: xoops2jp/html/modules/base/admin/forms/ImageFilterForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/ImageFilterForm.class.php:1.1.2.2 xoops2jp/html/modules/base/admin/forms/ImageFilterForm.class.php:1.1.2.2.2.1 --- xoops2jp/html/modules/base/admin/forms/ImageFilterForm.class.php:1.1.2.2 Tue Aug 1 19:40:18 2006 +++ xoops2jp/html/modules/base/admin/forms/ImageFilterForm.class.php Thu Oct 12 20:02:52 2006 @@ -28,21 +28,23 @@ IMAGE_SORT_KEY_IMAGE_WEIGHT => 'image_weight', IMAGE_SORT_KEY_IMGCAT_ID => 'imgcat_id' ); - function fetch() + + function getDefaultSortKey() { - $this->mSort = isset($_REQUEST['sort']) ? intval(xoops_getrequest('sort')) : IMAGE_SORT_KEY_DEFAULT; + return IMAGE_SORT_KEY_DEFAULT; + } - if (!isset($this->mSortKeys[abs($this->mSort)])) { - $this->mSort = IMAGE_SORT_KEY_DEFAULT; - } + function fetch() + { + parent::fetch(); if (isset($_REQUEST['image_display'])) { - $this->_mNavi->addExtra('image_display', xoops_getrequest('image_display')); + $this->mNavi->addExtra('image_display', xoops_getrequest('image_display')); $this->_mCriteria->add(new Criteria('image_display', xoops_getrequest('image_display'))); } if (isset($_REQUEST['imgcat_id'])) { - $this->_mNavi->addExtra('imgcat_id', xoops_getrequest('imgcat_id')); + $this->mNavi->addExtra('imgcat_id', xoops_getrequest('imgcat_id')); $this->_mCriteria->add(new Criteria('imgcat_id', xoops_getrequest('imgcat_id'))); } From minahito @ users.sourceforge.jp Thu Oct 12 20:03:01 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 20:03:01 +0900 Subject: [xoops-cvslog 4945] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20061012110301.31EC62AC219@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/block_list.html diff -u xoops2jp/html/modules/base/admin/templates/block_list.html:1.1.2.25 xoops2jp/html/modules/base/admin/templates/block_list.html:1.1.2.25.2.1 --- xoops2jp/html/modules/base/admin/templates/block_list.html:1.1.2.25 Wed Sep 6 17:26:41 2006 +++ xoops2jp/html/modules/base/admin/templates/block_list.html Thu Oct 12 20:03:00 2006 @@ -29,27 +29,27 @@
<{$smarty.const._AD_BASE_LANG_IMGCAT_ID}>"> - -
<{$smarty.const._AD_BASE_LANG_IMGCAT_ID}>"> + +
Index: xoops2jp/html/modules/base/admin/templates/preference_edit.html diff -u xoops2jp/html/modules/base/admin/templates/preference_edit.html:1.1.2.22 xoops2jp/html/modules/base/admin/templates/preference_edit.html:1.1.2.22.2.1 --- xoops2jp/html/modules/base/admin/templates/preference_edit.html:1.1.2.22 Sun Sep 24 15:53:12 2006 +++ xoops2jp/html/modules/base/admin/templates/preference_edit.html Sat Oct 7 15:51:23 2006 @@ -48,7 +48,7 @@ <{foreach item=config from=$objectArr}>
-
<{$config->getTitle()|escape}> +
<{$config->getTitle()}> <{if $config->get('conf_desc') != null}>

<{$config->getDesc()}>

<{/if}> Index: xoops2jp/html/modules/base/admin/templates/imagecategory_list.html diff -u xoops2jp/html/modules/base/admin/templates/imagecategory_list.html:1.1.2.13 xoops2jp/html/modules/base/admin/templates/imagecategory_list.html:1.1.2.13.2.1 --- xoops2jp/html/modules/base/admin/templates/imagecategory_list.html:1.1.2.13 Wed Sep 20 11:55:58 2006 +++ xoops2jp/html/modules/base/admin/templates/imagecategory_list.html Sat Oct 7 15:51:23 2006 @@ -53,13 +53,18 @@
<{$obj->get('imgcat_maxwidth')|number_format}> <{$obj->get('imgcat_maxheight')|number_format}> - <{if $obj->getShow('imgcat_display') == 1}><{$smarty.const._YES}><{else}><{$smarty.const._YES}><{/if}> + <{if $obj->get('imgcat_display') == 1}> + <{$smarty.const._YES}> + <{else}> + <{$smarty.const._NO}> + <{/if}> <{$obj->getShow('imgcat_weight')}> <{$obj->getShow('imgcat_storetype')}> <{$obj->getImageCount()|escape}> " alt="<{$smarty.const._AD_BASE_LANG_LIST}>" title="<{$smarty.const._AD_BASE_LANG_LIST}>" /> + " alt="<{$smarty.const._AD_BASE_LANG_IMAGE_NEW}>" title="<{$smarty.const._AD_BASE_LANG_IMAGE_NEW}>" /> " alt="<{$smarty.const._EDIT}>" title="<{$smarty.const._EDIT}>" /> " alt="<{$smarty.const._DELETE}>" title="<{$smarty.const._DELETE}>" />
<{$mid}> - <{if $actionForm->get('name',$mid) == $moduleObjects[$mid]->getProperty('name')}> + <{if $actionForm->get('name',$mid) == $moduleObjects[$mid]->get('name')}> <{$actionForm->get('name',$mid)|escape}> <{else}> (<{$moduleObjects[$mid]->getShow('name')}>) » <{$actionForm->get('name',$mid)|escape}> <{/if}> - <{if $actionForm->get('weight',$mid) == $moduleObjects[$mid]->getProperty('weight')}> + <{if $actionForm->get('weight',$mid) == $moduleObjects[$mid]->get('weight')}> <{$actionForm->get('weight',$mid)|escape}> <{else}> (<{$moduleObjects[$mid]->getShow('weight')}>) » <{$actionForm->get('weight',$mid)|escape}> <{/if}> - <{if $actionForm->get('isactive',$mid)|intval == $moduleObjects[$mid]->getProperty('isactive')}> + <{if $actionForm->get('isactive',$mid)|intval == $moduleObjects[$mid]->get('isactive')}> <{$smarty.const._AD_BASE_LANG_NO_CHANGE}> <{else}> - (<{if $moduleObjects[$mid]->getProperty('isactive') == 1 }> + (<{if $moduleObjects[$mid]->get('isactive') == 1 }> <{$smarty.const._AD_BASE_LANG_ISACTIVE}> <{else}> <{$smarty.const._AD_BASE_LANG_DEACTIVATE}> From minahito @ users.sourceforge.jp Sat Oct 7 18:25:40 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 18:25:40 +0900 Subject: [xoops-cvslog 4894] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20061007092540.4CC002AC016@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.10 xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.10.2.1 --- xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.10 Wed Aug 23 10:31:24 2006 +++ xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php Sat Oct 7 18:25:40 2006 @@ -1,7 +1,7 @@ mObject->loadGroup(); - $this->mObject->loadBmodule(); - } - function _setupActionForm() { $this->mActionForm =& new Legacy_BlockEditForm(); @@ -67,6 +60,9 @@ return LEGACY_FRAME_VIEW_ERROR; } + $this->mObject->loadGroup(); + $this->mObject->loadBmodule(); + return parent::getDefaultView($controller, $xoopsUser); } From minahito @ users.sourceforge.jp Sat Oct 7 18:26:15 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 18:26:15 +0900 Subject: [xoops-cvslog 4895] CVS update: xoops2jp/html/core Message-ID: <20061007092615.9BFBE2AC022@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_Property.class.php diff -u xoops2jp/html/core/XCube_Property.class.php:1.1.2.3 xoops2jp/html/core/XCube_Property.class.php:1.1.2.4 --- xoops2jp/html/core/XCube_Property.class.php:1.1.2.3 Sat Oct 7 17:43:12 2006 +++ xoops2jp/html/core/XCube_Property.class.php Sat Oct 7 18:26:15 2006 @@ -1,7 +1,7 @@ _set($t_key, $t_value); } } - else { + elseif ($arg1 !== null && $arg2 !== null) { $this->_set($arg1, $arg2); } } From minahito @ users.sourceforge.jp Sat Oct 7 18:26:31 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 18:26:31 +0900 Subject: [xoops-cvslog 4896] CVS update: xoops2jp/html/core Message-ID: <20061007092631.6E5F32AC016@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_ActionForm.class.php diff -u xoops2jp/html/core/XCube_ActionForm.class.php:1.1.2.2 xoops2jp/html/core/XCube_ActionForm.class.php:1.1.2.3 --- xoops2jp/html/core/XCube_ActionForm.class.php:1.1.2.2 Sat Oct 7 16:45:15 2006 +++ xoops2jp/html/core/XCube_ActionForm.class.php Sat Oct 7 18:26:31 2006 @@ -1,7 +1,7 @@ mContext->mRequest->getRequest($name); - if (!$this->mFormProperties[$name]->isArray() && !is_array($value)) { - $this->mFormProperties[$name]->set($value); - } - elseif ($this->mFormProperties[$name]->isArray() && is_array($value)) { - $this->mFormProperties[$name]->set($value); - } + $this->mFormProperties[$name]->set($value); } - $methodName = "fetch" . ucfirst($name); if (method_exists($this, $methodName)) { // call_user_func(array($this,$methodName)); From minahito @ users.sourceforge.jp Sat Oct 7 18:52:22 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 18:52:22 +0900 Subject: [xoops-cvslog 4897] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061007095222.ADFB22AC016@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_Module.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Module.class.php:1.1.2.1 xoops2jp/html/modules/base/kernel/Legacy_Module.class.php:1.1.2.2 --- xoops2jp/html/modules/base/kernel/Legacy_Module.class.php:1.1.2.1 Fri Oct 6 18:48:22 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Module.class.php Sat Oct 7 18:52:22 2006 @@ -1,7 +1,7 @@ mXoopsModule)) { //< FIXME + return false; + } + return $this->mXoopsModule->get('isactive') ? true : false; } From minahito @ users.sourceforge.jp Sat Oct 7 19:03:17 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 19:03:17 +0900 Subject: [xoops-cvslog 4898] CVS update: xoops2jp/html/modules/base/blocks Message-ID: <20061007100317.4B94E2AC016@users.sourceforge.jp> Index: xoops2jp/html/modules/base/blocks/legacy_themes.php diff -u xoops2jp/html/modules/base/blocks/legacy_themes.php:1.1.2.1 xoops2jp/html/modules/base/blocks/legacy_themes.php:1.1.2.1.2.1 --- xoops2jp/html/modules/base/blocks/legacy_themes.php:1.1.2.1 Wed Aug 2 18:37:38 2006 +++ xoops2jp/html/modules/base/blocks/legacy_themes.php Sat Oct 7 19:03:17 2006 @@ -2,6 +2,11 @@ function b_legacy_themes_show($options) { global $xoopsConfig; + + if (count($xoopsConfig['theme_set_allowed']) == 0) { + return null; + } + $theme_options = array(); foreach ($xoopsConfig['theme_set_allowed'] as $theme) { $theme_option['name'] = $theme; @@ -12,6 +17,7 @@ } $theme_options[] = $theme_option; } + $block = array(); $block['count'] = count($xoopsConfig['theme_set_allowed']); $block['mode'] = $options[0]; From minahito @ users.sourceforge.jp Sat Oct 7 23:15:34 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 7 Oct 2006 23:15:34 +0900 Subject: [xoops-cvslog 4899] CVS update: xoops2jp/html/modules/user/admin/templates Message-ID: <20061007141534.0E3592AC073@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/templates/user_view.html diff -u xoops2jp/html/modules/user/admin/templates/user_view.html:1.1.2.7 xoops2jp/html/modules/user/admin/templates/user_view.html:1.1.2.7.2.1 --- xoops2jp/html/modules/user/admin/templates/user_view.html:1.1.2.7 Sat Sep 23 12:11:15 2006 +++ xoops2jp/html/modules/user/admin/templates/user_view.html Sat Oct 7 23:15:33 2006 @@ -122,7 +122,11 @@
<{$smarty.const._MD_USER_LANG_ATTACHSIG}> - <{$object->getShow('attachsig')}> + <{if $object->get('attachesig')}> + <{$smarty.const._YES}> + <{else}> + <{$smarty.const._NO}> + <{/if}>
+ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> <{foreach item=obj from=$objects}> Index: xoops2jp/html/modules/base/admin/templates/blockinstall_list.html diff -u xoops2jp/html/modules/base/admin/templates/blockinstall_list.html:1.1.2.18 xoops2jp/html/modules/base/admin/templates/blockinstall_list.html:1.1.2.18.2.1 --- xoops2jp/html/modules/base/admin/templates/blockinstall_list.html:1.1.2.18 Mon Sep 4 17:36:16 2006 +++ xoops2jp/html/modules/base/admin/templates/blockinstall_list.html Thu Oct 12 20:03:01 2006 @@ -17,17 +17,17 @@
<{$smarty.const._AD_BASE_LANG_BID}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_BLOCK_MOD}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_TITLE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_SIDE}> - " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
+ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_LCR}>
<{$smarty.const._AD_BASE_LANG_WEIGHT}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_BCACHETIME}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_LAST_MODIFIED}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_CONTROL}>
+ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> <{foreach item=obj from=$objects}> Index: xoops2jp/html/modules/base/admin/templates/image_list.html diff -u xoops2jp/html/modules/base/admin/templates/image_list.html:1.1.2.16.2.1 xoops2jp/html/modules/base/admin/templates/image_list.html:1.1.2.16.2.2 --- xoops2jp/html/modules/base/admin/templates/image_list.html:1.1.2.16.2.1 Sat Oct 7 15:51:23 2006 +++ xoops2jp/html/modules/base/admin/templates/image_list.html Thu Oct 12 20:03:01 2006 @@ -13,24 +13,24 @@
<{$smarty.const._AD_BASE_LANG_BID}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_BLOCK_MOD}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_TITLE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_TEMPLATE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_CONTROL}>
+ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> <{foreach item=obj from=$objects}> Index: xoops2jp/html/modules/base/admin/templates/comment_list.html diff -u xoops2jp/html/modules/base/admin/templates/comment_list.html:1.1.2.21 xoops2jp/html/modules/base/admin/templates/comment_list.html:1.1.2.21.2.1 --- xoops2jp/html/modules/base/admin/templates/comment_list.html:1.1.2.21 Fri Aug 25 20:46:45 2006 +++ xoops2jp/html/modules/base/admin/templates/comment_list.html Thu Oct 12 20:03:01 2006 @@ -36,29 +36,29 @@
<{$smarty.const._AD_BASE_LANG_IMAGE_ID}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMAGE_NAME}>
<{$smarty.const._MD_BASE_LANG_IMAGE_NICENAME}> - " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_BASE_LANG_IMAGE_MIMETYPE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMAGE_CREATED}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMAGE_DISPLAY}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMAGE_WEIGHT}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_CONTROL}>
+ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> <{foreach item=obj from=$objects}> Index: xoops2jp/html/modules/base/admin/templates/imagecategory_list.html diff -u xoops2jp/html/modules/base/admin/templates/imagecategory_list.html:1.1.2.13.2.1 xoops2jp/html/modules/base/admin/templates/imagecategory_list.html:1.1.2.13.2.2 --- xoops2jp/html/modules/base/admin/templates/imagecategory_list.html:1.1.2.13.2.1 Sat Oct 7 15:51:23 2006 +++ xoops2jp/html/modules/base/admin/templates/imagecategory_list.html Thu Oct 12 20:03:01 2006 @@ -13,29 +13,29 @@
<{$smarty.const._MD_BASE_LANG_COM_ID}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_BASE_LANG_COM_MODID}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_BASE_LANG_COM_TITLE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_COM_CREATED}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_COM_MODIFIED}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_COM_UID}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_BASE_LANG_COM_IP}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_COM_STATUS}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_CONTROL}>
+ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> Index: xoops2jp/html/modules/base/admin/templates/smiles_list.html diff -u xoops2jp/html/modules/base/admin/templates/smiles_list.html:1.1.2.13 xoops2jp/html/modules/base/admin/templates/smiles_list.html:1.1.2.13.2.1 --- xoops2jp/html/modules/base/admin/templates/smiles_list.html:1.1.2.13 Fri Aug 25 17:26:10 2006 +++ xoops2jp/html/modules/base/admin/templates/smiles_list.html Thu Oct 12 20:03:01 2006 @@ -12,20 +12,20 @@
<{$smarty.const._AD_BASE_LANG_IMGCAT_ID}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMGCAT_NAME}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMGCAT_MAXSIZE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMGCAT_MAXWIDTH}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMGCAT_MAXHEIGHT}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMGCAT_DISPLAY}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMGCAT_WEIGHT}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMGCAT_STORETYPE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMAGE_COUNT}> <{$smarty.const._AD_BASE_LANG_CONTROL}>
+ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> <{foreach item=obj from=$objects}> From minahito @ users.sourceforge.jp Thu Oct 12 20:03:16 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 20:03:16 +0900 Subject: [xoops-cvslog 4946] CVS update: xoops2jp/html/modules/base/class Message-ID: <20061012110317.37E722AC221@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/AbstractFilterForm.class.php diff -u xoops2jp/html/modules/base/class/AbstractFilterForm.class.php:1.1.2.6 xoops2jp/html/modules/base/class/AbstractFilterForm.class.php:1.1.2.6.2.1 --- xoops2jp/html/modules/base/class/AbstractFilterForm.class.php:1.1.2.6 Wed Aug 2 18:46:08 2006 +++ xoops2jp/html/modules/base/class/AbstractFilterForm.class.php Thu Oct 12 20:03:16 2006 @@ -7,21 +7,50 @@ var $mSort = 0; var $mSortKeys = array(); var $_mCriteria = null; - var $_mNavi = null; - - function Legacy_AbstractFilterForm(&$navi) + var $mNavi = null; + + var $_mHandler = null; + + function Legacy_AbstractFilterForm(&$navi, &$handler) { - $this->_mNavi =& $navi; + $this->mNavi =& $navi; + $this->_mHandler =& $handler; + $this->_mCriteria =& new CriteriaCompo(); + + $this->mNavi->mGetTotalItems->add(array(&$this, 'getTotalItems')); + } + + function getDefaultSortKey() + { + } + + function getTotalItems(&$total) + { + $total = $this->_mHandler->getCount($this->getCriteria()); + } + + function fetchSort() + { + $root =& XCube_Root::getSingleton(); + $this->mSort = intval($root->mContext->mRequest->getRequest('sort')); + + if (!isset($this->mSortKeys[abs($this->mSort)])) { + $this->mSort = $this->getDefaultSortKey(); + } + + $this->mNavi->mSort['sort'] = $this->mSort; } function fetch() { + $this->mNavi->fetch(); + $this->fetchSort(); } - + function getSort() { - $sortkey = abs($this->mSort); + $sortkey = abs($this->mNavi->mSort['sort']); return isset($this->mSortKeys[$sortkey]) ? $this->mSortKeys[$sortkey] : null; } @@ -30,12 +59,15 @@ return ($this->mSort < 0) ? "DESC" : "ASC"; } - function getCriteria($start = 0, $limit = 0) + function getCriteria($start = null, $limit = null) { + $t_start = ($start === null) ? $this->mNavi->getStart() : intval($start); + $t_limit = ($limit === null) ? $this->mNavi->getPerpage() : intval($limit); + $criteria = $this->_mCriteria; - $criteria->setStart($start); - $criteria->setLimit($limit); + $criteria->setStart($t_start); + $criteria->setLimit($t_limit); return $criteria; } Index: xoops2jp/html/modules/base/class/AbstractListAction.class.php diff -u xoops2jp/html/modules/base/class/AbstractListAction.class.php:1.1.2.2 xoops2jp/html/modules/base/class/AbstractListAction.class.php:1.1.2.2.2.1 --- xoops2jp/html/modules/base/class/AbstractListAction.class.php:1.1.2.2 Tue Mar 28 22:29:21 2006 +++ xoops2jp/html/modules/base/class/AbstractListAction.class.php Thu Oct 12 20:03:16 2006 @@ -7,36 +7,34 @@ class Legacy_AbstractListAction extends Legacy_Action { var $mObjects = array(); + var $mFilter = null; - var $mNavi = null; function &_getHandler() { } - function &_getFilterForm(&$navi) + function &_getFilterForm() { } function _getBaseUrl() { } + + function &_getPageNavi() + { + $navi =& new XCube_PageNavigator($this->_getBaseUrl(), XCUBE_PAGENAVI_START); + return $navi; + } function getDefaultView(&$controller, &$xoopsUser) { - $this->mNavi =& new Legacy_PageNavigator($this->_getBaseUrl(), 0, XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); - - $this->mFilter =& $this->_getFilterForm($this->mNavi); + $this->mFilter =& $this->_getFilterForm(); $this->mFilter->fetch(); - $handler =& $this->_getHandler(); - $total = $handler->getCount($this->mFilter->getCriteria()); - - $this->mNavi->setTotal($total); - $this->mNavi->fetch(); - - $criteria = $this->mFilter->getCriteria($this->mNavi->getStart(), $this->mNavi->getPerpage()); - $this->mObjects =& $handler->getObjects($criteria); + $handler =& $this->_getHandler(); + $this->mObjects =& $handler->getObjects($this->mFilter->getCriteria()); return LEGACY_FRAME_VIEW_INDEX; } From minahito @ users.sourceforge.jp Thu Oct 12 20:03:40 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 20:03:40 +0900 Subject: [xoops-cvslog 4947] CVS update: xoops2jp/html/modules/base/forms Message-ID: <20061012110340.BCFC92AC01E@users.sourceforge.jp> Index: xoops2jp/html/modules/base/forms/SmilesFilterForm.class.php diff -u xoops2jp/html/modules/base/forms/SmilesFilterForm.class.php:1.1.2.3 xoops2jp/html/modules/base/forms/SmilesFilterForm.class.php:1.1.2.3.2.1 --- xoops2jp/html/modules/base/forms/SmilesFilterForm.class.php:1.1.2.3 Tue Apr 11 15:12:54 2006 +++ xoops2jp/html/modules/base/forms/SmilesFilterForm.class.php Thu Oct 12 20:03:40 2006 @@ -15,7 +15,6 @@ class Legacy_SmilesFilterForm extends Legacy_AbstractFilterForm { - var $mSort = 0; var $mSortKeys = array( SMILES_SORT_KEY_ID => 'id', SMILES_SORT_KEY_CODE => 'code', @@ -23,15 +22,15 @@ SMILES_SORT_KEY_EMOTION => 'emotion', SMILES_SORT_KEY_DISPLAY => 'display' ); - var $_mCriteria = null; + + function getDefaultSortKey() + { + return SMILES_SORT_KEY_ID; + } function fetch() { - $this->mSort = isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : 0; - - if ($this->mSort > SMILES_SORT_KEY_MAXVALUE) { - $this->mSort = SMILES_SORT_KEY_DEFAULT; - } + parent::fetch(); if (isset($_REQUEST['id'])) { $this->_mCriteria->add(new Criteria('id', array(XOBJ_DTYPE_INT, xoops_getrequest('id')))); Index: xoops2jp/html/modules/base/forms/ImageFilterForm.class.php diff -u xoops2jp/html/modules/base/forms/ImageFilterForm.class.php:1.1.2.1 xoops2jp/html/modules/base/forms/ImageFilterForm.class.php:1.1.2.1.2.1 --- xoops2jp/html/modules/base/forms/ImageFilterForm.class.php:1.1.2.1 Thu May 25 18:31:49 2006 +++ xoops2jp/html/modules/base/forms/ImageFilterForm.class.php Thu Oct 12 20:03:40 2006 @@ -18,7 +18,6 @@ class Legacy_ImageFilterForm extends Legacy_AbstractFilterForm { - var $mSort = 0; var $_mSortKeys = array( IMAGE_SORT_KEY_IMAGE_ID => 'image_id', IMAGE_SORT_KEY_IMAGE_NAME => 'image_name', @@ -29,20 +28,20 @@ IMAGE_SORT_KEY_IMAGE_WEIGHT => 'image_weight', IMAGE_SORT_KEY_IMGCAT_ID => 'imgcat_id' ); - var $_mCriteria = null; + + function getDefaultSortKey() + { + return IMAGE_SORT_KEY_DEFAULT; + } function fetch() { - $this->mSort = isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : IMAGE_SORT_KEY_DEFAULT; - - if ($this->mSort > IMAGE_SORT_KEY_MAXVALUE) { - $this->mSort = IMAGE_SORT_KEY_DEFAULT; - } - - $this->_mNavi->addExtra('target', xoops_getrequest('target')); + parent::fetch(); + + $this->mNavi->addExtra('target', xoops_getrequest('target')); if (isset($_REQUEST['imgcat_id'])) { - $this->_mNavi->addExtra('imgcat_id', xoops_getrequest('imgcat_id')); + $this->mNavi->addExtra('imgcat_id', xoops_getrequest('imgcat_id')); $this->_mCriteria->add(new Criteria('imgcat_id', array(XOBJ_DTYPE_INT, xoops_getrequest('imgcat_id')))); } else { From minahito @ users.sourceforge.jp Thu Oct 12 20:03:56 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 20:03:56 +0900 Subject: [xoops-cvslog 4948] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061012110356.CF7A62AC01E@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.5 xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.6 --- xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.5 Tue Oct 10 19:55:36 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php Thu Oct 12 20:03:56 2006 @@ -1,7 +1,7 @@ mModule =& $this->_createModule(); - $context->mModule->mXoopsModule =& $handler->getByDirname($dirname); - $context->mXoopsModule =& $context->mModule->mXoopsModule; - - if ($context->mXoopsModule == null) { + $module =& $handler->getByDirname($dirname); + + if (!is_object($module)) { return; } + $context->mModule =& $this->_createModule($module); + $context->mXoopsModule =& $context->mModule->getXoopsModule(); + if ($context->mXoopsModule->get('hasconfig') == 1 || $context->mXoopsModule->get('hascomments') == 1) { $handler =& xoops_gethandler('config'); - $context->mModule->mModuleConfig =& $handler->getConfigsByCat(0, $context->mXoopsModule->get('mid')); - $context->mModuleConfig =& $context->mModule->mModuleConfig; + + $context->mModule->setModuleConfig($handler->getConfigsByCat(0, $context->mXoopsModule->get('mid'))); + $context->mModuleConfig = $context->mModule->getModuleConfig(); } // @@ -44,10 +46,36 @@ Legacy_RoleManager::loadRolesByMid($context->mXoopsModule->get('mid')); } - function &_createModule() + /** + * Creates a instance of the module with the generating convention. And, + * returns it. + * @static + * @return Legacy_Module + */ + function &_createModule($module) { - $module =& new Legacy_Module(); - return $module; + $instance = null; + $dirname = $module->get('dirname'); + + // + // IMPORTANT CONVENTION + // + $className = ucfirst($dirname) . "_Module"; + if (!class_exists($className)) { + $filePath = XOOPS_ROOT_PATH . "/modules/${dirname}/class/Module.class.php"; + if (file_exists($filePath)) { + require_once $filePath; + } + } + + if (class_exists($className)) { + $instance =& new $className($module); + } + else { + $instance =& new Legacy_ModuleAdapter($module); + } + + return $instance; } function setupBlock() @@ -111,6 +139,12 @@ return true; } + + function setupModuleLanguage() + { + $root =& XCube_Root::getSingleton(); + $root->mLanguageManager->loadModuleMessageCatalog($root->mContext->mXoopsModule->get('dirname')); + } } ?> \ No newline at end of file Index: xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php:1.1.2.3 xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php:1.1.2.4 --- xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php:1.1.2.3 Fri Oct 6 18:47:36 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php Thu Oct 12 20:03:56 2006 @@ -1,7 +1,7 @@ get('dirname'); + + // + // IMPORTANT CONVENTION + // + $className = ucfirst($dirname) . "_AdminModule"; + if (!class_exists($className)) { + $filePath = XOOPS_ROOT_PATH . "/modules/${dirname}/admin/class/Module.class.php"; + if (file_exists($filePath)) { + require_once $filePath; + } + } + + if (class_exists($className)) { + $instance =& new $className($module); + } + else { + $instance =& new Legacy_ModuleAdapter($module); + } + + return $instance; } function setupBlock() @@ -157,6 +183,19 @@ return false; } + + function setupModuleLanguage() + { + $root =& XCube_Root::getSingleton(); + + $root->mContext->mXoopsModule->loadInfo($root->mContext->mXoopsModule->get('dirname')); + + if (isset($root->mContext->mXoopsModule->modinfo['cube_style']) && $root->mContext->mXoopsModule->modinfo['cube_style'] != false) { + $root->mLanguageManager->loadModuleMessageCatalog($root->mContext->mXoopsModule->get('dirname')); + } + $root->mLanguageManager->loadModuleAdminMessageCatalog($root->mContext->mXoopsModule->get('dirname')); + $root->mLanguageManager->loadModinfoMessageCatalog($root->mContext->mXoopsModule->get('dirname')); + } } ?> \ No newline at end of file Index: xoops2jp/html/modules/base/kernel/Legacy_Module.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Module.class.php:1.1.2.4 xoops2jp/html/modules/base/kernel/Legacy_Module.class.php:1.1.2.5 --- xoops2jp/html/modules/base/kernel/Legacy_Module.class.php:1.1.2.4 Wed Oct 11 17:13:17 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Module.class.php Thu Oct 12 20:03:56 2006 @@ -1,10 +1,10 @@ setXoopsModule($module); } /** @@ -67,6 +68,48 @@ { return isset($this->mAttributes[$key]) ? $this->mAttributes[$key] : null; } + + /** + * Sets a instance of XoopsModule to the property. + * @param XoopsModule $xoopsModule + */ + function setXoopsModule(&$xoopsModule) + { + $this->mXoopsModule =& $xoopsModule; + } + + /** + * Gets a instance of XoopsModule. + * @return XoopsModule + */ + function &getXoopsModule() + { + return $this->mXoopsModule; + } + + /** + * Sets array of xoops module config to the property. + * @param Array $config + */ + function setModuleConfig($config) + { + $this->mModuleConfig = $config; + } + + /** + * Gets a value form xoops module config with $key. If $key is specified + * null, returns array. + * @param string $key + * @return mixed + */ + function getModuleConfig($key = null) + { + if ($key == null) { + return $this->mModuleConfig; + } + + return isset($this->mModuleConfig[$key]) ? $this->mModuleConfig[$key] : null; + } function &getCacheInfo() { @@ -119,12 +162,6 @@ return $this->mXoopsModule->get('isactive') ? true : false; } - function setupLanguage() - { - $root =& XCube_Root::getSingleton(); - $root->mLanguageManager->loadModuleMessageCatalog($this->mXoopsModule->getVar('dirname')); - } - /** * Gets a value indicating whether the current module has a option of * configurations to use the cache system. @@ -153,26 +190,119 @@ return $this->mCacheInfo; } + + function searchAction(&$searchArgs) + { + } } -class Legacy_AdminModule extends Legacy_Module +class Legacy_ModuleAdapter extends Legacy_AbstractModule { - function setupLanguage() + function searchAction(&$searchArgs) { - $root =& XCube_Root::getSingleton(); + if(!is_object($searchArgs)) { + return; + } + + $this->mXoopsModule->loadAdminMenu(); + if(count($this->mXoopsModule->adminmenu) == 0 && !isset($this->mXoopsModule->modinfo['config']) ) { + return; + } + + // + // Search preference + // + if(isset($this->mXoopsModule->modinfo['config'])&&count($this->mXoopsModule->modinfo['config'])>0) { + $configInfos=array(); + foreach($this->mXoopsModule->modinfo['config'] as $config) { + if(isset($config['title'])) + $configInfos[]=@constant($config['title']); + if(isset($config['description'])) + $configInfos[]=@constant($config['description']); + if(isset($config['options'])&&count($config['options'])>0) { + foreach($config['options'] as $key=>$val) { + $configInfos[]=$key; + } + } + } + + $findFlag=true; + foreach($searchArgs->getKeywords() as $word) { + $findFlag&=(stristr(implode(" ",$configInfos),$word)!==false); + } + + if($findFlag) { + $searchArgs->addRecord($this->mXoopsModule->getVar('name'), + XOOPS_URL.'/modules/base/admin/index.php?action=PreferenceEdit&confmod_id='.$this->mXoopsModule->getVar('mid'), + _PREFERENCES ); + } + } - $this->mXoopsModule->loadInfo($this->mXoopsModule->get('dirname')); + // + // Search AdminMenu + // + if(count($this->mXoopsModule->adminmenu)>0) { + foreach($this->mXoopsModule->adminmenu as $menu) { + $findFlag=true; + foreach($searchArgs->getKeywords() as $word) { + $tmpFlag=false; + $tmpFlag|=(stristr($menu['title'],$word)!==false); + + // Search keyword + if(isset($menu['keywords'])) { + $keyword=is_array($menu['keywords']) ? implode(" ",$menu['keywords']) : $menu['keywords']; + $tmpFlag|=(stristr($keyword,$word)!==false); + } + + $findFlag&=$tmpFlag; + } + + if($findFlag) { + // + // Create url string with absolute information. + // + $url=""; + if(isset($menu['absolute'])&&$menu['absolute']) { + $url=$menu['link']; + } + else { + $url=XOOPS_URL."/modules/".$this->mXoopsModule->getVar('dirname')."/".$menu['link']; + } + + // + // Add record + // + $searchArgs->addRecord($this->mXoopsModule->getVar('name'),$url,$menu['title']); + } + } + } - if (isset($this->mXoopsModule->modinfo['cube_style']) && $this->mXoopsModule->modinfo['cube_style'] != false) { - $root->mLanguageManager->loadModuleMessageCatalog($this->mXoopsModule->get('dirname')); + // + // Search help + // + if ($this->mXoopsModule->hasHelp()) { + $root =& XCube_Root::getSingleton(); + $language = $root->mContext->getXoopsConfig('language'); + $helpfile = $this->mXoopsModule->getHelp(); + $dir = XOOPS_MODULE_PATH . "/" . $this->mXoopsModule->getVar('dirname') . "/language/" . $language; + + if (!file_exists($dir . "/" . $helpfile)) { + $dir = XOOPS_MODULE_PATH . "/" . $this->mXoopsModule->getVar('dirname') . "/language/" . $language; + if (!file_exists($dir . "/" . $helpfile)) { + return; + } + } + $lines = file($dir . "/" . $helpfile); + foreach ($lines as $line) { + foreach($searchArgs->getKeywords() as $word) { + if (stristr($line, $word) !== false) { + $url = XOOPS_MODULE_URL . "/base/admin/index.php?action=Help&dirname=" . $this->mXoopsModule->getVar('dirname'); + $searchArgs->addRecord($this->mXoopsModule->getVar('name'), $url, _HELP); + return; + } + } + } } - $root->mLanguageManager->loadModuleAdminMessageCatalog($this->mXoopsModule->get('dirname')); - $root->mLanguageManager->loadModinfoMessageCatalog($this->mXoopsModule->get('dirname')); - } - - function hasCacheConfig() - { - return false; } } Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.12 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.13 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.12 Wed Oct 11 17:13:40 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Thu Oct 12 20:03:56 2006 @@ -1,7 +1,7 @@ executeRedirect(XOOPS_URL . '/',1,_NOPERM); // TODO Depens on const message catalog. } - $this->mRoot->mContext->mModule->setupLanguage(); + $this->_mStrategy->setupModuleLanguage(); $GLOBALS['xoopsModule'] =& $this->mRoot->mContext->mXoopsModule; $GLOBALS['xoopsModuleConfig'] =& $this->mRoot->mContext->mModuleConfig; @@ -1304,6 +1304,10 @@ function enableAccess() { } + + function setupModuleLanguage() + { + } } ?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Oct 12 20:07:02 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 20:07:02 +0900 Subject: [xoops-cvslog 4949] CVS update: xoops2jp/html/core Message-ID: <20061012110702.C8C0E2AC01E@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_PageNavigator.class.php diff -u xoops2jp/html/core/XCube_PageNavigator.class.php:1.1.2.3 xoops2jp/html/core/XCube_PageNavigator.class.php:1.1.2.4 --- xoops2jp/html/core/XCube_PageNavigator.class.php:1.1.2.3 Thu Oct 12 20:00:45 2006 +++ xoops2jp/html/core/XCube_PageNavigator.class.php Thu Oct 12 20:07:02 2006 @@ -1,7 +1,7 @@ getRenderUrl($mask) . $this->mStart; + return $this->renderUrlForSort(); } function setStart($start) From minahito @ users.sourceforge.jp Thu Oct 12 21:53:14 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 21:53:14 +0900 Subject: [xoops-cvslog 4950] CVS update: xoops2jp/html/modules/base/preload Message-ID: <20061012125314.C27AD2AC064@users.sourceforge.jp> Index: xoops2jp/html/modules/base/preload/Wating.class.php diff -u xoops2jp/html/modules/base/preload/Wating.class.php:1.1.2.2 xoops2jp/html/modules/base/preload/Wating.class.php:1.1.2.2.2.1 --- xoops2jp/html/modules/base/preload/Wating.class.php:1.1.2.2 Thu Aug 24 10:54:33 2006 +++ xoops2jp/html/modules/base/preload/Wating.class.php Thu Oct 12 21:53:14 2006 @@ -80,7 +80,7 @@ $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("xoopscomments")." WHERE com_status=1"); if ( $result ) { $blockVal = array(); - $blockVal['adminlink'] = XOOPS_URL."/modules/system/admin.php?module=0&status=1&fct=comments"; + $blockVal['adminlink'] = XOOPS_URL."/modules/base/admin/index.php?action=CommentList&com_modid=0&com_status=1"; list($blockVal['pendingnum']) = $xoopsDB->fetchRow($result); $blockVal['lang_linkname'] =_MB_BASE_COMPEND; $modules[] = $blockVal; From minahito @ users.sourceforge.jp Thu Oct 12 22:56:31 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 22:56:31 +0900 Subject: [xoops-cvslog 4951] CVS update: xoops2jp/html/modules/legacyRender/class Message-ID: <20061012135631.2FE062AC059@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/class/AbstractListAction.class.php diff -u xoops2jp/html/modules/legacyRender/class/AbstractListAction.class.php:1.1.2.1 xoops2jp/html/modules/legacyRender/class/AbstractListAction.class.php:1.1.2.1.2.1 --- xoops2jp/html/modules/legacyRender/class/AbstractListAction.class.php:1.1.2.1 Mon Apr 24 16:31:08 2006 +++ xoops2jp/html/modules/legacyRender/class/AbstractListAction.class.php Thu Oct 12 22:56:31 2006 @@ -2,41 +2,38 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/legacyRender/class/PageNavigator.class.php"; +require_once XOOPS_ROOT_PATH . "/core/XCube_PageNavigator.class.php"; class LegacyRender_AbstractListAction extends LegacyRender_Action { var $mObjects = array(); var $mFilter = null; - var $mNavi = null; function &_getHandler() { } - function &_getFilterForm(&$navi) + function &_getFilterForm() { } function _getBaseUrl() { } + + function &_getPageNavi() + { + $navi =& new XCube_PageNavigator($this->_getBaseUrl(), XCUBE_PAGENAVI_START); + return $navi; + } function getDefaultView(&$controller, &$xoopsUser) { - $this->mNavi =& new LegacyRender_PageNavigator($this->_getBaseUrl(), 0, XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); - - $this->mFilter =& $this->_getFilterForm($this->mNavi); + $this->mFilter =& $this->_getFilterForm(); $this->mFilter->fetch(); - $handler =& $this->_getHandler(); - $total = $handler->getCount($this->mFilter->getCriteria()); - - $this->mNavi->setTotal($total); - $this->mNavi->fetch(); - - $criteria = $this->mFilter->getCriteria($this->mNavi->getStart(), $this->mNavi->getPerpage()); - $this->mObjects =& $handler->getObjects($criteria); + $handler =& $this->_getHandler(); + $this->mObjects =& $handler->getObjects($this->mFilter->getCriteria()); return LEGACYRENDER_FRAME_VIEW_INDEX; } Index: xoops2jp/html/modules/legacyRender/class/AbstractFilterForm.class.php diff -u xoops2jp/html/modules/legacyRender/class/AbstractFilterForm.class.php:1.1.2.2 xoops2jp/html/modules/legacyRender/class/AbstractFilterForm.class.php:1.1.2.2.2.1 --- xoops2jp/html/modules/legacyRender/class/AbstractFilterForm.class.php:1.1.2.2 Mon Jul 10 15:08:31 2006 +++ xoops2jp/html/modules/legacyRender/class/AbstractFilterForm.class.php Thu Oct 12 22:56:31 2006 @@ -7,21 +7,50 @@ var $mSort = 0; var $mSortKeys = array(); var $_mCriteria = null; - var $_mNavi = null; - - function LegacyRender_AbstractFilterForm(&$navi) + var $mNavi = null; + + var $_mHandler = null; + + function LegacyRender_AbstractFilterForm(&$navi, &$handler) { - $this->_mNavi =& $navi; + $this->mNavi =& $navi; + $this->_mHandler =& $handler; + $this->_mCriteria =& new CriteriaCompo(); + + $this->mNavi->mGetTotalItems->add(array(&$this, 'getTotalItems')); + } + + function getDefaultSortKey() + { + } + + function getTotalItems(&$total) + { + $total = $this->_mHandler->getCount($this->getCriteria()); + } + + function fetchSort() + { + $root =& XCube_Root::getSingleton(); + $this->mSort = intval($root->mContext->mRequest->getRequest('sort')); + + if (!isset($this->mSortKeys[abs($this->mSort)])) { + $this->mSort = $this->getDefaultSortKey(); + } + + $this->mNavi->mSort['sort'] = $this->mSort; } function fetch() { + $this->mNavi->fetch(); + $this->fetchSort(); } - + function getSort() { - $sortkey = abs($this->mSort); + $sortkey = abs($this->mNavi->mSort['sort']); return isset($this->mSortKeys[$sortkey]) ? $this->mSortKeys[$sortkey] : null; } @@ -30,12 +59,15 @@ return ($this->mSort < 0) ? "DESC" : "ASC"; } - function getCriteria($start = 0, $limit = 0) + function getCriteria($start = null, $limit = null) { + $t_start = ($start === null) ? $this->mNavi->getStart() : intval($start); + $t_limit = ($limit === null) ? $this->mNavi->getPerpage() : intval($limit); + $criteria = $this->_mCriteria; - $criteria->setStart($start); - $criteria->setLimit($limit); + $criteria->setStart($t_start); + $criteria->setLimit($t_limit); return $criteria; } From minahito @ users.sourceforge.jp Thu Oct 12 22:56:37 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 22:56:37 +0900 Subject: [xoops-cvslog 4952] CVS update: xoops2jp/html/modules/legacyRender/class Message-ID: <20061012135637.5DF9F2AC059@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/class/PageNavigator.class.php diff -u xoops2jp/html/modules/legacyRender/class/PageNavigator.class.php:1.1.2.1.2.2 xoops2jp/html/modules/legacyRender/class/PageNavigator.class.php:removed --- xoops2jp/html/modules/legacyRender/class/PageNavigator.class.php:1.1.2.1.2.2 Fri Sep 29 17:14:34 2006 +++ xoops2jp/html/modules/legacyRender/class/PageNavigator.class.php Thu Oct 12 22:56:37 2006 @@ -1,37 +0,0 @@ -mExtra as $key => $value) { - } - - if (!isset($mask[$key])) { - $value = htmlspecialchars($value, ENT_QUOTES); - $ret .= ""; - } - - return $ret; - } -} - -?> From minahito @ users.sourceforge.jp Thu Oct 12 22:56:44 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 22:56:44 +0900 Subject: [xoops-cvslog 4953] CVS update: xoops2jp/html/modules/legacyRender/admin/templates Message-ID: <20061012135644.B9FB42AC03A@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/templates/bannerfinish_list.html diff -u xoops2jp/html/modules/legacyRender/admin/templates/bannerfinish_list.html:1.1.2.9 xoops2jp/html/modules/legacyRender/admin/templates/bannerfinish_list.html:1.1.2.9.2.1 --- xoops2jp/html/modules/legacyRender/admin/templates/bannerfinish_list.html:1.1.2.9 Sat Aug 19 17:27:51 2006 +++ xoops2jp/html/modules/legacyRender/admin/templates/bannerfinish_list.html Thu Oct 12 22:56:44 2006 @@ -18,23 +18,23 @@
<{$smarty.const._AD_BASE_LANG_ID}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_BASE_LANG_CODE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_SMILE_URL}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_BASE_LANG_EMOTION}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_DISPLAY}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_CONTROL}>
+ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> <{foreach item=obj from=$objects}> Index: xoops2jp/html/modules/legacyRender/admin/templates/bannerclient_list.html diff -u xoops2jp/html/modules/legacyRender/admin/templates/bannerclient_list.html:1.1.2.8 xoops2jp/html/modules/legacyRender/admin/templates/bannerclient_list.html:1.1.2.8.2.1 --- xoops2jp/html/modules/legacyRender/admin/templates/bannerclient_list.html:1.1.2.8 Sat Aug 19 17:27:51 2006 +++ xoops2jp/html/modules/legacyRender/admin/templates/bannerclient_list.html Thu Oct 12 22:56:44 2006 @@ -15,23 +15,23 @@
<{$smarty.const._AD_LEGACYRENDER_LANG_BID}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_CLIENT_NAME}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_IMPRESSIONS}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_CLICKS}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_DATESTART}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_DATEEND}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_CONTROL}>
+ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> <{foreach item=obj from=$objects}> Index: xoops2jp/html/modules/legacyRender/admin/templates/banner_list.html diff -u xoops2jp/html/modules/legacyRender/admin/templates/banner_list.html:1.1.2.11 xoops2jp/html/modules/legacyRender/admin/templates/banner_list.html:1.1.2.11.2.1 --- xoops2jp/html/modules/legacyRender/admin/templates/banner_list.html:1.1.2.11 Wed Sep 20 18:49:06 2006 +++ xoops2jp/html/modules/legacyRender/admin/templates/banner_list.html Thu Oct 12 22:56:44 2006 @@ -18,26 +18,26 @@
<{$smarty.const._AD_LEGACYRENDER_LANG_CID}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_NAME}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_CONTACT}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_EMAIL}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_LOGIN}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_EXTRAINFO}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_CONTROL}>
+ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> <{foreach item=obj from=$objects}> Index: xoops2jp/html/modules/legacyRender/admin/templates/tplset_list.html diff -u xoops2jp/html/modules/legacyRender/admin/templates/tplset_list.html:1.1.2.28 xoops2jp/html/modules/legacyRender/admin/templates/tplset_list.html:1.1.2.28.2.1 --- xoops2jp/html/modules/legacyRender/admin/templates/tplset_list.html:1.1.2.28 Mon Sep 11 17:53:34 2006 +++ xoops2jp/html/modules/legacyRender/admin/templates/tplset_list.html Thu Oct 12 22:56:44 2006 @@ -40,18 +40,18 @@
<{$smarty.const._AD_LEGACYRENDER_LANG_BID}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_CLIENT_NAME}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_IMPTOTAL}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_IMPMADE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_CLICKS}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_DATE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_HTMLBANNER}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_CONTROL}>
+ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> Index: xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html diff -u xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html:1.1.2.24 xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html:1.1.2.24.2.1 --- xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html:1.1.2.24 Mon Aug 28 01:00:10 2006 +++ xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html Thu Oct 12 22:56:44 2006 @@ -15,7 +15,7 @@
<{$smarty.const._AD_LEGACYRENDER_LANG_SEARCH_TEMPLATE}> : - <{$pageNavi->renderHidden('tpl_file')}> + <{xoops_explaceholder control=LegacyRenderPagenaviHidden mask=tpl_file}> @@ -69,26 +69,26 @@
<{$smarty.const._AD_LEGACYRENDER_LANG_TPLSET_ID}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_TPLSET_NAME}> (<{$smarty.const._AD_LEGACYRENDER_LANG_TPLSET_DESC}>)
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_TPLSET_CREDITS}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_TPLSET_CREATED}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_TEMPLATE}> <{$smarty.const._AD_LEGACYRENDER_LANG_CONTROL}>
+ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> <{if $targetTplset != null && $targetTplset != 'default'}> From minahito @ users.sourceforge.jp Thu Oct 12 22:56:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 22:56:57 +0900 Subject: [xoops-cvslog 4954] CVS update: xoops2jp/html/modules/legacyRender/admin/actions Message-ID: <20061012135657.313E32AC03A@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/actions/TplsetListAction.class.php diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplsetListAction.class.php:1.1.2.10.2.3 xoops2jp/html/modules/legacyRender/admin/actions/TplsetListAction.class.php:1.1.2.10.2.4 --- xoops2jp/html/modules/legacyRender/admin/actions/TplsetListAction.class.php:1.1.2.10.2.3 Thu Oct 5 19:18:13 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/TplsetListAction.class.php Thu Oct 12 22:56:57 2006 @@ -2,7 +2,6 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_ROOT_PATH . "/core/XCube_PageNavigator.class.php"; require_once XOOPS_MODULE_PATH . "/legacyRender/class/AbstractListAction.class.php"; require_once XOOPS_MODULE_PATH . "/legacyRender/admin/forms/TplsetFilterForm.class.php"; require_once XOOPS_MODULE_PATH . "/legacyRender/admin/forms/TplsetSelectForm.class.php"; @@ -25,9 +24,9 @@ return $handler; } - function &_getFilterForm(&$navi) + function &_getFilterForm() { - $filter =& new LegacyRender_TplsetFilterForm($navi); + $filter =& new LegacyRender_TplsetFilterForm($this->_getPageNavi(), $this->_getHandler()); return $filter; } @@ -73,7 +72,7 @@ $render->setTemplateName("tplset_list.html"); $render->setAttribute('objects', $this->mObjects); - $render->setAttribute('pageNavi', $this->mNavi); + $render->setAttribute('pageNavi', $this->mFilter->mNavi); $render->setAttribute('activeTemplateSet', $this->mActiveTemplateSet); $render->setAttribute('actionForm', $this->mActionForm); Index: xoops2jp/html/modules/legacyRender/admin/actions/BannerListAction.class.php diff -u xoops2jp/html/modules/legacyRender/admin/actions/BannerListAction.class.php:1.1.2.3 xoops2jp/html/modules/legacyRender/admin/actions/BannerListAction.class.php:1.1.2.3.2.1 --- xoops2jp/html/modules/legacyRender/admin/actions/BannerListAction.class.php:1.1.2.3 Thu May 11 18:58:20 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/BannerListAction.class.php Thu Oct 12 22:56:57 2006 @@ -2,7 +2,6 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/legacyRender/class/PageNavigator.class.php"; require_once XOOPS_MODULE_PATH . "/legacyRender/class/AbstractListAction.class.php"; require_once XOOPS_MODULE_PATH . "/legacyRender/admin/forms/BannerFilterForm.class.php"; @@ -14,9 +13,9 @@ return $handler; } - function &_getFilterForm(&$navi) + function &_getFilterForm() { - $filter =& new LegacyRender_BannerFilterForm($navi); + $filter =& new LegacyRender_BannerFilterForm($this->_getPageNavi(), $this->_getHandler()); return $filter; } @@ -32,7 +31,7 @@ $this->mObjects[$key]->loadBannerclient(); } $render->setAttribute("objects", $this->mObjects); - $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); // // If cid is specified, load client object and assign it. Index: xoops2jp/html/modules/legacyRender/admin/actions/BannerclientListAction.class.php diff -u xoops2jp/html/modules/legacyRender/admin/actions/BannerclientListAction.class.php:1.1.2.3 xoops2jp/html/modules/legacyRender/admin/actions/BannerclientListAction.class.php:1.1.2.3.2.1 --- xoops2jp/html/modules/legacyRender/admin/actions/BannerclientListAction.class.php:1.1.2.3 Mon Jul 10 20:06:03 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/BannerclientListAction.class.php Thu Oct 12 22:56:57 2006 @@ -1,12 +1,11 @@ _getPageNavi(), $this->_getHandler()); return $filter; } @@ -37,7 +36,7 @@ $this->mObjects[$key]->loadFinishBannerCount(); } $render->setAttribute("objects", $this->mObjects); - $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); } } Index: xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php:1.1.2.13.2.1 xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php:1.1.2.13.2.2 --- xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php:1.1.2.13.2.1 Sat Oct 7 15:49:27 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php Thu Oct 12 22:56:57 2006 @@ -1,7 +1,7 @@ mNavi) : new LegacyRender_TplfileFilterForm($this->mNavi); + $filter = isset($_REQUEST['tpl_tplset']) ? new LegacyRender_TplfileSetFilterForm($this->_getPageNavi(), $this->_getHandler()) + : new LegacyRender_TplfileFilterForm($this->_getPageNavi(), $this->_getHandler()); return $filter; } @@ -45,19 +46,12 @@ function getDefaultView(&$controller, &$xoopsUser) { - $this->mNavi =& new LegacyRender_PageNavigator($this->_getBaseUrl(), 0, XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); - $this->mFilter =& $this->_getFilterForm(); $this->mFilter->fetch(); - - $handler =& $this->_getHandler(); - - $total = $handler->getCount($this->mFilter->getCriteria()); - $this->mNavi->setTotal($total); - $this->mNavi->fetch(); + $handler =& $this->_getHandler(); - $criteria = $this->mFilter->getCriteria($this->mNavi->getStart(), $this->mNavi->getPerpage()); + $criteria = $this->mFilter->getCriteria(); if (isset($_REQUEST['tpl_tplset'])) { $this->mObjects =& $handler->getObjectsWithOverride($criteria, xoops_getrequest('tpl_tplset')); @@ -146,6 +140,8 @@ function executeViewIndex(&$controller, &$xoopsUser, &$render) { + $controller->mRoot->mDelegateManager->add('Legacy.Event.Explaceholder.Get.LegacyRenderPagenaviHidden', 'LegacyRender_TplfileListAction::renderHiddenControl'); + $render->setTemplateName("tplfile_list.html"); // @@ -158,7 +154,7 @@ } $render->setAttribute('objects', $this->mObjects); - $render->setAttribute('pageNavi', $this->mNavi); + $render->setAttribute('pageNavi', $this->mFilter->mNavi); $render->setAttribute('filterForm', $this->mFilter); $render->setAttribute('actionForm', $this->mActionForm); @@ -181,6 +177,21 @@ $tplsets =& $handler->getObjects(); $render->setAttribute('tplsets', $tplsets); } + + function renderHiddenControl(&$buf, $params) + { + if (isset($params['pageNavi']) && is_object($params['pagenavi'])) { + $navi =& $params['pageNavi']; + $mask = isset($params['mask']) ? $params['mask'] : null; + + foreach ($navi->mExtra as $key => $value) { + if ($key != $mask) { + $value = htmlspecialchars($value, ENT_QUOTES); + $buf .= ""; + } + } + } + } } ?> Index: xoops2jp/html/modules/legacyRender/admin/actions/BannerfinishListAction.class.php diff -u xoops2jp/html/modules/legacyRender/admin/actions/BannerfinishListAction.class.php:1.1.2.2 xoops2jp/html/modules/legacyRender/admin/actions/BannerfinishListAction.class.php:1.1.2.2.2.1 --- xoops2jp/html/modules/legacyRender/admin/actions/BannerfinishListAction.class.php:1.1.2.2 Thu May 11 18:58:07 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/BannerfinishListAction.class.php Thu Oct 12 22:56:57 2006 @@ -2,7 +2,6 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/legacyRender/class/PageNavigator.class.php"; require_once XOOPS_MODULE_PATH . "/legacyRender/class/AbstractListAction.class.php"; require_once XOOPS_MODULE_PATH . "/legacyRender/admin/forms/BannerfinishFilterForm.class.php"; @@ -14,9 +13,9 @@ return $handler; } - function &_getFilterForm(&$navi) + function &_getFilterForm() { - $filter =& new LegacyRender_BannerfinishFilterForm($navi); + $filter =& new LegacyRender_BannerfinishFilterForm($this->_getPageNavi(), $this->_getHandler()); return $filter; } @@ -32,7 +31,7 @@ $this->mObjects[$key]->loadBannerclient(); } $render->setAttribute("objects", $this->mObjects); - $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); // // If cid is specified, load client object and assign it. From minahito @ users.sourceforge.jp Thu Oct 12 22:56:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 22:56:57 +0900 Subject: [xoops-cvslog 4955] CVS update: xoops2jp/html/modules/legacyRender/admin/forms Message-ID: <20061012135657.61C1C2AC059@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/forms/TplsetFilterForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/TplsetFilterForm.class.php:1.1.2.7 xoops2jp/html/modules/legacyRender/admin/forms/TplsetFilterForm.class.php:1.1.2.7.2.1 --- xoops2jp/html/modules/legacyRender/admin/forms/TplsetFilterForm.class.php:1.1.2.7 Sat Aug 5 15:21:05 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/TplsetFilterForm.class.php Thu Oct 12 22:56:57 2006 @@ -23,15 +23,16 @@ TPLSET_SORT_KEY_TPLSET_CREDITS => 'tplset_credits', TPLSET_SORT_KEY_TPLSET_CREATED => 'tplset_created' ); + + function getDefaultSortKey() + { + return TPLSET_SORT_KEY_DEFAULT; + } function fetch() { - $this->mSort = isset($_REQUEST['sort']) ? intval(xoops_getrequest('sort')) : TPLSET_SORT_KEY_DEFAULT; - - if (!isset($this->mSortKeys[abs($this->mSort)])) { - $this->mSort = TPLSET_SORT_KEY_DEFAULT; - } - + parent::fetch(); + $this->_mCriteria->addSort($this->getSort(), $this->getOrder()); } } Index: xoops2jp/html/modules/legacyRender/admin/forms/BannerfinishFilterForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/BannerfinishFilterForm.class.php:1.1.2.3 xoops2jp/html/modules/legacyRender/admin/forms/BannerfinishFilterForm.class.php:1.1.2.3.2.1 --- xoops2jp/html/modules/legacyRender/admin/forms/BannerfinishFilterForm.class.php:1.1.2.3 Mon Jul 10 20:11:29 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/BannerfinishFilterForm.class.php Thu Oct 12 22:56:57 2006 @@ -1,7 +1,7 @@ 'dateend' ); - function fetch() + function getDefaultSortKey() { - $this->mSort = isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : BANNERFINISH_SORT_KEY_DEFAULT; + return BANNERFINISH_SORT_KEY_DEFAULT; + } - if (!isset($this->mSortKeys[abs($this->mSort)])) { - $this->mSort = BANNERFINISH_SORT_KEY_DEFAULT; - } + function fetch() + { + parent::fetch(); if (isset($_REQUEST['cid'])) { - $this->_mNavi->addExtra('cid', xoops_getrequest('cid')); + $this->mNavi->addExtra('cid', xoops_getrequest('cid')); $this->_mCriteria->add(new Criteria('cid', xoops_getrequest('cid'))); } Index: xoops2jp/html/modules/legacyRender/admin/forms/BannerclientFilterForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/BannerclientFilterForm.class.php:1.1.2.4 xoops2jp/html/modules/legacyRender/admin/forms/BannerclientFilterForm.class.php:1.1.2.4.2.1 --- xoops2jp/html/modules/legacyRender/admin/forms/BannerclientFilterForm.class.php:1.1.2.4 Mon Jul 10 20:10:37 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/BannerclientFilterForm.class.php Thu Oct 12 22:56:57 2006 @@ -1,7 +1,7 @@ 'passwd', BANNERCLIENT_SORT_KEY_EXTRAINFO => 'extrainfo' ); + + function getDefaultSortKey() + { + return BANNERCLIENT_SORT_KEY_DEFAULT; + } function fetch() { - $this->mSort = isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : BANNERCLIENT_SORT_KEY_DEFAULT; - - if (!isset($this->mSortKeys[abs($this->mSort)])) { - $this->mSort = BANNERCLIENT_SORT_KEY_DEFAULT; - } - + parent::fetch(); + if (isset($_REQUEST['name'])) { - $this->_mNavi->addExtra('name', xoops_getrequest('name')); + $this->mNavi->addExtra('name', xoops_getrequest('name')); // TODO Changet to 'LIKE' (?) $this->_mCriteria->add(new Criteria('name', xoops_getrequest('name'))); } if (isset($_REQUEST['contact'])) { - $this->_mNavi->addExtra('contact', xoops_getrequest('contact')); + $this->mNavi->addExtra('contact', xoops_getrequest('contact')); // TODO Changet to 'LIKE' (?) $this->_mCriteria->add(new Criteria('contact', xoops_getrequest('contact'))); } Index: xoops2jp/html/modules/legacyRender/admin/forms/BannerFilterForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/BannerFilterForm.class.php:1.1.2.5 xoops2jp/html/modules/legacyRender/admin/forms/BannerFilterForm.class.php:1.1.2.5.2.1 --- xoops2jp/html/modules/legacyRender/admin/forms/BannerFilterForm.class.php:1.1.2.5 Mon Jul 10 20:10:48 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/BannerFilterForm.class.php Thu Oct 12 22:56:57 2006 @@ -1,7 +1,7 @@ 'htmlcode' ); + function getDefaultSortKey() + { + return BANNER_SORT_KEY_DEFAULT; + } + function fetch() { - $this->mSort = isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : BANNER_SORT_KEY_DEFAULT; - - if (!isset($this->mSortKeys[abs($this->mSort)])) { - $this->mSort = BANNER_SORT_KEY_DEFAULT; - } + parent::fetch(); if (isset($_REQUEST['cid'])) { - $this->_mNavi->addExtra('cid', xoops_getrequest('cid')); + $this->mNavi->addExtra('cid', xoops_getrequest('cid')); $this->_mCriteria->add(new Criteria('cid', xoops_getrequest('cid'))); } if (isset($_REQUEST['htmlbanner'])) { - $this->_mNavi->addExtra('htmlbanner', xoops_getrequest('htmlbanner')); + $this->mNavi->addExtra('htmlbanner', xoops_getrequest('htmlbanner')); $this->_mCriteria->add(new Criteria('htmlbanner', xoops_getrequest('htmlbanner'))); } Index: xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php:1.1.2.8.2.1 xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php:1.1.2.8.2.2 --- xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php:1.1.2.8.2.1 Sat Oct 7 15:45:22 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php Thu Oct 12 22:56:57 2006 @@ -2,6 +2,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); +require_once XOOPS_MODULE_PATH . "/legacyRender/class/AbstractFilterForm.class.php"; + define('TPLFILE_SORT_KEY_TPL_ID', 1); define('TPLFILE_SORT_KEY_TPL_REFID', 2); define('TPLFILE_SORT_KEY_TPL_MODULE', 3); @@ -15,10 +17,9 @@ define('TPLFILE_SORT_KEY_DEFAULT', TPLFILE_SORT_KEY_TPL_ID); -class LegacyRender_TplfileFilterForm +class LegacyRender_TplfileFilterForm extends LegacyRender_AbstractFilterForm { - var $mSort = 0; - var $_mSortKeys = array( + var $mSortKeys = array( TPLFILE_SORT_KEY_DEFAULT => 'tpl_id', TPLFILE_SORT_KEY_TPL_ID => 'tpl_id', TPLFILE_SORT_KEY_TPL_REFID => 'tpl_refid', @@ -31,31 +32,19 @@ TPLFILE_SORT_KEY_TPL_TYPE => 'tpl_type' ); - var $_mCriteria = null; - - var $_mAttributes = array(); - - var $_mNavi = null; - var $mTplset = null; var $mModule = null; - function LegacyRender_TplfileFilterForm(&$navi) - { - $this->_mNavi =& $navi; - $this->_mCriteria =& new CriteriaCompo(); - } - function fetch() { - $this->mSort = isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : TPLFILE_SORT_KEY_DEFAULT; - - if (abs($this->mSort) > TPLFILE_SORT_KEY_MAXVALUE) { - $this->mSort = TPLFILE_SORT_KEY_DEFAULT; - } + parent::fetch(); + $this->additionalFetch(); + } + function additionalFetch() + { if (isset($_REQUEST['tpl_module'])) { - $this->_mNavi->addExtra('tpl_module', xoops_getrequest('tpl_module')); + $this->mNavi->addExtra('tpl_module', xoops_getrequest('tpl_module')); $this->_mCriteria->add(new Criteria('tpl_module', array(XOBJ_DTYPE_STRING, xoops_getrequest('tpl_module')))); $handler =& xoops_gethandler('module'); @@ -63,43 +52,19 @@ } if (isset($_REQUEST['tpl_type'])) { - $this->_mNavi->addExtra('tpl_type', xoops_getrequest('tpl_type')); + $this->mNavi->addExtra('tpl_type', xoops_getrequest('tpl_type')); $this->_mCriteria->add(new Criteria('tpl_type', array(XOBJ_DTYPE_STRING, xoops_getrequest('tpl_type')))); } if (isset($_REQUEST['tpl_file'])) { - $this->_mNavi->addExtra('tpl_file', xoops_getrequest('tpl_file')); + $this->mNavi->addExtra('tpl_file', xoops_getrequest('tpl_file')); $this->_mCriteria->add(new Criteria('tpl_file', '%' . xoops_getrequest('tpl_file') . '%', 'LIKE')); } // // @todo We can remove the following code: // - $this->_mNavi->addExtra('sort', $this->mSort); - } - - function getSort() - { - $sortkey = abs($this->mSort); - return $this->_mSortKeys[$sortkey]; - } - - function getOrder() - { - return ($this->mSort < 0) ? "DESC" : "ASC"; - } - - function getCriteria($start = 0, $limit = 0) - { - $criteria = $this->_mCriteria; - - $criteria->setStart($start); - $criteria->setLimit($limit); - - $criteria->setSort($this->getSort()); - $criteria->setOrder($this->getOrder()); - - return $criteria; + $this->_mCriteria->addSort($this->getSort(), $this->getOrder()); } } Index: xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php:1.1.2.1.2.1 xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php:1.1.2.1.2.2 --- xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php:1.1.2.1.2.1 Sat Oct 7 15:45:29 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php Thu Oct 12 22:56:57 2006 @@ -9,22 +9,10 @@ */ class LegacyRender_TplfileSetFilterForm extends LegacyRender_TplfileFilterForm { - function LegacyRender_TplfileFilterForm(&$navi) + function additionalFetch() { - $this->_mNavi =& $navi; - $this->_mCriteria =& new CriteriaCompo(); - } - - function fetch() - { - $this->mSort = isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : TPLFILE_SORT_KEY_DEFAULT; - - if (abs($this->mSort) > TPLFILE_SORT_KEY_MAXVALUE) { - $this->mSort = TPLFILE_SORT_KEY_DEFAULT; - } - if (isset($_REQUEST['tpl_module'])) { - $this->_mNavi->addExtra('tpl_module', xoops_getrequest('tpl_module')); + $this->mNavi->addExtra('tpl_module', xoops_getrequest('tpl_module')); $this->_mCriteria->add(new Criteria('tpl_module', array(XOBJ_DTYPE_STRING, xoops_getrequest('tpl_module')))); $handler =& xoops_gethandler('module'); @@ -32,7 +20,7 @@ } if (isset($_REQUEST['tpl_tplset'])) { - $this->_mNavi->addExtra('tpl_tplset', xoops_getrequest('tpl_tplset')); + $this->mNavi->addExtra('tpl_tplset', xoops_getrequest('tpl_tplset')); // // For the procedure of override, must load 'default' template-set here. @@ -51,23 +39,21 @@ } if (isset($_REQUEST['tpl_type'])) { - $this->_mNavi->addExtra('tpl_type', xoops_getrequest('tpl_type')); + $this->mNavi->addExtra('tpl_type', xoops_getrequest('tpl_type')); $this->_mCriteria->add(new Criteria('tpl_type', array(XOBJ_DTYPE_STRING, xoops_getrequest('tpl_type')))); } if (isset($_REQUEST['tpl_file'])) { - $this->_mNavi->addExtra('tpl_file', xoops_getrequest('tpl_file')); + $this->mNavi->addExtra('tpl_file', xoops_getrequest('tpl_file')); $this->_mCriteria->add(new Criteria('tpl_file', '%' . xoops_getrequest('tpl_file') . '%', 'LIKE')); } - $this->_mNavi->addExtra('sort', $this->mSort); - // // check filtering criterion and if module & tplset specified mode, then remove paging function. // if ($this->mModule != null && $this->mTplset != null) { - $this->_mNavi->setPerpage(0); - $this->_mNavi->freezePerpage(); + $this->mNavi->setPerpage(0); + $this->mNavi->freezePerpage(); } } } From minahito @ users.sourceforge.jp Thu Oct 12 22:57:06 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 22:57:06 +0900 Subject: [xoops-cvslog 4956] CVS update: xoops2jp/html/modules/legacyRender/admin/class Message-ID: <20061012135706.58B9A2AC03A@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php diff -u xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php:1.1.2.3.2.3 xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php:removed --- xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php:1.1.2.3.2.3 Sat Oct 7 15:47:29 2006 +++ xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php Thu Oct 12 22:57:06 2006 @@ -1,36 +0,0 @@ -mExtra as $key => $value) { - if (!in_array($key, $mask)) { - $value = htmlspecialchars($value, ENT_QUOTES); - $ret .= ""; - } - } - - return $ret; - } -} - -?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Oct 12 23:11:52 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 23:11:52 +0900 Subject: [xoops-cvslog 4957] CVS update: xoops2jp/html/core Message-ID: <20061012141152.2EE4D2AC059@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_PageNavigator.class.php diff -u xoops2jp/html/core/XCube_PageNavigator.class.php:1.1.2.4 xoops2jp/html/core/XCube_PageNavigator.class.php:1.1.2.5 --- xoops2jp/html/core/XCube_PageNavigator.class.php:1.1.2.4 Thu Oct 12 20:07:02 2006 +++ xoops2jp/html/core/XCube_PageNavigator.class.php Thu Oct 12 23:11:52 2006 @@ -1,7 +1,7 @@ mFlags & XCUBE_PAGENAVI_PERPAGE && !$this->mPerpageFreeze) { $t_perpage = $root->mContext->mRequest->getRequest($this->getPerpageKey()); - if ($t_perpage != null && intval($t_perpage) >= 0) { + if ($t_perpage != null && intval($t_perpage) > 0) { $this->mPerpage = intval($t_perpage); } } @@ -304,7 +304,11 @@ function getTotalPages() { - return ceil($this->getTotalItems() / $this->getPerpage()); + if ($this->getPerpage() > 0) { + return ceil($this->getTotalItems() / $this->getPerpage()); + } + + return 0; } function setPerpage($perpage) From minahito @ users.sourceforge.jp Thu Oct 12 23:45:11 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 23:45:11 +0900 Subject: [xoops-cvslog 4958] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20061012144511.DD6602AC064@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/MiscOnlineAction.class.php diff -u xoops2jp/html/modules/user/actions/MiscOnlineAction.class.php:1.1.2.1 xoops2jp/html/modules/user/actions/MiscOnlineAction.class.php:1.1.2.1.2.1 --- xoops2jp/html/modules/user/actions/MiscOnlineAction.class.php:1.1.2.1 Sun Aug 6 01:45:56 2006 +++ xoops2jp/html/modules/user/actions/MiscOnlineAction.class.php Thu Oct 12 23:45:11 2006 @@ -23,9 +23,9 @@ return $handler; } - function &_getFilterForm(&$navi) + function &_getFilterForm() { - $filter =& new User_OnlineFilterForm($navi); + $filter =& new User_OnlineFilterForm($this->_getPageNavi(), $this->_getHandler()); return $filter; } @@ -43,7 +43,7 @@ } $render->setAttribute("objects", $this->mObjects); - $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); } } From minahito @ users.sourceforge.jp Thu Oct 12 23:45:20 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 23:45:20 +0900 Subject: [xoops-cvslog 4959] CVS update: xoops2jp/html/modules/user/admin/actions Message-ID: <20061012144520.A80A02AC064@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/actions/GroupListAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/GroupListAction.class.php:1.1.2.3 xoops2jp/html/modules/user/admin/actions/GroupListAction.class.php:1.1.2.3.2.1 --- xoops2jp/html/modules/user/admin/actions/GroupListAction.class.php:1.1.2.3 Thu Jul 13 19:44:06 2006 +++ xoops2jp/html/modules/user/admin/actions/GroupListAction.class.php Thu Oct 12 23:45:20 2006 @@ -2,7 +2,6 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/user/class/PageNavigator.class.php"; require_once XOOPS_MODULE_PATH . "/user/class/AbstractListAction.class.php"; require_once XOOPS_MODULE_PATH . "/user/admin/forms/GroupFilterForm.class.php"; @@ -14,9 +13,9 @@ return $handler; } - function &_getFilterForm(&$navi) + function &_getFilterForm() { - $filter =& new User_GroupFilterForm($navi); + $filter =& new User_GroupFilterForm($this->_getPageNavi(), $this->_getHandler()); return $filter; } @@ -29,7 +28,7 @@ { $render->setTemplateName("group_list.html"); $render->setAttribute("objects", $this->mObjects); - $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); } } Index: xoops2jp/html/modules/user/admin/actions/UserListAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/UserListAction.class.php:1.1.2.4 xoops2jp/html/modules/user/admin/actions/UserListAction.class.php:1.1.2.4.2.1 --- xoops2jp/html/modules/user/admin/actions/UserListAction.class.php:1.1.2.4 Thu Jul 13 19:47:17 2006 +++ xoops2jp/html/modules/user/admin/actions/UserListAction.class.php Thu Oct 12 23:45:20 2006 @@ -1,12 +1,11 @@ _getPageNavi(), $this->_getHandler()); return $filter; } @@ -33,7 +32,7 @@ { $render->setTemplateName("user_list.html"); $render->setAttribute("objects", $this->mObjects); - $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); } } Index: xoops2jp/html/modules/user/admin/actions/RanksListAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/RanksListAction.class.php:1.1.2.2 xoops2jp/html/modules/user/admin/actions/RanksListAction.class.php:1.1.2.2.2.1 --- xoops2jp/html/modules/user/admin/actions/RanksListAction.class.php:1.1.2.2 Tue Mar 28 22:31:14 2006 +++ xoops2jp/html/modules/user/admin/actions/RanksListAction.class.php Thu Oct 12 23:45:20 2006 @@ -2,7 +2,6 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/user/class/PageNavigator.class.php"; require_once XOOPS_MODULE_PATH . "/user/class/AbstractListAction.class.php"; require_once XOOPS_MODULE_PATH . "/user/admin/forms/RanksFilterForm.class.php"; @@ -14,9 +13,9 @@ return $handler; } - function &_getFilterForm(&$navi) + function &_getFilterForm() { - $filter =& new User_RanksFilterForm($navi); + $filter =& new User_RanksFilterForm($this->_getPageNavi(), $this->_getHandler()); return $filter; } @@ -29,7 +28,7 @@ { $render->setTemplateName("ranks_list.html"); $render->setAttribute("objects", $this->mObjects); - $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); } } Index: xoops2jp/html/modules/user/admin/actions/AvatarListAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/AvatarListAction.class.php:1.1.2.3 xoops2jp/html/modules/user/admin/actions/AvatarListAction.class.php:1.1.2.3.2.1 --- xoops2jp/html/modules/user/admin/actions/AvatarListAction.class.php:1.1.2.3 Wed Jul 19 19:20:53 2006 +++ xoops2jp/html/modules/user/admin/actions/AvatarListAction.class.php Thu Oct 12 23:45:20 2006 @@ -1,12 +1,11 @@ _getPageNavi(), $this->_getHandler()); return $filter; } @@ -33,7 +32,7 @@ { $render->setTemplateName("avatar_list.html"); $render->setAttribute("objects", $this->mObjects); - $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); } } Index: xoops2jp/html/modules/user/admin/actions/UserSearchListAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/UserSearchListAction.class.php:1.1.2.4 xoops2jp/html/modules/user/admin/actions/UserSearchListAction.class.php:1.1.2.4.2.1 --- xoops2jp/html/modules/user/admin/actions/UserSearchListAction.class.php:1.1.2.4 Mon Sep 25 18:41:04 2006 +++ xoops2jp/html/modules/user/admin/actions/UserSearchListAction.class.php Thu Oct 12 23:45:20 2006 @@ -1,12 +1,11 @@ _getPageNavi(), $this->_getHandler()); return $filter; } @@ -36,9 +35,39 @@ function executeViewIndex(&$controller, &$xoopsUser, &$render) { + $controller->mRoot->mDelegateManager->add('Legacy.Event.Explaceholder.Get.UserPagenaviOtherUrl', +'User_UserSearchListAction::renderOtherUrlControl'); + $render->setTemplateName("user_search_list.html"); $render->setAttribute("objects", $this->mObjects); - $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); + } + + function renderOtherUrlControl(&$buf, $params) + { + if (isset($params['pagenavi']) && is_object($params['pagenavi'])) { + $navi =& $params['pagenavi']; + $url = $params['url']; + if(count($navi->mExtra) > 0) { + $t_arr = array(); + + foreach($navi->mExtra as $key => $value) { + $t_arr[] = $key . "=" . urlencode($value); + } + + if (count($t_arr) == 0) { + $buf = $url; + return; + } + + if (strpos($url,"?")!==false) { + $buf = $url . "&" . implode("&", $t_arr); + } + else { + $buf = $url . "?" . implode("&", $t_arr); + } + } + } } } Index: xoops2jp/html/modules/user/admin/actions/MailjobListAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/MailjobListAction.class.php:1.1.2.2 xoops2jp/html/modules/user/admin/actions/MailjobListAction.class.php:1.1.2.2.2.1 --- xoops2jp/html/modules/user/admin/actions/MailjobListAction.class.php:1.1.2.2 Wed Jul 19 19:20:53 2006 +++ xoops2jp/html/modules/user/admin/actions/MailjobListAction.class.php Thu Oct 12 23:45:20 2006 @@ -1,12 +1,11 @@ _getPageNavi(), $this->_getHandler()); return $filter; } @@ -38,7 +37,7 @@ } $render->setAttribute("objects", $this->mObjects); - $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); } } From minahito @ users.sourceforge.jp Thu Oct 12 23:45:32 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 23:45:32 +0900 Subject: [xoops-cvslog 4960] CVS update: xoops2jp/html/modules/user/admin/forms Message-ID: <20061012144532.E64E92AC064@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/forms/RanksFilterForm.class.php diff -u xoops2jp/html/modules/user/admin/forms/RanksFilterForm.class.php:1.1.2.5 xoops2jp/html/modules/user/admin/forms/RanksFilterForm.class.php:1.1.2.5.2.1 --- xoops2jp/html/modules/user/admin/forms/RanksFilterForm.class.php:1.1.2.5 Thu Jul 13 19:51:28 2006 +++ xoops2jp/html/modules/user/admin/forms/RanksFilterForm.class.php Thu Oct 12 23:45:32 2006 @@ -1,7 +1,7 @@ 'rank_max', RANKS_SORT_KEY_RANK_SPECIAL => 'rank_special' ); + + function getDefaultSortKey() + { + return RANKS_SORT_KEY_DEFAULT; + } function fetch() { - $this->mSort = isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : RANKS_SORT_KEY_DEFAULT; - - if (!isset($this->mSortKeys[abs($this->mSort)])) { - $this->mSort = RANKS_SORT_KEY_DEFAULT; - } + parent::fetch(); if (isset($_REQUEST['rank_special'])) { - $this->_mNavi->addExtra('rank_special', xoops_getrequest('rank_special')); + $this->mNavi->addExtra('rank_special', xoops_getrequest('rank_special')); $this->_mCriteria->add(new Criteria('rank_special', xoops_getrequest('rank_special'))); } Index: xoops2jp/html/modules/user/admin/forms/AvatarFilterForm.class.php diff -u xoops2jp/html/modules/user/admin/forms/AvatarFilterForm.class.php:1.1.2.4 xoops2jp/html/modules/user/admin/forms/AvatarFilterForm.class.php:1.1.2.4.2.1 --- xoops2jp/html/modules/user/admin/forms/AvatarFilterForm.class.php:1.1.2.4 Fri Aug 4 13:39:31 2006 +++ xoops2jp/html/modules/user/admin/forms/AvatarFilterForm.class.php Thu Oct 12 23:45:32 2006 @@ -1,7 +1,7 @@ 'avatar_weight', AVATAR_SORT_KEY_AVATAR_TYPE => 'avatar_type' ); + + function getDefaultSortKey() + { + return AVATAR_SORT_KEY_DEFAULT; + } function fetch() { - $this->mSort = isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : 0; - - if (!isset($this->mSortKeys[abs($this->mSort)])) { - $this->mSort = AVATAR_SORT_KEY_DEFAULT; - } + parent::fetch(); if (isset($_REQUEST['avatar_display'])) { - $this->_mNavi->addExtra('avatar_display', xoops_getrequest('avatar_display')); + $this->mNavi->addExtra('avatar_display', xoops_getrequest('avatar_display')); $this->_mCriteria->add(new Criteria('avatar_display', array(XOBJ_DTYPE_BOOL, xoops_getrequest('avatar_display')))); } if (isset($_REQUEST['avatar_type'])) { - $this->_mNavi->addExtra('avatar_type', xoops_getrequest('avatar_type')); + $this->mNavi->addExtra('avatar_type', xoops_getrequest('avatar_type')); $this->_mCriteria->add(new Criteria('avatar_type', array(XOBJ_DTYPE_STRING, xoops_getrequest('avatar_type')))); } Index: xoops2jp/html/modules/user/admin/forms/UserFilterForm.class.php diff -u xoops2jp/html/modules/user/admin/forms/UserFilterForm.class.php:1.1.2.5 xoops2jp/html/modules/user/admin/forms/UserFilterForm.class.php:1.1.2.5.2.1 --- xoops2jp/html/modules/user/admin/forms/UserFilterForm.class.php:1.1.2.5 Thu Jul 13 19:52:22 2006 +++ xoops2jp/html/modules/user/admin/forms/UserFilterForm.class.php Thu Oct 12 23:45:32 2006 @@ -1,7 +1,7 @@ 'user_mailok' ); - function fetch() + function getDefaultSortKey() { - $this->mSort = isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : USER_SORT_KEY_DEFAULT; + return USER_SORT_KEY_DEFAULT; + } - if (!isset($this->mSortKeys[abs($this->mSort)])) { - $this->mSort = USER_SORT_KEY_DEFAULT; - } + function fetch() + { + parent::fetch(); if (isset($_REQUEST['uid'])) { - $this->_mNavi->addExtra('uid', xoops_getrequest('uid')); + $this->mNavi->addExtra('uid', xoops_getrequest('uid')); $this->_mCriteria->add(new Criteria('uid', xoops_getrequest('uid'))); } if (isset($_REQUEST['email'])) { - $this->_mNavi->addExtra('email', xoops_getrequest('email')); + $this->mNavi->addExtra('email', xoops_getrequest('email')); $this->_mCriteria->add(new Criteria('email', xoops_getrequest('email'))); } if (isset($_REQUEST['attachsig'])) { - $this->_mNavi->addExtra('attachsig', xoops_getrequest('attachsig')); + $this->mNavi->addExtra('attachsig', xoops_getrequest('attachsig')); $this->_mCriteria->add(new Criteria('attachsig', xoops_getrequest('attachsig'))); } if (isset($_REQUEST['rank'])) { - $this->_mNavi->addExtra('rank', xoops_getrequest('rank')); + $this->mNavi->addExtra('rank', xoops_getrequest('rank')); $this->_mCriteria->add(new Criteria('rank', xoops_getrequest('rank'))); } if (isset($_REQUEST['level'])) { - $this->_mNavi->addExtra('level', xoops_getrequest('level')); + $this->mNavi->addExtra('level', xoops_getrequest('level')); $this->_mCriteria->add(new Criteria('level', xoops_getrequest('level'))); } if (isset($_REQUEST['timezone_offset'])) { - $this->_mNavi->addExtra('timezone_offset', xoops_getrequest('timezone_offset')); + $this->mNavi->addExtra('timezone_offset', xoops_getrequest('timezone_offset')); $this->_mCriteria->add(new Criteria('timezone_offset', xoops_getrequest('timezone_offset'))); } if (isset($_REQUEST['user_mailok'])) { - $this->_mNavi->addExtra('user_mailok', xoops_getrequest('user_mailok')); + $this->mNavi->addExtra('user_mailok', xoops_getrequest('user_mailok')); $this->_mCriteria->add(new Criteria('user_mailok', xoops_getrequest('user_mailok'))); } Index: xoops2jp/html/modules/user/admin/forms/GroupFilterForm.class.php diff -u xoops2jp/html/modules/user/admin/forms/GroupFilterForm.class.php:1.1.2.4 xoops2jp/html/modules/user/admin/forms/GroupFilterForm.class.php:1.1.2.4.2.1 --- xoops2jp/html/modules/user/admin/forms/GroupFilterForm.class.php:1.1.2.4 Thu Jul 13 19:50:06 2006 +++ xoops2jp/html/modules/user/admin/forms/GroupFilterForm.class.php Thu Oct 12 23:45:32 2006 @@ -1,7 +1,7 @@ 'group_type' ); - function fetch() + function getDefaultSortKey() { - $this->mSort = isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : GROUP_SORT_KEY_DEFAULT; + return GROUP_SORT_KEY_DEFAULT; + } - if (!isset($this->mSortKeys[abs($this->mSort)])) { - $this->mSort = GROUP_SORT_KEY_DEFAULT; - } + function fetch() + { + parent::fetch(); if (isset($_REQUEST['groupid'])) { - $this->_mNavi->addExtra('groupid', xoops_getrequest('groupid')); + $this->mNavi->addExtra('groupid', xoops_getrequest('groupid')); $this->_mCriteria->add(new Criteria('groupid', xoops_getrequest('groupid'))); } if (isset($_REQUEST['name'])) { - $this->_mNavi->addExtra('name', xoops_getrequest('name')); + $this->mNavi->addExtra('name', xoops_getrequest('name')); $this->_mCriteria->add(new Criteria('name', xoops_getrequest('name'))); } if (isset($_REQUEST['group_type'])) { - $this->_mNavi->addExtra('group_type', xoops_getrequest('group_type')); + $this->mNavi->addExtra('group_type', xoops_getrequest('group_type')); $this->_mCriteria->add(new Criteria('group_type', xoops_getrequest('group_type'))); } Index: xoops2jp/html/modules/user/admin/forms/UserSearchFilterForm.class.php diff -u xoops2jp/html/modules/user/admin/forms/UserSearchFilterForm.class.php:1.1.2.5 xoops2jp/html/modules/user/admin/forms/UserSearchFilterForm.class.php:1.1.2.5.2.1 --- xoops2jp/html/modules/user/admin/forms/UserSearchFilterForm.class.php:1.1.2.5 Mon Sep 25 18:40:16 2006 +++ xoops2jp/html/modules/user/admin/forms/UserSearchFilterForm.class.php Thu Oct 12 23:45:32 2006 @@ -1,7 +1,7 @@ mSort = isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : USER_SORT_KEY_DEFAULT; - - if (!isset($this->mSortKeys[abs($this->mSort)])) { - $this->mSort = USER_SORT_KEY_DEFAULT; - } + parent::fetch(); $form =& new User_UserSearchForm(); $form->prepare(); @@ -103,12 +104,12 @@ foreach ($this->_mMatchFields as $field) { if (strlen($form->get($field)) > 0) { - $this->_mNavi->addExtra($field, $form->get($field)); + $this->mNavi->addExtra($field, $form->get($field)); $this->_mCriteria->add(new Criteria('u.' . $field, '%' . $form->get($field) . '%', 'LIKE')); } } - $this->_mNavi->addExtra('mail_condition', $form->get('mail_condition')); + $this->mNavi->addExtra('mail_condition', $form->get('mail_condition')); switch ($form->get('mail_condition')) { case 1: $this->_mCriteria->add(new Criteria('u.user_mailok', 1)); @@ -119,7 +120,7 @@ break; } - $this->_mNavi->addExtra('user_level', $form->get('user_level')); + $this->mNavi->addExtra('user_level', $form->get('user_level')); switch ($form->get('user_level')) { case 1: $this->_mCriteria->add(new Criteria('u.level', 0, '>')); @@ -131,35 +132,35 @@ } if (strlen($form->get('over_posts')) > 0) { - $this->_mNavi->addExtra('over_posts', $form->get('over_posts')); + $this->mNavi->addExtra('over_posts', $form->get('over_posts')); $this->_mCriteria->add(new Criteria('u.posts', $form->get('over_posts'), '>=')); } if (strlen($form->get('under_posts')) > 0) { - $this->_mNavi->addExtra('under_posts', $form->get('under_posts')); + $this->mNavi->addExtra('under_posts', $form->get('under_posts')); $this->_mCriteria->add(new Criteria('u.posts', $form->get('under_posts'), '<=')); } if (strlen($form->get('lastlog_more')) > 0) { - $this->_mNavi->addExtra('lastlog_more', $form->get('lastlog_more')); + $this->mNavi->addExtra('lastlog_more', $form->get('lastlog_more')); $time = time() - $form->get('lastlog_more') * 86400; $this->_mCriteria->add(new Criteria('u.last_login', $time, '<=')); } if (strlen($form->get('lastlog_less')) > 0) { - $this->_mNavi->addExtra('lastlog_less', $form->get('lastlog_less')); + $this->mNavi->addExtra('lastlog_less', $form->get('lastlog_less')); $time = time() - $form->get('lastlog_more') * 86400; $this->_mCriteria->add(new Criteria('u.last_login', $time, '>=')); } if (strlen($form->get('regdate_more')) > 0) { - $this->_mNavi->addExtra('regdate_more', $form->get('regdate_more')); + $this->mNavi->addExtra('regdate_more', $form->get('regdate_more')); $time = time() - $form->get('regdate_more') * 86400; $this->_mCriteria->add(new Criteria('u.user_regdate', $time, '<=')); } if (strlen($form->get('regdate_less')) > 0) { - $this->_mNavi->addExtra('regdate_less', $form->get('regdate_less')); + $this->mNavi->addExtra('regdate_less', $form->get('regdate_less')); $time = time() - $form->get('regdate_less') * 86400; $this->_mCriteria->add(new Criteria('u.user_regdate', $time, '>=')); } @@ -170,7 +171,7 @@ foreach($groups as $gid) { $g_criteria->add(new Criteria('g.groupid', $gid)); } - $this->_mNavi->addExtra('groups[' . $gid . ']', $gid); + $this->mNavi->addExtra('groups[' . $gid . ']', $gid); $this->_mCriteria->add($g_criteria); } Index: xoops2jp/html/modules/user/admin/forms/MailjobFilterForm.class.php diff -u xoops2jp/html/modules/user/admin/forms/MailjobFilterForm.class.php:1.1.2.4 xoops2jp/html/modules/user/admin/forms/MailjobFilterForm.class.php:1.1.2.4.2.1 --- xoops2jp/html/modules/user/admin/forms/MailjobFilterForm.class.php:1.1.2.4 Thu Jul 13 19:50:53 2006 +++ xoops2jp/html/modules/user/admin/forms/MailjobFilterForm.class.php Thu Oct 12 23:45:32 2006 @@ -28,30 +28,31 @@ MAILJOB_SORT_KEY_IS_MAIL => 'is_mail', MAILJOB_SORT_KEY_CREATE_UNIXTIME => 'create_unixtime' ); + + function getDefaultSortKey() + { + return MAILJOB_SORT_KEY_DEFAULT; + } function fetch() { - $this->mSort = isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : MAILJOB_SORT_KEY_DEFAULT; - - if (!isset($this->mSortKeys[abs($this->mSort)])) { - $this->mSort = MAILJOB_SORT_KEY_DEFAULT; - } + parent::fetch(); if (isset($_REQUEST['title'])) { // // TODO like // - $this->_mNavi->addExtra('title', xoops_getrequest('title')); + $this->mNavi->addExtra('title', xoops_getrequest('title')); $this->_mCriteria->add(new Criteria('title', array(XOBJ_DTYPE_STRING, xoops_getrequest('title')))); } if (isset($_REQUEST['is_pm'])) { - $this->_mNavi->addExtra('is_pm', xoops_getrequest('is_pm')); + $this->mNavi->addExtra('is_pm', xoops_getrequest('is_pm')); $this->_mCriteria->add(new Criteria('is_pm', xoops_getrequest('is_pm'))); } if (isset($_REQUEST['is_mail'])) { - $this->_mNavi->addExtra('is_mail', xoops_getrequest('is_mail')); + $this->mNavi->addExtra('is_mail', xoops_getrequest('is_mail')); $this->_mCriteria->add(new Criteria('is_mail', xoops_getrequest('is_mail'))); } From minahito @ users.sourceforge.jp Thu Oct 12 23:45:33 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 23:45:33 +0900 Subject: [xoops-cvslog 4961] CVS update: xoops2jp/html/modules/user/admin/templates Message-ID: <20061012144533.213332AC1B7@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/templates/user_search_list.html diff -u xoops2jp/html/modules/user/admin/templates/user_search_list.html:1.1.2.13 xoops2jp/html/modules/user/admin/templates/user_search_list.html:1.1.2.13.2.1 --- xoops2jp/html/modules/user/admin/templates/user_search_list.html:1.1.2.13 Sat Aug 19 20:06:35 2006 +++ xoops2jp/html/modules/user/admin/templates/user_search_list.html Thu Oct 12 23:45:32 2006 @@ -7,34 +7,34 @@

<{$smarty.const._AD_USER_LANG_USER_SEARCH_LIST}>

<{$smarty.const._AD_LEGACYRENDER_LANG_TPL_ID}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_TPL_MODULE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_TPL_TPLSET}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_TPL_FILE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_TPL_LASTMODIFIED}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_TPL_LASTIMPORTED}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_LEGACYRENDER_LANG_TPL_TYPE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{else}><{/if}> <{$smarty.const._AD_LEGACYRENDER_LANG_CONTROL}>
+ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> <{foreach item=user from=$objects}> Index: xoops2jp/html/modules/user/admin/templates/mailjob_list.html diff -u xoops2jp/html/modules/user/admin/templates/mailjob_list.html:1.1.2.12 xoops2jp/html/modules/user/admin/templates/mailjob_list.html:1.1.2.12.2.1 --- xoops2jp/html/modules/user/admin/templates/mailjob_list.html:1.1.2.12 Mon Sep 25 02:57:30 2006 +++ xoops2jp/html/modules/user/admin/templates/mailjob_list.html Thu Oct 12 23:45:32 2006 @@ -12,20 +12,20 @@
  <{$smarty.const._MD_USER_LANG_UID}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_USER_LANG_UNAME}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_USER_LANG_NAME}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_REGDATE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_LASTLOGIN}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_USER_LANG_POSTS}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_USER_LANG_LEVEL}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_CONTROL}>
+ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> Index: xoops2jp/html/modules/user/admin/templates/user_list.html diff -u xoops2jp/html/modules/user/admin/templates/user_list.html:1.1.2.21 xoops2jp/html/modules/user/admin/templates/user_list.html:1.1.2.21.2.1 --- xoops2jp/html/modules/user/admin/templates/user_list.html:1.1.2.21 Sat Aug 19 21:35:34 2006 +++ xoops2jp/html/modules/user/admin/templates/user_list.html Thu Oct 12 23:45:32 2006 @@ -13,26 +13,26 @@ + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> <{foreach item=user from=$objects}> Index: xoops2jp/html/modules/user/admin/templates/group_list.html diff -u xoops2jp/html/modules/user/admin/templates/group_list.html:1.1.2.14 xoops2jp/html/modules/user/admin/templates/group_list.html:1.1.2.14.2.1 --- xoops2jp/html/modules/user/admin/templates/group_list.html:1.1.2.14 Sat Aug 19 14:55:45 2006 +++ xoops2jp/html/modules/user/admin/templates/group_list.html Thu Oct 12 23:45:32 2006 @@ -13,17 +13,17 @@ + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> Index: xoops2jp/html/modules/user/admin/templates/avatar_list.html diff -u xoops2jp/html/modules/user/admin/templates/avatar_list.html:1.1.2.18 xoops2jp/html/modules/user/admin/templates/avatar_list.html:1.1.2.18.2.1 --- xoops2jp/html/modules/user/admin/templates/avatar_list.html:1.1.2.18 Tue Sep 19 16:42:06 2006 +++ xoops2jp/html/modules/user/admin/templates/avatar_list.html Thu Oct 12 23:45:32 2006 @@ -12,27 +12,27 @@
<{$smarty.const._AD_USER_LANG_MAILJOB_ID}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_TITLE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_IS_PM}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_IS_MAIL}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_CREATE_UNIXTIME}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_LEFT_TARGET_USER}> <{$smarty.const._AD_USER_LANG_CONTROL}>
  <{$smarty.const._MD_USER_LANG_UID}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_USER_LANG_UNAME}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_USER_LANG_NAME}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_REGDATE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_LASTLOGIN}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_USER_LANG_POSTS}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_USER_LANG_LEVEL}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_CONTROL}>
  <{$smarty.const._AD_USER_LANG_GROUP_GID}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_GROUP_NAME}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_GROUP_DESC}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_GROUP_TYPE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_GROUP_AMMO}> <{$smarty.const._AD_USER_LANG_CONTROL}>
+ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> ) + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> Index: xoops2jp/html/modules/user/admin/templates/ranks_list.html diff -u xoops2jp/html/modules/user/admin/templates/ranks_list.html:1.1.2.15 xoops2jp/html/modules/user/admin/templates/ranks_list.html:1.1.2.15.2.1 --- xoops2jp/html/modules/user/admin/templates/ranks_list.html:1.1.2.15 Mon Sep 4 17:36:31 2006 +++ xoops2jp/html/modules/user/admin/templates/ranks_list.html Thu Oct 12 23:45:32 2006 @@ -12,20 +12,20 @@
<{$smarty.const._MD_USER_LANG_AVATAR_ID}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_AVATAR_FILE}>
( <{$smarty.const._AD_USER_LANG_AVATAR_NAME}> - " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> )
<{$smarty.const._AD_USER_LANG_AVATAR_MIMETYPE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_AVATAR_CREATED}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_AVATAR_DISPLAY}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_AVATAR_WEIGHT}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_AVATAR_TYPE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_AVATAR_USING_COUNT}> <{$smarty.const._AD_USER_LANG_CONTROL}>
+ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> + " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> From minahito @ users.sourceforge.jp Thu Oct 12 23:45:42 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 23:45:42 +0900 Subject: [xoops-cvslog 4962] CVS update: xoops2jp/html/modules/user/class Message-ID: <20061012144542.191E62AC1B7@users.sourceforge.jp> Index: xoops2jp/html/modules/user/class/AbstractListAction.class.php diff -u xoops2jp/html/modules/user/class/AbstractListAction.class.php:1.1.2.2 xoops2jp/html/modules/user/class/AbstractListAction.class.php:1.1.2.2.2.1 --- xoops2jp/html/modules/user/class/AbstractListAction.class.php:1.1.2.2 Tue Mar 28 22:32:03 2006 +++ xoops2jp/html/modules/user/class/AbstractListAction.class.php Thu Oct 12 23:45:41 2006 @@ -2,41 +2,38 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/user/class/PageNavigator.class.php"; +require_once XOOPS_ROOT_PATH . "/core/XCube_PageNavigator.class.php"; class User_AbstractListAction extends User_Action { var $mObjects = array(); var $mFilter = null; - var $mNavi = null; function &_getHandler() { } - function &_getFilterForm(&$navi) + function &_getFilterForm() { } function _getBaseUrl() { } + + function &_getPageNavi() + { + $navi =& new XCube_PageNavigator($this->_getBaseUrl(), XCUBE_PAGENAVI_START); + return $navi; + } function getDefaultView(&$controller, &$xoopsUser) { - $this->mNavi =& new User_PageNavigator($this->_getBaseUrl(), 0, XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); - - $this->mFilter =& $this->_getFilterForm($this->mNavi); + $this->mFilter =& $this->_getFilterForm(); $this->mFilter->fetch(); - $handler =& $this->_getHandler(); - $total = $handler->getCount($this->mFilter->getCriteria()); - - $this->mNavi->setTotal($total); - $this->mNavi->fetch(); - - $criteria = $this->mFilter->getCriteria($this->mNavi->getStart(), $this->mNavi->getPerpage()); - $this->mObjects =& $handler->getObjects($criteria); + $handler =& $this->_getHandler(); + $this->mObjects =& $handler->getObjects($this->mFilter->getCriteria()); return USER_FRAME_VIEW_INDEX; } Index: xoops2jp/html/modules/user/class/AbstractFilterForm.class.php diff -u xoops2jp/html/modules/user/class/AbstractFilterForm.class.php:1.1.2.4 xoops2jp/html/modules/user/class/AbstractFilterForm.class.php:1.1.2.4.2.1 --- xoops2jp/html/modules/user/class/AbstractFilterForm.class.php:1.1.2.4 Thu Jul 13 19:53:55 2006 +++ xoops2jp/html/modules/user/class/AbstractFilterForm.class.php Thu Oct 12 23:45:41 2006 @@ -7,18 +7,45 @@ var $mSort = 0; var $mSortKeys = array(); var $_mCriteria = null; - var $_mNavi = null; + var $mNavi = null; - function User_AbstractFilterForm(&$navi) + function User_AbstractFilterForm(&$navi, &$handler) { - $this->_mNavi =& $navi; + $this->mNavi =& $navi; + $this->_mHandler =& $handler; + $this->_mCriteria =& new CriteriaCompo(); + + $this->mNavi->mGetTotalItems->add(array(&$this, 'getTotalItems')); } - function fetch() + function getDefaultSortKey() { } + + function getTotalItems(&$total) + { + $total = $this->_mHandler->getCount($this->getCriteria()); + } + + function fetchSort() + { + $root =& XCube_Root::getSingleton(); + $this->mSort = intval($root->mContext->mRequest->getRequest('sort')); + + if (!isset($this->mSortKeys[abs($this->mSort)])) { + $this->mSort = $this->getDefaultSortKey(); + } + + $this->mNavi->mSort['sort'] = $this->mSort; + } + function fetch() + { + $this->mNavi->fetch(); + $this->fetchSort(); + } + function getSort() { $sortkey = abs($this->mSort); @@ -30,12 +57,15 @@ return ($this->mSort < 0) ? "DESC" : "ASC"; } - function getCriteria($start = 0, $limit = 0) + function getCriteria($start = null, $limit = null) { + $t_start = ($start === null) ? $this->mNavi->getStart() : intval($start); + $t_limit = ($limit === null) ? $this->mNavi->getPerpage() : intval($limit); + $criteria = $this->_mCriteria; - $criteria->setStart($start); - $criteria->setLimit($limit); + $criteria->setStart($t_start); + $criteria->setLimit($t_limit); return $criteria; } From minahito @ users.sourceforge.jp Thu Oct 12 23:45:48 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 12 Oct 2006 23:45:48 +0900 Subject: [xoops-cvslog 4963] CVS update: xoops2jp/html/modules/user/class Message-ID: <20061012144548.14EF62AC064@users.sourceforge.jp> Index: xoops2jp/html/modules/user/class/PageNavigator.class.php diff -u xoops2jp/html/modules/user/class/PageNavigator.class.php:1.1.2.4.2.2 xoops2jp/html/modules/user/class/PageNavigator.class.php:removed --- xoops2jp/html/modules/user/class/PageNavigator.class.php:1.1.2.4.2.2 Fri Sep 29 17:14:45 2006 +++ xoops2jp/html/modules/user/class/PageNavigator.class.php Thu Oct 12 23:45:48 2006 @@ -1,75 +0,0 @@ -mExtra as $key => $value) { - if (!isset($mask[$key])) { - $value = htmlspecialchars($value, ENT_QUOTES); - $ret .= ""; - } - } - - return $ret; - } - - /** - * Render URL with replacing base url. This method is used to user search list. - * - * @param $url string - * @param $mask mixed - */ - function getRenderOtherUrl($url, $mask = null) - { - if ($mask == null) { - $mask = array(); - } - if (!is_array($mask)) { - $mask = array($mask); - } - - if(count($this->mExtra) > 0) { - $tarr=array(); - - foreach($this->mExtra as $key=>$value) { - if (is_array($mask) && !isset($mask[$key])) { - $tarr[]=$key."=".urlencode($value); - } - } - - if (count($tarr)==0) { - return $url; - } - - if(strpos($url,"?")!==false) { - return $url."&".implode("&",$tarr); - } - else { - return $url."?".implode("&",$tarr); - } - } - - return $url; - } -} - -?> From minahito @ users.sourceforge.jp Fri Oct 13 13:56:49 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 13:56:49 +0900 Subject: [xoops-cvslog 4964] CVS update: xoops2jp/html/core Message-ID: <20061013045649.848192AC0C7@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_PageNavigator.class.php diff -u xoops2jp/html/core/XCube_PageNavigator.class.php:1.1.2.5 xoops2jp/html/core/XCube_PageNavigator.class.php:1.1.2.6 --- xoops2jp/html/core/XCube_PageNavigator.class.php:1.1.2.5 Thu Oct 12 23:11:52 2006 +++ xoops2jp/html/core/XCube_PageNavigator.class.php Fri Oct 13 13:56:49 2006 @@ -1,7 +1,7 @@ _mIsSpecifedTotalItems == false) { - $total = 0; - $this->mGetTotalItems->call(new XCube_Ref($total)); - $this->setTotalItems($total); - + $this->mGetTotalItems->call(new XCube_Ref($this->mTotal)); $this->_mIsSpecifedTotalItems = true; } From minahito @ users.sourceforge.jp Fri Oct 13 14:06:55 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 14:06:55 +0900 Subject: [xoops-cvslog 4965] CVS update: xoops2jp/html/modules/base/class Message-ID: <20061013050655.2BAC52AC105@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/PageNavigator.class.php diff -u xoops2jp/html/modules/base/class/PageNavigator.class.php:1.1.2.3.2.2 xoops2jp/html/modules/base/class/PageNavigator.class.php:removed --- xoops2jp/html/modules/base/class/PageNavigator.class.php:1.1.2.3.2.2 Fri Sep 29 17:14:01 2006 +++ xoops2jp/html/modules/base/class/PageNavigator.class.php Fri Oct 13 14:06:55 2006 @@ -1,37 +0,0 @@ -mExtra as $key => $value) { - if (!isset($mask[$key])) { - $value = htmlspecialchars($value, ENT_QUOTES); - $ret .= ""; - } - } - - - return $ret; - } -} - -?> From minahito @ users.sourceforge.jp Fri Oct 13 14:09:14 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 14:09:14 +0900 Subject: [xoops-cvslog 4966] CVS update: xoops2jp/html/modules/base/class Message-ID: <20061013050914.266512AC11D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/AbstractListAction.class.php diff -u xoops2jp/html/modules/base/class/AbstractListAction.class.php:1.1.2.2.2.1 xoops2jp/html/modules/base/class/AbstractListAction.class.php:1.1.2.2.2.2 --- xoops2jp/html/modules/base/class/AbstractListAction.class.php:1.1.2.2.2.1 Thu Oct 12 20:03:16 2006 +++ xoops2jp/html/modules/base/class/AbstractListAction.class.php Fri Oct 13 14:09:14 2006 @@ -2,7 +2,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/PageNavigator.class.php"; +require_once XOOPS_ROOT_PATH . "/core/XCube_PageNavigator.class.php"; class Legacy_AbstractListAction extends Legacy_Action { From minahito @ users.sourceforge.jp Fri Oct 13 14:09:27 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 14:09:27 +0900 Subject: [xoops-cvslog 4967] CVS update: xoops2jp/html/modules/legacyRender/admin/actions Message-ID: <20061013050927.789BA2AC11D@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php:1.1.2.13.2.2 xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php:1.1.2.13.2.3 --- xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php:1.1.2.13.2.2 Thu Oct 12 22:56:57 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/TplfileListAction.class.php Fri Oct 13 14:09:27 2006 @@ -1,7 +1,7 @@ mExtra as $key => $value) { From minahito @ users.sourceforge.jp Fri Oct 13 14:09:34 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 14:09:34 +0900 Subject: [xoops-cvslog 4968] CVS update: xoops2jp/html/modules/legacyRender/admin/templates Message-ID: <20061013050934.B2F5A2AC066@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html diff -u xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html:1.1.2.24.2.1 xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html:1.1.2.24.2.2 --- xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html:1.1.2.24.2.1 Thu Oct 12 22:56:44 2006 +++ xoops2jp/html/modules/legacyRender/admin/templates/tplfile_list.html Fri Oct 13 14:09:34 2006 @@ -15,7 +15,7 @@
<{$smarty.const._AD_LEGACYRENDER_LANG_SEARCH_TEMPLATE}> : - <{xoops_explaceholder control=LegacyRenderPagenaviHidden mask=tpl_file}> + <{xoops_explaceholder control=LegacyRenderPagenaviHidden pagenavi=$pageNavi mask=tpl_file}> From minahito @ users.sourceforge.jp Fri Oct 13 14:09:58 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 14:09:58 +0900 Subject: [xoops-cvslog 4969] CVS update: xoops2jp/html/modules/pm/actions Message-ID: <20061013050958.9B1462AC066@users.sourceforge.jp> Index: xoops2jp/html/modules/pm/actions/DefaultAction.class.php diff -u xoops2jp/html/modules/pm/actions/DefaultAction.class.php:1.1.2.2.2.3 xoops2jp/html/modules/pm/actions/DefaultAction.class.php:1.1.2.2.2.4 --- xoops2jp/html/modules/pm/actions/DefaultAction.class.php:1.1.2.2.2.3 Thu Oct 5 19:18:14 2006 +++ xoops2jp/html/modules/pm/actions/DefaultAction.class.php Fri Oct 13 14:09:58 2006 @@ -1,7 +1,7 @@ getCountByFromUid($xoopsUser->uid()); - $this->mPageNavi =& new XCube_PageNavigator("./index.php", $total, XCUBE_PAGENAVI_START); + $this->mPageNavi =& new XCube_PageNavigator("./index.php", XCUBE_PAGENAVI_START); + $this->mPageNavi->setTotalItems($total); $this->mPageNavi->fetch(); $this->mPmObjects =& $pmHandler->getObjectsByFromUid($xoopsUser->uid(), $this->mPageNavi->getStart()); From minahito @ users.sourceforge.jp Fri Oct 13 14:10:17 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 14:10:17 +0900 Subject: [xoops-cvslog 4970] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20061013051017.C74992AC10F@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/AvatarEditAction.class.php diff -u xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.9 xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.9.2.1 --- xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.9 Mon Sep 25 18:39:28 2006 +++ xoops2jp/html/modules/user/actions/AvatarEditAction.class.php Fri Oct 13 14:10:17 2006 @@ -1,7 +1,7 @@ mNavi =& new User_PageNavigator("index.php?AvatarUpload", 0, XCUBE_PAGENAVI_START); + $this->mNavi =& new XCube_PageNavigator("index.php?AvatarUpload", XCUBE_PAGENAVI_START); - $this->mFilter =& new User_AvatarFilterForm($this->mNavi); - $this->mFilter->fetch(); - $handler =& xoops_gethandler('avatar'); - - $total = $handler->getCount($this->mFilter->getCriteria()); - - $this->mNavi->setTotal($total); - $this->mNavi->fetch(); + $this->mFilter =& new User_AvatarFilterForm($this->mNavi, xoops_gethandler('avatar')); + $this->mFilter->mNavi->fetch(); $criteria = $this->mFilter->getCriteria($this->mNavi->getStart(), $this->mNavi->getPerpage()); $this->mSystemAvatars =& $handler->getObjects($criteria); From minahito @ users.sourceforge.jp Fri Oct 13 14:10:35 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 14:10:35 +0900 Subject: [xoops-cvslog 4971] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20061013051035.74E9F2AC10F@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/MiscOnlineAction.class.php diff -u xoops2jp/html/modules/user/actions/MiscOnlineAction.class.php:1.1.2.1.2.1 xoops2jp/html/modules/user/actions/MiscOnlineAction.class.php:1.1.2.1.2.2 --- xoops2jp/html/modules/user/actions/MiscOnlineAction.class.php:1.1.2.1.2.1 Thu Oct 12 23:45:11 2006 +++ xoops2jp/html/modules/user/actions/MiscOnlineAction.class.php Fri Oct 13 14:10:35 2006 @@ -6,7 +6,6 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/user/class/PageNavigator.class.php"; require_once XOOPS_MODULE_PATH . "/user/class/AbstractListAction.class.php"; require_once XOOPS_MODULE_PATH . "/user/forms/OnlineFilterForm.class.php"; From minahito @ users.sourceforge.jp Fri Oct 13 14:10:51 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 14:10:51 +0900 Subject: [xoops-cvslog 4972] CVS update: xoops2jp/html/modules/base/actions Message-ID: <20061013051051.878EC2AC10F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/actions/MiscFriendAction.class.php diff -u xoops2jp/html/modules/base/actions/MiscFriendAction.class.php:1.1.2.3.2.1 xoops2jp/html/modules/base/actions/MiscFriendAction.class.php:1.1.2.3.2.2 --- xoops2jp/html/modules/base/actions/MiscFriendAction.class.php:1.1.2.3.2.1 Thu Oct 5 19:17:46 2006 +++ xoops2jp/html/modules/base/actions/MiscFriendAction.class.php Fri Oct 13 14:10:51 2006 @@ -6,7 +6,6 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/PageNavigator.class.php"; require_once XOOPS_MODULE_PATH . "/base/class/AbstractListAction.class.php"; require_once XOOPS_MODULE_PATH . "/base/forms/MiscFriendForm.class.php"; Index: xoops2jp/html/modules/base/actions/ImageListAction.class.php diff -u xoops2jp/html/modules/base/actions/ImageListAction.class.php:1.1.2.3.2.1 xoops2jp/html/modules/base/actions/ImageListAction.class.php:1.1.2.3.2.2 --- xoops2jp/html/modules/base/actions/ImageListAction.class.php:1.1.2.3.2.1 Thu Oct 12 20:01:30 2006 +++ xoops2jp/html/modules/base/actions/ImageListAction.class.php Fri Oct 13 14:10:51 2006 @@ -2,7 +2,6 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/PageNavigator.class.php"; require_once XOOPS_MODULE_PATH . "/base/class/AbstractListAction.class.php"; require_once XOOPS_MODULE_PATH . "/base/forms/ImageFilterForm.class.php"; Index: xoops2jp/html/modules/base/actions/MiscSmiliesAction.class.php diff -u xoops2jp/html/modules/base/actions/MiscSmiliesAction.class.php:1.1.2.1 xoops2jp/html/modules/base/actions/MiscSmiliesAction.class.php:1.1.2.1.2.1 --- xoops2jp/html/modules/base/actions/MiscSmiliesAction.class.php:1.1.2.1 Thu Jul 27 18:31:02 2006 +++ xoops2jp/html/modules/base/actions/MiscSmiliesAction.class.php Fri Oct 13 14:10:51 2006 @@ -1,12 +1,11 @@ Index: xoops2jp/html/modules/base/admin/actions/ImageListAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/ImageListAction.class.php:1.1.2.4.2.1 xoops2jp/html/modules/base/admin/actions/ImageListAction.class.php:1.1.2.4.2.2 --- xoops2jp/html/modules/base/admin/actions/ImageListAction.class.php:1.1.2.4.2.1 Thu Oct 12 20:02:10 2006 +++ xoops2jp/html/modules/base/admin/actions/ImageListAction.class.php Fri Oct 13 14:11:00 2006 @@ -1,12 +1,11 @@ Index: xoops2jp/html/modules/user/admin/actions/GroupPropertyAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/GroupPropertyAction.class.php:1.1.2.9.2.2 xoops2jp/html/modules/user/admin/actions/GroupPropertyAction.class.php:1.1.2.9.2.3 --- xoops2jp/html/modules/user/admin/actions/GroupPropertyAction.class.php:1.1.2.9.2.2 Fri Sep 29 17:14:45 2006 +++ xoops2jp/html/modules/user/admin/actions/GroupPropertyAction.class.php Fri Oct 13 14:11:09 2006 @@ -1,7 +1,7 @@ getUserCountByGroup($this->mGroup->getVar('groupid')); - $this->mPageNavi =& new XCube_PageNavigator("./index.php?action=RankList", $total, XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); // TODO get controller->getUrl() ? + $this->mPageNavi =& new XCube_PageNavigator("./index.php?action=RankList", XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); // TODO get controller->getUrl() ? + $this->mPageNavi->setTotalItems($total); $this->mPageNavi->fetch(); Index: xoops2jp/html/modules/user/admin/actions/GroupMemberAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/GroupMemberAction.class.php:1.1.2.4.2.2 xoops2jp/html/modules/user/admin/actions/GroupMemberAction.class.php:1.1.2.4.2.3 --- xoops2jp/html/modules/user/admin/actions/GroupMemberAction.class.php:1.1.2.4.2.2 Fri Sep 29 17:14:45 2006 +++ xoops2jp/html/modules/user/admin/actions/GroupMemberAction.class.php Fri Oct 13 14:11:09 2006 @@ -1,7 +1,7 @@ getUserCountByGroup($groupid); - $this->mPageNavi =& new XCube_PageNavigator("./index.php?action=GroupMember", $total, XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); // TODO get controller->getUrl() ? + $this->mPageNavi =& new XCube_PageNavigator("./index.php?action=GroupMember", XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); // TODO get controller->getUrl() ? + $this->mPageNavi->setTotalItems($total); $this->mPageNavi->addExtra('groupid', $groupid); $this->mPageNavi->setPerpage(USER_GROUPMEMBER_DEFAULT_PERPAGE); @@ -75,7 +76,8 @@ // $total = $memberHandler->getUserCountByNoGroup($groupid); - $this->mNoPageNavi=new XCube_PageNavigator("./index.php?action=GroupMember", $total, XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); // TODO get controller->getUrl() ? + $this->mNoPageNavi=new XCube_PageNavigator("./index.php?action=GroupMember", XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); // TODO get controller->getUrl() ? + $this->mNoPageNavi->setTotalItems($total); $this->mNoPageNavi->addExtra('groupid', $groupid); $this->mNoPageNavi->setPrefix("no"); $this->mNoPageNavi->setPerpage(USER_GROUPMEMBER_DEFAULT_PERPAGE); Index: xoops2jp/html/modules/user/admin/actions/MailjobEditAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/MailjobEditAction.class.php:1.1.2.5 xoops2jp/html/modules/user/admin/actions/MailjobEditAction.class.php:1.1.2.5.2.1 --- xoops2jp/html/modules/user/admin/actions/MailjobEditAction.class.php:1.1.2.5 Mon Sep 25 18:41:04 2006 +++ xoops2jp/html/modules/user/admin/actions/MailjobEditAction.class.php Fri Oct 13 14:11:09 2006 @@ -1,14 +1,15 @@ mActionForm =& new User_MailjobAdminEditForm(); $this->mActionForm->prepare(); - $this->mPageNavi =& new User_PageNavigator('./index?action=MailjobEdit', 0, XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); - $this->mFilter =& new User_UserSearchFilterForm($this->mPageNavi); + $this->mPageNavi =& new XCube_PageNavigator('./index?action=MailjobEdit', XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); + $this->mFilter =& new User_UserSearchFilterForm($this->mPageNavi, xoops_getmodulehandler('users_search', 'user')); $this->mFilter->fetch(); + + $root =& XCube_Root::getSingleton(); + $root->mDelegateManager->add('Legacy.Event.Explaceholder.Get.UserPagenaviHidden', 'User_MailjobEditAction::renderHiddenControl'); } function execute(&$controller, &$xoopsUser) @@ -86,6 +90,21 @@ { $controller->executeForward("./index.php?action=MailjobList"); } + + function renderHiddenControl(&$buf, $params) + { + if (isset($params['pagenavi']) && is_object($params['pagenavi'])) { + $navi =& $params['pagenavi']; + $mask = isset($params['mask']) ? $params['mask'] : null; + + foreach ($navi->mExtra as $key => $value) { + if ($key != $mask) { + $value = htmlspecialchars($value, ENT_QUOTES); + $buf .= ""; + } + } + } + } } ?> From minahito @ users.sourceforge.jp Fri Oct 13 14:11:17 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 14:11:17 +0900 Subject: [xoops-cvslog 4975] CVS update: xoops2jp/html/modules/user/admin/templates Message-ID: <20061013051117.169562AC066@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/templates/mailjob_edit.html diff -u xoops2jp/html/modules/user/admin/templates/mailjob_edit.html:1.1.2.12 xoops2jp/html/modules/user/admin/templates/mailjob_edit.html:1.1.2.12.2.1 --- xoops2jp/html/modules/user/admin/templates/mailjob_edit.html:1.1.2.12 Mon Sep 25 02:57:30 2006 +++ xoops2jp/html/modules/user/admin/templates/mailjob_edit.html Fri Oct 13 14:11:16 2006 @@ -27,7 +27,7 @@ <{xoops_token form=$actionForm}> <{xoops_input type=hidden name=mailjob_id value=$actionForm->get('mailjob_id')}> - <{$pageNavi->renderHidden()}> + <{xoops_explaceholder control=UserPagenaviHidden pagenavi=$pageNavi}>
<{$smarty.const._MD_USER_LANG_RANK_ID}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_RANK_TITLE}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_RANK_MIN}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_RANK_MAX}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_RANK_SPECIAL}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_RANK_IMAGE}> <{$smarty.const._AD_USER_LANG_CONTROL}>
From minahito @ users.sourceforge.jp Fri Oct 13 18:21:04 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 18:21:04 +0900 Subject: [xoops-cvslog 4986] CVS update: xoops2jp/html/modules/base/class Message-ID: <20061013092104.25B0A2AC053@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php diff -u xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php:1.1.2.9.2.3 xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php:removed --- xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php:1.1.2.9.2.3 Sat Oct 7 16:33:21 2006 +++ xoops2jp/html/modules/base/class/Legacy_ModuleAdapter.class.php Fri Oct 13 18:21:04 2006 @@ -1,132 +0,0 @@ -mAdaptee =& $xoopsModule; - $this->mSearchAction =& new XCube_Delegate(); - $this->mSearchAction->register('Legacy_ModuleAdapter.SearchAction'); - } - - function prepareAdmin(&$controller) - { - $this->mAdaptee->loadAdminMenu(); - if(count($this->mAdaptee->adminmenu)>0 || isset($this->mAdaptee->modinfo['config']) ) { - $controller->mRoot->mDelegateManager->add('Legacy_ActSearchAction.SearchAction', array(&$this, 'callbackSearchAction')); - } - } - - function callbackSearchAction(&$searchArgs) - { - if(!is_object($searchArgs)) { - return; - } - - // - // Search preference - // - if(isset($this->mAdaptee->modinfo['config'])&&count($this->mAdaptee->modinfo['config'])>0) { - $configInfos=array(); - foreach($this->mAdaptee->modinfo['config'] as $config) { - if(isset($config['title'])) - $configInfos[]=@constant($config['title']); - if(isset($config['description'])) - $configInfos[]=@constant($config['description']); - if(isset($config['options'])&&count($config['options'])>0) { - foreach($config['options'] as $key=>$val) { - $configInfos[]=$key; - } - } - } - - $findFlag=true; - foreach($searchArgs->getKeywords() as $word) { - $findFlag&=(stristr(implode(" ",$configInfos),$word)!==false); - } - - if($findFlag) { - $searchArgs->addRecord($this->mAdaptee->getVar('name'), - XOOPS_URL.'/modules/base/admin/index.php?action=PreferenceEdit&confmod_id='.$this->mAdaptee->getVar('mid'), - _PREFERENCES ); - } - } - - // - // Search AdminMenu - // - if(count($this->mAdaptee->adminmenu)>0) { - foreach($this->mAdaptee->adminmenu as $menu) { - $findFlag=true; - foreach($searchArgs->getKeywords() as $word) { - $tmpFlag=false; - $tmpFlag|=(stristr($menu['title'],$word)!==false); - - // Search keyword - if(isset($menu['keywords'])) { - $keyword=is_array($menu['keywords']) ? implode(" ",$menu['keywords']) : $menu['keywords']; - $tmpFlag|=(stristr($keyword,$word)!==false); - } - - $findFlag&=$tmpFlag; - } - - if($findFlag) { - // - // Create url string with absolute information. - // - $url=""; - if(isset($menu['absolute'])&&$menu['absolute']) { - $url=$menu['link']; - } - else { - $url=XOOPS_URL."/modules/".$this->mAdaptee->getVar('dirname')."/".$menu['link']; - } - - // - // Add record - // - $searchArgs->addRecord($this->mAdaptee->getVar('name'),$url,$menu['title']); - } - } - } - - // - // Search help - // - if ($this->mAdaptee->hasHelp()) { - $root =& XCube_Root::getSingleton(); - $language = $root->mContext->getXoopsConfig('language'); - $helpfile = $this->mAdaptee->getHelp(); - $dir = XOOPS_MODULE_PATH . "/" . $this->mAdaptee->getVar('dirname') . "/language/" . $language; - - if (!file_exists($dir . "/" . $helpfile)) { - $dir = XOOPS_MODULE_PATH . "/" . $this->mAdaptee->getVar('dirname') . "/language/" . $language; - if (!file_exists($dir . "/" . $helpfile)) { - return; - } - } - $lines = file($dir . "/" . $helpfile); - foreach ($lines as $line) { - foreach($searchArgs->getKeywords() as $word) { - if (stristr($line, $word) !== false) { - $url = XOOPS_MODULE_URL . "/base/admin/index.php?action=Help&dirname=" . $this->mAdaptee->getVar('dirname'); - $searchArgs->addRecord($this->mAdaptee->getVar('name'), $url, _HELP); - return; - } - } - } - } - } -} - -?> \ No newline at end of file From minahito @ users.sourceforge.jp Fri Oct 13 18:21:23 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 18:21:23 +0900 Subject: [xoops-cvslog 4987] CVS update: xoops2jp/html/modules/base/forms Message-ID: <20061013092123.5D69A2AC053@users.sourceforge.jp> Index: xoops2jp/html/modules/base/forms/SmilesFilterForm.class.php diff -u xoops2jp/html/modules/base/forms/SmilesFilterForm.class.php:1.1.2.3.2.1 xoops2jp/html/modules/base/forms/SmilesFilterForm.class.php:1.1.2.3.2.2 --- xoops2jp/html/modules/base/forms/SmilesFilterForm.class.php:1.1.2.3.2.1 Thu Oct 12 20:03:40 2006 +++ xoops2jp/html/modules/base/forms/SmilesFilterForm.class.php Fri Oct 13 18:21:23 2006 @@ -32,24 +32,8 @@ { parent::fetch(); - if (isset($_REQUEST['id'])) { - $this->_mCriteria->add(new Criteria('id', array(XOBJ_DTYPE_INT, xoops_getrequest('id')))); - } - - if (isset($_REQUEST['code'])) { - $this->_mCriteria->add(new Criteria('code', array(XOBJ_DTYPE_STRING, xoops_getrequest('code')))); - } - - if (isset($_REQUEST['smile_url'])) { - $this->_mCriteria->add(new Criteria('smile_url', array(XOBJ_DTYPE_STRING, xoops_getrequest('smile_url')))); - } - - if (isset($_REQUEST['emotion'])) { - $this->_mCriteria->add(new Criteria('emotion', array(XOBJ_DTYPE_STRING, xoops_getrequest('emotion')))); - } - - if (isset($_REQUEST['display'])) { - $this->_mCriteria->add(new Criteria('display', array(XOBJ_DTYPE_BOOL, xoops_getrequest('display')))); + if (isset($_REQUEST['target'])) { + $this->mNavi->addExtra('target', xoops_getrequest('target')); } $this->_mCriteria->addSort($this->getSort(), $this->getOrder()); From minahito @ users.sourceforge.jp Fri Oct 13 18:21:40 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 18:21:40 +0900 Subject: [xoops-cvslog 4988] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061013092140.628592AC053@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.6 xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.7 --- xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.6 Thu Oct 12 20:03:56 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_PublicControllerStrategy.class.php Fri Oct 13 18:21:40 2006 @@ -1,7 +1,7 @@ getByDirname($dirname); - - if (!is_object($module)) { - return; - } - - $context->mModule =& $this->_createModule($module); - $context->mXoopsModule =& $context->mModule->getXoopsModule(); - - if ($context->mXoopsModule->get('hasconfig') == 1 || $context->mXoopsModule->get('hascomments') == 1) { - $handler =& xoops_gethandler('config'); - - $context->mModule->setModuleConfig($handler->getConfigsByCat(0, $context->mXoopsModule->get('mid'))); - $context->mModuleConfig = $context->mModule->getModuleConfig(); - } - - // - // Load Roles - // - Legacy_RoleManager::loadRolesByMid($context->mXoopsModule->get('mid')); - } - - /** - * Creates a instance of the module with the generating convention. And, - * returns it. - * @static - * @return Legacy_Module - */ - function &_createModule($module) - { - $instance = null; - $dirname = $module->get('dirname'); - - // - // IMPORTANT CONVENTION - // - $className = ucfirst($dirname) . "_Module"; - if (!class_exists($className)) { - $filePath = XOOPS_ROOT_PATH . "/modules/${dirname}/class/Module.class.php"; - if (file_exists($filePath)) { - require_once $filePath; - } - } - - if (class_exists($className)) { - $instance =& new $className($module); - } - else { - $instance =& new Legacy_ModuleAdapter($module); - } - - return $instance; - } - function setupBlock() { $showFlag =0; Index: xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php:1.1.2.4 xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php:1.1.2.5 --- xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php:1.1.2.4 Thu Oct 12 20:03:56 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_AdminControllerStrategy.class.php Fri Oct 13 18:21:40 2006 @@ -1,7 +1,7 @@ get('dirname'); - - // - // IMPORTANT CONVENTION - // - $className = ucfirst($dirname) . "_AdminModule"; - if (!class_exists($className)) { - $filePath = XOOPS_ROOT_PATH . "/modules/${dirname}/admin/class/Module.class.php"; - if (file_exists($filePath)) { - require_once $filePath; - } - } - - if (class_exists($className)) { - $instance =& new $className($module); - } - else { - $instance =& new Legacy_ModuleAdapter($module); - } - - return $instance; + parent::setupModuleContext(&$context, $dirname); } function setupBlock() Index: xoops2jp/html/modules/base/kernel/Legacy_Module.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Module.class.php:1.1.2.5 xoops2jp/html/modules/base/kernel/Legacy_Module.class.php:1.1.2.6 --- xoops2jp/html/modules/base/kernel/Legacy_Module.class.php:1.1.2.5 Thu Oct 12 20:03:56 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Module.class.php Fri Oct 13 18:21:40 2006 @@ -1,7 +1,7 @@ mCacheInfo; } + + /** + * This method is called by the controller strategy, if this module is the + * current module. + */ + function startup() + { + } function searchAction(&$searchArgs) { Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.13 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.14 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.79.2.13 Thu Oct 12 20:03:56 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Fri Oct 13 18:21:40 2006 @@ -1,7 +1,7 @@ mRoot->mContext->mModule != null) { - if (!$this->mRoot->mContext->mModule->isActive()) { + $module =& $this->mRoot->mContext->mModule; + if (!$module->isActive()) { /** * Notify that the current user accesses none-activate module * controller. @@ -392,9 +393,10 @@ } $this->_mStrategy->setupModuleLanguage(); + $module->startup(); - $GLOBALS['xoopsModule'] =& $this->mRoot->mContext->mXoopsModule; - $GLOBALS['xoopsModuleConfig'] =& $this->mRoot->mContext->mModuleConfig; + $GLOBALS['xoopsModule'] =& $module->mXoopsModule; + $GLOBALS['xoopsModuleConfig'] =& $module->mModuleConfig; } } @@ -1254,17 +1256,67 @@ /** * Create some instances for the module process. * @param Legacy_HttpContext $context + * @param string $dirname */ - function setupModuleContext(&$context) + function setupModuleContext(&$context, $dirname) { + $handler =& xoops_gethandler('module'); + $module =& $handler->getByDirname($dirname); + + if (!is_object($module)) { + return; + } + + $context->mModule =& $this->_createModule($module); + $context->mXoopsModule =& $context->mModule->getXoopsModule(); + + if ($context->mXoopsModule->get('hasconfig') == 1 || $context->mXoopsModule->get('hascomments') == 1) { + $handler =& xoops_gethandler('config'); + + $context->mModule->setModuleConfig($handler->getConfigsByCat(0, $context->mXoopsModule->get('mid'))); + $context->mModuleConfig = $context->mModule->getModuleConfig(); + } + + // + // Load Roles + // + Legacy_RoleManager::loadRolesByMid($context->mXoopsModule->get('mid')); } /** * Gets the module object. * @return Legacy_Module */ - function &_createModule() + /** + * Creates a instance of the module with the generating convention. And, + * returns it. + * @param XoopsModule $module + * @return Legacy_Module + */ + function &_createModule($module) { + $instance = null; + $dirname = $module->get('dirname'); + + // + // IMPORTANT CONVENTION + // + $className = ucfirst($dirname) . "_Module"; + if (!class_exists($className)) { + $filePath = XOOPS_ROOT_PATH . "/modules/${dirname}/class/Module.class.php"; + if (file_exists($filePath)) { + require_once $filePath; + } + } + + if (class_exists($className)) { + $instance =& new $className($module); + } + else { + $instance =& new Legacy_ModuleAdapter($module); + } + + return $instance; } function setupBlock() From minahito @ users.sourceforge.jp Fri Oct 13 18:21:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 18:21:57 +0900 Subject: [xoops-cvslog 4989] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20061013092157.1B1882AC053@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/UserRegister_confirmAction.class.php diff -u xoops2jp/html/modules/user/actions/UserRegister_confirmAction.class.php:1.1.2.16.2.1 xoops2jp/html/modules/user/actions/UserRegister_confirmAction.class.php:1.1.2.16.2.2 --- xoops2jp/html/modules/user/actions/UserRegister_confirmAction.class.php:1.1.2.16.2.1 Thu Oct 5 19:18:12 2006 +++ xoops2jp/html/modules/user/actions/UserRegister_confirmAction.class.php Fri Oct 13 18:21:56 2006 @@ -1,7 +1,7 @@ mNewUser->set('uorder', $controller->mRoot->mContext->getXoopsConfig('com_order'), true); $this->mNewUser->set('umode', $controller->mRoot->mContext->getXoopsConfig('com_mode'), true); if ($this->mConfig['activation_type'] == 1) { - $this->mNewUser->setVar('level', 1, true); + $this->mNewUser->set('level', 1, true); } if (!$memberHandler->insertUser($this->mNewUser)) { From tom_g3x @ users.sourceforge.jp Fri Oct 13 18:22:09 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Fri, 13 Oct 2006 18:22:09 +0900 Subject: [xoops-cvslog 4990] CVS update: xoops2jp/html/modules/pm/templates Message-ID: <20061013092209.027582AC053@users.sourceforge.jp> Index: xoops2jp/html/modules/pm/templates/viewpmsg.html diff -u xoops2jp/html/modules/pm/templates/viewpmsg.html:1.1.2.12 xoops2jp/html/modules/pm/templates/viewpmsg.html:1.1.2.12.2.1 --- xoops2jp/html/modules/pm/templates/viewpmsg.html:1.1.2.12 Thu Aug 17 18:09:51 2006 +++ xoops2jp/html/modules/pm/templates/viewpmsg.html Fri Oct 13 18:22:08 2006 @@ -1,21 +1,19 @@ -

<{$xoops_pagetitle}>

-
+

<{$xoops_pagetitle}>

-"><{$smarty.const._MD_PM_LANG_PROFILE}>  -»» <{$smarty.const._MD_PM_LANG_INBOX}>

+"><{$smarty.const._MD_PM_LANG_PROFILE}> + »» <{$smarty.const._MD_PM_LANG_INBOX}> +

<{xoops_token form=$actionForm}>
From minahito @ users.sourceforge.jp Fri Oct 13 14:45:50 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 14:45:50 +0900 Subject: [xoops-cvslog 4976] CVS update: xoops2jp/html/modules/user/forms Message-ID: <20061013054550.502772AC11D@users.sourceforge.jp> Index: xoops2jp/html/modules/user/forms/OnlineFilterForm.class.php diff -u xoops2jp/html/modules/user/forms/OnlineFilterForm.class.php:1.1.2.1 xoops2jp/html/modules/user/forms/OnlineFilterForm.class.php:1.1.2.1.2.1 --- xoops2jp/html/modules/user/forms/OnlineFilterForm.class.php:1.1.2.1 Sun Aug 6 01:45:56 2006 +++ xoops2jp/html/modules/user/forms/OnlineFilterForm.class.php Fri Oct 13 14:45:50 2006 @@ -15,7 +15,6 @@ class User_OnlineFilterForm extends User_AbstractFilterForm { - var $mSort = 0; var $mSortKeys = array( ONLINE_SORT_KEY_ONLINE_UID => 'online_uid', ONLINE_SORT_KEY_ONLINE_UNAME => 'online_uname', @@ -23,15 +22,15 @@ ONLINE_SORT_KEY_ONLINE_MODULE => 'online_module', ONLINE_SORT_KEY_ONLINE_IP => 'online_ip' ); - var $_mCriteria = null; + + function getDefaultSortKey() + { + return ONLINE_SORT_KEY_DEFAULT; + } function fetch() { - $this->mSort = isset($_REQUEST['sort']) ? intval(xoops_getrequest('sort')) : ONLINE_SORT_KEY_DEFAULT; - - if (!isset($this->mSortKeys[abs($this->mSort)])) { - $this->mSort = ONLINE_SORT_KEY_DEFAULT; - } + parent::fetch(); $this->_mCriteria->addSort($this->getSort(), $this->getOrder()); } From minahito @ users.sourceforge.jp Fri Oct 13 15:15:09 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 15:15:09 +0900 Subject: [xoops-cvslog 4977] CVS update: xoops2jp/html/class Message-ID: <20061013061509.6DF8F2AC130@users.sourceforge.jp> Index: xoops2jp/html/class/criteria.php diff -u xoops2jp/html/class/criteria.php:1.2.8.8 xoops2jp/html/class/criteria.php:1.2.8.8.2.1 --- xoops2jp/html/class/criteria.php:1.2.8.8 Fri May 26 18:19:57 2006 +++ xoops2jp/html/class/criteria.php Fri Oct 13 15:15:09 2006 @@ -1,5 +1,5 @@ sort[0] = $sort; - $this->order[0] = 'ASC'; + if ($this->order[0] == null) { + $this->order[0] = 'ASC'; + } if ($order != null) { if (strtoupper($order) == 'ASC') { $this->order[0] = 'ASC'; From minahito @ users.sourceforge.jp Fri Oct 13 15:50:35 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 15:50:35 +0900 Subject: [xoops-cvslog 4978] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20061013065035.19F372AC103@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/AvatarEditAction.class.php diff -u xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.9.2.1 xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.9.2.2 --- xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.9.2.1 Fri Oct 13 14:10:17 2006 +++ xoops2jp/html/modules/user/actions/AvatarEditAction.class.php Fri Oct 13 15:50:34 2006 @@ -1,11 +1,13 @@ mNavi =& new XCube_PageNavigator("index.php?AvatarUpload", XCUBE_PAGENAVI_START); + $navi =& new XCube_PageNavigator("index.php?action=AvatarEdit&uid=" . $xoopsUser->get('uid'), XCUBE_PAGENAVI_START); + $handler =& xoops_gethandler('avatar'); - $this->mFilter =& new User_AvatarFilterForm($this->mNavi, xoops_gethandler('avatar')); - $this->mFilter->mNavi->fetch(); + $this->mFilter =& new User_AvatarFilterForm($navi, $handler); + $this->mFilter->fetch(); - $criteria = $this->mFilter->getCriteria($this->mNavi->getStart(), $this->mNavi->getPerpage()); + $criteria = $this->mFilter->getCriteria(); $this->mSystemAvatars =& $handler->getObjects($criteria); $this->mAvatarSelectForm =& new User_AvatarSelectForm(); @@ -248,7 +246,7 @@ $render->setAttribute("avatarHeight", $this->mAvatarHeight); $render->setAttribute("avatarMaxfilesize", $this->mAvatarMaxfilesize); - $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); $render->setAttribute("systemAvatars", $this->mSystemAvatars); $render->setAttribute("avatarSelectForm", $this->mAvatarSelectForm); } From minahito @ users.sourceforge.jp Fri Oct 13 15:50:59 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 15:50:59 +0900 Subject: [xoops-cvslog 4979] CVS update: xoops2jp/html/modules/user/forms Message-ID: <20061013065059.787FB2AC12D@users.sourceforge.jp> Index: xoops2jp/html/modules/user/forms/AvatarFilterForm.class.php diff -u xoops2jp/html/modules/user/forms/AvatarFilterForm.class.php:1.1.2.4 xoops2jp/html/modules/user/forms/AvatarFilterForm.class.php:1.1.2.4.2.1 --- xoops2jp/html/modules/user/forms/AvatarFilterForm.class.php:1.1.2.4 Wed Jul 19 19:21:25 2006 +++ xoops2jp/html/modules/user/forms/AvatarFilterForm.class.php Fri Oct 13 15:50:59 2006 @@ -1,7 +1,7 @@ _mCriteria->add(new Criteria('avatar_display', 1)); $this->_mCriteria->add(new Criteria('avatar_type', 'S')); } From minahito @ users.sourceforge.jp Fri Oct 13 18:19:21 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 18:19:21 +0900 Subject: [xoops-cvslog 4980] CVS update: xoops2jp/html/modules/base/actions Message-ID: <20061013091921.382902AC06A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/actions/ImageListAction.class.php diff -u xoops2jp/html/modules/base/actions/ImageListAction.class.php:1.1.2.3.2.2 xoops2jp/html/modules/base/actions/ImageListAction.class.php:1.1.2.3.2.3 --- xoops2jp/html/modules/base/actions/ImageListAction.class.php:1.1.2.3.2.2 Fri Oct 13 14:10:51 2006 +++ xoops2jp/html/modules/base/actions/ImageListAction.class.php Fri Oct 13 18:19:21 2006 @@ -25,7 +25,7 @@ function &_getFilterForm() { - $filter =& new Legacy_ImageFilterForm($this->_getNavi(), $this->_getHandler()); + $filter =& new Legacy_ImageFilterForm($this->_getPageNavi(), $this->_getHandler()); return $filter; } From minahito @ users.sourceforge.jp Fri Oct 13 18:20:08 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 18:20:08 +0900 Subject: [xoops-cvslog 4981] CVS update: xoops2jp/html/modules/base/actions Message-ID: <20061013092008.282662AC053@users.sourceforge.jp> Index: xoops2jp/html/modules/base/actions/MiscSmiliesAction.class.php diff -u xoops2jp/html/modules/base/actions/MiscSmiliesAction.class.php:1.1.2.1.2.1 xoops2jp/html/modules/base/actions/MiscSmiliesAction.class.php:1.1.2.1.2.2 --- xoops2jp/html/modules/base/actions/MiscSmiliesAction.class.php:1.1.2.1.2.1 Fri Oct 13 14:10:51 2006 +++ xoops2jp/html/modules/base/actions/MiscSmiliesAction.class.php Fri Oct 13 18:20:07 2006 @@ -1,7 +1,7 @@ _getPageNavi(), $this->_getHandler()); return $filter; } @@ -49,7 +49,7 @@ $render->setTemplateName("legacy_misc_smilies.html"); $render->setAttribute("objects", $this->mObjects); - $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); $render->setAttribute("targetName", $this->mTargetName); } } From minahito @ users.sourceforge.jp Fri Oct 13 18:20:20 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 18:20:20 +0900 Subject: [xoops-cvslog 4982] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20061013092020.205BB2AC053@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/CommentViewAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/CommentViewAction.class.php:1.1.2.3.2.1 xoops2jp/html/modules/base/admin/actions/CommentViewAction.class.php:1.1.2.3.2.2 --- xoops2jp/html/modules/base/admin/actions/CommentViewAction.class.php:1.1.2.3.2.1 Fri Oct 13 14:11:00 2006 +++ xoops2jp/html/modules/base/admin/actions/CommentViewAction.class.php Fri Oct 13 18:20:19 2006 @@ -1,7 +1,7 @@ Index: xoops2jp/html/modules/base/admin/actions/ModuleListAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/ModuleListAction.class.php:1.1.2.10.2.1 xoops2jp/html/modules/base/admin/actions/ModuleListAction.class.php:1.1.2.10.2.2 --- xoops2jp/html/modules/base/admin/actions/ModuleListAction.class.php:1.1.2.10.2.1 Thu Oct 12 20:02:10 2006 +++ xoops2jp/html/modules/base/admin/actions/ModuleListAction.class.php Fri Oct 13 18:20:34 2006 @@ -1,7 +1,7 @@ mFilter =& new Legacy_ModuleListFilterForm(); $this->mFilter->fetch(); - // dmy - $criteria =& new Criteria('mid', 0, '>'); - $criteria->setSort($this->mFilter->getSort()); - $criteria->setOrder($this->mFilter->getOrder()); - $moduleHandler =& xoops_gethandler('module'); - $this->mModuleObjects =& $moduleHandler->getObjects($criteria); + $this->mModuleObjects =& $moduleHandler->getObjects($this->mFilter->getCriteria()); return LEGACY_FRAME_VIEW_INDEX; } From minahito @ users.sourceforge.jp Fri Oct 13 18:20:41 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 18:20:41 +0900 Subject: [xoops-cvslog 4984] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20061013092041.D39472AC06A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/forms/ModuleListFilterForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/ModuleListFilterForm.class.php:1.1.2.6.2.1 xoops2jp/html/modules/base/admin/forms/ModuleListFilterForm.class.php:1.1.2.6.2.2 --- xoops2jp/html/modules/base/admin/forms/ModuleListFilterForm.class.php:1.1.2.6.2.1 Thu Oct 12 20:02:52 2006 +++ xoops2jp/html/modules/base/admin/forms/ModuleListFilterForm.class.php Fri Oct 13 18:20:41 2006 @@ -1,7 +1,7 @@ mSpecial = intval(xoops_getreqeust('special')); } + + $this->_mCriteria->add(new Criteria('mid', 0, '>')); $this->_mCriteria->addSort($this->getSort(), $this->getOrder()); } + + function getCriteria($start = null, $limit = null) + { + $criteria = $this->_mCriteria; + + $criteria->setStart(0); + $criteria->setLimit(0); + + return $criteria; + } } ?> \ No newline at end of file From minahito @ users.sourceforge.jp Fri Oct 13 18:20:58 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 18:20:58 +0900 Subject: [xoops-cvslog 4985] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20061013092058.0E7712AC053@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/smiles_list.html diff -u xoops2jp/html/modules/base/admin/templates/smiles_list.html:1.1.2.13.2.1 xoops2jp/html/modules/base/admin/templates/smiles_list.html:1.1.2.13.2.2 --- xoops2jp/html/modules/base/admin/templates/smiles_list.html:1.1.2.13.2.1 Thu Oct 12 20:03:01 2006 +++ xoops2jp/html/modules/base/admin/templates/smiles_list.html Fri Oct 13 18:20:57 2006 @@ -18,8 +18,6 @@ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /> <{$smarty.const._AD_BASE_LANG_SMILE_URL}>
- " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_BASE_LANG_EMOTION}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
- - - - + + + + - + <{if !$total_messages}> @@ -28,28 +26,28 @@ <{foreach name=viewpm item=pm from=$pmObjects}> "> - - - - - - <{/foreach}> @@ -63,7 +61,7 @@ <{else}> - + Index: xoops2jp/html/modules/pm/templates/readpmsg.html diff -u xoops2jp/html/modules/pm/templates/readpmsg.html:1.1.2.16 xoops2jp/html/modules/pm/templates/readpmsg.html:1.1.2.16.2.1 --- xoops2jp/html/modules/pm/templates/readpmsg.html:1.1.2.16 Thu Aug 17 18:09:51 2006 +++ xoops2jp/html/modules/pm/templates/readpmsg.html Fri Oct 13 18:22:08 2006 @@ -1,8 +1,10 @@

<{$xoops_pagetitle}>

<{if $feature.user.profile}> - <{$smarty.const._MD_PM_LANG_PROFILE}> »» + <{$smarty.const._MD_PM_LANG_PROFILE}> »»  <{/if}> -<{$smarty.const._MD_PM_LANG_INBOX}> »» <{$privMessage->getShow('subject')}> +<{$smarty.const._MD_PM_LANG_INBOX}> + »» <{$privMessage->getShow('subject')}> + '>
- -  <{$smarty.const._MD_PM_LANG_FROM}> <{$smarty.const._MD_PM_LANG_FROM}> <{$smarty.const._MD_PM_LANG_SUBJECT}><{$smarty.const._MD_PM_LANG_DATE}><{$smarty.const._MD_PM_LANG_DATE}>
+ " /> + <{if $pm->isRead()}>   <{else}> <{$smarty.const._MD_PM_LANG_NOTREAD}> <{/if}> + + <{$pm->get("from_userid")|xoops_user:"uname"}> + <{$pm->getShow('subject')}> - <{$pm->get("msg_time")|xoops_formattimestamp}> + + <{$pm->get("msg_time")|xoops_formattimestamp:l}>
@@ -22,7 +24,7 @@ - + From minahito @ users.sourceforge.jp Fri Oct 13 18:22:13 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 18:22:13 +0900 Subject: [xoops-cvslog 4991] CVS update: xoops2jp/html/modules/user/class Message-ID: <20061013092213.E03912AC053@users.sourceforge.jp> Index: xoops2jp/html/modules/user/class/ActionFrame.class.php diff -u xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.9.2.3 xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.9.2.4 --- xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.9.2.3 Tue Oct 10 15:13:33 2006 +++ xoops2jp/html/modules/user/class/ActionFrame.class.php Fri Oct 13 18:22:13 2006 @@ -56,7 +56,7 @@ } if (!file_exists($fileName)) { - die(); + $controller->executeForward(XOOPS_URL . '/'); } require_once $fileName; @@ -66,7 +66,7 @@ } if (!is_object($this->mAction)) { - die(); + $controller->executeForward(XOOPS_URL . '/'); } if ($this->mAction->isSecure() && !is_object($controller->mRoot->mContext->mXoopsUser)) { @@ -74,7 +74,7 @@ // error // - die("TODO"); + $controller->executeForward(XOOPS_URL . '/'); } $this->mAction->prepare($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModuleConfig); @@ -84,7 +84,7 @@ // error // - die("TODO"); + $controller->executeForward(XOOPS_URL . '/'); } if (xoops_getenv("REQUEST_METHOD") == "POST") { From tom_g3x @ users.sourceforge.jp Fri Oct 13 18:32:39 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Fri, 13 Oct 2006 18:32:39 +0900 Subject: [xoops-cvslog 4992] CVS update: xoops2jp/html/modules/legacyRender Message-ID: <20061013093239.46B272AC06A@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/xoops_version.php diff -u xoops2jp/html/modules/legacyRender/xoops_version.php:1.1.2.11 xoops2jp/html/modules/legacyRender/xoops_version.php:1.1.2.11.2.1 --- xoops2jp/html/modules/legacyRender/xoops_version.php:1.1.2.11 Sun Aug 13 15:05:44 2006 +++ xoops2jp/html/modules/legacyRender/xoops_version.php Fri Oct 13 18:32:39 2006 @@ -1,6 +1,6 @@ "_MI_LR_META_AUTHOR_DESC", "formtype"=>"textbox", "valuetype"=>"text", - "default"=>"XOOPS" + "default"=>"XOOPS Cube" ); $modversion['config'][]=array ( From tom_g3x @ users.sourceforge.jp Fri Oct 13 18:32:39 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Fri, 13 Oct 2006 18:32:39 +0900 Subject: [xoops-cvslog 4993] CVS update: xoops2jp/html/themes/cube_default Message-ID: <20061013093239.6D65F2AC0C7@users.sourceforge.jp> Index: xoops2jp/html/themes/cube_default/theme.html diff -u xoops2jp/html/themes/cube_default/theme.html:1.1.2.5 xoops2jp/html/themes/cube_default/theme.html:1.1.2.5.2.1 --- xoops2jp/html/themes/cube_default/theme.html:1.1.2.5 Tue Aug 1 17:39:05 2006 +++ xoops2jp/html/themes/cube_default/theme.html Fri Oct 13 18:32:39 2006 @@ -11,7 +11,7 @@ - + From minahito @ users.sourceforge.jp Fri Oct 13 18:41:52 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 18:41:52 +0900 Subject: [xoops-cvslog 4994] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20061013094152.347F92AC0F6@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php:1.1.2.1.2.3 xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php:1.1.2.1.2.4 --- xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php:1.1.2.1.2.3 Tue Oct 10 19:55:22 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_BlockProcedure.class.php Fri Oct 13 18:41:52 2006 @@ -1,7 +1,7 @@ get('show_func'); if (substr($func, 0, 4) == 'cl::') { - $className = substr($func, 4); + $className = ucfirst($block->get('dirname')) . '_' . substr($func, 4); if (!class_exists($className)) { $filePath = XOOPS_ROOT_PATH . '/modules/' . $block->get('dirname') . '/blocks/' . $block->get('func_file'); if (!file_exists($filePath)) { From minahito @ users.sourceforge.jp Fri Oct 13 18:59:16 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 18:59:16 +0900 Subject: [xoops-cvslog 4995] CVS update: xoops2jp/html/core Message-ID: <20061013095916.A36AF2AC016@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_PageNavigator.class.php diff -u xoops2jp/html/core/XCube_PageNavigator.class.php:1.1.2.6 xoops2jp/html/core/XCube_PageNavigator.class.php:1.1.2.7 --- xoops2jp/html/core/XCube_PageNavigator.class.php:1.1.2.6 Fri Oct 13 13:56:49 2006 +++ xoops2jp/html/core/XCube_PageNavigator.class.php Fri Oct 13 18:59:16 2006 @@ -1,7 +1,7 @@ Index: xoops2jp/html/class/criteria.php diff -u xoops2jp/html/class/criteria.php:1.2.8.8.2.1 xoops2jp/html/class/criteria.php:1.2.8.8.2.2 --- xoops2jp/html/class/criteria.php:1.2.8.8.2.1 Fri Oct 13 15:15:09 2006 +++ xoops2jp/html/class/criteria.php Fri Oct 13 19:10:49 2006 @@ -1,5 +1,5 @@ sort[0] = $sort; - if ($this->order[0] == null) { + + if (!isset($this->order[0])) { $this->order[0] = 'ASC'; } + if ($order != null) { if (strtoupper($order) == 'ASC') { $this->order[0] = 'ASC'; @@ -200,7 +202,7 @@ return $this->sort[0]; } else { - return ''; + return 'ASC'; } } From minahito @ users.sourceforge.jp Fri Oct 13 19:15:11 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 13 Oct 2006 19:15:11 +0900 Subject: [xoops-cvslog 4997] CVS update: xoops2jp/html/class Message-ID: <20061013101511.8B2C62AC016@users.sourceforge.jp> Index: xoops2jp/html/class/criteria.php diff -u xoops2jp/html/class/criteria.php:1.2.8.8.2.2 xoops2jp/html/class/criteria.php:1.2.8.8.2.3 --- xoops2jp/html/class/criteria.php:1.2.8.8.2.2 Fri Oct 13 19:10:49 2006 +++ xoops2jp/html/class/criteria.php Fri Oct 13 19:15:11 2006 @@ -1,5 +1,5 @@ sort[0]; } else { - return 'ASC'; + return ''; } } From tom_g3x @ users.sourceforge.jp Fri Oct 13 19:35:59 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Fri, 13 Oct 2006 19:35:59 +0900 Subject: [xoops-cvslog 4998] CVS update: xoops2jp/html/modules/user/templates Message-ID: <20061013103559.D59002AC0EC@users.sourceforge.jp> Index: xoops2jp/html/modules/user/templates/user_delete_success.html diff -u xoops2jp/html/modules/user/templates/user_delete_success.html:1.1.2.2 xoops2jp/html/modules/user/templates/user_delete_success.html:1.1.2.2.2.1 --- xoops2jp/html/modules/user/templates/user_delete_success.html:1.1.2.2 Wed Sep 6 18:00:21 2006 +++ xoops2jp/html/modules/user/templates/user_delete_success.html Fri Oct 13 19:35:59 2006 @@ -1 +1,8 @@ -
<{$smarty.const._MD_USER_MESSAGE_USER_DELETE_SUCCESS}>
+
+
+ <{$smarty.const._MD_USER_MESSAGE_USER_DELETE_SUCCESS}> +
+
+ »»<{$smarty.const._MAIN}> +
+
From tom_g3x @ users.sourceforge.jp Fri Oct 13 19:37:28 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Fri, 13 Oct 2006 19:37:28 +0900 Subject: [xoops-cvslog 4999] CVS update: xoops2jp/html/modules/user/templates Message-ID: <20061013103728.4FFFA2AC06A@users.sourceforge.jp> Index: xoops2jp/html/modules/user/templates/user_delete_success.html diff -u xoops2jp/html/modules/user/templates/user_delete_success.html:1.1.2.2.2.1 xoops2jp/html/modules/user/templates/user_delete_success.html:1.1.2.2.2.2 --- xoops2jp/html/modules/user/templates/user_delete_success.html:1.1.2.2.2.1 Fri Oct 13 19:35:59 2006 +++ xoops2jp/html/modules/user/templates/user_delete_success.html Fri Oct 13 19:37:28 2006 @@ -1,4 +1,4 @@ -
+

<{$smarty.const._MD_USER_MESSAGE_USER_DELETE_SUCCESS}>
From tom_g3x @ users.sourceforge.jp Fri Oct 13 20:28:24 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Fri, 13 Oct 2006 20:28:24 +0900 Subject: [xoops-cvslog 5000] CVS update: xoops2jp/html/modules/pm/templates Message-ID: <20061013112824.731A52AC131@users.sourceforge.jp> Index: xoops2jp/html/modules/pm/templates/pm_delete_one.html diff -u xoops2jp/html/modules/pm/templates/pm_delete_one.html:1.1.2.4 xoops2jp/html/modules/pm/templates/pm_delete_one.html:1.1.2.4.2.1 --- xoops2jp/html/modules/pm/templates/pm_delete_one.html:1.1.2.4 Thu Aug 17 18:09:51 2006 +++ xoops2jp/html/modules/pm/templates/pm_delete_one.html Fri Oct 13 20:28:24 2006 @@ -1,4 +1,4 @@ -
<{$smarty.const._MD_PM_MESSAGE_CONFIRM_DELETE_PM}>
+
<{$smarty.const._MD_PM_MESSAGE_CONFIRM_DELETE_PM}>
<{xoops_token form=$actionForm}> @@ -18,7 +18,7 @@
From tom_g3x @ users.sourceforge.jp Fri Oct 13 20:28:24 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Fri, 13 Oct 2006 20:28:24 +0900 Subject: [xoops-cvslog 5001] CVS update: xoops2jp/html/modules/base/templates Message-ID: <20061013112824.9AB512AC135@users.sourceforge.jp> Index: xoops2jp/html/modules/base/templates/legacy_notification_delete.html diff -u xoops2jp/html/modules/base/templates/legacy_notification_delete.html:1.1.2.1 xoops2jp/html/modules/base/templates/legacy_notification_delete.html:1.1.2.1.2.1 --- xoops2jp/html/modules/base/templates/legacy_notification_delete.html:1.1.2.1 Wed Jul 26 19:55:37 2006 +++ xoops2jp/html/modules/base/templates/legacy_notification_delete.html Fri Oct 13 20:28:24 2006 @@ -1,3 +1,4 @@ +

<{$smarty.const._NOT_DELETINGNOTIFICATIONS}>

<{xoops_token form=$actionForm}> @@ -6,4 +7,6 @@ <{/foreach}> + +
From minahito @ users.sourceforge.jp Sat Oct 14 02:50:13 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 02:50:13 +0900 Subject: [xoops-cvslog 5002] CVS update: xoops2jp/html/modules/base/actions Message-ID: <20061013175013.84C882AC13D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/actions/SearchResultsAction.class.php diff -u xoops2jp/html/modules/base/actions/SearchResultsAction.class.php:1.1.2.10.2.1 xoops2jp/html/modules/base/actions/SearchResultsAction.class.php:1.1.2.10.2.2 --- xoops2jp/html/modules/base/actions/SearchResultsAction.class.php:1.1.2.10.2.1 Thu Oct 5 18:06:25 2006 +++ xoops2jp/html/modules/base/actions/SearchResultsAction.class.php Sat Oct 14 02:50:13 2006 @@ -96,7 +96,18 @@ function _doSearch(&$client, &$xoopsUser, &$params) { - return $client->call('searchItems', $params); + $root =& XCube_Root::getSingleton(); + $timezone = $root->mContext->getXoopsConfig('server_TZ') * 3600; + + $results = $client->call('searchItems', $params); + + foreach (array_keys($results) as $key) { + if ($results[$key]['time'] > 0) { + $results[$key]['time'] = $results[$key]['time'] + $timezone; + } + } + + return $results; } function execute(&$controller, &$xoopsUser) From minahito @ users.sourceforge.jp Sat Oct 14 02:50:25 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 02:50:25 +0900 Subject: [xoops-cvslog 5003] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20061013175025.828622AC13D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.10.2.2 xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.10.2.3 --- xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.10.2.2 Tue Oct 10 19:55:47 2006 +++ xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php Sat Oct 14 02:50:25 2006 @@ -1,7 +1,7 @@ mObject); + $block =& Legacy_Utils::createBlockProcedure($this->mObject); return $block->getOptionForm(); } From minahito @ users.sourceforge.jp Sat Oct 14 02:50:48 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 02:50:48 +0900 Subject: [xoops-cvslog 5004] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20061013175048.3543C2AC13F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/ThemeListAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/ThemeListAction.class.php:1.1.2.1.2.1 xoops2jp/html/modules/base/admin/actions/ThemeListAction.class.php:1.1.2.1.2.2 --- xoops2jp/html/modules/base/admin/actions/ThemeListAction.class.php:1.1.2.1.2.1 Thu Sep 28 14:01:28 2006 +++ xoops2jp/html/modules/base/admin/actions/ThemeListAction.class.php Sat Oct 14 02:50:48 2006 @@ -1,7 +1,7 @@ mActionForm->getSelectableTheme(); $configs[0]->set('conf_value', serialize($t_themeArr)); if (!$configHandler->insertConfig($configs[0])) { - print_r($configs[0]); - die(); + die(); // FIXME: } // From minahito @ users.sourceforge.jp Sat Oct 14 02:50:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 02:50:57 +0900 Subject: [xoops-cvslog 5005] CVS update: xoops2jp/html/modules/base/admin/blocks Message-ID: <20061013175057.78DB02AC13F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php diff -u xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.10.2.2 xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.10.2.3 --- xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.10.2.2 Thu Oct 5 18:06:54 2006 +++ xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php Sat Oct 14 02:50:57 2006 @@ -77,31 +77,11 @@ $handler =& xoops_gethandler('module'); - while($row=$db->fetchArray($result)) { - $module =& $handler->get($row['mid']); - $dmy=&$module->getInfo(); + while($row = $db->fetchArray($result)) { + $xoopsModule =& $handler->get($row['mid']); + $module =& Legacy_Utils::createModule($xoopsModule); - // - // Load admin menu, and add preference menu by own judge. - // - $module->loadAdminMenu(); - if ($module->getVar('hasnotification') - || ($module->getInfo('config') && is_array($module->getInfo('config'))) - || ($module->getInfo('comments') && is_array($module->getInfo('comments')))) { - $module->adminmenu[] = array( - 'link' => XOOPS_URL.'/modules/base/admin/index.php?action=PreferenceEdit&confmod_id='.$module->getVar('mid'), - 'title' => _PREFERENCES, - 'absolute' => true); - } - - if ($module->hasHelp()) { - $helpUrl = XOOPS_MODULE_URL . "/base/admin/index.php?action=Help&dirname=" . $module->getVar('dirname'); - $module->adminmenu[] = array('link' => $helpUrl, - 'title' => _HELP, - 'absolute' => true); - } - - $this->mModules[]=&$module; + $this->mModules[] =& $module; unset($module); } From minahito @ users.sourceforge.jp Sat Oct 14 02:51:07 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 02:51:07 +0900 Subject: [xoops-cvslog 5006] CVS update: xoops2jp/html/modules/base/admin/templates/blocks Message-ID: <20061013175107.03E132AC13F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/blocks/legacy_admin_block_sidemenu.html diff -u xoops2jp/html/modules/base/admin/templates/blocks/legacy_admin_block_sidemenu.html:1.1.2.16 xoops2jp/html/modules/base/admin/templates/blocks/legacy_admin_block_sidemenu.html:1.1.2.16.2.1 --- xoops2jp/html/modules/base/admin/templates/blocks/legacy_admin_block_sidemenu.html:1.1.2.16 Mon Sep 11 17:52:35 2006 +++ xoops2jp/html/modules/base/admin/templates/blocks/legacy_admin_block_sidemenu.html Sat Oct 14 02:51:06 2006 @@ -1,21 +1,17 @@ <{foreach item=module from=$modules}> - <{if $module->modinfo.adminindex}> -
- " alt="" id="i<{$module->getShow('mid')}>" /> - <{$module->getVar('name')}> + <{if $module->hasAdminIndex()}> + -
<{$smarty.const._MD_PM_LANG__SENTC}><{$privMessage->get("msg_time")|xoops_formattimestamp}><{$smarty.const._MD_PM_LANG__SENTC}><{$privMessage->get("msg_time")|xoops_formattimestamp:l}>
<{$smarty.const._MD_PM_LANG_SUBJECTC}> <{$privMessage->getShow('subject')}>
<{$smarty.const._MD_PM_LANG__SENTC}> "> - <{$object->get("msg_time")|xoops_formattimestamp}> + <{$object->get("msg_time")|xoops_formattimestamp:l}>
+ + + + + + + + <{foreach item=obj from=$objects}> + + + + + + + + <{/foreach}> +
<{$smarty.const._MD_USER_LANG_MAILJOB_ID}>
+ <{$smarty.const._ASCENDING}> + <{$smarty.const._DESCENDING}>
<{$smarty.const._MD_USER_LANG_UID}>
+ <{$smarty.const._ASCENDING}> + <{$smarty.const._DESCENDING}>
<{$smarty.const._MD_USER_LANG_RETRY}>
+ <{$smarty.const._ASCENDING}> + <{$smarty.const._DESCENDING}>
<{$smarty.const._MD_USER_LANG_MESSAGE}>
+ <{$smarty.const._ASCENDING}> + <{$smarty.const._DESCENDING}>
<{$smarty.const._MD_USER_LANG_CONTROL}>
<{$obj->getShow('mailjob_id')}><{$obj->getShow('uid')}><{$obj->getShow('retry')}><{$obj->getShow('message')}> + <{$smarty.const._VIEW}> + <{$smarty.const._EDIT}> + <{$smarty.const._DELETE}> +
+ From minahito @ users.sourceforge.jp Sat Oct 14 20:25:18 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 20:25:18 +0900 Subject: [xoops-cvslog 5031] CVS update: xoops2jp/html/modules/user/sql Message-ID: <20061014112518.EBA3A2AC220@users.sourceforge.jp> Index: xoops2jp/html/modules/user/sql/mysql.sql diff -u xoops2jp/html/modules/user/sql/mysql.sql:1.1.2.3 xoops2jp/html/modules/user/sql/mysql.sql:1.1.2.3.2.1 --- xoops2jp/html/modules/user/sql/mysql.sql:1.1.2.3 Thu Apr 27 19:27:50 2006 +++ xoops2jp/html/modules/user/sql/mysql.sql Sat Oct 14 20:25:18 2006 @@ -13,5 +13,7 @@ CREATE TABLE user_mailjob_link ( mailjob_id int(10) NOT NULL default '0', uid mediumint(8) NOT NULL default '0', + retry tinyint(3) NOT NULL default '0', + message varchar(255) default NULL, PRIMARY KEY (mailjob_id, uid) ) TYPE=MyISAM; From minahito @ users.sourceforge.jp Sat Oct 14 20:25:42 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 20:25:42 +0900 Subject: [xoops-cvslog 5032] CVS update: xoops2jp/html/modules/user/language/japanese Message-ID: <20061014112542.55FE62AC220@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/japanese/modinfo.php diff -u xoops2jp/html/modules/user/language/japanese/modinfo.php:1.1.2.21 xoops2jp/html/modules/user/language/japanese/modinfo.php:1.1.2.21.2.1 --- xoops2jp/html/modules/user/language/japanese/modinfo.php:1.1.2.21 Sat Aug 26 13:58:43 2006 +++ xoops2jp/html/modules/user/language/japanese/modinfo.php Sat Oct 14 20:25:42 2006 @@ -62,9 +62,11 @@ define('_MI_USER_KEYWORD_CREATE_RANK', "ランク ユーザーランク"); define('_MI_USER_KEYWORD_CREATE_USER', "新規登録"); define('_MI_USER_KEYWORD_GROUP_LIST', "グループ 一覧 リスト 編集 変更 削除 ユーザー ユーザグループ 権限 パーミッション 追加 メンバー"); +define('_MI_USER_KEYWORD_MAILJOB_LINK_LIST', "Mailjob link list"); define('_MI_USER_KEYWORD_MAILJOB_MANAGE', "Mailjob manage"); define('_MI_USER_KEYWORD_USER_LIST', "一覧 リスト 編集 変更 削除"); define('_MI_USER_KEYWORD_USER_SEARCH', "ユーザー 検索"); +define('_MI_USER_LANG_MAILJOB_LINK_LIST', "Mailjob link list"); define('_MI_USER_MENU_CREATE_AVATAR', "アバターの新規作成"); define('_MI_USER_MENU_CREATE_GROUP', "グループの新規作成"); define('_MI_USER_MENU_CREATE_RANK', "ランクの新規作成"); From minahito @ users.sourceforge.jp Sat Oct 14 20:27:43 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 20:27:43 +0900 Subject: [xoops-cvslog 5033] CVS update: xoops2jp/html/modules/user/language/english Message-ID: <20061014112743.2E6382AC220@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/english/modinfo.php diff -u xoops2jp/html/modules/user/language/english/modinfo.php:1.1.2.17 xoops2jp/html/modules/user/language/english/modinfo.php:1.1.2.17.2.1 --- xoops2jp/html/modules/user/language/english/modinfo.php:1.1.2.17 Sat Aug 26 14:32:46 2006 +++ xoops2jp/html/modules/user/language/english/modinfo.php Sat Oct 14 20:27:43 2006 @@ -62,9 +62,11 @@ define('_MI_USER_KEYWORD_CREATE_RANK', "create rank"); define('_MI_USER_KEYWORD_CREATE_USER', "Create user"); define('_MI_USER_KEYWORD_GROUP_LIST', "list edit modify delete user permission add remove member"); +define('_MI_USER_KEYWORD_MAILJOB_LINK_LIST', "Mailjob link list"); define('_MI_USER_KEYWORD_MAILJOB_MANAGE', "Mailjob manage"); define('_MI_USER_KEYWORD_USER_LIST', "user list"); define('_MI_USER_KEYWORD_USER_SEARCH', "User search"); +define('_MI_USER_LANG_MAILJOB_LINK_LIST', "Mailjob link list"); define('_MI_USER_MENU_CREATE_AVATAR', "Create avatar"); define('_MI_USER_MENU_CREATE_GROUP', "Create group"); define('_MI_USER_MENU_CREATE_RANK', "user rank create new"); From minahito @ users.sourceforge.jp Sat Oct 14 20:28:16 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 20:28:16 +0900 Subject: [xoops-cvslog 5034] CVS update: xoops2jp/html/modules/user/language/english Message-ID: <20061014112816.883012AC220@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/english/admin.php diff -u xoops2jp/html/modules/user/language/english/admin.php:1.1.2.30.2.1 xoops2jp/html/modules/user/language/english/admin.php:1.1.2.30.2.2 --- xoops2jp/html/modules/user/language/english/admin.php:1.1.2.30.2.1 Sat Oct 7 23:50:57 2006 +++ xoops2jp/html/modules/user/language/english/admin.php Sat Oct 14 20:28:16 2006 @@ -65,9 +65,11 @@ define('_AD_USER_LANG_MAILJOB_DELETE', "Delete Mailjob"); define('_AD_USER_LANG_MAILJOB_EDIT', "Edit Mailjob"); define('_AD_USER_LANG_MAILJOB_ID', "Job ID"); +define('_AD_USER_LANG_MAILJOB_LINK_LIST', "Mailjob link list"); define('_AD_USER_LANG_MAILJOB_LIST', "Mailjob list"); define('_AD_USER_LANG_MAILJOB_NEW', "New Mailjob"); define('_AD_USER_LANG_MAILJOB_SEND', "Send Mailjob"); +define('_AD_USER_LANG_MESSAGE', "Message"); define('_AD_USER_LANG_NO_SPECIAL_RANK', "--------------"); define('_AD_USER_LANG_OVER_POSTS', "Number of Posts is greater than X"); define('_AD_USER_LANG_PENDING_USERS_ONLY', "Only inactive users"); @@ -93,9 +95,11 @@ define('_AD_USER_LANG_REGDATE_LESS', "Date joined was less than X days ago"); define('_AD_USER_LANG_REGDATE_MORE', "Date joined was more than X days ago"); define('_AD_USER_LANG_RESET', "Reset"); +define('_AD_USER_LANG_RETRY', "retry"); define('_AD_USER_LANG_SEARCH_AGAIN', "Search again"); define('_AD_USER_LANG_SEND_MAIL_BY_THIS_CONDITION', "Send mail to these users"); define('_AD_USER_LANG_TITLE', "Title"); +define('_AD_USER_LANG_UID', "uid"); define('_AD_USER_LANG_UNDER_POSTS', "Number of Posts is less than X"); define('_AD_USER_LANG_USER', "User"); define('_AD_USER_LANG_USER_DELETE', "Delete a user"); From minahito @ users.sourceforge.jp Sat Oct 14 20:28:16 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 20:28:16 +0900 Subject: [xoops-cvslog 5035] CVS update: xoops2jp/html/modules/user/language/japanese Message-ID: <20061014112816.AF52A2AC25D@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/japanese/admin.php diff -u xoops2jp/html/modules/user/language/japanese/admin.php:1.1.2.37.2.1 xoops2jp/html/modules/user/language/japanese/admin.php:1.1.2.37.2.2 --- xoops2jp/html/modules/user/language/japanese/admin.php:1.1.2.37.2.1 Sat Oct 7 23:50:57 2006 +++ xoops2jp/html/modules/user/language/japanese/admin.php Sat Oct 14 20:28:16 2006 @@ -65,9 +65,11 @@ define('_AD_USER_LANG_MAILJOB_DELETE', "メールジョブ削除"); define('_AD_USER_LANG_MAILJOB_EDIT', "メールジョブ編集"); define('_AD_USER_LANG_MAILJOB_ID', "ジョブID"); +define('_AD_USER_LANG_MAILJOB_LINK_LIST', "Mailjob link list"); define('_AD_USER_LANG_MAILJOB_LIST', "メールジョブ一覧"); define('_AD_USER_LANG_MAILJOB_NEW', "メールジョブ新規登録"); define('_AD_USER_LANG_MAILJOB_SEND', "一斉メールの送信"); +define('_AD_USER_LANG_MESSAGE', "メッセージ"); define('_AD_USER_LANG_NO_SPECIAL_RANK', "--------------"); define('_AD_USER_LANG_OVER_POSTS', "投稿数がX件以上"); define('_AD_USER_LANG_PENDING_USERS_ONLY', "承認が済んでいないユーザのみ"); @@ -93,9 +95,11 @@ define('_AD_USER_LANG_REGDATE_LESS', "ユーザ登録日時がX日以内"); define('_AD_USER_LANG_REGDATE_MORE', "ユーザ登録日時がX日以上前"); define('_AD_USER_LANG_RESET', "リセット"); +define('_AD_USER_LANG_RETRY', "リトライ"); define('_AD_USER_LANG_SEARCH_AGAIN', "条件を修正して再検索"); define('_AD_USER_LANG_SEND_MAIL_BY_THIS_CONDITION', "この条件でメールを送信"); define('_AD_USER_LANG_TITLE', "タイトル"); +define('_AD_USER_LANG_UID', "uid"); define('_AD_USER_LANG_UNDER_POSTS', "投稿数がX件以下"); define('_AD_USER_LANG_USER', "ユーザー"); define('_AD_USER_LANG_USER_DELETE', "ユーザーの削除"); From minahito @ users.sourceforge.jp Sat Oct 14 20:28:34 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 20:28:34 +0900 Subject: [xoops-cvslog 5036] CVS update: xoops2jp/html/modules/user/class Message-ID: <20061014112834.AE7952AC25D@users.sourceforge.jp> Index: xoops2jp/html/modules/user/class/mailjob_link.php diff -u xoops2jp/html/modules/user/class/mailjob_link.php:1.1.2.3 xoops2jp/html/modules/user/class/mailjob_link.php:1.1.2.3.2.1 --- xoops2jp/html/modules/user/class/mailjob_link.php:1.1.2.3 Thu Apr 27 19:25:47 2006 +++ xoops2jp/html/modules/user/class/mailjob_link.php Sat Oct 14 20:28:34 2006 @@ -8,6 +8,8 @@ { $this->initVar('mailjob_id', XOBJ_DTYPE_INT, '0', true); $this->initVar('uid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('retry', XOBJ_DTYPE_INT, '0', true); + $this->initVar('message', XOBJ_DTYPE_STRING, '', false, 255); } } @@ -16,6 +18,37 @@ var $mTable = "user_mailjob_link"; var $mPrimary = "mailjob_id"; var $mClass = "UserMailjob_linkObject"; + + function &get($mailjob_id, $uid) + { + $ret = null; + + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('mailjob_id', $mailjob_id)); + $criteria->add(new Criteria('uid', $uid)); + + $objArr =& $this->getObjects($criteria); + + if (count($objArr) == 1) { + $ret =& $objArr[0]; + } + + return $ret; + } + + function delete(&$obj, $force = false) + { + // + // Because Criteria can generate the most appropriate sentence, use + // criteria even if this approach is few slow. + // + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('mailjob_id', $obj->get('mailjob_id'))); + $criteria->add(new Criteria('uid', $obj->get('uid'))); + $sql = "DELETE FROM " . $this->mTable . " WHERE " . $this->_makeCriteriaElement4sql($criteria, $obj); + + return $force ? $this->db->queryF($sql) : $this->db->query($sql); + } } ?> From minahito @ users.sourceforge.jp Sat Oct 14 20:28:43 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 20:28:43 +0900 Subject: [xoops-cvslog 5037] CVS update: xoops2jp/html/modules/user/admin/templates Message-ID: <20061014112843.4ABF62AC220@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/templates/mailjob_link_list.html diff -u /dev/null xoops2jp/html/modules/user/admin/templates/mailjob_link_list.html:1.1.2.1 --- /dev/null Sat Oct 14 20:28:43 2006 +++ xoops2jp/html/modules/user/admin/templates/mailjob_link_list.html Sat Oct 14 20:28:43 2006 @@ -0,0 +1,50 @@ + + +

<{$smarty.const._AD_USER_LANG_MAILJOB_LINK_LIST}>

+ +<{if $actionForm->hasError()}> +
+
    + <{foreach item=message from=$actionForm->getErrorMessages()}> +
  • <{$message|escape}>
  • + <{/foreach}> +
+
+<{/if}> + +
+<{xoops_token form=$actionForm}> +<{xoops_input type=hidden name=mailjob_id value=$actionForm->get('mailjob_id')}> + + + + + + + + <{foreach item=obj from=$objects}> + + + + + + + + <{/foreach}> +
<{$smarty.const._MD_USER_LANG_UID}>
+ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_USER_LANG_UNAME}>
+
<{$smarty.const._AD_USER_LANG_RETRY}>
+ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_MESSAGE}>
+ " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{xoops_input type=checkbox name=uid key=$obj->get('uid')}><{$obj->getShow('mailjob_id')}><{$obj->get('uid')|xoops_user:uname}><{$obj->getShow('retry')}><{$obj->getShow('message')}>
+ + + +
+ + From minahito @ users.sourceforge.jp Sat Oct 14 20:29:00 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 20:29:00 +0900 Subject: [xoops-cvslog 5038] CVS update: xoops2jp/html/modules/user/admin/templates Message-ID: <20061014112900.D020F2AC263@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/templates/mailjob_list.html diff -u xoops2jp/html/modules/user/admin/templates/mailjob_list.html:1.1.2.12.2.1 xoops2jp/html/modules/user/admin/templates/mailjob_list.html:1.1.2.12.2.2 --- xoops2jp/html/modules/user/admin/templates/mailjob_list.html:1.1.2.12.2.1 Thu Oct 12 23:45:32 2006 +++ xoops2jp/html/modules/user/admin/templates/mailjob_list.html Sat Oct 14 20:29:00 2006 @@ -56,6 +56,7 @@ <{/if}> + " alt="<{$smarty.const._VIEW}>" title="<{$smarty.const._VIEW}>" /> " alt="<{$smarty.const._SEND}>" title="<{$smarty.const._SEND}>" /> " alt="<{$smarty.const._EDIT}>" title="<{$smarty.const._EDIT}>" /> " alt="<{$smarty.const._DELETE}>" title="<{$smarty.const._DELETE}>" /> From minahito @ users.sourceforge.jp Sat Oct 14 20:29:11 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 20:29:11 +0900 Subject: [xoops-cvslog 5039] CVS update: xoops2jp/html/modules/user/admin/actions Message-ID: <20061014112911.65B7D2AC264@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/actions/Mailjob_linkListAction.class.php diff -u /dev/null xoops2jp/html/modules/user/admin/actions/Mailjob_linkListAction.class.php:1.1.2.1 --- /dev/null Sat Oct 14 20:29:11 2006 +++ xoops2jp/html/modules/user/admin/actions/Mailjob_linkListAction.class.php Sat Oct 14 20:29:11 2006 @@ -0,0 +1,88 @@ +mActionForm =& new User_Mailjob_linkAdminDeletesForm(); + $this->mActionForm->prepare(); + + $this->mActionForm->fetch(); + } + + function &_getHandler() + { + $handler =& xoops_getmodulehandler('mailjob_link'); + return $handler; + } + + function &_getFilterForm() + { + $filter =& new User_Mailjob_linkFilterForm($this->_getPageNavi(), $this->_getHandler()); + return $filter; + } + + function _getBaseUrl() + { + return "./index.php?action=Mailjob_linkList"; + } + + function getDefaultView(&$controller, &$xoopsUser) + { + $handler =& xoops_getmodulehandler('mailjob', 'user'); + $this->mMailjob =& $handler->get($this->mActionForm->get('mailjob_id')); + + if ($this->mMailjob == null) { + return USER_FRAME_VIEW_ERROR; + } + + return parent::getDefaultView($controller, $xoopsUser); + } + + function execute(&$controller, &$xoopsUser) + { + $this->mActionForm->validate(); + if ($this->mActionForm->hasError()) { + return $this->getDefaultView($controller, $xoopsUser); + } + + $mailjob_id = $this->mActionForm->get('mailjob_id'); + $uidArr = $this->mActionForm->get('uid'); + + $handler =& xoops_getmodulehandler('mailjob_link', 'user'); + foreach (array_keys($uidArr) as $uid) { + $mailjob_link =& $handler->get($mailjob_id, $uid); + if ($mailjob_link != null) { + $handler->delete($mailjob_link); + } + } + + return $this->getDefaultView($controller, $xoopsUser); + } + + function executeViewIndex(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("mailjob_link_list.html"); + #cubson::lazy_load_array('mailjob_link', $this->mObjects); + $render->setAttribute("mailJob", $this->mMailjob); + $render->setAttribute("objects", $this->mObjects); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); + $render->setAttribute('actionForm', $this->mActionForm); + } + + function executeViewError(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward('./index.php?action=MailjobList'); + } +} + +?> From minahito @ users.sourceforge.jp Sat Oct 14 20:29:11 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 20:29:11 +0900 Subject: [xoops-cvslog 5040] CVS update: xoops2jp/html/modules/user/admin/forms Message-ID: <20061014112911.8CC0D2AC263@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/forms/Mailjob_linkAdminDeletesForm.class.php diff -u /dev/null xoops2jp/html/modules/user/admin/forms/Mailjob_linkAdminDeletesForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 20:29:11 2006 +++ xoops2jp/html/modules/user/admin/forms/Mailjob_linkAdminDeletesForm.class.php Sat Oct 14 20:29:11 2006 @@ -0,0 +1,39 @@ +get('mailjob_id'); + } + + /** + * For displaying the confirm-page, don't show CSRF error. + * Always return null. + */ + function getTokenErrorMessage() + { + return null; + } + + function prepare() + { + // set properties + $this->mFormProperties['mailjob_id']=new XCube_IntProperty('mailjob_id'); + $this->mFormProperties['uid']=new XCube_IntArrayProperty('uid'); + } +} + +?> Index: xoops2jp/html/modules/user/admin/forms/Mailjob_linkFilterForm.class.php diff -u /dev/null xoops2jp/html/modules/user/admin/forms/Mailjob_linkFilterForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 20:29:11 2006 +++ xoops2jp/html/modules/user/admin/forms/Mailjob_linkFilterForm.class.php Sat Oct 14 20:29:11 2006 @@ -0,0 +1,44 @@ + 'mailjob_id', + MAILJOB_LINK_SORT_KEY_DEFAULT => 'uid', + MAILJOB_LINK_SORT_KEY_MAILJOB_ID => 'mailjob_id', + MAILJOB_LINK_SORT_KEY_UID => 'uid', + MAILJOB_LINK_SORT_KEY_RETRY => 'retry', + MAILJOB_LINK_SORT_KEY_MESSAGE => 'message' + ); + + function getDefaultSortKey() + { + return MAILJOB_LINK_SORT_KEY_DEFAULT; + } + + function fetch() + { + parent::fetch(); + + if (isset($_REQUEST['mailjob_id'])) { + $this->mNavi->addExtra('mailjob_id', xoops_getrequest('mailjob_id')); + $this->_mCriteria->add(new Criteria('mailjob_id', xoops_getrequest('mailjob_id'))); + } + + $this->_mCriteria->addSort($this->getSort(), $this->getOrder()); + } +} + +?> From minahito @ users.sourceforge.jp Sat Oct 14 20:30:36 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 20:30:36 +0900 Subject: [xoops-cvslog 5041] CVS update: xoops2jp/html/class/smarty/plugins Message-ID: <20061014113036.3B62E2AC220@users.sourceforge.jp> Index: xoops2jp/html/class/smarty/plugins/modifier.xoops_user.php diff -u xoops2jp/html/class/smarty/plugins/modifier.xoops_user.php:1.1.2.3 xoops2jp/html/class/smarty/plugins/modifier.xoops_user.php:1.1.2.3.2.1 --- xoops2jp/html/class/smarty/plugins/modifier.xoops_user.php:1.1.2.3 Thu Nov 24 18:30:58 2005 +++ xoops2jp/html/class/smarty/plugins/modifier.xoops_user.php Sat Oct 14 20:30:36 2006 @@ -15,7 +15,7 @@ $handler=&xoops_gethandler('member'); $user=&$handler->getUser(intval($uid)); if(is_object($user)&&$user->isActive()) { - return $user->getVar($key); + return $user->getShow($key); } return null; From minahito @ users.sourceforge.jp Sat Oct 14 20:31:10 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 20:31:10 +0900 Subject: [xoops-cvslog 5042] CVS update: xoops2jp/html/modules/pm/language/english Message-ID: <20061014113110.E30422AC220@users.sourceforge.jp> Index: xoops2jp/html/modules/pm/language/english/main.php diff -u xoops2jp/html/modules/pm/language/english/main.php:1.1.2.8 xoops2jp/html/modules/pm/language/english/main.php:1.1.2.8.2.1 --- xoops2jp/html/modules/pm/language/english/main.php:1.1.2.8 Sun Sep 10 19:40:45 2006 +++ xoops2jp/html/modules/pm/language/english/main.php Sat Oct 14 20:31:10 2006 @@ -28,7 +28,7 @@ define('_MD_PM_LANG_PROFILE', "Profile"); define('_MD_PM_LANG_REPLY', "Reply"); define('_MD_PM_LANG_SUBJECT', "Subject"); -define('_MD_PM_LANG_SUBJECTC', "Subject: "); +define('_MD_PM_LANG_SUBJECTC', "Subject: "); define('_MD_PM_LANG_SUBMIT', "Submit"); define('_MD_PM_LANG_TO', "To: "); define('_MD_PM_MESSAGE_CLICKHERE', "You can click here to view your private messages"); From minahito @ users.sourceforge.jp Sat Oct 14 22:11:40 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 22:11:40 +0900 Subject: [xoops-cvslog 5043] CVS update: xoops2jp/html/modules/user/admin/templates Message-ID: <20061014131140.D76702AC270@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/templates/mailjob_link_list.html diff -u xoops2jp/html/modules/user/admin/templates/mailjob_link_list.html:1.1.2.1 xoops2jp/html/modules/user/admin/templates/mailjob_link_list.html:1.1.2.2 --- xoops2jp/html/modules/user/admin/templates/mailjob_link_list.html:1.1.2.1 Sat Oct 14 20:28:43 2006 +++ xoops2jp/html/modules/user/admin/templates/mailjob_link_list.html Sat Oct 14 22:11:40 2006 @@ -35,7 +35,7 @@ <{foreach item=obj from=$objects}> <{xoops_input type=checkbox name=uid key=$obj->get('uid')}> - <{$obj->getShow('mailjob_id')}> + <{$obj->getShow('uid')}> <{$obj->get('uid')|xoops_user:uname}> <{$obj->getShow('retry')}> <{$obj->getShow('message')}> From minahito @ users.sourceforge.jp Sat Oct 14 23:17:49 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:17:49 +0900 Subject: [xoops-cvslog 5044] CVS update: xoops2jp/html/modules/user/admin/actions Message-ID: <20061014141749.C40FE2AC27C@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/actions/MailjobSendAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/MailjobSendAction.class.php:1.1.2.4 xoops2jp/html/modules/user/admin/actions/MailjobSendAction.class.php:1.1.2.4.2.1 --- xoops2jp/html/modules/user/admin/actions/MailjobSendAction.class.php:1.1.2.4 Sat Aug 5 22:23:00 2006 +++ xoops2jp/html/modules/user/admin/actions/MailjobSendAction.class.php Sat Oct 14 23:17:49 2006 @@ -55,7 +55,7 @@ return USER_FRAME_VIEW_INPUT; } - $root =& XCube_Root::getSingleton(); + $root =& XCube_Root::getSingleton(); if ($this->mMailjob->get('is_pm')) { $this->mMailjob->mSend->add(array(&$this, "sendPM")); } @@ -98,7 +98,7 @@ * Until private message will come to implement Service, we use pm object * directly. */ - function sendPM(&$mailjob, &$to_user, &$from_user) + function sendPM(&$link, &$mailjob, &$to_user, &$from_user) { $handler =& xoops_gethandler('privmessage'); @@ -109,10 +109,12 @@ $pm->set('from_userid', $from_user->get('uid')); $pm->set('to_userid', $to_user->get('uid')); - $handler->insert($pm); + if (!$handler->insert($pm)) { + $link->set('message', $link->get('message') . 'Cound not send PM.'); + } } - function sendMail(&$mailjob, $to_user, $from_user) + function sendMail(&$link, &$mailjob, $to_user, $from_user) { $xoopsMailer =& getMailer(); $xoopsMailer->useMail(); @@ -131,10 +133,9 @@ $xoopsMailer->setSubject($mailjob->getReplaceTitle($to_user, $from_user)); $xoopsMailer->setBody($mailjob->getReplaceBody($to_user, $from_user)); - // - // TODO Error handling. - // - $xoopsMailer->send(true); + if (!$xoopsMailer->send(true)) { + $link->set('message', $link->get('message') . $xoopsMailer->ErrorInfo); + } } } From minahito @ users.sourceforge.jp Sat Oct 14 23:17:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:17:57 +0900 Subject: [xoops-cvslog 5045] CVS update: xoops2jp/html/modules/user/language/english Message-ID: <20061014141757.2D8EC2AC13C@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/english/admin.php diff -u xoops2jp/html/modules/user/language/english/admin.php:1.1.2.30.2.2 xoops2jp/html/modules/user/language/english/admin.php:1.1.2.30.2.3 --- xoops2jp/html/modules/user/language/english/admin.php:1.1.2.30.2.2 Sat Oct 14 20:28:16 2006 +++ xoops2jp/html/modules/user/language/english/admin.php Sat Oct 14 23:17:57 2006 @@ -98,6 +98,7 @@ define('_AD_USER_LANG_RETRY', "retry"); define('_AD_USER_LANG_SEARCH_AGAIN', "Search again"); define('_AD_USER_LANG_SEND_MAIL_BY_THIS_CONDITION', "Send mail to these users"); +define('_AD_USER_LANG_TARGET_RETRY_NUMBER', "Target retry number"); define('_AD_USER_LANG_TITLE', "Title"); define('_AD_USER_LANG_UID', "uid"); define('_AD_USER_LANG_UNDER_POSTS', "Number of Posts is less than X"); From minahito @ users.sourceforge.jp Sat Oct 14 23:17:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:17:57 +0900 Subject: [xoops-cvslog 5046] CVS update: xoops2jp/html/modules/user/language/japanese Message-ID: <20061014141757.5EB5A2AC27C@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/japanese/admin.php diff -u xoops2jp/html/modules/user/language/japanese/admin.php:1.1.2.37.2.2 xoops2jp/html/modules/user/language/japanese/admin.php:1.1.2.37.2.3 --- xoops2jp/html/modules/user/language/japanese/admin.php:1.1.2.37.2.2 Sat Oct 14 20:28:16 2006 +++ xoops2jp/html/modules/user/language/japanese/admin.php Sat Oct 14 23:17:57 2006 @@ -98,6 +98,7 @@ define('_AD_USER_LANG_RETRY', "リトライ"); define('_AD_USER_LANG_SEARCH_AGAIN', "条件を修正して再検索"); define('_AD_USER_LANG_SEND_MAIL_BY_THIS_CONDITION', "この条件でメールを送信"); +define('_AD_USER_LANG_TARGET_RETRY_NUMBER', "今回処理するリトライ番号"); define('_AD_USER_LANG_TITLE', "タイトル"); define('_AD_USER_LANG_UID', "uid"); define('_AD_USER_LANG_UNDER_POSTS', "投稿数がX件以下"); From minahito @ users.sourceforge.jp Sat Oct 14 23:17:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:17:57 +0900 Subject: [xoops-cvslog 5047] CVS update: xoops2jp/html/modules/user/admin/templates Message-ID: <20061014141757.801C22AC13C@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/templates/mailjob_send.html diff -u xoops2jp/html/modules/user/admin/templates/mailjob_send.html:1.1.2.7 xoops2jp/html/modules/user/admin/templates/mailjob_send.html:1.1.2.7.2.1 --- xoops2jp/html/modules/user/admin/templates/mailjob_send.html:1.1.2.7 Mon Sep 25 02:57:30 2006 +++ xoops2jp/html/modules/user/admin/templates/mailjob_send.html Sat Oct 14 23:17:57 2006 @@ -30,6 +30,10 @@ "><{$object->getShow('body')}> + Target retry number + "><{$object->getCurrentRetry()|escape}> + + <{$smarty.const._AD_USER_LANG_FROM_NAME}> "><{$object->getShow('from_name')}> @@ -45,8 +49,6 @@ <{$smarty.const._AD_USER_LANG_IS_MAIL}> "><{if $object->getShow('is_mail') == 1}><{$smarty.const._YES}><{else}><{$smarty.const._NO}><{/if}> - - <{$smarty.const._AD_USER_LANG_CREATE_UNIXTIME}> "><{$object->get('create_unixtime')|xoops_formattimestamp:l}> From minahito @ users.sourceforge.jp Sat Oct 14 23:17:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:17:57 +0900 Subject: [xoops-cvslog 5048] CVS update: xoops2jp/html/modules/user/class Message-ID: <20061014141757.ABC182AC27B@users.sourceforge.jp> Index: xoops2jp/html/modules/user/class/mailjob.php diff -u xoops2jp/html/modules/user/class/mailjob.php:1.1.2.7 xoops2jp/html/modules/user/class/mailjob.php:1.1.2.7.2.1 --- xoops2jp/html/modules/user/class/mailjob.php:1.1.2.7 Mon Aug 7 20:32:25 2006 +++ xoops2jp/html/modules/user/class/mailjob.php Sat Oct 14 23:17:57 2006 @@ -65,23 +65,51 @@ } } + /** + * Gets users who this mailjob will send mail to, with $retry number. + * @param int $retry + */ + function &getUsers($retry) + { + $handler =& xoops_getmodulehandler('mailjob_link', 'user'); + + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('mailjob_id', $this->get('mailjob_id'))); + $criteria->add(new Criteria('retry', $retry)); + + $arr =& $handler->getObjects($criteria); + + return $arr; + } + function send($from_user) { $root =& XCube_Root::getSingleton(); - $this->loadUser(); + $userArr =& $this->getUsers($this->getCurrentRetry()); $handler =& xoops_getmodulehandler('mailjob_link', 'user'); $userHandler =& xoops_gethandler('user'); - foreach ($this->mUsers as $link) { - $to_user =& $userHandler->get($link->get('uid')); + foreach (array_keys($userArr) as $key) { + $to_user =& $userHandler->get($userArr[$key]->get('uid')); + + $userArr[$key]->set('message', ''); if (is_object($to_user)) { - $this->mSend->call(new XCube_Ref($this), $to_user, $from_user); + $this->mSend->call(new XCube_Ref($userArr[$key]), new XCube_Ref($this), $to_user, $from_user); + } + else { + $userArr[$key]->set('message', 'This user does not exist.'); } - $handler->delete($link); + if ($userArr[$key]->get('message') == '') { + $handler->delete($userArr[$key]); + } + else { + $userArr[$key]->set('retry', $userArr[$key]->get('retry') + 1); + $handler->insert($userArr[$key]); + } } } @@ -105,6 +133,12 @@ return $t_body; } + + function getCurrentRetry() + { + $handler =& xoops_getmodulehandler('mailjob_link', 'user'); + return $handler->getCurrentRetry($this->get('mailjob_id')); + } } class UserMailjobHandler extends XoopsObjectGenericHandler Index: xoops2jp/html/modules/user/class/mailjob_link.php diff -u xoops2jp/html/modules/user/class/mailjob_link.php:1.1.2.3.2.1 xoops2jp/html/modules/user/class/mailjob_link.php:1.1.2.3.2.2 --- xoops2jp/html/modules/user/class/mailjob_link.php:1.1.2.3.2.1 Sat Oct 14 20:28:34 2006 +++ xoops2jp/html/modules/user/class/mailjob_link.php Sat Oct 14 23:17:57 2006 @@ -36,6 +36,39 @@ return $ret; } + function getCurrentRetry($mailjob_id) + { + $mailjob_id = intval($mailjob_id); + $table = $this->mTable; + + $sql = "SELECT min(retry) AS cretry FROM ${table} where mailjob_id='${mailjob_id}'"; + + $result = $this->db->query($sql); + $row = $this->db->fetchArray($result); + + return $row['cretry']; + } + + function _update(&$obj) { + $set_lists=array(); + $where = ""; + + $arr = $this->_makeVars4sql($obj); + + foreach ($arr as $_name => $_value) { + if ($_name == 'mailjob_id' || $_name == 'uid') { + $where = "${_name}=${_value}"; + } + else { + $set_lists[] = "${_name}=${_value}"; + } + } + + $sql = @sprintf("UPDATE " . $this->mTable . " SET %s WHERE %s", implode(",",$set_lists), $where); + + return $sql; + } + function delete(&$obj, $force = false) { // From minahito @ users.sourceforge.jp Sat Oct 14 23:18:07 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:18:07 +0900 Subject: [xoops-cvslog 5049] CVS update: xoops2jp/html/modules/user/templates Message-ID: <20061014141807.2E70C2AC13C@users.sourceforge.jp> Index: xoops2jp/html/modules/user/templates/user_mailjob_link_list.html diff -u xoops2jp/html/modules/user/templates/user_mailjob_link_list.html:1.1.2.1 xoops2jp/html/modules/user/templates/user_mailjob_link_list.html:removed --- xoops2jp/html/modules/user/templates/user_mailjob_link_list.html:1.1.2.1 Sat Oct 14 20:25:09 2006 +++ xoops2jp/html/modules/user/templates/user_mailjob_link_list.html Sat Oct 14 23:18:07 2006 @@ -1,35 +0,0 @@ - - - - - - - - - - - <{foreach item=obj from=$objects}> - - - - - - - - <{/foreach}> -
<{$smarty.const._MD_USER_LANG_MAILJOB_ID}>
- <{$smarty.const._ASCENDING}> - <{$smarty.const._DESCENDING}>
<{$smarty.const._MD_USER_LANG_UID}>
- <{$smarty.const._ASCENDING}> - <{$smarty.const._DESCENDING}>
<{$smarty.const._MD_USER_LANG_RETRY}>
- <{$smarty.const._ASCENDING}> - <{$smarty.const._DESCENDING}>
<{$smarty.const._MD_USER_LANG_MESSAGE}>
- <{$smarty.const._ASCENDING}> - <{$smarty.const._DESCENDING}>
<{$smarty.const._MD_USER_LANG_CONTROL}>
<{$obj->getShow('mailjob_id')}><{$obj->getShow('uid')}><{$obj->getShow('retry')}><{$obj->getShow('message')}> - <{$smarty.const._VIEW}> - <{$smarty.const._EDIT}> - <{$smarty.const._DELETE}> -
- From minahito @ users.sourceforge.jp Sat Oct 14 23:19:24 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:19:24 +0900 Subject: [xoops-cvslog 5050] CVS update: xoops2jp/html/modules/user/admin/templates Message-ID: <20061014141924.58DF52AC27B@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/templates/mailjob_send.html diff -u xoops2jp/html/modules/user/admin/templates/mailjob_send.html:1.1.2.7.2.1 xoops2jp/html/modules/user/admin/templates/mailjob_send.html:1.1.2.7.2.2 --- xoops2jp/html/modules/user/admin/templates/mailjob_send.html:1.1.2.7.2.1 Sat Oct 14 23:17:57 2006 +++ xoops2jp/html/modules/user/admin/templates/mailjob_send.html Sat Oct 14 23:19:24 2006 @@ -30,7 +30,7 @@ "><{$object->getShow('body')}> - Target retry number + <{$smarty.const._AD_USER_LANG_TARGET_RETRY_NUMBER}> "><{$object->getCurrentRetry()|escape}> From minahito @ users.sourceforge.jp Sat Oct 14 23:42:31 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:42:31 +0900 Subject: [xoops-cvslog 5051] CVS update: xoops2jp/html/core Message-ID: <20061014144231.232532AC27D@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_Root.class.php diff -u xoops2jp/html/core/XCube_Root.class.php:1.1.2.1 xoops2jp/html/core/XCube_Root.class.php:1.1.2.2 --- xoops2jp/html/core/XCube_Root.class.php:1.1.2.1 Fri Sep 29 17:13:22 2006 +++ xoops2jp/html/core/XCube_Root.class.php Sat Oct 14 23:42:30 2006 @@ -1,7 +1,7 @@ Index: xoops2jp/html/core/XCube_Root.class.php diff -u xoops2jp/html/core/XCube_Root.class.php:1.1.2.2 xoops2jp/html/core/XCube_Root.class.php:1.1.2.3 --- xoops2jp/html/core/XCube_Root.class.php:1.1.2.2 Sat Oct 14 23:42:30 2006 +++ xoops2jp/html/core/XCube_Root.class.php Sat Oct 14 23:51:50 2006 @@ -1,7 +1,7 @@ mCacheSystem)) { - $this->mCacheSystem =& $this->_createInstance($this->mSiteConfig['Cube']['CacheSystem.class'], $this->mSiteConfig['Cube']['CacheSystem.path']); - } - - return $this->mCacheSystem; - } - - /** * Return the instance of the render system by the name. If the render * system specified by $name doesn't exist, raise fatal error. This member * function does creating the instance and calling prepare(). From minahito @ users.sourceforge.jp Sat Oct 14 23:54:51 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:51 +0900 Subject: [xoops-cvslog 5053] CVS update: xoops2jp/html/modules/legacy Message-ID: <20061014145451.EDA6B2AC13C@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:52 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:52 +0900 Subject: [xoops-cvslog 5054] CVS update: xoops2jp/html/modules/legacy/.xml Message-ID: <20061014145452.225392AC27F@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:52 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:52 +0900 Subject: [xoops-cvslog 5055] CVS update: xoops2jp/html/modules/legacy/.xml/data Message-ID: <20061014145452.4AABC2AC13C@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:52 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:52 +0900 Subject: [xoops-cvslog 5056] CVS update: xoops2jp/html/modules/legacy/actions Message-ID: <20061014145452.7587A2AC27F@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:52 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:52 +0900 Subject: [xoops-cvslog 5057] CVS update: xoops2jp/html/modules/legacy/admin Message-ID: <20061014145452.9F6042AC13C@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:53 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:53 +0900 Subject: [xoops-cvslog 5058] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014145453.0533C2AC13C@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:52 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:52 +0900 Subject: [xoops-cvslog 5059] CVS update: xoops2jp/html/modules/legacy/admin/.xml Message-ID: <20061014145452.C7C702AC27F@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:53 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:53 +0900 Subject: [xoops-cvslog 5060] CVS update: xoops2jp/html/modules/legacy/admin/blocks Message-ID: <20061014145453.30BE22AC27F@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:53 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:53 +0900 Subject: [xoops-cvslog 5061] CVS update: xoops2jp/html/modules/legacy/admin/class Message-ID: <20061014145453.5CAB62AC13C@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:53 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:53 +0900 Subject: [xoops-cvslog 5062] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014145453.8AF392AC27F@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:53 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:53 +0900 Subject: [xoops-cvslog 5063] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014145453.B7BE02AC281@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:53 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:53 +0900 Subject: [xoops-cvslog 5064] CVS update: xoops2jp/html/modules/legacy/admin/templates/blocks Message-ID: <20061014145453.E37A52AC27F@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:54 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:54 +0900 Subject: [xoops-cvslog 5065] CVS update: xoops2jp/html/modules/legacy/admin/templates/stylesheets Message-ID: <20061014145454.1A10E2AC281@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:54 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:54 +0900 Subject: [xoops-cvslog 5066] CVS update: xoops2jp/html/modules/legacy/admin/theme Message-ID: <20061014145454.450142AC282@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:54 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:54 +0900 Subject: [xoops-cvslog 5067] CVS update: xoops2jp/html/modules/legacy/admin/theme/design Message-ID: <20061014145454.6E2922AC281@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:54 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:54 +0900 Subject: [xoops-cvslog 5068] CVS update: xoops2jp/html/modules/legacy/admin/theme/icons Message-ID: <20061014145454.98D792AC13C@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:54 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:54 +0900 Subject: [xoops-cvslog 5069] CVS update: xoops2jp/html/modules/legacy/admin/theme/stylesheets Message-ID: <20061014145454.CB95F2AC281@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:55 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:55 +0900 Subject: [xoops-cvslog 5070] CVS update: xoops2jp/html/modules/legacy/blocks Message-ID: <20061014145455.02A722AC282@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:55 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:55 +0900 Subject: [xoops-cvslog 5071] CVS update: xoops2jp/html/modules/legacy/class Message-ID: <20061014145455.302532AC27F@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:55 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:55 +0900 Subject: [xoops-cvslog 5072] CVS update: xoops2jp/html/modules/legacy/images Message-ID: <20061014145455.8BD902AC282@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:55 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:55 +0900 Subject: [xoops-cvslog 5073] CVS update: xoops2jp/html/modules/legacy/forms Message-ID: <20061014145455.5F1A72AC281@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:55 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:55 +0900 Subject: [xoops-cvslog 5074] CVS update: xoops2jp/html/modules/legacy/kernel Message-ID: <20061014145455.EA05F2AC281@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:55 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:55 +0900 Subject: [xoops-cvslog 5075] CVS update: xoops2jp/html/modules/legacy/include Message-ID: <20061014145455.B79E82AC27F@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:56 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:56 +0900 Subject: [xoops-cvslog 5076] CVS update: xoops2jp/html/modules/legacy/language Message-ID: <20061014145456.235852AC27F@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:56 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:56 +0900 Subject: [xoops-cvslog 5077] CVS update: xoops2jp/html/modules/legacy/language/english/help Message-ID: <20061014145456.7D3A12AC282@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:56 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:56 +0900 Subject: [xoops-cvslog 5078] CVS update: xoops2jp/html/modules/legacy/language/english Message-ID: <20061014145456.508132AC281@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:56 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:56 +0900 Subject: [xoops-cvslog 5079] CVS update: xoops2jp/html/modules/legacy/language/japanese Message-ID: <20061014145456.AD0A82AC27F@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:56 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:56 +0900 Subject: [xoops-cvslog 5080] CVS update: xoops2jp/html/modules/legacy/language/japanese/help Message-ID: <20061014145456.DC9252AC281@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:57 +0900 Subject: [xoops-cvslog 5081] CVS update: xoops2jp/html/modules/legacy/lib Message-ID: <20061014145457.14F1F2AC27F@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:57 +0900 Subject: [xoops-cvslog 5082] CVS update: xoops2jp/html/modules/legacy/lib/ShadePlus Message-ID: <20061014145457.41DC42AC281@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:57 +0900 Subject: [xoops-cvslog 5083] CVS update: xoops2jp/html/modules/legacy/lib/ShadeSoap Message-ID: <20061014145457.6F5962AC27F@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:57 +0900 Subject: [xoops-cvslog 5084] CVS update: xoops2jp/html/modules/legacy/lib/nusoap Message-ID: <20061014145457.9C51E2AC281@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:57 +0900 Subject: [xoops-cvslog 5085] CVS update: xoops2jp/html/modules/legacy/preload Message-ID: <20061014145457.CDC3F2AC27F@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:58 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:58 +0900 Subject: [xoops-cvslog 5086] CVS update: xoops2jp/html/modules/legacy/preload/Primary Message-ID: <20061014145458.04D552AC281@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:58 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:58 +0900 Subject: [xoops-cvslog 5087] CVS update: xoops2jp/html/modules/legacy/preload/protectorLE Message-ID: <20061014145458.32C982AC27F@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:58 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:58 +0900 Subject: [xoops-cvslog 5088] CVS update: xoops2jp/html/modules/legacy/service Message-ID: <20061014145458.614B42AC281@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:58 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:58 +0900 Subject: [xoops-cvslog 5089] CVS update: xoops2jp/html/modules/legacy/templates Message-ID: <20061014145458.8FB272AC27F@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:54:58 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:54:58 +0900 Subject: [xoops-cvslog 5090] CVS update: xoops2jp/html/modules/legacy/templates/blocks Message-ID: <20061014145458.C0DB52AC281@users.sourceforge.jp> From minahito @ users.sourceforge.jp Sat Oct 14 23:55:21 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:21 +0900 Subject: [xoops-cvslog 5092] CVS update: xoops2jp/html/modules/legacy/actions Message-ID: <20061014145521.E94142AC27F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/actions/SearchAction.class.php diff -u /dev/null xoops2jp/html/modules/legacy/actions/SearchAction.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/SearchAction.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,54 @@ +mRoot; + $service =& $root->mServiceManager->getService("LegacySearch"); + if (is_object($service)) { + $client =& $root->mServiceManager->createClient($service); + + $this->mModules =& $client->call('getActiveModules', array()); + } + + return LEGACY_FRAME_VIEW_INDEX; + } + + function _getSelectedMids() + { + $ret = array(); + foreach(array_keys($this->mModules) as $key) { + $ret[] = $this->mModules[$key]['mid']; + } + + return $ret; + } + + function executeViewIndex(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("legacy_search_form.html"); + + $render->setAttribute('actionForm', $this->mActionForm); + + $render->setAttribute('moduleArr', $this->mModules); + + // + // If the request include $mids, setAttribute it. If it don't include, + // setAttribute $mid or $this->mModules. + // + $render->setAttribute('selectedMidArr', $this->_getSelectedMids()); + $render->setAttribute('searchRuleMessage', @sprintf(_SR_KEYTOOSHORT, $this->mConfig['keyword_min'])); + } +} + +?> Index: xoops2jp/html/modules/legacy/actions/NotifyDeleteAction.class.php diff -u /dev/null xoops2jp/html/modules/legacy/actions/NotifyDeleteAction.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/NotifyDeleteAction.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,87 @@ +mRoot->mLanguageManager->loadPageTypeMessageCatalog('notification'); + $controller->mRoot->mLanguageManager->loadModuleMessageCatalog('base'); + + $this->mActionForm =& new Legacy_NotifyDeleteForm(); + $this->mActionForm->prepare(); + } + + function hasPermission(&$controller, &$xoopsUser) + { + return is_object($xoopsUser); + } + + /** + * This member function is a special case. Because the confirm is must, it + * uses token error for displaying confirm. + */ + function execute(&$contoller, &$xoopsUser) + { + $this->mActionForm->fetch(); + $this->mActionForm->validate(); + + // + // If input values are error, the action form returns fatal error flag. + // If it's not fatal, display confirm form. + // + if ($this->mActionForm->hasError()) { + return $this->mActionForm->mFatalError ? LEGACY_FRAME_VIEW_ERROR : LEGACY_FRAME_VIEW_INPUT; + } + + // + // Execute deleting. + // + $successFlag = true; + $handler =& xoops_gethandler('notification'); + foreach ($this->mActionForm->mNotifiyIds as $t_idArr) { + $t_notify =& $handler->get($t_idArr['id']); + if (is_object($t_notify) && $t_notify->get('not_uid') == $xoopsUser->get('uid') && $t_notify->get('not_modid') == $t_idArr['modid']) { + $successFlag = $successFlag & $handler->delete($t_notify); + } + } + + return $successFlag ? LEGACY_FRAME_VIEW_SUCCESS : LEGACY_FRAME_VIEW_ERROR; + } + + function executeViewInput(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("legacy_notification_delete.html"); + $render->setAttribute('actionForm', $this->mActionForm); + } + + function executeViewSuccess(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward(XOOPS_URL . "/notifications.php"); + } + + function executeViewError(&$controller, &$xoopsUser, &$render) + { + $controller->executeRedirect(XOOPS_URL . "/notifications.php", 2, _NOT_NOTHINGTODELETE); + } +} + +?> Index: xoops2jp/html/modules/legacy/actions/BackendAction.class.php diff -u /dev/null xoops2jp/html/modules/legacy/actions/BackendAction.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/BackendAction.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,109 @@ +mGetRSSItems =& new XCube_Delegate(); + $this->mGetRSSItems->register('Legacy_BackendAction.GetRSSItems'); + } + + function getDefaultView(&$controll, &$xoopsUser) + { + $items = array(); + $this->mGetRSSItems->call(new XCube_Ref($items)); + + $sortArr = array(); + foreach ($items as $item) { + $i = intval($item['pubdate']); + for (; isset($sortArr[$i]) ; $i++); + + $sortArr[$i] = $item; + } + krsort($sortArr); + $this->mItems = $sortArr; + return LEGACY_FRAME_VIEW_INDEX; + } + + function executeViewIndex(&$controller, &$xoopsUser, &$render) + { + $xoopsConfig = $controller->mRoot->mContext->mXoopsConfig; + + // + // Set up the render buffer. + // + $renderSystem =& $controller->mRoot->getRenderSystem('Legacy_RenderSystem'); + + $renderTarget =& $renderSystem->createRenderTarget('main'); + + $renderTarget->setTemplateName("legacy_rss.html"); + + $renderTarget->setAttribute('channel_title', $xoopsConfig['sitename']); + $renderTarget->setAttribute('channel_link', XOOPS_URL . '/'); + $renderTarget->setAttribute('channel_desc', $xoopsConfig['slogan']); + $renderTarget->setAttribute('channel_lastbuild', formatTimestamp(time(), 'rss')); + $renderTarget->setAttribute('channel_webmaster', $xoopsConfig['adminmail']); + $renderTarget->setAttribute('channel_editor', $xoopsConfig['adminmail']); + $renderTarget->setAttribute('channel_category', 'News'); + $renderTarget->setAttribute('channel_generator', 'XOOPS Cube'); + $renderTarget->setAttribute('image_url', XOOPS_URL . '/images/logo.gif'); + + $dimention = getimagesize(XOOPS_ROOT_PATH . '/images/logo.gif'); + + $width = 0; + if (empty($dimention[0])) { + $width = 88; + } + else { + $width = ($dimention[0] > 144) ? 144 : $dimention[0]; + } + + $height = 0; + if (empty($dimention[1])) { + $height = 31; + } else { + $height = ($dimention[1] > 400) ? 400 : $dimention[1]; + } + + $renderTarget->setAttribute('image_width', $width); + $renderTarget->setAttribute('image_height', $height); + $renderTarget->setAttribute('items', $this->mItems); + + // + // Rendering + // + $renderSystem->renderWithTarget($renderTarget); + + if (function_exists('mb_http_output')) { + mb_http_output('pass'); + } + header ('Content-Type:text/xml; charset=utf-8'); + + + print xoops_utf8_encode($renderTarget->getResult()); + + exit(0); + } +} Index: xoops2jp/html/modules/legacy/actions/SearchShowallbyuserAction.class.php diff -u /dev/null xoops2jp/html/modules/legacy/actions/SearchShowallbyuserAction.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/SearchShowallbyuserAction.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,54 @@ +mActionForm =& new Legacy_SearchShowallbyuserForm($this->mConfig['keyword_min']); + $this->mActionForm->prepare(); + } + + function _getTemplateName() + { + return "legacy_search_showallbyuser.html"; + } + + function _getSelectedMids() + { + $ret = array(); + $ret[] = $this->mActionForm->get('mid'); + + return $ret; + } + + function _doSearch(&$client, &$xoopsUser, &$params) + { + return $client->call('searchItemsOfUser', $params); + } + + function _getMaxHit() + { + return LEGACY_SEARCH_SHOWALL_MAXHIT; + } + + function executeViewIndex(&$controller, &$xoopsUser, &$render) + { + parent::executeViewIndex($controller, $xoopsUser, $render); + + $handler =& xoops_gethandler('user'); + $user =& $handler->get($this->mActionForm->get('uid')); + + $render->setAttribute('targetUser', $user); + } +} + +?> Index: xoops2jp/html/modules/legacy/actions/MiscSslloginAction.class.php diff -u /dev/null xoops2jp/html/modules/legacy/actions/MiscSslloginAction.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/MiscSslloginAction.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,28 @@ +mRoot; + $root->mLanguageManager->loadModuleMessageCatalog('user'); + + $render->setTemplateName("legacy_misc_ssllogin.html"); + $render->setAttribute("message", @sprintf(_US_LOGGINGU, $xoopsUser->getVar('uname'))); + } +} + +?> Index: xoops2jp/html/modules/legacy/actions/ImageUploadAction.class.php diff -u /dev/null xoops2jp/html/modules/legacy/actions/ImageUploadAction.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/ImageUploadAction.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,80 @@ +setDialogMode(true); + + $root =& $controller->mRoot; + $root->mLanguageManager->loadModuleMessageCatalog('base'); + } + + function &_getHandler() + { + $handler =& xoops_getmodulehandler('image', 'base'); + return $handler; + } + + function _setupObject() + { + $this->mObjectHandler =& $this->_getHandler(); + $this->mObject =& $this->mObjectHandler->create(); + $this->mObject->set('imgcat_id', xoops_getrequest('imgcat_id')); + } + + function _setupActionForm() + { + $this->mActionForm =& new Legacy_ImageUploadForm(); + $this->mActionForm->prepare(); + } + + function hasPermission(&$controller, &$xoopsUser) + { + $groups = array(); + if (is_object($xoopsUser)) { + $groups =& $xoopsUser->getGroups(); + } + else { + $groups = array(XOOPS_GROUP_ANONYMOUS); + } + + $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $this->mCategory =& $handler->get(xoops_getrequest('imgcat_id')); + if (!is_object($this->mCategory ) || (is_object($this->mCategory) && !$this->mCategory->hasUploadPerm($groups))) { + return false; + } + + return true; + } + + function executeViewInput(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("legacy_image_upload.html"); + $render->setAttribute('actionForm', $this->mActionForm); + $render->setAttribute('object', $this->mObject); + + $render->setAttribute('category', $this->mCategory); + $render->setAttribute('target', xoops_getrequest('target')); + } + + function executeViewSuccess(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward(XOOPS_URL . "/imagemanager.php?imgcat_id=" . $this->mActionForm->get('imgcat_id') . "&target=" . xoops_getrequest('target')); + } + + function executeViewError(&$controller, &$xoopsUser, &$render) + { + redirect_header(XOOPS_URL . "/imagemanager.php", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + } +} + +?> Index: xoops2jp/html/modules/legacy/actions/MiscFriendAction.class.php diff -u /dev/null xoops2jp/html/modules/legacy/actions/MiscFriendAction.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/MiscFriendAction.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,74 @@ +mActionForm =& new Legacy_MiscFriendForm(); + $this->mActionForm->prepare(); + } + + function getDefaultView(&$controller, &$xoopsUser) + { + $this->mActionForm->load($xoopsUser); + return LEGACY_FRAME_VIEW_INPUT; + } + + function execute(&$controller, &$xoopsUser) + { + $this->mActionForm->fetch(); + $this->mActionForm->validate(); + + if ($this->mActionForm->hasError()) { + return LEGACY_FRAME_VIEW_INPUT; + } + + $this->mMailer =& getMailer(); + $this->mMailer->setTemplate("tellfriend.tpl"); + $this->mMailer->assign("SITENAME", $this->mRoot->mContext->getXoopsConfig('sitename')); + $this->mMailer->assign("ADMINMAIL", $this->mRoot->mContext->getXoopsConfig('adminmail')); + $this->mMailer->assign("SITEURL", XOOPS_URL . '/'); + + $this->mActionForm->update($this->mMailer); + + $this->mMailer->setSubject(sprintf(_MSC_INTSITE, $this->mRoot->mContext->getXoopsConfig('sitename'))); + + return $this->mMailer->send() ? LEGACY_FRAME_VIEW_SUCCESS : LEGACY_FRAME_VIEW_ERROR; + } + + function executeViewInput(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("legacy_misc_friend.html"); + $render->setAttribute('actionForm', $this->mActionForm); + } + + function executeViewSuccess(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("legacy_misc_friend_success.html"); + } + + function executeViewError(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("legacy_misc_friend_error.html"); + $render->setAttribute('xoopsMailer', $this->mMailer); + } +} + +?> Index: xoops2jp/html/modules/legacy/actions/SearchResultsAction.class.php diff -u /dev/null xoops2jp/html/modules/legacy/actions/SearchResultsAction.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/SearchResultsAction.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,158 @@ +mRoot; + $root->mLanguageManager->loadPageTypeMessageCatalog('search'); + $root->mLanguageManager->loadModuleMessageCatalog('base'); + + $handler =& xoops_gethandler('config'); + $this->mConfig =& $handler->getConfigsByCat(XOOPS_CONF_SEARCH); + + $this->_setupActionForm(); + } + + function _setupActionForm() + { + $this->mActionForm =& new Legacy_SearchResultsForm($this->mConfig['keyword_min']); + $this->mActionForm->prepare(); + } + + function hasPermission(&$controller, &$xoopsUser) + { + if ($this->mConfig['enable_search'] != 1) { + $controller->executeRedirect(XOOPS_URL . '/', 3, _MD_BASE_ERROR_SEARCH_NOT_ENABLED); + return false; + } + return true; + } + + function _getMaxHit() + { + return LEGACY_SEARCH_RESULT_MAXHIT; + } + + function getDefaultView(&$controller, &$xoopsUser) + { + $this->mActionForm->fetch(); + $this->mActionForm->validate(); + + if ($this->mActionForm->hasError()) { + return LEGACY_FRAME_VIEW_INDEX; + } + + // + // TODO ErrorHandling + // + $root =& $controller->mRoot; + $service =& $root->mServiceManager->getService("LegacySearch"); + if (is_object($service)) { + $client =& $root->mServiceManager->createClient($service); + + $this->mModules =& $client->call('getActiveModules', array()); + + $this->mActionForm->update($params); + + $handler =& xoops_gethandler('module'); + foreach ($this->_getSelectedMids() as $mid) { + $t_module =& $handler->get($mid); + if (is_object($t_module)) { + $module = array(); + + $module['mid'] = $mid; + $module['name'] = $t_module->get('name'); + + $params['mid'] = $mid; + $module['results'] = $this->_doSearch($client, $xoopsUser, $params); + + if (count($module['results']) > 0) { + $module['has_more'] = (count($module['results']) >= $this->_getMaxHit()) ? true : false; + $this->mSearchResults[] = $module; + } + } + } + } + else { + return LEGACY_FRAME_VIEW_ERROR; + } + + return LEGACY_FRAME_VIEW_INDEX; + } + + function _doSearch(&$client, &$xoopsUser, &$params) + { + $root =& XCube_Root::getSingleton(); + $timezone = $root->mContext->getXoopsConfig('server_TZ') * 3600; + + $results = $client->call('searchItems', $params); + + foreach (array_keys($results) as $key) { + if ($results[$key]['time'] > 0) { + $results[$key]['time'] = $results[$key]['time'] + $timezone; + } + } + + return $results; + } + + function execute(&$controller, &$xoopsUser) + { + return $this->getDefaultView($controller, $xoopsUser); + } + + function executeViewIndex(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName($this->_getTemplateName()); + + $render->setAttribute('actionForm', $this->mActionForm); + + $render->setAttribute('searchResults', $this->mSearchResults); + $render->setAttribute('moduleArr', $this->mModules); + + // + // If the request include $mids, setAttribute it. If it don't include, + // setAttribute $mid or $this->mModules. + // + $render->setAttribute('selectedMidArr', $this->_getSelectedMids()); + $render->setAttribute('searchRuleMessage', @sprintf(_SR_KEYTOOSHORT, $this->mConfig['keyword_min'])); + } + + function _getTemplateName() + { + return "legacy_search_results.html"; + } + + function _getSelectedMids() + { + $ret = $this->mActionForm->get('mids'); + if (!count($ret)) { + foreach ($this->mModules as $module) { + $ret[] = $module['mid']; + } + } + + return $ret; + } + + function executeViewError(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward(XOOPS_URL . '/'); + } +} + +?> Index: xoops2jp/html/modules/legacy/actions/MiscSmiliesAction.class.php diff -u /dev/null xoops2jp/html/modules/legacy/actions/MiscSmiliesAction.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/MiscSmiliesAction.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,57 @@ +_getPageNavi(), $this->_getHandler()); + return $filter; + } + + function _getBaseUrl() + { + return "./misc.php?type=Smilies"; + } + + function getDefaultView(&$controller, &$xoopsUser) + { + $this->mTargetName = xoops_getrequest('target'); + return parent::getDefaultView($controller, $xoopsUser); + } + + function executeViewIndex(&$controller, &$xoopsUser, &$render) + { + // + // Because this action's template uses BASE message catalog, load it. + // + $root =& $controller->mRoot; + $root->mLanguageManager->loadModuleMessageCatalog('base'); + + $render->setTemplateName("legacy_misc_smilies.html"); + $render->setAttribute("objects", $this->mObjects); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); + $render->setAttribute("targetName", $this->mTargetName); + } +} + +?> Index: xoops2jp/html/modules/legacy/actions/ImageListAction.class.php diff -u /dev/null xoops2jp/html/modules/legacy/actions/ImageListAction.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/ImageListAction.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,93 @@ +setDialogMode(true); + + $root =& $controller->mRoot; + $root->mLanguageManager->loadModuleMessageCatalog('base'); + } + + function &_getHandler() + { + $handler =& xoops_getmodulehandler('image', 'base'); + return $handler; + } + + function &_getFilterForm() + { + $filter =& new Legacy_ImageFilterForm($this->_getPageNavi(), $this->_getHandler()); + return $filter; + } + + function _getBaseUrl() + { + return XOOPS_URL . "/imagemanager.php?op=list"; + } + + function getDefaultView(&$contoller, &$xoopsUser) + { + $result = parent::getDefaultView($controller, $xoopsUser); + if ($result == LEGACY_FRAME_VIEW_INDEX) { + $this->mImgcatId = xoops_getrequest('imgcat_id'); + $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $this->mCategory =& $handler->get($this->mImgcatId ); + } + + return $result; + } + + function executeViewIndex(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("legacy_image_list.html"); + + foreach (array_keys($this->mObjects) as $key) { + $this->mObjects[$key]->loadImagecategory(); + } + + $render->setAttribute("objects", $this->mObjects); + $render->setAttribute("pageNavi", $this->mFilter->mNavi); + + $render->setAttribute('imgcatId', $this->mImgcatId); + + $handler =& xoops_getmodulehandler('imagecategory', 'base'); + + if (is_object($xoopsUser)) { + $groups =& $xoopsUser->getGroups(); + } + else { + $groups = array(XOOPS_GROUP_ANONYMOUS); + } + $categoryArr =& $handler->getObjectsWithReadPerm($groups); + + $render->setAttribute('categoryArr', $categoryArr); + + // + // If current category object exists, check the permission of uploading. + // + $hasUploadPerm = null; + if ($this->mCategory != null) { + $hasUploadPerm = $this->mCategory->hasUploadPerm($groups); + } + $render->setAttribute('hasUploadPerm', $hasUploadPerm); + $render->setAttribute("category", $this->mCategory); + + $render->setAttribute('target', xoops_getrequest('target')); + } + + function executeViewError(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward("./index.php?Action=ImageList"); + } +} + +?> Index: xoops2jp/html/modules/legacy/actions/index.html diff -u /dev/null xoops2jp/html/modules/legacy/actions/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/index.html Sat Oct 14 23:55:21 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/actions/NotifyCancelAction.class.php diff -u /dev/null xoops2jp/html/modules/legacy/actions/NotifyCancelAction.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/NotifyCancelAction.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,22 @@ +executeForward(XOOPS_URL . '/'); + } + + function execute(&$contoller, &$xoopsUser) + { + $contoller->executeForward(XOOPS_URL . '/'); + } +} + +?> Index: xoops2jp/html/modules/legacy/actions/NotifyListAction.class.php diff -u /dev/null xoops2jp/html/modules/legacy/actions/NotifyListAction.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/NotifyListAction.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,147 @@ +mRoot; + $root->mLanguageManager->loadPageTypeMessageCatalog('notification'); + $root->mLanguageManager->loadModuleMessageCatalog('base'); + + $this->mActionForm =& new Legacy_NotifyDeleteForm(); + $this->mActionForm->prepare(); + } + + function hasPermission(&$controller, &$xoopsUser) + { + return is_object($xoopsUser); + } + + function getDefaultView(&$contoller, &$xoopsUser) + { + $criteria =& new Criteria('not_uid', $xoopsUser->get('uid')); + $criteria->setSort('not_modid, not_category, not_itemid'); + + $handler =& xoops_gethandler('notification'); + $notificationArr =& $handler->getObjects($criteria); + + $moduleHandler =& xoops_gethandler('module'); + + $prev_modid = -1; + $prev_category = -1; + $prev_item = -1; + foreach ($notificationArr as $notify) { + $t_modid = $notify->get('not_modid'); + if ($t_modid != $prev_modid) { + $prev_modid = $t_modid; + $prev_category = -1; + $prev_item = -1; + + $module =& $moduleHandler->get($t_modid); + $this->mModules[$t_modid] = array ( + 'id' => $t_modid, + 'name' => $module->getShow('name'), + 'categories' => array() + ); + + + // + // [ToDo] (Original) + // 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 + // + $notifyConfig = $module->getInfo('notification'); + $lookupFunc = ''; + if (!empty($notifyConfig['lookup_file'])) { + $t_filepath = XOOPS_ROOT_PATH . '/modules/' . $module->get('dirname') . '/' . $notifyConfig['lookup_file']; + if (file_exists($t_filepath)) { + require_once $t_filepath; + if (!empty($notifyConfig['lookup_func']) && function_exists($notifyConfig['lookup_func'])) { + $lookupFunc = $notifyConfig['lookup_func']; + } + } + } + } + + $t_category = $notify->get('not_category'); + if ($t_category != $prev_category) { + $prev_category = $t_category; + $prev_item = -1; + $categoryInfo =& notificationCategoryInfo($t_category, $t_modid); + } + + $t_item = $notify->get('not_itemid'); + if ($t_item != $prev_item) { + $prev_item = $t_item; + if (!empty($lookupFunc)) { + $itemInfo = $lookupFunc($t_category, $t_item); + } + else { + $itemInfo = array ('name' => '[' . _NOT_NAMENOTAVAILABLE . ']', 'url' => ''); + } + $this->mModules[$t_modid]['categories'][$t_category]['items'][$t_item] = array( + 'id' => $t_item, + 'name' => $itemInfo['name'], + 'url' => $itemInfo['url'], + 'notifications' => array() + ); + } + + $eventInfo =& notificationEventInfo($t_category, $notify->get('not_event'), $notify->get('not_modid')); + $this->mModules[$t_modid]['categories'][$t_category]['items'][$t_item]['notifications'][] = array( + 'id' => $notify->get('not_id'), + 'module_id' => $notify->get('not_modid'), + 'category' => $notify->get('not_category'), + 'category_title' => $categoryInfo['title'], + 'item_id' => $notify->get('not_itemid'), + 'event' => $notify->get('not_event'), + 'event_title' => $eventInfo['title'], + 'user_id' => $notify->get('not_uid') + ); + } + + return LEGACY_FRAME_VIEW_INDEX; + } + + function executeViewIndex(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("legacy_notification_list.html"); + + $render->setAttribute('modules', $this->mModules); + $render->setAttribute('currentUser', $xoopsUser); + $render->setAttribute('actionForm', $this->mActionForm); + } + + function executeViewError(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward("./index.php?Action=ImageList"); + } +} + +?> Index: xoops2jp/html/modules/legacy/actions/SearchShowallAction.class.php diff -u /dev/null xoops2jp/html/modules/legacy/actions/SearchShowallAction.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/SearchShowallAction.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,52 @@ +mActionForm =& new Legacy_SearchShowallForm($this->mConfig['keyword_min']); + $this->mActionForm->prepare(); + } + + function _getTemplateName() + { + return "legacy_search_showall.html"; + } + + function _getSelectedMids() + { + $ret = array(); + $ret[] = $this->mActionForm->get('mid'); + + return $ret; + } + + function _getMaxHit() + { + return LEGACY_SEARCH_SHOWALL_MAXHIT; + } + + function executeViewIndex(&$controller, &$xoopsUser, &$render) + { + parent::executeViewIndex($controller, $xoopsUser, $render); + + $prevStart = $this->mActionForm->get('start') - LEGACY_SEARCH_SHOWALL_MAXHIT; + if ($prevStart < 0) { + $prevStart = 0; + } + + $render->setAttribute('prevStart', $prevStart); + $render->setAttribute('nextStart', $this->mActionForm->get('start') + LEGACY_SEARCH_SHOWALL_MAXHIT); + } +} + +?> From minahito @ users.sourceforge.jp Sat Oct 14 23:55:22 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:22 +0900 Subject: [xoops-cvslog 5093] CVS update: xoops2jp/html/modules/legacy/class Message-ID: <20061014145522.54B0C2AC27F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/class/imagecategory.php diff -u /dev/null xoops2jp/html/modules/legacy/class/imagecategory.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/imagecategory.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,248 @@ +initVar('imgcat_id', XOBJ_DTYPE_INT, '', false); + $this->initVar('imgcat_name', XOBJ_DTYPE_STRING, '', true, 100); + $this->initVar('imgcat_maxsize', XOBJ_DTYPE_INT, '50000', true); + $this->initVar('imgcat_maxwidth', XOBJ_DTYPE_INT, '120', true); + $this->initVar('imgcat_maxheight', XOBJ_DTYPE_INT, '120', true); + $this->initVar('imgcat_display', XOBJ_DTYPE_BOOL, '1', true); + $this->initVar('imgcat_weight', XOBJ_DTYPE_INT, '0', true); + $this->initVar('imgcat_type', XOBJ_DTYPE_STRING, 'C', true, 1); + $this->initVar('imgcat_storetype', XOBJ_DTYPE_STRING, 'file', true, 5); + } + + function loadImage() + { + if ($this->_mImageLoadedFlag == false) { + $handler =& xoops_getmodulehandler('image', 'base'); + $this->mImage =& $handler->getObjects(new Criteria('imagecat_id', $this->get('imagecat_id'))); + $this->_mImageLoadedFlag = true; + } + } + + function &createImage() + { + $handler =& xoops_getmodulehandler('image', 'base'); + $obj =& $handler->create(); + $obj->set('imagecat_id', $this->get('imagecat_id')); + return $obj; + } + + function getImageCount() + { + $handler =& xoops_getmodulehandler('image', 'base'); + return $handler->getCount(new Criteria('imgcat_id', $this->get('imgcat_id'))); + } + + function loadReadGroups() + { + if ($this->_mReadGroupsLoadedFlag) { + return; + } + + $handler =& xoops_gethandler('groupperm'); + $gidArr = $handler->getGroupIds('imgcat_read', $this->get('imgcat_id')); + + $handler =& xoops_gethandler('group'); + foreach ($gidArr as $gid) { + $object =& $handler->get($gid); + + if (is_object($object)) { + $this->mReadGroups[] =& $object; + } + + unset($object); + } + + $this->_mReadGroupsLoadedFlag = true; + } + + function isLoadedReadGroups() + { + return $this->_mReadGroupsLoadedFlag; + } + + /** + * If $groups has the permission of reading this object, return true. + */ + function hasReadPerm($groups) + { + $this->loadReadGroups(); + foreach (array_keys($this->mReadGroups) as $key) { + foreach ($groups as $group) { + if ($this->mReadGroups[$key]->get('groupid') == $group) { + return true; + } + } + } + + return false; + } + + function loadUploadGroups() + { + if ($this->_mUploadGroupsLoadedFlag) { + return; + } + + $handler =& xoops_gethandler('groupperm'); + $gidArr = $handler->getGroupIds('imgcat_write', $this->get('imgcat_id')); + + $handler =& xoops_gethandler('group'); + foreach ($gidArr as $gid) { + $object =& $handler->get($gid); + + if (is_object($object)) { + $this->mUploadGroups[] =& $object; + } + + unset($object); + } + + $this->_mUploadGroupsLoadedFlag = true; + } + + function isLoadedUploadGroups() + { + return $this->_mUploadGroupsLoadedFlag; + } + + function hasUploadPerm($groups) + { + $this->loadUploadGroups(); + foreach (array_keys($this->mUploadGroups) as $key) { + foreach ($groups as $group) { + if ($this->mUploadGroups[$key]->get('groupid') == $group) { + return true; + } + } + } + + return false; + } +} + +class BaseImagecategoryHandler extends XoopsObjectGenericHandler +{ + var $mTable = "imagecategory"; + var $mPrimary = "imgcat_id"; + var $mClass = "BaseImagecategoryObject"; + + function insert(&$obj, $force = false) + { + $returnFlag = parent::insert($obj, $force); + + $handler =& xoops_gethandler('groupperm'); + + // + // If the object has groups which are allowed to read. + // + if ($obj->isLoadedReadGroups()) { + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('gperm_itemid', $obj->get('imgcat_id'))); + $criteria->add(new Criteria('gperm_modid', 1)); + $criteria->add(new Criteria('gperm_name', 'imgcat_read')); + $handler->deleteAll($criteria); + + foreach ($obj->mReadGroups as $group) { + $perm =& $handler->create(); + $perm->set('gperm_groupid', $group->get('groupid')); + $perm->set('gperm_itemid', $obj->get('imgcat_id')); + $perm->set('gperm_modid', 1); + $perm->set('gperm_name', 'imgcat_read'); + + $returnFlag &= $handler->insert($perm, $force); + } + } + + // + // If the object has groups which are allowed to upload. + // + if ($obj->isLoadedUploadGroups()) { + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('gperm_itemid', $obj->get('imgcat_id'))); + $criteria->add(new Criteria('gperm_modid', 1)); + $criteria->add(new Criteria('gperm_name', 'imgcat_write')); + $handler->deleteAll($criteria); + + foreach ($obj->mUploadGroups as $group) { + $perm =& $handler->create(); + $perm->set('gperm_groupid', $group->get('groupid')); + $perm->set('gperm_itemid', $obj->get('imgcat_id')); + $perm->set('gperm_modid', 1); + $perm->set('gperm_name', 'imgcat_write'); + + $returnFlag &= $handler->insert($perm, $force); + } + } + + return $returnFlag; + } + + function &getObjectsWithReadPerm($groups = array(), $display = null) + { + $criteria = new CriteriaCompo(); + if ($display != null) { + $criteria->add(new Criteria('imgcat_display', $display)); + } + $criteria->setSort('imgcat_weight'); + $objs =& $this->getObjects($criteria); + unset($criteria); + + $handler =& xoops_gethandler('groupperm'); + $ret = array(); + foreach (array_keys($objs) as $key) { + if ($objs[$key]->hasReadPerm($groups)) { + $ret[] =& $objs[$key]; + } + } + + return $ret; + } + + function delete(&$obj, $force = false) + { + $handler =& xoops_getmodulehandler('image', 'base'); + $handler->deleteAll(new Criteria('imagecat_id', $obj->get('imagecat_id'))); + unset($handler); + + $handler =& xoops_gethandler('groupperm'); + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('gperm_itemid', $obj->get('imgcat_id'))); + $criteria->add(new Criteria('gperm_modid', 1)); + + $nameCriteria =& new CriteriaCompo(); + $nameCriteria->add(new Criteria('gperm_name', 'imgcat_read')); + $nameCriteria->add(new Criteria('gperm_name', 'imgcat_write'), 'OR'); + + $criteria->add($nameCriteria); + + $handler->deleteAll($criteria); + + return parent::delete($obj, $force); + } +} + +?> Index: xoops2jp/html/modules/legacy/class/theme.php diff -u /dev/null xoops2jp/html/modules/legacy/class/theme.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/theme.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,101 @@ +initVar('name', XOBJ_DTYPE_STRING, '', true, 255); + $this->initVar('dirname', XOBJ_DTYPE_STRING, '', true, 255); + $this->initVar('screenshot', XOBJ_DTYPE_STRING, '', false, 255); + $this->initVar('description', XOBJ_DTYPE_STRING, '', false, 255); + $this->initVar('format', XOBJ_DTYPE_STRING, '', true, 255); + $this->initVar('render_system', XOBJ_DTYPE_STRING, '', true, 255); + $this->initVar('version', XOBJ_DTYPE_STRING, '', true, 32); + $this->initVar('author', XOBJ_DTYPE_STRING, '', true, 64); + $this->initVar('url', XOBJ_DTYPE_STRING, '', true, 255); + } +} + +class BaseThemeHandler extends XoopsObjectHandler +{ + var $_mResults = array(); + + /** + * @var XCube_Delegate + */ + var $mGetInstalledThemes = null; + + function BaseThemeHandler(&$db) + { + $this->mGetInstalledThemes =& new XCube_Delegate(); + $this->mGetInstalledThemes->register('BaseThemeHandler.GetInstalledThemes'); + } + + function &create() + { + $ret =& new BaseThemeObject(); + return $ret; + } + + function &get($name) + { + $ret = null; + $this->_makeCache(); + + foreach (array_keys($this->_mResults) as $key) { + if ($this->_mResults[$key]->get('dirname') == $name) { + return $this->_mResults[$key]; + } + } + + return $ret; + } + + function &getObjects($criteria = null, $id_as_key = false) + { + $this->_makeCache(); + return $this->_mResults; + } + + /** + * Create cache at $this->mResult by Delegate, if cache is empty. + */ + function _makeCache() + { + if (count($this->_mResults) == 0) { + $t_themeArr = array(); + $this->mGetInstalledThemes->call(new XCube_Ref($t_themeArr)); + + foreach ($t_themeArr as $theme) { + $obj =& $this->create(); + $obj->set('name', $theme->mName); + $obj->set('dirname', $theme->mDirname); + $obj->set('screenshot', $theme->mScreenShot); + $obj->set('description', $theme->mDescription); + $obj->set('format', $theme->mFormat); + $obj->set('render_system', $theme->mRenderSystemName); + $obj->set('version', $theme->mVersion); + $obj->set('author', $theme->mAuthor); + $obj->set('url', $theme->mUrl); + $this->_mResults[] =& $obj; + unset($obj); + } + } + } + + function insert(&$obj, $force = false) + { + return false; + } + + function delete(&$obj, $force = false) + { + return false; + } +} + +?> Index: xoops2jp/html/modules/legacy/class/comment.php diff -u /dev/null xoops2jp/html/modules/legacy/class/comment.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/comment.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,145 @@ +initVar('com_id', XOBJ_DTYPE_INT, '', true); + $this->initVar('com_pid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('com_rootid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('com_modid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('com_itemid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('com_icon', XOBJ_DTYPE_STRING, '', true, 25); + $this->initVar('com_created', XOBJ_DTYPE_INT, '0', true); + $this->initVar('com_modified', XOBJ_DTYPE_INT, '0', true); + $this->initVar('com_uid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('com_ip', XOBJ_DTYPE_STRING, '', true, 15); + $this->initVar('com_title', XOBJ_DTYPE_STRING, '', true, 255); + $this->initVar('com_text', XOBJ_DTYPE_TEXT, '', true); + $this->initVar('com_sig', XOBJ_DTYPE_BOOL, '0', true); + $this->initVar('com_status', XOBJ_DTYPE_INT, '1', true); + $this->initVar('com_exparams', XOBJ_DTYPE_STRING, '', true, 255); + $this->initVar('dohtml', XOBJ_DTYPE_BOOL, '0', true); + $this->initVar('dosmiley', XOBJ_DTYPE_BOOL, '1', true); + $this->initVar('doxcode', XOBJ_DTYPE_BOOL, '1', true); + $this->initVar('doimage', XOBJ_DTYPE_BOOL, '1', true); + $this->initVar('dobr', XOBJ_DTYPE_BOOL, '1', true); + } + + /** + * Load a user object who wrote this comment to $mUser. + */ + function loadUser() + { + $handler =& xoops_gethandler('member'); + $this->mUser =& $handler->getUser($this->get('com_uid')); + } + + /** + * Load a module object to $mModule. + */ + function loadModule() + { + $handler =& xoops_gethandler('module'); + $this->mModule =& $handler->get($this->get('com_modid')); + } + + function loadStatus() + { + $handler =& xoops_getmodulehandler('commentstatus', 'base'); + $this->mStatus =& $handler->get($this->get('com_status')); + } + + function getVar($key) + { + if ($key == 'com_text') { + $ts =& MyTextSanitizer::getInstance(); + return $ts->displayTarea($this->get($key), $this->get('dohtml'), $this->get('dosmiley'), $this->get('doxcode'), $this->get('doimage'), $this->get('dobr')); + } + else { + return parent::getVar($key); + } + } +} + +class BaseCommentHandler extends XoopsObjectGenericHandler +{ + var $mTable = "xoopscomments"; + var $mPrimary = "com_id"; + var $mClass = "BaseCommentObject"; + + /** + * @var XCube_Delegate + */ + var $mUpdateSuccess; + + /** + * @var XCube_Delegate + */ + var $mDeleteSuccess; + + function BaseCommentHandler(&$db) + { + parent::XoopsObjectGenericHandler($db); + + $this->mUpdateSuccess =& new XCube_Delegate(); + $this->mDeleteSuccess =& new XCube_Delegate(); + } + + function insert(&$comment, $force = false) + { + if (parent::insert($comment, $force)) { + $this->mUpdateSuccess->call($comment); + return true; + } + else { + return false; + } + } + + /** + * Delete $comment and childlen of $comment. + */ + function delete(&$comment, $force = false) + { + $criteria =& new Criteria('com_pid', $comment->get('com_id')); + $this->deleteAll($criteria); + + if (parent::delete($comment, $force)) { + $this->mDeleteSuccess->call($comment); + return true; + } + else{ + return false; + } + } + + /** + * + * Return array of module id that comments are written. + * + * @return array + */ + function getModuleIds() + { + $ret = array(); + + $sql = "SELECT DISTINCT com_modid FROM " . $this->mTable; + $res = $this->db->query($sql); + if ($res) { + while ($row = $this->db->fetchArray($res)) { + $ret[] = $row['com_modid']; + } + } + + return $ret; + } +} + +?> Index: xoops2jp/html/modules/legacy/class/newblocks.php diff -u /dev/null xoops2jp/html/modules/legacy/class/newblocks.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/newblocks.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,128 @@ +initVar('bid', XOBJ_DTYPE_INT, '', true); + $this->initVar('mid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('func_num', XOBJ_DTYPE_INT, '0', true); + $this->initVar('options', XOBJ_DTYPE_STRING, '', true, 255); + $this->initVar('name', XOBJ_DTYPE_STRING, '', true, 150); + $this->initVar('title', XOBJ_DTYPE_STRING, '', true, 255); + $this->initVar('content', XOBJ_DTYPE_TEXT, '', true); + $this->initVar('side', XOBJ_DTYPE_INT, '0', true); + $this->initVar('weight', XOBJ_DTYPE_INT, '0', true); + $this->initVar('visible', XOBJ_DTYPE_BOOL, '0', true); + $this->initVar('block_type', XOBJ_DTYPE_STRING, '', true, 1); + $this->initVar('c_type', XOBJ_DTYPE_STRING, '', true, 1); + $this->initVar('isactive', XOBJ_DTYPE_BOOL, '0', true); + $this->initVar('dirname', XOBJ_DTYPE_STRING, '', true, 50); + $this->initVar('func_file', XOBJ_DTYPE_STRING, '', true, 50); + $this->initVar('show_func', XOBJ_DTYPE_STRING, '', true, 50); + $this->initVar('edit_func', XOBJ_DTYPE_STRING, '', true, 50); + $this->initVar('template', XOBJ_DTYPE_STRING, '', true, 50); + $this->initVar('bcachetime', XOBJ_DTYPE_INT, '0', true); + $this->initVar('last_modified', XOBJ_DTYPE_INT, '0', true); + } + + function loadModule() + { + $handler =& xoops_gethandler('module'); + $this->mModule =& $handler->get($this->get('mid')); + } + + /** + * Load group objects who can access this object. And, set the objects to mGroup. + * + * TODO Need lock double loading. + */ + function loadGroup() + { + $handler =& xoops_gethandler('groupperm'); + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('gperm_modid', 1)); + $criteria->add(new Criteria('gperm_itemid', $this->get('bid'))); + $criteria->add(new Criteria('gperm_name', 'block_read')); + + $gpermArr =& $handler->getObjects($criteria); + + $handler =& xoops_gethandler('group'); + foreach ($gpermArr as $gperm) { + $this->mGroup[] =& $handler->get($gperm->get('gperm_groupid')); + } + } + + function loadBmodule() + { + $handler =& xoops_getmodulehandler('block_module_link', 'base'); + $criteria =& new Criteria('block_id', $this->get('bid')); + + $this->mBmodule =& $handler->getObjects($criteria); + } + + function loadColumn() + { + $handler =& xoops_getmodulehandler('columnside', 'base'); + $this->mColumn =& $handler->get($this->get('side')); + } + + function loadCachetime() + { + $handler =& xoops_gethandler('cachetime'); + $this->mCachetime =& $handler->get($this->get('bcachetime')); + } +} + +class BaseNewblocksHandler extends XoopsObjectGenericHandler +{ + var $mTable = "newblocks"; + var $mPrimary = "bid"; + var $mClass = "BaseNewblocksObject"; + + function delete(&$obj, $force = false) + { + if (parent::delete($obj, $force)) { + // + // Delete related data from block_module_link. + // + $handler =& xoops_getmodulehandler('block_module_link', 'base'); + $handler->deleteAll(new Criteria('block_id'), $obj->get('bid')); + + // + // Delete related permissions from groupperm. + // + $handler =& xoops_gethandler('groupperm'); + + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('gperm_modid', 1)); + $criteria->add(new Criteria('gperm_itemid', $obj->get('bid'))); + $criteria->add(new Criteria('gperm_name', 'block_read')); + + $handler->deleteAll($criteria); + + return true; + } + else { + return false; + } + } +} + +?> Index: xoops2jp/html/modules/legacy/class/Legacy_Validator.class.php diff -u /dev/null xoops2jp/html/modules/legacy/class/Legacy_Validator.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/Legacy_Validator.class.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,31 @@ +isNull()) { + return true; + } + else { + $handleName = $vars['handler']; + $moduleName = isset($vars['module']) ? $vars['module'] : null; + + if ($moduleName == null) { + $handler =& xoops_gethandler($handleName); + } + else { + $handler =& xoops_getmodulehandler($handleName, $moduleName); + } + $obj =& $handler->get($form->getValue()); + + return is_object($obj); + } + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/class/DebuggerManager.class.php diff -u /dev/null xoops2jp/html/modules/legacy/class/DebuggerManager.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/DebuggerManager.class.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,161 @@ + // +// ------------------------------------------------------------------------ // +// 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(); + +define("XOOPS_DEBUG_OFF",0); +define("XOOPS_DEBUG_PHP",1); +define("XOOPS_DEBUG_MYSQL",2); +define("XOOPS_DEBUG_SMARTY",3); + +class Legacy_DebuggerManager +{ + function getInstance($debug_mode) + { + static $instance = array(); + + if (empty($instance[$debug_mode])) { + $instance[$debug_mode] =& Legacy_DebuggerManager::_createInstance($debug_mode); + } + + return $instance[$debug_mode]; + } + + /** + Create XoopsDebugger instance. + You must not communicate with this method directly. + */ + function &_createInstance($debug_mode) + { + $instance = null; + switch($debug_mode) { + case XOOPS_DEBUG_PHP: + $instance =& new Legacy_PHPDebugger(); + break; + + case XOOPS_DEBUG_MYSQL: + $instance =& new Legacy_MysqlDebugger(); + break; + + case XOOPS_DEBUG_SMARTY: + $instance =& new Legacy_SmartyDebugger(); + break; + + case XOOPS_DEBUG_OFF: + default: + // @todo I can not realize abstract class to instance. + $instance =& new Legacy_AbstractDebugger(); + break; + } + + return $instance; + } +} + +class Legacy_AbstractDebugger +{ + function Legacy_AbstractDebugger() + { + } + + function prepare() + { + } + + function isDebugRenderSystem() + { + return false; + } + + /** + * @return string Log as html code. + */ + function renderLog() + { + } + + function displayLog() + { + } +} + +/** +This class works for "PHP debugging mode". +*/ +class Legacy_PHPDebugger extends Legacy_AbstractDebugger +{ + function prepare() + { + error_reporting(E_ALL); + } +} + +/** +This class works for "Mysql debugging mode". +*/ +class Legacy_MysqlDebugger extends Legacy_AbstractDebugger +{ + function renderLog() + { + $xoopsLogger =& XoopsLogger::instance(); + return $xoopsLogger->dumpAll(); + } + + function displayLog() + { + echo ''; + } +} + + +/** +This class works for "Smarty debugging mode". +*/ +class Legacy_SmartyDebugger extends Legacy_AbstractDebugger +{ + function isDebugRenderSystem() + { + $root =& XCube_Root::getSingleton(); + $user =& $root->mContext->mXoopsUser; + + return is_object($user) ? $user->isAdmin(0) : false; + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/class/AbstractListAction.class.php diff -u /dev/null xoops2jp/html/modules/legacy/class/AbstractListAction.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/AbstractListAction.class.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,43 @@ +_getBaseUrl(), XCUBE_PAGENAVI_START); + return $navi; + } + + function getDefaultView(&$controller, &$xoopsUser) + { + $this->mFilter =& $this->_getFilterForm(); + $this->mFilter->fetch(); + + $handler =& $this->_getHandler(); + $this->mObjects =& $handler->getObjects($this->mFilter->getCriteria()); + + return LEGACY_FRAME_VIEW_INDEX; + } +} + +?> Index: xoops2jp/html/modules/legacy/class/block_module_link.php diff -u /dev/null xoops2jp/html/modules/legacy/class/block_module_link.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/block_module_link.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,21 @@ +initVar('block_id', XOBJ_DTYPE_INT, '0', true); + $this->initVar('module_id', XOBJ_DTYPE_INT, '0', true); + } +} + +class BaseBlock_module_linkHandler extends XoopsObjectGenericHandler +{ + var $mTable = "block_module_link"; + var $mPrimary = "block_id"; + var $mClass = "BaseBlock_module_linkObject"; +} + +?> Index: xoops2jp/html/modules/legacy/class/smiles.php diff -u /dev/null xoops2jp/html/modules/legacy/class/smiles.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/smiles.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,31 @@ +initVar('id', XOBJ_DTYPE_INT, '', true); + $this->initVar('code', XOBJ_DTYPE_STRING, '', true, 50); + $this->initVar('smile_url', XOBJ_DTYPE_STRING, '', true, 100); + $this->initVar('emotion', XOBJ_DTYPE_STRING, '', true, 75); + $this->initVar('display', XOBJ_DTYPE_BOOL, '0', true); + } +} + +class BaseSmilesHandler extends XoopsObjectGenericHandler +{ + var $mTable = "smiles"; + var $mPrimary = "id"; + var $mClass = "BaseSmilesObject"; + + function delete(&$obj) + { + @unlink(XOOPS_UPLOAD_PATH . "/" . $obj->get('smile_url')); + + return parent::delete($obj); + } +} + +?> Index: xoops2jp/html/modules/legacy/class/group_permission.php diff -u /dev/null xoops2jp/html/modules/legacy/class/group_permission.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/group_permission.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,56 @@ +initVar('gperm_id', XOBJ_DTYPE_INT, '', true); + $this->initVar('gperm_groupid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('gperm_itemid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('gperm_modid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('gperm_name', XOBJ_DTYPE_STRING, '', true, 50); + } +} + +class BaseGroup_permissionHandler extends XoopsObjectGenericHandler +{ + var $mTable = "group_permission"; + var $mPrimary = "gperm_id"; + var $mClass = "BaseGroup_permissionObject"; + + /** + * Gets array of roles by array of group ID. + * @param int $mid + * @param array $groups + * @return array + */ + function getRolesByModule($mid, $groups) + { + $retRoles = array(); + + $sql = "SELECT gperm_name FROM " . $this->db->prefix($this->mTable) . " WHERE gperm_modid=" . intval($mid) . " AND gperm_itemid=0 AND "; + $groupSql = array(); + + foreach ($groups as $gid) { + $groupSql[] = "gperm_groupid=" . intval($gid); + } + + $sql .= "(" . implode(' OR ', $groupSql) . ")"; + + $result = $this->db->query($sql); + + if (!$result) { + return $retRoles; + } + + while ($row = $this->db->fetchArray($result)) { + $retRoles[] = $row['gperm_name']; + } + + return $retRoles; + } +} + +?> Index: xoops2jp/html/modules/legacy/class/Legacy_Utils.class.php diff -u /dev/null xoops2jp/html/modules/legacy/class/Legacy_Utils.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/Legacy_Utils.class.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,115 @@ +getSiteConfig('Cube', 'SystemModules'))); + $recommendedModules = array_map('trim', explode(',', $root->getSiteConfig('Cube',' RecommendedModules'))); + $moduleHandler =& xoops_gethandler('module'); + $uninstalledModules = array(); + $disabledModules = array(); + foreach ($systemModules as $systemModule) { + if (!empty($systemModule)) { + if (!($moduleObject =& $moduleHandler->getByDirname($systemModule))) { + $uninstalledModules[] = $systemModule; + } + elseif (!$moduleObject->get('isactive')) { + $disabledModules[] = $systemModule; + } + } + } + if (count($uninstalledModules) == 0 && count($disabledModules) == 0) { + return true; + } + else { + return array('uninstalled' =>$uninstalledModules, 'disabled'=>$disabledModules, 'recommended'=>$recommendedModules); + } + } + + /** + * Creates a instance of the module with the generating convention. And, + * returns it. + * @param XoopsModule $module + * @return Legacy_Module + */ + function &createModule($module) + { + $instance = null; + $dirname = $module->get('dirname'); + + // + // IMPORTANT CONVENTION + // + $className = ucfirst($dirname) . "_Module"; + if (!class_exists($className)) { + $filePath = XOOPS_ROOT_PATH . "/modules/${dirname}/class/Module.class.php"; + if (file_exists($filePath)) { + require_once $filePath; + } + } + + if (class_exists($className)) { + $instance =& new $className($module); + } + else { + $instance =& new Legacy_ModuleAdapter($module); + } + + return $instance; + } + + /** + * Creates a instance of the block procedure with the generating convention. + * And, returns it. + * @static + * @return Legacy_BlockProcedure + */ + function createBlockProcedure(&$block) + { + // + // IMPORTANT CONVENTION + // + $retBlock = null; + $func = $block->get('show_func'); + if (substr($func, 0, 4) == 'cl::') { + $className = ucfirst($block->get('dirname')) . '_' . substr($func, 4); + if (!class_exists($className)) { + $filePath = XOOPS_ROOT_PATH . '/modules/' . $block->get('dirname') . '/blocks/' . $block->get('func_file'); + if (!file_exists($filePath)) { + continue; + } + + require_once $filePath; + + if (!class_exists($className)) { + continue; + } + } + + $retBlock =& new $className($block); + } + else { + $retBlock =& new Legacy_BlockProcedureAdapter($block); + } + + return $retBlock; + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/class/non_installation_module.php diff -u /dev/null xoops2jp/html/modules/legacy/class/non_installation_module.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/non_installation_module.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,82 @@ +_setupObjects(); + } + + /** + * Once, load module objects to a member property from XOOPS_MODULE_PATH. + */ + function _setupObjects() + { + if (count($this->_mXoopsModules) == 0) { + if ($handler = opendir(XOOPS_MODULE_PATH)) { + while (($dir = readdir($handler)) !== false) { + if (!in_array($dir, $this->_mExclusions) && is_dir(XOOPS_MODULE_PATH . "/" . $dir)) { + $module =& $this->get($dir); + if ($module !== false ) { + $this->_mXoopsModules[] =& $module; + unset($module); + } + } + } + } + } + } + + /** + * Return module object by $dirname that is specified module directory. + * If specified module has been installed or doesn't keep xoops_version, not return it. + * @param $dirname string + * @param XoopsModule or false + */ + function &get($dirname) + { + $ret = false; + + if (!file_exists(XOOPS_MODULE_PATH . "/" . $dirname . "/xoops_version.php")) { + return $ret; + } + + $moduleHandler =& xoops_gethandler('module'); + + $check =& $moduleHandler->getByDirname($dirname); + if (is_object($check)) { + return $ret; + } + + $module =& $moduleHandler->create(); + $module->loadInfoAsVar($dirname); + + return $module; + } + + function &getObjects($criteria=null) + { + return $this->_mXoopsModules; + } +} + +?> Index: xoops2jp/html/modules/legacy/class/blockctype.php diff -u /dev/null xoops2jp/html/modules/legacy/class/blockctype.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/blockctype.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,77 @@ +initVar('type', XOBJ_DTYPE_STRING, '', true); + $this->initVar('label', XOBJ_DTYPE_STRING, '', true, 255); + } +} + +class BaseBlockctypeHandler extends XoopsObjectHandler +{ + var $_mResults = array(); + + function BaseBlockctypeHandler(&$db) + { + $t_arr = array ( + 'H' => _AD_BASE_LANG_CTYPE_HTML, + 'P' => _AD_BASE_LANG_CTYPE_PHP, + 'S' => _AD_BASE_LANG_CTYPE_WITH_SMILIES, + 'T' => _AD_BASE_LANG_CTYPE_WITHOUT_SMILIES + ); + + foreach ($t_arr as $id => $name) { + $this->_mResults[$id] =& $this->create(); + $this->_mResults[$id]->setVar('type', $id); + $this->_mResults[$id]->setVar('label', $name); + } + } + + function &create() + { + $ret =& new BaseBlockctypeObject(); + return $ret; + } + + function get($id) + { + if (isset($this->_mResults[$id])) { + return $this->_mResults[$id]; + } + + $ret = null; + return $ret; + } + + function &getObjects($criteria = null, $id_as_key = false) + { + if ($id_as_key) { + return $this->_mResults; + } + else { + $ret = array(); + + foreach (array_keys($this->_mResults) as $key) { + $ret[] =& $this->_mResults[$key]; + } + + return $ret; + } + } + + function insert(&$obj) + { + return false; + } + + function delete(&$obj) + { + return false; + } +} + +?> Index: xoops2jp/html/modules/legacy/class/AbstractDeleteAction.class.php diff -u /dev/null xoops2jp/html/modules/legacy/class/AbstractDeleteAction.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/AbstractDeleteAction.class.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,20 @@ +mObjectHandler->delete($this->mObject); + } +} + +?> Index: xoops2jp/html/modules/legacy/class/ActionFrame.class.php diff -u /dev/null xoops2jp/html/modules/legacy/class/ActionFrame.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/ActionFrame.class.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,221 @@ +mAdminFlag = $admin; + } + + function setActionName($name) + { + $this->mActionName = $name; + + // + // Temp FIXME! + // + $root =& XCube_Root::getSingleton(); + $root->mContext->setAttribute('actionName', $name); + $root->mContext->mModule->setAttribute('actionName', $name); + } + + /** + * Set mode. + * + * @param string $mode Use constants (LEGACY_FRAME_MODE_MISC and more...) + */ + function setMode($mode) + { + $this->mMode = $mode; + } + + function execute(&$controller) + { + if (strlen($this->mActionName) > 0 && !preg_match("/^\w+$/", $this->mActionName)) { + die(); + } + + // + // Actions of the public side in this module are hook type. So it's + // necessary to load catalog here. + // + if (!$this->mAdminFlag) { + $controller->mRoot->mLanguageManager->loadModuleMessageCatalog('base'); + } + + // + // Add mode. + // + $this->setActionName($this->mMode . $this->mActionName); + + // + // Create action object by mActionName + // + $className = "Legacy_" . ucfirst($this->mActionName) . "Action"; + $fileName = ucfirst($this->mActionName) . "Action"; + if ($this->mAdminFlag) { + $fileName = XOOPS_MODULE_PATH . "/base/admin/actions/${fileName}.class.php"; + } + else { + $fileName = XOOPS_MODULE_PATH . "/base/actions/${fileName}.class.php"; + } + + if (!file_exists($fileName)) { + die(); + } + + require_once $fileName; + + if (class_exists($className)) { + $this->mAction =& new $className($this->mAdminFlag); + } + + if (!is_object($this->mAction)) { + die(); + } + + $this->mAction->prepare($controller, $controller->mRoot->mContext->mXoopsUser); + + if (!$this->mAction->hasPermission($controller, $controller->mRoot->mContext->mXoopsUser)) { + if ($this->mAdminFlag) { + $controller->executeForward(XOOPS_URL . "/admin.php"); + } + else { + $controller->executeForward(XOOPS_URL); + } + } + + if (xoops_getenv("REQUEST_METHOD") == "POST") { + $viewStatus = $this->mAction->execute($controller, $controller->mRoot->mContext->mXoopsUser); + } + else { + $viewStatus = $this->mAction->getDefaultView($controller, $controller->mRoot->mContext->mXoopsUser); + } + + switch($viewStatus) { + case LEGACY_FRAME_VIEW_SUCCESS: + $this->mAction->executeViewSuccess($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); + break; + + case LEGACY_FRAME_VIEW_ERROR: + $this->mAction->executeViewError($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); + break; + + case LEGACY_FRAME_VIEW_INDEX: + $this->mAction->executeViewIndex($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); + break; + + case LEGACY_FRAME_VIEW_INPUT: + $this->mAction->executeViewInput($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); + break; + + case LEGACY_FRAME_VIEW_PREVIEW: + $this->mAction->executeViewPreview($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); + break; + + case LEGACY_FRAME_VIEW_CANCEL: + $this->mAction->executeViewCancel($controller, $controller->mRoot->mContext->mXoopsUser, $controller->mRoot->mContext->mModule->getRenderBuffer()); + break; + } + } +} + +class Legacy_Action +{ + /** + * @access private + */ + var $_mAdminFlag = false; + + function Legacy_Action($adminFlag = false) + { + $this->_mAdminFlag = $adminFlag; + } + + function hasPermission(&$controller, &$xoopsUser) + { + if ($this->_mAdminFlag) { + return $controller->mRoot->mContext->mUser->isInRole('Module.base.Admin'); + } + else { + // + // TODO Really? + // + return true; + } + } + + function prepare(&$controller, &$xoopsUser) + { + } + + function getDefaultView(&$controller, &$xoopsUser) + { + return LEGACY_FRAME_VIEW_NONE; + } + + function execute(&$controller, &$xoopsUser) + { + return LEGACY_FRAME_VIEW_NONE; + } + + function executeViewSuccess(&$controller, &$xoopsUser, &$render) + { + } + + function executeViewError(&$controller, &$xoopsUser, &$render) + { + } + + function executeViewIndex(&$controller, &$xoopsUser, &$render) + { + } + + function executeViewInput(&$controller, &$xoopsUser, &$render) + { + } + + function executeViewPreview(&$controller, &$xoopsUser, &$render) + { + } + + function executeViewCancel(&$controller, &$xoopsUser, &$render) + { + } +} + +?> Index: xoops2jp/html/modules/legacy/class/AbstractEditAction.class.php diff -u /dev/null xoops2jp/html/modules/legacy/class/AbstractEditAction.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/AbstractEditAction.class.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,93 @@ +_getId(); + + $this->mObjectHandler =& $this->_getHandler(); + + $this->mObject =& $this->mObjectHandler->get($id); + + if ($this->mObject == null && $this->isEnableCreate()) { + $this->mObject =& $this->mObjectHandler->create(); + } + } + + function isEnableCreate() + { + return true; + } + + function prepare(&$controller, &$xoopsUser) + { + $this->_setupObject(); + $this->_setupActionForm(); + } + + function getDefaultView(&$controller, &$xoopsUser) + { + if ($this->mObject == null) { + return LEGACY_FRAME_VIEW_ERROR; + } + + $this->mActionForm->load($this->mObject); + + return LEGACY_FRAME_VIEW_INPUT; + } + + function execute(&$controller, &$xoopsUser) + { + if ($this->mObject == null) { + return LEGACY_FRAME_VIEW_ERROR; + } + + if (xoops_getrequest('_form_control_cancel') != null) { + return LEGACY_FRAME_VIEW_CANCEL; + } + + $this->mActionForm->load($this->mObject); + + $this->mActionForm->fetch(); + $this->mActionForm->validate(); + + if($this->mActionForm->hasError()) { + return LEGACY_FRAME_VIEW_INPUT; + } + + $this->mActionForm->update($this->mObject); + + return $this->_doExecute($this->mObject) ? LEGACY_FRAME_VIEW_SUCCESS + : LEGACY_FRAME_VIEW_ERROR; + } + + function _doExecute() + { + return $this->mObjectHandler->insert($this->mObject); + } +} + +?> Index: xoops2jp/html/modules/legacy/class/columnside.php diff -u /dev/null xoops2jp/html/modules/legacy/class/columnside.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/columnside.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,80 @@ +initVar('id', XOBJ_DTYPE_INT, '', true); + $this->initVar('name', XOBJ_DTYPE_STRING, '', true, 255); + } +} + +class BaseColumnsideHandler extends XoopsObjectHandler +{ + var $_mResults = array(); + + function BaseColumnsideHandler(&$db) + { + $t_arr = array ( + 0 => _AD_BASE_LANG_SIDE_BLOCK_LEFT, + 1 => _AD_BASE_LANG_SIDE_BLOCK_RIGHT, + 3 => _AD_BASE_LANG_CENTER_BLOCK_LEFT, + 4 => _AD_BASE_LANG_CENTER_BLOCK_RIGHT, + 5 => _AD_BASE_LANG_CENTER_BLOCK_CENTER + ); + + foreach ($t_arr as $id => $name) { + $this->_mResults[$id] =& $this->create(); + $this->_mResults[$id]->setVar('id', $id); + $this->_mResults[$id]->setVar('name', $name); + } + } + + function &create() + { + $ret =& new BaseColumnsideObject(); + return $ret; + } + + function &get($id) + { + if (isset($this->_mResults[$id])) { + return $this->_mResults[$id]; + } + + $ret = null; + return $ret; + } + + function &getObjects($criteria = null, $id_as_key = false) + { + if ($id_as_key) { + return $this->_mResults; + } + else { + $ret = array(); + + foreach (array_keys($this->_mResults) as $key) { + $ret[] =& $this->_mResults[$key]; + } + + return $ret; + } + } + + function insert(&$obj) + { + return false; + } + + function delete(&$obj) + { + return false; + } +} + +?> Index: xoops2jp/html/modules/legacy/class/commentstatus.php diff -u /dev/null xoops2jp/html/modules/legacy/class/commentstatus.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/commentstatus.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,82 @@ +initVar('id', XOBJ_DTYPE_INT, '', true); + $this->initVar('name', XOBJ_DTYPE_STRING, '', true, 255); + } +} + +class BaseCommentstatusHandler extends XoopsObjectHandler +{ + var $_mResults = array(); + + function BaseCommentstatusHandler(&$db) + { + $root =& XCube_Root::getSingleton(); + $language = $root->mContext->getXoopsConfig('language'); + $root->mLanguageManager->loadPageTypeMessageCatalog('comment'); + + $this->_mResults[XOOPS_COMMENT_PENDING] =& $this->create(); + $this->_mResults[XOOPS_COMMENT_PENDING]->setVar('id', XOOPS_COMMENT_PENDING); + $this->_mResults[XOOPS_COMMENT_PENDING]->setVar('name', _CM_PENDING); + + $this->_mResults[XOOPS_COMMENT_ACTIVE] =& $this->create(); + $this->_mResults[XOOPS_COMMENT_ACTIVE]->setVar('id', XOOPS_COMMENT_ACTIVE); + $this->_mResults[XOOPS_COMMENT_ACTIVE]->setVar('name', _CM_ACTIVE); + + $this->_mResults[XOOPS_COMMENT_HIDDEN] =& $this->create(); + $this->_mResults[XOOPS_COMMENT_HIDDEN]->setVar('id', XOOPS_COMMENT_HIDDEN); + $this->_mResults[XOOPS_COMMENT_HIDDEN]->setVar('name', _CM_HIDDEN); + } + + function &create() + { + $ret =& new BaseCommentstatusObject(); + return $ret; + } + + function get($id) + { + if (isset($this->_mResults[$id])) { + return $this->_mResults[$id]; + } + + $ret = null; + return $ret; + } + + function &getObjects($criteria = null, $id_as_key = false) + { + if ($id_as_key) { + return $this->_mResults; + } + else { + $ret = array(); + + foreach (array_keys($this->_mResults) as $key) { + $ret[] =& $this->_mResults[$key]; + } + + return $ret; + } + } + + function insert(&$obj) + { + return false; + } + + function delete(&$obj) + { + return false; + } +} + +?> Index: xoops2jp/html/modules/legacy/class/image.php diff -u /dev/null xoops2jp/html/modules/legacy/class/image.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/image.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,102 @@ +initVar('image_id', XOBJ_DTYPE_INT, '', false); + $this->initVar('image_name', XOBJ_DTYPE_STRING, '', true, 30); + $this->initVar('image_nicename', XOBJ_DTYPE_STRING, '', true, 255); + $this->initVar('image_mimetype', XOBJ_DTYPE_STRING, '', true, 30); + $this->initVar('image_created', XOBJ_DTYPE_INT, time(), true); + $this->initVar('image_display', XOBJ_DTYPE_BOOL, '1', true); + $this->initVar('image_weight', XOBJ_DTYPE_INT, '0', true); + $this->initVar('imgcat_id', XOBJ_DTYPE_INT, '0', true); + } + + function loadImagecategory() + { + if ($this->_mImageCategoryLoadedFlag == false) { + $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $this->mImageCategory =& $handler->get($this->get('imgcat_id')); + $this->_mImageCategoryLoadedFlag = true; + } + } + + function loadImagebody() + { + if ($this->_mImageBodyLoadedFlag == false) { + $handler =& xoops_getmodulehandler('imagebody', 'base'); + $this->mImageBody =& $handler->get($this->get('image_id')); + $this->_mImageBodyLoadedFlag = true; + } + } + + function &createImagebody() + { + $handler =& xoops_getmodulehandler('imagebody', 'base'); + $obj =& $handler->create(); + $obj->set('image_id', $this->get('image_id')); + return $obj; + } +} + +class BaseImageHandler extends XoopsObjectGenericHandler +{ + var $mTable = "image"; + var $mPrimary = "image_id"; + var $mClass = "BaseImageObject"; + + function insert(&$obj, $force = false) + { + if (parent::insert($obj, $force)) { + if (is_object($obj->mImageBody)) { + $obj->mImageBody->set('image_id', $obj->get('image_id')); + $handler =& xoops_getmodulehandler('imagebody', 'base'); + return $handler->insert($obj->mImageBody, $force); + } + + return true; + } + + return false; + } + + /** + * + * Delete object and image file. + * + * @param $obj BaseImageObject + * @param $force boolean + * @return boolean + */ + function delete(&$obj, $force = false) + { + $obj->loadImagebody(); + + if (parent::delete($obj, $force)) { + $filepath = XOOPS_UPLOAD_PATH . "/" . $obj->get('image_name'); + if (file_exists($filepath)) { + @unlink($filepath); + } + + if (is_object($obj->mImageBody)) { + $handler =& xoops_getmodulehandler('imagebody', 'base'); + $handler->delete($obj->mImageBody, $force); + } + + return true; + } + + return false; + } +} + +?> Index: xoops2jp/html/modules/legacy/class/AbstractFilterForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/class/AbstractFilterForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/AbstractFilterForm.class.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,76 @@ +mNavi =& $navi; + $this->_mHandler =& $handler; + + $this->_mCriteria =& new CriteriaCompo(); + + $this->mNavi->mGetTotalItems->add(array(&$this, 'getTotalItems')); + } + + function getDefaultSortKey() + { + } + + function getTotalItems(&$total) + { + $total = $this->_mHandler->getCount($this->getCriteria()); + } + + function fetchSort() + { + $root =& XCube_Root::getSingleton(); + $this->mSort = intval($root->mContext->mRequest->getRequest('sort')); + + if (!isset($this->mSortKeys[abs($this->mSort)])) { + $this->mSort = $this->getDefaultSortKey(); + } + + $this->mNavi->mSort['sort'] = $this->mSort; + } + + function fetch() + { + $this->mNavi->fetch(); + $this->fetchSort(); + } + + function getSort() + { + $sortkey = abs($this->mNavi->mSort['sort']); + return isset($this->mSortKeys[$sortkey]) ? $this->mSortKeys[$sortkey] : null; + } + + function getOrder() + { + return ($this->mSort < 0) ? "DESC" : "ASC"; + } + + function getCriteria($start = null, $limit = null) + { + $t_start = ($start === null) ? $this->mNavi->getStart() : intval($start); + $t_limit = ($limit === null) ? $this->mNavi->getPerpage() : intval($limit); + + $criteria = $this->_mCriteria; + + $criteria->setStart($t_start); + $criteria->setLimit($t_limit); + + return $criteria; + } +} + +?> Index: xoops2jp/html/modules/legacy/class/imagebody.php diff -u /dev/null xoops2jp/html/modules/legacy/class/imagebody.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/imagebody.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,21 @@ +initVar('image_id', XOBJ_DTYPE_INT, '', false); + $this->initVar('image_body', XOBJ_DTYPE_TEXT, '', true); + } +} + +class BaseImagebodyHandler extends XoopsObjectGenericHandler +{ + var $mTable = "imagebody"; + var $mPrimary = "image_id"; + var $mClass = "BaseImagebodyObject"; +} + +?> Index: xoops2jp/html/modules/legacy/class/index.html diff -u /dev/null xoops2jp/html/modules/legacy/class/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/index.html Sat Oct 14 23:55:22 2006 @@ -0,0 +1 @@ + \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 14 23:55:21 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:21 +0900 Subject: [xoops-cvslog 5091] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014145521.963672AC281@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/SmilesFilterForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/SmilesFilterForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/SmilesFilterForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,59 @@ + 'id', + SMILES_SORT_KEY_CODE => 'code', + SMILES_SORT_KEY_SMILE_URL => 'smile_url', + SMILES_SORT_KEY_EMOTION => 'emotion', + SMILES_SORT_KEY_DISPLAY => 'display' + ); + + function getDefaultSortKey() + { + return SMILES_SORT_KEY_DEFAULT; + } + + function fetch() + { + parent::fetch(); + + if (isset($_REQUEST['code'])) { + $this->mNavi->addExtra('code', xoops_getrequest('code')); + $this->_mCriteria->add(new Criteria('code', xoops_getrequest('code'))); + } + + if (isset($_REQUEST['smile_url'])) { + $this->mNavi->addExtra('smile_url', xoops_getrequest('smile_url')); + $this->_mCriteria->add(new Criteria('smile_url', xoops_getrequest('smile_url'))); + } + + if (isset($_REQUEST['emotion'])) { + $this->mNavi->addExtra('emotion', xoops_getrequest('emotion')); + $this->_mCriteria->add(new Criteria('emotion', xoops_getrequest('emotion'))); + } + + if (isset($_REQUEST['display'])) { + $this->mNavi->addExtra('display', xoops_getrequest('display')); + $this->_mCriteria->add(new Criteria('display', xoops_getrequest('display'))); + } + + $this->_mCriteria->addSort($this->getSort(), $this->getOrder()); + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/SmilesAdminEditForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/SmilesAdminEditForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/SmilesAdminEditForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,91 @@ +get('id'); + } + + function prepare() + { + // + // Set form properties + // + $this->mFormProperties['id'] =& new XCube_IntProperty('id'); + $this->mFormProperties['code'] =& new XCube_StringProperty('code'); + $this->mFormProperties['smile_url'] =& new XCube_ImageFileProperty('smile_url'); + $this->mFormProperties['emotion'] =& new XCube_StringProperty('emotion'); + $this->mFormProperties['display'] =& new XCube_BoolProperty('display'); + + // + // Set field properties + // + $this->mFieldProperties['id'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['id']->setDependsByArray(array('required')); + $this->mFieldProperties['id']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_ID); + + $this->mFieldProperties['code'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['code']->setDependsByArray(array('required','maxlength')); + $this->mFieldProperties['code']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_CODE, '50'); + $this->mFieldProperties['code']->addMessage('maxlength', _MD_BASE_ERROR_MAXLENGTH, _MD_BASE_LANG_CODE, '50'); + $this->mFieldProperties['code']->addVar('maxlength', '50'); + + $this->mFieldProperties['smile_url'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['smile_url']->setDependsByArray(array('extension')); + $this->mFieldProperties['smile_url']->addMessage('extension', _AD_BASE_ERROR_EXTENSION); + $this->mFieldProperties['smile_url']->addVar('extension', 'jpg,gif,png'); + + $this->mFieldProperties['emotion'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['emotion']->setDependsByArray(array('required','maxlength')); + $this->mFieldProperties['emotion']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_EMOTION, '75'); + $this->mFieldProperties['emotion']->addMessage('maxlength', _MD_BASE_ERROR_MAXLENGTH, _MD_BASE_LANG_EMOTION, '75'); + $this->mFieldProperties['emotion']->addVar('maxlength', '75'); + } + + function validateSmile_url() + { + if ($this->_mIsNew && $this->get('smile_url') == null) { + $this->addErrorMessage(XCube_Utils::formatMessage(_MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_SMILE_URL)); + } + } + + function load(&$obj) + { + $this->set('id', $obj->get('id')); + $this->set('code', $obj->get('code')); + $this->set('emotion', $obj->get('emotion')); + $this->set('display', $obj->get('display')); + + $this->_mIsNew = $obj->isNew(); + $this->mOldFileName = $obj->get('smile_url'); + } + + function update(&$obj) + { + $obj->set('id', $this->get('id')); + $obj->set('code', $this->get('code')); + $obj->set('emotion', $this->get('emotion')); + $obj->set('display', $this->get('display')); + + $this->mFormFile = $this->get('smile_url'); + if ($this->mFormFile != null) { + $this->mFormFile->setRandomToBodyName('smil'); // Fix your prefix + $obj->set('smile_url', $this->mFormFile->getFileName()); + } + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/ImageAdminDeleteForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/ImageAdminDeleteForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ImageAdminDeleteForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,45 @@ +get('image_id'); + } + + function prepare() + { + // + // Set form properties + // + $this->mFormProperties['image_id'] =& new XCube_IntProperty('image_id'); + + // + // Set field properties + // + $this->mFieldProperties['image_id'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['image_id']->setDependsByArray(array('required')); + $this->mFieldProperties['image_id']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMAGE_ID); + } + + function load(&$obj) + { + $this->set('image_id', $obj->get('image_id')); + } + + function update(&$obj) + { + $obj->set('image_id', $this->get('image_id')); + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/ThemeSelectForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/ThemeSelectForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ThemeSelectForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,63 @@ +mFormProperties['select'] =& new XCube_BoolArrayProperty('select'); + $this->mFormProperties['choose'] =& new XCube_StringArrayProperty('choose'); + } + + /** + * @access public + */ + function getChooseTheme() + { + foreach ($this->get('choose') as $dirname => $dmy) { + return $dirname; + } + + return null; + } + + function getSelectableTheme() + { + $ret = array(); + + foreach ($this->get('select') as $themeName => $isSelect) { + if ($isSelect == 1) { + $ret[] = $themeName; + } + } + + return $ret; + } + + function load(&$themeArr) + { + foreach ($themeArr as $themeName) { + $this->set('select', $themeName, 1); + } + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/BlockInstallFilterForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/BlockInstallFilterForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/BlockInstallFilterForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,19 @@ + Index: xoops2jp/html/modules/legacy/admin/forms/ModuleListForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/ModuleListForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ModuleListForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,63 @@ +mFormProperties['name']=new XCube_StringArrayProperty('name'); + $this->mFormProperties['weight']=new XCube_IntArrayProperty('weight'); + $this->mFormProperties['isactive']=new XCube_BoolArrayProperty('isactive'); + + // set fields + $this->mFieldProperties['name']=new XCube_FieldProperty($this); + $this->mFieldProperties['name']->setDependsByArray(array('required','maxlength')); + $this->mFieldProperties['name']->addMessage("required",_MD_BASE_ERROR_REQUIRED,_AD_BASE_LANG_NAME,"140"); + $this->mFieldProperties['name']->addMessage("maxlength",_MD_BASE_ERROR_MAXLENGTH,_AD_BASE_LANG_NAME,"140"); + $this->mFieldProperties['name']->addVar("maxlength",140); + + $this->mFieldProperties['weight']=new XCube_FieldProperty($this); + $this->mFieldProperties['weight']->setDependsByArray(array('required','min')); + $this->mFieldProperties['weight']->addMessage("min",_AD_BASE_ERROR_MIN,_AD_BASE_LANG_WEIGHT,"0"); + $this->mFieldProperties['weight']->addVar("min",0); + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/BlockFilterForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/BlockFilterForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/BlockFilterForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,122 @@ + 'bid', + NEWBLOCKS_SORT_KEY_MID => 'mid', + NEWBLOCKS_SORT_KEY_FUNC_NUM => 'func_num', + NEWBLOCKS_SORT_KEY_NAME => 'name', + NEWBLOCKS_SORT_KEY_TITLE => 'title', + NEWBLOCKS_SORT_KEY_SIDE => 'side', + NEWBLOCKS_SORT_KEY_WEIGHT => 'weight', + NEWBLOCKS_SORT_KEY_BLOCK_TYPE => 'block_type', + NEWBLOCKS_SORT_KEY_C_TYPE => 'c_type', + NEWBLOCKS_SORT_KEY_DIRNAME => 'dirname', + NEWBLOCKS_SORT_KEY_TEMPLATE => 'template', + NEWBLOCKS_SORT_KEY_BCACHETIME => 'bcachetime', + NEWBLOCKS_SORT_KEY_LAST_MODIFIED => 'last_modified' + ); + + function getDefaultSortKey() + { + return NEWBLOCKS_SORT_KEY_DEFAULT; + } + + function fetch() + { + parent::fetch(); + + if (isset($_REQUEST['mid'])) { + $this->mNavi->addExtra('mid', xoops_getrequest('mid')); + $this->_mCriteria->add(new Criteria('mid', xoops_getrequest('mid'))); + } + + if (isset($_REQUEST['side'])) { + $this->mNavi->addExtra('side', xoops_getrequest('side')); + $this->_mCriteria->add(new Criteria('side', xoops_getrequest('side'))); + } + + if (isset($_REQUEST['weight'])) { + $this->mNavi->addExtra('weight', xoops_getrequest('weight')); + $this->_mCriteria->add(new Criteria('weight', xoops_getrequest('weight'))); + } + + if (isset($_REQUEST['block_type'])) { + $this->mNavi->addExtra('block_type', xoops_getrequest('block_type')); + $this->_mCriteria->add(new Criteria('block_type', xoops_getrequest('block_type'))); + } + + if (isset($_REQUEST['c_type'])) { + $this->mNavi->addExtra('c_type', xoops_getrequest('c_type')); + $this->_mCriteria->add(new Criteria('c_type', xoops_getrequest('c_type'))); + } + + if (isset($_REQUEST['dirname'])) { + $this->mNavi->addExtra('dirname', xoops_getrequest('dirname')); + $this->_mCriteria->add(new Criteria('dirname', xoops_getrequest('dirname'))); + } + + $this->_mCriteria->add(new Criteria('visible', $this->_getVisible())); + $this->_mCriteria->add(new Criteria('isactive', 1)); + + // + // Set sort conditions. + // + $this->_mCriteria->addSort($this->getSort(), $this->getOrder()); + + // + // If the sort key is mid, set c_type to second sort key for list display. + // + if (abs($this->mSort) == NEWBLOCKS_SORT_KEY_MID) { + $this->_mCriteria->addSort('c_type', $this->getOrder()); + } + + if (abs($this->mSort) != NEWBLOCKS_SORT_KEY_SIDE) { + $this->_mCriteria->addSort('side', $this->getOrder()); + } + + if (abs($this->mSort) != NEWBLOCKS_SORT_KEY_WEIGHT) { + $this->_mCriteria->addSort('weight', $this->getOrder()); + } + } + + function _getVisible() + { + return 1; + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/CommentAdminDeleteForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/CommentAdminDeleteForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/CommentAdminDeleteForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,47 @@ +get('com_id'); + } + + function prepare() + { + // + // Set form properties + // + $this->mFormProperties['com_id'] =& new XCube_IntProperty('com_id'); + + // + // Set field properties + // + $this->mFieldProperties['com_id'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_id']->setDependsByArray(array('required')); + $this->mFieldProperties['com_id']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_ID); + } + + function load(&$obj) + { + $this->setVar('com_id', $obj->get('com_id')); + } + + function update(&$obj) + { + $obj->setVar('com_id', $this->get('com_id')); + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/BlockEditForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/BlockEditForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/BlockEditForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,141 @@ +get('bid'); + } + + function prepare() + { + // + // Set form properties + // + $this->mFormProperties['bid'] =& new XCube_IntProperty('bid'); + $this->mFormProperties['options'] =& new XCube_StringArrayProperty('options'); + $this->mFormProperties['title'] =& new XCube_StringProperty('title'); + $this->mFormProperties['side'] =& new XCube_IntProperty('side'); + $this->mFormProperties['weight'] =& new XCube_IntProperty('weight'); + $this->mFormProperties['bcachetime'] =& new XCube_IntProperty('bcachetime'); + $this->mFormProperties['bmodule'] =& new XCube_IntArrayProperty('bmodule'); + $this->mFormProperties['groupid'] =& new XCube_IntArrayProperty('groupid'); + + // + // Set field properties + // + $this->mFieldProperties['bid'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['bid']->setDependsByArray(array('required')); + $this->mFieldProperties['bid']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_BID); + + $this->mFieldProperties['title'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['title']->setDependsByArray(array('required','maxlength')); + $this->mFieldProperties['title']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_TITLE, '255'); + $this->mFieldProperties['title']->addMessage('maxlength', _MD_BASE_ERROR_MAXLENGTH, _AD_BASE_LANG_TITLE, '255'); + $this->mFieldProperties['title']->addVar('maxlength', '255'); + + $this->mFieldProperties['side'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['side']->setDependsByArray(array('required', 'objectExist')); + $this->mFieldProperties['side']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_SIDE); + $this->mFieldProperties['side']->addMessage('objectExist', _AD_BASE_ERROR_OBJECTEXIST, _AD_BASE_LANG_SIDE); + $this->mFieldProperties['side']->addVar('handler', 'columnside'); + $this->mFieldProperties['side']->addVar('module', 'base'); + + $this->mFieldProperties['weight'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['weight']->setDependsByArray(array('required', 'intRange')); + $this->mFieldProperties['weight']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_WEIGHT); + $this->mFieldProperties['weight']->addMessage('intRange', _AD_BASE_ERROR_INTRANGE, _AD_BASE_LANG_WEIGHT); + $this->mFieldProperties['weight']->addVar('min', '0'); + $this->mFieldProperties['weight']->addVar('max', '255'); + + $this->mFieldProperties['bcachetime'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['bcachetime']->setDependsByArray(array('required', 'objectExist')); + $this->mFieldProperties['bcachetime']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_BCACHETIME); + $this->mFieldProperties['bcachetime']->addMessage('objectExist', _AD_BASE_ERROR_OBJECTEXIST, _AD_BASE_LANG_BCACHETIME); + $this->mFieldProperties['bcachetime']->addVar('handler', 'cachetime'); + + $this->mFieldProperties['groupid'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['groupid']->setDependsByArray(array('objectExist')); + $this->mFieldProperties['groupid']->addMessage('objectExist', _AD_BASE_ERROR_OBJECTEXIST, _AD_BASE_LANG_GROUPID); + $this->mFieldProperties['groupid']->addVar('handler', 'group'); + } + + function validateBmodule() + { + $bmodule = $this->get('bmodule'); + if (!(count($bmodule))) { + $this->addErrorMessage(_AD_BASE_ERROR_BMODULE); + } + else { + $handler =& xoops_gethandler('module'); + foreach ($this->get('bmodule') as $mid) { + $module =& $handler->get($mid); + if ($mid != -1 && $mid != 0 && !is_object($module)) { + $this->addErrorMessage(XCube_Utils::formatMessage(_AD_BASE_ERROR_OBJECTEXIST, _AD_BASE_LANG_BMODULE)); + } + } + } + } + + function validateGroupid() + { + $groupid = $this->get('groupid'); + if (!(count($groupid))) { + $this->addErrorMessage(_AD_BASE_ERROR_GROUPID); + } + } + + function load(&$obj) + { + $this->set('bid', $obj->get('bid')); + $this->set('title', $obj->get('title')); + $this->set('side', $obj->get('side')); + $this->set('weight', $obj->get('weight')); + $this->set('bcachetime', $obj->get('bcachetime')); + + $i = 0; + foreach ($obj->mBmodule as $module) { + $this->set('bmodule', $i++, $module->get('module_id')); + } + + $i = 0; + foreach ($obj->mGroup as $group) { + $this->set('groupid', $i++, $group->get('groupid')); + } + } + + function update(&$obj) + { + $obj->set('bid', $this->get('bid')); + $obj->set('options', implode('|', $this->get('options'))); + $obj->set('title', $this->get('title')); + $obj->set('side', $this->get('side')); + $obj->set('weight', $this->get('weight')); + $obj->set('bcachetime', $this->get('bcachetime')); + + $obj->set('last_modified', time()); + + $obj->mBmodule = array(); + $handler =& xoops_getmodulehandler('block_module_link', 'base'); + foreach ($this->get('bmodule') as $mid) { + $t_obj =& $handler->create(); + $t_obj->set('block_id', $this->get('bid')); + $t_obj->set('module_id', $mid); + $obj->mBmodule[] =& $t_obj; + unset($t_obj); + } + + $obj->mGroup = array(); + $handler =& xoops_gethandler('group'); + foreach ($this->get('groupid') as $groupid) { + $obj->mGroup[] =& $handler->get($groupid); + } + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/PreferenceEditForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/PreferenceEditForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/PreferenceEditForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,145 @@ +mKeyValue = $category->get('confcat_id'); + } + + function getTokenName() + { + return "module.base.PreferenceEditForm.TOKEN" . $this->getCategoryId(); + } + + function getCategoryId() + { + return $this->mKeyValue; + } + + function getModuleId() + { + return 0; + } + + function prepare(&$configArr) + { + // + // Set form properties + // + foreach ($configArr as $config) { + switch ($config->get('conf_valuetype')) { + case 'text': + case 'string': + if ($config->get('conf_formtype') == 'textarea') { + $this->mFormProperties[$config->get('conf_name')] =& new XCube_TextProperty($config->get('conf_name')); + } + else { + $this->mFormProperties[$config->get('conf_name')] =& new XCube_StringProperty($config->get('conf_name')); + } + $this->set($config->get('conf_name'), $config->get('conf_value')); + break; + + case 'float': + $this->mFormProperties[$config->get('conf_name')] =& new XCube_FloatProperty($config->get('conf_name')); + $this->set($config->get('conf_name'), $config->get('conf_value')); + + $this->mFieldProperties[$config->get('conf_name')] =& new XCube_FieldProperty($this); + $this->mFieldProperties[$config->get('conf_name')]->setDependsByArray(array('required')); + $this->mFieldProperties[$config->get('conf_name')]->addMessage('required', _MD_BASE_ERROR_REQUIRED, $config->get('conf_title')); + break; + + case 'int': + $this->mFormProperties[$config->get('conf_name')] =& new XCube_IntProperty($config->get('conf_name')); + $this->set($config->get('conf_name'), $config->get('conf_value')); + + $this->mFieldProperties[$config->get('conf_name')] =& new XCube_FieldProperty($this); + $this->mFieldProperties[$config->get('conf_name')]->setDependsByArray(array('required')); + $this->mFieldProperties[$config->get('conf_name')]->addMessage('required', _MD_BASE_ERROR_REQUIRED, $config->get('conf_title')); + break; + + case 'other': + $this->mFormProperties[$config->get('conf_name')] =& new XCube_StringProperty($config->get('conf_name')); + $this->set($config->get('conf_name'), $config->get('conf_value')); + break; + + case 'array': + if($config->get('conf_formtype') == 'textarea') { + $this->mFormProperties[$config->get('conf_name')] =& new XCube_StringProperty($config->get('conf_name')); + $this->set($config->get('conf_name'), implode("|", unserialize($config->get('conf_value')))); + } + else { + $this->mFormProperties[$config->get('conf_name')] =& new XCube_StringArrayProperty($config->get('conf_name')); + $t_arr = unserialize($config->get('conf_value')); + if (is_array($t_arr)) { + foreach ($t_arr as $_key => $_value) { + $this->set($config->get('conf_name'), $_key, $_value); + } + } + } + break; + } + } + } + + function getImploadValue($key) + { + $value = $this->get($key); + return is_array($value) ? implode("|", $value) : $value; + } + + function update(&$configArr) + { + foreach (array_keys($configArr) as $key) { + $value = $this->get($configArr[$key]->get('conf_name')); + + if ($configArr[$key]->get('conf_valuetype') == 'array') { + if (is_array($value)) { + $configArr[$key]->set('conf_value', serialize($value)); + } + else { + $configArr[$key]->set('conf_value', serialize(explode("|", $value))); + } + } + else { + $configArr[$key]->set('conf_value', $value); + } + } + } +} + +class Legacy_ModulePreferenceEditForm extends Legacy_PreferenceEditForm +{ + var $mKeyName = "confmod_id"; + + function Legacy_ModulePreferenceEditForm(&$module) + { + parent::XCube_ActionForm(); + $this->mKeyValue = $module->get('mid'); + } + + function getTokenName() + { + return "module.base.ModulePreferenceEditForm.TOKEN" . $this->getModuleId(); + } + + function getCategoryId() + { + return 0; + } + + function getModuleId() + { + return $this->mKeyValue; + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/ModuleUpdateForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/ModuleUpdateForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ModuleUpdateForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,34 @@ +get('dirname'); + } + + function prepare() + { + // + // Set form properties + // + $this->mFormProperties['dirname'] =& new XCube_StringProperty('dirname'); + $this->mFormProperties['force'] =& new XCube_BoolProperty('force'); + } + + function load(&$obj) + { + $this->set('dirname', $obj->get('dirname')); + } + + function update(&$obj) + { + $obj->set('dirname', $this->get('dirname')); + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/BlockListForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/BlockListForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/BlockListForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,56 @@ +mFormProperties['weight'] =& new XCube_IntArrayProperty('weight'); + $this->mFormProperties['side'] =& new XCube_IntArrayProperty('side'); + $this->mFormProperties['bcachetime'] =& new XCube_IntArrayProperty('bcachetime'); + + // + // Set field properties + // + $this->mFieldProperties['weight'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['weight']->setDependsByArray(array('required','intRange')); + $this->mFieldProperties['weight']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_WEIGHT); + $this->mFieldProperties['weight']->addMessage('intRange', _AD_BASE_ERROR_INTRANGE, _AD_BASE_LANG_WEIGHT); + $this->mFieldProperties['weight']->addVar('min', '0'); + $this->mFieldProperties['weight']->addVar('max', '255'); + + $this->mFieldProperties['side'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['side']->setDependsByArray(array('required','objectExist')); + $this->mFieldProperties['side']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_SIDE); + $this->mFieldProperties['side']->addMessage('objectExist', _AD_BASE_ERROR_OBJECTEXIST, _AD_BASE_LANG_SIDE); + $this->mFieldProperties['side']->addVar('handler', 'columnside'); + $this->mFieldProperties['side']->addVar('module', 'base'); + + $this->mFieldProperties['bcachetime'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['bcachetime']->setDependsByArray(array('required','objectExist')); + $this->mFieldProperties['bcachetime']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_BCACHETIME); + $this->mFieldProperties['bcachetime']->addMessage('objectExist', _AD_BASE_ERROR_OBJECTEXIST, _AD_BASE_LANG_BCACHETIME); + $this->mFieldProperties['bcachetime']->addVar('handler', 'cachetime'); + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/ImageAdminEditForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/ImageAdminEditForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ImageAdminEditForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,80 @@ +get('image_id'); + } + + function prepare() + { + parent::prepare(); + + // + // Set form properties + // + $this->mFormProperties['image_id'] =& new XCube_IntProperty('image_id'); + $this->mFormProperties['image_display'] =& new XCube_BoolProperty('image_display'); + $this->mFormProperties['image_weight'] =& new XCube_IntProperty('image_weight'); + + // + // Set field properties + // + $this->mFieldProperties['image_id'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['image_id']->setDependsByArray(array('required')); + $this->mFieldProperties['image_id']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMAGE_ID); + + $this->mFieldProperties['image_weight'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['image_weight']->setDependsByArray(array('required')); + $this->mFieldProperties['image_weight']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMAGE_WEIGHT); + } + + function load(&$obj) + { + parent::load($obj); + $this->set('image_id', $obj->get('image_id')); + $this->set('image_display', $obj->get('image_display')); + $this->set('image_weight', $obj->get('image_weight')); + + $this->_mImgcatId = $obj->get('imgcat_id'); + } + + function update(&$obj) + { + parent::update($obj); + $obj->set('image_id', $this->get('image_id')); + $obj->set('image_display', $this->get('image_display')); + $obj->set('image_weight', $this->get('image_weight')); + } +} + +class Legacy_ImageAdminEditForm extends Legacy_ImageAdminCreateForm +{ + function validateImgcat_id() + { + parent::validateImgcat_id(); + + $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $currentCategory =& $handler->get($this->_mImgcatId); + + $specificCategory =& $handler->get($this->get('imgcat_id')); + if ($currentCategory->get('imgcat_storetype') != $specificCategory->get('imgcat_storetype')) { + $this->set('imgcat_id', $this->_mImgcatId); + } + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/ModuleUninstallForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/ModuleUninstallForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ModuleUninstallForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,34 @@ +get('dirname'); + } + + function prepare() + { + // + // Set form properties + // + $this->mFormProperties['dirname'] =& new XCube_StringProperty('dirname'); + $this->mFormProperties['force'] =& new XCube_BoolProperty('force'); + } + + function load(&$obj) + { + $this->set('dirname', $obj->get('dirname')); + } + + function update(&$obj) + { + $obj->set('dirname', $this->get('dirname')); + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/InstallWizardForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/InstallWizardForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/InstallWizardForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,46 @@ +get('dirname'); + } + + function prepare() + { + // + // Set form properties + // + $this->mFormProperties['dirname'] =& new XCube_StringProperty('dirname'); + $this->mFormProperties['agree'] =& new XCube_BoolProperty('agree'); + + // + // Set field properties + // + $this->mFieldProperties['agree'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['agree']->setDependsByArray(array('min')); + $this->mFieldProperties['agree']->addMessage('min', _AD_BASE_ERROR_PLEASE_AGREE); + $this->mFieldProperties['agree']->addVar('min', '1'); + } + + function load(&$obj) + { + $this->set('dirname', $obj->get('dirname')); + } + + function update(&$obj) + { + $obj->set('dirname', $this->get('dirname')); + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminDeleteForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminDeleteForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminDeleteForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,45 @@ +get('imgcat_id'); + } + + function prepare() + { + // + // Set form properties + // + $this->mFormProperties['imgcat_id'] =& new XCube_IntProperty('imgcat_id'); + + // + // Set field properties + // + $this->mFieldProperties['imgcat_id'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['imgcat_id']->setDependsByArray(array('required')); + $this->mFieldProperties['imgcat_id']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMGCAT_ID); + } + + function load(&$obj) + { + $this->set('imgcat_id', $obj->get('imgcat_id')); + } + + function update(&$obj) + { + $obj->set('imgcat_id', $this->get('imgcat_id')); + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/BlockUninstallForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/BlockUninstallForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/BlockUninstallForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,26 @@ +get('bid'); + } + + function update(&$obj) + { + parent::update($obj); + $obj->set('last_modified', time()); + $obj->set('visible', false); + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/CommentAdminEditForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/CommentAdminEditForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/CommentAdminEditForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,121 @@ +get('com_id'); + } + + function prepare() + { + // + // Set form properties + // + $this->mFormProperties['com_id'] =& new XCube_IntProperty('com_id'); + $this->mFormProperties['com_icon'] =& new XCube_StringProperty('com_icon'); + $this->mFormProperties['com_title'] =& new XCube_StringProperty('com_title'); + $this->mFormProperties['com_text'] =& new XCube_TextProperty('com_text'); + $this->mFormProperties['com_sig'] =& new XCube_BoolProperty('com_sig'); + $this->mFormProperties['com_status'] =& new XCube_IntProperty('com_status'); + $this->mFormProperties['dohtml'] =& new XCube_BoolProperty('dohtml'); + $this->mFormProperties['dosmiley'] =& new XCube_BoolProperty('dosmiley'); + $this->mFormProperties['doxcode'] =& new XCube_BoolProperty('doxcode'); + $this->mFormProperties['doimage'] =& new XCube_BoolProperty('doimage'); + $this->mFormProperties['dobr'] =& new XCube_BoolProperty('dobr'); + + // + // Set field properties + // + + $this->mFieldProperties['com_id'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_id']->setDependsByArray(array('required')); + $this->mFieldProperties['com_id']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_ID); + + $this->mFieldProperties['com_icon'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_icon']->setDependsByArray(array('maxlength')); + $this->mFieldProperties['com_icon']->addMessage('maxlength', _MD_BASE_ERROR_MAXLENGTH, _MD_BASE_LANG_COM_ICON, '25'); + $this->mFieldProperties['com_icon']->addVar('maxlength', '25'); + + $this->mFieldProperties['com_title'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_title']->setDependsByArray(array('required','maxlength')); + $this->mFieldProperties['com_title']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_TITLE, '255'); + $this->mFieldProperties['com_title']->addMessage('maxlength', _MD_BASE_ERROR_MAXLENGTH, _MD_BASE_LANG_COM_TITLE, '255'); + $this->mFieldProperties['com_title']->addVar('maxlength', '255'); + + $this->mFieldProperties['com_text'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_text']->setDependsByArray(array('required')); + $this->mFieldProperties['com_text']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_TEXT); + } + + function load(&$obj) + { + $this->set('com_id', $obj->get('com_id')); + $this->set('com_icon', $obj->get('com_icon')); + $this->set('com_title', $obj->get('com_title')); + $this->set('com_text', $obj->get('com_text')); + $this->set('com_sig', $obj->get('com_sig')); + $this->set('com_status', $obj->get('com_status')); + $this->set('dohtml', $obj->get('dohtml')); + $this->set('dosmiley', $obj->get('dosmiley')); + $this->set('doxcode', $obj->get('doxcode')); + $this->set('doimage', $obj->get('doimage')); + $this->set('dobr', $obj->get('dobr')); + } + + function update(&$obj) + { + $obj->set('com_id', $this->get('com_id')); + $obj->set('com_icon', $this->get('com_icon')); + $obj->set('com_title', $this->get('com_title')); + $obj->set('com_text', $this->get('com_text')); + $obj->set('com_sig', $this->get('com_sig')); + $obj->set('com_status', $this->get('com_status')); + $obj->set('dohtml', $this->get('dohtml')); + $obj->set('dosmiley', $this->get('dosmiley')); + $obj->set('doxcode', $this->get('doxcode')); + $obj->set('doimage', $this->get('doimage')); + $obj->set('dobr', $this->get('dobr')); + } +} + +class Legacy_PendingCommentAdminEditForm extends Legacy_AbstractCommentAdminEditForm +{ + function prepare() + { + parent::prepare(); + + $this->mFieldProperties['com_status'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_status']->setDependsByArray(array('required','intRange')); + $this->mFieldProperties['com_status']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_STATUS); + $this->mFieldProperties['com_status']->addMessage('intRange', _AD_BASE_ERROR_INTRANGE, _AD_BASE_LANG_COM_STATUS); + $this->mFieldProperties['com_status']->addVar('min', '1'); + $this->mFieldProperties['com_status']->addVar('max', '3'); + } +} + +class Legacy_ApprovalCommentAdminEditForm extends Legacy_AbstractCommentAdminEditForm +{ + function prepare() + { + parent::prepare(); + + $this->mFieldProperties['com_status'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_status']->setDependsByArray(array('required','intRange')); + $this->mFieldProperties['com_status']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_STATUS); + $this->mFieldProperties['com_status']->addMessage('intRange', _AD_BASE_ERROR_INTRANGE, _AD_BASE_LANG_COM_STATUS); + $this->mFieldProperties['com_status']->addVar('min', '2'); + $this->mFieldProperties['com_status']->addVar('max', '3'); + } +} + + +?> Index: xoops2jp/html/modules/legacy/admin/forms/CommentFilterForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/CommentFilterForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/CommentFilterForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,107 @@ + 'com_id', + COMMENT_SORT_KEY_COM_PID => 'com_pid', + COMMENT_SORT_KEY_COM_ROOTID => 'com_rootid', + COMMENT_SORT_KEY_COM_MODID => 'com_modid', + COMMENT_SORT_KEY_COM_ITEMID => 'com_itemid', + COMMENT_SORT_KEY_COM_ICON => 'com_icon', + COMMENT_SORT_KEY_COM_CREATED => 'com_created', + COMMENT_SORT_KEY_COM_MODIFIED => 'com_modified', + COMMENT_SORT_KEY_COM_UID => 'com_uid', + COMMENT_SORT_KEY_COM_IP => 'com_ip', + COMMENT_SORT_KEY_COM_TITLE => 'com_title', + COMMENT_SORT_KEY_COM_TEXT => 'com_text', + COMMENT_SORT_KEY_COM_SIG => 'com_sig', + COMMENT_SORT_KEY_COM_STATUS => 'com_status', + COMMENT_SORT_KEY_COM_EXPARAMS => 'com_exparams', + COMMENT_SORT_KEY_DOHTML => 'dohtml', + COMMENT_SORT_KEY_DOSMILEY => 'dosmiley', + COMMENT_SORT_KEY_DOXCODE => 'doxcode', + COMMENT_SORT_KEY_DOIMAGE => 'doimage', + COMMENT_SORT_KEY_DOBR => 'dobr' + ); + + function getDefaultSortKey() + { + return COMMENT_SORT_KEY_DEFAULT; + } + + function fetch() + { + parent::fetch(); + + if (isset($_REQUEST['com_modid']) && intval(xoops_getrequest('com_modid')) > 0) { + $this->mNavi->addExtra('com_modid', xoops_getrequest('com_modid')); + $this->_mCriteria->add(new Criteria('com_modid', xoops_getrequest('com_modid'))); + } + elseif (isset($_REQUEST['dirname'])) { + $this->mNavi->addExtra('dirname', xoops_getrequest('dirname')); + + $handler =& xoops_gethandler('module'); + $module =& $handler->getByDirname(xoops_getrequest('dirname')); + if (is_object($module)) { + $this->_mCriteria->add(new Criteria('com_modid', $module->get('mid'))); + } + } + + if (isset($_REQUEST['com_icon'])) { + $this->mNavi->addExtra('com_icon', xoops_getrequest('com_icon')); + $this->_mCriteria->add(new Criteria('com_icon', xoops_getrequest('com_icon'))); + } + + if (isset($_REQUEST['com_uid'])) { + $this->mNavi->addExtra('com_uid', xoops_getrequest('com_uid')); + $this->_mCriteria->add(new Criteria('com_uid', xoops_getrequest('com_uid'))); + } + + if (isset($_REQUEST['com_ip'])) { + $this->mNavi->addExtra('com_ip', xoops_getrequest('com_ip')); + $this->_mCriteria->add(new Criteria('com_ip', xoops_getrequest('com_ip'))); + } + + if (xoops_getrequest('com_status') > 0) { + $this->mNavi->addExtra('com_status', xoops_getrequest('com_status')); + $this->_mCriteria->add(new Criteria('com_status', xoops_getrequest('com_status'))); + } + + $this->_mCriteria->addSort($this->getSort(), $this->getOrder()); + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/CustomBlockEditForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/CustomBlockEditForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/CustomBlockEditForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,78 @@ +get('bid'); + } + + function prepare() + { + parent::prepare(); + + // + // Set form properties + // + $this->mFormProperties['content'] =& new XCube_TextProperty('content'); + $this->mFormProperties['c_type'] =& new XCube_StringProperty('c_type'); + + // + // Set field properties + // + $this->mFieldProperties['content'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['content']->setDependsByArray(array('required')); + $this->mFieldProperties['content']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_CONTENT); + + $this->mFieldProperties['c_type'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['c_type']->setDependsByArray(array('required','maxlength')); + $this->mFieldProperties['c_type']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_C_TYPE, '1'); + $this->mFieldProperties['c_type']->addMessage('maxlength', _MD_BASE_ERROR_MAXLENGTH, _AD_BASE_LANG_C_TYPE, '1'); + $this->mFieldProperties['c_type']->addVar('maxlength', '1'); + } + + function load(&$obj) + { + parent::load($obj); + $this->set('content', $obj->get('content')); + $this->set('c_type', $obj->get('c_type')); + } + + function update(&$obj) + { + parent::update($obj); + $obj->set('content', $this->get('content')); + $obj->set('block_type', 'C'); + $obj->set('c_type', $this->get('c_type')); + $obj->set('visible', 1); + $obj->set('isactive', 1); + + switch ($this->get('c_type')) { + case 'H': + $obj->set('name', _AD_BASE_LANG_CUSTOM_HTML); + break; + + case 'P': + $obj->set('name', _AD_BASE_LANG_CUSTOM_PHP); + break; + + case 'S': + $obj->set('name', _AD_BASE_LANG_CUSTOM_WITH_SMILIES); + break; + + case 'T': + $obj->set('name', _AD_BASE_LANG_CUSTOM_WITHOUT_SMILIES); + break; + } + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/ActionSearchForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/ActionSearchForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ActionSearchForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,31 @@ +mFormProperties['keywords']=new XCube_StringProperty('keywords'); + + // set fields + $this->mFieldProperties['keywords']=new XCube_FieldProperty($this); + $this->mFieldProperties['keywords']->setDependsByArray(array('required')); + $this->mFieldProperties['keywords']->addMessage("required",_AD_BASE_ERROR_SEARCH_REQUIRED); + } + + function fetch() + { + parent::fetch(); + $this->set('keywords', trim($this->get('keywords'))); + } +} Index: xoops2jp/html/modules/legacy/admin/forms/index.html diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/index.html Sat Oct 14 23:55:21 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/admin/forms/ImagecategoryFilterForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/ImagecategoryFilterForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ImagecategoryFilterForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,77 @@ + 'imgcat_id', + IMAGECATEGORY_SORT_KEY_IMGCAT_NAME => 'imgcat_name', + IMAGECATEGORY_SORT_KEY_IMGCAT_MAXSIZE => 'imgcat_maxsize', + IMAGECATEGORY_SORT_KEY_IMGCAT_MAXWIDTH => 'imgcat_maxwidth', + IMAGECATEGORY_SORT_KEY_IMGCAT_MAXHEIGHT => 'imgcat_maxheight', + IMAGECATEGORY_SORT_KEY_IMGCAT_DISPLAY => 'imgcat_display', + IMAGECATEGORY_SORT_KEY_IMGCAT_WEIGHT => 'imgcat_weight', + IMAGECATEGORY_SORT_KEY_IMGCAT_TYPE => 'imgcat_type', + IMAGECATEGORY_SORT_KEY_IMGCAT_STORETYPE => 'imgcat_storetype' + ); + + function getDefaultSortKey() + { + return IMAGECATEGORY_SORT_KEY_DEFAULT; + } + + function fetch() + { + parent::fetch(); + + if (isset($_REQUEST['imgcat_name'])) { + $this->mNavi->addExtra('imgcat_name', xoops_getrequest('imgcat_name')); + $this->_mCriteria->add(new Criteria('imgcat_name', xoops_getrequest('imgcat_name'))); + } + + if (isset($_REQUEST['imgcat_display'])) { + $this->mNavi->addExtra('imgcat_display', xoops_getrequest('imgcat_display')); + $this->_mCriteria->add(new Criteria('imgcat_display', xoops_getrequest('imgcat_display'))); + } + + if (isset($_REQUEST['imgcat_type'])) { + $this->mNavi->addExtra('imgcat_type', xoops_getrequest('imgcat_type')); + $this->_mCriteria->add(new Criteria('imgcat_type', xoops_getrequest('imgcat_type'))); + } + + if (isset($_REQUEST['imgcat_storetype'])) { + $this->mNavi->addExtra('imgcat_storetype', xoops_getrequest('imgcat_storetype')); + $this->_mCriteria->add(new Criteria('imgcat_storetype', xoops_getrequest('imgcat_storetype'))); + } + + // + // Set sort conditions. + // + $this->_mCriteria->addSort($this->getSort(), $this->getOrder()); + if (abs($this->mSort) != IMAGECATEGORY_SORT_KEY_IMGCAT_WEIGHT) { + $this->_mCriteria->addSort(IMAGECATEGORY_SORT_KEY_IMGCAT_WEIGHT, $this->getOrder()); + } + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/BlockInstallEditForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/BlockInstallEditForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/BlockInstallEditForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,25 @@ +get('bid'); + } + + function update(&$obj) + { + parent::update($obj); + $obj->set('visible', true); + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminEditForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminEditForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminEditForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,135 @@ +get('imgcat_id'); + } + + function prepare() + { + // + // Set form properties + // + $this->mFormProperties['imgcat_id'] =& new XCube_IntProperty('imgcat_id'); + $this->mFormProperties['imgcat_name'] =& new XCube_StringProperty('imgcat_name'); + $this->mFormProperties['imgcat_maxsize'] =& new XCube_IntProperty('imgcat_maxsize'); + $this->mFormProperties['imgcat_maxwidth'] =& new XCube_IntProperty('imgcat_maxwidth'); + $this->mFormProperties['imgcat_maxheight'] =& new XCube_IntProperty('imgcat_maxheight'); + $this->mFormProperties['imgcat_display'] =& new XCube_BoolProperty('imgcat_display'); + $this->mFormProperties['imgcat_weight'] =& new XCube_IntProperty('imgcat_weight'); + $this->mFormProperties['readgroups'] =& new XCube_IntArrayProperty('readgroups'); + $this->mFormProperties['uploadgroups'] =& new XCube_IntArrayProperty('uploadgroups'); + + // + // Set field properties + // + $this->mFieldProperties['imgcat_id'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['imgcat_id']->setDependsByArray(array('required')); + $this->mFieldProperties['imgcat_id']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMGCAT_ID); + + $this->mFieldProperties['imgcat_name'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['imgcat_name']->setDependsByArray(array('required','maxlength')); + $this->mFieldProperties['imgcat_name']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMGCAT_NAME, '100'); + $this->mFieldProperties['imgcat_name']->addMessage('maxlength', _MD_BASE_ERROR_MAXLENGTH, _AD_BASE_LANG_IMGCAT_NAME, '100'); + $this->mFieldProperties['imgcat_name']->addVar('maxlength', '100'); + + $this->mFieldProperties['imgcat_maxsize'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['imgcat_maxsize']->setDependsByArray(array('required')); + $this->mFieldProperties['imgcat_maxsize']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMGCAT_MAXSIZE); + + $this->mFieldProperties['imgcat_maxwidth'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['imgcat_maxwidth']->setDependsByArray(array('required')); + $this->mFieldProperties['imgcat_maxwidth']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMGCAT_MAXWIDTH); + + $this->mFieldProperties['imgcat_maxheight'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['imgcat_maxheight']->setDependsByArray(array('required')); + $this->mFieldProperties['imgcat_maxheight']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMGCAT_MAXHEIGHT); + + $this->mFieldProperties['imgcat_weight'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['imgcat_weight']->setDependsByArray(array('required')); + $this->mFieldProperties['imgcat_weight']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMGCAT_WEIGHT); + + $this->mFieldProperties['readgroups'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['readgroups']->setDependsByArray(array('objectExist')); + $this->mFieldProperties['readgroups']->addMessage('objectExist', _AD_BASE_ERROR_OBJECTEXIST, _AD_BASE_LANG_IMGCAT_READ_GROUPS); + $this->mFieldProperties['readgroups']->addVar('handler', 'group'); + + $this->mFieldProperties['uploadgroups'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['uploadgroups']->setDependsByArray(array('objectExist')); + $this->mFieldProperties['uploadgroups']->addMessage('objectExist', _AD_BASE_ERROR_OBJECTEXIST, _AD_BASE_LANG_IMGCAT_UPLOAD_GROUPS); + $this->mFieldProperties['uploadgroups']->addVar('handler', 'group'); + } + + function validateReadgroups() + { + $readgroups = $this->get('readgroups'); + if (count($readgroups) == 0) { + $this->addErrorMessage(_AD_BASE_ERROR_READGROUPS); + } + } + + function validateUploadgroups() + { + $uploadgroups = $this->get('uploadgroups'); + if (count($uploadgroups) == 0) { + $this->addErrorMessage(_AD_BASE_ERROR_UPLOADGROUPS); + } + } + + function load(&$obj) + { + $this->set('imgcat_id', $obj->get('imgcat_id')); + $this->set('imgcat_name', $obj->get('imgcat_name')); + $this->set('imgcat_maxsize', $obj->get('imgcat_maxsize')); + $this->set('imgcat_maxwidth', $obj->get('imgcat_maxwidth')); + $this->set('imgcat_maxheight', $obj->get('imgcat_maxheight')); + $this->set('imgcat_display', $obj->get('imgcat_display')); + $this->set('imgcat_weight', $obj->get('imgcat_weight')); + + $i = 0; + foreach ($obj->mReadGroups as $group) { + $this->set('readgroups', $i++, $group->get('groupid')); + } + + $i = 0; + foreach ($obj->mUploadGroups as $group) { + $this->set('uploadgroups', $i++, $group->get('groupid')); + } + } + + function update(&$obj) + { + $obj->set('imgcat_id', $this->get('imgcat_id')); + $obj->set('imgcat_name', $this->get('imgcat_name')); + $obj->set('imgcat_maxsize', $this->get('imgcat_maxsize')); + $obj->set('imgcat_maxwidth', $this->get('imgcat_maxwidth')); + $obj->set('imgcat_maxheight', $this->get('imgcat_maxheight')); + $obj->set('imgcat_display', $this->get('imgcat_display')); + $obj->set('imgcat_weight', $this->get('imgcat_weight')); + + $handler =& xoops_gethandler('group'); + + unset($obj->mReadGroups); + foreach ($this->get('readgroups') as $groupid) { + $obj->mReadGroups[] =& $handler->get($groupid); + } + + unset($obj->mUploadGroups); + foreach ($this->get('uploadgroups') as $groupid) { + $obj->mUploadGroups[] =& $handler->get($groupid); + } + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/CustomBlockDeleteForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/CustomBlockDeleteForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/CustomBlockDeleteForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,44 @@ +get('bid'); + } + + function prepare() + { + // + // Set form properties + // + $this->mFormProperties['bid'] =& new XCube_IntProperty('bid'); + + // + // Set field properties + // + $this->mFieldProperties['bid'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['bid']->setDependsByArray(array('required')); + $this->mFieldProperties['bid']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_BID); + } + + function load(&$obj) + { + $this->set('bid', $obj->get('bid')); + } + + function update(&$obj) + { + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/ModuleListFilterForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/ModuleListFilterForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ModuleListFilterForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,84 @@ + "mid", + MODULE_SORT_KEY_NAME => "name", + MODULE_SORT_KEY_VERSION => "version", + MODULE_SORT_KEY_LASTUPDATE => "last_update", + MODULE_SORT_KEY_WEIGHT => "weight", + MODULE_SORT_KEY_ISACTIVE => "isactive", + MODULE_SORT_KEY_DIRNAME => "dirname", + MODULE_SORT_KEY_HASMAIN => "hasmain", + MODULE_SORT_KEY_HASADMIN => "hasadmin", + MODULE_SORT_KEY_HASSEARCH => "hassearch", + MODULE_SORT_KEY_HASCONFIG => "hasconfig", + MODULE_SORT_KEY_HASCOMMENTS => "hascomments" + ); + + function Legacy_ModuleListFilterForm() + { + $this->_mCriteria =& new CriteriaCompo(); + } + + function getDefaultSortKey() + { + return MODULE_SORT_KEY_DEFAULT; + } + + function fetch() + { + $this->fetchSort(); + + if (isset($_REQUEST['special'])) { + $this->mSpecial = intval(xoops_getreqeust('special')); + } + + $this->_mCriteria->add(new Criteria('mid', 0, '>')); + + $this->_mCriteria->addSort($this->getSort(), $this->getOrder()); + } + + function getCriteria($start = null, $limit = null) + { + $criteria = $this->_mCriteria; + + $criteria->setStart(0); + $criteria->setLimit(0); + + return $criteria; + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/admin/forms/SmilesAdminDeleteForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/SmilesAdminDeleteForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/SmilesAdminDeleteForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,44 @@ +get('id'); + } + + function prepare() + { + // + // Set form properties + // + $this->mFormProperties['id'] =& new XCube_IntProperty('id'); + + // + // Set field properties + // + $this->mFieldProperties['id'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['id']->setDependsByArray(array('required')); + $this->mFieldProperties['id']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_ID); + } + + function load(&$obj) + { + $this->set('id', $obj->get('id')); + } + + function update(&$obj) + { + $obj->set('id', $this->get('id')); + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/ModuleInstallForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/ModuleInstallForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ModuleInstallForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,34 @@ +get('dirname'); + } + + function prepare() + { + // + // Set form properties + // + $this->mFormProperties['dirname'] =& new XCube_StringProperty('dirname'); + $this->mFormProperties['force'] =& new XCube_BoolProperty('force'); + } + + function load(&$obj) + { + $this->set('dirname', $obj->get('dirname')); + } + + function update(&$obj) + { + $obj->set('dirname', $this->get('dirname')); + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/ImageFilterForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/ImageFilterForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ImageFilterForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,58 @@ + 'image_id', + IMAGE_SORT_KEY_IMAGE_NAME => 'image_name', + IMAGE_SORT_KEY_IMAGE_NICENAME => 'image_nicename', + IMAGE_SORT_KEY_IMAGE_MIMETYPE => 'image_mimetype', + IMAGE_SORT_KEY_IMAGE_CREATED => 'image_created', + IMAGE_SORT_KEY_IMAGE_DISPLAY => 'image_display', + IMAGE_SORT_KEY_IMAGE_WEIGHT => 'image_weight', + IMAGE_SORT_KEY_IMGCAT_ID => 'imgcat_id' + ); + + function getDefaultSortKey() + { + return IMAGE_SORT_KEY_DEFAULT; + } + + function fetch() + { + parent::fetch(); + + if (isset($_REQUEST['image_display'])) { + $this->mNavi->addExtra('image_display', xoops_getrequest('image_display')); + $this->_mCriteria->add(new Criteria('image_display', xoops_getrequest('image_display'))); + } + + if (isset($_REQUEST['imgcat_id'])) { + $this->mNavi->addExtra('imgcat_id', xoops_getrequest('imgcat_id')); + $this->_mCriteria->add(new Criteria('imgcat_id', xoops_getrequest('imgcat_id'))); + } + + $this->_mCriteria->addSort($this->getSort(), $this->getOrder()); + if (abs($this->mSort) != IMAGE_SORT_KEY_IMAGE_WEIGHT) { + $this->_mCriteria->addSort(IMAGE_SORT_KEY_IMAGE_WEIGHT, $this->getOrder()); + } + } +} + +?> Index: xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminNewForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminNewForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminNewForm.class.php Sat Oct 14 23:55:21 2006 @@ -0,0 +1,52 @@ +mFormProperties['imgcat_storetype'] =& new XCube_StringProperty('imgcat_storetype'); + + // + // Set field properties + // + $this->mFieldProperties['imgcat_storetype'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['imgcat_storetype']->setDependsByArray(array('required','mask')); + $this->mFieldProperties['imgcat_storetype']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMGCAT_STORETYPE); + $this->mFieldProperties['imgcat_storetype']->addMessage('mask', _MD_BASE_ERROR_MASK, _AD_BASE_LANG_IMGCAT_STORETYPE); + $this->mFieldProperties['imgcat_storetype']->addVar('mask', '(file|db)'); + } + + function load(&$obj) + { + parent::load($obj); + $this->set('imgcat_storetype', $obj->get('imgcat_storetype')); + } + + function update(&$obj) + { + parent::update($obj); + $obj->set('imgcat_storetype', $this->get('imgcat_storetype')); + } +} + +?> From minahito @ users.sourceforge.jp Sat Oct 14 23:55:22 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:22 +0900 Subject: [xoops-cvslog 5094] CVS update: xoops2jp/html/modules/legacy/language/english Message-ID: <20061014145522.886E72AC281@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/language/english/global.php diff -u /dev/null xoops2jp/html/modules/legacy/language/english/global.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/language/english/global.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,222 @@ +[pagebreak] (with brackets) in the article."); +define("_IFNOTRELOAD","If the page does not automatically reload, please click here"); +define("_WARNINSTALL2","WARNING: Directory %s exists on your server.
Please remove this directory for security reasons."); +define("_WARNINWRITEABLE","WARNING: File %s is writeable by the server.
Please change the permission of this file for security reasons.
in Unix (444), in Win32 (read-only)"); +define('_WARNPHPENV','WARNING: php.ini parameter "%s" is set to "%s". %s'); +define('_WARNSECURITY','(It may cause a security problem)'); + +//%%%%%% File Name themeuserpost.php %%%%% +define("_PROFILE","Profile"); +define("_POSTEDBY","Posted by"); +define("_VISITWEBSITE","Visit Website"); +define("_SENDPMTO","Send Private Message to %s"); +define("_SENDEMAILTO","Send Email to %s"); +define("_ADD","Add"); +define("_REPLY","Reply"); +define("_DATE","Date"); // Posted date + +//%%%%%% File Name admin_functions.php %%%%% +define("_MAIN","Main"); +define("_MANUAL","Manual"); +define("_INFO","Info"); +define("_CPHOME","Control Panel Home"); +define("_YOURHOME","Home Page"); + +//%%%%%% File Name misc.php (who's-online popup) %%%%% +define("_WHOSONLINE","Who's Online"); +define('_GUESTS', 'Guests'); +define('_MEMBERS', 'Members'); +define("_ONLINEPHRASE","%s user(s) are online"); +define("_ONLINEPHRASEX","%s user(s) are browsing %s"); +define("_CLOSE","Close"); // Close window + +//%%%%%% File Name module.textsanitizer.php %%%%% +define("_QUOTEC","Quote:"); + +//%%%%%% File Name admin.php %%%%% +define("_NOPERM","Sorry, you don't have the permission to access this area."); + +//%%%%% Common Phrases %%%%% +define("_NO","No"); +define("_YES","Yes"); +define("_EDIT","Edit"); +define("_DELETE","Delete"); +define("_VIEW","View"); +define("_SUBMIT","Submit"); +define("_MODULENOEXIST","Selected module does not exist!"); +define("_ALIGN","Align"); +define("_LEFT","Left"); +define("_CENTER","Center"); +define("_RIGHT","Right"); +define("_FORM_ENTER", "Please enter %s"); +// %s represents file name +define("_MUSTWABLE","File %s must be writable by the server!"); +// Module info +define('_PREFERENCES', 'Preferences'); +define("_VERSION", "Version"); +define("_DESCRIPTION", "Description"); +define("_ERRORS", "Errors"); +define("_NONE", "None"); +define('_ON','on'); +define('_READS','reads'); +define('_WELCOMETO','Welcome to %s'); +define('_SEARCH','Search'); +define('_ALL', 'All'); +define('_TITLE', 'Title'); +define('_OPTIONS', 'Options'); +define('_QUOTE', 'Quote'); +define('_LIST', 'List'); +define('_LOGIN','User Login'); +define('_USERNAME','Username: '); +define('_PASSWORD','Password: '); +define("_SELECT","Select"); +define("_IMAGE","Image"); +define("_SEND","Send"); +define("_CANCEL","Cancel"); +define("_ASCENDING","Ascending order"); +define("_DESCENDING","Descending order"); +define('_BACK', 'Back'); +define('_NOTITLE', 'No title'); +define('_RETURN_TOP', 'returns to the top'); + +/* Image manager */ +define('_IMGMANAGER','Image Manager'); +define('_NUMIMAGES', '%s images'); +define('_ADDIMAGE','Add Image File'); +define('_IMAGENAME','Name:'); +define('_IMGMAXSIZE','Max size allowed (bytes):'); +define('_IMGMAXWIDTH','Max width allowed (pixels):'); +define('_IMGMAXHEIGHT','Max height allowed (pixels):'); +define('_IMAGECAT','Category:'); +define('_IMAGEFILE','Image file:'); +define('_IMGWEIGHT','Display order in image manager:'); +define('_IMGDISPLAY','Display this image?'); +define('_IMAGEMIME','MIME type:'); +define('_FAILFETCHIMG', 'Could not get uploaded file %s'); +define('_FAILSAVEIMG', 'Failed storing image %s into the database'); +define('_NOCACHE', 'No Cache'); +define('_CLONE', 'Clone'); + +//%%%%% File Name class/xoopsform/formmatchoption.php %%%%% +define("_STARTSWITH", "Starts with"); +define("_ENDSWITH", "Ends with"); +define("_MATCHES", "Matches"); +define("_CONTAINS", "Contains"); + +//%%%%%% File Name commentform.php %%%%% +define("_REGISTER","Register"); + +//%%%%%% File Name xoopscodes.php %%%%% +define("_SIZE","SIZE"); // font size +define("_FONT","FONT"); // font family +define("_COLOR","COLOR"); // font color +define("_EXAMPLE","SAMPLE"); +define("_ENTERURL","Enter the URL of the link you want to add:"); +define("_ENTERWEBTITLE","Enter the web site title:"); +define("_ENTERIMGURL","Enter the URL of the image you want to add."); +define("_ENTERIMGPOS","Now, enter the position of the image."); +define("_IMGPOSRORL","'R' or 'r' for right, 'L' or 'l' for left, or leave it blank."); +define("_ERRORIMGPOS","ERROR! Enter the position of the image."); +define("_ENTEREMAIL","Enter the email address you want to add."); +define("_ENTERCODE","Enter the codes that you want to add."); +define("_ENTERQUOTE","Enter the text that you want to be quoted."); +define("_ENTERTEXTBOX","Please input text into the textbox."); +define("_ALLOWEDCHAR","Allowed max chars length: "); +define("_CURRCHAR","Current chars length: "); +define("_PLZCOMPLETE","Please complete the subject and message fields."); +define("_MESSAGETOOLONG","Your message is too long."); + +//%%%%% TIME FORMAT SETTINGS %%%%% +define('_SECOND', '1 second'); +define('_SECONDS', '%s seconds'); +define('_MINUTE', '1 minute'); +define('_MINUTES', '%s minutes'); +define('_HOUR', '1 hour'); +define('_HOURS', '%s hours'); +define('_DAY', '1 day'); +define('_DAYS', '%s days'); +define('_WEEK', '1 week'); +define('_MONTH', '1 month'); + +define('_HELP', "Help"); + +define("_DATESTRING","Y/n/j G:i:s"); +define("_MEDIUMDATESTRING","Y/n/j G:i"); +define("_SHORTDATESTRING","Y/n/j"); +/* +The following characters are recognized in the format string: +a - "am" or "pm" +A - "AM" or "PM" +d - day of the month, 2 digits with leading zeros; i.e. "01" to "31" +D - day of the week, textual, 3 letters; i.e. "Fri" +F - month, textual, long; i.e. "January" +h - hour, 12-hour format; i.e. "01" to "12" +H - hour, 24-hour format; i.e. "00" to "23" +g - hour, 12-hour format without leading zeros; i.e. "1" to "12" +G - hour, 24-hour format without leading zeros; i.e. "0" to "23" +i - minutes; i.e. "00" to "59" +j - day of the month without leading zeros; i.e. "1" to "31" +l (lowercase 'L') - day of the week, textual, long; i.e. "Friday" +L - boolean for whether it is a leap year; i.e. "0" or "1" +m - month; i.e. "01" to "12" +n - month without leading zeros; i.e. "1" to "12" +M - month, textual, 3 letters; i.e. "Jan" +s - seconds; i.e. "00" to "59" +S - English ordinal suffix, textual, 2 characters; i.e. "th", "nd" +t - number of days in the given month; i.e. "28" to "31" +T - Timezone setting of this machine; i.e. "MDT" +U - seconds since the epoch +w - day of the week, numeric, i.e. "0" (Sunday) to "6" (Saturday) +Y - year, 4 digits; i.e. "1999" +y - year, 2 digits; i.e. "99" +z - day of the year; i.e. "0" to "365" +Z - timezone offset in seconds (i.e. "-43200" to "43200") +*/ + + +//%%%%% LANGUAGE SPECIFIC SETTINGS %%%%% +if (!defined('_CHARSET')) { + define('_CHARSET', 'ISO-8859-1'); +} + +if (!defined('_LANGCODE')) { + define('_LANGCODE', 'en'); +} + +// change 0 to 1 if this language is a multi-bytes language +define("XOOPS_USE_MULTIBYTES", "0"); +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/language/english/blocks.php diff -u /dev/null xoops2jp/html/modules/legacy/language/english/blocks.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/language/english/blocks.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,36 @@ + Index: xoops2jp/html/modules/legacy/language/english/modinfo.php diff -u /dev/null xoops2jp/html/modules/legacy/language/english/modinfo.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/language/english/modinfo.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,40 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/language/english/index.html diff -u /dev/null xoops2jp/html/modules/legacy/language/english/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/language/english/index.html Sat Oct 14 23:55:22 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/language/english/main.php diff -u /dev/null xoops2jp/html/modules/legacy/language/english/main.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/language/english/main.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,55 @@ + Index: xoops2jp/html/modules/legacy/language/english/admin.php diff -u /dev/null xoops2jp/html/modules/legacy/language/english/admin.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/language/english/admin.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,361 @@ +_%s_?"); +define('_AD_BASE_LANG_MODINSTALL_CONF', "Are you sure you want to install this module?"); +define('_AD_BASE_LANG_MODINSTALL_LIST_ADVICE', "Delete unused module files from the server to maintain security of your site. "); +define('_AD_BASE_LANG_MODINSTALL_LOG', "module install log"); +define('_AD_BASE_LANG_MODINSTALL_SUCCESS', "The module has been successfully installed."); +define('_AD_BASE_LANG_MODLIST', "Module administration"); +define('_AD_BASE_LANG_MODULE_LICENSE', "Module license"); +define('_AD_BASE_LANG_MODUNINSTALL_ADVICE', "Are you sure you want to uninstall this module?"); +define('_AD_BASE_LANG_MODUNINSTALL_CONF', "Confirm module uninstall."); +define('_AD_BASE_LANG_MODUNINSTALL_LOG', "Module uninstall log"); +define('_AD_BASE_LANG_MODUNINSTALL_SUCCESS', "The module has been successfully uninstalled."); +define('_AD_BASE_LANG_MODUPDATE_ADVICE', "Are you sure you want to update _%s_?"); +define('_AD_BASE_LANG_MODUPDATE_CONF', "Confirm module update."); +define('_AD_BASE_LANG_MODUPDATE_LOG', "Module update log"); +define('_AD_BASE_LANG_MODUPDATE_SUCCESS', "The module has been successfully updated."); +define('_AD_BASE_LANG_NAME', "Name"); +define('_AD_BASE_LANG_NO', "No"); +define('_AD_BASE_LANG_NO_ADMINMENU', "No Administration Menu"); +define('_AD_BASE_LANG_NO_AGREE', " I Do Not Agree."); +define('_AD_BASE_LANG_NO_BLOCK', "No block information"); +define('_AD_BASE_LANG_NO_CHANGE', "No change"); +define('_AD_BASE_LANG_NO_CONFIG', "Module preferences have not been configured."); +define('_AD_BASE_LANG_NO_MAINMENU', "Mainmenu settings have not been configured."); +define('_AD_BASE_LANG_NO_SETTING', "No setting"); +define('_AD_BASE_LANG_NO_SQL', "SQL information has not been configured."); +define('_AD_BASE_LANG_NO_SUBMENU', "SubMenu information has not been configured."); +define('_AD_BASE_LANG_NO_TEMPLATE', "Template information has not been configured."); +define('_AD_BASE_LANG_NONE', "None"); +define('_AD_BASE_LANG_NOTIF_SVC', "Notification"); +define('_AD_BASE_LANG_OPTIONS', "Options"); +define('_AD_BASE_LANG_PACKAGE', "Package Data"); +define('_AD_BASE_LANG_RENDER', "Render System"); +define('_AD_BASE_LANG_RES_FOR_COMMENT', "Responses for this comment"); +define('_AD_BASE_LANG_RESULT', "Results"); +define('_AD_BASE_LANG_SEARCH', "Search"); +define('_AD_BASE_LANG_SEARCH_SVC', "Search"); +define('_AD_BASE_LANG_SELECTED', "Selected"); +define('_AD_BASE_LANG_SHOW_FUNC', "Callback show function"); +define('_AD_BASE_LANG_SIDE', "Side"); +define('_AD_BASE_LANG_SIDE_BLOCK_LEFT', "Side block - left"); +define('_AD_BASE_LANG_SIDE_BLOCK_RIGHT', "Side block - right"); +define('_AD_BASE_LANG_SMARTY', "Smarty"); +define('_AD_BASE_LANG_SMILE_URL', "Images"); +define('_AD_BASE_LANG_SMILES_DELETE', "Delete smiley"); +define('_AD_BASE_LANG_SMILES_EDIT', "Edit smiley"); +define('_AD_BASE_LANG_SMILES_NEW', "Add a smiley"); +define('_AD_BASE_LANG_SQL_ENGINE', "SQL engine"); +define('_AD_BASE_LANG_SQL_FILE_NAME', "SQL file name"); +define('_AD_BASE_LANG_SQL_HAS_MAIN', "Use SQL"); +define('_AD_BASE_LANG_SQL_INFO', "SQL information"); +define('_AD_BASE_LANG_SQL_MYSQL', "MySQL"); +define('_AD_BASE_LANG_SUBMENU_NAME', "SubMenu name"); +define('_AD_BASE_LANG_SUBMENU_URL', "SubMenu URL"); +define('_AD_BASE_LANG_TABLE_NAME', "Table name"); +define('_AD_BASE_LANG_TABLE_NUM', "Table Number"); +define('_AD_BASE_LANG_TABLE_PROPERTIES', "Table Properties"); +define('_AD_BASE_LANG_TARGET_GROUPS', "Target groups"); +define('_AD_BASE_LANG_TARGET_MODULES', "Target modules"); +define('_AD_BASE_LANG_TEMPLATE', "Template"); +define('_AD_BASE_LANG_TEMPLATE_DESC', "Template description"); +define('_AD_BASE_LANG_TEMPLATE_ENGINE', "Template engine"); +define('_AD_BASE_LANG_TEMPLATE_FILE', "Template name"); +define('_AD_BASE_LANG_TEMPLATE_HAS_MAIN', "Use template"); +define('_AD_BASE_LANG_TEMPLATE_INFO', "Template information"); +define('_AD_BASE_LANG_TEMPLATE_KEY', "Template Key"); +define('_AD_BASE_LANG_THEME', "Theme"); +define('_AD_BASE_LANG_THEME_ADMIN', "Theme admin"); +define('_AD_BASE_LANG_TITLE', "Title"); +define('_AD_BASE_LANG_TOPPAGE', "Toppage"); +define('_AD_BASE_LANG_UNINSTALL', "Uninstall"); +define('_AD_BASE_LANG_UPDATE', "Update"); +define('_AD_BASE_LANG_VERSION', "Version"); +define('_AD_BASE_LANG_VISIBLE', "Visible"); +define('_AD_BASE_LANG_WEIGHT', "Weight"); +define('_AD_BASE_MESSAGE_BLOCK_HAS_BEEN_UNINSTALLED', "Block {0} has been uninstalled"); +define('_AD_BASE_MESSAGE_BLOCK_INSTALLED', "Block {0} has been installed"); +define('_AD_BASE_MESSAGE_CHILDREN_DELETED_TOGETHER', "Children deleted together"); +define('_AD_BASE_MESSAGE_CONFIRM_DELETE', "Are you sure you want to delete?"); +define('_AD_BASE_MESSAGE_DATABASE_SETUP_FINISHED', "Database table setup finished."); +define('_AD_BASE_MESSAGE_DELETE_MODULEINFO_FROM_DB', "Delete module information from XOOPS database."); +define('_AD_BASE_MESSAGE_DROP_TABLE', "Drop table {0}."); +define('_AD_BASE_MESSAGE_INSERT_CONFIG', "Config {0} added."); +define('_AD_BASE_MESSAGE_INSTALLATION_MODULE_SUCCESSFUL', "Installation of '{0}' module has been successful."); +define('_AD_BASE_MESSAGE_TEMPLATE_INSTALLED', "Template '{0}' has been installed."); +define('_AD_BASE_MESSAGE_UNINSTALLATION_MODULE_SUCCESSFUL', "Uninstallation of '{0}' module has been successful."); +define('_AD_BASE_MESSAGE_UNINSTALLATION_BLOCK_SUCCESSFUL', "Uninstallation of '{0}' block has been successful."); +define('_AD_BASE_MESSAGE_UPDATE_STARTED', "Update started."); +define('_AD_BASE_MESSAGE_UPDATING_MODULE_SUCCESSFUL', "Updating '{0}' module has been successful."); +define('_AD_BASE_TIPS_ADD_CUSTOM_BLOCK', "Install new blocks, and set your site just the way you want it!
If you want to have a block with free content that is not part of a module, simply create a custom block and write your message in it."); +define('_AD_BASE_TIPS_BLOCK_UNINSTALL', "Even if you uninstall a block, the configuration of the block isn't deleted. The block is simply removed from view. Therefore you can re-install the block easily because the installer remembers the last configuration."); +define('_AD_BASE_TIPS_CUSTOM_BLOCK_UNINSTALL', "Even if you uninstall the custom block, the configuration of the block isn't deleted. The block is simply removed from view. You can re-install or delete it from the database from the 'install block' page."); +define('_AD_BASE_TIPS_IMGCAT_STORETYPE', "Please choose either the file or the database storage scheme for your image files. This setting cannot be changed later.
Do keep in mind that if you select the database as the storage destination, image files will be stored as BLOB type data which may not be suitable for backup purposes."); +define('_AD_BASE_TIPS_INSTALL_BLOCK', "You can customize your site by installing your favorite blocks. You can edit each block's options when you install the block."); +define('_AD_BASE_TIPS_THEME_ADMIN', "Choose the look of your site by clicking the 'select' button next to your favourite theme.
Let your users choose their own favourite look and feel for your site. Check the boxes to add a theme to the theme selection block. For more details, read the help."); +define('_MD_AM_ADMINML', "Admin mail address"); +define('_MD_AM_ADMNOTSET', "Admin mail has not been set."); +define('_MD_AM_ALLOWHTML', "Allow HTML tags in user comments?"); +define('_MD_AM_ALLOWIMAGE', "Allow users to display image files in posts?"); +define('_MD_AM_ALLOWREG', "Allow new user registration?"); +define('_MD_AM_ALLOWREGDSC', "Select yes to accept new user registration"); +define('_MD_AM_ALLOWTHEME', "Allow users to select theme?"); +define('_MD_AM_ALWDHTML', "HTML tags allowed in all posts."); +define('_MD_AM_ANONNAME', "Username for anonymous users"); +define('_MD_AM_ANONPOST', "Anonymous user can post"); +define('_MD_AM_BADIPS', "Enter IP addresses that should be banned from the site.
Separate each with a |, case insensitive, regex enabled."); +define('_MD_AM_BADIPSDSC', "^aaa.bbb.ccc will disallow visitors with an IP that starts with aaa.bbb.ccc
aaa.bbb.ccc$ will disallow visitors with an IP that ends with aaa.bbb.ccc
aaa.bbb.ccc will disallow visitors with an IP that contains aaa.bbb.ccc"); +define('_MD_AM_CENSOR', "Word Censoring Options"); +define('_MD_AM_CENSORRPLC', "Censored words will be replaced with:"); +define('_MD_AM_CENSORRPLCDSC', "Censored words will be replaced with the characters entered in this textbox"); +define('_MD_AM_CENSORWRD', "Words to censor"); +define('_MD_AM_CENSORWRDDSC', "Enter words that should be censored in user posts.
Separate each with a |, case insensitive."); +define('_MD_AM_CHNGUTHEME', "Change all users' theme"); +define('_MD_AM_CLOSESITE', "Turn your site off?"); +define('_MD_AM_CLOSESITEDSC', "Select yes to turn your site off so that only users in selected groups have access to the site. "); +define('_MD_AM_CLOSESITEOK', "Select groups that are allowed to access while the site is turned off."); +define('_MD_AM_CLOSESITEOKDSC', "Users in the default webmasters group are always granted access."); +define('_MD_AM_CLOSESITETXT', "Reason for turning off the site"); +define('_MD_AM_CLOSESITETXTDSC', "The text that is presented when the site is closed."); +define('_MD_AM_COMMODE', "Default Comment Display Mode"); +define('_MD_AM_COMORDER', "Default Comments Display Order"); +define('_MD_AM_DEBUGMODE', "Debug mode"); +define('_MD_AM_DEBUGMODE0', "Off"); +define('_MD_AM_DEBUGMODE1', "PHP Debug"); +define('_MD_AM_DEBUGMODE2', "MySQL/Blocks Debug"); +define('_MD_AM_DEBUGMODE3', "Smarty Templates Debug"); +define('_MD_AM_DEBUGMODEDSC', "Several debug options. A running website should have this turned off."); +define('_MD_AM_DEFAULTTZ', "Default timezone"); +define('_MD_AM_DOBADIPS', "Enable IP bans?"); +define('_MD_AM_DOBADIPSDSC', "Users from specified IP addresses will not be able to view your site"); +define('_MD_AM_DOCENSOR', "Enable censoring of unwanted words?"); +define('_MD_AM_DOCENSORDSC', "Words will be censored if this option is enabled. This option may be turned off for enhanced site speed."); +define('_MD_AM_DONTCHNG', "Don't change!"); +define('_MD_AM_DOSEARCH', "Enable global searches?"); +define('_MD_AM_DOSEARCHDSC', "Allow searching for posts/items within your site."); +define('_MD_AM_DTHEME', "Default theme"); +define('_MD_AM_DTPLSET', "Default template set"); +define('_MD_AM_GENERAL', "General Settings"); +define('_MD_AM_IFUCANT', "If you can't change the permissions you can edit the rest of this file by hand."); +define('_MD_AM_INVLDMINPASS', "Invalid value for minimum length of password."); +define('_MD_AM_INVLDSCOOK', "Invalid value for sessioncookie name."); +define('_MD_AM_INVLDSEXP', "Invalid value for session expiration time."); +define('_MD_AM_INVLDUCOOK', "Invalid value for usercookie name."); +define('_MD_AM_IPBAN', "IP Banning"); +define('_MD_AM_LANGUAGE', "Default language"); +define('_MD_AM_LOADINGIMG', "Display loading... image?"); +define('_MD_AM_MAILER', "Mail Setup"); +define('_MD_AM_MAILER_', ""); +define('_MD_AM_MAILER_MAIL', ""); +define('_MD_AM_MAILER_SENDMAIL', ""); +define('_MD_AM_MAILERMETHOD', "Mail delivery method"); +define('_MD_AM_MAILERMETHODDESC', "Method used to deliver mail. Default is \"mail\", use others only if that makes trouble."); +define('_MD_AM_MAILFROM', "FROM address"); +define('_MD_AM_MAILFROMDESC', ""); +define('_MD_AM_MAILFROMNAME', "FROM name"); +define('_MD_AM_MAILFROMNAMEDESC', ""); +define('_MD_AM_MAILFROMUID', "FROM user"); +define('_MD_AM_MAILFROMUIDDESC', "When the system sends a private message, which user should appear to have sent it?"); +define('_MD_AM_METAFOOTER', "Metadata"); +define('_MD_AM_MINSEARCH', "Minimum keyword length"); +define('_MD_AM_MINSEARCHDSC', "Enter the minimum keyword length that users are required to enter to perform search"); +define('_MD_AM_MODCACHE', "Module-wide Cache"); +define('_MD_AM_MODCACHEDSC', "Caches module contents for a specified amount of time to enhance performance. Setting module-wide cache will override module item level cache if any."); +define('_MD_AM_MODCONFIG', "Module Config Options"); +define('_MD_AM_MYIP', "Your IP address"); +define('_MD_AM_MYIPDSC', "This IP will not counted as impression for banners"); +define('_MD_AM_NO', "No"); +define('_MD_AM_NOMODULE', "There is no module that can be cached."); +define('_MD_AM_NONE', "None"); +define('_MD_AM_NOTIFYTO', "Select group to which new user notification mail will be sent"); +define('_MD_AM_PERMADDNG', "Could not add %s permission to %s for group %s"); +define('_MD_AM_PERMADDNGP', "All parent items must be selected."); +define('_MD_AM_PERMADDOK', "Added %s permission to %s for group %s"); +define('_MD_AM_PERMRESETNG', "Could not reset group permission for module %s"); +define('_MD_AM_PREFMAIN', "Preferences Main"); +define('_MD_AM_REMEMBER', "Remember to chmod 666 this file in order to let the system write to it properly."); +define('_MD_AM_SEARCH', "Search Options"); +define('_MD_AM_SENDMAILPATH', "Path to sendmail"); +define('_MD_AM_SENDMAILPATHDESC', "Path to the sendmail program (or substitute) on the webserver."); +define('_MD_AM_SERVERTZ', "Server timezone"); +define('_MD_AM_SESSEXPIRE', "Session expiration"); +define('_MD_AM_SESSEXPIREDSC', "Maximum duration of session idle time in minutes (Valid only when 'use custom session' is enabled. Works only when you are using PHP4.2.0 or later.)"); +define('_MD_AM_SESSNAME', "Session name"); +define('_MD_AM_SESSNAMEDSC', "The name of session (Valid only when 'use custom session' is enabled)"); +define('_MD_AM_SITECACHE', "Site-wide Cache"); +define('_MD_AM_SITECACHEDSC', "Caches whole contents of the site for a specified amount of time to enhance performance. Setting site-wide cache will override module-level cache, block-level cache, and module item level cache if any."); +define('_MD_AM_SITENAME', "Site name"); +define('_MD_AM_SITEPREF', "Site Preferences"); +define('_MD_AM_SLOGAN', "Slogan for your site"); +define('_MD_AM_SMTPHOST', "SMTP host(s)"); +define('_MD_AM_SMTPHOSTDESC', "List of SMTP servers to try to connect to."); +define('_MD_AM_SMTPPASS', "SMTPAuth password"); +define('_MD_AM_SMTPPASSDESC', "Password to connect to an SMTP host with SMTPAuth."); +define('_MD_AM_SMTPUSER', "SMTPAuth username"); +define('_MD_AM_SMTPUSERDESC', "Username to connect to an SMTP host with SMTPAuth."); +define('_MD_AM_SSLLINK', "URL where SSL login page is located"); +define('_MD_AM_SSLPOST', "SSL Post variable name"); +define('_MD_AM_SSLPOSTDSC', "The name of variable used to transfer session value via POST. If you are unsure, set any name that is hard to guess."); +define('_MD_AM_STARTPAGE', "Module for your start page"); +define('_MD_AM_THEMEFILE', "Update module template .html files from themes/your theme/templates directory?"); +define('_MD_AM_THEMEFILEDSC', "If this option is enabled, module template .html files will be updated automatically if there are newer files under the themes/your theme/templates directory for the current theme. This should be turned off once the site goes public."); +define('_MD_AM_THEMEOK', "Selectable themes"); +define('_MD_AM_THEMEOKDSC', "Choose themes that users can select as their default theme"); +define('_MD_AM_THEMESET', "Theme Set"); +define('_MD_AM_USEGZIP', "Use gzip compression?"); +define('_MD_AM_USEMYSESS', "Use custom session"); +define('_MD_AM_USEMYSESSDSC', "Select yes to customise session related values."); +define('_MD_AM_USERSETTINGS', "User Settings"); +define('_MD_AM_USESSL', "Use SSL for login?"); +define('_MD_AM_YES', "Yes"); + +?> From minahito @ users.sourceforge.jp Sat Oct 14 23:55:22 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:22 +0900 Subject: [xoops-cvslog 5095] CVS update: xoops2jp/html/modules/legacy/admin/.xml Message-ID: <20061014145522.D65282AC27F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/.xml/smiles_delete.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/smiles_delete.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/smiles_delete.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,12 @@ + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/admin/.xml/newblocks_edit.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/newblocks_edit.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/newblocks_edit.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,125 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/admin/.xml/block_uninstall.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/block_uninstall.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/block_uninstall.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,12 @@ + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/admin/.xml/xoopscomments_edit.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/xoopscomments_edit.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/xoopscomments_edit.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/admin/.xml/imagecategory_edit.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/imagecategory_edit.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/imagecategory_edit.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,54 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/admin/.xml/blockinstall_edit.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/blockinstall_edit.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/blockinstall_edit.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/admin/.xml/xoopscomments_delete.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/xoopscomments_delete.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/xoopscomments_delete.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,12 @@ + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/admin/.xml/imagecategory_delete.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/imagecategory_delete.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/imagecategory_delete.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,12 @@ + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/admin/.xml/index.html diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/index.html Sat Oct 14 23:55:22 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/admin/.xml/image_delete.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/image_delete.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/image_delete.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,12 @@ + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/admin/.xml/image_edit.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/image_edit.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/image_edit.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/admin/.xml/module_uninstall.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/module_uninstall.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/module_uninstall.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,7 @@ + + + + + + + Index: xoops2jp/html/modules/legacy/admin/.xml/module_install.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/module_install.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/module_install.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,7 @@ + + + + + + + Index: xoops2jp/html/modules/legacy/admin/.xml/block_list.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/block_list.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/block_list.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/admin/.xml/block_edit.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/block_edit.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/block_edit.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/admin/.xml/module_update.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/module_update.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/module_update.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,7 @@ + + + + + + + Index: xoops2jp/html/modules/legacy/admin/.xml/newblocks_delete.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/newblocks_delete.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/newblocks_delete.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,12 @@ + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/admin/.xml/customblock_edit.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/customblock_edit.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/customblock_edit.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/admin/.xml/smiles_edit.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/smiles_edit.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/smiles_edit.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,34 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/admin/.xml/install_wizard.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/install_wizard.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/install_wizard.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,13 @@ + + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/admin/.xml/imagecategory_new.xml diff -u /dev/null xoops2jp/html/modules/legacy/admin/.xml/imagecategory_new.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/imagecategory_new.xml Sat Oct 14 23:55:22 2006 @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + From minahito @ users.sourceforge.jp Sat Oct 14 23:55:23 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:23 +0900 Subject: [xoops-cvslog 5096] CVS update: xoops2jp/html/modules/legacy/include Message-ID: <20061014145523.0FA812AC281@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/include/xoops2_system_constants.inc.php diff -u /dev/null xoops2jp/html/modules/legacy/include/xoops2_system_constants.inc.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/include/xoops2_system_constants.inc.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,29 @@ + Index: xoops2jp/html/modules/legacy/include/groupperm.php diff -u /dev/null xoops2jp/html/modules/legacy/include/groupperm.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/include/groupperm.php Sat Oct 14 23:55:22 2006 @@ -0,0 +1,84 @@ +mLanguageManager->loadModuleAdminMessageCatalog('base'); + +// we dont want system module permissions to be changed here +if ($modid <= 1 || !is_object($xoopsUser) || !$xoopsUser->isAdmin($modid)) { + redirect_header(XOOPS_URL.'/index.php', 1, _NOPERM); + exit(); +} +$module_handler =& xoops_gethandler('module'); +$module =& $module_handler->get($modid); +if (!is_object($module) || !$module->getVar('isactive')) { + redirect_header(XOOPS_URL.'/admin.php', 1, _MODULENOEXIST); + exit(); +} +$member_handler =& xoops_gethandler('member'); +$group_list =& $member_handler->getGroupList(); +if (is_array($_POST['perms']) && !empty($_POST['perms'])) { + $gperm_handler = xoops_gethandler('groupperm'); + foreach ($_POST['perms'] as $perm_name => $perm_data) { + if (false != $gperm_handler->deleteByModule($modid, $perm_name)) { + if (is_array($perm_data['groups'])) { + foreach ($perm_data['groups'] as $group_id => $item_ids) { + foreach ($item_ids as $item_id => $selected) { + if ($selected == 1) { + // make sure that all parent ids are selected as well + if ($perm_data['parents'][$item_id] != '') { + $parent_ids = explode(':', $perm_data['parents'][$item_id]); + foreach ($parent_ids as $pid) { + if ($pid != 0 && !in_array($pid, array_keys($item_ids))) { + // one of the parent items were not selected, so skip this item + $msg[] = sprintf(_MD_AM_PERMADDNG, ''.$perm_name.'', ''.$perm_data['itemname'][$item_id].'', ''.$group_list[$group_id].'').' ('._MD_AM_PERMADDNGP.')'; + continue 2; + } + } + } + $gperm =& $gperm_handler->create(); + $gperm->setVar('gperm_groupid', $group_id); + $gperm->setVar('gperm_name', $perm_name); + $gperm->setVar('gperm_modid', $modid); + $gperm->setVar('gperm_itemid', $item_id); + if (!$gperm_handler->insert($gperm)) { + $msg[] = sprintf(_MD_AM_PERMADDNG, ''.$perm_name.'', ''.$perm_data['itemname'][$item_id].'', ''.$group_list[$group_id].''); + } else { + $msg[] = sprintf(_MD_AM_PERMADDOK, ''.$perm_name.'', ''.$perm_data['itemname'][$item_id].'', ''.$group_list[$group_id].''); + } + unset($gperm); + } + } + } + } + } else { + $msg[] = sprintf(_MD_AM_PERMRESETNG, $module->getVar('name').'('.$perm_name.')'); + } + } +} + +$backlink = XOOPS_URL.'/admin.php'; +if ($module->getVar('hasadmin')) { + $adminindex = isset($_POST['redirect_url']) ? $_POST['redirect_url'] : $module->getInfo('adminindex'); + if ($adminindex) { + $backlink = XOOPS_URL.'/modules/'.$module->getVar('dirname').'/'.$adminindex; + } +} + +$msg[] = '

'._BACK.''; +xoops_cp_header(); +xoops_result($msg); +xoops_cp_footer(); +?> \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 14 23:55:23 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:23 +0900 Subject: [xoops-cvslog 5097] CVS update: xoops2jp/html/modules/legacy/templates/blocks Message-ID: <20061014145523.4877E2AC27F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/templates/blocks/legacy_block_mainmenu.html diff -u /dev/null xoops2jp/html/modules/legacy/templates/blocks/legacy_block_mainmenu.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/templates/blocks/legacy_block_mainmenu.html Sat Oct 14 23:55:23 2006 @@ -0,0 +1,13 @@ + + + + +
Index: xoops2jp/html/modules/legacy/templates/blocks/legacy_block_waiting.html diff -u /dev/null xoops2jp/html/modules/legacy/templates/blocks/legacy_block_waiting.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/templates/blocks/legacy_block_waiting.html Sat Oct 14 23:55:23 2006 @@ -0,0 +1,5 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/templates/blocks/legacy_block_comments.html diff -u /dev/null xoops2jp/html/modules/legacy/templates/blocks/legacy_block_comments.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/templates/blocks/legacy_block_comments.html Sat Oct 14 23:55:23 2006 @@ -0,0 +1,11 @@ + +<{foreach item=comment from=$block.comments}> + "> + + + + + + +<{/foreach}> +
<{$comment.title}><{$comment.module}><{$comment.poster}><{$comment.time}>
Index: xoops2jp/html/modules/legacy/templates/blocks/legacy_block_siteinfo.html diff -u /dev/null xoops2jp/html/modules/legacy/templates/blocks/legacy_block_siteinfo.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/templates/blocks/legacy_block_siteinfo.html Sat Oct 14 23:55:23 2006 @@ -0,0 +1,27 @@ + +<{if $block.showgroups == true}> +<{foreach item=group from=$block.groups}> + + + +<{foreach item=user from=$group.users}> + + + + +<{/foreach}> +<{/foreach}> +<{/if}> +
<{$group.name}>
+
+ <{$user.name}> +
+ <{$user.msglink}> +
+
+
+
+<{if $block.recoomendtime != 0}> + <{$smarty.const._MB_BASE_RECO}> +<{/if}> +
Index: xoops2jp/html/modules/legacy/templates/blocks/legacy_block_themes.html diff -u /dev/null xoops2jp/html/modules/legacy/templates/blocks/legacy_block_themes.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/templates/blocks/legacy_block_themes.html Sat Oct 14 23:55:23 2006 @@ -0,0 +1,18 @@ +
+
+<{if $block.mode==1}> + screenshot
+ +<{/if}> +<{foreach item=theme_option from=$block.theme_options}> + +<{/foreach}> + +<{if $block.mode==1}> + +<{/if}> +
(<{""|cat:$block.count|cat:""|string_format:$smarty.const._MB_BASE_LANG_NUMTHEME}>)
+
+
Index: xoops2jp/html/modules/legacy/templates/blocks/legacy_block_usermenu.html diff -u /dev/null xoops2jp/html/modules/legacy/templates/blocks/legacy_block_usermenu.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/templates/blocks/legacy_block_usermenu.html Sat Oct 14 23:55:23 2006 @@ -0,0 +1,20 @@ + + + + +
+ <{$smarty.const._MB_BASE_VACNT}> + <{$smarty.const._MB_BASE_EACNT}> + <{$smarty.const._MB_BASE_NOTIF}> + <{$smarty.const._MB_BASE_LOUT}> + <{if $block.flagShowInbox}> + <{if $block.new_messages > 0}> + <{$smarty.const._MB_BASE_INBOX}> (<{$block.new_messages}>) + <{else}> + <{$smarty.const._MB_BASE_INBOX}> + <{/if}> + <{/if}> + <{if $block.show_adminlink}> + <{$smarty.const._MB_BASE_ADMENU}> + <{/if}> +
Index: xoops2jp/html/modules/legacy/templates/blocks/index.html diff -u /dev/null xoops2jp/html/modules/legacy/templates/blocks/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/templates/blocks/index.html Sat Oct 14 23:55:23 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/templates/blocks/legacy_block_notification.html diff -u /dev/null xoops2jp/html/modules/legacy/templates/blocks/legacy_block_notification.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/templates/blocks/legacy_block_notification.html Sat Oct 14 23:55:23 2006 @@ -0,0 +1,31 @@ +
+ +<{foreach item=category from=$block.categories}> +<{foreach name=inner item=event from=$category.events}> +<{if $smarty.foreach.inner.first}> + + + +<{/if}> + + + + +<{/foreach}> +<{/foreach}> + + + +
+ <{$category.title}> +
+ <{counter assign=index}> + + checked="checked"<{/if}> /> + + <{$event.caption}> +
+ + +
+
Index: xoops2jp/html/modules/legacy/templates/blocks/legacy_block_search.html diff -u /dev/null xoops2jp/html/modules/legacy/templates/blocks/legacy_block_search.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/templates/blocks/legacy_block_search.html Sat Oct 14 23:55:23 2006 @@ -0,0 +1,6 @@ +
+ <{xoops_input type=text name=query size=14 }> + <{xoops_input type=hidden name=action value=results }>
+ <{xoops_input type=submit name=submit value=$smarty.const._MB_BASE_SEARCH }> +
+<{$smarty.const._MB_BASE_ADVS}> \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 14 23:55:23 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:23 +0900 Subject: [xoops-cvslog 5098] CVS update: xoops2jp/html/modules/legacy/images Message-ID: <20061014145523.745BA2AC281@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/images/index.html diff -u /dev/null xoops2jp/html/modules/legacy/images/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/images/index.html Sat Oct 14 23:55:23 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/images/base.gif From minahito @ users.sourceforge.jp Sat Oct 14 23:55:23 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:23 +0900 Subject: [xoops-cvslog 5099] CVS update: xoops2jp/html/modules/legacy/admin/class Message-ID: <20061014145523.AC6502AC27F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/class/ModuleInstaller.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/class/ModuleInstaller.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/admin/class/ModuleInstaller.class.php Sat Oct 14 23:55:23 2006 @@ -0,0 +1,239 @@ +mProcessScript->register('Legacy_ModuleInstaller.ProcessScript'); + $this->mProcessScript->add('Legacy_ModuleInstaller::_processScript'); + + $this->mInstallTable->register('Legacy_ModuleInstaller.InstallTable'); + $this->mInstallTable->add('Legacy_ModuleUtils::installTable'); + + $this->mInstallTemplate->register('Legacy_ModuleInstaller.InstallTemplate'); + $this->mInstallTemplate->add('Legacy_ModuleInstaller::_installTemplate'); + } + + /** + * Load xoops module object that isn't installed and return it. + * @static + * @access public + * @param $dirname string + * @return XoopsModule + */ + function &loadModuleObject($dirname) + { + $ret = null; + + $moduleHandler =& xoops_gethandler('module'); + $module =& $moduleHandler->getByDirname($dirname); + + if (is_object($module)) + return $ret; + + $module =& $moduleHandler->create(); + $module->setVar('weight', 1); + $module->loadInfoAsVar($this->mDirname); + + if ($module->get('dirname') == null) { + return $ret; + } + + if ($module->get('dirname') == 'system') { + $module->setVar('mid', 1); + } + + if (isset($module->modinfo['installer']) && isset($module->modinfo['installer']['licence']) ) { + $this->mAgree = true; + } + + return $module; + } + + function _installModule() + { + if (parent::_installModule()) { + $gpermHandler =& xoops_gethandler('groupperm'); + + // + // Add a permission which administrators can manage. + // + if ($this->mModule->getInfo('hasAdmin')) { + $adminPerm =& $this->_createPermission(XOOPS_GROUP_ADMIN); + $adminPerm->setVar('gperm_name', 'module_admin'); + + if (!$gpermHandler->insert($adminPerm)) { + $log->addError(_AD_BASE_ERROR_COULD_NOT_SET_ADMIN_PERMISSION); + } + } + + // + // Add a permission which administrators can manage. (Special for Legacy System Module) + // + if ($this->mModule->getVar('dirname') == 'system') { + $root =& XCube_Root::getSingleton(); + $root->mLanguageManager->loadModuleAdminMessageCatalog('system'); + + require_once XOOPS_ROOT_PATH . "/modules/system/constants.php"; + + $fileHandler = opendir(XOOPS_ROOT_PATH . "/modules/system/admin"); + while ($file = readdir($fileHandler)) { + $infoFile = XOOPS_ROOT_PATH . "/modules/system/admin/" . $file . "/xoops_version.php"; + if (file_exists($infoFile)) { + require_once $infoFile; + if (!empty($modversion['category'])) { + $sysAdminPerm =& $this->_createPermission(XOOPS_GROUP_ADMIN); + $adminPerm->setVar('gperm_itemid', $modversion['category']); + $adminPerm->setVar('gperm_name', 'system_admin'); + if (!$gpermHandler->insert($adminPerm)) { + $log->addError(_AD_BASE_ERROR_COULD_NOT_SET_SYSTEM_PERMISSION); + } + unset($sysAdminPerm); + } + unset($modversion); + } + } + } + + if ($this->mModule->getInfo('hasMain')) { + $read_any = $this->mModule->getInfo('read_any'); + if ($read_any) { + $memberHandler =& xoops_gethandler('member'); + $groupObjects =& $memberHandler->getGroups(); + // + // Add a permission all group members and guest can read. + // + foreach($groupObjects as $group) { + $readPerm =& $this->_createPermission($group->getVar('groupid')); + $readPerm->setVar('gperm_name', 'module_read'); + + if (!$gpermHandler->insert($readPerm)) { + $log->addError(_AD_BASE_ERROR_COULD_NOT_SET_READ_PERMISSION); + } + } + } else { + // + // Add a permission which administrators can read. + // + $root =& XCube_Root::getSingleton(); + $groups = $root->mContext->mXoopsUser->getGroups(); + foreach($groups as $mygroup) { + $readPerm =& $this->_createPermission($mygroup); + $readPerm->setVar('gperm_name', 'module_read'); + + if (!$gpermHandler->insert($readPerm)) { + $log->addError(_AD_BASE_ERROR_COULD_NOT_SET_READ_PERMISSION); + } + } + } + } + } + } + + /** + * Create a permission object which has been initialized for admin. + * For flexibility, creation only and not save it. + * @access private + * @param $group + */ + function &_createPermission($group) + { + $gpermHandler =& xoops_gethandler('groupperm'); + + $perm =& $gpermHandler->create(); + + $perm->setVar('gperm_groupid', $group); + $perm->setVar('gperm_itemid', $this->mModule->getVar('mid')); + $perm->setVar('gperm_modid', 1); + + return $perm; + } + + /** + * @static + */ + function _installTemplate(&$module, &$log) + { + $templates = $module->getInfo('templates'); + if ($templates != false) { + foreach ($templates as $template) { + Legacy_ModuleUtils::installTemplate($module, $template, $log); + } + } + } + + function _installBlock() + { + $definedBlocks = $this->mModule->getInfo('blocks'); + if($definedBlocks == false) + return true; + + $blockHandler =& xoops_gethandler('block'); + + $func_num=0; + foreach ($definedBlocks as $block) { + $func_num++; + $newBlock =& Legacy_ModuleUtils::createBlockByInfo($this->mModule, $block); + $newBlock->setVar('func_num', $func_num); + + Legacy_ModuleUtils::installBlock($this->mModule, $newBlock, $block, $this->mLog); + } + } + + function _installNotification() + { + } + + function _installPreference() + { + Legacy_ModuleUtils::insertAllConfigs($this->mModule, $this->mLog); + } + + function _processScript(&$module, &$log) + { + $installScript = trim($module->getInfo('onInstall')); + if ($installScript != false) { + require_once XOOPS_MODULE_PATH . "/" . $module->getVar('dirname') . "/" . $installScript; + $funcName = 'xoops_module_install_' . $module->getVar('dirname'); + if (function_exists($funcName)) { + if (!call_user_func($funcName, $module)) { + $log->addError(XCUbe_Utils::formatMessage(_AD_BASE_ERROR_FAILED_TO_EXECUTE_CALLBACK, $funcName)); + } + } + } + } + + function _processReport() + { + if (!$this->mLog->hasError()) { + $this->mLog->add(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_INSTALLATION_MODULE_SUCCESSFUL, $this->mModule->get('name'))); + } + else { + if (is_object($this->mModule)) { + $this->mLog->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_INSTALLATION_MODULE_FAILURE, $this->mModule->get('name'))); + } + else { + $this->mLog->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_INSTALLATION_MODULE_FAILURE, $this->mDirname)); + } + } + } + + function hasAgree() + { + return $this->mAgree; + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/admin/class/AbstractModuleInstaller.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/class/AbstractModuleInstaller.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/admin/class/AbstractModuleInstaller.class.php Sat Oct 14 23:55:23 2006 @@ -0,0 +1,205 @@ +mDirname = $dirname; + $this->mLog =& new Legacy_ModuleUtilsSimpleLog(); + + // + // Load message catalog for the required module installer of 'common' + // process. + // + $root =& XCube_Root::getSingleton(); + if (is_object($root->mLanguageManager)) { + $root->mLanguageManager->loadModuleAdminMessageCatalog('base'); + } + + $this->mProcessScript =& new XCube_Delegate(); + $this->mInstallTable =& new XCube_Delegate(); + $this->mInstallTemplate =& new XCube_Delegate(); + } + + /** + * Start callback to required member functions with module install + * framework. + * + * @return bool + */ + function execute() + { + $this->mModule =& $this->loadModuleObject($this->mDirname); + + if (!is_object($this->mModule)) { + $this->_processReport(); + return false; + } + + $this->mInstallTable->call(new XCube_Ref($this->mModule), new XCube_Ref($this->mLog)); + if (!$this->mForceMode && $this->mLog->hasError()) { + $this->_processReport(); + return false; + } + + $this->_installModule(); + if (!$this->mForceMode && $this->mLog->hasError()) { + $this->_processReport(); + return false; + } + + $this->mInstallTemplate->call(new XCube_Ref($this->mModule), new XCube_Ref($this->mLog)); + if (!$this->mForceMode && $this->mLog->hasError()) { + $this->_processReport(); + return false; + } + + $this->_installBlock(); + if (!$this->mForceMode && $this->mLog->hasError()) { + $this->_processReport(); + return false; + } + + $this->_installNotification(); + if (!$this->mForceMode && $this->mLog->hasError()) { + $this->_processReport(); + return false; + } + + $this->_installPreference(); + if (!$this->mForceMode && $this->mLog->hasError()) { + $this->_processReport(); + return false; + } + + $this->mProcessScript->call(new XCube_Ref($this->mModule), new XCube_Ref($this->mLog)); + + $this->_processReport(); + + return true; + } + + /** + * Load xoops module object and return it. + * @static + * @access public + * @param $dirname string + * @return XoopsModule + */ + function &loadModuleObject($dirname) + { + } + + function _installModule() + { + $moduleHandler =& xoops_gethandler('module'); + if (!$moduleHandler->insert($this->mModule)) { + $this->mLog->addError("*Could not install module information*"); + return false; + } + + return true; + } + + /** + * Install or uninstall blocks and their templates, this function is called by own execute(). + */ + function _installBlock() + { + } + + /** + * Install or uninstall notifications, this member function is called by + * own execute(). + * + * @access protected + */ + function _installNotification() + { + } + + /** + * Install or uninstall blocks and their preference, this function is called by own execute(). + */ + function _installPreference() + { + } + + /** + * If set true, this class may never stop for error. + */ + function setForceMode($flag) + { + $this->mForceMode = $flag; + } + + /** + * This member function is called back at the last part of execute(). + * Report the conclusion to the log. + */ + function _processReport() + { + } + + /** + * Return log instance. + */ + function &getLog() + { + return $this->mLog; + } + + function hasAgree() + { + return false; + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/admin/class/ModuleUpdater.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/class/ModuleUpdater.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/admin/class/ModuleUpdater.class.php Sat Oct 14 23:55:23 2006 @@ -0,0 +1,310 @@ +mProcessScript->register('Legacy_ModuleUpdater.ProcessScript'); + $this->mProcessScript->add(array(&$this, '_processScript')); + + $this->mInstallTable->register('Legacy_ModuleUpdater.InstallTable'); + + $this->mInstallTemplate->register('Legacy_ModuleUpdater.InstallTemplate'); + $this->mInstallTemplate->add('Legacy_ModuleUpdater::_uninstallTemplate'); + } + + /** + * @return bool + */ + function execute() + { + $this->mLog->addReport(_AD_BASE_MESSAGE_UPDATE_STARTED); + + parent::execute(); + } + + /** + * Load xoops module object installed and return it. + * @static + * @access public + * @param $dirname string + * @return XoopsModule + */ + function &loadModuleObject($dirname) + { + $ret = null; + + $moduleHandler =& xoops_gethandler('module'); + $module =& $moduleHandler->getByDirname($dirname); + + if (!is_object($module)) + return $ret; + + $this->mPreVersion = $module->getVar('version'); + $name = $module->getVar('name','n'); + $module->loadInfoAsVar($dirname); + $module->setVar('name', $name, true); + return $module; + } + + /** + * @static + */ + function _uninstallTemplate(&$module, &$log) + { + $tplHandler =& xoops_gethandler('tplfile'); + + // + // The following processing depends on the structure of Legacy_RenderSystem. + // + $tplHandler =& xoops_gethandler('tplfile'); + $delTemplates =& $tplHandler->find('default', 'module', $module->getVar('mid')); + if(is_array($delTemplates) && count($delTemplates) > 0) { + // + // clear cache + // + $xoopsTpl=new XoopsTpl(); + $xoopsTpl->clear_cache(null, "mod_" . $module->getVar('dirname')); + + foreach ($delTemplates as $tpl) { + if (!$tplHandler->delete($tpl)) { + $log->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_TEMPLATE_UNINSTALLED, $tpl->getVar('tpl_file'))); + } + } + } + + // + // install Template All + // + $templates = $module->getInfo('templates'); + if ($templates != false) { + foreach ($templates as $template) { + Legacy_ModuleUtils::installTemplate($module, $template, $log); + } + } + } + + /** + * @return bool + */ + function _installBlock() + { + // XoopsBlock[] + $installBlocks = array(); + + // XoopsBlock[] + $unInstallBlocks = array(); + + $definedBlocks = $this->mModule->getInfo('blocks'); + if($definedBlocks == false) + return false; + + $blockHandler =& xoops_gethandler('block'); + + $func_num=0; + $showfuncs = array(); + $funcfiles = array(); + for ($i=1; $i<= count($definedBlocks); $i++) { + $block =& $definedBlocks[$i]; + $func_num = $i; + $showfuncs[] = isset($block['class']) ? ('cl::' . $block['class']) : $block['show_func']; + $funcfiles[]=$block['file']; + $newBlock =& Legacy_ModuleUtils::createBlockByInfo($this->mModule, $block); + // + // Get a installed block by mid and name. + // + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('mid', $this->mModule->getVar('mid'))); + $criteria->add(new Criteria('func_num', $func_num)); + $criteria->add(new Criteria('show_func', isset($block['class']) ? ('cl::' . $block['class']) : $block['show_func'])); + $criteria->add(new Criteria('func_file', $block['file'])); + $installedBlocks =& $blockHandler->getObjectsDirectly($criteria); + // + // If a installed block is not found, push it to new install block list. + // + if (count($installedBlocks) == 0) { + $newBlock->setVar('func_num', $func_num); + $installBlocks[] = array($newBlock, $block); + unset($newBlock); + + continue; + } + + $changedFlag = false; + + $oldBlock =& $installedBlocks[0]; + $newBlock =& Legacy_ModuleUtils::mergeBlockObject($oldBlock, $newBlock, $changedFlag); + + if ($changedFlag) { + $installBlocks[] = array($newBlock, $block); + } + else { + if (!Legacy_ModuleUtils::installBlockTemplate($this->mModule, $oldBlock)) { + $this->mLog->addError("ERROR : Could not update block template ".$oldBlock->getVar('name')); + } + } + + unset($newBlock); + unset($oldBlock); + } + $criteria = new CriteriaCompo(); + $criteria->add(new Criteria('mid', $this->mModule->getVar('mid'))); + $installedBlocks =& $blockHandler->getObjectsDirectly($criteria); + foreach ($installedBlocks as $blockObj) { + if (!in_array($blockObj->getVar('show_func'), $showfuncs) || !in_array($blockObj->getVar('func_file'), $funcfiles)) { + $unInstallBlocks[] =& $blockObj; + unset($blockObj); + } + } + + foreach ($installBlocks as $block) { + Legacy_ModuleUtils::installBlock($this->mModule, $block[0], $block[1], $this->mLog); + } + + foreach ($unInstallBlocks as $block) { + Legacy_ModuleUtils::unInstallBlock($block, $this->mLog); + } + + } + + function _installPreference() + { + $configHandler =& xoops_gethandler('config'); + + // + // At the start, load config items of this time. + // + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('conf_modid', $this->mModule->get('mid'))); + $criteria->add(new Criteria('conf_catid', 0)); + + $activeConfigArr =& $configHandler->getConfigs($criteria); + + // + // Next, load config item from xoops_version.php. + // + $newConfigArr = array(); + $t_configInfoArr = Legacy_ModuleUtils::getConfigInfosFromManifesto($this->mModule); + + $count = 0; + if (is_array($t_configInfoArr)) { + foreach ($t_configInfoArr as $t_configInfo) { + $config =& $configHandler->createConfig(); + $config->loadFromConfigInfo($this->mModule->get('mid'), $t_configInfo, $count++); + $newConfigArr[] =& $config; + unset($config); + } + } + + // + // If some active configs were deleted, remove them form database. + // + foreach (array_keys($activeConfigArr) as $t_actkey) { + $findFlag = false; + foreach (array_keys($newConfigArr) as $t_newkey) { + + if ($activeConfigArr[$t_actkey]->get('conf_name') == $newConfigArr[$t_newkey]->get('conf_name')) { + $findFlag = true; + if (!$activeConfigArr[$t_actkey]->isEqual($newConfigArr[$t_newkey])) { + // + // Update object + // + $activeConfigArr[$t_actkey]->set('conf_title', $newConfigArr[$t_newkey]->get('conf_title')); + $activeConfigArr[$t_actkey]->set('conf_value', $newConfigArr[$t_newkey]->get('conf_value')); + $activeConfigArr[$t_actkey]->set('conf_desc', $newConfigArr[$t_newkey]->get('conf_desc')); + $activeConfigArr[$t_actkey]->set('conf_formtype', $newConfigArr[$t_newkey]->get('conf_formtype')); + $activeConfigArr[$t_actkey]->set('conf_valuetype', $newConfigArr[$t_newkey]->get('conf_valuetype')); + + // + // Delete config options. + // + $t_optionArr =& $activeConfigArr[$t_actkey]->getOptionItems(); + foreach (array_keys($t_optionArr) as $t_optionKey) { + $configHandler->_oHandler->delete($t_optionArr[$t_optionKey]); //< Exception!! + } + + $activeConfigArr[$t_actkey]->setConfOptions($newConfigArr[$t_newkey]->getConfOptions()); + + $configHandler->insertConfig($activeConfigArr[$t_actkey]); //< FIXME need log. + } + } + } + + if (!$findFlag) { + $configHandler->deleteConfig($activeConfigArr[$t_actkey]); + unset($activeConfigArr[$t_actkey]); + } + } + + // + // If some new configs were registered, insert them into database. + // + $maxOrder = 0; + foreach (array_keys($activeConfigArr) as $t_actkey) { + if ($activeConfigArr[$t_actkey]->get('conf_order') > $maxOrder) { + $maxOrder = $activeConfigArr[$t_actkey]->get('conf_order'); + } + } + + $order = $maxOrder + 1; + + foreach (array_keys($newConfigArr) as $t_newkey) { + $newFlag = true; + foreach (array_keys($activeConfigArr) as $t_actkey) { + if ($newConfigArr[$t_newkey]->isEqual($activeConfigArr[$t_actkey])) { + $newFlag = false; + break; + } + } + + if ($newFlag) { + $newConfigArr[$t_newkey]->set('conf_order', $order); + if ($configHandler->insertConfig($newConfigArr[$t_newkey])) { + $this->mLog->addReport(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_INSERT_CONFIG, $newConfigArr[$t_newkey]->get('conf_name'))); + } + else { + $this->mLog->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_COULD_NOT_INSERT_CONFIG, $newConfigArr[$t_newkey]->get('conf_name'))); + } + } + } + } + + function _processScript(&$module, &$log) + { + $installScript = trim($module->getInfo('onUpdate')); + if ($installScript != false) { + require_once XOOPS_MODULE_PATH . "/" . $module->getVar('dirname') . "/" . $installScript; + $funcName = 'xoops_module_update_' . $module->getVar('dirname'); + if (function_exists($funcName)) { + if (!call_user_func($funcName, $module, $this->mPreVersion)) { + $log->addError("Failed to execute " . $funcName); + } + } + } + } + + function _processReport() + { + if (!$this->mLog->hasError()) { + $this->mLog->add(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_UPDATING_MODULE_SUCCESSFUL, $this->mModule->get('name'))); + } + else { + if (is_object($this->mModule)) { + $this->mLog->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_UPDATING_MODULE_FAILURE, $this->mModule->get('name'))); + } + else { + $this->mLog->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_UPDATING_MODULE_FAILURE, $this->mDirname)); + } + } + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/admin/class/Legacy_SQLScanner.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/class/Legacy_SQLScanner.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/admin/class/Legacy_SQLScanner.class.php Sat Oct 14 23:55:23 2006 @@ -0,0 +1,79 @@ +mDB_PREFIX = $prefix; + } + + /** + * Override. + */ + function &getOperations() + { + $t_lines = array(); + $t_tokens = array(); + $depth = 0; + + foreach (array_keys($this->mTokens) as $key) { + if ($this->mTokens[$key]->mType == EASYLEX_SQL_OPEN_PARENTHESIS) { + $depth++; + } + elseif ($this->mTokens[$key]->mType == EASYLEX_SQL_CLOSE_PARENTHESIS) { + $depth--; + } + + $t_tokens[] =& $this->mTokens[$key]; + + if (count($t_tokens) > 1 && $depth == 0) { + if ($this->mTokens[$key]->mType == EASYLEX_SQL_SEMICOLON) { + $t_lines[] =& $t_tokens; + unset($t_tokens); + $t_tokens = array(); + } + elseif ($this->mTokens[$key]->mType == EASYLEX_SQL_LETTER && (strtoupper($this->mTokens[$key]->mValue) =='CREATE' || strtoupper($this->mTokens[$key]->mValue) =='ALTER' || strtoupper($this->mTokens[$key]->mValue) =='INSERT')) { + array_pop($t_tokens); + $t_lines[] =& $t_tokens; + unset($t_tokens); + $t_tokens = array(); + $t_tokens[] =& $this->mTokens[$key]; + } + } + } + + if (count($t_tokens) > 0) { + $t_lines[] =& $t_tokens; + unset($t_tokens); + } + + foreach ($t_lines as $op) { + if (count($op) >= 3) { + if ($op[0]->mType == EASYLEX_SQL_LETTER && strtoupper($op[0]->mValue) == 'CREATE' && + $op[1]->mType == EASYLEX_SQL_LETTER && strtoupper($op[1]->mValue) == 'TABLE' && + ($op[2]->mType == EASYLEX_SQL_LETTER || $op[2]->mType == EASYLEX_SQL_STRING_LITERAL)) { + $op[2]->mValue = $this->mDB_PREFIX . '_' . $op[2]->getValue(); + } + if ($op[0]->mType == EASYLEX_SQL_LETTER && strtoupper($op[0]->mValue) == 'ALTER' && + $op[1]->mType == EASYLEX_SQL_LETTER && strtoupper($op[1]->mValue) == 'TABLE' && + ($op[2]->mType == EASYLEX_SQL_LETTER || $op[2]->mType == EASYLEX_SQL_STRING_LITERAL)) { + $op[2]->mValue = $this->mDB_PREFIX . '_' . $op[2]->getValue(); + } + if ($op[0]->mType == EASYLEX_SQL_LETTER && strtoupper($op[0]->mValue) == 'INSERT' && + $op[1]->mType == EASYLEX_SQL_LETTER && strtoupper($op[1]->mValue) == 'INTO' && + ($op[2]->mType == EASYLEX_SQL_LETTER || $op[2]->mType == EASYLEX_SQL_STRING_LITERAL)) { + $op[2]->mValue = $this->mDB_PREFIX . '_' . $op[2]->getValue(); + } + } + } + + return $t_lines; + } +} + + +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/admin/class/index.html diff -u /dev/null xoops2jp/html/modules/legacy/admin/class/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/admin/class/index.html Sat Oct 14 23:55:23 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/admin/class/ModuleUtils.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/class/ModuleUtils.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/admin/class/ModuleUtils.class.php Sat Oct 14 23:55:23 2006 @@ -0,0 +1,533 @@ +mMessages[] = array('type' => MODINSTALL_LOGTYPE_REPORT, 'message' => $msg); + } + + function addReport($msg) + { + $this->add($msg); + } + + function addWarning($msg) + { + $this->mMessages[] = array('type' => MODINSTALL_LOGTYPE_WARNING, 'message' => $msg); + } + + function addError($msg) + { + $this->mMessages[] = array('type' => MODINSTALL_LOGTYPE_ERROR, 'message' => $msg); + $this->mFetalErrorFlag = true; + } + + function hasError() + { + return $this->mFetalErrorFlag; + } +} + +/** + * This provides static methods for the module installation. Methods of this + * class may move to base class of installers. + */ +class Legacy_ModuleUtils +{ + /** + */ + function installTable(&$module, &$log) + { + $sqlfileInfo =& $module->getInfo('sqlfile'); + $dirname = $module->getVar('dirname'); + + if (!isset($sqlfileInfo[XOOPS_DB_TYPE])) { + return; + } + + require_once XOOPS_MODULE_PATH . "/base/admin/class/Legacy_SQLScanner.class.php"; + $scanner =& new Legacy_SQLScanner(); + $scanner->setDB_PREFIX(XOOPS_DB_PREFIX); + + $sqlfile = $sqlfileInfo[XOOPS_DB_TYPE]; + if (!$scanner->loadFile(XOOPS_MODULE_PATH . "/${dirname}/" . $sqlfile)) { + $log->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_SQL_FILE_NOT_FOUND, $sqlfile)); + return false; + } + + $scanner->parse(); + $sqls = $scanner->getSQL(); + + $root =& XCube_Root::getSingleton(); + $db =& $root->mController->getDB(); + + // + // TODO The following variable exists for rollback, but it is not implemented. + // + foreach ($sqls as $sql) { + if (!$db->query($sql)) { + $log->addError($db->error()); + return; + } + } + + $log->addReport(_AD_BASE_MESSAGE_DATABASE_SETUP_FINISHED); + } + + /** + * Insert template to DB. + * This function depends on the structure of Legacy_RenderSystem. We should + * move this to another mechanism. + * + * @param $dirname string + * @param $$template string[][] + * @param $log Legacy_ModuleUtilsSimpleLog * + * @param bool + */ + function installTemplate($module, $template, &$log) + { + $tplHandler =& xoops_gethandler('tplfile'); + + $fileName = trim($template['file']); + + $tpldata = Legacy_ModuleUtils::readTemplateFile($module->getVar('dirname'), $fileName); + if ($tpldata == false) + return false; + + // + // Create template file object, then store it. + // + $tplfile =& $tplHandler->create(); + $tplfile->setVar('tpl_refid', $module->getVar('mid')); + $tplfile->setVar('tpl_lastimpoerted', 0); + $tplfile->setVar('tpl_lastmodified', time()); + + if (preg_match("/\.css$/i", $fileName)) { + $tplfile->setVar('tpl_type', 'css'); + } + else { + $tplfile->setVar('tpl_type', 'module'); + } + + $tplfile->setVar('tpl_source', $tpldata, true); + $tplfile->setVar('tpl_module', $module->getVar('dirname')); + $tplfile->setVar('tpl_tplset', 'default'); + $tplfile->setVar('tpl_file', $fileName, true); + + $description = isset($tpl['description']) ? $tpl['description'] : ''; + $tplfile->setVar('tpl_desc', $description, true); + + if ($tplHandler->insert($tplfile)) { + $log->addReport(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_TEMPLATE_INSTALLED, $fileName)); + } + else { + $log->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_COULD_NOT_INSTALL_TEMPLATE, $fileName)); + return false; + } + + return true; + } + + /** + * Read template file, return it. + * + * @return string or false + */ + function readTemplateFile($dirname, $fileName, $isblock = false) + { + // + // Load template data + // + if ($isblock) { + $filePath = XOOPS_MODULE_PATH . "/" . $dirname . "/templates/blocks/" . $fileName; + } + else { + $filePath = XOOPS_MODULE_PATH . "/" . $dirname . "/templates/" . $fileName; + } + + if (!file_exists($filePath)) { + return false; + } + + $lines = file($filePath); + if ($lines == false) { + return false; + } + + $tpldata = ""; + foreach ($lines as $line) { + // + // Unify linefeed to "\r\n" + // + $tpldata .= str_replace("\n", "\r\n", str_replace("\r\n", "\n", $line)); + } + + return $tpldata; + } + + /** + * Create XoopsBlock object by array that is defined in xoops_version, return it. + * @param $module XoopsModule + * @param $block array + * @return XoopsBlock + */ + function &createBlockByInfo(&$module, $block) + { + $options = isset($block['options']) ? $block['options'] : null; + $edit_func = isset($block['edit_func']) ? $block['edit_func'] : null; + $template = isset($block['template']) ? $block['template'] : null; + $visible = isset($block['visible']) ? $block['visible'] : (isset($block['visible_any']) ? $block['visible_any']: 0); + $blockHandler =& xoops_gethandler('block'); + $blockObj =& $blockHandler->create(); + + $blockObj->set('mid', $module->getVar('mid')); + $blockObj->set('options', $options); + $blockObj->set('name', $block['name']); + $blockObj->set('title', $block['name']); + $blockObj->set('block_type', 'M'); + $blockObj->set('c_type', 1); + $blockObj->set('isactive', 1); + $blockObj->set('dirname', $module->getVar('dirname')); + $blockObj->set('func_file', $block['file']); + + // + // IMPORTANT CONVENTION + // + $show_func = ""; + if (isset($block['class'])) { + $show_func = "cl::" . $block['class']; + } + else { + $show_func = $block['show_func']; + } + + $blockObj->set('show_func', $show_func); + $blockObj->set('edit_func', $edit_func); + $blockObj->set('template', $template); + $blockObj->set('last_modified', time()); + $blockObj->set('visible', $visible); + + return $blockObj; + } + + /** + * Merge existing block XoopsBlock object and new XoopsBlock object from xoops_verion + * @param $oldBlock XoopsBlock + * @param $newBlock XoopsBlock + * @param $changedFlag bool + * @return XoopsBlock + */ + function &mergeBlockObject(&$oldBlock, &$newBlock, &$changedFlag) + { + $blockObj =& $oldBlock->xoopsClone(); + $blockObj->unsetNew(); + + $changedFlag = false; + $checkValues = array('name', 'func_file', 'show_func', 'edit_func', 'template'); + foreach($checkValues as $checkValue) { + if ($newBlock->getVar($checkValue) != $oldBlock->getVar($checkValue)) { + $blockObj->setVar($checkValue, $newBlock->getVar($checkValue)); + $changedFlag |= true; + } + } + + $old_options=explode("|",$oldBlock->getVar('options')); + $new_options=explode("|",$newBlock->getVar('options')); + if (count($new_options) > count($old_options)) { + $changedFlag |= true; + for ($i=count($old_options); $isetVar('options', implode("|", $old_options)); + } else if (count($new_options) < count($old_options)) { + $changedFlag |= true; + $blockObj->setVar('options', $newBlock->getVar('options')); + } + + return $blockObj; + } + + /** + * This function can receive both new and update. + * @param $module XoopsModule + * @param $blockObj XoopsBlock + * @param $block array + * @return bool + */ + function installBlock(&$module, &$blockObj, &$block, &$log) + { + $isNew = $blockObj->isNew(); + $blockHandler =& xoops_gethandler('block'); + + if (!empty($block['show_all_module'])) { + $autolink = false; + } else { + $autolink = true; + } + if (!$blockHandler->insert($blockObj, $autolink)) { + $log->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_COULD_NOT_INSTALL_BLOCK, $blockObj->getVar('name'))); + + return false; + } + else { + $log->addReport(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_BLOCK_INSTALLED, $blockObj->getVar('name'))); + + $tplHandler =& xoops_gethandler('tplfile'); + + if (!Legacy_ModuleUtils::installBlockTemplate($module, $blockObj)) { + $log->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_BLOCK_TEMPLATE_INSTALL, $blockObj->getVar('name'))); + } + + // + // Process of a permission. + // + if ($isNew) { + if (!empty($block['show_all_module'])) { + $link_sql = "INSERT INTO " . $blockHandler->db->prefix('block_module_link') . " (block_id, module_id) VALUES (".$blockObj->getVar('bid').", 0)"; + if (!$blockHandler->db->query($link_sql)) { + $log->addWarn(XCube_Utils::formatMessage(_AD_BASE_ERROR_COULD_NOT_SET_LINK, $blockObj->getVar('name'))); + } + } + $gpermHandler =& xoops_gethandler('groupperm'); + $bperm =& $gpermHandler->create(); + $bperm->setVar('gperm_itemid', $blockObj->getVar('bid')); + $bperm->setVar('gperm_name', 'block_read'); + $bperm->setVar('gperm_modid', 1); + + if (!empty($block['visible_any'])) { + $memberHandler =& xoops_gethandler('member'); + $groupObjects =& $memberHandler->getGroups(); + foreach($groupObjects as $group) { + $bperm->setVar('gperm_groupid', $group->getVar('groupid')); + $bperm->setNew(); + if (!$gpermHandler->insert($bperm)) { + $log->addWarn(XCube_Utils::formatMessage(_AD_BASE_ERROR_COULD_NOT_SET_BLOCK_PERMISSION, $blockObj->getVar('name'))); + } + } + } else { + $root =& XCube_Root::getSingleton(); + $groups = $root->mContext->mXoopsUser->getGroups(); + foreach ($groups as $mygroup) { + $bperm->setVar('gperm_groupid', $mygroup); + $bperm->setNew(); + if (!$gpermHandler->insert($bperm)) { + $log->addWarn(XCube_Utils::formatMessage(_AD_BASE_ERROR_COULD_NOT_SET_BLOCK_PERMISSION, $blockObj->getVar('name'))); + } + } + } + } + + return true; + } + } + + function unInstallBlock(&$block, &$log) { + $blockHandler =& xoops_gethandler('block'); + $blockHandler->delete($block); + $log->addReport(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_UNINSTALLATION_BLOCK_SUCCESSFUL, $block->get('name'))); + // + // delete permission + // + $gpermHandler =& xoops_gethandler('groupperm'); + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('gperm_name', 'block_read')); + $criteria->add(new Criteria('gperm_itemid', $block->getVar('bid'))); + $criteria->add(new Criteria('gperm_modid', 1)); + $gpermHandler->deleteAll($criteria); + } + + /** + * Save the information of block's template specified and the source code of it + * to database. + * @return bool + */ + function installBlockTemplate(&$module, &$block) + { + if ($block->get('template') == null) { + return true; + } + + $tplHandler =& xoops_gethandler('tplfile'); + + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('tpl_type', 'block')); + $criteria->add(new Criteria('tpl_tplset', 'default')); + $criteria->add(new Criteria('tpl_module', $module->getVar('dirname'))); + $criteria->add(new Criteria('tpl_file', $block->getVar('template'))); + $tplfiles =& $tplHandler->getObjects($criteria); + + if (count($tplfiles) > 0) { + $tplfile =& $tplfiles[0]; + } + else { + $tplfile =& $tplHandler->create(); + $tplfile->setVar('tpl_refid', $block->getVar('bid')); + $tplfile->setVar('tpl_tplset', 'default'); + $tplfile->setVar('tpl_file', $block->getVar('template')); + $tplfile->setVar('tpl_module', $module->getVar('dirname')); + $tplfile->setVar('tpl_type', 'block'); + // $tplfile->setVar('tpl_desc', $tpl_desc); + $tplfile->setVar('tpl_lastimported', 0); + } + + $tplSource = Legacy_ModuleUtils::readTemplateFile($module->getVar('dirname'), $block->getVar('template'), true); + $tplfile->setVar('tpl_source', $tplSource); + $tplfile->setVar('tpl_lastmodified', time()); + + return $tplHandler->insert($tplfile); + } + + function insertAllConfigs(&$module, &$log) + { + $configInfos = Legacy_ModuleUtils::getConfigInfosFromManifesto($module); + + $count = 0; + if (is_array($configInfos)) { + $configHandler =& xoops_gethandler('config'); + + foreach ($configInfos as $configInfo) { + $config =& $configHandler->createConfig(); + + $config->loadFromConfigInfo($module->get('mid'), $configInfo, $count++); + + if ($configHandler->insertConfig($config)) { + $log->addReport(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_INSERT_CONFIG, $configInfo['name'])); + } + else { + $log->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_COULD_NOT_INSERT_CONFIG, $configInfo['name'])); + } + + unset($config); + } + } + } + + /** + * Get & build config items from Manifesto by specific module object. + */ + function &getConfigInfosFromManifesto(&$module) + { + $configInfos = $module->getInfo('config'); + + // + // Insert comment config by old style. + // + if ($module->getVar('hascomments') !=0 ) { + require_once XOOPS_ROOT_PATH . "/include/comment_constants.php"; + + $configInfos[] = array('name' => 'com_rule', + 'title' => '_CM_COMRULES', + 'description' => '', + 'formtype' => 'select', + 'valuetype' => 'int', + 'default' => 1, + 'options' => array('_CM_COMNOCOM' => XOOPS_COMMENT_APPROVENONE, '_CM_COMAPPROVEALL' => XOOPS_COMMENT_APPROVEALL, '_CM_COMAPPROVEUSER' => XOOPS_COMMENT_APPROVEUSER, '_CM_COMAPPROVEADMIN' => XOOPS_COMMENT_APPROVEADMIN) + ); + + $configInfos[] = array('name' => 'com_anonpost', + 'title' => '_CM_COMANONPOST', + 'description' => '', + 'formtype' => 'yesno', + 'valuetype' => 'int', + 'default' => 0 + ); + } + + // + // Insert comment config by old style. + // + if ($module->get('hasnotification') != 0) { + require_once XOOPS_ROOT_PATH . '/include/notification_constants.php'; + require_once XOOPS_ROOT_PATH . '/include/notification_functions.php'; + + $t_options = array(); + $t_options['_NOT_CONFIG_DISABLE'] = XOOPS_NOTIFICATION_DISABLE; + $t_options['_NOT_CONFIG_ENABLEBLOCK'] = XOOPS_NOTIFICATION_ENABLEBLOCK; + $t_options['_NOT_CONFIG_ENABLEINLINE'] = XOOPS_NOTIFICATION_ENABLEINLINE; + $t_options['_NOT_CONFIG_ENABLEBOTH'] = XOOPS_NOTIFICATION_ENABLEBOTH; + + $configInfos[] = array( + 'name' => 'notification_enabled', + 'title' => '_NOT_CONFIG_ENABLE', + 'description' => '_NOT_CONFIG_ENABLEDSC', + 'formtype' => 'select', + 'valuetype' => 'int', + 'default' => XOOPS_NOTIFICATION_ENABLEBOTH, + 'options' => $t_options + ); + + // + // FIXME: doesn't work when update module... can't read back the + // array of options properly... " changing to " + // + + unset ($t_options); + + $t_options = array(); + $t_categoryArr =& notificationCategoryInfo('', $module->get('mid')); + foreach ($t_categoryArr as $t_category) { + $t_eventArr =& notificationEvents($t_category['name'], false, $module->get('mid')); + foreach ($t_eventArr as $t_event) { + if (!empty($event['invisible'])) { + continue; + } + $t_optionName = $t_category['title'] . ' : ' . $t_event['title']; + $t_options[$t_optionName] = $t_category['name'] . '-' . $t_event['name']; + } + } + + $configInfos[] = array( + 'name' => 'notification_events', + 'title' => '_NOT_CONFIG_EVENTS', + 'description' => '_NOT_CONFIG_EVENTSDSC', + 'formtype' => 'select_multi', + 'valuetype' => 'array', + 'default' => array_values($t_options), + 'options' => $t_options + ); + } + + return $configInfos; + } + + + /** + * Delete all configs of $module. + * + * @param $module XoopsModule + */ + function deleteAllConfigs(&$module, &$log) + { + if ($this->mModule->getVar('hasconfig') == 0) { + return; + } + + $configHandler =& xoops_gethandler('config'); + $configs =& $configHandler->getConfigs(new Criteria('conf_modid', $this->mModule->getVar('mid'))); + + if (count($configs) == 0) { + return; + } + + foreach ($configs as $config) { + $configHandler->deleteConfig($config); + } + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/admin/class/ModuleUninstaller.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/class/ModuleUninstaller.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/admin/class/ModuleUninstaller.class.php Sat Oct 14 23:55:23 2006 @@ -0,0 +1,172 @@ +mProcessScript->register('Legacy_ModuleUninstaller.ProcessScript'); + $this->mProcessScript->add('Legacy_ModuleUninstaller::_processScript'); + + $this->mInstallTable->register('Legacy_ModuleInstaller.InstallTable'); + $this->mInstallTable->add('Legacy_ModuleUninstaller::_uninstallTable'); + + $this->mInstallTemplate->register('Legacy_ModuleUninstaller.InstallTemplate'); + $this->mInstallTemplate->add('Legacy_ModuleUninstaller::_uninstallTemplate'); + } + + /** + * Load xoops module object that isn't installed and return it. + * @static + * @access public + * @param $dirname string + * @return XoopsModule + */ + function &loadModuleObject($dirname) + { + $error = null; + + $moduleHandler =& xoops_gethandler('module'); + $module =& $moduleHandler->getByDirname($dirname); + + if (!is_object($module)) { + $this->mLog->addError(_AD_BASE_ERROR_MODULE_NOT_FOUND); + return $error; + } + + if ($module->getVar('isactive') != 0) { + $this->mLog->addError(_AD_BASE_ERROR_CASE_OF_ACTIVE_MODULE); + return $error; + } + + return $module; + } + + /** + * Delete module information from XOOPS database because this class is uninstaller. + */ + function _installModule() + { + $moduleHandler =& xoops_gethandler('module'); + if (!$moduleHandler->delete($this->mModule)) { + $this->mLog->addError(_AD_BASE_ERROR_DELETE_MODULEINFO_FROM_DB); + } + else { + $this->mLog->addReport(_AD_BASE_MESSAGE_DELETE_MODULEINFO_FROM_DB); + } + } + + /** + * Drop table because this class is uninstaller. + */ + function _uninstallTable(&$module, &$log) + { + $root =& XCube_Root::getSingleton(); + $db =& $root->mController->getDB(); + + $tables = $module->getInfo('tables'); + if ($tables != false && is_array($tables)) { + foreach($tables as $table) { + // + // TODO Do we need to check reserved core tables? + // + $sql = "DROP TABLE " . $db->prefix($table); + if ($db->query($sql)) { + $log->addReport(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_DROP_TABLE, $db->prefix($table))); + } + else { + $log->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_DROP_TABLE, $db->prefix($table))); + } + } + } + } + + /** + * Delete template because this class is uninstaller. + */ + function _uninstallTemplate(&$module, &$log) + { + $tplHandler =& xoops_gethandler('tplfile'); + + $deleteTemplates =& $tplHandler->find(null, 'module', $module->getVar('mid')); + + foreach($deleteTemplates as $tpl) { + if (!$tplHandler->delete($tpl)) { + $log->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_TEMPLATE_UNINSTALLED, $tpl->getVar('tpl_file'))); + } + } + } + + /** + * Delete all of module's blocks. + */ + function _installBlock() + { + $blockHandler =& xoops_gethandler('block'); + $criteria = new Criteria('mid', $this->mModule->getVar('mid')); + + $blocks =& $blockHandler->getObjectsDirectly($criteria); + + $gpermHandler =& xoops_gethandler('groupperm'); + foreach ($blocks as $block) { + $blockHandler->delete($block); + $this->mLog->addReport(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_BLOCK_HAS_BEEN_UNINSTALLED, $block->get('name'))); + + // + // delete permission + // + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('gperm_name', 'block_read')); + $criteria->add(new Criteria('gperm_itemid', $block->getVar('bid'))); + $criteria->add(new Criteria('gperm_modid', 1)); + $gpermHandler->deleteAll($criteria); + } + + $tplHandler =& xoops_gethandler('tplfile'); + $criteria =& new Criteria('tpl_module', $this->mModule->getVar('dirname')); + if(!$tplHandler->deleteAll($criteria)) { + $this->mLog->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_COULD_NOT_DELETE_BLOCK_TEMPLATES, $tplHandler->db->error())); + } + } + + function _installPreference() + { + Legacy_ModuleUtils::deleteAllConfigs($this->mModule, $this->mLog); + } + + function _processScript(&$module, &$log) + { + $installScript = trim($module->getInfo('onUninstall')); + if ($installScript != false) { + require_once XOOPS_MODULE_PATH . "/" . $module->getVar('dirname') . "/" . $installScript; + $funcName = 'xoops_module_uninstall_' . $module->getVar('dirname'); + if (function_exists($funcName)) { + if (!call_user_func($funcName, $module)) { + $log->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_FAILED_TO_EXECUTE_CALLBACK, $funcName)); + } + } + } + } + + function _processReport() + { + if (!$this->mLog->hasError()) { + $this->mLog->add(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_UNINSTALLATION_MODULE_SUCCESSFUL, $this->mModule->get('name'))); + } + else { + if (is_object($this->mModule)) { + $this->mLog->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_UNINSTALLATION_MODULE_FAILURE, $this->mModule->get('name'))); + } + else { + $this->mLog->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_UNINSTALLATION_MODULE_FAILURE, $this->mDirname)); + } + } + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/admin/class/EasyLex_SQLScanner.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/class/EasyLex_SQLScanner.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/admin/class/EasyLex_SQLScanner.class.php Sat Oct 14 23:55:23 2006 @@ -0,0 +1,415 @@ +mBuffer = array(); + for ($i = 0; $i < strlen($buffer); $i++) { + $this->mBuffer[$i] = $buffer{$i}; + } + + $this->mIndex = 0; + } + + function parse() + { + while ($this->mIndex <= count($this->mBuffer)) { + if ($this->mIndex == count($this->mBuffer)) { + $ch = ''; + $type = EASYLEX_SQL_UNKNOWN; + } + else { + $ch = $this->mBuffer[$this->mIndex]; + $type = $this->_getChrType($ch); + } + + switch ($this->mStatus) { + case EASYLEX_SQL_UNKNOWN: + $this->_parseUnknown($ch, $type); + break; + + case EASYLEX_SQL_DIGIT: + $this->_parseDigit($ch, $type); + break; + + case EASYLEX_SQL_LETTER: + $this->_parseLetter($ch, $type); + break; + + case EASYLEX_SQL_STRING_LITERAL: + $this->_parseStringLiteral($ch, $type); + break; + + case EASYLEX_SQL_STRING_LITERAL_ESCAPE: + $this->_parseStringLiteralEscape($ch, $type); + break; + + case EASYLEX_SQL_OPEN_PARENTHESIS: + $this->_parseOpenParenthesis($ch, $type); + break; + + case EASYLEX_SQL_CLOSE_PARENTHESIS: + $this->_parseCloseParenthesis($ch, $type); + break; + + case EASYLEX_SQL_SEPARATER: + $this->_parseSeparater($ch, $type); + break; + + case EASYLEX_SQL_MARK: + $this->_parseMark($ch, $type); + break; + + case EASYLEX_SQL_SEMICOLON: + $this->_parseSemicolon($ch, $type); + break; + + case EASYLEX_SQL_COMMA: + $this->_parseComma($ch, $type); + break; + } + } + } + + /** + * Load file and set buffer. If $preprocess is true, scan commetns and + * remove these. + * + * @param string $path file path + * @param bool $preprocess + * @return bool + */ + function loadFile($path, $preprocess = true) + { + if (!file_exists($path)) { + return false; + } + + $fp = fopen($path, "rb"); + if (!$fp) { + return false; + } + + $t_buff = ""; + while ($str = fgets($fp)) { + if ($preprocess) { + $str = preg_replace("/^\s*\#.*/", "", $str); + } + $t_buff .= $str; + } + + $this->setBuffer($t_buff); + + fclose($fp); + return true; + } + + function _getChrType($ch) + { + if (preg_match("/\s/", $ch)) { + return EASYLEX_SQL_SEPARATER; + } + + if ($ch == '(') { + return EASYLEX_SQL_OPEN_PARENTHESIS; + } + + if ($ch == ')') { + return EASYLEX_SQL_CLOSE_PARENTHESIS; + } + + if ($ch == ';') { + return EASYLEX_SQL_SEMICOLON; + } + + if ($ch == ',') { + return EASYLEX_SQL_COMMA; + } + + if (preg_match("/[0-9]/", $ch)) { + return EASYLEX_SQL_DIGIT; + } + + if (preg_match("/[!=<>%\*]/", $ch)) { + return EASYLEX_SQL_MARK; + } + + return EASYLEX_SQL_LETTER; + } + + function _parseUnknown($ch, $type) + { + $this->mStatus = $type; + $this->mActiveToken .= $ch; + $this->mIndex++; + + if ($ch == "'" || $ch == '"' || $ch == '`') { + $this->mStatus = EASYLEX_SQL_STRING_LITERAL; + $this->mActiveQuoteMark = $ch; + } + + } + + function _parseDigit($ch, $type) + { + if ($type == EASYLEX_SQL_DIGIT) { + $this->mActiveToken .= $ch; + $this->mIndex++; + } + elseif ($type == EASYLEX_SQL_LETTER) { + $this->mStatus = EASYLEX_SQL_LETTER; + $this->mActiveToken .= $ch; + $this->mIndex++; + } + else { + $this->_createToken(); + } + } + + function _parseLetter($ch, $type) + { + if ($type == EASYLEX_SQL_LETTER || $type == EASYLEX_SQL_DIGIT) { + $this->mActiveToken .= $ch; + $this->mIndex++; + } + else { + $this->_createToken(); + } + } + + function _parseStringLiteral($ch, $type) + { + $this->mActiveToken .= $ch; + $this->mIndex++; + + if ($ch == "\\") { + $this->mStatus = EASYLEX_SQL_STRING_LITERAL_ESCAPE; + } + elseif ($ch == $this->mActiveQuoteMark) { + $this->_createToken(); + } + } + + function _parseStringLiteralEscape($ch, $type) + { + $this->mStatus = EASYLEX_SQL_STRING_LITERAL; + } + + function _parseOpenParenthesis($ch, $type) + { + $this->_createToken(); + } + + function _parseCloseParenthesis($ch, $type) + { + $this->_createToken(); + } + + function _parseSeparater($ch, $type) + { + if ($type == EASYLEX_SQL_SEPARATER) { + $this->mActiveToken .= $ch; + $this->mIndex++; + } + else { + // $this->_createToken(); + $this->mStatus = EASYLEX_SQL_UNKNOWN; + $this->mActiveToken = ""; + } + } + + function _parseSemicolon($ch, $type) + { + $this->_createToken(); + } + + function _parseMark($ch, $type) + { + if ($type == EASYLEX_SQL_MARK) { + $this->mActiveToken .= $ch; + $this->mIndex++; + } + else { + $this->_createToken(); + } + } + + function _parseComma($ch, $type) + { + $this->_createToken(); + } + + function _createToken($type = null, $value = null) + { + if ($type === null) { + $type = $this->mStatus; + } + + if ($value === null) { + $value = $this->mActiveToken; + } + + $token =& new EasyLex_SQLToken($type, $value); + $this->mTokens[] =& $token; + + $this->mStatus = EASYLEX_SQL_UNKNOWN; + $this->mActiveToken = ""; + + return $token; + } + + /** + * Return Array of operations. + * + * @return Array $ret[Index] = Array of tokens. + */ + function &getOperations() + { + $ret = array(); + $t_tokens = array(); + $depth = 0; + + foreach (array_keys($this->mTokens) as $key) { + if ($this->mTokens[$key]->mType == EASYLEX_SQL_OPEN_PARENTHESIS) { + $depth++; + } + elseif ($this->mTokens[$key]->mType == EASYLEX_SQL_CLOSE_PARENTHESIS) { + $depth--; + } + + $t_tokens[] =& $this->mTokens[$key]; + + if ($this->mTokens[$key]->mType == EASYLEX_SQL_SEMICOLON && $depth == 0) { + $ret[] =& $t_tokens; + unset($t_tokens); + $t_tokens = array(); + } + } + + if (count($t_tokens) > 0) { + $ret[] =& $t_tokens; + unset($t_tokens); + } + + return $ret; + } + + function getSQL() + { + $sqls = array(); + $lines =& $this->getOperations(); + + foreach ($lines as $line) { + $t_arr = array(); + foreach ($line as $token) { + $t_arr[] = $token->getOutputValue(); + } + $sqls[] = join(" ", $t_arr); + } + + return $sqls; + } +} + +class EasyLex_SQLToken +{ + var $mType = EASYLEX_SQL_UNKNOWN; + var $mValue = ""; + + function EasyLex_SQLToken($type, $value) + { + $this->mType = $type; + $this->mValue = $value; + } + + function getOutputValue() + { + if ($this->mType == EASYLEX_SQL_SEPARATER) { + return ""; + } + else { + return $this->mValue; + } + } + + function getValue() + { + if ($this->mType == EASYLEX_SQL_SEPARATER) { + return ""; + } + + if ($this->mType == EASYLEX_SQL_STRING_LITERAL) { + return substr($this->mValue, 1, strlen($this->mValue) - 2); + } + + return $this->mValue; + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 14 23:55:23 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:23 +0900 Subject: [xoops-cvslog 5100] CVS update: xoops2jp/html/modules/legacy/language/english/help Message-ID: <20061014145523.EB1682AC281@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/language/english/help/help.html diff -u /dev/null xoops2jp/html/modules/legacy/language/english/help/help.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/language/english/help/help.html Sat Oct 14 23:55:23 2006 @@ -0,0 +1,53 @@ +

Outline

+
    +
  • This module provides compatibility of XOOPS Cube with XOOPS 2.0.x.
  • +
  • Also, it provides module operation menu and theme engine for admin menu.
  • +
  • This module is incomplete in this release. It should be used together with System module.
  • +
+ +

Action Search

+
    +
  • Search information of typed keyword from admin menu and help files.
  • +
  • Please perform search when you need to know how to use the XOOPS Cube.
  • +
+ +

Index

+ + +

Module administration / installation

+
    +
  • When you go to this area, you see a list of installed module in your XOOPS Cube.
  • +
  • To install modules, please go to 'install module'.
  • +
  • You can check details of modules when you click 'Information(!)' button.
  • +
  • Otherwise, you can operate the administration menu just like XOOPS 2.0.x.
  • +
+ +

Block administration / installation

+
    +
  • Click here to understand this feature.
  • +
+ +

Themes administration / installation

+
    +
  • Click here to understand this feature.
  • +
+ +

Migration guide (from XOOPS 2.0.x)

+ + +

TODO (What's coming?)

+
    +
  • Name of this module would be changed to 'Legacy module' form 'Base module'.
  • +
  • Some modules which depend on minor global variables of XOOPS2, can not be installed in XOOPS Cube Legacy 2.1. +
+ +

ToDo of Cube Legacy 2.1.0 for the next version

+
    +
  • The preview feature in custom blocks has to be implemented.
  • +
  • Users can't use forward-match and backward-match in the user search. These search options are available in XOOPS2.
  • +
  • IIS may not install modules which have SQL file. If you meet such troubles, please report to us. +
Index: xoops2jp/html/modules/legacy/language/english/help/index.html diff -u /dev/null xoops2jp/html/modules/legacy/language/english/help/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/language/english/help/index.html Sat Oct 14 23:55:23 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/language/english/help/block.html diff -u /dev/null xoops2jp/html/modules/legacy/language/english/help/block.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/language/english/help/block.html Sat Oct 14 23:55:23 2006 @@ -0,0 +1,39 @@ +

How to use Blocks

+

Blocks is small content that is displayed to modules you specified. +It is installed with modules that have blocks.

+ +
Install Blocks
+

At first, you have to install blocks to use it. +Click here to start installing blocks. +In the form, you can change the name of the block and apply groups that can see the block. +Weight is order in the column that you specify.

+ +
Column
+

Most themes have three panes. +The central panes has more two panes. +These panes are called Left column, Center-Left column, Center column, Center-right column and Right column. +You can display the block to the column that you specify of the module that you specify.

+ +

Some themes don't have Left column or Right column. +In such case, one column might be inseted to another column. +You need to read the manual of those themes to understand the feature of them.

+ +
Note
+

The special Render System may give special functions to you about blocks. +If you have installed it, read the manual of your RenderSystem.

+ +
Block Managing
+

You can change the setting of the block anytime in Block Manage. +Click here. +The usage is based on other control functions. +Click the edit icon to change the setting.

+ +
Uninstall Block
+

If you hope to lay off the display of the block, click the uninstall icon. +The block returns into the list of uninstall blocks. +The setting of the block is kept until you uninstall the module that has the block. +You can re-install the block anytime.

+ +
FOR XOOPS2 USERS
+

XOOPS Cube Legacy 2.1 has separated the list of un-used blocks from Block Manage. +It is like Module Manage.

Index: xoops2jp/html/modules/legacy/language/english/help/theme.html diff -u /dev/null xoops2jp/html/modules/legacy/language/english/help/theme.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/language/english/help/theme.html Sat Oct 14 23:55:23 2006 @@ -0,0 +1,48 @@ +

+Themes are the skin(Looks) at XOOPS Cube. +You may change the looks of your site by changing the main theme like a dress-up doll. +Let's customize the looks of your site. Download themes from sites of theme designers who have published themes for XOOPS Cube. +

+ +

How to change the main theme

+

+The main theme is the default theme at your site. You can specify one main theme in one your site. +

+
    +
  1. Click 'Theme management' in the side menu of Legacy module.
  2. +
  3. Click 'Select' button of the theme which you want to use as the main theme.
  4. +
+

+After setting, let's go to your site. New design site welcomes you. +

+ +

How to install new themes

+

+An additional theme can be obtained on theme developer's website etc. +The distributed theme is mostly compressed. +To use the theme, please upload it to /themes directory after decompression of files. +

+ +
Be careful about the theme directory!
+
    +
  • Please upload the folder of the decompressed theme to the themes directory under the root directory of XOOPS Cube. The folder should include theme.html or package.ini.php.
  • +
+ +
Let's read the note of the theme
+

+A theme may need the special render-system. +'Legacy Render System' which is included as default, can handle the theme format of XOOPS2. +If you install other render systems, XOOPS Cube get able to new theme formats. +Please, read the note of the theme for installing theme correctly, if the note is there. +

+ +

How to use Theme Select

+

+Users may select their favorite theme from theme list which you specified. +To that end, you need to list up selectable themes and install 'Theme Select' block for visitors. +

+
    +
  1. At first, let's make theme list. Click 'Theme management' in the side menu of Legacy module.
  2. +
  3. Check themes which you want to specify as selectable themes. Next, Click 'Submit' button.
  4. +
  5. Install 'Theme Select' block. If you don't know about blocks of XOOPS Cube, read help about it.
  6. +
Index: xoops2jp/html/modules/legacy/language/english/help/xoops2.html diff -u /dev/null xoops2jp/html/modules/legacy/language/english/help/xoops2.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/language/english/help/xoops2.html Sat Oct 14 23:55:23 2006 @@ -0,0 +1,33 @@ +

Migration from XOOPS2 to XOOPS Cube 2.1 Legacy

+
Getting first
+

All of system module's feature are active because XOOPS Cube 2.1 is development status. You'll need these old features to solve your troubles. These features will be ported to 'Legacy module' until stable release.

+ +
Module management
+
    +
  • You can manage modules on 'Legacy system' module.
  • +
  • 'Install module' and 'Module management' has each control page.
  • +
  • Click 'Module management' menu to manage your installed modules. Click 'Install module' menu to install new modules.
  • +
  • Legacy system's module installer keeps some bugs now. And, it doesn't implement all function of system module's installer.
  • +
  • Old system's installer set group permission by the user who execute install. New Legacy system's installer set group permission to an administrator group only.
  • +
+ +
User management
+
    +
  • 'User management', 'Group management', 'Group permission', 'Avatar management' and 'Sending mail' will be ported to user module.
  • +
  • However, 'Sending mail' hasn't ported yet.
  • +
+ +
Theme management
+
    +
  • Each renderer systems (Theme engine) are used for management themes.
  • +
  • We think that DB template manager is property of the renderer. Therefore, template manager is ported to Legacy renderer which has compatibility with XOOPS2's smarty environment.
  • +
+ +
New!
+
Block management
+
    +
  • XOOPS Cube 2.1 Legacy environment changed an opinion about block feature. You need install block before you set block to your site. New Legacy system handles it by visible flag.
  • +
  • If you install module, the module's blocks are registered to XOOPS Cube + Legacy, but it isn't able to use. Click install icon of block which you want to install in 'Install block' page.
  • +
  • If you uninstall the block, it returns to the list of 'Install block' page.
  • +
  • You can't edit uninstalled blocks' group permission, target column and target module. But, uninstalled blocks keep these parameters. When you re-install the block, block installer recovers last parameters. +
From minahito @ users.sourceforge.jp Sat Oct 14 23:55:24 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:24 +0900 Subject: [xoops-cvslog 5101] CVS update: xoops2jp/html/modules/legacy/admin/theme/icons Message-ID: <20061014145524.4970E2AC27F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/theme/icons/info.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/index.html diff -u /dev/null xoops2jp/html/modules/legacy/admin/theme/icons/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/theme/icons/index.html Sat Oct 14 23:55:23 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/admin/theme/icons/important.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/install.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/error.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/delete.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/idea.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/property.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/clone.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/down.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/user.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/view.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/update.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/up.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/permission.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/group.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/add.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/members.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/download.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/send.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/active.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/search.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/uninstall.gif Index: xoops2jp/html/modules/legacy/admin/theme/icons/edit.gif From minahito @ users.sourceforge.jp Sat Oct 14 23:55:25 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:25 +0900 Subject: [xoops-cvslog 5102] CVS update: xoops2jp/html/modules/legacy/forms Message-ID: <20061014145525.7A3012AC27F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/forms/NotifyDeleteForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/forms/NotifyDeleteForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:25 2006 +++ xoops2jp/html/modules/legacy/forms/NotifyDeleteForm.class.php Sat Oct 14 23:55:25 2006 @@ -0,0 +1,44 @@ +mContext->mRequest->getRequest('del_not'); + + if (!is_array($t_arr)) { + $this->addErrorMessage(_MD_BASE_LANG_ERROR); + $this->mFatalError = true; + return; + } + + foreach ($t_arr as $t_modid => $t_idArr) { + if (!is_array($t_idArr)) { + $this->addErrorMessage(_MD_BASE_LANG_ERROR); + $this->mFatalError = true; + return; + } + foreach ($t_idArr as $t_id) { + $this->mNotifiyIds[] = array('modid' => intval($t_modid), 'id' => intval($t_id)); + } + } + } +} + +?> Index: xoops2jp/html/modules/legacy/forms/ImageFilterForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/forms/ImageFilterForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:25 2006 +++ xoops2jp/html/modules/legacy/forms/ImageFilterForm.class.php Sat Oct 14 23:55:25 2006 @@ -0,0 +1,60 @@ + 'image_id', + IMAGE_SORT_KEY_IMAGE_NAME => 'image_name', + IMAGE_SORT_KEY_IMAGE_NICENAME => 'image_nicename', + IMAGE_SORT_KEY_IMAGE_MIMETYPE => 'image_mimetype', + IMAGE_SORT_KEY_IMAGE_CREATED => 'image_created', + IMAGE_SORT_KEY_IMAGE_DISPLAY => 'image_display', + IMAGE_SORT_KEY_IMAGE_WEIGHT => 'image_weight', + IMAGE_SORT_KEY_IMGCAT_ID => 'imgcat_id' + ); + + function getDefaultSortKey() + { + return IMAGE_SORT_KEY_DEFAULT; + } + + function fetch() + { + parent::fetch(); + + $this->mNavi->addExtra('target', xoops_getrequest('target')); + + if (isset($_REQUEST['imgcat_id'])) { + $this->mNavi->addExtra('imgcat_id', xoops_getrequest('imgcat_id')); + $this->_mCriteria->add(new Criteria('imgcat_id', array(XOBJ_DTYPE_INT, xoops_getrequest('imgcat_id')))); + } + else { + $this->_mCriteria->add(new Criteria('imgcat_id', 0)); + } + + $this->_mCriteria->add(new Criteria('image_display', 1)); + + $this->_mCriteria->addSort($this->getSort(), $this->getOrder()); + if (abs($this->mSort) != IMAGE_SORT_KEY_IMAGE_WEIGHT) { + $this->_mCriteria->addSort(IMAGE_SORT_KEY_IMAGE_WEIGHT, $this->getOrder()); + } + } +} + +?> Index: xoops2jp/html/modules/legacy/forms/SmilesFilterForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/forms/SmilesFilterForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:25 2006 +++ xoops2jp/html/modules/legacy/forms/SmilesFilterForm.class.php Sat Oct 14 23:55:25 2006 @@ -0,0 +1,43 @@ + 'id', + SMILES_SORT_KEY_CODE => 'code', + SMILES_SORT_KEY_SMILE_URL => 'smile_url', + SMILES_SORT_KEY_EMOTION => 'emotion', + SMILES_SORT_KEY_DISPLAY => 'display' + ); + + function getDefaultSortKey() + { + return SMILES_SORT_KEY_ID; + } + + function fetch() + { + parent::fetch(); + + if (isset($_REQUEST['target'])) { + $this->mNavi->addExtra('target', xoops_getrequest('target')); + } + + $this->_mCriteria->addSort($this->getSort(), $this->getOrder()); + } +} + +?> Index: xoops2jp/html/modules/legacy/forms/ImageUploadForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/forms/ImageUploadForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:25 2006 +++ xoops2jp/html/modules/legacy/forms/ImageUploadForm.class.php Sat Oct 14 23:55:25 2006 @@ -0,0 +1,155 @@ +get('imgcat_id'); + } + + function prepare() + { + // + // Set form properties + // + $this->mFormProperties['image_name'] =& new XCube_ImageFileProperty('image_name'); + $this->mFormProperties['image_nicename'] =& new XCube_StringProperty('image_nicename'); + $this->mFormProperties['imgcat_id'] =& new XCube_IntProperty('imgcat_id'); + + // + // Set field properties + // + $this->mFieldProperties['image_name'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['image_name']->setDependsByArray(array('extension')); + $this->mFieldProperties['image_name']->addVar('extension', 'jpg,gif,png'); + + $this->mFieldProperties['image_nicename'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['image_nicename']->setDependsByArray(array('required')); + $this->mFieldProperties['image_nicename']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_IMAGE_NICENAME); + + $this->mFieldProperties['imgcat_id'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['imgcat_id']->setDependsByArray(array('required','objectExist')); + $this->mFieldProperties['imgcat_id']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMGCAT_ID); + $this->mFieldProperties['imgcat_id']->addMessage('objectExist', _AD_BASE_ERROR_OBJECTEXIST, _AD_BASE_LANG_IMGCAT_ID); + $this->mFieldProperties['imgcat_id']->addVar('handler', 'imagecategory'); + $this->mFieldProperties['imgcat_id']->addVar('module', 'base'); + } + + /** + * Check the permission of uploading. + */ + function validateImgcat_id() + { + $imgcat_id = $this->get('imgcat_id'); + if ($imgcat_id != null) { + $root =& XCube_Root::getSingleton(); + $xoopsUser =& $root->mController->mRoot->mContext->mXoopsUser; + + $groups = array(); + if (is_object($xoopsUser)) { + $groups =& $xoopsUser->getGroups(); + } + else { + $groups = array(XOOPS_GROUP_ANONYMOUS); + } + + $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $imgcat =& $handler->get($imgcat_id); + if (is_object($imgcat) && !$imgcat->hasUploadPerm($groups)) { + $this->addErrorMessage(_MD_BASE_ERROR_PERMISSION); + } + } + } + + function validateImage_name() + { + $formFile = $this->get('image_name'); + + if ($formFile == null && $this->_mIsNew ) { + $this->addErrorMessage(_MD_BASE_ERROR_YOU_MUST_UPLOAD); + } + } + + function validate() + { + parent::validate(); + + $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $category =& $handler->get($this->get('imgcat_id')); + + $formFile = $this->get('image_name'); + + if ($formFile != null && is_object($category)) { + // + // Imagefile width & height check. + // + if ($formFile->getWidth() > $category->get('imgcat_maxwidth') || $formFile->getHeight() > $category->get('imgcat_maxheight')) { + $this->addErrorMessage(XCube_Utils::formatMessage(_AD_BASE_ERROR_IMG_SIZE, $category->get('imgcat_maxwidth'), $category->get('imgcat_maxheight'))); + } + + // + // Check file size + // + if ($formFile->getFilesize() > $category->get('imgcat_maxsize')) { + $this->addErrorMessage(XCube_Utils::formatMessage(_AD_BASE_ERROR_IMG_FILESIZE, $category->get('imgcat_maxsize'))); + } + } + } + + function load(&$obj) + { + $this->set('image_nicename', $obj->get('image_nicename')); + $this->set('imgcat_id', $obj->get('imgcat_id')); + + $this->_mIsNew = $obj->isNew(); + $this->mOldFileName = $obj->get('image_name'); + } + + function update(&$obj) + { + $obj->set('image_nicename', $this->get('image_nicename')); + $obj->set('image_display', true); + $obj->set('imgcat_id', $this->get('imgcat_id')); + + $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $category =& $handler->get($this->get('imgcat_id')); + + $this->mFormFile = $this->get('image_name'); + + if ($this->mFormFile != null) { + $this->mFormFile->setRandomToBodyName('img'); + + $filename = $this->mFormFile->getBodyName(); + $this->mFormFile->setBodyName(substr($filename, 0, 24)); + + $obj->set('image_name', $this->mFormFile->getFileName()); + $obj->set('image_mimetype', $this->mFormFile->getContentType()); + + // + // To store db + // + if ($category->get('imgcat_storetype') == 'db') { + $obj->loadImageBody(); + if (!is_object($obj->mImageBody)) { + $obj->mImageBody =& $obj->createImageBody(); + } + + // + // Access to private member property. + // + $obj->mImageBody->set('image_body', file_get_contents($this->mFormFile->_mTmpFileName)); + } + } + } +} + +?> Index: xoops2jp/html/modules/legacy/forms/SearchResultsForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/forms/SearchResultsForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:25 2006 +++ xoops2jp/html/modules/legacy/forms/SearchResultsForm.class.php Sat Oct 14 23:55:25 2006 @@ -0,0 +1,86 @@ +_mKeywordMin = intval($keywordMin); + } + + function prepare() + { + // + // Set form properties + // + $this->mFormProperties['mids'] =& new XCube_IntArrayProperty('mids'); + $this->mFormProperties['andor'] =& new XCube_StringProperty('andor'); + $this->mFormProperties['query'] =& new XCube_StringProperty('query'); + + // + // Set field properties + // + $this->mFieldProperties['andor'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['andor']->setDependsByArray(array('mask')); + $this->mFieldProperties['andor']->addMessage('required', _MD_BASE_ERROR_MASK, _MD_BASE_LANG_ANDOR); + $this->mFieldProperties['andor']->addVar('mask', '/^(AND|OR|exact)$/i'); + } + + function fetch() + { + parent::fetch(); + + $t_queries = array(); + + $myts =& MyTextSanitizer::getInstance(); + if ($this->get('andor') == 'exact' && strlen($this->get('query')) >= $this->_mKeywordMin) { + $this->mQueries[] = $myts->addSlashes($this->get('query')); + } + else { + $separator = '/[\s,]+/'; + if (defined('_MD_BASE_FORMAT_SEARCH_SEPARATOR')) { + $separator = _MD_BASE_FORMAT_SEARCH_SEPARATOR; + } + + $tmpArr = preg_split($separator, $this->get('query')); + foreach ($tmpArr as $tmp) { + if (strlen($tmp) >= $this->_mKeywordMin) { + $this->mQueries[] = $myts->addSlashes($tmp); + } + } + } + + $this->set('query', implode(" ", $this->mQueries)); + } + + function validate() + { + parent::validate(); + + if (!count($this->mQueries)) { + $this->addErrorMessage(_MD_BASE_ERROR_SEARCH_QUERY_REQUIRED); + } + } + + function update(&$params) + { + $mids = $this->get('mids'); + if (count($mids) > 0) { + $params['mids'] = $mids; + } + + $params['queries'] = $this->mQueries; + $params['andor'] = $this->get('andor'); + $params['maxhit'] = LEGACY_SEARCH_RESULT_MAXHIT; + } +} + +?> Index: xoops2jp/html/modules/legacy/forms/CommentEditForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/forms/CommentEditForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:25 2006 +++ xoops2jp/html/modules/legacy/forms/CommentEditForm.class.php Sat Oct 14 23:55:25 2006 @@ -0,0 +1,174 @@ +mFormProperties['com_id'] =& new XCube_IntProperty('com_id'); + $this->mFormProperties['com_pid'] =& new XCube_IntProperty('com_pid'); + $this->mFormProperties['com_rootid'] =& new XCube_IntProperty('com_rootid'); + $this->mFormProperties['com_modid'] =& new XCube_IntProperty('com_modid'); + $this->mFormProperties['com_itemid'] =& new XCube_IntProperty('com_itemid'); + $this->mFormProperties['com_icon'] =& new XCube_StringProperty('com_icon'); + $this->mFormProperties['com_created'] =& new XCube_IntProperty('com_created'); + $this->mFormProperties['com_modified'] =& new XCube_IntProperty('com_modified'); + $this->mFormProperties['com_ip'] =& new XCube_StringProperty('com_ip'); + $this->mFormProperties['com_title'] =& new XCube_StringProperty('com_title'); + $this->mFormProperties['com_text'] =& new XCube_TextProperty('com_text'); + $this->mFormProperties['com_sig'] =& new XCube_BoolProperty('com_sig'); + $this->mFormProperties['com_status'] =& new XCube_IntProperty('com_status'); + $this->mFormProperties['com_exparams'] =& new XCube_StringProperty('com_exparams'); + $this->mFormProperties['dosmiley'] =& new XCube_BoolProperty('dosmiley'); + $this->mFormProperties['doxcode'] =& new XCube_BoolProperty('doxcode'); + $this->mFormProperties['doimage'] =& new XCube_BoolProperty('doimage'); + $this->mFormProperties['dobr'] =& new XCube_BoolProperty('dobr'); + + // + // Set field properties + // + $this->mFieldProperties['com_id'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_id']->setDependsByArray(array('required')); + $this->mFieldProperties['com_id']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_ID); + + $this->mFieldProperties['com_pid'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_pid']->setDependsByArray(array('required')); + $this->mFieldProperties['com_pid']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_PID); + + $this->mFieldProperties['com_rootid'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_rootid']->setDependsByArray(array('required')); + $this->mFieldProperties['com_rootid']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_ROOTID); + + $this->mFieldProperties['com_modid'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_modid']->setDependsByArray(array('required')); + $this->mFieldProperties['com_modid']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_MODID); + + $this->mFieldProperties['com_itemid'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_itemid']->setDependsByArray(array('required')); + $this->mFieldProperties['com_itemid']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_ITEMID); + + $this->mFieldProperties['com_icon'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_icon']->setDependsByArray(array('required','maxlength')); + $this->mFieldProperties['com_icon']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_ICON, '25'); + $this->mFieldProperties['com_icon']->addMessage('maxlength', _MD_BASE_ERROR_MAXLENGTH, _MD_BASE_LANG_COM_ICON, '25'); + $this->mFieldProperties['com_icon']->addVar('maxlength', 25); + + $this->mFieldProperties['com_ip'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_ip']->setDependsByArray(array('required','maxlength')); + $this->mFieldProperties['com_ip']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_IP, '15'); + $this->mFieldProperties['com_ip']->addMessage('maxlength', _MD_BASE_ERROR_MAXLENGTH, _MD_BASE_LANG_COM_IP, '15'); + $this->mFieldProperties['com_ip']->addVar('maxlength', 15); + + $this->mFieldProperties['com_title'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_title']->setDependsByArray(array('required','maxlength')); + $this->mFieldProperties['com_title']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_TITLE, '255'); + $this->mFieldProperties['com_title']->addMessage('maxlength', _MD_BASE_ERROR_MAXLENGTH, _MD_BASE_LANG_COM_TITLE, '255'); + $this->mFieldProperties['com_title']->addVar('maxlength', 255); + + $this->mFieldProperties['com_text'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_text']->setDependsByArray(array('required')); + $this->mFieldProperties['com_text']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_TEXT); + + $this->mFieldProperties['com_exparams'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_exparams']->setDependsByArray(array('required','maxlength')); + $this->mFieldProperties['com_exparams']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_EXPARAMS, '255'); + $this->mFieldProperties['com_exparams']->addMessage('maxlength', _MD_BASE_ERROR_MAXLENGTH, _MD_BASE_LANG_COM_EXPARAMS, '255'); + $this->mFieldProperties['com_exparams']->addVar('maxlength', 255); + } + + function load(&$obj) + { + $this->set('com_id', $obj->get('com_id')); + $this->set('com_pid', $obj->get('com_pid')); + $this->set('com_rootid', $obj->get('com_rootid')); + $this->set('com_modid', $obj->get('com_modid')); + $this->set('com_itemid', $obj->get('com_itemid')); + $this->set('com_icon', $obj->get('com_icon')); + $this->set('com_created', $obj->get('com_created')); + $this->set('com_modified', $obj->get('com_modified')); + $this->set('com_ip', $obj->get('com_ip')); + $this->set('com_title', $obj->get('com_title')); + $this->set('com_text', $obj->get('com_text')); + $this->set('com_sig', $obj->get('com_sig')); + $this->set('com_status', $obj->get('com_status')); + $this->set('com_exparams', $obj->get('com_exparams')); + $this->set('dosmiley', $obj->get('dosmiley')); + $this->set('doxcode', $obj->get('doxcode')); + $this->set('doimage', $obj->get('doimage')); + $this->set('dobr', $obj->get('dobr')); + } + + function update(&$obj) + { + $obj->set('com_id', $this->get('com_id')); + $obj->set('com_pid', $this->get('com_pid')); + $obj->set('com_rootid', $this->get('com_rootid')); + $obj->set('com_modid', $this->get('com_modid')); + $obj->set('com_itemid', $this->get('com_itemid')); + $obj->set('com_icon', $this->get('com_icon')); + $obj->set('com_created', $this->get('com_created')); + $obj->set('com_modified', time()); + + // + // TODO check NONAME form + // $obj->set('com_uid', $this->get('com_uid')); + + // + // TODO IP will be changed when a administrator will edit or a user will + // edit again. + // + $obj->set('com_ip', $_SERVER['REMOTE_ADDR']); + $obj->set('com_title', $this->get('com_title')); + $obj->set('com_text', $this->get('com_text')); + $obj->set('com_sig', $this->get('com_sig')); + $obj->set('com_status', $this->get('com_status')); + $obj->set('com_exparams', $this->get('com_exparams')); + $obj->set('dosmiley', $this->get('dosmiley')); + $obj->set('doxcode', $this->get('doxcode')); + $obj->set('doimage', $this->get('doimage')); + $obj->set('dobr', $this->get('dobr')); + } +} + +class Legacy_CommentEditForm_Admin extends Legacy_CommentEditForm +{ + function prepare() + { + parent::prepare(); + + // + // Set form properties + // + $this->mFormProperties['dohtml'] =& new XCube_BoolProperty('dohtml'); + } + + function load(&$obj) + { + parent::load($obj); + + $this->set('dohtml', $obj->get('dohtml')); + } + + function update(&$obj) + { + update::load($obj); + + $obj->set('dohtml', $this->get('dohtml')); + } +} + +?> Index: xoops2jp/html/modules/legacy/forms/SearchShowallForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/forms/SearchShowallForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:25 2006 +++ xoops2jp/html/modules/legacy/forms/SearchShowallForm.class.php Sat Oct 14 23:55:25 2006 @@ -0,0 +1,42 @@ +mFormProperties['mid'] =& new XCube_IntProperty('mid'); + $this->mFormProperties['andor'] =& new XCube_StringProperty('andor'); + $this->mFormProperties['query'] =& new XCube_StringProperty('query'); + $this->mFormProperties['start'] =& new XCube_IntProperty('start'); + + // + // Set field properties + // + $this->mFieldProperties['andor'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['andor']->setDependsByArray(array('mask')); + $this->mFieldProperties['andor']->addMessage('required', _MD_BASE_ERROR_MASK, _MD_BASE_LANG_ANDOR); + $this->mFieldProperties['andor']->addVar('mask', '/^(AND|OR|exact)$/i'); + + $this->set('start', 0); + } + + function update(&$params) + { + $params['queries'] = $this->mQueries; + $params['andor'] = $this->get('andor'); + $params['maxhit'] = LEGACY_SEARCH_SHOWALL_MAXHIT; + $params['start'] = $this->get('start'); + } +} + +?> Index: xoops2jp/html/modules/legacy/forms/MiscFriendForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/forms/MiscFriendForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:25 2006 +++ xoops2jp/html/modules/legacy/forms/MiscFriendForm.class.php Sat Oct 14 23:55:25 2006 @@ -0,0 +1,64 @@ +mFormProperties['yname'] =& new XCube_StringProperty('yname'); + $this->mFormProperties['ymail'] =& new XCube_StringProperty('ymail'); + $this->mFormProperties['fname'] =& new XCube_StringProperty('fname'); + $this->mFormProperties['fmail'] =& new XCube_StringProperty('fmail'); + + // + // Set field properties + // + + $this->mFieldProperties['yname'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['yname']->setDependsByArray(array('required')); + $this->mFieldProperties['yname']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_YNAME); + + $this->mFieldProperties['ymail'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['ymail']->setDependsByArray(array('required','email')); + $this->mFieldProperties['ymail']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_YMAIL); + $this->mFieldProperties['ymail']->addMessage('required', _MD_BASE_ERROR_EMAIL, _MD_BASE_LANG_YMAIL); + + $this->mFieldProperties['fname'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['fname']->setDependsByArray(array('required')); + $this->mFieldProperties['fname']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_FNAME); + + $this->mFieldProperties['fmail'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['fmail']->setDependsByArray(array('required','email')); + $this->mFieldProperties['fmail']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_FMAIL); + $this->mFieldProperties['fmail']->addMessage('email', _MD_BASE_ERROR_EMAIL, _MD_BASE_LANG_FMAIL); + } + + function load(&$user) + { + $this->set('yname', $user->get('uname')); + $this->set('ymail', $user->get('email')); + } + + function update(&$mailer) + { + $mailer->assign("YOUR_NAME", $this->get('yname')); + $mailer->assign("FRIEND_NAME", $this->get('fname')); + $mailer->setToEmails($this->get('fmail')); + $mailer->setFromEmail($this->get('ymail')); + $mailer->setFromName($this->get('yname')); + } +} + +?> Index: xoops2jp/html/modules/legacy/forms/SearchShowallbyuserForm.class.php diff -u /dev/null xoops2jp/html/modules/legacy/forms/SearchShowallbyuserForm.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:25 2006 +++ xoops2jp/html/modules/legacy/forms/SearchShowallbyuserForm.class.php Sat Oct 14 23:55:25 2006 @@ -0,0 +1,42 @@ +mFormProperties['uid'] =& new XCube_IntProperty('uid'); + $this->mFormProperties['mid'] =& new XCube_IntProperty('mid'); + $this->mFormProperties['start'] =& new XCube_IntProperty('start'); + + // + // Set field properties + // + $this->mFieldProperties['uid'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['uid']->setDependsByArray(array('required')); + $this->mFieldProperties['uid']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_UID); + + $this->mFieldProperties['mid'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['mid']->setDependsByArray(array('required')); + $this->mFieldProperties['mid']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_MID); + } + + function update(&$params) + { + $params['uid'] = $this->get('uid'); + $params['start'] = $this->get('start'); + } +} + +?> Index: xoops2jp/html/modules/legacy/forms/index.html diff -u /dev/null xoops2jp/html/modules/legacy/forms/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:25 2006 +++ xoops2jp/html/modules/legacy/forms/index.html Sat Oct 14 23:55:25 2006 @@ -0,0 +1 @@ + \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 14 23:55:25 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:25 +0900 Subject: [xoops-cvslog 5103] CVS update: xoops2jp/html/modules/legacy/language/japanese/help Message-ID: <20061014145525.AAF062AC281@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/language/japanese/help/help.html diff -u /dev/null xoops2jp/html/modules/legacy/language/japanese/help/help.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:25 2006 +++ xoops2jp/html/modules/legacy/language/japanese/help/help.html Sat Oct 14 23:55:25 2006 @@ -0,0 +1,51 @@ +

概要

+
    +
  • このモジュールは、XOOPS 2.0.x/2.0.xJP用のモジュールをXOOPS Cube2.1で利用する際に使用します。
  • +
  • このモジュールをインストールすると、XOOPS CubeにXOOPSモジュールを動かすための各クラスを実装して、XOOPS 2.0.xと互換性のある動作を提供します。
  • +
  • また、XOOPS 2.0.x互換モジュールの管理機能を提供します。
  • +
  • 管理者メニューに対して管理用のテーマエンジンを提供します。
  • +
  • 未完成のため、systemモジュールを併用してご利用ください。
  • +
+ +

コマンド検索(アクションサーチ)

+
    +
  • 入力されたキーワードに関する情報を、管理メニューやヘルプから検索します。
  • +
  • XOOPS Cubeの使い方に迷ったときには、先ずこちらを検索してみてください。
  • +
+ +

モジュールの管理/インストール

+
    +
  • インストールされているモジュールの一覧が表示されます。
  • +
  • モジュールをインストールする際は、「モジュールのインストール」よりインストールするモジュールを選んでインストールして下さい。
  • +
  • モジュール一覧の「操作」から、「インフォメーション(!)」ボタンを押すと、モジュールの詳細情報を確認できます。
  • +
  • 一覧画面でモジュールの「名前」を変更すると、メインメニューなどサイト内で表示されるモジュールの名称を変更できます。表示順の数字を変更すると、メインメニューでの表示順を変更できます。数字を「0」にすると、メインメニューでは表示されません。これらは、XOOPS + 2.0.xのモジュール管理と同様の動作です。
  • +
+ +

ブロックの管理/インストール

+
    +
  • 詳しくはこちらをご覧下さい。
  • +
+ +

テーマの管理/インストール

+
    +
  • 詳しくはこちらをご覧下さい。
  • +
+ +

XOOPS 2.0.x 操作移行リスト

+ + +

Cube 2.1 alpha 既知の問題点・注意事項

+
    +
  • 「base module」の名称(ディレクトリ名を含む)は、正式版までに「Legacy module」に変更の予定です。
  • +
  • 幾つかのモジュールは、XOOPS2.0.xが一時的に作成したグローバル変数に依存しているためインストール出来ないものがあります。
  • +
+ +

Cube Legacy 2.1 の次バージョンへ向けての ToDo

+
    +
  • カスタムブロックにプレビュー機能がなく、実装されなくてはならない。
  • +
  • ユーザー検索において、前方一致や後方一致の指定ができなくなっている。
  • +
  • IISを利用した環境の場合、.sqlファイルを持つモジュールのインストールが上手く行かないケースがあります。IISを利用されている方からの動作状況の報告をお待ちしております。
  • +
Index: xoops2jp/html/modules/legacy/language/japanese/help/xoops2.html diff -u /dev/null xoops2jp/html/modules/legacy/language/japanese/help/xoops2.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:25 2006 +++ xoops2jp/html/modules/legacy/language/japanese/help/xoops2.html Sat Oct 14 23:55:25 2006 @@ -0,0 +1,46 @@ +

XOOPS2移行リスト

+
まずはじめに
+

+ systemモジュールの管理機能もすべて有効ですが、これは開発途中のためです。
+ すべての管理機能は各モジュールの管理機能へ適切に移行する予定です。 +

+ +
モジュールの管理
+
    +
  • baseモジュールの管理からモジュールの管理を行うことが出来ます。
  • +
  • 今回、未インストールのモジュールとインストール済のモジュールは操作が分けられました。
  • +
  • インストール済みのモジュールを管理する場合は「モジュールの管理」、新たにモジュールをインストールする場合は、「モジュールのインストール」を使ってください。
  • +
  • インストーラはコールバックを行っていないなど、現在不完全な点があります。
  • +
  • 従来のインストーラでは、インストールを行ったユーザーの権限にあわせて権限設定が行われました。baseモジュールでは、管理者に対してのみ権限を振っています。
  • +
+ +
ユーザーの管理
+
    +
  • ユーザーの管理、ユーザーパーミッションの管理、ユーザーグループの管理、アバター管理、一斉メール送信などの機能はユーザー管理モジュールへ移動する予定です。
  • +
  • このうち、メールに関しては移行を終えていません。
  • +
+ +
テーマの管理
+
    +
  • テーマの管理は、各テーマエンジン(レンダーシステム)で行います。
  • +
  • DBテンプレートはレンダーシステムの特性という考え方になりますので、その管理はレンダーシステムのモジュールへ移動します。ただしこの移行作業はまだ終えていません。
  • +
+ +
New!
+
ブロックの管理
+
    +
  • XOOPS Cube 2.1 + Legacy モジュールでは、ブロックの考え方を整理し、「可視/不可視」をモジュール同様、インストールという概念で考えています。
  • +
  • モジュールをインストールするとブロックも XOOPS Cube + Legacy に登録されますが、使用可能な状態ではありません。モジュールと同様に、ブロックのインストールリストへ進み、導入したいブロックのインストールアイコンをクリックしてください。
  • +
  • アンインストールすると、そのブロックはインストール候補リストに戻ります。
  • +
  • XOOPS Cube 2.1 では非インストールブロックには権限の概念も、アサイン列の概念も、アサインモジュールの概念もありません。ただし、設定は記憶されており、再インストール時の初期値は最後のパラメータが使用されます。
  • +
+ +
TODO
+
    +
  • baseモジュールからlegacyモジュールへ名称を変更する予定です。
  • +
  • コメント機能は新しいものを作っていますが、まだ移行を終えきっていないため、旧ファイルでの動作を行ってます。
  • +
  • イベント通知機能はインストールおよび動作面でコードを抜いてあるため、機能しません。
  • +
  • XOOPS 2.0.x からのデータ移行(現在はデータベーステーブルを定義しないことでインストールを可能としている)
  • +
+ + Index: xoops2jp/html/modules/legacy/language/japanese/help/theme.html diff -u /dev/null xoops2jp/html/modules/legacy/language/japanese/help/theme.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:25 2006 +++ xoops2jp/html/modules/legacy/language/japanese/help/theme.html Sat Oct 14 23:55:25 2006 @@ -0,0 +1,46 @@ +

+テーマとは XOOPS Cube におけるスキン(外観)です。メイン・テーマを変更すると、着せ替え人形のように、あなたのサイトの見た目は大きく変わります。
+XOOPS Cube のためにテーマを配布しているテーマデザイナーのサイトから新しいテーマを入手して、サイトの見た目をカスタマイズしましょう。 +

+ +

メインテーマを変更してみよう

+

+メインテーマとは、あなたのサイトにおけるデフォルトのテーマです。ひとつのサイトにつき、ひとつのメインテーマを指定できます。 +

+
    +
  1. 互換モジュールのサイドメニューから「テーマの管理」をクリックしてください。 +
  2. メインテーマとして使用したいテーマの「選択」ボタンをクリックしてください。 +
+

+設定が終わったら、公開サイトにアクセスしてみてみましょう。新しいデザインのサイトがあなたを待っています。 +

+ +

新しいテーマをインストールしてみよう

+

+テーマデザイナーのサイトで新しいテーマを手に入れましょう。 +配布されているテーマはたいてい圧縮されています。解凍ソフトでファイルを展開してから、使用中の XOOPS Cube の themes ディレクトリへアップロードします。 +

+ +
テーマディレクトリに注意しましょう
+
    +
  • 展開したテーマのディレクトリをXOOPS Cubeのルートディレクトリ下にあるthemesディレクトリへアップロードして下さい。
  • +
  • ディレクトリが二重にならないように、たとえばdefaultテーマであればdefaultディレクトリのすぐ下にtheme.htmlかpackage.ini.phpがある状態でアップロードします。
  • +
+ +
テーマの注意書きをよく読んで!
+

+特定のテーマは、特定の「レンダーシステム」を必要とする場合があります。 +デフォルトで含まれている「互換レンダーシステム」は XOOPS2 のテーマ形式を扱うことができますが、レンダーシステムを追加すれば、異なるフォーマットのテーマを読み込んで使用することができるようになります。 +テーマに注意書きがある場合は、それをよく読んでから、テーマをインストールしてください。 +

+ +

訪問客に好きなテーマを選んでもらおう

+

+訪問客に、あなたが指定したテーマリストから好きなテーマを選択させることができます。 +そのために、選択可能なテーマをリストアップして、「テーマ選択」ブロックをインストールする必要があります。 +

+
    +
  1. まず、テーマリストを作りましょう。互換モジュールのサイドメニューから「テーマの管理」をクリックしてください。
  2. +
  3. 選択可能にしたいテーマをチェックして、送信ボタンをクリックしてください。
  4. +
  5. 「テーマ選択」ブロックをインストールしてください。もし XOOPS Cube のブロックについて分らなければ、それについてのヘルプを参照してください。
  6. +
Index: xoops2jp/html/modules/legacy/language/japanese/help/block.html diff -u /dev/null xoops2jp/html/modules/legacy/language/japanese/help/block.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:25 2006 +++ xoops2jp/html/modules/legacy/language/japanese/help/block.html Sat Oct 14 23:55:25 2006 @@ -0,0 +1,38 @@ +

ブロックの使い方

+

ブロックはあなたが指定したモジュールに表示される小さなコンテンツです。 +それはブロックを持つモジュールと一緒にインストールされます。

+ +
ブロックのインストール
+

まずはじめに、あなたはブロックを使うためにブロックをインストールしなければなりません。 +ブロックのインストールを始めるために、ここをクリックしてください。 +入力フォームで、ブロックの名前やブロックにアクセス可能なグループを指定することが出来ます。 +優先度はあなたが指定したカラムにおける表示順序です。

+ +
カラム
+

ほとんどのテーマは3ペイン方式をとっています。 +中央ペインはさらに2つのペインを持っています。 +これらのペインは、左カラム、中央左カラム、中央カラム、中央右カラム、右カラムと呼ばれています。 +あなたは指定モジュールの指定カラムにブロックを表示させることが出来ます。

+ +

いくつかのテーマは左カラムか右カラムを持っていません。 +そのようなケースでは、片方のカラムはもう片方のカラムに挿入されています。 +そのようなテーマの特徴を理解するために、テーマのマニュアルを読んでください。

+ +
+

特別なレンダーシステムはブロックに関して特別な機能を付与するかもしれません。 +もしそのようなものをインストールしているのであれば、そのレンダーシステムのマニュアルを読んでください。

+ +
ブロック管理
+

ブロック管理で、いつでもブロックの設定を変更できます。 +ここをクリックしてください。その使い方は、他の操作機能に基づいており、ほとんど違いはありません。 +設定を変更する場合は編集アイコンをクリックしてください。

+ +
ブロックのアンインストール
+

ブロックの表示を一時停止したい場合は、アンインストールアイコンをクリックしてください。 +ブロックはアンインストールブロックのリストへ戻ります。 +ブロックの設定はあなたがそのブロックを含むモジュールをアンインストールするまで、保持されます。 +あなたはいつでもそのブロックを再インストールできます。

+ +
FOR XOOPS2 USERS
+

XOOPS Cube Legacy 2.1 では、ブロック管理から未使用ブロックのリストを切り離しました。 +モジュール管理のようなコンセプトになっています。

Index: xoops2jp/html/modules/legacy/language/japanese/help/index.html diff -u /dev/null xoops2jp/html/modules/legacy/language/japanese/help/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:25 2006 +++ xoops2jp/html/modules/legacy/language/japanese/help/index.html Sat Oct 14 23:55:25 2006 @@ -0,0 +1 @@ + \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 14 23:55:26 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:26 +0900 Subject: [xoops-cvslog 5104] CVS update: xoops2jp/html/modules/legacy/.xml/data Message-ID: <20061014145526.1626B2AC27F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/.xml/data/imagebody.cbs.xml diff -u /dev/null xoops2jp/html/modules/legacy/.xml/data/imagebody.cbs.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/.xml/data/imagebody.cbs.xml Sat Oct 14 23:55:25 2006 @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file Index: xoops2jp/html/modules/legacy/.xml/data/image.cbs.xml diff -u /dev/null xoops2jp/html/modules/legacy/.xml/data/image.cbs.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/.xml/data/image.cbs.xml Sat Oct 14 23:55:25 2006 @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file Index: xoops2jp/html/modules/legacy/.xml/data/imagecategory.cbs.xml diff -u /dev/null xoops2jp/html/modules/legacy/.xml/data/imagecategory.cbs.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/.xml/data/imagecategory.cbs.xml Sat Oct 14 23:55:25 2006 @@ -0,0 +1,22 @@ +鏤??xml version="1.0" encoding="utf-8"?> + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 14 23:55:26 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:26 +0900 Subject: [xoops-cvslog 5105] CVS update: xoops2jp/html/modules/legacy/blocks Message-ID: <20061014145526.5B6782AC27F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/blocks/legacy_waiting.php diff -u /dev/null xoops2jp/html/modules/legacy/blocks/legacy_waiting.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/blocks/legacy_waiting.php Sat Oct 14 23:55:26 2006 @@ -0,0 +1,8 @@ + Index: xoops2jp/html/modules/legacy/blocks/legacy_search.php diff -u /dev/null xoops2jp/html/modules/legacy/blocks/legacy_search.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/blocks/legacy_search.php Sat Oct 14 23:55:26 2006 @@ -0,0 +1,7 @@ + Index: xoops2jp/html/modules/legacy/blocks/legacy_comments.php diff -u /dev/null xoops2jp/html/modules/legacy/blocks/legacy_comments.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/blocks/legacy_comments.php Sat Oct 14 23:55:26 2006 @@ -0,0 +1,47 @@ +setLimit(intval($options[0])); + $criteria->setSort('com_created'); + $criteria->setOrder('DESC'); + $comments =& $comment_handler->getObjects($criteria, true); + $member_handler =& xoops_gethandler('member'); + $module_handler =& xoops_gethandler('module'); + $modules =& $module_handler->getObjects(new Criteria('hascomments', 1), true); + $comment_config = array(); + foreach (array_keys($comments) as $i) { + $mid = $comments[$i]->getVar('com_modid'); + $com['module'] = ''.$modules[$mid]->getVar('name').''; + if (!isset($comment_config[$mid])) { + $comment_config[$mid] = $modules[$mid]->getInfo('comments'); + } + $com['id'] = $i; + $com['title'] = ''.$comments[$i]->getVar('com_title').''; + $com['icon'] = $comments[$i]->getVar('com_icon'); + $com['icon'] = ($com['icon'] != '') ? $com['icon'] : 'icon1.gif'; + $com['time'] = formatTimestamp($comments[$i]->getVar('com_created'),'m'); + if ($comments[$i]->getVar('com_uid') > 0) { + $poster =& $member_handler->getUser($comments[$i]->getVar('com_uid')); + if (is_object($poster)) { + $com['poster'] = ''.$poster->getVar('uname').''; + } else { + $com['poster'] = $GLOBALS['xoopsConfig']['anonymous']; + } + } else { + $com['poster'] = $GLOBALS['xoopsConfig']['anonymous']; + } + $block['comments'][] =& $com; + unset($com); + } + return $block; +} + +function b_legacy_comments_edit($options) { + $inputtag = ""; + $form = sprintf(_MB_BASE_DISPLAYC, $inputtag); + return $form; +} +?> Index: xoops2jp/html/modules/legacy/blocks/legacy_siteinfo.php diff -u /dev/null xoops2jp/html/modules/legacy/blocks/legacy_siteinfo.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/blocks/legacy_siteinfo.php Sat Oct 14 23:55:26 2006 @@ -0,0 +1,64 @@ +query("SELECT u.uid, u.uname, u.email, u.user_viewemail, u.user_avatar, g.name AS groupname FROM ".$xoopsDB->prefix("groups_users_link")." l LEFT JOIN ".$xoopsDB->prefix("users")." u ON l.uid=u.uid LEFT JOIN ".$xoopsDB->prefix("groups")." g ON l.groupid=g.groupid WHERE g.group_type='Admin' ORDER BY l.groupid, u.uid"); + if ($xoopsDB->getRowsNum($result) > 0) { + $prev_caption = ""; + $i = 0; + while ($userinfo = $xoopsDB->fetchArray($result)) { + if ($prev_caption != $userinfo['groupname']) { + $prev_caption = $userinfo['groupname']; + $block['groups'][$i]['name'] = $myts->htmlSpecialChars($userinfo['groupname']); + } + if (is_object($xoopsUser)) { + $block['groups'][$i]['users'][] = array('id' => $userinfo['uid'], 'name' => $myts->htmlspecialchars($userinfo['uname']), 'msglink' => "\"\"", 'avatar' => XOOPS_UPLOAD_URL.'/'.$userinfo['user_avatar']); + } else { + if ($userinfo['user_viewemail']) { + $block['groups'][$i]['users'][] = array('id' => $userinfo['uid'], 'name' => $myts->htmlspecialchars($userinfo['uname']), 'msglink' => '', 'avatar' => XOOPS_UPLOAD_URL.'/'.$userinfo['user_avatar']); + } else { + $block['groups'][$i]['users'][] = array('id' => $userinfo['uid'], 'name' => $myts->htmlspecialchars($userinfo['uname']), 'msglink' => ' ', 'avatar' => XOOPS_UPLOAD_URL.'/'.$userinfo['user_avatar']); + } + } + $i++; + } + } + } else { + $block['showgroups'] = false; + } + $block['logourl'] = XOOPS_URL.'/images/'.$options[2]; + if (is_object($xoopsUser)) { + $block['recoomendtime'] = time(); + } else { + $block['recoomendtime'] = 0; + } + $block['popup_width'] = $options[0]; + $block['popup_height'] = $options[1]; + return $block; +} + +function b_legacy_siteinfo_edit($options) { + $form = _MB_BASE_PWWIDTH." "; + $form .= ""; + $form .= "
"._MB_BASE_PWHEIGHT." "; + $form .= ""; + $form .= "
".sprintf(_MB_BASE_LOGO,XOOPS_URL."/images/")." "; + $form .= ""; + $chk = ""; + $form .= "
"._MB_BASE_SADMIN." "; + if ( $options[3] == 1 ) { + $chk = " checked='checked'"; + } + $form .= " "._YES.""; + $chk = ""; + if ( $options[3] == 0 ) { + $chk = " checked=\"checked\""; + } + $form .= " "._NO.""; + return $form; +} +?> Index: xoops2jp/html/modules/legacy/blocks/index.html diff -u /dev/null xoops2jp/html/modules/legacy/blocks/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/blocks/index.html Sat Oct 14 23:55:26 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/blocks/legacy_themes.php diff -u /dev/null xoops2jp/html/modules/legacy/blocks/legacy_themes.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/blocks/legacy_themes.php Sat Oct 14 23:55:26 2006 @@ -0,0 +1,47 @@ + '._YES; + $chk = ""; + if ( $options[0] == 0 ) { + $chk = ' checked="checked"'; + } + $form .= ' '._NO; + $form .= '
'._MB_BASE_LANG_THWIDTH.' '; + $form .= ''; + return $form; +} +?> Index: xoops2jp/html/modules/legacy/blocks/legacy_mainmenu.php diff -u /dev/null xoops2jp/html/modules/legacy/blocks/legacy_mainmenu.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/blocks/legacy_mainmenu.php Sat Oct 14 23:55:26 2006 @@ -0,0 +1,33 @@ +mContext->mXoopsModule; + $xoopsUser =& $root->mController->mRoot->mContext->mXoopsUser; + + $block = array(); + + $module_handler =& xoops_gethandler('module'); + $criteria = new CriteriaCompo(new Criteria('hasmain', 1)); + $criteria->add(new Criteria('isactive', 1)); + $criteria->add(new Criteria('weight', 0, '>')); + $modules =& $module_handler->getObjects($criteria, true); + $moduleperm_handler =& xoops_gethandler('groupperm'); + $groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS; + $read_allowed = $moduleperm_handler->getItemIds('module_read', $groups); + foreach (array_keys($modules) as $i) { + if (in_array($i, $read_allowed)) { + $block['modules'][$i]['name'] = $modules[$i]->getVar('name'); + $block['modules'][$i]['directory'] = $modules[$i]->getVar('dirname'); + $sublinks =& $modules[$i]->subLink(); + if ((count($sublinks) > 0) && (!empty($xoopsModule)) && ($i == $xoopsModule->getVar('mid'))) { + foreach($sublinks as $sublink){ + $block['modules'][$i]['sublinks'][] = array('name' => $sublink['name'], 'url' => XOOPS_URL.'/modules/'.$modules[$i]->getVar('dirname').'/'.$sublink['url']); + } + } else { + $block['modules'][$i]['sublinks'] = array(); + } + } + } + return $block; +} +?> Index: xoops2jp/html/modules/legacy/blocks/legacy_notification.php diff -u /dev/null xoops2jp/html/modules/legacy/blocks/legacy_notification.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/blocks/legacy_notification.php Sat Oct 14 23:55:26 2006 @@ -0,0 +1,47 @@ +mLanguageManager->loadPageTypeMessageCatalog('notification'); + + // Notification must be enabled, and user must be logged in + if (empty($xoopsUser) || !notificationEnabled('block')) { + return false; // do not display block + } + $notification_handler =& xoops_gethandler('notification'); + // Now build the a nested associative array of info to pass + // to the block template. + $block = array(); + $categories =& notificationSubscribableCategoryInfo(); + if (empty($categories)) { + return false; + } + foreach ($categories as $category) { + $section['name'] = $category['name']; + $section['title'] = $category['title']; + $section['description'] = $category['description']; + $section['itemid'] = $category['item_id']; + $section['events'] = array(); + $subscribed_events =& $notification_handler->getSubscribedEvents ($category['name'], $category['item_id'], $xoopsModule->getVar('mid'), $xoopsUser->getVar('uid')); + foreach (notificationEvents($category['name'], true) as $event) { + if (!empty($event['admin_only']) && !$xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { + continue; + } + $subscribed = in_array($event['name'], $subscribed_events) ? 1 : 0; + $section['events'][$event['name']] = array ('name'=>$event['name'], 'title'=>$event['title'], 'caption'=>$event['caption'], 'description'=>$event['description'], 'subscribed'=>$subscribed); + } + $block['categories'][$category['name']] = $section; + } + // Additional form data + $block['target_page'] = "notification_update.php"; + // FIXME: better or more standardized way to do this? + $script_url = explode('/', xoops_getenv('PHP_SELF')); + $script_name = $script_url[count($script_url)-1]; + $block['redirect_script'] = $script_name; + $block['submit_button'] = _NOT_UPDATENOW; + return $block; +} +?> Index: xoops2jp/html/modules/legacy/blocks/legacy_usermenu.php diff -u /dev/null xoops2jp/html/modules/legacy/blocks/legacy_usermenu.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/blocks/legacy_usermenu.php Sat Oct 14 23:55:26 2006 @@ -0,0 +1,44 @@ +mController->mRoot->mContext->mXoopsUser; + + if (is_object($xoopsUser)) { + $block = array(); + + $block['uid'] = $xoopsUser->getVar('uid'); + $block['flagShowInbox'] = false; + + // + // Check does this system have PrivateMessage feature. + // + $url = $root->mController->getPMInboxUrl($block['uid']); + + if ($url != null) { + $block['inbox_url'] = $url; + $block['new_messages'] = $root->mController->getCountUnreadPM($block['uid']); + $block['flagShowInbox']=true; + } + + $block['show_adminlink'] = $xoopsUser->isAdmin(-1); + + return $block; + } + return false; +} +?> From minahito @ users.sourceforge.jp Sat Oct 14 23:55:26 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:26 +0900 Subject: [xoops-cvslog 5106] CVS update: xoops2jp/html/modules/legacy/service Message-ID: <20061014145526.873932AC281@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/service/LegacySearchService.class.php diff -u /dev/null xoops2jp/html/modules/legacy/service/LegacySearchService.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/service/LegacySearchService.class.php Sat Oct 14 23:55:26 2006 @@ -0,0 +1,252 @@ +addType('Legacy_SearchModule'); + $this->addType('Legacy_SearchModuleArray'); + $this->addType('Legacy_SearchItem'); + $this->addType('Legacy_SearchItemArray'); + $this->addType('Legacy_SearchModuleResult'); + $this->addType('Legacy_SearchModuleResultArray'); + $this->addType('Legacy_ArrayOfInt'); + $this->addType('Legacy_ArrayOfString'); + + $this->addFunction(S_PUBLIC_FUNC('Legacy_SearchItemArray searchItems(int mid, Legacy_ArrayOfString queries, string andor, int maxhit, int start)')); + $this->addFunction(S_PUBLIC_FUNC('Legacy_SearchItemArray searchItemsOfUser(int mid, int uid, int maxhit, int start)')); + $this->addFunction(S_PUBLIC_FUNC('Legacy_SearchModuleArray getActiveModules()')); + } + + function getActiveModules() + { + // + // At first, get active module IDs. + // + $handler =& xoops_gethandler('module'); + + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('isactive', 1)); + $criteria->add(new Criteria('hassearch', 1)); + $moduleArr =& $handler->getObjects($criteria); + + + $handler =& xoops_gethandler('groupperm'); + $groupArr = Legacy_SearchUtils::getUserGroups(); + + $ret = array(); + foreach ($moduleArr as $module) { + if ($handler->checkRight('module_read', $module->get('mid'), $groupArr)) { + $ret[] = array( + 'mid' => $module->get('mid'), + 'name' => $module->get('name') + ); + } + } + + return $ret; + } + + function searchItems() + { + // + // TODO Need validation + // + $root =& XCube_Root::getSingleton(); + $request =& $root->mContext->mRequest; + + $mid = intval($request->getRequest('mid')); + $queries = $request->getRequest('queries'); + $andor = $request->getRequest('andor'); + $maxhit = intval($request->getRequest('maxhit')); + $start = intval($request->getRequest('start')); + + $ret = $this->_searchItems($mid, $queries, $andor, $maxhit, $start, 0); + + return $ret; + } + + function searchItemsOfUser() + { + // + // TODO Need validation + // + $root =& XCube_Root::getSingleton(); + $request =& $root->mContext->mRequest; + + $mid = intval($request->getRequest('mid')); + $maxhit = intval($request->getRequest('maxhit')); + $start = intval($request->getRequest('start')); + $uid = intval($request->getRequest('uid')); + + $ret = $this->_searchItems($mid, null, 'and', $maxhit, $start, $uid); + + return $ret; + } + + /** + * @access private + */ + function _searchItems($mid, $queries, $andor, $max_hit, $start, $uid) + { + $modleArr = $this->getActiveModules(); + + $flag = false; + foreach ($modleArr as $module) { + if ($mid == $module['mid']) { + $flag = true; + break; + } + } + + if (!$flag) { + return $ret; + } + + $root =& XCube_Root::getSingleton(); + $timezone = $root->mContext->getXoopsConfig('server_TZ') * 3600; + + $handler =& xoops_gethandler('module'); + $xoopsModule =& $handler->get($mid); + if (!is_object($xoopsModule)) { + return $ret; + } + + if (!$xoopsModule->get('isactive') || !$xoopsModule->get('hassearch')) { + return $ret; + } + + $module =& Legacy_Utils::createModule($xoopsModule); + $results = $module->doLegacyGlobalSearch($queries, $andor, $max_hit, $start, $uid); + + if (is_array($results) && count($results) > 0) { + foreach (array_keys($results) as $key) { + // + // TODO If this service will come to web service, we should + // change format from unixtime to string by timeoffset. + // + if ($results[$key]['time'] != 0) { + $results[$key]['time'] = $results[$key]['time'] - $timezone; + } + } + } + + return $results; + } +} + +class Legacy_SearchUtils +{ + function getUserGroups() + { + $root =& XCube_Root::getSingleton(); + $user =& $root->mController->mRoot->mContext->mXoopsUser; + $groups = array(); + + if (!is_object($user)) { + $groups = XOOPS_GROUP_ANONYMOUS; + } + else { + $groups = $user->getGroups(); + } + + return $groups; + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/service/index.html diff -u /dev/null xoops2jp/html/modules/legacy/service/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/service/index.html Sat Oct 14 23:55:26 2006 @@ -0,0 +1 @@ + \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 14 23:55:26 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:26 +0900 Subject: [xoops-cvslog 5107] CVS update: xoops2jp/html/modules/legacy/preload/protectorLE Message-ID: <20061014145526.B32CC2AC27F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/preload/protectorLE/index.html diff -u /dev/null xoops2jp/html/modules/legacy/preload/protectorLE/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/preload/protectorLE/index.html Sat Oct 14 23:55:26 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/preload/protectorLE/protectorLE.class.php diff -u /dev/null xoops2jp/html/modules/legacy/preload/protectorLE/protectorLE.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/preload/protectorLE/protectorLE.class.php Sat Oct 14 23:55:26 2006 @@ -0,0 +1,28 @@ +getCheckRequestKeys() as $name) { + if (isset($_REQUEST[$name])) { + die(); + } + } + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 14 23:55:26 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:26 +0900 Subject: [xoops-cvslog 5108] CVS update: xoops2jp/html/modules/legacy/preload Message-ID: <20061014145526.F090A2AC281@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/preload/IPbanningFilter.class.php diff -u /dev/null xoops2jp/html/modules/legacy/preload/IPbanningFilter.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/preload/IPbanningFilter.class.php Sat Oct 14 23:55:26 2006 @@ -0,0 +1,29 @@ +mRoot->mContext->getXoopsConfig('enable_badips')) { + if (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR']) { + foreach ($this->mController->mConfig['bad_ips'] as $bi) { + if(!empty($bi) && strstr($_SERVER['REMOTE_ADDR'], $bi)!==false) { + die(); + } + } + } + } + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/preload/Wating.class.php diff -u /dev/null xoops2jp/html/modules/legacy/preload/Wating.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/preload/Wating.class.php Sat Oct 14 23:55:26 2006 @@ -0,0 +1,90 @@ +mController->mRoot->mDelegateManager->add('Legacyblock.Wating.Show',array(&$this,"callbackWatingShow")); + } + + function callbackWatingShow(&$modules) { + $xoopsDB =& Database::getInstance(); + // for News Module + $module_handler =& xoops_gethandler('module'); + if ($module_handler->getCount(new Criteria('dirname', 'news'))) { + $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("stories")." WHERE published=0"); + if ( $result ) { + $blockVal = array(); + $blockVal['adminlink'] = XOOPS_URL."/modules/news/admin/index.php?op=newarticle"; + list($blockVal['pendingnum']) = $xoopsDB->fetchRow($result); + $blockVal['lang_linkname'] = _MB_BASE_SUBMS; + $modules[] = $blockVal; + } + } + // for MyLinks Module + if ($module_handler->getCount(new Criteria('dirname', 'mylinks'))) { + $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mylinks_links")." WHERE status=0"); + if ( $result ) { + $blockVal = array(); + $blockVal['adminlink'] = XOOPS_URL."/modules/mylinks/admin/index.php?op=listNewLinks"; + list($blockVal['pendingnum']) = $xoopsDB->fetchRow($result); + $blockVal['lang_linkname'] = _MB_BASE_WLNKS; + $modules[] = $blockVal; + } + $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mylinks_broken")); + if ( $result ) { + $blockVal = array(); + $blockVal['adminlink'] = XOOPS_URL."/modules/mylinks/admin/index.php?op=listBrokenLinks"; + list($blockVal['pendingnum']) = $xoopsDB->fetchRow($result); + $blockVal['lang_linkname'] = _MB_BASE_BLNK; + $modules[] = $blockVal; + } + $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mylinks_mod")); + if ( $result ) { + $blockVal = array(); + $blockVal['adminlink'] = XOOPS_URL."/modules/mylinks/admin/index.php?op=listModReq"; + list($blockVal['pendingnum']) = $xoopsDB->fetchRow($result); + $blockVal['lang_linkname'] = _MB_BASE_MLNKS; + $modules[] = $blockVal; + } + } + // for MyDownloads Modules + if ($module_handler->getCount(new Criteria('dirname', 'mydownloads'))) { + $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE status=0"); + if ( $result ) { + $blockVal = array(); + $blockVal['adminlink'] = XOOPS_URL."/modules/mydownloads/admin/index.php?op=listNewDownloads"; + list($blockVal['pendingnum']) = $xoopsDB->fetchRow($result); + $blockVal['lang_linkname'] = _MB_BASE_WDLS; + $modules[] = $blockVal; + } + $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_broken").""); + if ( $result ) { + $blockVal = array(); + $blockVal['adminlink'] = XOOPS_URL."/modules/mydownloads/admin/index.php?op=listBrokenDownloads"; + list($blockVal['pendingnum']) = $xoopsDB->fetchRow($result); + $blockVal['lang_linkname'] = _MB_BASE_BFLS; + $modules[] = $blockVal; + } + $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_mod").""); + if ( $result ) { + $blockVal = array(); + $blockVal['adminlink'] = XOOPS_URL."/modules/mydownloads/admin/index.php?op=listModReq"; + list($blockVal['pendingnum']) = $xoopsDB->fetchRow($result); + $blockVal['lang_linkname'] = _MB_BASE_MFLS; + $modules[] = $blockVal; + } + } + // for Comments + $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("xoopscomments")." WHERE com_status=1"); + if ( $result ) { + $blockVal = array(); + $blockVal['adminlink'] = XOOPS_URL."/modules/base/admin/index.php?action=CommentList&com_modid=0&com_status=1"; + list($blockVal['pendingnum']) = $xoopsDB->fetchRow($result); + $blockVal['lang_linkname'] =_MB_BASE_COMPEND; + $modules[] = $blockVal; + } + } +} +?> Index: xoops2jp/html/modules/legacy/preload/ThemeSelect.class.php diff -u /dev/null xoops2jp/html/modules/legacy/preload/ThemeSelect.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/preload/ThemeSelect.class.php Sat Oct 14 23:55:26 2006 @@ -0,0 +1,72 @@ +mIsSelectableTheme =& new XCube_Delegate(); + $this->mIsSelectableTheme->register('Base_ThemeSelect.IsSelectableTheme'); + + $controller->mSetupUser->add(array(&$this, 'doChangeTheme')); + } + + function preBlockFilter() + { + $this->mController->mRoot->mDelegateManager->add("Site.CheckLogin.Success", "Base_ThemeSelect::callbackCheckLoginSuccess"); + } + + /** + * Because this process needs sessions, this functions is added to + * SiteLogin event. + * + * @param XoopsUser $xoopsUser Must parameter, because this is added to login event. + */ + function doChangeTheme(&$principal, &$controller, &$context) + { + if (!empty($_POST['xoops_theme_select']) && $this->_isSelectableTheme($_POST['xoops_theme_select'])) { + $this->mController->setTheme($_POST['xoops_theme_select']); + $_SESSION['xoopsUserTheme'] = $_POST['xoops_theme_select']; + } elseif (!empty($_SESSION['xoopsUserTheme']) && $this->_isSelectableTheme($_SESSION['xoopsUserTheme'])) { + $this->mController->setTheme($_SESSION['xoopsUserTheme']); + } + } + + function callbackCheckLoginSuccess(&$xoopsUser) + { + // + // Check Theme and set it to session. + // + $userTheme = $xoopsUser->get('theme'); + if (is_array($userTheme) && in_array($userTheme, $this->mRoot->mContext->getXoopsConfig('theme_set_allowed'))) { + $_SESSION['xoopsUserTheme'] = $userTheme; + } + } + + function _isSelectableTheme($theme_name) + { + return in_array($theme_name, $this->mRoot->mContext->getXoopsConfig('theme_set_allowed')); + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/preload/index.html diff -u /dev/null xoops2jp/html/modules/legacy/preload/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/preload/index.html Sat Oct 14 23:55:26 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/preload/IndexRedirector.class.php diff -u /dev/null xoops2jp/html/modules/legacy/preload/IndexRedirector.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:26 2006 +++ xoops2jp/html/modules/legacy/preload/IndexRedirector.class.php Sat Oct 14 23:55:26 2006 @@ -0,0 +1,28 @@ +mController->mRoot->mDelegateManager->add("Legacypage.Top.Access", array(&$this, "redirect")); + } + + function redirect() + { + $startPage = $this->mRoot->mContext->getXoopsConfig('startpage'); + if ($startPage != null && $startPage != "--") { + $handler =& xoops_gethandler('module'); + $module =& $handler->get($startPage); + if (is_object($module)) { + $this->mController->executeForward(XOOPS_URL . '/modules/' . $module->getShow('dirname') . '/'); + } + } + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 14 23:55:27 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:27 +0900 Subject: [xoops-cvslog 5109] CVS update: xoops2jp/html/modules/legacy/.xml Message-ID: <20061014145527.2B3C52AC27F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/.xml/misc_friend.xml diff -u /dev/null xoops2jp/html/modules/legacy/.xml/misc_friend.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/.xml/misc_friend.xml Sat Oct 14 23:55:27 2006 @@ -0,0 +1,29 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/.xml/search_results.xml diff -u /dev/null xoops2jp/html/modules/legacy/.xml/search_results.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/.xml/search_results.xml Sat Oct 14 23:55:27 2006 @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/.xml/image_upload.xml diff -u /dev/null xoops2jp/html/modules/legacy/.xml/image_upload.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/.xml/image_upload.xml Sat Oct 14 23:55:27 2006 @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/.xml/comment_edit.xml diff -u /dev/null xoops2jp/html/modules/legacy/.xml/comment_edit.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/.xml/comment_edit.xml Sat Oct 14 23:55:27 2006 @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/.xml/index.html diff -u /dev/null xoops2jp/html/modules/legacy/.xml/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/.xml/index.html Sat Oct 14 23:55:27 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/.xml/search_showallbyuser.xml diff -u /dev/null xoops2jp/html/modules/legacy/.xml/search_showallbyuser.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/.xml/search_showallbyuser.xml Sat Oct 14 23:55:27 2006 @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + Index: xoops2jp/html/modules/legacy/.xml/search_showall.xml diff -u /dev/null xoops2jp/html/modules/legacy/.xml/search_showall.xml:1.1.2.1 --- /dev/null Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/.xml/search_showall.xml Sat Oct 14 23:55:27 2006 @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + From minahito @ users.sourceforge.jp Sat Oct 14 23:55:27 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:27 +0900 Subject: [xoops-cvslog 5110] CVS update: xoops2jp/html/modules/legacy/language/japanese Message-ID: <20061014145527.608172AC281@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/language/japanese/admin.php diff -u /dev/null xoops2jp/html/modules/legacy/language/japanese/admin.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/language/japanese/admin.php Sat Oct 14 23:55:27 2006 @@ -0,0 +1,359 @@ +管理メニューの位置を忘れたときに使いましょう (例)利用許諾文"); +define('_AD_BASE_LANG_ACTIVE', "アクティブ"); +define('_AD_BASE_LANG_ADD_CUSTOM_BLOCK', "カスタムブロック追加"); +define('_AD_BASE_LANG_ADMIN_MENU', "管理画面情報"); +define('_AD_BASE_LANG_ADMINMENU_HAS_MAIN', "管理画面"); +define('_AD_BASE_LANG_ADMINMENU_INDEX', "管理画面ページ"); +define('_AD_BASE_LANG_ADMINMENU_MENU', "管理メニュー設定ファイル"); +define('_AD_BASE_LANG_ADMINMENU_NAME', "管理画面名"); +define('_AD_BASE_LANG_ADMINMENU_URL', "管理画面URL"); +define('_AD_BASE_LANG_AGREE', "同意する"); +define('_AD_BASE_LANG_ALL_MODULE', "すべてのモジュール"); +define('_AD_BASE_LANG_ALL_MODULES', "すべてのモジュール"); +define('_AD_BASE_LANG_ALL_STATUS', "すべてのステータス"); +define('_AD_BASE_LANG_AUTHOR', "作者"); +define('_AD_BASE_LANG_BCACHETIME', "キャッシュ"); +define('_AD_BASE_LANG_BID', "BID"); +define('_AD_BASE_LANG_BLOCK_EDIT', "ブロック編集"); +define('_AD_BASE_LANG_BLOCK_INSTALL', "ブロックのインストール"); +define('_AD_BASE_LANG_BLOCK_KEY', "キー"); +define('_AD_BASE_LANG_BLOCK_MOD', "モジュール"); +define('_AD_BASE_LANG_BLOCK_TYPE', "ブロックタイプ"); +define('_AD_BASE_LANG_BLOCK_UNINSTALL', "ブロックのアンインストール"); +define('_AD_BASE_LANG_BLOCK_VAL', "値"); +define('_AD_BASE_LANG_BLOCKS_INFO', "ブロック情報"); +define('_AD_BASE_LANG_C_TYPE', "タイプ"); +define('_AD_BASE_LANG_CENTER_BLOCK_CENTER', "中央ブロック - 中央"); +define('_AD_BASE_LANG_CENTER_BLOCK_LEFT', "中央ブロック - 左"); +define('_AD_BASE_LANG_CENTER_BLOCK_RIGHT', "中央ブロック - 右"); +define('_AD_BASE_LANG_COM_CREATED', "作成日時"); +define('_AD_BASE_LANG_COM_MODIFIED', "編集日時"); +define('_AD_BASE_LANG_COM_SIG', "署名"); +define('_AD_BASE_LANG_COM_STATUS', "ステータス"); +define('_AD_BASE_LANG_COM_UID', "ユーザー"); +define('_AD_BASE_LANG_COMMENT_DELETE', "コメント削除"); +define('_AD_BASE_LANG_COMMENT_EDIT', "コメント編集"); +define('_AD_BASE_LANG_COMMENT_NEW', "コメント新規追加"); +define('_AD_BASE_LANG_COMMENT_SVC', "コメント機能"); +define('_AD_BASE_LANG_COMMENT_VIEW', "コメント閲覧"); +define('_AD_BASE_LANG_CONFCAT_ID', "コンフィグカテゴリ ID"); +define('_AD_BASE_LANG_CONFCAT_NAME', "コンフィグカテゴリ名"); +define('_AD_BASE_LANG_CONFIG_INFO', "一般設定情報"); +define('_AD_BASE_LANG_CONFIG_KEY', "キー"); +define('_AD_BASE_LANG_CONFIG_VAL', "値"); +define('_AD_BASE_LANG_CONTENT', "コンテンツ"); +define('_AD_BASE_LANG_CONTROL', "操作"); +define('_AD_BASE_LANG_CREATE_NEW', "新規作成"); +define('_AD_BASE_LANG_CTYPE_HTML', "HTMLタグ"); +define('_AD_BASE_LANG_CTYPE_PHP', "PHPスクリプト"); +define('_AD_BASE_LANG_CTYPE_WITH_SMILIES', "自動フォーマット(顔アイコン有効)"); +define('_AD_BASE_LANG_CTYPE_WITHOUT_SMILIES', "自動フォーマット(顔アイコン無効)"); +define('_AD_BASE_LANG_CUSTOM_HTML', "カスタム(HTML)"); +define('_AD_BASE_LANG_CUSTOM_PHP', "カスタム(PHP)"); +define('_AD_BASE_LANG_CUSTOM_WITH_SMILIES', "カスタム(顔アイコン有効)"); +define('_AD_BASE_LANG_CUSTOM_WITHOUT_SMILIES', "カスタム(顔アイコン無効)"); +define('_AD_BASE_LANG_CUSTOMBLOCK_DELETE', "カスタムブロック削除"); +define('_AD_BASE_LANG_CUSTOMBLOCK_EDIT', "カスタムブロック編集"); +define('_AD_BASE_LANG_DEACTIVATE', "非アクティブ"); +define('_AD_BASE_LANG_DIRNAME', "ディレクトリ名"); +define('_AD_BASE_LANG_DISPLAY', "表示"); +define('_AD_BASE_LANG_DOIMAGE', "[img]タグを有効にする"); +define('_AD_BASE_LANG_EDIT_FUNC', "編集用コールバック関数"); +define('_AD_BASE_LANG_FEATURE_SVC_INFO', "フューチャー機能情報"); +define('_AD_BASE_LANG_FORCE_MODE', "強制クリーンアップ:正常なアンインストールが不可能なケースでも、可能な限りアンインストールを続行し、データベースをクリーンにします"); +define('_AD_BASE_LANG_FORMAT', "形式"); +define('_AD_BASE_LANG_FUNC_FILE', "コールバック関数定義ファイル"); +define('_AD_BASE_LANG_FUNC_NUM', "関数ナンバ"); +define('_AD_BASE_LANG_GET_THE_LATEST_VERSION', "最新版を入手する"); +define('_AD_BASE_LANG_GROUPID', "グループ"); +define('_AD_BASE_LANG_ID', "ID"); +define('_AD_BASE_LANG_IMAGE_COUNT', "画像数"); +define('_AD_BASE_LANG_IMAGE_CREATED', "作成日"); +define('_AD_BASE_LANG_IMAGE_DELETE', "イメージの削除"); +define('_AD_BASE_LANG_IMAGE_DISPLAY', "表示"); +define('_AD_BASE_LANG_IMAGE_EDIT', "イメージの編集"); +define('_AD_BASE_LANG_IMAGE_ID', "ID"); +define('_AD_BASE_LANG_IMAGE_LIST', "イメージの一覧"); +define('_AD_BASE_LANG_IMAGE_NAME', "画像"); +define('_AD_BASE_LANG_IMAGE_NEW', "イメージの新規追加"); +define('_AD_BASE_LANG_IMAGE_WEIGHT', "表示順"); +define('_AD_BASE_LANG_IMAGECATEGORY_DELETE', "イメージカテゴリの削除"); +define('_AD_BASE_LANG_IMAGECATEGORY_EDIT', "イメージカテゴリの編集"); +define('_AD_BASE_LANG_IMAGECATEGORY_LIST', "イメージカテゴリの一覧"); +define('_AD_BASE_LANG_IMAGECATEGORY_NEW', "イメージカテゴリの新規追加"); +define('_AD_BASE_LANG_IMGCAT_DISPLAY', "表示"); +define('_AD_BASE_LANG_IMGCAT_ID', "カテゴリID"); +define('_AD_BASE_LANG_IMGCAT_MAXHEIGHT', "高さ(px)"); +define('_AD_BASE_LANG_IMGCAT_MAXSIZE', "容量(byte)"); +define('_AD_BASE_LANG_IMGCAT_MAXWIDTH', "横幅(px)"); +define('_AD_BASE_LANG_IMGCAT_NAME', "カテゴリ名"); +define('_AD_BASE_LANG_IMGCAT_READ_GROUPS', "イメージ・マネジャーの使用を許可するグループ"); +define('_AD_BASE_LANG_IMGCAT_STORETYPE', "保存先"); +define('_AD_BASE_LANG_IMGCAT_TYPE', "カテゴリタイプ"); +define('_AD_BASE_LANG_IMGCAT_UPLOAD_GROUPS', "イメージのアップロードを許可するグループ"); +define('_AD_BASE_LANG_IMGCAT_WEIGHT', "優先度"); +define('_AD_BASE_LANG_INFORMATION', "インフォメーション"); +define('_AD_BASE_LANG_INSTALL', "インストール"); +define('_AD_BASE_LANG_ISACTIVE', "アクティブ"); +define('_AD_BASE_LANG_LAST_MODIFIED', "最終更新日時"); +define('_AD_BASE_LANG_LASTUPDATE', "最終更新日"); +define('_AD_BASE_LANG_LCR', "右-中央-左"); +define('_AD_BASE_LANG_LIST', "一覧"); +define('_AD_BASE_LANG_MAINMENU_HAS_MAIN', "メインメニュー"); +define('_AD_BASE_LANG_MAINMENU_INFO', "メインメニュー情報"); +define('_AD_BASE_LANG_MOD_AUTHOR', "モジュール作者"); +define('_AD_BASE_LANG_MOD_BASIC_INFO', "モジュール概要"); +define('_AD_BASE_LANG_MOD_CREDITS', "署名&メモ"); +define('_AD_BASE_LANG_MOD_DESC', "モジュール説明"); +define('_AD_BASE_LANG_MOD_DIR_NAME', "ディレクトリ名"); +define('_AD_BASE_LANG_MOD_LICENSE_INFO', "ライセンス情報"); +define('_AD_BASE_LANG_MOD_MID', "MID"); +define('_AD_BASE_LANG_MOD_NAME', "モジュール名"); +define('_AD_BASE_LANG_MODINSTALL', "モジュールのインストール"); +define('_AD_BASE_LANG_MODINSTALL_ADVICE', "_%s_ をインストールします。よろしいですか?"); +define('_AD_BASE_LANG_MODINSTALL_CONF', "モジュールインストールの確認"); +define('_AD_BASE_LANG_MODINSTALL_LIST_ADVICE', "安全のために : 使用する予定がないモジュールは、サーバーから削除しましょう"); +define('_AD_BASE_LANG_MODINSTALL_LOG', "モジュールインストール ログ"); +define('_AD_BASE_LANG_MODINSTALL_SUCCESS', "モジュールインストール終了"); +define('_AD_BASE_LANG_MODLIST', "モジュール管理"); +define('_AD_BASE_LANG_MODULE_LICENSE', "ライセンス"); +define('_AD_BASE_LANG_MODUNINSTALL_ADVICE', "_%s_ をアンインストールします。よろしいですか?"); +define('_AD_BASE_LANG_MODUNINSTALL_CONF', "モジュールアンインストールの確認"); +define('_AD_BASE_LANG_MODUNINSTALL_LOG', "モジュールアンインストール ログ"); +define('_AD_BASE_LANG_MODUNINSTALL_SUCCESS', "モジュールアンインストール終了"); +define('_AD_BASE_LANG_MODUPDATE_ADVICE', "_%s_ をアップデートします。よろしいですか?"); +define('_AD_BASE_LANG_MODUPDATE_CONF', "モジュールアップデートの確認"); +define('_AD_BASE_LANG_MODUPDATE_LOG', "モジュールアップデート ログ"); +define('_AD_BASE_LANG_MODUPDATE_SUCCESS', "モジュールアップデート終了"); +define('_AD_BASE_LANG_NAME', "名前"); +define('_AD_BASE_LANG_NO', "いいえ"); +define('_AD_BASE_LANG_NO_ADMINMENU', "管理画面情報は設定されていません"); +define('_AD_BASE_LANG_NO_AGREE', "同意しない"); +define('_AD_BASE_LANG_NO_BLOCK', "ブロック情報は設定されていません"); +define('_AD_BASE_LANG_NO_CHANGE', "変更なし"); +define('_AD_BASE_LANG_NO_CONFIG', "一般設定情報は設定されていません"); +define('_AD_BASE_LANG_NO_MAINMENU', "メインメニュー情報は設定されていません"); +define('_AD_BASE_LANG_NO_SETTING', "管理画面はありません"); +define('_AD_BASE_LANG_NO_SQL', "SQL情報は設定されていません"); +define('_AD_BASE_LANG_NO_SUBMENU', "サブメニューは設定されていません"); +define('_AD_BASE_LANG_NO_TEMPLATE', "テンプレート情報は設定されていません"); +define('_AD_BASE_LANG_NONE', "なし"); +define('_AD_BASE_LANG_NOTIF_SVC', "イベント通知機能"); +define('_AD_BASE_LANG_OPTIONS', "オプション"); +define('_AD_BASE_LANG_PACKAGE', "パッケージ情報"); +define('_AD_BASE_LANG_RENDER', "レンダーシステム"); +define('_AD_BASE_LANG_RES_FOR_COMMENT', "このコメントへのレスポンス"); +define('_AD_BASE_LANG_RESULT', "検索結果"); +define('_AD_BASE_LANG_SEARCH', "検索"); +define('_AD_BASE_LANG_SEARCH_SVC', "検索機能"); +define('_AD_BASE_LANG_SELECTED', "選択"); +define('_AD_BASE_LANG_SHOW_FUNC', "表示用コールバック関数"); +define('_AD_BASE_LANG_SIDE', "表示サイド"); +define('_AD_BASE_LANG_SIDE_BLOCK_LEFT', "サイドブロック - 左"); +define('_AD_BASE_LANG_SIDE_BLOCK_RIGHT', "サイドブロック - 右"); +define('_AD_BASE_LANG_SMARTY', "Smarty"); +define('_AD_BASE_LANG_SMILE_URL', "画像"); +define('_AD_BASE_LANG_SMILES_DELETE', "顔アイコン削除"); +define('_AD_BASE_LANG_SMILES_EDIT', "顔アイコン編集"); +define('_AD_BASE_LANG_SMILES_NEW', "顔アイコン新規追加"); +define('_AD_BASE_LANG_SQL_ENGINE', "SQLエンジン"); +define('_AD_BASE_LANG_SQL_FILE_NAME', "SQLファイル名"); +define('_AD_BASE_LANG_SQL_HAS_MAIN', "SQLの使用"); +define('_AD_BASE_LANG_SQL_INFO', "SQL情報"); +define('_AD_BASE_LANG_SQL_MYSQL', "MySQL"); +define('_AD_BASE_LANG_SUBMENU_NAME', "サブメニュー名"); +define('_AD_BASE_LANG_SUBMENU_URL', "サブメニューURL"); +define('_AD_BASE_LANG_TABLE_NAME', "テーブル名"); +define('_AD_BASE_LANG_TABLE_NUM', "No"); +define('_AD_BASE_LANG_TABLE_PROPERTIES', "テーブル構造"); +define('_AD_BASE_LANG_TARGET_GROUPS', "アクセス権のあるグループ"); +define('_AD_BASE_LANG_TARGET_MODULES', "表示先のモジュール"); +define('_AD_BASE_LANG_TEMPLATE', "テンプレート"); +define('_AD_BASE_LANG_TEMPLATE_DESC', "テンプレートの説明"); +define('_AD_BASE_LANG_TEMPLATE_ENGINE', "テンプレート エンジン"); +define('_AD_BASE_LANG_TEMPLATE_FILE', "テンプレート ファイル名"); +define('_AD_BASE_LANG_TEMPLATE_HAS_MAIN', "テンプレートの使用"); +define('_AD_BASE_LANG_TEMPLATE_INFO', "テンプレート情報"); +define('_AD_BASE_LANG_TEMPLATE_KEY', "キー"); +define('_AD_BASE_LANG_THEME', "テーマ"); +define('_AD_BASE_LANG_THEME_ADMIN', "テーマ管理"); +define('_AD_BASE_LANG_TITLE', "タイトル"); +define('_AD_BASE_LANG_TOPPAGE', "トップページ"); +define('_AD_BASE_LANG_UNINSTALL', "アンインストール"); +define('_AD_BASE_LANG_UPDATE', "アップデート"); +define('_AD_BASE_LANG_VERSION', "バージョン"); +define('_AD_BASE_LANG_VISIBLE', "可視"); +define('_AD_BASE_LANG_WEIGHT', "並び順"); +define('_AD_BASE_MESSAGE_BLOCK_HAS_BEEN_UNINSTALLED', "ブロック {0} をアンインストールしました"); +define('_AD_BASE_MESSAGE_BLOCK_INSTALLED', "ブロック {0} をインストールしました"); +define('_AD_BASE_MESSAGE_CHILDREN_DELETED_TOGETHER', "一緒に削除されるデータ"); +define('_AD_BASE_MESSAGE_CONFIRM_DELETE', "以下のデータを本当に削除しますか?"); +define('_AD_BASE_MESSAGE_DATABASE_SETUP_FINISHED', "データベーステーブルのセットアップを終了しました"); +define('_AD_BASE_MESSAGE_DELETE_MODULEINFO_FROM_DB', "モジュール情報をデータベースから削除しました"); +define('_AD_BASE_MESSAGE_DROP_TABLE', "テーブル {0} をドロップしました"); +define('_AD_BASE_MESSAGE_INSERT_CONFIG', "コンフィグ {0} を追加しました"); +define('_AD_BASE_MESSAGE_INSTALLATION_MODULE_SUCCESSFUL', "{0} モジュールのインストールに成功しました"); +define('_AD_BASE_MESSAGE_TEMPLATE_INSTALLED', "テンプレート {0} をインストールしました"); +define('_AD_BASE_MESSAGE_UNINSTALLATION_MODULE_SUCCESSFUL', "{0} モジュールのアンインストールに成功しました"); +define('_AD_BASE_MESSAGE_UNINSTALLATION_BLOCK_SUCCESSFUL', "{0} ブロックのアンインストールに成功しました"); +define('_AD_BASE_MESSAGE_UPDATE_STARTED', "アップデートを開始します"); +define('_AD_BASE_MESSAGE_UPDATING_MODULE_SUCCESSFUL', "{0} モジュールのアップデートに成功しました"); +define('_AD_BASE_TIPS_ADD_CUSTOM_BLOCK', "新しいブロックをインストールして、サイトをカスタマイズしましょう。
モジュール付属のブロック以外にも、カスタムブロックを追加して、自由なメッセージをブロックカラムに追加できます。"); +define('_AD_BASE_TIPS_BLOCK_UNINSTALL', "Q:ブロックをアンインストールすると?
A:すべての設定を記録したまま、表示やリストから消えます。設定を記録してますので、簡単に再インストールすることができます。"); +define('_AD_BASE_TIPS_CUSTOM_BLOCK_UNINSTALL', "Q:カスタムブロックをアンインストールすると?
A:削除されずに、すべての設定を記録したまま、未インストールブロックリストへ移動します。未インストールリストから削除できるほか、再インストール操作で簡単に復活させることができます。"); +define('_AD_BASE_TIPS_IMGCAT_STORETYPE', "イメージ・ファイルの保存先に、ファイルシステムもしくはデータベースを選択できます。この設定は後から変更できません。
データベースへの保存はBLOBというバックアップやリストアに不向きなフォーマットが用いられることに注意しましょう。"); +define('_AD_BASE_TIPS_INSTALL_BLOCK', "ブロックをインストールしてサイトをカスタマイズしましょう。インストール時に表示オプションなどを調整できます。
ウェルカムメッセージなど、文章を表示したい場合は、カスタムブロックを追加しましょう。"); +define('_AD_BASE_TIPS_THEME_ADMIN', "選択ボタンを押して、このサイトの外観をお好みのテーマに変更しましょう。
ユーザーにテーマを選択させたいですか? チェックボックスにチェックを入れて、「テーマ選択ブロック」にリストアップしてください。詳しくはヘルプをご覧ください。"); +define('_MD_AM_ADMINML', "管理者メールアドレス"); +define('_MD_AM_ADMNOTSET', "管理者のメールアドレスが設定されていません。"); +define('_MD_AM_ALLOWHTML', "コメント文においてHTMLタグの使用を許可する"); +define('_MD_AM_ALLOWIMAGE', "投稿への画像ファイルの表示を許可する"); +define('_MD_AM_ALLOWREG', "新規ユーザの登録を許可する"); +define('_MD_AM_ALLOWREGDSC', "「はい」を選択すると新規ユーザの登録を許可します。"); +define('_MD_AM_ALLOWTHEME', "サイトテーマの選択を許可する"); +define('_MD_AM_ALWDHTML', "投稿文の中で使用可能なHTMLタグ"); +define('_MD_AM_ANONNAME', "未登録ユーザの表示名"); +define('_MD_AM_ANONPOST', "未登録ユーザの投稿を許可する"); +define('_MD_AM_BADIPS', "このサイトへのアクセス拒否IPを入れてください。
IPとIPの間は|で区切ってください。大文字小文字は区別しません。正規表現が使用可能です。"); +define('_MD_AM_BADIPSDSC', "^aaa.bbb.ccc は それで始まる IPアドレスからのアクセスを拒否します。
aaa.bbb.ccc$ は それで終わる IPアドレスからのアクセスを拒否します。
aaa.bbb.ccc はその IPアドレスを含むアドレスからのアクセスを拒否します。"); +define('_MD_AM_CENSOR', "禁止用語設定"); +define('_MD_AM_CENSORRPLC', "禁止用語を置き換える文字列:"); +define('_MD_AM_CENSORRPLCDSC', "禁止用語がこのテキストボックスで指定した文字列に置き換えられます。"); +define('_MD_AM_CENSORWRD', "禁止用語"); +define('_MD_AM_CENSORWRDDSC', "ユーザが投稿する際に使用を禁止sする文字列を入力してください。文字列と文字列の間は
| で区切り、大文字小文字は区別しません。"); +define('_MD_AM_CHNGUTHEME', "全てのユーザのテーマを変更する"); +define('_MD_AM_CLOSESITE', "サイトを閉鎖する"); +define('_MD_AM_CLOSESITEDSC', "特定グループ以外はサイトにアクセスすることができないようにします。"); +define('_MD_AM_CLOSESITEOK', "サイト閉鎖時でもアクセスが認められているグループ"); +define('_MD_AM_CLOSESITEOKDSC', "デフォルトの管理者グループは常にアクセスできます"); +define('_MD_AM_CLOSESITETXT', "サイト閉鎖の理由"); +define('_MD_AM_CLOSESITETXTDSC', "サイト閉鎖時に表示します"); +define('_MD_AM_COMMODE', "デフォルトのコメント表示モード"); +define('_MD_AM_COMORDER', "デフォルトのコメント表示順"); +define('_MD_AM_DEBUGMODE', "デバッグモードを有効にする"); +define('_MD_AM_DEBUGMODE0', "オフ"); +define('_MD_AM_DEBUGMODE1', "PHPデバグ"); +define('_MD_AM_DEBUGMODE2', "MySQL/Blocksデバグ"); +define('_MD_AM_DEBUGMODE3', "Smartyテンプレート・デバグ"); +define('_MD_AM_DEBUGMODEDSC', "(デバッグ用に使用してください。実際のサイト運営時には解除してください。)"); +define('_MD_AM_DEFAULTTZ', "デフォルト・タイムゾーン"); +define('_MD_AM_DOBADIPS', "IPアクセス拒否を有効にしますか?"); +define('_MD_AM_DOBADIPSDSC', "アクセス拒否IPからのユーザはあなたのサイトには入れません。"); +define('_MD_AM_DOCENSOR', "禁止用語処理を有効にする"); +define('_MD_AM_DOCENSORDSC', "このオプションを有効にすると禁止用語のチェックを行うようになります。このオプションを無効にすることでサイトの処理速度が向上するかもしれません。"); +define('_MD_AM_DONTCHNG', "以下は絶対に変更しないで下さい"); +define('_MD_AM_DOSEARCH', "グローバルサーチを有効にする"); +define('_MD_AM_DOSEARCHDSC', "サイト内の投稿/記事の全検索を行います。"); +define('_MD_AM_DTHEME', "デフォルト・サイトテーマ"); +define('_MD_AM_DTPLSET', "デフォルトのテンプレート・セット"); +define('_MD_AM_GENERAL', "一般設定"); +define('_MD_AM_IFUCANT', "もしファイルのアクセス権限を変更できない場合は、このファイルを直接編集してください。"); +define('_MD_AM_INVLDMINPASS', "パスワードの最低文字数が正しくありません。"); +define('_MD_AM_INVLDSCOOK', "セッションIDクッキーの名称が正しくありません。"); +define('_MD_AM_INVLDSEXP', "セッションのタイムアウト時間が正しくありません。"); +define('_MD_AM_INVLDUCOOK', "ユーザクッキーの名称が正しくありません。"); +define('_MD_AM_IPBAN', "IP Banning"); +define('_MD_AM_LANGUAGE', "使用言語"); +define('_MD_AM_LOADINGIMG', "「loading..」画像を表示させる"); +define('_MD_AM_MAILER', "メール設定"); +define('_MD_AM_MAILER_', ""); +define('_MD_AM_MAILER_MAIL', ""); +define('_MD_AM_MAILER_SENDMAIL', ""); +define('_MD_AM_MAILERMETHOD', "メール送信方法"); +define('_MD_AM_MAILERMETHODDESC', "メールを送信する方法を選択してください。デフォルトではPHPのmail()関数を使用します。"); +define('_MD_AM_MAILFROM', "送信者メールアドレス"); +define('_MD_AM_MAILFROMDESC', ""); +define('_MD_AM_MAILFROMNAME', "送信者"); +define('_MD_AM_MAILFROMNAMEDESC', "メール送信の際に送信者として表示される名前を入力してください"); +define('_MD_AM_MAILFROMUID', "PM送信者"); +define('_MD_AM_MAILFROMUIDDESC', "プライベートメッセージ送信の際に送信者としてデフォルト表示されるユーザを選択してください"); +define('_MD_AM_MINSEARCH', "キーワード最低文字数"); +define('_MD_AM_MINSEARCHDSC', "ユーザが検索を行う際に必要なキーワードの最低文字数を指定してください。"); +define('_MD_AM_MODCACHE', "モジュール・キャッシュ"); +define('_MD_AM_MODCACHEDSC', "各モジュールのコンテンツをキャッシュしておく時間の長さを指定してください。モジュールに既にキャッシュ機能がある場合は「キャッシュしない」を選択することをお勧めします。ブロック・キャッシュは含まれません。"); +define('_MD_AM_MODCONFIG', "モジュール設定オプション"); +define('_MD_AM_MYIP', "あなたのIPアドレスを入力してください。"); +define('_MD_AM_MYIPDSC', "このIPは、バナーのインプレッションおよびサイト統計においてカウントされません。"); +define('_MD_AM_NO', "いいえ"); +define('_MD_AM_NOMODULE', "キャッシュ可能なモジュールはありません。"); +define('_MD_AM_NONE', "なし"); +define('_MD_AM_NOTIFYTO', "通知先グループ"); +define('_MD_AM_PERMADDNG', "グループ・パーミッションの追加に失敗しました(パーミッション名:%s 対象アイテム:%s 対象グループ:%s)"); +define('_MD_AM_PERMADDNGP', "このアイテムの上位アイテム全てにパーミッションを与える必要があります"); +define('_MD_AM_PERMADDOK', "グループ・パーミッションを追加しました(パーミッション名:%s 対象アイテム:%s 対象グループ:%s)"); +define('_MD_AM_PERMRESETNG', "「%s」モジュールのグループ・パーミッション設定の初期化に失敗しました"); +define('_MD_AM_PREFMAIN', "システム設定メイン"); +define('_MD_AM_REMEMBER', "このファイルをウェブ上の管理者画面から編集できるようにするには、このファイルのアクセス権限を666(chmod 666)に設定する必要があります。"); +define('_MD_AM_SEARCH', "検索オプション"); +define('_MD_AM_SENDMAILPATH', "sendmailへのパス"); +define('_MD_AM_SENDMAILPATHDESC', "sendmailへのフルパスを記入してください"); +define('_MD_AM_SERVERTZ', "サーバのタイムゾーン"); +define('_MD_AM_SESSEXPIRE', "セッションがタイムアウトするまでの時間(単位:分)"); +define('_MD_AM_SESSEXPIREDSC', "セッションがタイムアウトするまでの時間を分単位で指定してください。(「セッションの設定をカスタマイズする」が有効の場合のみ)"); +define('_MD_AM_SESSNAME', "セッションIDの保存に使用するクッキーの名称"); +define('_MD_AM_SESSNAMEDSC', "このクッキーに保存されるセッションIDは、セッションがタイムアウトするか、ユーザがログアウトするまでの間有効です。(「セッションの設定をカスタマイズする」が有効の場合のみ)"); +define('_MD_AM_SITECACHE', "サイト・キャッシュ"); +define('_MD_AM_SITECACHEDSC', "サイト内のコンテンツをモジュール別にキャッシュします。サイト・キャッシュは、モジュール独自のキャッシュ機能(ある場合)よりも優先されます。"); +define('_MD_AM_SITENAME', "サイト名"); +define('_MD_AM_SITEPREF', "サイト一般設定"); +define('_MD_AM_SLOGAN', "サイト副題"); +define('_MD_AM_SMTPHOST', "SMTPサーバアドレス"); +define('_MD_AM_SMTPHOSTDESC', "SMTPサーバのアドレスの一覧を記入してください。"); +define('_MD_AM_SMTPPASS', "SMTPAuthパスワード"); +define('_MD_AM_SMTPPASSDESC', "SMTPAuthを使用してSMTPサーバにアクセスするためのパスワード"); +define('_MD_AM_SMTPUSER', "SMTPAuthユーザ名"); +define('_MD_AM_SMTPUSERDESC', "SMTPAuthを使用してSMTPサーバにアクセスするためのユーザ名"); +define('_MD_AM_SSLLINK', "SSLログインページへのURL"); +define('_MD_AM_SSLPOST', "SSLログイン時に使用するPOST変数の名称"); +define('_MD_AM_STARTPAGE', "開始モジュール"); +define('_MD_AM_THEMEFILE', "themes/ ディレクトリからの自動アップデートを有効にする"); +define('_MD_AM_THEMEFILEDSC', "現在使用中のテーマよりも更新日時が新しいファイルが themes/ディレクトリ下にある場合に、自動的にデータベース内のデータを更新します。サイト公開時には無効にする事をお勧めします。"); +define('_MD_AM_THEMEOK', "選択可能なテーマ"); +define('_MD_AM_THEMEOKDSC', "ユーザが選択することのできるテーマファイルを指定してください"); +define('_MD_AM_THEMESET', "テーマ・セット"); +define('_MD_AM_USEGZIP', "gzip圧縮を使用する"); +define('_MD_AM_USEMYSESS', "セッションの設定をカスタマイズする"); +define('_MD_AM_USEMYSESSDSC', "セッションの設定のカスタマイズ(セッションがタイムアウトするまでの時間の設定や、セッション名の変更)を行えます"); +define('_MD_AM_USESSL', "ログインにSSLを使用する"); +define('_MD_AM_YES', "はい"); + +?> Index: xoops2jp/html/modules/legacy/language/japanese/charset_mysql.php diff -u /dev/null xoops2jp/html/modules/legacy/language/japanese/charset_mysql.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/language/japanese/charset_mysql.php Sat Oct 14 23:55:27 2006 @@ -0,0 +1,8 @@ +queryF("/*!41000 SET NAMES ujis */"); + $GLOBALS['xoopsDB']->queryF("/*!41000 SET SESSION character_set_database=ujis */"); + $GLOBALS['xoopsDB']->queryF("/*!41000 SET SESSION character_set_server=ujis */"); + $GLOBALS['xoopsDB']->queryF("/*!41000 SET SESSION collation_connection=ujis_japanese_ci */"); + $GLOBALS['xoopsDB']->queryF("/*!41000 SET SESSION collation_database=ujis_japanese_ci */"); + $GLOBALS['xoopsDB']->queryF("/*!41000 SET SESSION collation_server=ujis_japanese_ci */"); +?> Index: xoops2jp/html/modules/legacy/language/japanese/main.php diff -u /dev/null xoops2jp/html/modules/legacy/language/japanese/main.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/language/japanese/main.php Sat Oct 14 23:55:27 2006 @@ -0,0 +1,55 @@ + Index: xoops2jp/html/modules/legacy/language/japanese/blocks.php diff -u /dev/null xoops2jp/html/modules/legacy/language/japanese/blocks.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/language/japanese/blocks.php Sat Oct 14 23:55:27 2006 @@ -0,0 +1,36 @@ + Index: xoops2jp/html/modules/legacy/language/japanese/modinfo.php diff -u /dev/null xoops2jp/html/modules/legacy/language/japanese/modinfo.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/language/japanese/modinfo.php Sat Oct 14 23:55:27 2006 @@ -0,0 +1,39 @@ + Index: xoops2jp/html/modules/legacy/language/japanese/index.html diff -u /dev/null xoops2jp/html/modules/legacy/language/japanese/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/language/japanese/index.html Sat Oct 14 23:55:27 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/language/japanese/global.php diff -u /dev/null xoops2jp/html/modules/legacy/language/japanese/global.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/language/japanese/global.php Sat Oct 14 23:55:27 2006 @@ -0,0 +1,203 @@ +ここをクリックしてください'); +define('_WARNINSTALL2','注意:ファイル%sがサーバ上に存在します。インストール完了後は必ず削除してください。'); +define('_WARNINWRITEABLE','注意:ファイル%sへの書き込みが可能となっています。このファイルのパーミッション設定を変更してください。'); +define('_WARNPHPENV','注意:PHPの設定環境の中で、"%s" が "%s"になっています。%s'); +define('_WARNSECURITY','(サイトの脆弱につながる危険性があります。)'); + +//%%%%%% File Name themeuserpost.php %%%%% +define('_POSTEDBY','投稿者:'); // Posted date +define('_PROFILE','プロフィール'); +define('_VISITWEBSITE','ホームページ'); +define('_SENDPMTO','%sさんにプライベートメッセージを送る。'); +define('_SENDEMAILTO','%sさんにメールを送る。'); +define('_ADD','追加'); +define('_REPLY','返信'); +define('_DATE','投稿日時:'); + +//%%%%%% File Name admin_functions.php %%%%% +define('_MAIN','トップ'); +define('_MANUAL','マニュアル'); +define('_INFO','バージョン情報'); +define('_CPHOME','管理メニュー'); +define('_YOURHOME','ホームページ'); + +//%%%%%% File Name misc.php (who's-online popup) %%%%% +define('_WHOSONLINE','オンライン状況'); +define('_GUESTS', 'ゲスト'); +define('_MEMBERS', '登録ユーザ'); +define('_ONLINEPHRASE','%s 人のユーザが現在オンラインです。'); +define('_ONLINEPHRASEX','%s 人のユーザが %s を参照しています。'); +define('_CLOSE','閉じる'); // Close window + +//%%%%%% File Name module.textsanitizer.php %%%%% +define('_QUOTEC','引用:'); + +//%%%%%% File Name admin.php %%%%% +define('_NOPERM','このエリアへのアクセスは許可されていません。'); + +//%%%%% Common Phrases %%%%% +define('_NO','いいえ'); +define('_YES','はい'); +define('_EDIT','編集'); +define('_DELETE','削除'); +define('_VIEW','閲覧'); +define('_SUBMIT','送信'); +define('_MODULENOEXIST','選択されたページは存在しません'); +define('_ALIGN','位置'); +define('_LEFT','左'); +define('_CENTER','中央'); +define('_RIGHT','右'); +define('_FORM_ENTER', '%sを入力してください'); +// %s represents file name +define('_MUSTWABLE','ファイル %s への書き込み権限があるかどうか確認してください。'); + +define('_PREFERENCES', '一般設定'); +define('_VERSION', 'バージョン'); +define('_DESCRIPTION', '説明'); +define('_ERRORS', 'エラー'); +define('_NONE', 'なし'); +define('_ON','投稿日時:'); +define('_READS','ヒット'); +define('_WELCOMETO','%sへようこそ'); +define('_SEARCH','検索'); +define('_ALL', 'すべて'); +define('_TITLE', '題名'); //-no use +define('_OPTIONS', 'オプション'); +define('_QUOTE', '引用'); //-no use +define('_LIST', '一覧'); +define('_LOGIN','ログイン'); +define('_USERNAME','ユーザ名: '); +define('_PASSWORD','パスワード: '); +define('_SELECT','選択'); +define('_IMAGE','画像'); +define('_SEND','送信'); +define('_CANCEL','キャンセル'); +define('_ASCENDING','昇順'); +define('_DESCENDING','降順'); +define('_BACK', '戻る'); +define('_NOTITLE', '無題'); +define('_RETURN_TOP', 'Topへ戻る'); + +/* Image manager */ +define('_IMGMANAGER','イメージ・マネジャー'); +define('_NUMIMAGES', '%s 枚'); +define('_ADDIMAGE','画像ファイルの追加'); +define('_IMAGENAME','画像名:'); +define('_IMGMAXSIZE','アップロードを許可するファイルサイズ(バイト数):'); +define('_IMGMAXWIDTH','アップロードを許可する画像の横幅(ピクセル数):'); +define('_IMGMAXHEIGHT','アップロードを許可する画像の高さ(ピクセル数):'); +define('_IMAGECAT','カテゴリ:'); +define('_IMAGEFILE','画像ファイル名:'); +define('_IMGWEIGHT','イメージマネジャーでの表示順:'); +define('_IMGDISPLAY','この画像を表示する'); +define('_IMAGEMIME','MIMEタイプ:'); +define('_FAILFETCHIMG', 'アップロードファイル %s が取得できませんでした。'); +define('_FAILSAVEIMG', '画像ファイル %s をデータベースに格納できませんでした。'); +define('_NOCACHE', 'キャッシュなし'); +define('_CLONE', '複製'); + + + +//%%%%% File Name class/xoopsform/formmatchoption.php %%%%% +define('_STARTSWITH', '前方一致'); +define('_ENDSWITH', '後方一致'); +define('_MATCHES', '完全一致'); +define('_CONTAINS', '次の単語を含む'); + +//%%%%%% File Name commentform.php %%%%% +define('_REGISTER','登録'); + +//%%%%%% File Name xoopscodes.php %%%%% +define('_SIZE','大きさ'); // font size +define('_FONT','フォント'); // font family +define('_COLOR','色'); // font color +define('_EXAMPLE','サンプル'); +define('_ENTERURL','リンクしたいサイトのURLを入力してください。'); +define('_ENTERWEBTITLE','サイト名を入力してください。'); +define('_ENTERIMGURL','画像ファイルのURLを入力してください。'); +define('_ENTERIMGPOS','画像ファイルの配置を決めてください。'); +define('_IMGPOSRORL','「R」または「r」を入力すると右側に、「L」または「l」を入力すると左側に表示されます。指定しない場合は空欄にしてください。'); +define('_ERRORIMGPOS','入力が正しくありません。画像ファイルの配置を決めてください。'); +define('_ENTEREMAIL','リンクしたいメールアドレスを入力してください。'); +define('_ENTERCODE','プログラムコードを入力してください。'); +define('_ENTERQUOTE','引用したい文を入力してください。'); +define('_ENTERTEXTBOX','テキストボックスに入力してください。'); +define('_ALLOWEDCHAR','最大バイト数:'); +define('_CURRCHAR','現在のバイト数:'); +define('_PLZCOMPLETE','表題およびメッセージ文を記入してください。'); +define('_MESSAGETOOLONG','メッセージ文が長すぎます。'); + +//%%%%% TIME FORMAT SETTINGS %%%%% + +define("_DATESTRING","Y-n-j G:i:s"); +define("_MEDIUMDATESTRING","Y-n-j G:i"); +define("_SHORTDATESTRING","Y-n-j"); + +define('_SECOND', '1秒'); +define('_SECONDS', '%s秒'); +define('_MINUTE', '1分'); +define('_MINUTES', '%s分'); +define('_HOUR', '1時間'); +define('_HOURS', '%s時間'); +define('_DAY', '1日'); +define('_DAYS', '%s日'); +define('_WEEK', '1週間'); +define('_MONTH', '1ヶ月'); + +define('_HELP', "ヘルプ"); + +//%%%%% LANGUAGE SPECIFIC SETTINGS %%%%% +if (!defined('_CHARSET')) { + define('_CHARSET', 'EUC-JP'); +} + +if (!defined('_LANGCODE')) { + define('_LANGCODE', 'ja'); +} + +// change 0 to 1 if this language is a multi-bytes language +define('XOOPS_USE_MULTIBYTES', '1'); + +function xoops_language_trim($text) +{ + if (function_exists('mb_convert_kana')) { + $text = mb_convert_kana($text, 's'); + } + $text = trim($text); + return $text; +} +?> \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 14 23:55:27 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:27 +0900 Subject: [xoops-cvslog 5111] CVS update: xoops2jp/html/modules/legacy/admin/theme/design Message-ID: <20061014145527.900D42AC27F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/theme/design/logo.gif Index: xoops2jp/html/modules/legacy/admin/theme/design/orange.gif Index: xoops2jp/html/modules/legacy/admin/theme/design/menulist.gif Index: xoops2jp/html/modules/legacy/admin/theme/design/navy.gif Index: xoops2jp/html/modules/legacy/admin/theme/design/index.html diff -u /dev/null xoops2jp/html/modules/legacy/admin/theme/design/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/admin/theme/design/index.html Sat Oct 14 23:55:27 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/admin/theme/design/buttonbg.gif From minahito @ users.sourceforge.jp Sat Oct 14 23:55:27 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:27 +0900 Subject: [xoops-cvslog 5112] CVS update: xoops2jp/html/modules/legacy/admin/theme Message-ID: <20061014145527.B7F3F2AC281@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/theme/index.html diff -u /dev/null xoops2jp/html/modules/legacy/admin/theme/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/admin/theme/index.html Sat Oct 14 23:55:27 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/admin/theme/admin_theme.html diff -u /dev/null xoops2jp/html/modules/legacy/admin/theme/admin_theme.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/admin/theme/admin_theme.html Sat Oct 14 23:55:27 2006 @@ -0,0 +1,99 @@ + + + + + + + +<{$xoops_sitename}> : <{$smarty.const._CPHOME}> + +<{stylesheet file=style.css}> +<{stylesheet file=module.css}> + + + + +
+ + + + + + + + + + + + + + + + +
+ <{$xoops_lblocks.sidemenu.content}> + + <{foreach name=lblock item=block from=$xoops_lblocks}> + <{if $block.name != 'action_search' && $block.name != 'sidemenu'}> + <{$block.content}> + <{/if}> + <{/foreach}> + + +<{* option + + /option *}> + +
<{$xoops_contents}>
+ + +
+ + + +
+ + +<{$stdout_buffer}> \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 14 23:55:28 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:28 +0900 Subject: [xoops-cvslog 5113] CVS update: xoops2jp/html/modules/legacy/admin/blocks Message-ID: <20061014145528.40B4D2AC27F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/blocks/AdminActionSearch.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/blocks/AdminActionSearch.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/admin/blocks/AdminActionSearch.class.php Sat Oct 14 23:55:28 2006 @@ -0,0 +1,63 @@ +getRenderBuffer(); + $render->setTemplateName('legacy_admin_block_actionsearch.html'); + + $root =& XCube_Root::getSingleton(); + $renderSystem =& $root->getRenderSystem($this->getRenderSystemName()); + + $renderSystem->renderBlock($render); + } + + function hasResult() + { + return true; + } + + function &getResult() + { + $dmy = "dummy"; + return $dmy; + } + + function getRenderSystemName() + { + return 'Legacy_AdminRenderSystem'; + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/admin/blocks/AdminSideMenu.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/blocks/AdminSideMenu.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/admin/blocks/AdminSideMenu.class.php Sat Oct 14 23:55:28 2006 @@ -0,0 +1,98 @@ +mController; + $user =& $root->mController->mRoot->mContext->mXoopsUser; + $render =& $this->getRenderBuffer(); + + $this->mCurrentModule =& $controller->mRoot->mContext->mXoopsModule; + + if ($this->mCurrentModule->get('dirname') == 'base') { + if (xoops_getrequest('action') == "help") { + $moduleHandler =& xoops_gethandler('module'); + $t_module =& $moduleHandler->getByDirname(xoops_gethandler('dirname')); + if (is_object($t_module)) { + $this->mCurrentModule =& $t_module; + } + } + } + + $db=&$controller->getDB(); + + $mod = $db->prefix("modules"); + $perm = $db->prefix("group_permission"); + $groups = implode(",", $user->getGroups()); + + $sql = "SELECT DISTINCT ${mod}.mid FROM ${mod},${perm} " . + "WHERE ${mod}.isactive=1 AND ${mod}.mid=${perm}.gperm_itemid AND ${perm}.gperm_name='module_admin' AND ${perm}.gperm_groupid IN (${groups}) " . + "ORDER BY ${mod}.weight, ${mod}.mid"; + + $result=$db->query($sql); + + $handler =& xoops_gethandler('module'); + + while($row = $db->fetchArray($result)) { + $xoopsModule =& $handler->get($row['mid']); + $module =& Legacy_Utils::createModule($xoopsModule); + + $this->mModules[] =& $module; + unset($module); + } + + $render->setTemplateName('legacy_admin_block_sidemenu.html'); + $render->setAttribute('modules', $this->mModules); + $render->setAttribute('currentModule', $this->mCurrentModule); + + $renderSystem =& $root->getRenderSystem($this->getRenderSystemName()); + + $renderSystem->renderBlock($render); + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/admin/blocks/index.html diff -u /dev/null xoops2jp/html/modules/legacy/admin/blocks/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/admin/blocks/index.html Sat Oct 14 23:55:28 2006 @@ -0,0 +1 @@ + \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 14 23:55:28 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:28 +0900 Subject: [xoops-cvslog 5114] CVS update: xoops2jp/html/modules/legacy/lib/ShadeSoap Message-ID: <20061014145528.6D1F82AC281@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/lib/ShadeSoap/NusoapServer.class.php diff -u /dev/null xoops2jp/html/modules/legacy/lib/ShadeSoap/NusoapServer.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/lib/ShadeSoap/NusoapServer.class.php Sat Oct 14 23:55:28 2006 @@ -0,0 +1,150 @@ +debug('in invoke_method, methodname=' . $this->methodname . ' methodURI=' . $this->methodURI . ' SOAPAction=' . $this->SOAPAction); + + if ($this->wsdl) { + if ($this->opData = $this->wsdl->getOperationData($this->methodname)) { + $this->debug('in invoke_method, found WSDL operation=' . $this->methodname); + $this->appendDebug('opData=' . $this->varDump($this->opData)); + } elseif ($this->opData = $this->wsdl->getOperationDataForSoapAction($this->SOAPAction)) { + // Note: hopefully this case will only be used for doc/lit, since rpc services should have wrapper element + $this->debug('in invoke_method, found WSDL soapAction=' . $this->SOAPAction . ' for operation=' . $this->opData['name']); + $this->appendDebug('opData=' . $this->varDump($this->opData)); + $this->methodname = $this->opData['name']; + } else { + $this->debug('in invoke_method, no WSDL for operation=' . $this->methodname); + $this->fault('Client', "Operation '" . $this->methodname . "' is not defined in the WSDL for this service"); + return; + } + } else { + $this->debug('in invoke_method, no WSDL to validate method'); + } + + // if a . is present in $this->methodname, we see if there is a class in scope, + // which could be referred to. We will also distinguish between two deliminators, + // to allow methods to be called a the class or an instance + $class = ''; + $method = ''; + if (strpos($this->methodname, '..') > 0) { + $delim = '..'; + } else if (strpos($this->methodname, '.') > 0) { + $delim = '.'; + } else { + $delim = ''; + } + + if (strlen($delim) > 0 && substr_count($this->methodname, $delim) == 1 && + class_exists(substr($this->methodname, 0, strpos($this->methodname, $delim)))) { + // get the class and method name + $class = substr($this->methodname, 0, strpos($this->methodname, $delim)); + $method = substr($this->methodname, strpos($this->methodname, $delim) + strlen($delim)); + $this->debug("in invoke_method, class=$class method=$method delim=$delim"); + } + + // does method exist? + if ($class == '') { + if (!function_exists($this->methodname)) { + $this->debug("in invoke_method, function '$this->methodname' not found!"); + $this->result = 'fault: method not found'; + $this->fault('Client',"method '$this->methodname' not defined in service"); + return; + } + } else { + $method_to_compare = (substr(phpversion(), 0, 2) == '4.') ? strtolower($method) : $method; + if (!in_array($method_to_compare, get_class_methods($class))) { + $this->debug("in invoke_method, method '$this->methodname' not found in class '$class'!"); + $this->result = 'fault: method not found'; + $this->fault('Client',"method '$this->methodname' not defined in service"); + return; + } + } + + // evaluate message, getting back parameters + // verify that request parameters match the method's signature + if(! $this->verify_method($this->methodname,$this->methodparams)){ + // debug + $this->debug('ERROR: request not verified against method signature'); + $this->result = 'fault: request failed validation against method signature'; + // return fault + $this->fault('Client',"Operation '$this->methodname' not defined in service."); + return; + } + + // if there are parameters to pass + $this->debug('in invoke_method, params:'); + $this->appendDebug($this->varDump($this->methodparams)); + $this->debug("in invoke_method, calling '$this->methodname'"); + + if ($class == '') { + $this->debug('in invoke_method, calling function using call_user_func_array()'); + $call_arg = "$this->methodname"; // straight assignment changes $this->methodname to lower case after call_user_func_array() + } elseif ($delim == '..') { + $this->debug('in invoke_method, calling class method using call_user_func_array()'); + $call_arg = array ($class, $method); + } else { + $this->debug('in invoke_method, calling instance method using call_user_func_array()'); + $instance = new $class (); + $call_arg = array(&$instance, $method); + } + + // + // Insert CUBE CODE + // + $root =& XCube_Root::getSingleton(); + $root->mController->mUser->setService(true); + $retValue = call_user_func_array($call_arg, array($root->mController->mUser, $this->methodparams)); + + if (is_array($retValue)) { + $retValue = $this->_encodeUTF8($retValue, $root->mLanguageManager); + } + else { + $retValue = $root->mLanguageManager->encodeUTF8($retValue); + } + + $this->methodreturn = $retValue; + + $this->debug('in invoke_method, methodreturn:'); + $this->appendDebug($this->varDump($this->methodreturn)); + $this->debug("in invoke_method, called method $this->methodname, received $this->methodreturn of type ".gettype($this->methodreturn)); + } + + function _encodeUTF8($arr, &$languageManager) + { + foreach (array_keys($arr) as $key) { + if (is_array($arr[$key])) { + $arr[$key] = $this->_encodeUTF8($arr[$key], $languageManager); + } + else { + $arr[$key] = $languageManager->encodeUTF8($arr[$key]); + } + } + + return $arr; + } +} + + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 14 23:55:28 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:28 +0900 Subject: [xoops-cvslog 5115] CVS update: xoops2jp/html/modules/legacy/lib/ShadePlus Message-ID: <20061014145528.962C62AC27F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/lib/ShadePlus/SoapClient.class.php diff -u /dev/null xoops2jp/html/modules/legacy/lib/ShadePlus/SoapClient.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/lib/ShadePlus/SoapClient.class.php Sat Oct 14 23:55:28 2006 @@ -0,0 +1,96 @@ +mClient =& new soap_client($service, true); + } + + function call($operation, $args) + { + $root =& XCube_Root::getSingleton(); + + $args = $this->_encodeUTF8($args, $root->mLanguageManager); + + $retValue = $this->mClient->call($operation, $args); + + if (is_array($retValue)) { + $retValue = $this->_decodeUTF8($retValue, $root->mLanguageManager); + } + else { + $retValue = $root->mLanguageManager->decodeUTF8($retValue); + } + + return $retValue; + } + + function _encodeUTF8($arr, &$languageManager) + { + foreach (array_keys($arr) as $key) { + if (is_array($arr[$key])) { + $arr[$key] = $this->_encodeUTF8($arr[$key], $languageManager); + } + else { + $arr[$key] = $languageManager->encodeUTF8($arr[$key]); + } + } + + return $arr; + } + + function _decodeUTF8($arr, &$languageManager) + { + foreach (array_keys($arr) as $key) { + if (is_array($arr[$key])) { + $arr[$key] = $this->_decodeUTF8($arr[$Key], $languageManager); + } + else { + $arr[$Key] = $languageManager->decodeUTF8($arr[$key]); + } + } + + return $arr; + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/lib/ShadePlus/ServiceServer.class.php diff -u /dev/null xoops2jp/html/modules/legacy/lib/ShadePlus/ServiceServer.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/lib/ShadePlus/ServiceServer.class.php Sat Oct 14 23:55:28 2006 @@ -0,0 +1,158 @@ +_mService =& $service; + $this->_mServer =& new ShadeSoap_NusoapServer(); + + $this->_mServer->configureWSDL($this->_mService->mServiceName, $this->_mService->mNameSpace); + $this->_mServer->wsdl->schemaTargetNamespace = $this->_mService->mNameSpace; + } + + function prepare() + { + $this->_parseType(); + $this->_parseFunction(); + } + + function _parseType() + { + // + // FIXME + // + foreach ($this->_mService->_mTypes as $className) { + if (class_exists($className)) { + if (call_user_func(array($className, 'isArray')) == true) { + $targetClassName = call_user_func(array($className, 'getClassName')); + + if (XCube_ServiceUtils::isXSD($targetClassName)) { + $targetClassName = 'xsd:' . $targetClassName; + } + else { + $targetClassName = 'tns:' . $targetClassName; + } + + $this->_mServer->wsdl->addComplexType( + $className, + 'complexType', + 'array', + '', + 'SOAP-ENC:Array', + array(), + array( + array('ref' => 'SOAP-ENC:arrayType', 'wsdl:arrayType' => $targetClassName . '[]') + ), + $targetClassName + ); + } + else { + $t_fieldArr = call_user_func(array($className, 'getPropertyDefinition')); + $t_arr = array(); + foreach ($t_fieldArr as $t_field) { + $name = $t_field['name']; + $type = $t_field['type']; + + if (XCube_ServiceUtils::isXSD($t_field['type'])) { + $type = 'xsd:' . $type; + } + else { + $type = 'tns:' . $type; + } + + $t_arr[$name] = array('name' => $name, 'type' => $type); + } + + $this->_mServer->wsdl->addComplexType( + $className, + 'complexType', + 'struct', + 'all', + '', + $t_arr + ); + } + } + } + } + + function _parseFunction() + { + // + // FIXME + // + foreach ($this->_mService->_mFunctions as $func) { + if (XCube_ServiceUtils::isXSD($func['out'])) { + $t_out = 'xsd:' . $func['out']; + } + else { + $t_out = 'tns:' . $func['out']; + } + + $out['return'] = $t_out; + + // + // Parse IN + // + $in = array(); + foreach ($func['in'] as $name => $type) { + if (XCube_ServiceUtils::isXSD($type)) { + $t_type = 'xsd:' . $type; + } + else { + $t_type = 'tns:' . $type; + } + $in[$name] = $t_type; + } + + $this->_mServer->register($this->_mService->mClassName . "." . $func['name'], $in, $out, $this->_mService->mNameSpace); + } + } + + function executeService() + { + $HTTP_RAW_POST_DATA = isset($GLOBALS['HTTP_RAW_POST_DATA'])? $GLOBALS['HTTP_RAW_POST_DATA'] : null; + $this->_mServer->service($HTTP_RAW_POST_DATA); + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 14 23:55:28 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:28 +0900 Subject: [xoops-cvslog 5116] CVS update: xoops2jp/html/modules/legacy/admin Message-ID: <20061014145528.C4D262AC281@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/menu.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/menu.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/admin/menu.php Sat Oct 14 23:55:28 2006 @@ -0,0 +1,46 @@ + Index: xoops2jp/html/modules/legacy/admin/css.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/css.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/admin/css.php Sat Oct 14 23:55:28 2006 @@ -0,0 +1,64 @@ +register_modifier("theme", "Legacy_modifier_css_theme"); +$smarty->register_function("stylesheet", "Legacy_function_stylesheet"); + +// +// TODO Emergency WORK AROUND for compile cache problem. +// +$smarty->force_compile = true; + +if ($theme != null && $dirname != null) { + $path = XOOPS_THEME_PATH . "/${theme}/modules/${dirname}"; +} +elseif ($theme != null) { + $path = XOOPS_THEME_PATH . "/" .$theme; +} +elseif ($dirname != null) { + $path = XOOPS_MODULE_PATH . "/${dirname}/admin/templates"; +} +else { + $path = LEGACY_ADMIN_RENDER_FALLBACK_PATH; +} + +$smarty->template_dir = $path; +$smarty->setModulePrefix('_css_' . $theme); +$result=$smarty->fetch("file:" . $file); + +header('Content-Type:text/css;'); +print $result; + +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/admin/index.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/index.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/admin/index.php Sat Oct 14 23:55:28 2006 @@ -0,0 +1,20 @@ +setActionName($actionName); + +$root->mController->mExecute->add(array(&$moduleRunner, 'execute')); + +$root->mController->execute(); + +require_once XOOPS_ROOT_PATH . "/footer.php"; + +?> From minahito @ users.sourceforge.jp Sat Oct 14 23:55:28 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:28 +0900 Subject: [xoops-cvslog 5117] CVS update: xoops2jp/html/modules/legacy Message-ID: <20061014145528.F399E2AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/index.php diff -u /dev/null xoops2jp/html/modules/legacy/index.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/index.php Sat Oct 14 23:55:28 2006 @@ -0,0 +1,20 @@ +setActionName($actionName); + +$root->mController->mExecute->add(array(&$moduleRunner, 'execute')); + +$root->mController->execute(); + +require_once XOOPS_ROOT_PATH . "/footer.php"; + +?> Index: xoops2jp/html/modules/legacy/index.html diff -u /dev/null xoops2jp/html/modules/legacy/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/index.html Sat Oct 14 23:55:28 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/xoops_version.php diff -u /dev/null xoops2jp/html/modules/legacy/xoops_version.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/xoops_version.php Sat Oct 14 23:55:28 2006 @@ -0,0 +1,209 @@ + // +// ------------------------------------------------------------------------ // +// 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 // +// ------------------------------------------------------------------------- // + +$modversion['name'] = _MI_BASE_NAME; +$modversion['version'] = 1.00; +$modversion['description'] = _MI_BASE_NAME_DESC; +$modversion['author'] = ""; +$modversion['credits'] = "The XOOPS Project"; +$modversion['help'] = "help.html"; +$modversion['license'] = "GPL see LICENSE"; +$modversion['official'] = 1; +$modversion['image'] = "images/base.gif"; +$modversion['dirname'] = "base"; + +$modversion['cube_style'] = true; + +// +// Database Setting +// + +// Admin things +$modversion['hasAdmin'] = 1; +$modversion['adminindex'] = "admin/index.php"; +$modversion['adminmenu'] = "admin/menu.php"; + +// Templates +$modversion['templates'][1]['file'] = 'legacy_misc_ssllogin.html'; +$modversion['templates'][1]['description'] = ''; +$modversion['templates'][2]['file'] = 'legacy_misc_smilies.html'; +$modversion['templates'][2]['description'] = ''; +$modversion['templates'][3]['file'] = 'legacy_search_form.html'; +$modversion['templates'][3]['description'] = ''; +$modversion['templates'][4]['file'] = 'legacy_comment_edit.html'; +$modversion['templates'][4]['description'] = ''; +$modversion['templates'][5]['file'] = 'legacy_xoops_result.html'; +$modversion['templates'][5]['description'] = ''; +$modversion['templates'][6]['file'] = 'legacy_xoops_error.html'; +$modversion['templates'][6]['description'] = ''; +$modversion['templates'][7]['file'] = 'legacy_xoops_confirm.html'; +$modversion['templates'][7]['description'] = ''; +$modversion['templates'][8]['file'] = 'legacy_comment_navi.html'; +$modversion['templates'][8]['description'] = ''; +$modversion['templates'][9]['file'] = 'legacy_comment.html'; +$modversion['templates'][9]['description'] = ''; +$modversion['templates'][10]['file'] = 'legacy_comments_flat.html'; +$modversion['templates'][10]['description'] = ''; +$modversion['templates'][11]['file'] = 'legacy_comments_nest.html'; +$modversion['templates'][11]['description'] = ''; +$modversion['templates'][12]['file'] = 'legacy_comments_thread.html'; +$modversion['templates'][12]['description'] = ''; +$modversion['templates'][13]['file'] = 'legacy_notification_select.html'; +$modversion['templates'][13]['description'] = ''; +$modversion['templates'][14]['file'] = 'legacy_dummy.html'; +$modversion['templates'][14]['description'] = ''; +$modversion['templates'][15]['file'] = 'legacy_redirect.html'; +$modversion['templates'][15]['description'] = ''; +$modversion['templates'][16]['file'] = 'legacy_image_list.html'; +$modversion['templates'][16]['description'] = ''; +$modversion['templates'][17]['file'] = 'legacy_image_upload.html'; +$modversion['templates'][17]['description'] = ''; +$modversion['templates'][18]['file'] = 'legacy_rss.html'; +$modversion['templates'][18]['description'] = ''; +$modversion['templates'][19]['file'] = 'legacy_search_results.html'; +$modversion['templates'][19]['description'] = ''; +$modversion['templates'][20]['file'] = 'legacy_search_showall.html'; +$modversion['templates'][20]['description'] = ''; +$modversion['templates'][21]['file'] = 'legacy_search_showallbyuser.html'; +$modversion['templates'][21]['description'] = ''; +$modversion['templates'][22]['file'] = 'legacy_notification_list.html'; +$modversion['templates'][22]['description'] = ''; +$modversion['templates'][23]['file'] = 'legacy_notification_delete.html'; +$modversion['templates'][23]['description'] = ''; +$modversion['templates'][24]['file'] = 'legacy_notification_select_form.html'; +$modversion['templates'][24]['description'] = ''; +$modversion['templates'][25]['file'] = 'legacy_misc_friend.html'; +$modversion['templates'][25]['description'] = ''; +$modversion['templates'][26]['file'] = 'legacy_misc_friend_success.html'; +$modversion['templates'][26]['description'] = ''; +$modversion['templates'][27]['file'] = 'legacy_misc_friend_error.html'; +$modversion['templates'][27]['description'] = ''; +$modversion['templates'][28]['file'] = 'legacy_xoopsform_checkbox.html'; +$modversion['templates'][28]['description'] = 'The embedded template for the checkbox of the xoopsform.'; +$modversion['templates'][29]['file'] = 'legacy_xoopsform_button.html'; +$modversion['templates'][29]['description'] = 'The embedded template for the button of the xoopsform.'; +$modversion['templates'][30]['file'] = 'legacy_xoopsform_text.html'; +$modversion['templates'][30]['description'] = 'The embedded template for the text of the xoopsform.'; +$modversion['templates'][31]['file'] = 'legacy_xoopsform_select.html'; +$modversion['templates'][31]['description'] = 'The embedded template for the select of the xoopsform.'; +$modversion['templates'][32]['file'] = 'legacy_xoopsform_file.html'; +$modversion['templates'][32]['description'] = 'The embedded template for the file of the xoopsform.'; +$modversion['templates'][33]['file'] = 'legacy_xoopsform_hidden.html'; +$modversion['templates'][33]['description'] = 'The embedded template for the hidden of the xoopsform.'; +$modversion['templates'][34]['file'] = 'legacy_xoopsform_radio.html'; +$modversion['templates'][34]['description'] = 'The embedded template for the hidden of the xoopsform.'; +$modversion['templates'][35]['file'] = 'legacy_xoopsform_label.html'; +$modversion['templates'][35]['description'] = 'The embedded template for the label of the xoopsform.'; +$modversion['templates'][36]['file'] = 'legacy_xoopsform_password.html'; +$modversion['templates'][36]['description'] = 'The embedded template for the password of the xoopsform.'; +$modversion['templates'][37]['file'] = 'legacy_xoopsform_textarea.html'; +$modversion['templates'][37]['description'] = 'The embedded template for the textarea of the xoopsform.'; +$modversion['templates'][38]['file'] = 'legacy_xoopsform_simpleform.html'; +$modversion['templates'][38]['description'] = 'The embedded template for the simple form of the xoopsform.'; +$modversion['templates'][39]['file'] = 'legacy_xoopsform_tableform.html'; +$modversion['templates'][39]['description'] = 'The embedded template for the table form of the xoopsform.'; +$modversion['templates'][40]['file'] = 'legacy_xoopsform_themeform.html'; +$modversion['templates'][40]['description'] = 'The embedded template for the theme form of the xoopsform.'; +$modversion['templates'][41]['file'] = 'legacy_xoopsform_elementtray.html'; +$modversion['templates'][41]['description'] = 'The embedded template for the element tray of the xoopsform.'; +$modversion['templates'][42]['file'] = 'legacy_xoopsform_textdateselect.html'; +$modversion['templates'][42]['description'] = 'The embedded template for the text date select of the xoopsform.'; +$modversion['templates'][43]['file'] = 'legacy_xoopsform_dhtmltextarea.html'; +$modversion['templates'][43]['description'] = 'The embedded template for the dhtml text area of the xoopsform.'; +$modversion['templates'][44]['file'] = 'legacy_xoopsform_opt_smileys.html'; +$modversion['templates'][44]['description'] = 'The embedded template for the smiles list of the dhtml text area of the xoopsform.'; +$modversion['templates'][45]['file'] = 'legacy_xoopsform_opt_validationjs.html'; +$modversion['templates'][45]['description'] = 'The embedded template for the javascriot of the the xoopsform to validation the input value.'; +$modversion['templates'][46]['file'] = 'legacy_xoopsform_grouppermform.html'; +$modversion['templates'][46]['description'] = 'The embedded template for the groupperm form of the the xoopsform.'; + +// Menu +$modversion['hasMain'] = 0; + +// Blocks +$modversion['blocks'][1]['file'] = "legacy_mainmenu.php"; +$modversion['blocks'][1]['name'] = _MI_BASE_BLOCK_MAINMENU_NAME; +$modversion['blocks'][1]['description'] = _MI_BASE_BLOCK_MAINMENU_DESC; +$modversion['blocks'][1]['show_func'] = "b_legacy_mainmenu_show"; +$modversion['blocks'][1]['template'] = 'legacy_block_mainmenu.html'; +$modversion['blocks'][1]['visible_any'] = true; +$modversion['blocks'][1]['show_all_module'] = true; + +$modversion['blocks'][2]['file'] = "legacy_usermenu.php"; +$modversion['blocks'][2]['name'] = _MI_BASE_BLOCK_USERMENU_NAME; +$modversion['blocks'][2]['description'] = _MI_BASE_BLOCK_USERMENU_DESC; +$modversion['blocks'][2]['show_func'] = "b_legacy_usermenu_show"; +$modversion['blocks'][2]['template'] = 'legacy_block_usermenu.html'; +$modversion['blocks'][2]['visible_any'] = true; +$modversion['blocks'][2]['show_all_module'] = true; + +$modversion['blocks'][3]['file'] = "legacy_search.php"; +$modversion['blocks'][3]['name'] = _MI_BASE_BLOCK_SEARCH_NAME; +$modversion['blocks'][3]['description'] = _MI_BASE_BLOCK_SEARCH_DESC; +$modversion['blocks'][3]['show_func'] = "b_legacy_search_show"; +$modversion['blocks'][3]['template'] = 'legacy_block_search.html'; +$modversion['blocks'][3]['show_all_module'] = true; + +$modversion['blocks'][4]['file'] = "legacy_waiting.php"; +$modversion['blocks'][4]['name'] = _MI_BASE_BLOCK_WAITING_NAME; +$modversion['blocks'][4]['description'] = _MI_BASE_BLOCK_WAITING_DESC; +$modversion['blocks'][4]['show_func'] = "b_legacy_waiting_show"; +$modversion['blocks'][4]['template'] = 'legacy_block_waiting.html'; + +$modversion['blocks'][5]['file'] = "legacy_siteinfo.php"; +$modversion['blocks'][5]['name'] = _MI_BASE_BLOCK_SITEINFO_NAME; +$modversion['blocks'][5]['description'] = _MI_BASE_BLOCK_SITEINFO_DESC; +$modversion['blocks'][5]['show_func'] = "b_legacy_siteinfo_show"; +$modversion['blocks'][5]['edit_func'] = "b_legacy_siteinfo_edit"; +$modversion['blocks'][5]['options'] = "320|190|s_poweredby.gif|1"; +$modversion['blocks'][5]['template'] = 'legacy_block_siteinfo.html'; +$modversion['blocks'][5]['show_all_module'] = true; + +$modversion['blocks'][6]['file'] = "legacy_comments.php"; +$modversion['blocks'][6]['name'] = _MI_BASE_BLOCK_COMMENTS_NAME; +$modversion['blocks'][6]['description'] = _MI_BASE_BLOCK_COMMENTS_DESC; +$modversion['blocks'][6]['show_func'] = "b_legacy_comments_show"; +$modversion['blocks'][6]['options'] = "10"; +$modversion['blocks'][6]['edit_func'] = "b_legacy_comments_edit"; +$modversion['blocks'][6]['template'] = 'legacy_block_comments.html'; +$modversion['blocks'][6]['show_all_module'] = true; + +$modversion['blocks'][7]['file'] = "legacy_notification.php"; +$modversion['blocks'][7]['name'] = _MI_BASE_BLOCK_NOTIFICATION_NAME; +$modversion['blocks'][7]['description'] = _MI_BASE_BLOCK_NOTIFICATION_DESC; +$modversion['blocks'][7]['show_func'] = "b_legacy_notification_show"; +$modversion['blocks'][7]['template'] = 'legacy_block_notification.html'; + +$modversion['blocks'][8]['file'] = "legacy_themes.php"; +$modversion['blocks'][8]['name'] = _MI_BASE_BLOCK_THEMES_NAME; +$modversion['blocks'][8]['description'] = _MI_BASE_BLOCK_THEMES_DESC; +$modversion['blocks'][8]['show_func'] = "b_legacy_themes_show"; +$modversion['blocks'][8]['options'] = "0|80"; +$modversion['blocks'][8]['edit_func'] = "b_legacy_themes_edit"; +$modversion['blocks'][8]['template'] = 'legacy_block_themes.html'; + +?> From minahito @ users.sourceforge.jp Sat Oct 14 23:55:29 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:29 +0900 Subject: [xoops-cvslog 5118] CVS update: xoops2jp/html/modules/legacy/admin/theme/stylesheets Message-ID: <20061014145529.2F0FD2AC281@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/theme/stylesheets/index.html diff -u /dev/null xoops2jp/html/modules/legacy/admin/theme/stylesheets/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:29 2006 +++ xoops2jp/html/modules/legacy/admin/theme/stylesheets/index.html Sat Oct 14 23:55:29 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/admin/theme/stylesheets/style.css diff -u /dev/null xoops2jp/html/modules/legacy/admin/theme/stylesheets/style.css:1.1.2.1 --- /dev/null Sat Oct 14 23:55:29 2006 +++ xoops2jp/html/modules/legacy/admin/theme/stylesheets/style.css Sat Oct 14 23:55:29 2006 @@ -0,0 +1,474 @@ +* { + margin:0; + padding:0; +} + +body { + background:#ffffff; + color:#000000; + font-size:12px; + line-height:130%; +} + +h1, h2, h3, h4, h5, h6 { + color:#47477f; + margin:0.5em; +} +h3 { + font-size:18px; +} + +h4 { + font-size:16px; + margin:1em; +} +h5 { + font-size:14px; + margin:1em; +} +h6 { + font-size:12px; +} + +a { + color:#333366; + font-weight:normal; + text-decoration:none; +} +a:visited { + color:#333366; + font-weight:normal; +} +a:hover { + color:#F8B643; +} + +img { + border:0 +} + +hr { + color:#E18A00; + background-color:#E18A00; + border:none; + width:95%; + height:0.3em; + margin: 10px auto; + text-align:center; +} + +ul { + margin:2px; + padding:2px; + list-style:square outside; +} +li { + margin-left:20px; + line-height:130%; +} + +table { + margin:0; + padding:0; + width:100%; + border-collapse:collapse; +} +td { + vertical-align:top; +} +th { + color:#ffffff; + background: #6766A2; + text-align:center; + padding:5px 1px; +} +th a { + font-weight:bold; + color:#ffffff; +} +th a:visited { + font-weight:bold; + color:#ffffff; +} +th a:hover { + font-weight:bold; + color:#ff8c00; +} + +form { + margin:0.5em 0; +} +input.formButton { + background:url(<{"design/buttonbg.gif"|theme}>); + border-top:solid 1px #9a9caa; + border-left:solid 1px #9a9caa; + border-right:solid 1px #43445e; + border-bottom:solid 1px #43445e; + padding: 1px 10px; +} +textarea { + font-size:13px; +} +select option { + padding: 0 3px; +} + +#container { + width:100%; + margin:0 auto; + text-align:left; +} + +/* ===== common ===== */ +.outer td , .outer th { + border:1px solid #666699; +} +table.outer { + margin:10px 0; + border:1px solid #666699; +} +.head { + color:#000000; + background:#dddddd; + padding:5px 3px; +} +.foot { + color:#FFFFFF; + background:#6766A2; + padding:6px 4px; + text-align: center; +} +.foot a{ + color:#ffffff; +} +.odd { + background:#eeeeff; + padding:5px 3px; +} +.even { + background:#ffffff; + padding:5px 3px; +} +tr .odd td { + padding:3px; + vertical-align:middle; +} +tr .even td { + padding:3px; + vertical-align:middle; +} +.nw { + white-space:nowrap; +} + +/* ===== header ===== */ +#header { + background:#333366; +} +#header .logo { + vertical-align:middle; + padding:3px 0px 0px 3px; + background:#333366; +} +#header .logo a:hover { + border-bottom: 0; +} + +#header .searchbar { + text-align:right; + vertical-align:middle; + padding-right:10px; + background:#333366; +} +#header .searchBox { + margin:0; +} + +#header .topnav { + color:#333333; + background:#EEEEFF; + text-align:right; + vertical-align:middle; + border-bottom:1px solid #333366; + padding:5px 10px; +} +#header .topnav a { + color:#333333; + font-weight:bold; +} +#header .topnav a:hover { + font-weight:bold; + color:#F8B643; +} + +/* ===== LeftColumn ===== */ +#leftcolumn { + width:190px; + background:#ffffff; + border-right:1px solid #6766A2; +} +#leftcolumn .head { + padding:5px; + background:#333366; + font-weight:bold; + color:#ffffff; + text-align:left; + border-bottom:1px solid #cccccc; +} +#leftcolumn .head a { + color:#eeffff; + font-weight:bold; +} +#leftcolumn .head a:hover { + color:#F8B643; +} + +#leftcolumn .head2 { + padding:5px; + background:#6766A2; + font-weight:bold; + color:#ffffff; + text-align:left; + border-bottom:1px solid #cccccc; +} +#leftcolumn .head2 a { + color:#eeffff; + font-weight:bold; +} +#leftcolumn .head2 a:hover { + color:#F8B643; +} + +#leftcolumn .submenu { + margin:0px; + padding:3px 2px; + display:none; +} +#leftcolumn .submenu li { + margin:0; + padding:2px 2px 2px 17px; + list-style:none; + background:url(<{"design/menulist.gif"|theme}>) no-repeat center left; +} +#leftcolumn .submenu li a { + color:#000000; +} +#leftcolumn .submenu li a:visited { + color:#000000; +} +#leftcolumn .submenu li a:hover { + color:#F8B643; + text-decoration:underline; +} + +/* ===== Center Column ===== */ +#centercolumn { + background:#ffffff; + margin:0; + padding:0; + border-right:solid 1px #efefef; +} +#contentBody { + background:#ffffff; + padding:10px; +} + +#footer { + background:#EEEEFF; + border-top:1px solid #333366; + text-align:center; + padding:5px 0; + font-size:95%; + font-family: Verdana, Arial, Helvetica, sans-serif; +} +.return_top { + text-align:right; + margin:10px 30px; +} + +/* ===== option MenuNavi ===== +#menunavi { + margin:8px; + border:1px solid #333366; + background-color:#eeeeff; +} +#menunavi h2 { + margin:0.4em 2em; + font-size: 16px; + color:#333366; +} +ul.submenunavi { + text-align:left; + padding:0; + margin:3px; +} +ul.submenunavi li { + display:inline; + margin:0 2px; + border-top:1px solid #ffffff; + border-left:1px solid #ffffff; + border-right:1px solid #cccccc; + border-bottom:1px solid #cccccc; + padding:3px; + line-height:2em; + background-color:#f8f8ff; + white-space: nowrap; + _white-space:none; + +} +ul.submenunavi li a { + color:#000060; +} +ul.submenunavi li a:visited { + color:#000060; +} + */ + +/* ===== Admin Navi ===== */ +.adminnavi { + color:#ffffff; + background:#333366; + margin:-5px -3px 20px -3px; + padding:5px; + font-size:13px; +} +.adminnavi a:link , .adminnavi a:visited { + color:#ccffff; + font-weight:bold; +} +.adminnavi a:hover { + color:#f8b643; + font-weight:bold; +} +.adminnaviTitle { + font-size:16px; + font-weight:bold; +} +h3.admintitle { + display:none; +} + +/* ===== Top Tab ===== */ +ul.toptab { + text-align:right; padding:0; margin:10px; +} +ul.toptab li { + display:inline; + margin:0 5px; + border-top:1px solid #EEEEFF; + border-left:1px solid #EEEEFF; + border-right:1px solid #666699; + border-bottom:1px solid #666699; + background:#f6f6f6 url(<{"design/menulist.gif"|theme}>) no-repeat center left; + padding:5px 5px 5px 18px; +} + +/* ===== Page Navi ===== */ +.pagenavi { + font-size:14px; + text-align:center; + margin:10px; + word-spacing: 0.5em; +} + +/* ===== top message ===== */ +.warning { + color:#770000; + font-size:15px; + border:1px solid #cc0000; + padding:8px 8px 8px 35px; + margin:15px 10px; + background:#ffaaaa url(<{"icons/error.gif"|theme}>) no-repeat 5px 4px; +} +.confirm { + color:#000000; + border:1px solid #ff6633; + padding:8px 8px 8px 35px; + margin:15px 10px; + background:#fff8ee url(<{"icons/important.gif"|theme}>) no-repeat 5px 4px; +} +.tips { + color:#000000; + border:1px solid #00cc00; + padding:8px 8px 8px 35px; + margin:15px 10px; + background:#f8fff8 url(<{"icons/idea.gif"|theme}>) no-repeat 5px 4px; +} +.error { + color:#000000; + border:2px dotted #ff6633; + padding:8px 8px 8px 35px; + margin:15px 10px; + background: #fff8ee url(<{"icons/error.gif"|theme}>) no-repeat 5px 4px; +} + +/* ===== Help ===== */ +.help { + line-height:150%; + padding:5px 25px 25px 25px; + border:3px dashed #F8B643; + margin:10px; +} +.help h4 { + margin:25px 0 10px 0; + padding:5px 5px 5px 32px; + font-size:15px; + color:#882200; + border-left:5px solid #F8B643; + border-bottom:1px solid #F8B643; + background:#ffffff url(<{"icons/idea.gif"|theme}>) no-repeat 8px 3px; +} +.help h5 { + font-size:13px; + color:#882200; + margin:20px 0 5px 10px; + padding:0px 2px 0px 10px; + border-left:13px solid #F8B643; +} +.help h6 { + color:#000000; + font-size:12px; + margin:10px 0 0 10px; + padding:2px 2px 2px 10px; +} +.help a { + color:darkblue; + text-decoration:underline; + font-weight:bold; + margin:0 0.5em; +} +.help p { + padding:5px 20px; +} +.help ul { + margin-left:10px; +} +.help ol { + margin:2px 2px 2px 20px; + padding:2px; + list-style:decimal outside; +} +.help li { + padding:3px 0; +} +.help dl { + margin: 5px; +} +.help dt { + margin: 5px 5px 5px 10px; + font-weight:bold; +} +.help dd { + margin: 5px 5px 5px 30px; +} + +/* ===== active ===== */ +.active { + background:#ffdddd; +} +.active a:hover { + color:#cc0000; +} +.inactive { + color:#333333; +} From minahito @ users.sourceforge.jp Sat Oct 14 23:55:29 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:29 +0900 Subject: [xoops-cvslog 5119] CVS update: xoops2jp/html/modules/legacy/language Message-ID: <20061014145529.82E822AC281@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/language/index.html diff -u /dev/null xoops2jp/html/modules/legacy/language/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:29 2006 +++ xoops2jp/html/modules/legacy/language/index.html Sat Oct 14 23:55:29 2006 @@ -0,0 +1 @@ + \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 14 23:55:29 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:29 +0900 Subject: [xoops-cvslog 5120] CVS update: xoops2jp/html/modules/legacy/preload/Primary Message-ID: <20061014145529.5AD832AC282@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/preload/Primary/NuSoapLoader.class.php diff -u /dev/null xoops2jp/html/modules/legacy/preload/Primary/NuSoapLoader.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:29 2006 +++ xoops2jp/html/modules/legacy/preload/Primary/NuSoapLoader.class.php Sat Oct 14 23:55:29 2006 @@ -0,0 +1,53 @@ +mRoot->mDelegateManager->add('XCube_ServiceManager.CreateClient', 'Legacy_NuSoapLoader::createClient'); + $this->mRoot->mDelegateManager->add('XCube_ServiceManager.CreateServer', 'Legacy_NuSoapLoader::createServer'); + } + + /** + * @static + */ + function createClient(&$client, $service) + { + if (is_object($client)) { + return; + } + + $root =& XCube_Root::getSingleton(); + + if (is_object($service) && is_a($service, 'XCube_Service')) { + $client = new XCube_ServiceClient($service); + } + else { + require_once XOOPS_ROOT_PATH . "/modules/base/lib/nusoap/nusoap.php"; + require_once XOOPS_ROOT_PATH . "/modules/base/lib/ShadePlus/SoapClient.class.php"; + + $client = new Shade_SoapClient($service); + } + } + + /** + * @static + */ + function createServer(&$server, $service) + { + if (is_object($server) || !is_object($service)) { + return; + } + + require_once XOOPS_ROOT_PATH . "/modules/base/lib/nusoap/nusoap.php"; + require_once XOOPS_ROOT_PATH . "/modules/base/lib/ShadePlus/ServiceServer.class.php"; + require_once XOOPS_ROOT_PATH . "/modules/base/lib/ShadeSoap/NusoapServer.class.php"; + + $server = new ShadePlus_ServiceServer($service); + $server->prepare(); + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/preload/Primary/SiteClose.class.php diff -u /dev/null xoops2jp/html/modules/legacy/preload/Primary/SiteClose.class.php:1.1.2.1 --- /dev/null Sat Oct 14 23:55:29 2006 +++ xoops2jp/html/modules/legacy/preload/Primary/SiteClose.class.php Sat Oct 14 23:55:29 2006 @@ -0,0 +1,211 @@ +mRoot->mContext->getXoopsConfig('closesite') == 1) || is_array(Legacy_Utils::checkSystemModules())) { + $this->mController->mSetupUser->add("Legacy_SiteClose::callbackSetupUser", XCUBE_DELEGATE_PRIORITY_FINAL); + $this->mRoot->mDelegateManager->add("Site.CheckLogin.Success", array(&$this, "callbackCheckLoginSuccess")); + } + } + + /** + * Checks whether the site is closed now, and whether all of must modules + * have been installed. This function is called through delegates. + * @var XoopsUser &$xoopsUser + * @see preBlockFilter() + */ + function callbackSetupUser(&$principal, &$controller, &$context) + { + $retArray = Legacy_Utils::checkSystemModules(); + $accessAllowFlag = false; + $xoopsConfig = $controller->mRoot->mContext->getXoopsConfig(); + + if (!empty($_POST['xoops_login'])) { + if (is_array($retArray)) { + define('XOOPS_CPFUNC_LOADED', 1); + } + + $controller->checkLogin(); + return; + } elseif (is_object($context->mXoopsUser)) { + foreach ($context->mXoopsUser->getGroups() as $group) { + if (in_array($group, $xoopsConfig['closesite_okgrp']) || XOOPS_GROUP_ADMIN == $group) { + $accessAllowFlag = true; + break; + } + } + } + + // @todo Devide following lines to another preload file + if ($accessAllowFlag && is_array($retArray)) { + if (in_array(XOOPS_GROUP_ADMIN, $context->mXoopsUser->getGroups())) { + $GLOBALS['xoopsUser'] = $context->mXoopsUser; + if (!empty($_POST['cube_module_install'])) { //@todo use Ticket + require_once XOOPS_BASE_PATH . "/admin/class/ModuleInstaller.class.php"; + if (isset($_POST['uninstalled_modules']) && is_array($_POST['uninstalled_modules'])){ + foreach ($_POST['uninstalled_modules'] as $module) { + $module = basename($module); + if (in_array($module, $retArray['uninstalled'])) { + $installer =& new Legacy_ModuleInstaller($module); + $installer->execute(); + } + } + } + if (isset($_POST['disabled_modules']) && is_array($_POST['disabled_modules'])){ + $moduleHandler =& xoops_gethandler('module'); + foreach ($_POST['disabled_modules'] as $module) { + $module = basename($module); + if (in_array($module, $retArray['disabled'])) { + if ($moduleObject =& $moduleHandler->getByDirname($module)) { + $moduleObject->setVar('isactive', 1); + $moduleHandler->insert($moduleObject); + } + } + } + } + if (isset($_POST['option_modules']) && is_array($_POST['option_modules']) ){ + $handler =& xoops_getmodulehandler('non_installation_module', 'base'); + $objects = $handler->getObjects(); + $optionModules = array(); + foreach ($objects as $module) { + if (!in_array($module->get('dirname'), $retArray['uninstalled'])) { + $optionModules[] = $module->get('dirname'); + } + } + foreach ($_POST['option_modules'] as $module) { + $module = basename($module); + if (in_array($module, $optionModules)) { + $installer =& new Legacy_ModuleInstaller($module); + $installer->execute(); + } + } + } + $controller->executeRedirect(XOOPS_URL . '/', 1); + } + elseif (!empty($_GET['cube_module_uninstall'])) { + require_once XOOPS_ROOT_PATH . '/class/template.php'; + $xoopsTpl =& new XoopsTpl(); + $xoopsTpl->assign('cube_module_uninstall', htmlspecialchars($_GET['cube_module_uninstall'],ENT_QUOTES)); + $xoopsTpl->assign( array( + 'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename']), + 'xoops_themecss' => xoops_getcss(), + 'xoops_imageurl' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/', + )); + ///< @todo filebase template with absolute file path + $xoopsTpl->compile_check = true; + $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/base/templates/legacy_uninstall_modules.html'); + exit(); + } + elseif (!empty($_POST['cube_module_uninstallok'])) { //@todo use Ticket + require_once XOOPS_BASE_PATH . "/admin/class/ModuleUninstaller.class.php"; + $module = basename($_POST['cube_module_uninstallok']); + if (in_array($module, $retArray['disabled'])) { + $uninstaller =& new Legacy_ModuleUninstaller($module); + $uninstaller->execute(); + } + $controller->executeRedirect(XOOPS_URL . '/',1); + } + else { + $handler =& xoops_getmodulehandler('non_installation_module','base'); + $objects = $handler->getObjects(); + $optionModules = array(); + foreach ($objects as $module) { + $dirname = $module->getVar('dirname'); + if (!in_array($dirname, $retArray['uninstalled'])) { + $optionModule['dirname'] = $dirname; + if (in_array($dirname, $retArray['recommended'])) { + $optionModule['checked'] = 'checked="checked"'; + $optionModule['desc'] = _SYS_RECOMMENDED_MODULES; + } else { + $optionModule['checked'] = ''; + $optionModule['desc'] = _SYS_OPTION_MODULES; + } + $optionModules[] = $optionModule; + } + } + require_once XOOPS_ROOT_PATH . '/class/template.php'; + $xoopsTpl =& new XoopsTpl(); + $xoopsTpl->assign('uninstalled',$retArray['uninstalled']); + $xoopsTpl->assign('disabled',$retArray['disabled']); + $xoopsTpl->assign('option',$optionModules); + $xoopsTpl->assign(array( + 'xoops_sitename' => htmlspecialchars($xoopsConfig['sitename']), + 'xoops_themecss' => xoops_getcss(), + 'xoops_imageurl' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/' + )); + ///< @todo filebase template with absolute file path + $xoopsTpl->compile_check = true; + $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/base/templates/legacy_install_modules.html'); + exit(); + } + } else { + $accessAllowFlag = false; + } + } + + if (!$accessAllowFlag) { + require_once XOOPS_ROOT_PATH . '/class/template.php'; + $xoopsTpl =& new XoopsTpl(); + $xoopsTpl->assign(array('xoops_sitename' => htmlspecialchars($xoopsConfig['sitename']), + 'xoops_themecss' => xoops_getcss(), + 'xoops_imageurl' => XOOPS_THEME_URL . '/' . $xoopsConfig['theme_set'] . '/', + 'lang_login' => _LOGIN, + 'lang_username' => _USERNAME, + 'lang_password' => _PASSWORD, + 'lang_siteclosemsg' => $xoopsConfig['closesite_text'] + )); + + $xoopsTpl->compile_check = true; + + // @todo filebase template with absolute file path + $xoopsTpl->display(XOOPS_ROOT_PATH . '/modules/base/templates/legacy_site_closed.html'); + exit(); + } + } + + /** + * When the user logs in successfully, checks whether the user belongs to + * the special group which is allowed to login. This function is called + * through delegates. + * @var XoopsUser &$xoopsUser + * @see preBlockFilter + */ + function callbackCheckLoginSuccess(&$xoopsUser) + { + // + // This check is not needed. :) + // + if (!is_object($xoopsUser)) { + return; + } + + // Site close + if ($this->mRoot->mContext->getXoopsConfig('closesite')) { + $accessAllowed = false; + + foreach ($xoopsUser->getGroups() as $group) { + if (in_array($group, $this->mRoot->mContext->getXoopsConfig('closesite_okgrp')) || ($group == XOOPS_GROUP_ADMIN)) { + $accessAllowed = true; + break; + } + } + + if (!$accessAllowed) { + $this->mController->redirectHeader(XOOPS_URL . '/', 1, _NOPERM); + } + } + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Sat Oct 14 23:55:20 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:20 +0900 Subject: [xoops-cvslog 5121] CVS update: xoops2jp/html/modules/legacy/admin/templates/blocks Message-ID: <20061014145520.8FA8B2AC282@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/blocks/legacy_admin_block_actionsearch.html diff -u /dev/null xoops2jp/html/modules/legacy/admin/templates/blocks/legacy_admin_block_actionsearch.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:20 2006 +++ xoops2jp/html/modules/legacy/admin/templates/blocks/legacy_admin_block_actionsearch.html Sat Oct 14 23:55:20 2006 @@ -0,0 +1,4 @@ +
+ + +
Index: xoops2jp/html/modules/legacy/admin/templates/blocks/index.html diff -u /dev/null xoops2jp/html/modules/legacy/admin/templates/blocks/index.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:20 2006 +++ xoops2jp/html/modules/legacy/admin/templates/blocks/index.html Sat Oct 14 23:55:20 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacy/admin/templates/blocks/legacy_admin_block_sidemenu.html diff -u /dev/null xoops2jp/html/modules/legacy/admin/templates/blocks/legacy_admin_block_sidemenu.html:1.1.2.1 --- /dev/null Sat Oct 14 23:55:20 2006 +++ xoops2jp/html/modules/legacy/admin/templates/blocks/legacy_admin_block_sidemenu.html Sat Oct 14 23:55:20 2006 @@ -0,0 +1,24 @@ +<{foreach item=module from=$modules}> + + <{if $module->hasAdminIndex()}> + + + + <{/if}> + +<{/foreach}> From minahito @ users.sourceforge.jp Sat Oct 14 23:55:29 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 14 Oct 2006 23:55:29 +0900 Subject: [xoops-cvslog 5122] CVS update: xoops2jp/html/modules/legacy/admin/templates/stylesheets Message-ID: <20061014145529.AA5822AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/stylesheets/module.css diff -u /dev/null xoops2jp/html/modules/legacy/admin/templates/stylesheets/module.css:1.1.2.1 --- /dev/null Sat Oct 14 23:55:29 2006 +++ xoops2jp/html/modules/legacy/admin/templates/stylesheets/module.css Sat Oct 14 23:55:29 2006 @@ -0,0 +1,123 @@ +/* Action Search */ +.base_actionsearch_form { + text-align:center; + margin:20px; +} +ul.base_actionsearch_records { + margin:5px 10px; +} +.base_actionsearch_records li , .base_actionsearch_records li a , .base_actionsearch_records li a:visited { + font-weight:bold; + padding:3px; +} +.base_actionsearch_records_desc { + font-weight:normal; + font-style:italic; + color:#666666; + padding:2px 10px 5px 10px; +} +/* block list */ +.base_blocktype_module { + +} +.base_blocktype_custom { + color:#0000cc; +} +.base_blockside { + width:135px; + white-space: nowrap; +} +.base_blocksideInput{ + float:left; + border:1px solid #333333; + padding:1px; +} + +.base_blockside_separator { + float:left; +} + +/* block admin for FireFox */ +input[type="radio"] { + margin:2px; +} + +/* module list */ +.base_module_title { + font-weight:bold; +} +.base_module_error { + color:#ff0000; +} +.base_module_warning { + color:#0000ff; +} +.base_module_message { + +} +.base_module_return , .base_module_return a , .base_module_return a:visited { + font-weight:bold; +} +.base_module_versionMsg { + color:#0000ff; + font-weight:bold; +} + +.base_modinfo_notmounted { + margin:10px 10px 10px 40px; +} + +/* comment list */ +.base_comment_search { + text-align:center; + margin:20px; +} + +/* for list table */ +.base_list_id { + text-align:center; +} +.base_list_title, .base_list_title a, .base_list_title a:visited { + text-align:left; + padding-left:5px; + font-weight:bold; +} +.base_list_imagetitle { + text-align:center; + font-weight:bold; +} +.base_list_name { + text-align:left; + padding-left:5px; +} +.base_list_text { + text-align:left; + padding-left:5px; +} +.base_list_description { + text-align:left; + padding-left:5px; + font-weight:normal; +} +.base_list_number { + text-align:right; + padding-right:5px; +} +.base_list_order { + text-align:center; +} +.base_list_image { + text-align:center; +} +.base_list_select { + text-align:center; +} +.base_list_type { + text-align:center; +} +.base_list_date { + text-align:center; +} +.base_list_control { + text-align:center; +} From minahito @ users.sourceforge.jp Sun Oct 15 00:33:03 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:33:03 +0900 Subject: [xoops-cvslog 5123] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061014153303.E9B812AC1AC@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/form.php diff -u xoops2jp/html/class/xoopsform/form.php:1.2.8.4.2.1 xoops2jp/html/class/xoopsform/form.php:1.2.8.4.2.2 --- xoops2jp/html/class/xoopsform/form.php:1.2.8.4.2.1 Wed Oct 11 17:14:11 2006 +++ xoops2jp/html/class/xoopsform/form.php Sun Oct 15 00:33:03 2006 @@ -1,5 +1,5 @@ createRenderTarget(); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoopsform_opt_validationjs.html"); $renderTarget->setAttribute('form', $this); $renderTarget->setAttribute('withtags', $withtags); From minahito @ users.sourceforge.jp Sun Oct 15 00:33:20 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:33:20 +0900 Subject: [xoops-cvslog 5124] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061014153320.432AB2AC171@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/formbutton.php diff -u xoops2jp/html/class/xoopsform/formbutton.php:1.2.8.2.2.1 xoops2jp/html/class/xoopsform/formbutton.php:1.2.8.2.2.2 --- xoops2jp/html/class/xoopsform/formbutton.php:1.2.8.2.2.1 Wed Oct 11 17:14:11 2006 +++ xoops2jp/html/class/xoopsform/formbutton.php Sun Oct 15 00:33:19 2006 @@ -1,5 +1,5 @@ createRenderTarget('main'); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoopsform_button.html"); $renderTarget->setAttribute("element", $this); From minahito @ users.sourceforge.jp Sun Oct 15 00:33:32 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:33:32 +0900 Subject: [xoops-cvslog 5125] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061014153332.540402AC1AC@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/formcheckbox.php diff -u xoops2jp/html/class/xoopsform/formcheckbox.php:1.2.8.2.2.1 xoops2jp/html/class/xoopsform/formcheckbox.php:1.2.8.2.2.2 --- xoops2jp/html/class/xoopsform/formcheckbox.php:1.2.8.2.2.1 Wed Oct 11 17:14:11 2006 +++ xoops2jp/html/class/xoopsform/formcheckbox.php Sun Oct 15 00:33:32 2006 @@ -1,5 +1,5 @@ setName($newname); } - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoopsform_checkbox.html"); $renderTarget->setAttribute("element", $this); From minahito @ users.sourceforge.jp Sun Oct 15 00:33:53 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:33:53 +0900 Subject: [xoops-cvslog 5125] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061014153353.5F5A22AC171@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/formdhtmltextarea.php diff -u xoops2jp/html/class/xoopsform/formdhtmltextarea.php:1.2.8.6.2.1 xoops2jp/html/class/xoopsform/formdhtmltextarea.php:1.2.8.6.2.2 --- xoops2jp/html/class/xoopsform/formdhtmltextarea.php:1.2.8.6.2.1 Wed Oct 11 17:14:11 2006 +++ xoops2jp/html/class/xoopsform/formdhtmltextarea.php Sun Oct 15 00:33:53 2006 @@ -1,5 +1,5 @@ createRenderTarget('main'); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoopsform_dhtmltextarea.html"); $renderTarget->setAttribute("element", $this); @@ -109,14 +109,14 @@ */ function _renderSmileys() { - $handler =& xoops_getmodulehandler('smiles', 'base'); + $handler =& xoops_getmodulehandler('smiles', 'legacy'); $smilesArr =& $handler->getObjects(new Criteria('display', 1)); $root =& XCube_Root::getSingleton(); $renderSystem =& $root->getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoopsform_opt_smileys.html"); $renderTarget->setAttribute("element", $this); $renderTarget->setAttribute("smilesArr", $smilesArr); From minahito @ users.sourceforge.jp Sun Oct 15 00:34:03 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:34:03 +0900 Subject: [xoops-cvslog 5126] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061014153403.8AAFD2AC084@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/formelementtray.php diff -u xoops2jp/html/class/xoopsform/formelementtray.php:1.2.8.2.2.1 xoops2jp/html/class/xoopsform/formelementtray.php:1.2.8.2.2.2 --- xoops2jp/html/class/xoopsform/formelementtray.php:1.2.8.2.2.1 Wed Oct 11 17:14:11 2006 +++ xoops2jp/html/class/xoopsform/formelementtray.php Sun Oct 15 00:34:03 2006 @@ -1,5 +1,5 @@ createRenderTarget('main'); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoopsform_elementtray.html"); $renderTarget->setAttribute("tray", $this); From minahito @ users.sourceforge.jp Sun Oct 15 00:34:12 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:34:12 +0900 Subject: [xoops-cvslog 5127] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061014153412.49E3F2AC171@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/formfile.php diff -u xoops2jp/html/class/xoopsform/formfile.php:1.2.8.2.2.2 xoops2jp/html/class/xoopsform/formfile.php:1.2.8.2.2.3 --- xoops2jp/html/class/xoopsform/formfile.php:1.2.8.2.2.2 Thu Oct 12 00:18:37 2006 +++ xoops2jp/html/class/xoopsform/formfile.php Sun Oct 15 00:34:12 2006 @@ -1,5 +1,5 @@ createRenderTarget('main'); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoopsform_file.html"); $renderTarget->setAttribute("element", $this); From minahito @ users.sourceforge.jp Sun Oct 15 00:34:21 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:34:21 +0900 Subject: [xoops-cvslog 5128] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061014153421.A23E82AC171@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/formhidden.php diff -u xoops2jp/html/class/xoopsform/formhidden.php:1.2.8.2.2.1 xoops2jp/html/class/xoopsform/formhidden.php:1.2.8.2.2.2 --- xoops2jp/html/class/xoopsform/formhidden.php:1.2.8.2.2.1 Wed Oct 11 17:14:11 2006 +++ xoops2jp/html/class/xoopsform/formhidden.php Sun Oct 15 00:34:21 2006 @@ -1,5 +1,5 @@ createRenderTarget('main'); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoopsform_hidden.html"); $renderTarget->setAttribute("element", $this); From minahito @ users.sourceforge.jp Sun Oct 15 00:34:31 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:34:31 +0900 Subject: [xoops-cvslog 5129] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061014153431.8BC0E2AC171@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/formlabel.php diff -u xoops2jp/html/class/xoopsform/formlabel.php:1.2.8.2.2.1 xoops2jp/html/class/xoopsform/formlabel.php:1.2.8.2.2.2 --- xoops2jp/html/class/xoopsform/formlabel.php:1.2.8.2.2.1 Wed Oct 11 17:14:11 2006 +++ xoops2jp/html/class/xoopsform/formlabel.php Sun Oct 15 00:34:31 2006 @@ -1,5 +1,5 @@ createRenderTarget('main'); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoopsform_label.html"); $renderTarget->setAttribute("element", $this); From minahito @ users.sourceforge.jp Sun Oct 15 00:34:40 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:34:40 +0900 Subject: [xoops-cvslog 5130] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061014153440.D257C2AC171@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/formpassword.php diff -u xoops2jp/html/class/xoopsform/formpassword.php:1.2.8.2.2.1 xoops2jp/html/class/xoopsform/formpassword.php:1.2.8.2.2.2 --- xoops2jp/html/class/xoopsform/formpassword.php:1.2.8.2.2.1 Wed Oct 11 17:14:11 2006 +++ xoops2jp/html/class/xoopsform/formpassword.php Sun Oct 15 00:34:40 2006 @@ -1,5 +1,5 @@ createRenderTarget('main'); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoopsform_password.html"); $renderTarget->setAttribute("element", $this); From minahito @ users.sourceforge.jp Sun Oct 15 00:34:49 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:34:49 +0900 Subject: [xoops-cvslog 5131] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061014153449.1D1452AC171@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/formradio.php diff -u xoops2jp/html/class/xoopsform/formradio.php:1.2.8.2.2.1 xoops2jp/html/class/xoopsform/formradio.php:1.2.8.2.2.2 --- xoops2jp/html/class/xoopsform/formradio.php:1.2.8.2.2.1 Wed Oct 11 17:14:11 2006 +++ xoops2jp/html/class/xoopsform/formradio.php Sun Oct 15 00:34:48 2006 @@ -1,5 +1,5 @@ createRenderTarget(); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoopsform_radio.html"); $renderTarget->setAttribute("element", $this); From minahito @ users.sourceforge.jp Sun Oct 15 00:35:01 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:35:01 +0900 Subject: [xoops-cvslog 5132] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061014153501.13FCA2AC283@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/formselect.php diff -u xoops2jp/html/class/xoopsform/formselect.php:1.2.8.3.2.1 xoops2jp/html/class/xoopsform/formselect.php:1.2.8.3.2.2 --- xoops2jp/html/class/xoopsform/formselect.php:1.2.8.3.2.1 Wed Oct 11 17:14:11 2006 +++ xoops2jp/html/class/xoopsform/formselect.php Sun Oct 15 00:35:00 2006 @@ -1,5 +1,5 @@ createRenderTarget('main'); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoopsform_select.html"); $renderTarget->setAttribute("element", $this); From minahito @ users.sourceforge.jp Sun Oct 15 00:35:09 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:35:09 +0900 Subject: [xoops-cvslog 5133] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061014153509.9D3592AC171@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/formtext.php diff -u xoops2jp/html/class/xoopsform/formtext.php:1.2.8.2.2.1 xoops2jp/html/class/xoopsform/formtext.php:1.2.8.2.2.2 --- xoops2jp/html/class/xoopsform/formtext.php:1.2.8.2.2.1 Wed Oct 11 17:14:11 2006 +++ xoops2jp/html/class/xoopsform/formtext.php Sun Oct 15 00:35:09 2006 @@ -1,5 +1,5 @@ createRenderTarget('main'); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoopsform_text.html"); $renderTarget->setAttribute("element", $this); From minahito @ users.sourceforge.jp Sun Oct 15 00:35:18 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:35:18 +0900 Subject: [xoops-cvslog 5134] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061014153518.ACD922AC171@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/formtextarea.php diff -u xoops2jp/html/class/xoopsform/formtextarea.php:1.2.8.2.2.1 xoops2jp/html/class/xoopsform/formtextarea.php:1.2.8.2.2.2 --- xoops2jp/html/class/xoopsform/formtextarea.php:1.2.8.2.2.1 Wed Oct 11 17:14:11 2006 +++ xoops2jp/html/class/xoopsform/formtextarea.php Sun Oct 15 00:35:18 2006 @@ -1,5 +1,5 @@ createRenderTarget(); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoopsform_textarea.html"); $renderTarget->setAttribute("element", $this); From minahito @ users.sourceforge.jp Sun Oct 15 00:35:28 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:35:28 +0900 Subject: [xoops-cvslog 5135] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061014153528.0A6E12AC285@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/formtextdateselect.php diff -u xoops2jp/html/class/xoopsform/formtextdateselect.php:1.2.8.4.2.1 xoops2jp/html/class/xoopsform/formtextdateselect.php:1.2.8.4.2.2 --- xoops2jp/html/class/xoopsform/formtextdateselect.php:1.2.8.4.2.1 Wed Oct 11 17:14:11 2006 +++ xoops2jp/html/class/xoopsform/formtextdateselect.php Sun Oct 15 00:35:27 2006 @@ -1,5 +1,5 @@ createRenderTarget('main'); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoopsform_textdateselect.html"); $renderTarget->setAttribute("element", $this); $renderTarget->setAttribute("date", date("Y-m-d", $this->getValue())); From minahito @ users.sourceforge.jp Sun Oct 15 00:35:45 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:35:45 +0900 Subject: [xoops-cvslog 5136] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061014153545.765402AC171@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/grouppermform.php diff -u xoops2jp/html/class/xoopsform/grouppermform.php:1.2.8.3.2.1 xoops2jp/html/class/xoopsform/grouppermform.php:1.2.8.3.2.2 --- xoops2jp/html/class/xoopsform/grouppermform.php:1.2.8.3.2.1 Wed Oct 11 17:14:11 2006 +++ xoops2jp/html/class/xoopsform/grouppermform.php Sun Oct 15 00:35:45 2006 @@ -1,5 +1,5 @@ XoopsForm($title, 'groupperm_form', XOOPS_URL . '/modules/base/include/groupperm.php', 'post'); + $this->XoopsForm($title, 'groupperm_form', XOOPS_URL . '/modules/legacy/include/groupperm.php', 'post'); $this->_modid = intval($modid); $this->_permName = $permname; $this->_permDesc = $permdesc; @@ -157,7 +157,7 @@ $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoopsform_grouppermform.html"); $renderTarget->setAttribute("form", $this); From minahito @ users.sourceforge.jp Sun Oct 15 00:35:54 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:35:54 +0900 Subject: [xoops-cvslog 5137] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061014153554.26AAF2AC283@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/simpleform.php diff -u xoops2jp/html/class/xoopsform/simpleform.php:1.2.8.2.2.1 xoops2jp/html/class/xoopsform/simpleform.php:1.2.8.2.2.2 --- xoops2jp/html/class/xoopsform/simpleform.php:1.2.8.2.2.1 Wed Oct 11 17:14:11 2006 +++ xoops2jp/html/class/xoopsform/simpleform.php Sun Oct 15 00:35:54 2006 @@ -1,5 +1,5 @@ createRenderTarget('main'); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoopsform_simpleform.html"); $renderTarget->setAttribute("form", $this); From minahito @ users.sourceforge.jp Sun Oct 15 00:36:05 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:36:05 +0900 Subject: [xoops-cvslog 5138] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061014153605.1C0972AC283@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/tableform.php diff -u xoops2jp/html/class/xoopsform/tableform.php:1.2.8.2.2.1 xoops2jp/html/class/xoopsform/tableform.php:1.2.8.2.2.2 --- xoops2jp/html/class/xoopsform/tableform.php:1.2.8.2.2.1 Wed Oct 11 17:14:11 2006 +++ xoops2jp/html/class/xoopsform/tableform.php Sun Oct 15 00:36:04 2006 @@ -1,5 +1,5 @@ createRenderTarget('main'); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoopsform_tableform.html"); $renderTarget->setAttribute("form", $this); From minahito @ users.sourceforge.jp Sun Oct 15 00:36:16 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:36:16 +0900 Subject: [xoops-cvslog 5139] CVS update: xoops2jp/html/class/xoopsform Message-ID: <20061014153616.43AD52AC171@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsform/themeform.php diff -u xoops2jp/html/class/xoopsform/themeform.php:1.2.8.3.2.1 xoops2jp/html/class/xoopsform/themeform.php:1.2.8.3.2.2 --- xoops2jp/html/class/xoopsform/themeform.php:1.2.8.3.2.1 Wed Oct 11 17:14:11 2006 +++ xoops2jp/html/class/xoopsform/themeform.php Sun Oct 15 00:36:16 2006 @@ -1,5 +1,5 @@ getRenderSystem(XOOPSFORM_DEPENDENCE_RENDER_SYSTEM); $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoopsform_themeform.html"); $renderTarget->setAttribute("form", $this); From minahito @ users.sourceforge.jp Sun Oct 15 00:36:30 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:36:30 +0900 Subject: [xoops-cvslog 5140] CVS update: xoops2jp/html/include Message-ID: <20061014153630.A5C9B2AC171@users.sourceforge.jp> Index: xoops2jp/html/include/comment_edit.php diff -u xoops2jp/html/include/comment_edit.php:1.2.8.2 xoops2jp/html/include/comment_edit.php:1.2.8.2.2.1 --- xoops2jp/html/include/comment_edit.php:1.2.8.2 Thu Jul 20 17:17:38 2006 +++ xoops2jp/html/include/comment_edit.php Sun Oct 15 00:36:30 2006 @@ -1,5 +1,5 @@ Index: xoops2jp/html/include/comment_new.php diff -u xoops2jp/html/include/comment_new.php:1.2.8.3 xoops2jp/html/include/comment_new.php:1.2.8.3.2.1 --- xoops2jp/html/include/comment_new.php:1.2.8.3 Thu Jul 20 17:17:45 2006 +++ xoops2jp/html/include/comment_new.php Sun Oct 15 00:36:40 2006 @@ -1,5 +1,5 @@ Index: xoops2jp/html/include/comment_reply.php diff -u xoops2jp/html/include/comment_reply.php:1.2.8.3 xoops2jp/html/include/comment_reply.php:1.2.8.3.2.1 --- xoops2jp/html/include/comment_reply.php:1.2.8.3 Thu Jul 20 17:18:07 2006 +++ xoops2jp/html/include/comment_reply.php Sun Oct 15 00:36:49 2006 @@ -1,5 +1,5 @@ Index: xoops2jp/html/include/cp_functions.php diff -u xoops2jp/html/include/cp_functions.php:1.2.8.4.2.2 xoops2jp/html/include/cp_functions.php:1.2.8.4.2.3 --- xoops2jp/html/include/cp_functions.php:1.2.8.4.2.2 Thu Oct 12 20:01:07 2006 +++ xoops2jp/html/include/cp_functions.php Sun Oct 15 00:37:09 2006 @@ -1,5 +1,5 @@ mController); From minahito @ users.sourceforge.jp Sun Oct 15 00:37:28 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:37:28 +0900 Subject: [xoops-cvslog 5144] CVS update: xoops2jp/html/include Message-ID: <20061014153728.B2E5D2AC287@users.sourceforge.jp> Index: xoops2jp/html/include/cp_header.php diff -u xoops2jp/html/include/cp_header.php:1.2.8.5.2.2 xoops2jp/html/include/cp_header.php:1.2.8.5.2.3 --- xoops2jp/html/include/cp_header.php:1.2.8.5.2.2 Thu Oct 12 20:01:07 2006 +++ xoops2jp/html/include/cp_header.php Sun Oct 15 00:37:28 2006 @@ -1,7 +1,7 @@ mController); $root->mController->setStrategy($strategy); From minahito @ users.sourceforge.jp Sun Oct 15 00:37:40 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:37:40 +0900 Subject: [xoops-cvslog 5145] CVS update: xoops2jp/html/include Message-ID: <20061014153740.979A72AC287@users.sourceforge.jp> Index: xoops2jp/html/include/functions.php diff -u xoops2jp/html/include/functions.php:1.2.8.19.2.1 xoops2jp/html/include/functions.php:1.2.8.19.2.2 --- xoops2jp/html/include/functions.php:1.2.8.19.2.1 Wed Oct 11 17:14:01 2006 +++ xoops2jp/html/include/functions.php Sun Oct 15 00:37:40 2006 @@ -1,5 +1,5 @@ createRenderTarget('main'); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoops_error.html"); $renderTarget->setAttribute("style", $style); @@ -100,7 +100,7 @@ $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoops_result.html"); $renderTarget->setAttribute("title", $title); @@ -129,7 +129,7 @@ $renderTarget =& $renderSystem->createRenderTarget('main'); - $renderTarget->setAttribute('legacy_module', 'base'); + $renderTarget->setAttribute('legacy_module', 'legacy'); $renderTarget->setTemplateName("legacy_xoops_confirm.html"); $renderTarget->setAttribute("action", $action); From minahito @ users.sourceforge.jp Sun Oct 15 00:38:08 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:38:08 +0900 Subject: [xoops-cvslog 5146] CVS update: xoops2jp/html/install/include Message-ID: <20061014153808.6C06C2AC283@users.sourceforge.jp> Index: xoops2jp/html/install/include/makedata.php diff -u xoops2jp/html/install/include/makedata.php:1.1.2.6.2.1 xoops2jp/html/install/include/makedata.php:1.1.2.6.2.2 --- xoops2jp/html/install/include/makedata.php:1.1.2.6.2.1 Sat Oct 7 15:49:57 2006 +++ xoops2jp/html/install/include/makedata.php Sun Oct 15 00:38:08 2006 @@ -1,5 +1,5 @@ insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",14,1,'system_admin')"); $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",15,1,'system_admin')"); - installModule($dbm, 2, "base", _MI_BASE_NAME, $language, $gruops, true); + installModule($dbm, 2, "base", _MI_LEGACY_NAME, $language, $gruops, true); $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", 2, 1, 'module_admin')"); installModule($dbm, 3, "legacyRender", _MI_LEGACYRENDER_NAME, $language, $gruops, true); From minahito @ users.sourceforge.jp Sun Oct 15 00:38:34 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:38:34 +0900 Subject: [xoops-cvslog 5147] CVS update: xoops2jp/html/modules/legacy Message-ID: <20061014153834.A37322AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/index.php diff -u xoops2jp/html/modules/legacy/index.php:1.1.2.1 xoops2jp/html/modules/legacy/index.php:1.1.2.2 --- xoops2jp/html/modules/legacy/index.php:1.1.2.1 Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/index.php Sun Oct 15 00:38:34 2006 @@ -2,7 +2,7 @@ require_once "../../mainfile.php"; require_once XOOPS_ROOT_PATH . "/header.php"; -require_once XOOPS_MODULE_PATH . "/base/class/ActionFrame.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/ActionFrame.class.php"; $root =& XCube_Root::getSingleton(); From minahito @ users.sourceforge.jp Sun Oct 15 00:39:11 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:39:11 +0900 Subject: [xoops-cvslog 5148] CVS update: xoops2jp/html/modules/legacy Message-ID: <20061014153911.F32D42AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/xoops_version.php diff -u xoops2jp/html/modules/legacy/xoops_version.php:1.1.2.1 xoops2jp/html/modules/legacy/xoops_version.php:1.1.2.2 --- xoops2jp/html/modules/legacy/xoops_version.php:1.1.2.1 Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/xoops_version.php Sun Oct 15 00:39:11 2006 @@ -25,9 +25,9 @@ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------- // -$modversion['name'] = _MI_BASE_NAME; +$modversion['name'] = _MI_LEGACY_NAME; $modversion['version'] = 1.00; -$modversion['description'] = _MI_BASE_NAME_DESC; +$modversion['description'] = _MI_LEGACY_NAME_DESC; $modversion['author'] = ""; $modversion['credits'] = "The XOOPS Project"; $modversion['help'] = "help.html"; @@ -146,37 +146,37 @@ // Blocks $modversion['blocks'][1]['file'] = "legacy_mainmenu.php"; -$modversion['blocks'][1]['name'] = _MI_BASE_BLOCK_MAINMENU_NAME; -$modversion['blocks'][1]['description'] = _MI_BASE_BLOCK_MAINMENU_DESC; +$modversion['blocks'][1]['name'] = _MI_LEGACY_BLOCK_MAINMENU_NAME; +$modversion['blocks'][1]['description'] = _MI_LEGACY_BLOCK_MAINMENU_DESC; $modversion['blocks'][1]['show_func'] = "b_legacy_mainmenu_show"; $modversion['blocks'][1]['template'] = 'legacy_block_mainmenu.html'; $modversion['blocks'][1]['visible_any'] = true; $modversion['blocks'][1]['show_all_module'] = true; $modversion['blocks'][2]['file'] = "legacy_usermenu.php"; -$modversion['blocks'][2]['name'] = _MI_BASE_BLOCK_USERMENU_NAME; -$modversion['blocks'][2]['description'] = _MI_BASE_BLOCK_USERMENU_DESC; +$modversion['blocks'][2]['name'] = _MI_LEGACY_BLOCK_USERMENU_NAME; +$modversion['blocks'][2]['description'] = _MI_LEGACY_BLOCK_USERMENU_DESC; $modversion['blocks'][2]['show_func'] = "b_legacy_usermenu_show"; $modversion['blocks'][2]['template'] = 'legacy_block_usermenu.html'; $modversion['blocks'][2]['visible_any'] = true; $modversion['blocks'][2]['show_all_module'] = true; $modversion['blocks'][3]['file'] = "legacy_search.php"; -$modversion['blocks'][3]['name'] = _MI_BASE_BLOCK_SEARCH_NAME; -$modversion['blocks'][3]['description'] = _MI_BASE_BLOCK_SEARCH_DESC; +$modversion['blocks'][3]['name'] = _MI_LEGACY_BLOCK_SEARCH_NAME; +$modversion['blocks'][3]['description'] = _MI_LEGACY_BLOCK_SEARCH_DESC; $modversion['blocks'][3]['show_func'] = "b_legacy_search_show"; $modversion['blocks'][3]['template'] = 'legacy_block_search.html'; $modversion['blocks'][3]['show_all_module'] = true; $modversion['blocks'][4]['file'] = "legacy_waiting.php"; -$modversion['blocks'][4]['name'] = _MI_BASE_BLOCK_WAITING_NAME; -$modversion['blocks'][4]['description'] = _MI_BASE_BLOCK_WAITING_DESC; +$modversion['blocks'][4]['name'] = _MI_LEGACY_BLOCK_WAITING_NAME; +$modversion['blocks'][4]['description'] = _MI_LEGACY_BLOCK_WAITING_DESC; $modversion['blocks'][4]['show_func'] = "b_legacy_waiting_show"; $modversion['blocks'][4]['template'] = 'legacy_block_waiting.html'; $modversion['blocks'][5]['file'] = "legacy_siteinfo.php"; -$modversion['blocks'][5]['name'] = _MI_BASE_BLOCK_SITEINFO_NAME; -$modversion['blocks'][5]['description'] = _MI_BASE_BLOCK_SITEINFO_DESC; +$modversion['blocks'][5]['name'] = _MI_LEGACY_BLOCK_SITEINFO_NAME; +$modversion['blocks'][5]['description'] = _MI_LEGACY_BLOCK_SITEINFO_DESC; $modversion['blocks'][5]['show_func'] = "b_legacy_siteinfo_show"; $modversion['blocks'][5]['edit_func'] = "b_legacy_siteinfo_edit"; $modversion['blocks'][5]['options'] = "320|190|s_poweredby.gif|1"; @@ -184,8 +184,8 @@ $modversion['blocks'][5]['show_all_module'] = true; $modversion['blocks'][6]['file'] = "legacy_comments.php"; -$modversion['blocks'][6]['name'] = _MI_BASE_BLOCK_COMMENTS_NAME; -$modversion['blocks'][6]['description'] = _MI_BASE_BLOCK_COMMENTS_DESC; +$modversion['blocks'][6]['name'] = _MI_LEGACY_BLOCK_COMMENTS_NAME; +$modversion['blocks'][6]['description'] = _MI_LEGACY_BLOCK_COMMENTS_DESC; $modversion['blocks'][6]['show_func'] = "b_legacy_comments_show"; $modversion['blocks'][6]['options'] = "10"; $modversion['blocks'][6]['edit_func'] = "b_legacy_comments_edit"; @@ -193,14 +193,14 @@ $modversion['blocks'][6]['show_all_module'] = true; $modversion['blocks'][7]['file'] = "legacy_notification.php"; -$modversion['blocks'][7]['name'] = _MI_BASE_BLOCK_NOTIFICATION_NAME; -$modversion['blocks'][7]['description'] = _MI_BASE_BLOCK_NOTIFICATION_DESC; +$modversion['blocks'][7]['name'] = _MI_LEGACY_BLOCK_NOTIFICATION_NAME; +$modversion['blocks'][7]['description'] = _MI_LEGACY_BLOCK_NOTIFICATION_DESC; $modversion['blocks'][7]['show_func'] = "b_legacy_notification_show"; $modversion['blocks'][7]['template'] = 'legacy_block_notification.html'; $modversion['blocks'][8]['file'] = "legacy_themes.php"; -$modversion['blocks'][8]['name'] = _MI_BASE_BLOCK_THEMES_NAME; -$modversion['blocks'][8]['description'] = _MI_BASE_BLOCK_THEMES_DESC; +$modversion['blocks'][8]['name'] = _MI_LEGACY_BLOCK_THEMES_NAME; +$modversion['blocks'][8]['description'] = _MI_LEGACY_BLOCK_THEMES_DESC; $modversion['blocks'][8]['show_func'] = "b_legacy_themes_show"; $modversion['blocks'][8]['options'] = "0|80"; $modversion['blocks'][8]['edit_func'] = "b_legacy_themes_edit"; From minahito @ users.sourceforge.jp Sun Oct 15 00:39:44 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:39:44 +0900 Subject: [xoops-cvslog 5149] CVS update: xoops2jp/html/modules/legacy/.xml Message-ID: <20061014153944.300BC2AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/.xml/misc_friend.xml diff -u xoops2jp/html/modules/legacy/.xml/misc_friend.xml:1.1.2.1 xoops2jp/html/modules/legacy/.xml/misc_friend.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/.xml/misc_friend.xml:1.1.2.1 Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/.xml/misc_friend.xml Sun Oct 15 00:39:44 2006 @@ -8,22 +8,22 @@ - - + + - - - + + + - - + + - - - + + + Index: xoops2jp/html/modules/legacy/.xml/search_showall.xml diff -u xoops2jp/html/modules/legacy/.xml/search_showall.xml:1.1.2.1 xoops2jp/html/modules/legacy/.xml/search_showall.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/.xml/search_showall.xml:1.1.2.1 Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/.xml/search_showall.xml Sun Oct 15 00:39:44 2006 @@ -8,8 +8,8 @@ - - + + Index: xoops2jp/html/modules/legacy/.xml/search_showallbyuser.xml diff -u xoops2jp/html/modules/legacy/.xml/search_showallbyuser.xml:1.1.2.1 xoops2jp/html/modules/legacy/.xml/search_showallbyuser.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/.xml/search_showallbyuser.xml:1.1.2.1 Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/.xml/search_showallbyuser.xml Sun Oct 15 00:39:44 2006 @@ -9,8 +9,8 @@ - - + + Index: xoops2jp/html/modules/legacy/.xml/image_upload.xml diff -u xoops2jp/html/modules/legacy/.xml/image_upload.xml:1.1.2.1 xoops2jp/html/modules/legacy/.xml/image_upload.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/.xml/image_upload.xml:1.1.2.1 Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/.xml/image_upload.xml Sun Oct 15 00:39:44 2006 @@ -7,20 +7,20 @@ - - + + - + - - + + - - - + + + Index: xoops2jp/html/modules/legacy/.xml/search_results.xml diff -u xoops2jp/html/modules/legacy/.xml/search_results.xml:1.1.2.1 xoops2jp/html/modules/legacy/.xml/search_results.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/.xml/search_results.xml:1.1.2.1 Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/.xml/search_results.xml Sun Oct 15 00:39:44 2006 @@ -7,8 +7,8 @@ - - + + Index: xoops2jp/html/modules/legacy/.xml/comment_edit.xml diff -u xoops2jp/html/modules/legacy/.xml/comment_edit.xml:1.1.2.1 xoops2jp/html/modules/legacy/.xml/comment_edit.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/.xml/comment_edit.xml:1.1.2.1 Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/.xml/comment_edit.xml Sun Oct 15 00:39:44 2006 @@ -16,32 +16,32 @@ - - + + - - + + - + - - + + - + - - + + - - + + - + From minahito @ users.sourceforge.jp Sun Oct 15 00:40:24 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:40:24 +0900 Subject: [xoops-cvslog 5150] CVS update: xoops2jp/html/modules/legacy/actions Message-ID: <20061014154024.E512D2AC286@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/actions/ImageListAction.class.php diff -u xoops2jp/html/modules/legacy/actions/ImageListAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/actions/ImageListAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/actions/ImageListAction.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/ImageListAction.class.php Sun Oct 15 00:40:24 2006 @@ -2,8 +2,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractListAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/forms/ImageFilterForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractListAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/forms/ImageFilterForm.class.php"; class Legacy_ImageListAction extends Legacy_AbstractListAction { @@ -14,12 +14,12 @@ $controller->setDialogMode(true); $root =& $controller->mRoot; - $root->mLanguageManager->loadModuleMessageCatalog('base'); + $root->mLanguageManager->loadModuleMessageCatalog('legacy'); } function &_getHandler() { - $handler =& xoops_getmodulehandler('image', 'base'); + $handler =& xoops_getmodulehandler('image', 'legacy'); return $handler; } @@ -39,7 +39,7 @@ $result = parent::getDefaultView($controller, $xoopsUser); if ($result == LEGACY_FRAME_VIEW_INDEX) { $this->mImgcatId = xoops_getrequest('imgcat_id'); - $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $handler =& xoops_getmodulehandler('imagecategory', 'legacy'); $this->mCategory =& $handler->get($this->mImgcatId ); } @@ -59,7 +59,7 @@ $render->setAttribute('imgcatId', $this->mImgcatId); - $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $handler =& xoops_getmodulehandler('imagecategory', 'legacy'); if (is_object($xoopsUser)) { $groups =& $xoopsUser->getGroups(); From minahito @ users.sourceforge.jp Sun Oct 15 00:40:47 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:40:47 +0900 Subject: [xoops-cvslog 5151] CVS update: xoops2jp/html/modules/legacy/actions Message-ID: <20061014154047.B73202AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/actions/ImageUploadAction.class.php diff -u xoops2jp/html/modules/legacy/actions/ImageUploadAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/actions/ImageUploadAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/actions/ImageUploadAction.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/ImageUploadAction.class.php Sun Oct 15 00:40:47 2006 @@ -2,8 +2,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/admin/actions/ImageEditAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/forms/ImageUploadForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/actions/ImageEditAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/forms/ImageUploadForm.class.php"; class Legacy_ImageUploadAction extends Legacy_ImageEditAction { @@ -15,12 +15,12 @@ $controller->setDialogMode(true); $root =& $controller->mRoot; - $root->mLanguageManager->loadModuleMessageCatalog('base'); + $root->mLanguageManager->loadModuleMessageCatalog('legacy'); } function &_getHandler() { - $handler =& xoops_getmodulehandler('image', 'base'); + $handler =& xoops_getmodulehandler('image', 'legacy'); return $handler; } @@ -47,7 +47,7 @@ $groups = array(XOOPS_GROUP_ANONYMOUS); } - $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $handler =& xoops_getmodulehandler('imagecategory', 'legacy'); $this->mCategory =& $handler->get(xoops_getrequest('imgcat_id')); if (!is_object($this->mCategory ) || (is_object($this->mCategory) && !$this->mCategory->hasUploadPerm($groups))) { return false; @@ -73,7 +73,7 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - redirect_header(XOOPS_URL . "/imagemanager.php", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + redirect_header(XOOPS_URL . "/imagemanager.php", 1, _MD_LEGACY_ERROR_DBUPDATE_FAILED); } } From minahito @ users.sourceforge.jp Sun Oct 15 00:42:22 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:42:22 +0900 Subject: [xoops-cvslog 5152] CVS update: xoops2jp/html/modules/legacy/actions Message-ID: <20061014154222.7C8FE2AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/actions/MiscFriendAction.class.php diff -u xoops2jp/html/modules/legacy/actions/MiscFriendAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/actions/MiscFriendAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/actions/MiscFriendAction.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/MiscFriendAction.class.php Sun Oct 15 00:42:22 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractListAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/forms/MiscFriendForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractListAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/forms/MiscFriendForm.class.php"; class Legacy_MiscFriendAction extends Legacy_Action { From minahito @ users.sourceforge.jp Sun Oct 15 00:42:33 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:42:33 +0900 Subject: [xoops-cvslog 5153] CVS update: xoops2jp/html/modules/legacy/actions Message-ID: <20061014154233.B71C92AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/actions/MiscSmiliesAction.class.php diff -u xoops2jp/html/modules/legacy/actions/MiscSmiliesAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/actions/MiscSmiliesAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/actions/MiscSmiliesAction.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/MiscSmiliesAction.class.php Sun Oct 15 00:42:33 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractListAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/forms/SmilesFilterForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractListAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/forms/SmilesFilterForm.class.php"; class Legacy_MiscSmiliesAction extends Legacy_AbstractListAction { @@ -18,7 +18,7 @@ function &_getHandler() { - $handler =& xoops_getmodulehandler('smiles', 'base'); + $handler =& xoops_getmodulehandler('smiles', 'legacy'); return $handler; } @@ -45,7 +45,7 @@ // Because this action's template uses BASE message catalog, load it. // $root =& $controller->mRoot; - $root->mLanguageManager->loadModuleMessageCatalog('base'); + $root->mLanguageManager->loadModuleMessageCatalog('legacy'); $render->setTemplateName("legacy_misc_smilies.html"); $render->setAttribute("objects", $this->mObjects); From minahito @ users.sourceforge.jp Sun Oct 15 00:42:49 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:42:49 +0900 Subject: [xoops-cvslog 5154] CVS update: xoops2jp/html/modules/legacy/actions Message-ID: <20061014154249.3F5812AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/actions/NotifyDeleteAction.class.php diff -u xoops2jp/html/modules/legacy/actions/NotifyDeleteAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/actions/NotifyDeleteAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/actions/NotifyDeleteAction.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/NotifyDeleteAction.class.php Sun Oct 15 00:42:49 2006 @@ -8,7 +8,7 @@ require_once XOOPS_ROOT_PATH . "/include/notification_functions.php"; -require_once XOOPS_MODULE_PATH . "/base/forms/NotifyDeleteForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/forms/NotifyDeleteForm.class.php"; /** * List up notifications. This action is like notifications.php (when $op is @@ -24,7 +24,7 @@ function prepare(&$controller, &$xoopsUser) { $controller->mRoot->mLanguageManager->loadPageTypeMessageCatalog('notification'); - $controller->mRoot->mLanguageManager->loadModuleMessageCatalog('base'); + $controller->mRoot->mLanguageManager->loadModuleMessageCatalog('legacy'); $this->mActionForm =& new Legacy_NotifyDeleteForm(); $this->mActionForm->prepare(); From minahito @ users.sourceforge.jp Sun Oct 15 00:43:08 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:43:08 +0900 Subject: [xoops-cvslog 5155] CVS update: xoops2jp/html/modules/legacy/actions Message-ID: <20061014154308.4BAE92AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/actions/NotifyListAction.class.php diff -u xoops2jp/html/modules/legacy/actions/NotifyListAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/actions/NotifyListAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/actions/NotifyListAction.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/NotifyListAction.class.php Sun Oct 15 00:43:08 2006 @@ -8,7 +8,7 @@ require_once XOOPS_ROOT_PATH . "/include/notification_functions.php"; -require_once XOOPS_MODULE_PATH . "/base/forms/NotifyDeleteForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/forms/NotifyDeleteForm.class.php"; /** * List up notifications. This action is like notifications.php (when $op is @@ -23,7 +23,7 @@ { $root =& $controller->mRoot; $root->mLanguageManager->loadPageTypeMessageCatalog('notification'); - $root->mLanguageManager->loadModuleMessageCatalog('base'); + $root->mLanguageManager->loadModuleMessageCatalog('legacy'); $this->mActionForm =& new Legacy_NotifyDeleteForm(); $this->mActionForm->prepare(); From minahito @ users.sourceforge.jp Sun Oct 15 00:43:22 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:43:22 +0900 Subject: [xoops-cvslog 5156] CVS update: xoops2jp/html/modules/legacy/actions Message-ID: <20061014154322.515542AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/actions/SearchAction.class.php diff -u xoops2jp/html/modules/legacy/actions/SearchAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/actions/SearchAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/actions/SearchAction.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/SearchAction.class.php Sun Oct 15 00:43:22 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/actions/SearchResultsAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/forms/SearchResultsForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/actions/SearchResultsAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/forms/SearchResultsForm.class.php"; class Legacy_SearchAction extends Legacy_SearchResultsAction { From minahito @ users.sourceforge.jp Sun Oct 15 00:43:44 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:43:44 +0900 Subject: [xoops-cvslog 5157] CVS update: xoops2jp/html/modules/legacy/actions Message-ID: <20061014154344.C1B572AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/actions/SearchResultsAction.class.php diff -u xoops2jp/html/modules/legacy/actions/SearchResultsAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/actions/SearchResultsAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/actions/SearchResultsAction.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/SearchResultsAction.class.php Sun Oct 15 00:43:44 2006 @@ -2,7 +2,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/forms/SearchResultsForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/forms/SearchResultsForm.class.php"; define('LEGACY_SEARCH_RESULT_MAXHIT', 5); define('LEGACY_SEARCH_SHOWALL_MAXHIT', 20); @@ -19,7 +19,7 @@ { $root =& $controller->mRoot; $root->mLanguageManager->loadPageTypeMessageCatalog('search'); - $root->mLanguageManager->loadModuleMessageCatalog('base'); + $root->mLanguageManager->loadModuleMessageCatalog('legacy'); $handler =& xoops_gethandler('config'); $this->mConfig =& $handler->getConfigsByCat(XOOPS_CONF_SEARCH); @@ -36,7 +36,7 @@ function hasPermission(&$controller, &$xoopsUser) { if ($this->mConfig['enable_search'] != 1) { - $controller->executeRedirect(XOOPS_URL . '/', 3, _MD_BASE_ERROR_SEARCH_NOT_ENABLED); + $controller->executeRedirect(XOOPS_URL . '/', 3, _MD_LEGACY_ERROR_SEARCH_NOT_ENABLED); return false; } return true; From minahito @ users.sourceforge.jp Sun Oct 15 00:43:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:43:57 +0900 Subject: [xoops-cvslog 5158] CVS update: xoops2jp/html/modules/legacy/actions Message-ID: <20061014154357.0850E2AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/actions/SearchShowallAction.class.php diff -u xoops2jp/html/modules/legacy/actions/SearchShowallAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/actions/SearchShowallAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/actions/SearchShowallAction.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/SearchShowallAction.class.php Sun Oct 15 00:43:56 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/actions/SearchResultsAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/forms/SearchShowallForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/actions/SearchResultsAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/forms/SearchShowallForm.class.php"; class Legacy_SearchShowallAction extends Legacy_SearchResultsAction { From minahito @ users.sourceforge.jp Sun Oct 15 00:44:10 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:44:10 +0900 Subject: [xoops-cvslog 5159] CVS update: xoops2jp/html/modules/legacy/actions Message-ID: <20061014154410.3D3552AC287@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/actions/SearchShowallbyuserAction.class.php diff -u xoops2jp/html/modules/legacy/actions/SearchShowallbyuserAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/actions/SearchShowallbyuserAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/actions/SearchShowallbyuserAction.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/actions/SearchShowallbyuserAction.class.php Sun Oct 15 00:44:10 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/actions/SearchShowallAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/forms/SearchShowallbyuserForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/actions/SearchShowallAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/forms/SearchShowallbyuserForm.class.php"; class Legacy_SearchShowallbyuserAction extends Legacy_SearchShowallAction { From minahito @ users.sourceforge.jp Sun Oct 15 00:45:25 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:45:25 +0900 Subject: [xoops-cvslog 5160] CVS update: xoops2jp/html/modules/legacy/admin Message-ID: <20061014154525.97D8F2AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/index.php diff -u xoops2jp/html/modules/legacy/admin/index.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/index.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/index.php:1.1.2.1 Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/admin/index.php Sun Oct 15 00:45:25 2006 @@ -2,7 +2,7 @@ require_once "../../../mainfile.php"; require_once XOOPS_ROOT_PATH . "/header.php"; -require_once XOOPS_MODULE_PATH . "/base/class/ActionFrame.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/ActionFrame.class.php"; $root =& XCube_Root::getSingleton(); From minahito @ users.sourceforge.jp Sun Oct 15 00:45:47 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:45:47 +0900 Subject: [xoops-cvslog 5161] CVS update: xoops2jp/html/modules/legacy/admin Message-ID: <20061014154547.548E12AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/menu.php diff -u xoops2jp/html/modules/legacy/admin/menu.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/menu.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/menu.php:1.1.2.1 Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/admin/menu.php Sun Oct 15 00:45:47 2006 @@ -3,44 +3,44 @@ * @version $Id$ */ -$adminmenu[1]['title']=_MI_BASE_MENU_ACTIONSEARCH; +$adminmenu[1]['title']=_MI_LEGACY_MENU_ACTIONSEARCH; $adminmenu[1]['link']="admin/index.php?action=ActSearch"; -$adminmenu[2]['title']=_MI_BASE_MENU_PREFERENCE; +$adminmenu[2]['title']=_MI_LEGACY_MENU_PREFERENCE; $adminmenu[2]['link']="admin/index.php?action=PreferenceList"; -$adminmenu[3]['title']=_MI_BASE_MENU_MODULELIST; -$adminmenu[3]['keywords']=_MI_BASE_KEYWORD_MODULELIST; +$adminmenu[3]['title']=_MI_LEGACY_MENU_MODULELIST; +$adminmenu[3]['keywords']=_MI_LEGACY_KEYWORD_MODULELIST; $adminmenu[3]['link']="admin/index.php?action=ModuleList"; -$adminmenu[4]['title']=_MI_BASE_MENU_MODULEINSTALL; -$adminmenu[4]['keywords']=_MI_BASE_KEYWORD_MODULEINSTALL; +$adminmenu[4]['title']=_MI_LEGACY_MENU_MODULEINSTALL; +$adminmenu[4]['keywords']=_MI_LEGACY_KEYWORD_MODULEINSTALL; $adminmenu[4]['link']="admin/index.php?action=InstallList"; -$adminmenu[5]['title']=_MI_BASE_MENU_BLOCKLIST; -$adminmenu[5]['keywords']=_MI_BASE_KEYWORD_BLOCKLIST; +$adminmenu[5]['title']=_MI_LEGACY_MENU_BLOCKLIST; +$adminmenu[5]['keywords']=_MI_LEGACY_KEYWORD_BLOCKLIST; $adminmenu[5]['link']="admin/index.php?action=BlockList"; -$adminmenu[6]['title']=_MI_BASE_MENU_BLOCKINSTALL; -$adminmenu[6]['keywords']=_MI_BASE_KEYWORD_BLOCKINSTALL; +$adminmenu[6]['title']=_MI_LEGACY_MENU_BLOCKINSTALL; +$adminmenu[6]['keywords']=_MI_LEGACY_KEYWORD_BLOCKINSTALL; $adminmenu[6]['link']="admin/index.php?action=BlockInstallList"; -$adminmenu[7]['title']=_MI_BASE_MENU_CREATE_SMILES; +$adminmenu[7]['title']=_MI_LEGACY_MENU_CREATE_SMILES; $adminmenu[7]['link']="admin/index.php?action=SmilesEdit"; -$adminmenu[7]['keywords']=_MI_BASE_KEYWORD_CREATE_SMILES; +$adminmenu[7]['keywords']=_MI_LEGACY_KEYWORD_CREATE_SMILES; $adminmenu[7]['show']=false; -$adminmenu[8]['title']=_MI_BASE_MENU_SMILES_MANAGE; -$adminmenu[8]['keywords']=_MI_BASE_KEYWORD_SMILES_MANAGE; +$adminmenu[8]['title']=_MI_LEGACY_MENU_SMILES_MANAGE; +$adminmenu[8]['keywords']=_MI_LEGACY_KEYWORD_SMILES_MANAGE; $adminmenu[8]['link']="admin/index.php?action=SmilesList"; -$adminmenu[9]['title']=_MI_BASE_MENU_COMMENT_MANAGE; +$adminmenu[9]['title']=_MI_LEGACY_MENU_COMMENT_MANAGE; $adminmenu[9]['link']="admin/index.php?action=CommentList"; -$adminmenu[10]['title']=_MI_BASE_MENU_IMAGE_MANAGE; +$adminmenu[10]['title']=_MI_LEGACY_MENU_IMAGE_MANAGE; $adminmenu[10]['link']="admin/index.php?action=ImagecategoryList"; -$adminmenu[11]['title']=_MI_BASE_MENU_THEME_MANAGE; +$adminmenu[11]['title']=_MI_LEGACY_MENU_THEME_MANAGE; $adminmenu[11]['link']="admin/index.php?action=ThemeList"; ?> From minahito @ users.sourceforge.jp Sun Oct 15 00:46:11 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:46:11 +0900 Subject: [xoops-cvslog 5162] CVS update: xoops2jp/html/modules/legacy/admin/.xml Message-ID: <20061014154611.06E102AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/.xml/install_wizard.xml diff -u xoops2jp/html/modules/legacy/admin/.xml/install_wizard.xml:1.1.2.1 xoops2jp/html/modules/legacy/admin/.xml/install_wizard.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/.xml/install_wizard.xml:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/install_wizard.xml Sun Oct 15 00:46:11 2006 @@ -6,7 +6,7 @@ - + Index: xoops2jp/html/modules/legacy/admin/.xml/block_list.xml diff -u xoops2jp/html/modules/legacy/admin/.xml/block_list.xml:1.1.2.1 xoops2jp/html/modules/legacy/admin/.xml/block_list.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/.xml/block_list.xml:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/block_list.xml Sun Oct 15 00:46:11 2006 @@ -7,23 +7,23 @@ - - - + + + - - - + + + - - - + + + Index: xoops2jp/html/modules/legacy/admin/.xml/newblocks_edit.xml diff -u xoops2jp/html/modules/legacy/admin/.xml/newblocks_edit.xml:1.1.2.1 xoops2jp/html/modules/legacy/admin/.xml/newblocks_edit.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/.xml/newblocks_edit.xml:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/newblocks_edit.xml Sun Oct 15 00:46:11 2006 @@ -24,102 +24,102 @@ - - + + - - + + - - + + - - + + - + - - + + - + - - + + - + - - + + - - + + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - + - - + + - - + + Index: xoops2jp/html/modules/legacy/admin/.xml/image_edit.xml diff -u xoops2jp/html/modules/legacy/admin/.xml/image_edit.xml:1.1.2.1 xoops2jp/html/modules/legacy/admin/.xml/image_edit.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/.xml/image_edit.xml:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/image_edit.xml Sun Oct 15 00:46:11 2006 @@ -7,12 +7,12 @@ - - + + - - + + Index: xoops2jp/html/modules/legacy/admin/.xml/blockinstall_edit.xml diff -u xoops2jp/html/modules/legacy/admin/.xml/blockinstall_edit.xml:1.1.2.1 xoops2jp/html/modules/legacy/admin/.xml/blockinstall_edit.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/.xml/blockinstall_edit.xml:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/blockinstall_edit.xml Sun Oct 15 00:46:11 2006 @@ -13,34 +13,34 @@ - - + + - - + + - + - - + + - + - - + + - - + + - - + + Index: xoops2jp/html/modules/legacy/admin/.xml/block_edit.xml diff -u xoops2jp/html/modules/legacy/admin/.xml/block_edit.xml:1.1.2.1 xoops2jp/html/modules/legacy/admin/.xml/block_edit.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/.xml/block_edit.xml:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/block_edit.xml Sun Oct 15 00:46:11 2006 @@ -12,40 +12,40 @@ - - + + - - + + - + - - - + + + - - - + + + - - - + + + - - + + Index: xoops2jp/html/modules/legacy/admin/.xml/imagecategory_new.xml diff -u xoops2jp/html/modules/legacy/admin/.xml/imagecategory_new.xml:1.1.2.1 xoops2jp/html/modules/legacy/admin/.xml/imagecategory_new.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/.xml/imagecategory_new.xml:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/imagecategory_new.xml Sun Oct 15 00:46:11 2006 @@ -5,10 +5,10 @@ - - + + - + Index: xoops2jp/html/modules/legacy/admin/.xml/newblocks_delete.xml diff -u xoops2jp/html/modules/legacy/admin/.xml/newblocks_delete.xml:1.1.2.1 xoops2jp/html/modules/legacy/admin/.xml/newblocks_delete.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/.xml/newblocks_delete.xml:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/newblocks_delete.xml Sun Oct 15 00:46:11 2006 @@ -5,8 +5,8 @@ - - + + Index: xoops2jp/html/modules/legacy/admin/.xml/smiles_delete.xml diff -u xoops2jp/html/modules/legacy/admin/.xml/smiles_delete.xml:1.1.2.1 xoops2jp/html/modules/legacy/admin/.xml/smiles_delete.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/.xml/smiles_delete.xml:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/smiles_delete.xml Sun Oct 15 00:46:11 2006 @@ -5,8 +5,8 @@ - - + + Index: xoops2jp/html/modules/legacy/admin/.xml/block_uninstall.xml diff -u xoops2jp/html/modules/legacy/admin/.xml/block_uninstall.xml:1.1.2.1 xoops2jp/html/modules/legacy/admin/.xml/block_uninstall.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/.xml/block_uninstall.xml:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/block_uninstall.xml Sun Oct 15 00:46:11 2006 @@ -5,8 +5,8 @@ - - + + Index: xoops2jp/html/modules/legacy/admin/.xml/customblock_edit.xml diff -u xoops2jp/html/modules/legacy/admin/.xml/customblock_edit.xml:1.1.2.1 xoops2jp/html/modules/legacy/admin/.xml/customblock_edit.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/.xml/customblock_edit.xml:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/customblock_edit.xml Sun Oct 15 00:46:11 2006 @@ -6,14 +6,14 @@ - - + + - - + + - + Index: xoops2jp/html/modules/legacy/admin/.xml/image_delete.xml diff -u xoops2jp/html/modules/legacy/admin/.xml/image_delete.xml:1.1.2.1 xoops2jp/html/modules/legacy/admin/.xml/image_delete.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/.xml/image_delete.xml:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/image_delete.xml Sun Oct 15 00:46:11 2006 @@ -5,8 +5,8 @@ - - + + Index: xoops2jp/html/modules/legacy/admin/.xml/xoopscomments_delete.xml diff -u xoops2jp/html/modules/legacy/admin/.xml/xoopscomments_delete.xml:1.1.2.1 xoops2jp/html/modules/legacy/admin/.xml/xoopscomments_delete.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/.xml/xoopscomments_delete.xml:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/xoopscomments_delete.xml Sun Oct 15 00:46:11 2006 @@ -5,8 +5,8 @@ - - + + Index: xoops2jp/html/modules/legacy/admin/.xml/xoopscomments_edit.xml diff -u xoops2jp/html/modules/legacy/admin/.xml/xoopscomments_edit.xml:1.1.2.1 xoops2jp/html/modules/legacy/admin/.xml/xoopscomments_edit.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/.xml/xoopscomments_edit.xml:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/xoopscomments_edit.xml Sun Oct 15 00:46:11 2006 @@ -15,32 +15,32 @@ - - + + - + - + - - + + - + - - + + - + - - + + Index: xoops2jp/html/modules/legacy/admin/.xml/smiles_edit.xml diff -u xoops2jp/html/modules/legacy/admin/.xml/smiles_edit.xml:1.1.2.1 xoops2jp/html/modules/legacy/admin/.xml/smiles_edit.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/.xml/smiles_edit.xml:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/smiles_edit.xml Sun Oct 15 00:46:11 2006 @@ -9,25 +9,25 @@ - - + + - - + + - + - + - - + + - + Index: xoops2jp/html/modules/legacy/admin/.xml/imagecategory_edit.xml diff -u xoops2jp/html/modules/legacy/admin/.xml/imagecategory_edit.xml:1.1.2.1 xoops2jp/html/modules/legacy/admin/.xml/imagecategory_edit.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/.xml/imagecategory_edit.xml:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/imagecategory_edit.xml Sun Oct 15 00:46:11 2006 @@ -14,40 +14,40 @@ - - + + - - + + - + - - + + - - + + - - + + - - + + - - + + - - + + Index: xoops2jp/html/modules/legacy/admin/.xml/imagecategory_delete.xml diff -u xoops2jp/html/modules/legacy/admin/.xml/imagecategory_delete.xml:1.1.2.1 xoops2jp/html/modules/legacy/admin/.xml/imagecategory_delete.xml:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/.xml/imagecategory_delete.xml:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/imagecategory_delete.xml Sun Oct 15 00:46:11 2006 @@ -5,8 +5,8 @@ - - + + From minahito @ users.sourceforge.jp Sun Oct 15 00:46:40 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:46:40 +0900 Subject: [xoops-cvslog 5163] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014154640.54F8F2AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/ActSearchAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/ActSearchAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/ActSearchAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/ActSearchAction.class.php:1.1.2.1 Sat Oct 14 23:55:20 2006 +++ xoops2jp/html/modules/legacy/admin/actions/ActSearchAction.class.php Sun Oct 15 00:46:40 2006 @@ -2,7 +2,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_BASE_PATH."/admin/forms/ActionSearchForm.class.php"; +require_once XOOPS_LEGACY_PATH."/admin/forms/ActionSearchForm.class.php"; class Legacy_ActionSearchArgs { From minahito @ users.sourceforge.jp Sun Oct 15 00:47:19 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:47:19 +0900 Subject: [xoops-cvslog 5164] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014154719.1B6A72AC286@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/BlockEditAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/BlockEditAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/BlockEditAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/BlockEditAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/BlockEditAction.class.php Sun Oct 15 00:47:18 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractEditAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/BlockEditForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractEditAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/BlockEditForm.class.php"; class Legacy_BlockEditAction extends Legacy_AbstractEditAction { @@ -78,7 +78,7 @@ // // Reset block_module_link. // - $handler =& xoops_getmodulehandler('block_module_link', 'base'); + $handler =& xoops_getmodulehandler('block_module_link', 'legacy'); $handler->deleteAll(new Criteria('block_id', $this->mObject->get('bid'))); foreach ($this->mObject->mBmodule as $bmodule) { // @@ -150,11 +150,11 @@ $handler =& xoops_gethandler('module'); $moduleArr[0] =& $handler->create(); $moduleArr[0]->set('mid', -1); - $moduleArr[0]->set('name', _AD_BASE_LANG_TOPPAGE); + $moduleArr[0]->set('name', _AD_LEGACY_LANG_TOPPAGE); $moduleArr[1] =& $handler->create(); $moduleArr[1]->set('mid', 0); - $moduleArr[1]->set('name', _AD_BASE_LANG_ALL_MODULES); + $moduleArr[1]->set('name', _AD_LEGACY_LANG_ALL_MODULES); $criteria =& new CriteriaCompo(); $criteria->add(new Criteria('hasmain', 1)); @@ -202,7 +202,7 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - $controller->executeRedirect("./index.php?action=BlockList", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + $controller->executeRedirect("./index.php?action=BlockList", 1, _MD_LEGACY_ERROR_DBUPDATE_FAILED); } function executeViewCancel(&$controller, &$xoopsUser, &$render) From minahito @ users.sourceforge.jp Sun Oct 15 00:47:44 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:47:44 +0900 Subject: [xoops-cvslog 5165] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014154744.6756F2AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/BlockInstallEditAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/BlockInstallEditAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/BlockInstallEditAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/BlockInstallEditAction.class.php:1.1.2.1 Sat Oct 14 23:55:20 2006 +++ xoops2jp/html/modules/legacy/admin/actions/BlockInstallEditAction.class.php Sun Oct 15 00:47:44 2006 @@ -6,10 +6,10 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/admin/actions//BlockEditAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/actions//BlockEditAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/class/AbstractEditAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/BlockInstallEditForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractEditAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/BlockInstallEditForm.class.php"; class Legacy_BlockInstallEditAction extends Legacy_BlockEditAction { @@ -42,7 +42,7 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - $controller->executeRedirect("./index.php?action=BlockInstallList", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + $controller->executeRedirect("./index.php?action=BlockInstallList", 1, _MD_LEGACY_ERROR_DBUPDATE_FAILED); } function executeViewCancel(&$controller, &$xoopsUser, &$render) From minahito @ users.sourceforge.jp Sun Oct 15 00:48:03 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:48:03 +0900 Subject: [xoops-cvslog 5166] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014154803.806822AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/BlockInstallListAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/BlockInstallListAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/BlockInstallListAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/BlockInstallListAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/BlockInstallListAction.class.php Sun Oct 15 00:48:03 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractListAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/BlockInstallFilterForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractListAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/BlockInstallFilterForm.class.php"; class Legacy_BlockInstallListAction extends Legacy_AbstractListAction { From minahito @ users.sourceforge.jp Sun Oct 15 00:48:18 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:48:18 +0900 Subject: [xoops-cvslog 5167] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014154818.6282C2AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/BlockListAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/BlockListAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/BlockListAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/BlockListAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/BlockListAction.class.php Sun Oct 15 00:48:18 2006 @@ -6,9 +6,9 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractListAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/BlockFilterForm.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/BlockListForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractListAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/BlockFilterForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/BlockListForm.class.php"; class Legacy_BlockListAction extends Legacy_AbstractListAction { @@ -94,7 +94,7 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - $controller->executeRedirect("./index.php?action=BlockInstallList", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + $controller->executeRedirect("./index.php?action=BlockInstallList", 1, _MD_LEGACY_ERROR_DBUPDATE_FAILED); } } From minahito @ users.sourceforge.jp Sun Oct 15 00:48:35 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:48:35 +0900 Subject: [xoops-cvslog 5168] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014154835.BF0D62AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/BlockUninstallAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/BlockUninstallAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/BlockUninstallAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/BlockUninstallAction.class.php:1.1.2.1 Sat Oct 14 23:55:20 2006 +++ xoops2jp/html/modules/legacy/admin/actions/BlockUninstallAction.class.php Sun Oct 15 00:48:35 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractEditAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/BlockUninstallForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractEditAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/BlockUninstallForm.class.php"; class Legacy_BlockUninstallAction extends Legacy_AbstractEditAction { @@ -60,7 +60,7 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - $controller->executeRedirect("./index.php?action=BlockList", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + $controller->executeRedirect("./index.php?action=BlockList", 1, _MD_LEGACY_ERROR_DBUPDATE_FAILED); } function executeViewCancel(&$controller, &$xoopsUser, &$render) From minahito @ users.sourceforge.jp Sun Oct 15 00:48:54 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:48:54 +0900 Subject: [xoops-cvslog 5169] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014154854.DCA0E2AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/CommentDeleteAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/CommentDeleteAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/CommentDeleteAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/CommentDeleteAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/CommentDeleteAction.class.php Sun Oct 15 00:48:54 2006 @@ -6,9 +6,9 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractDeleteAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/CommentAdminDeleteForm.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/actions/CommentEditAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractDeleteAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/CommentAdminDeleteForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/actions/CommentEditAction.class.php"; class Legacy_CommentDeleteAction extends Legacy_AbstractDeleteAction { @@ -66,7 +66,7 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - $controller->executeRedirect("./index.php?action=CommentList", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + $controller->executeRedirect("./index.php?action=CommentList", 1, _MD_LEGACY_ERROR_DBUPDATE_FAILED); } function executeViewCancel(&$controller, &$xoopsUser, &$render) From minahito @ users.sourceforge.jp Sun Oct 15 00:49:17 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:49:17 +0900 Subject: [xoops-cvslog 5170] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014154917.29E752AC287@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/CommentEditAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/CommentEditAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/CommentEditAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/CommentEditAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/CommentEditAction.class.php Sun Oct 15 00:49:17 2006 @@ -2,8 +2,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractEditAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/CommentAdminEditForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractEditAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/CommentAdminEditForm.class.php"; class Legacy_CommentEditAction extends Legacy_AbstractEditAction { @@ -83,7 +83,7 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - $controller->executeRedirect("./index.php?action=CommentList", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + $controller->executeRedirect("./index.php?action=CommentList", 1, _MD_LEGACY_ERROR_DBUPDATE_FAILED); } function executeViewCancel(&$controller, &$xoopsUser, &$render) From minahito @ users.sourceforge.jp Sun Oct 15 00:49:34 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:49:34 +0900 Subject: [xoops-cvslog 5171] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014154934.10D152AC287@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/CommentListAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/CommentListAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/CommentListAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/CommentListAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/CommentListAction.class.php Sun Oct 15 00:49:33 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractListAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/CommentFilterForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractListAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/CommentFilterForm.class.php"; class Legacy_CommentListAction extends Legacy_AbstractListAction { From minahito @ users.sourceforge.jp Sun Oct 15 00:49:46 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:49:46 +0900 Subject: [xoops-cvslog 5172] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014154946.7DA192AC286@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/CommentViewAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/CommentViewAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/CommentViewAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/CommentViewAction.class.php:1.1.2.1 Sat Oct 14 23:55:20 2006 +++ xoops2jp/html/modules/legacy/admin/actions/CommentViewAction.class.php Sun Oct 15 00:49:46 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractListAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/CommentFilterForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractListAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/CommentFilterForm.class.php"; class Legacy_CommentViewAction extends Legacy_Action { From minahito @ users.sourceforge.jp Sun Oct 15 00:50:35 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:50:35 +0900 Subject: [xoops-cvslog 5173] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155035.A99CB2AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/CustomBlockDeleteAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/CustomBlockDeleteAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/CustomBlockDeleteAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/CustomBlockDeleteAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/CustomBlockDeleteAction.class.php Sun Oct 15 00:50:35 2006 @@ -2,8 +2,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractDeleteAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/CustomBlockDeleteForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractDeleteAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/CustomBlockDeleteForm.class.php"; class Legacy_CustomBlockDeleteAction extends Legacy_AbstractDeleteAction { @@ -74,7 +74,7 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - $controller->executeRedirect("./index.php?action=BlockInstallList", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + $controller->executeRedirect("./index.php?action=BlockInstallList", 1, _MD_LEGACY_ERROR_DBUPDATE_FAILED); } function executeViewCancel(&$controller, &$xoopsUser, &$render) From tom_g3x @ users.sourceforge.jp Sun Oct 15 00:51:00 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Sun, 15 Oct 2006 00:51:00 +0900 Subject: [xoops-cvslog 5174] CVS update: xoops2jp/html/modules/user Message-ID: <20061014155100.CA4B92AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/user/xoops_version.php diff -u xoops2jp/html/modules/user/xoops_version.php:1.1.2.24 xoops2jp/html/modules/user/xoops_version.php:1.1.2.24.2.1 --- xoops2jp/html/modules/user/xoops_version.php:1.1.2.24 Sun Aug 27 00:08:19 2006 +++ xoops2jp/html/modules/user/xoops_version.php Sun Oct 15 00:51:00 2006 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/legacy/admin/actions/CustomBlockEditAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/CustomBlockEditAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/CustomBlockEditAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/CustomBlockEditAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/CustomBlockEditAction.class.php Sun Oct 15 00:51:00 2006 @@ -6,9 +6,9 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractEditAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/actions/BlockEditAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/CustomBlockEditForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractEditAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/actions/BlockEditAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/CustomBlockEditForm.class.php"; class Legacy_CustomBlockEditAction extends Legacy_BlockEditAction { @@ -46,11 +46,11 @@ $handler =& xoops_gethandler('module'); $moduleArr[0] =& $handler->create(); $moduleArr[0]->set('mid', -1); - $moduleArr[0]->set('name', _AD_BASE_LANG_TOPPAGE); + $moduleArr[0]->set('name', _AD_LEGACY_LANG_TOPPAGE); $moduleArr[1] =& $handler->create(); $moduleArr[1]->set('mid', 0); - $moduleArr[1]->set('name', _AD_BASE_LANG_ALL_MODULES); + $moduleArr[1]->set('name', _AD_LEGACY_LANG_ALL_MODULES); $criteria =& new CriteriaCompo(); $criteria->add(new Criteria('hasmain', 1)); From minahito @ users.sourceforge.jp Sun Oct 15 00:51:25 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:51:25 +0900 Subject: [xoops-cvslog 5176] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155125.99FD72AC288@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/HelpAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/HelpAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/HelpAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/HelpAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/HelpAction.class.php Sun Oct 15 00:51:25 2006 @@ -77,7 +77,7 @@ // TODO We should check file_exists. // - $url = XOOPS_MODULE_URL . "/base/admin/index.php?action=Help&dirname=${dirname}&file=${file}"; + $url = XOOPS_MODULE_URL . "/legacy/admin/index.php?action=Help&dirname=${dirname}&file=${file}"; return $url; } @@ -168,7 +168,7 @@ if (!file_exists($template_dir . "/" . $helpfile)) { $template_dir = XOOPS_MODULE_PATH . "/" . $this->_mDirname . "/language/english/help"; if (!file_exists($template_dir . "/" . $helpfile)) { - $this->mErrorMessage = _AD_BASE_ERROR_NO_HELP_FILE; + $this->mErrorMessage = _AD_LEGACY_ERROR_NO_HELP_FILE; return LEGACY_FRAME_VIEW_ERROR; } } From minahito @ users.sourceforge.jp Sun Oct 15 00:51:47 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:51:47 +0900 Subject: [xoops-cvslog 5177] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155147.CEB6C2AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/ImagecategoryDeleteAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/ImagecategoryDeleteAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/ImagecategoryDeleteAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/ImagecategoryDeleteAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/ImagecategoryDeleteAction.class.php Sun Oct 15 00:51:47 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractDeleteAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/ImagecategoryAdminDeleteForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractDeleteAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/ImagecategoryAdminDeleteForm.class.php"; class Legacy_ImagecategoryDeleteAction extends Legacy_AbstractDeleteAction { @@ -42,7 +42,7 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - $controller->executeRedirect("./index.php?action=ImagecategoryList", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + $controller->executeRedirect("./index.php?action=ImagecategoryList", 1, _MD_LEGACY_ERROR_DBUPDATE_FAILED); } function executeViewCancel(&$controller, &$xoopsUser, &$render) From minahito @ users.sourceforge.jp Sun Oct 15 00:52:15 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:52:15 +0900 Subject: [xoops-cvslog 5178] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155215.30E492AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/ImagecategoryEditAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/ImagecategoryEditAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/ImagecategoryEditAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/ImagecategoryEditAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/ImagecategoryEditAction.class.php Sun Oct 15 00:52:15 2006 @@ -6,9 +6,9 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractEditAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/ImagecategoryAdminEditForm.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/ImagecategoryAdminNewForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractEditAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/ImagecategoryAdminEditForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/ImagecategoryAdminNewForm.class.php"; class Legacy_ImagecategoryEditAction extends Legacy_AbstractEditAction { @@ -56,7 +56,7 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - $controller->executeRedirect("./index.php?action=ImagecategoryList", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + $controller->executeRedirect("./index.php?action=ImagecategoryList", 1, _MD_LEGACY_ERROR_DBUPDATE_FAILED); } function executeViewCancel(&$controller, &$xoopsUser, &$render) From minahito @ users.sourceforge.jp Sun Oct 15 00:52:37 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:52:37 +0900 Subject: [xoops-cvslog 5179] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155237.3833C2AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/ImagecategoryListAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/ImagecategoryListAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/ImagecategoryListAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/ImagecategoryListAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/ImagecategoryListAction.class.php Sun Oct 15 00:52:37 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractListAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/ImagecategoryFilterForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractListAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/ImagecategoryFilterForm.class.php"; class Legacy_ImagecategoryListAction extends Legacy_AbstractListAction { From minahito @ users.sourceforge.jp Sun Oct 15 00:52:56 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:52:56 +0900 Subject: [xoops-cvslog 5180] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155256.44F602AC286@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/ImageCreateAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/ImageCreateAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/ImageCreateAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/ImageCreateAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/ImageCreateAction.class.php Sun Oct 15 00:52:56 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractEditAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/ImageAdminEditForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractEditAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/ImageAdminEditForm.class.php"; class Legacy_ImageCreateAction extends Legacy_AbstractEditAction { @@ -18,7 +18,7 @@ function &_getHandler() { - $handler =& xoops_getmodulehandler('image', 'base'); + $handler =& xoops_getmodulehandler('image', 'legacy'); return $handler; } @@ -46,7 +46,7 @@ function _doExecute() { - $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $handler =& xoops_getmodulehandler('imagecategory', 'legacy'); $category =& $handler->get($this->mActionForm->get('imgcat_id')); // @@ -92,7 +92,7 @@ $render->setAttribute('actionForm', $this->mActionForm); $render->setAttribute('object', $this->mObject); - $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $handler =& xoops_getmodulehandler('imagecategory', 'legacy'); $categoryArr =& $handler->getObjects(); $render->setAttribute('categoryArr', $categoryArr); } @@ -104,7 +104,7 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - $controller->executeRedirect("./index.php?action=ImagecategoryList", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + $controller->executeRedirect("./index.php?action=ImagecategoryList", 1, _MD_LEGACY_ERROR_DBUPDATE_FAILED); } function executeViewCancel(&$controller, &$xoopsUser, &$render) From minahito @ users.sourceforge.jp Sun Oct 15 00:53:15 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:53:15 +0900 Subject: [xoops-cvslog 5181] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155315.EC57D2AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/ImageDeleteAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/ImageDeleteAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/ImageDeleteAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/ImageDeleteAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/ImageDeleteAction.class.php Sun Oct 15 00:53:15 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractDeleteAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/ImageAdminDeleteForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractDeleteAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/ImageAdminDeleteForm.class.php"; class Legacy_ImageDeleteAction extends Legacy_AbstractDeleteAction { @@ -44,7 +44,7 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - $controller->executeRedirect("./index.php?action=ImageList", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + $controller->executeRedirect("./index.php?action=ImageList", 1, _MD_LEGACY_ERROR_DBUPDATE_FAILED); } function executeViewCancel(&$controller, &$xoopsUser, &$render) From minahito @ users.sourceforge.jp Sun Oct 15 00:54:00 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:54:00 +0900 Subject: [xoops-cvslog 5182] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155400.A729D2AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/ImageEditAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/ImageEditAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/ImageEditAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/ImageEditAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/ImageEditAction.class.php Sun Oct 15 00:54:00 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/admin/actions/ImageCreateAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/ImageAdminEditForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/actions/ImageCreateAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/ImageAdminEditForm.class.php"; class Legacy_ImageEditAction extends Legacy_ImageCreateAction { @@ -40,7 +40,7 @@ $render->setAttribute('actionForm', $this->mActionForm); $render->setAttribute('object', $this->mObject); - $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $handler =& xoops_getmodulehandler('imagecategory', 'legacy'); $t_category = $handler->get($this->mObject->get('imgcat_id')); $categoryArr =& $handler->getObjects(new Criteria('imgcat_storetype', $t_category->get('imgcat_storetype'))); From minahito @ users.sourceforge.jp Sun Oct 15 00:54:11 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:54:11 +0900 Subject: [xoops-cvslog 5183] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155411.D94382AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/ImageListAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/ImageListAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/ImageListAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/ImageListAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/ImageListAction.class.php Sun Oct 15 00:54:11 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractListAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/ImageFilterForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractListAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/ImageFilterForm.class.php"; class Legacy_ImageListAction extends Legacy_AbstractListAction { From minahito @ users.sourceforge.jp Sun Oct 15 00:54:25 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:54:25 +0900 Subject: [xoops-cvslog 5184] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155425.43C4F2AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/InstallWizardAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/InstallWizardAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/InstallWizardAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/InstallWizardAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/InstallWizardAction.class.php Sun Oct 15 00:54:25 2006 @@ -5,9 +5,9 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_BASE_PATH."/admin/actions/AbstractModuleInstallAction.class.php"; -require_once XOOPS_BASE_PATH."/admin/class/ModuleInstaller.class.php"; -require_once XOOPS_BASE_PATH."/admin/forms/InstallWizardForm.class.php"; +require_once XOOPS_LEGACY_PATH."/admin/actions/AbstractModuleInstallAction.class.php"; +require_once XOOPS_LEGACY_PATH."/admin/class/ModuleInstaller.class.php"; +require_once XOOPS_LEGACY_PATH."/admin/forms/InstallWizardForm.class.php"; /** * Install module From minahito @ users.sourceforge.jp Sun Oct 15 00:54:46 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:54:46 +0900 Subject: [xoops-cvslog 5185] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155446.054A52AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/ModuleInfoAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/ModuleInfoAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/ModuleInfoAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/ModuleInfoAction.class.php:1.1.2.1 Sat Oct 14 23:55:20 2006 +++ xoops2jp/html/modules/legacy/admin/actions/ModuleInfoAction.class.php Sun Oct 15 00:54:46 2006 @@ -57,7 +57,7 @@ function executeViewError(&$controller, &$xoopsUser, &$renderer) { - $controller->executeRedirect('./index.php?action=ModuleList', 1, _AD_BASE_ERROR_MODULE_NOT_FOUND); + $controller->executeRedirect('./index.php?action=ModuleList', 1, _AD_LEGACY_ERROR_MODULE_NOT_FOUND); } } From minahito @ users.sourceforge.jp Sun Oct 15 00:54:58 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:54:58 +0900 Subject: [xoops-cvslog 5186] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155458.6ACB02AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/ModuleInstallAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/ModuleInstallAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/ModuleInstallAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/ModuleInstallAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/ModuleInstallAction.class.php Sun Oct 15 00:54:58 2006 @@ -6,9 +6,9 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_BASE_PATH."/admin/actions/AbstractModuleInstallAction.class.php"; -require_once XOOPS_BASE_PATH."/admin/class/ModuleInstaller.class.php"; -require_once XOOPS_BASE_PATH."/admin/forms/ModuleInstallForm.class.php"; +require_once XOOPS_LEGACY_PATH."/admin/actions/AbstractModuleInstallAction.class.php"; +require_once XOOPS_LEGACY_PATH."/admin/class/ModuleInstaller.class.php"; +require_once XOOPS_LEGACY_PATH."/admin/forms/ModuleInstallForm.class.php"; /** * Install module From minahito @ users.sourceforge.jp Sun Oct 15 00:55:15 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:55:15 +0900 Subject: [xoops-cvslog 5187] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155515.E87AF2AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/ModuleListAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/ModuleListAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/ModuleListAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/ModuleListAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/ModuleListAction.class.php Sun Oct 15 00:55:15 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_BASE_PATH . "/admin/forms/ModuleListFilterForm.class.php"; -require_once XOOPS_BASE_PATH . "/admin/forms/ModuleListForm.class.php"; +require_once XOOPS_LEGACY_PATH . "/admin/forms/ModuleListFilterForm.class.php"; +require_once XOOPS_LEGACY_PATH . "/admin/forms/ModuleListForm.class.php"; class Legacy_ModuleListAction extends Legacy_Action { @@ -128,7 +128,7 @@ function executeViewError(&$controller, &$xoopsUser, &$renderer) { - $controller->executeRedirect('./index.php?action=ModuleList', 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + $controller->executeRedirect('./index.php?action=ModuleList', 1, _MD_LEGACY_ERROR_DBUPDATE_FAILED); } function executeViewCancel(&$controller,&$xoopsUser,&$renderer) From minahito @ users.sourceforge.jp Sun Oct 15 00:55:35 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:55:35 +0900 Subject: [xoops-cvslog 5188] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155535.6A6CE2AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/ModuleUninstallAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/ModuleUninstallAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/ModuleUninstallAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/ModuleUninstallAction.class.php:1.1.2.1 Sat Oct 14 23:55:20 2006 +++ xoops2jp/html/modules/legacy/admin/actions/ModuleUninstallAction.class.php Sun Oct 15 00:55:35 2006 @@ -6,9 +6,9 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_BASE_PATH . "/admin/actions/AbstractModuleInstallAction.class.php"; -require_once XOOPS_BASE_PATH . "/admin/class/ModuleUninstaller.class.php"; -require_once XOOPS_BASE_PATH . "/admin/forms/ModuleUninstallForm.class.php"; +require_once XOOPS_LEGACY_PATH . "/admin/actions/AbstractModuleInstallAction.class.php"; +require_once XOOPS_LEGACY_PATH . "/admin/class/ModuleUninstaller.class.php"; +require_once XOOPS_LEGACY_PATH . "/admin/forms/ModuleUninstallForm.class.php"; /** * Uninstall module From minahito @ users.sourceforge.jp Sun Oct 15 00:55:56 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:55:56 +0900 Subject: [xoops-cvslog 5189] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155556.A91802AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/ModuleUpdateAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/ModuleUpdateAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/ModuleUpdateAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/ModuleUpdateAction.class.php:1.1.2.1 Sat Oct 14 23:55:20 2006 +++ xoops2jp/html/modules/legacy/admin/actions/ModuleUpdateAction.class.php Sun Oct 15 00:55:56 2006 @@ -6,9 +6,9 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_BASE_PATH . "/admin/actions/AbstractModuleInstallAction.class.php"; -require_once XOOPS_BASE_PATH . "/admin/class/ModuleUpdater.class.php"; -require_once XOOPS_BASE_PATH . "/admin/forms/ModuleUpdateForm.class.php"; +require_once XOOPS_LEGACY_PATH . "/admin/actions/AbstractModuleInstallAction.class.php"; +require_once XOOPS_LEGACY_PATH . "/admin/class/ModuleUpdater.class.php"; +require_once XOOPS_LEGACY_PATH . "/admin/forms/ModuleUpdateForm.class.php"; class Legacy_ModuleUpdateAction extends Legacy_AbstractModuleInstallAction { From minahito @ users.sourceforge.jp Sun Oct 15 00:56:19 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:56:19 +0900 Subject: [xoops-cvslog 5190] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155619.D48982AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/PreferenceEditAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/PreferenceEditAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/PreferenceEditAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/PreferenceEditAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/PreferenceEditAction.class.php Sun Oct 15 00:56:19 2006 @@ -2,7 +2,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/admin/forms/PreferenceEditForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/PreferenceEditForm.class.php"; class Legacy_PreferenceEditAction extends Legacy_Action { @@ -157,7 +157,7 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - $controller->executeRedirect("./index.php?action=PreferenceList", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + $controller->executeRedirect("./index.php?action=PreferenceList", 1, _MD_LEGACY_ERROR_DBUPDATE_FAILED); } function executeViewCancel(&$controller, &$xoopsUser, &$render) @@ -213,7 +213,7 @@ function hasPermission(&$controller, &$xoopsUser) { $moduleHandler =& xoops_gethandler('module'); - $module =& $moduleHandler->getByDirname('base'); + $module =& $moduleHandler->getByDirname('legacy'); $permHandler =& xoops_gethandler('groupperm'); return $permHandler->checkRight('module_admin', $module->get('mid'), $xoopsUser->getGroups()); From minahito @ users.sourceforge.jp Sun Oct 15 00:56:45 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:56:45 +0900 Subject: [xoops-cvslog 5191] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155645.23D1B2AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/PreferenceListAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/PreferenceListAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/PreferenceListAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/PreferenceListAction.class.php:1.1.2.1 Sat Oct 14 23:55:20 2006 +++ xoops2jp/html/modules/legacy/admin/actions/PreferenceListAction.class.php Sun Oct 15 00:56:45 2006 @@ -2,7 +2,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/admin/forms/PreferenceEditForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/PreferenceEditForm.class.php"; class Legacy_PreferenceListAction extends Legacy_Action { From minahito @ users.sourceforge.jp Sun Oct 15 00:57:04 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:57:04 +0900 Subject: [xoops-cvslog 5192] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155704.D70732AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/SmilesDeleteAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/SmilesDeleteAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/SmilesDeleteAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/SmilesDeleteAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/SmilesDeleteAction.class.php Sun Oct 15 00:57:04 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractDeleteAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/SmilesAdminDeleteForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractDeleteAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/SmilesAdminDeleteForm.class.php"; class Legacy_SmilesDeleteAction extends Legacy_AbstractDeleteAction { @@ -42,7 +42,7 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - $controller->executeRedirect("./index.php?action=SmilesList", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + $controller->executeRedirect("./index.php?action=SmilesList", 1, _MD_LEGACY_ERROR_DBUPDATE_FAILED); } function executeViewCancel(&$controller, &$xoopsUser, &$render) From minahito @ users.sourceforge.jp Sun Oct 15 00:57:34 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:57:34 +0900 Subject: [xoops-cvslog 5193] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155734.3AD822AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/SmilesEditAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/SmilesEditAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/SmilesEditAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/SmilesEditAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/SmilesEditAction.class.php Sun Oct 15 00:57:34 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractEditAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/SmilesAdminEditForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractEditAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/SmilesAdminEditForm.class.php"; class Legacy_SmilesEditAction extends Legacy_AbstractEditAction { @@ -61,7 +61,7 @@ function executeViewError(&$controller, &$xoopsUser, &$render) { - $controller->executeRedirect("./index.php?action=SmilesList", 1, _MD_BASE_ERROR_DBUPDATE_FAILED); + $controller->executeRedirect("./index.php?action=SmilesList", 1, _MD_LEGACY_ERROR_DBUPDATE_FAILED); } function executeViewCancel(&$controller, &$xoopsUser, &$render) From minahito @ users.sourceforge.jp Sun Oct 15 00:57:47 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:57:47 +0900 Subject: [xoops-cvslog 5194] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155747.3A2632AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/SmilesListAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/SmilesListAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/SmilesListAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/SmilesListAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/SmilesListAction.class.php Sun Oct 15 00:57:47 2006 @@ -6,8 +6,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractListAction.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/SmilesFilterForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractListAction.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/SmilesFilterForm.class.php"; class Legacy_SmilesListAction extends Legacy_AbstractListAction { From minahito @ users.sourceforge.jp Sun Oct 15 00:58:06 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:58:06 +0900 Subject: [xoops-cvslog 5195] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061014155806.2C3072AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/ThemeListAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/ThemeListAction.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/actions/ThemeListAction.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/actions/ThemeListAction.class.php:1.1.2.1 Sat Oct 14 23:55:19 2006 +++ xoops2jp/html/modules/legacy/admin/actions/ThemeListAction.class.php Sun Oct 15 00:58:06 2006 @@ -4,7 +4,7 @@ * @version $Id$ */ -require_once XOOPS_MODULE_PATH . "/base/admin/forms/ThemeSelectForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/ThemeSelectForm.class.php"; if (!defined('XOOPS_ROOT_PATH')) exit(); From minahito @ users.sourceforge.jp Sun Oct 15 00:58:43 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:58:43 +0900 Subject: [xoops-cvslog 5196] CVS update: xoops2jp/html/modules/legacy/admin/blocks Message-ID: <20061014155843.6FE372AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/blocks/AdminSideMenu.class.php diff -u xoops2jp/html/modules/legacy/admin/blocks/AdminSideMenu.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/blocks/AdminSideMenu.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/blocks/AdminSideMenu.class.php:1.1.2.1 Sat Oct 14 23:55:28 2006 +++ xoops2jp/html/modules/legacy/admin/blocks/AdminSideMenu.class.php Sun Oct 15 00:58:43 2006 @@ -53,7 +53,7 @@ $this->mCurrentModule =& $controller->mRoot->mContext->mXoopsModule; - if ($this->mCurrentModule->get('dirname') == 'base') { + if ($this->mCurrentModule->get('dirname') == 'legacy') { if (xoops_getrequest('action') == "help") { $moduleHandler =& xoops_gethandler('module'); $t_module =& $moduleHandler->getByDirname(xoops_gethandler('dirname')); From minahito @ users.sourceforge.jp Sun Oct 15 00:59:25 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 00:59:25 +0900 Subject: [xoops-cvslog 5197] CVS update: xoops2jp/html/modules/legacy/admin/class Message-ID: <20061014155925.AF04D2AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/class/AbstractModuleInstaller.class.php diff -u xoops2jp/html/modules/legacy/admin/class/AbstractModuleInstaller.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/class/AbstractModuleInstaller.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/class/AbstractModuleInstaller.class.php:1.1.2.1 Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/admin/class/AbstractModuleInstaller.class.php Sun Oct 15 00:59:25 2006 @@ -5,7 +5,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_BASE_PATH."/admin/class/ModuleUtils.class.php"; +require_once XOOPS_LEGACY_PATH."/admin/class/ModuleUtils.class.php"; /** * This is a abstract class for the process of install, update and uninstall. @@ -60,7 +60,7 @@ // $root =& XCube_Root::getSingleton(); if (is_object($root->mLanguageManager)) { - $root->mLanguageManager->loadModuleAdminMessageCatalog('base'); + $root->mLanguageManager->loadModuleAdminMessageCatalog('legacy'); } $this->mProcessScript =& new XCube_Delegate(); From minahito @ users.sourceforge.jp Sun Oct 15 01:00:11 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:00:11 +0900 Subject: [xoops-cvslog 5198] CVS update: xoops2jp/html/modules/legacy/admin/class Message-ID: <20061014160011.CA8D82AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/class/ModuleInstaller.class.php diff -u xoops2jp/html/modules/legacy/admin/class/ModuleInstaller.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/class/ModuleInstaller.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/class/ModuleInstaller.class.php:1.1.2.1 Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/admin/class/ModuleInstaller.class.php Sun Oct 15 01:00:11 2006 @@ -2,7 +2,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_BASE_PATH."/admin/class/AbstractModuleInstaller.class.php"; +require_once XOOPS_LEGACY_PATH."/admin/class/AbstractModuleInstaller.class.php"; /** * This class extends a base class for the process of install module. This is added @@ -75,7 +75,7 @@ $adminPerm->setVar('gperm_name', 'module_admin'); if (!$gpermHandler->insert($adminPerm)) { - $log->addError(_AD_BASE_ERROR_COULD_NOT_SET_ADMIN_PERMISSION); + $log->addError(_AD_LEGACY_ERROR_COULD_NOT_SET_ADMIN_PERMISSION); } } @@ -98,7 +98,7 @@ $adminPerm->setVar('gperm_itemid', $modversion['category']); $adminPerm->setVar('gperm_name', 'system_admin'); if (!$gpermHandler->insert($adminPerm)) { - $log->addError(_AD_BASE_ERROR_COULD_NOT_SET_SYSTEM_PERMISSION); + $log->addError(_AD_LEGACY_ERROR_COULD_NOT_SET_SYSTEM_PERMISSION); } unset($sysAdminPerm); } @@ -120,7 +120,7 @@ $readPerm->setVar('gperm_name', 'module_read'); if (!$gpermHandler->insert($readPerm)) { - $log->addError(_AD_BASE_ERROR_COULD_NOT_SET_READ_PERMISSION); + $log->addError(_AD_LEGACY_ERROR_COULD_NOT_SET_READ_PERMISSION); } } } else { @@ -134,7 +134,7 @@ $readPerm->setVar('gperm_name', 'module_read'); if (!$gpermHandler->insert($readPerm)) { - $log->addError(_AD_BASE_ERROR_COULD_NOT_SET_READ_PERMISSION); + $log->addError(_AD_LEGACY_ERROR_COULD_NOT_SET_READ_PERMISSION); } } } @@ -209,7 +209,7 @@ $funcName = 'xoops_module_install_' . $module->getVar('dirname'); if (function_exists($funcName)) { if (!call_user_func($funcName, $module)) { - $log->addError(XCUbe_Utils::formatMessage(_AD_BASE_ERROR_FAILED_TO_EXECUTE_CALLBACK, $funcName)); + $log->addError(XCUbe_Utils::formatMessage(_AD_LEGACY_ERROR_FAILED_TO_EXECUTE_CALLBACK, $funcName)); } } } @@ -218,14 +218,14 @@ function _processReport() { if (!$this->mLog->hasError()) { - $this->mLog->add(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_INSTALLATION_MODULE_SUCCESSFUL, $this->mModule->get('name'))); + $this->mLog->add(XCube_Utils::formatMessage(_AD_LEGACY_MESSAGE_INSTALLATION_MODULE_SUCCESSFUL, $this->mModule->get('name'))); } else { if (is_object($this->mModule)) { - $this->mLog->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_INSTALLATION_MODULE_FAILURE, $this->mModule->get('name'))); + $this->mLog->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_INSTALLATION_MODULE_FAILURE, $this->mModule->get('name'))); } else { - $this->mLog->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_INSTALLATION_MODULE_FAILURE, $this->mDirname)); + $this->mLog->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_INSTALLATION_MODULE_FAILURE, $this->mDirname)); } } } From minahito @ users.sourceforge.jp Sun Oct 15 01:00:51 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:00:51 +0900 Subject: [xoops-cvslog 5199] CVS update: xoops2jp/html/modules/legacy/admin/class Message-ID: <20061014160051.5E5692AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/class/ModuleUninstaller.class.php diff -u xoops2jp/html/modules/legacy/admin/class/ModuleUninstaller.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/class/ModuleUninstaller.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/class/ModuleUninstaller.class.php:1.1.2.1 Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/admin/class/ModuleUninstaller.class.php Sun Oct 15 01:00:51 2006 @@ -2,7 +2,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_BASE_PATH."/admin/class/AbstractModuleInstaller.class.php"; +require_once XOOPS_LEGACY_PATH."/admin/class/AbstractModuleInstaller.class.php"; class Legacy_ModuleUninstaller extends Legacy_AbstractModuleInstaller { @@ -35,12 +35,12 @@ $module =& $moduleHandler->getByDirname($dirname); if (!is_object($module)) { - $this->mLog->addError(_AD_BASE_ERROR_MODULE_NOT_FOUND); + $this->mLog->addError(_AD_LEGACY_ERROR_MODULE_NOT_FOUND); return $error; } if ($module->getVar('isactive') != 0) { - $this->mLog->addError(_AD_BASE_ERROR_CASE_OF_ACTIVE_MODULE); + $this->mLog->addError(_AD_LEGACY_ERROR_CASE_OF_ACTIVE_MODULE); return $error; } @@ -54,10 +54,10 @@ { $moduleHandler =& xoops_gethandler('module'); if (!$moduleHandler->delete($this->mModule)) { - $this->mLog->addError(_AD_BASE_ERROR_DELETE_MODULEINFO_FROM_DB); + $this->mLog->addError(_AD_LEGACY_ERROR_DELETE_MODULEINFO_FROM_DB); } else { - $this->mLog->addReport(_AD_BASE_MESSAGE_DELETE_MODULEINFO_FROM_DB); + $this->mLog->addReport(_AD_LEGACY_MESSAGE_DELETE_MODULEINFO_FROM_DB); } } @@ -77,10 +77,10 @@ // $sql = "DROP TABLE " . $db->prefix($table); if ($db->query($sql)) { - $log->addReport(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_DROP_TABLE, $db->prefix($table))); + $log->addReport(XCube_Utils::formatMessage(_AD_LEGACY_MESSAGE_DROP_TABLE, $db->prefix($table))); } else { - $log->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_DROP_TABLE, $db->prefix($table))); + $log->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_DROP_TABLE, $db->prefix($table))); } } } @@ -97,7 +97,7 @@ foreach($deleteTemplates as $tpl) { if (!$tplHandler->delete($tpl)) { - $log->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_TEMPLATE_UNINSTALLED, $tpl->getVar('tpl_file'))); + $log->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_TEMPLATE_UNINSTALLED, $tpl->getVar('tpl_file'))); } } } @@ -115,7 +115,7 @@ $gpermHandler =& xoops_gethandler('groupperm'); foreach ($blocks as $block) { $blockHandler->delete($block); - $this->mLog->addReport(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_BLOCK_HAS_BEEN_UNINSTALLED, $block->get('name'))); + $this->mLog->addReport(XCube_Utils::formatMessage(_AD_LEGACY_MESSAGE_BLOCK_HAS_BEEN_UNINSTALLED, $block->get('name'))); // // delete permission @@ -130,7 +130,7 @@ $tplHandler =& xoops_gethandler('tplfile'); $criteria =& new Criteria('tpl_module', $this->mModule->getVar('dirname')); if(!$tplHandler->deleteAll($criteria)) { - $this->mLog->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_COULD_NOT_DELETE_BLOCK_TEMPLATES, $tplHandler->db->error())); + $this->mLog->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_DELETE_BLOCK_TEMPLATES, $tplHandler->db->error())); } } @@ -147,7 +147,7 @@ $funcName = 'xoops_module_uninstall_' . $module->getVar('dirname'); if (function_exists($funcName)) { if (!call_user_func($funcName, $module)) { - $log->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_FAILED_TO_EXECUTE_CALLBACK, $funcName)); + $log->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_FAILED_TO_EXECUTE_CALLBACK, $funcName)); } } } @@ -156,14 +156,14 @@ function _processReport() { if (!$this->mLog->hasError()) { - $this->mLog->add(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_UNINSTALLATION_MODULE_SUCCESSFUL, $this->mModule->get('name'))); + $this->mLog->add(XCube_Utils::formatMessage(_AD_LEGACY_MESSAGE_UNINSTALLATION_MODULE_SUCCESSFUL, $this->mModule->get('name'))); } else { if (is_object($this->mModule)) { - $this->mLog->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_UNINSTALLATION_MODULE_FAILURE, $this->mModule->get('name'))); + $this->mLog->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_UNINSTALLATION_MODULE_FAILURE, $this->mModule->get('name'))); } else { - $this->mLog->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_UNINSTALLATION_MODULE_FAILURE, $this->mDirname)); + $this->mLog->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_UNINSTALLATION_MODULE_FAILURE, $this->mDirname)); } } } From minahito @ users.sourceforge.jp Sun Oct 15 01:01:18 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:01:18 +0900 Subject: [xoops-cvslog 5200] CVS update: xoops2jp/html/modules/legacy/admin/class Message-ID: <20061014160118.291852AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/class/ModuleUpdater.class.php diff -u xoops2jp/html/modules/legacy/admin/class/ModuleUpdater.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/class/ModuleUpdater.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/class/ModuleUpdater.class.php:1.1.2.1 Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/admin/class/ModuleUpdater.class.php Sun Oct 15 01:01:18 2006 @@ -2,7 +2,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_BASE_PATH."/admin/class/AbstractModuleInstaller.class.php"; +require_once XOOPS_LEGACY_PATH."/admin/class/AbstractModuleInstaller.class.php"; class Legacy_ModuleUpdater extends Legacy_AbstractModuleInstaller { @@ -26,7 +26,7 @@ */ function execute() { - $this->mLog->addReport(_AD_BASE_MESSAGE_UPDATE_STARTED); + $this->mLog->addReport(_AD_LEGACY_MESSAGE_UPDATE_STARTED); parent::execute(); } @@ -76,7 +76,7 @@ foreach ($delTemplates as $tpl) { if (!$tplHandler->delete($tpl)) { - $log->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_TEMPLATE_UNINSTALLED, $tpl->getVar('tpl_file'))); + $log->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_TEMPLATE_UNINSTALLED, $tpl->getVar('tpl_file'))); } } } @@ -268,10 +268,10 @@ if ($newFlag) { $newConfigArr[$t_newkey]->set('conf_order', $order); if ($configHandler->insertConfig($newConfigArr[$t_newkey])) { - $this->mLog->addReport(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_INSERT_CONFIG, $newConfigArr[$t_newkey]->get('conf_name'))); + $this->mLog->addReport(XCube_Utils::formatMessage(_AD_LEGACY_MESSAGE_INSERT_CONFIG, $newConfigArr[$t_newkey]->get('conf_name'))); } else { - $this->mLog->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_COULD_NOT_INSERT_CONFIG, $newConfigArr[$t_newkey]->get('conf_name'))); + $this->mLog->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_INSERT_CONFIG, $newConfigArr[$t_newkey]->get('conf_name'))); } } } @@ -294,14 +294,14 @@ function _processReport() { if (!$this->mLog->hasError()) { - $this->mLog->add(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_UPDATING_MODULE_SUCCESSFUL, $this->mModule->get('name'))); + $this->mLog->add(XCube_Utils::formatMessage(_AD_LEGACY_MESSAGE_UPDATING_MODULE_SUCCESSFUL, $this->mModule->get('name'))); } else { if (is_object($this->mModule)) { - $this->mLog->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_UPDATING_MODULE_FAILURE, $this->mModule->get('name'))); + $this->mLog->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_UPDATING_MODULE_FAILURE, $this->mModule->get('name'))); } else { - $this->mLog->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_UPDATING_MODULE_FAILURE, $this->mDirname)); + $this->mLog->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_UPDATING_MODULE_FAILURE, $this->mDirname)); } } } From minahito @ users.sourceforge.jp Sun Oct 15 01:02:18 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:02:18 +0900 Subject: [xoops-cvslog 5201] CVS update: xoops2jp/html/modules/legacy/admin/class Message-ID: <20061014160218.BA2A72AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/class/ModuleUtils.class.php diff -u xoops2jp/html/modules/legacy/admin/class/ModuleUtils.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/class/ModuleUtils.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/class/ModuleUtils.class.php:1.1.2.1 Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/admin/class/ModuleUtils.class.php Sun Oct 15 01:02:18 2006 @@ -60,13 +60,13 @@ return; } - require_once XOOPS_MODULE_PATH . "/base/admin/class/Legacy_SQLScanner.class.php"; + require_once XOOPS_MODULE_PATH . "/legacy/admin/class/Legacy_SQLScanner.class.php"; $scanner =& new Legacy_SQLScanner(); $scanner->setDB_PREFIX(XOOPS_DB_PREFIX); $sqlfile = $sqlfileInfo[XOOPS_DB_TYPE]; if (!$scanner->loadFile(XOOPS_MODULE_PATH . "/${dirname}/" . $sqlfile)) { - $log->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_SQL_FILE_NOT_FOUND, $sqlfile)); + $log->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_SQL_FILE_NOT_FOUND, $sqlfile)); return false; } @@ -86,7 +86,7 @@ } } - $log->addReport(_AD_BASE_MESSAGE_DATABASE_SETUP_FINISHED); + $log->addReport(_AD_LEGACY_MESSAGE_DATABASE_SETUP_FINISHED); } /** @@ -133,10 +133,10 @@ $tplfile->setVar('tpl_desc', $description, true); if ($tplHandler->insert($tplfile)) { - $log->addReport(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_TEMPLATE_INSTALLED, $fileName)); + $log->addReport(XCube_Utils::formatMessage(_AD_LEGACY_MESSAGE_TEMPLATE_INSTALLED, $fileName)); } else { - $log->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_COULD_NOT_INSTALL_TEMPLATE, $fileName)); + $log->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_INSTALL_TEMPLATE, $fileName)); return false; } @@ -280,17 +280,17 @@ $autolink = true; } if (!$blockHandler->insert($blockObj, $autolink)) { - $log->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_COULD_NOT_INSTALL_BLOCK, $blockObj->getVar('name'))); + $log->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_INSTALL_BLOCK, $blockObj->getVar('name'))); return false; } else { - $log->addReport(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_BLOCK_INSTALLED, $blockObj->getVar('name'))); + $log->addReport(XCube_Utils::formatMessage(_AD_LEGACY_MESSAGE_BLOCK_INSTALLED, $blockObj->getVar('name'))); $tplHandler =& xoops_gethandler('tplfile'); if (!Legacy_ModuleUtils::installBlockTemplate($module, $blockObj)) { - $log->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_BLOCK_TEMPLATE_INSTALL, $blockObj->getVar('name'))); + $log->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_BLOCK_TEMPLATE_INSTALL, $blockObj->getVar('name'))); } // @@ -300,7 +300,7 @@ if (!empty($block['show_all_module'])) { $link_sql = "INSERT INTO " . $blockHandler->db->prefix('block_module_link') . " (block_id, module_id) VALUES (".$blockObj->getVar('bid').", 0)"; if (!$blockHandler->db->query($link_sql)) { - $log->addWarn(XCube_Utils::formatMessage(_AD_BASE_ERROR_COULD_NOT_SET_LINK, $blockObj->getVar('name'))); + $log->addWarn(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_SET_LINK, $blockObj->getVar('name'))); } } $gpermHandler =& xoops_gethandler('groupperm'); @@ -316,7 +316,7 @@ $bperm->setVar('gperm_groupid', $group->getVar('groupid')); $bperm->setNew(); if (!$gpermHandler->insert($bperm)) { - $log->addWarn(XCube_Utils::formatMessage(_AD_BASE_ERROR_COULD_NOT_SET_BLOCK_PERMISSION, $blockObj->getVar('name'))); + $log->addWarn(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_SET_BLOCK_PERMISSION, $blockObj->getVar('name'))); } } } else { @@ -326,7 +326,7 @@ $bperm->setVar('gperm_groupid', $mygroup); $bperm->setNew(); if (!$gpermHandler->insert($bperm)) { - $log->addWarn(XCube_Utils::formatMessage(_AD_BASE_ERROR_COULD_NOT_SET_BLOCK_PERMISSION, $blockObj->getVar('name'))); + $log->addWarn(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_SET_BLOCK_PERMISSION, $blockObj->getVar('name'))); } } } @@ -339,7 +339,7 @@ function unInstallBlock(&$block, &$log) { $blockHandler =& xoops_gethandler('block'); $blockHandler->delete($block); - $log->addReport(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_UNINSTALLATION_BLOCK_SUCCESSFUL, $block->get('name'))); + $log->addReport(XCube_Utils::formatMessage(_AD_LEGACY_MESSAGE_UNINSTALLATION_BLOCK_SUCCESSFUL, $block->get('name'))); // // delete permission // @@ -406,10 +406,10 @@ $config->loadFromConfigInfo($module->get('mid'), $configInfo, $count++); if ($configHandler->insertConfig($config)) { - $log->addReport(XCube_Utils::formatMessage(_AD_BASE_MESSAGE_INSERT_CONFIG, $configInfo['name'])); + $log->addReport(XCube_Utils::formatMessage(_AD_LEGACY_MESSAGE_INSERT_CONFIG, $configInfo['name'])); } else { - $log->addError(XCube_Utils::formatMessage(_AD_BASE_ERROR_COULD_NOT_INSERT_CONFIG, $configInfo['name'])); + $log->addError(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_COULD_NOT_INSERT_CONFIG, $configInfo['name'])); } unset($config); From minahito @ users.sourceforge.jp Sun Oct 15 01:02:36 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:02:36 +0900 Subject: [xoops-cvslog 5202] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014160236.981242AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/ActionSearchForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/ActionSearchForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/ActionSearchForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/ActionSearchForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ActionSearchForm.class.php Sun Oct 15 01:02:36 2006 @@ -20,7 +20,7 @@ // set fields $this->mFieldProperties['keywords']=new XCube_FieldProperty($this); $this->mFieldProperties['keywords']->setDependsByArray(array('required')); - $this->mFieldProperties['keywords']->addMessage("required",_AD_BASE_ERROR_SEARCH_REQUIRED); + $this->mFieldProperties['keywords']->addMessage("required",_AD_LEGACY_ERROR_SEARCH_REQUIRED); } function fetch() From minahito @ users.sourceforge.jp Sun Oct 15 01:03:00 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:03:00 +0900 Subject: [xoops-cvslog 5203] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014160300.E34512AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/BlockEditForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/BlockEditForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/BlockEditForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/BlockEditForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/BlockEditForm.class.php Sun Oct 15 01:03:00 2006 @@ -3,7 +3,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); require_once XOOPS_ROOT_PATH . "/core/XCube_ActionForm.class.php"; -require_once XOOPS_MODULE_PATH . "/base/class/Legacy_Validator.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/Legacy_Validator.class.php"; class Legacy_BlockEditForm extends XCube_ActionForm { @@ -31,37 +31,37 @@ // $this->mFieldProperties['bid'] =& new XCube_FieldProperty($this); $this->mFieldProperties['bid']->setDependsByArray(array('required')); - $this->mFieldProperties['bid']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_BID); + $this->mFieldProperties['bid']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_BID); $this->mFieldProperties['title'] =& new XCube_FieldProperty($this); $this->mFieldProperties['title']->setDependsByArray(array('required','maxlength')); - $this->mFieldProperties['title']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_TITLE, '255'); - $this->mFieldProperties['title']->addMessage('maxlength', _MD_BASE_ERROR_MAXLENGTH, _AD_BASE_LANG_TITLE, '255'); + $this->mFieldProperties['title']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_TITLE, '255'); + $this->mFieldProperties['title']->addMessage('maxlength', _MD_LEGACY_ERROR_MAXLENGTH, _AD_LEGACY_LANG_TITLE, '255'); $this->mFieldProperties['title']->addVar('maxlength', '255'); $this->mFieldProperties['side'] =& new XCube_FieldProperty($this); $this->mFieldProperties['side']->setDependsByArray(array('required', 'objectExist')); - $this->mFieldProperties['side']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_SIDE); - $this->mFieldProperties['side']->addMessage('objectExist', _AD_BASE_ERROR_OBJECTEXIST, _AD_BASE_LANG_SIDE); + $this->mFieldProperties['side']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_SIDE); + $this->mFieldProperties['side']->addMessage('objectExist', _AD_LEGACY_ERROR_OBJECTEXIST, _AD_LEGACY_LANG_SIDE); $this->mFieldProperties['side']->addVar('handler', 'columnside'); - $this->mFieldProperties['side']->addVar('module', 'base'); + $this->mFieldProperties['side']->addVar('module', 'legacy'); $this->mFieldProperties['weight'] =& new XCube_FieldProperty($this); $this->mFieldProperties['weight']->setDependsByArray(array('required', 'intRange')); - $this->mFieldProperties['weight']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_WEIGHT); - $this->mFieldProperties['weight']->addMessage('intRange', _AD_BASE_ERROR_INTRANGE, _AD_BASE_LANG_WEIGHT); + $this->mFieldProperties['weight']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_WEIGHT); + $this->mFieldProperties['weight']->addMessage('intRange', _AD_LEGACY_ERROR_INTRANGE, _AD_LEGACY_LANG_WEIGHT); $this->mFieldProperties['weight']->addVar('min', '0'); $this->mFieldProperties['weight']->addVar('max', '255'); $this->mFieldProperties['bcachetime'] =& new XCube_FieldProperty($this); $this->mFieldProperties['bcachetime']->setDependsByArray(array('required', 'objectExist')); - $this->mFieldProperties['bcachetime']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_BCACHETIME); - $this->mFieldProperties['bcachetime']->addMessage('objectExist', _AD_BASE_ERROR_OBJECTEXIST, _AD_BASE_LANG_BCACHETIME); + $this->mFieldProperties['bcachetime']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_BCACHETIME); + $this->mFieldProperties['bcachetime']->addMessage('objectExist', _AD_LEGACY_ERROR_OBJECTEXIST, _AD_LEGACY_LANG_BCACHETIME); $this->mFieldProperties['bcachetime']->addVar('handler', 'cachetime'); $this->mFieldProperties['groupid'] =& new XCube_FieldProperty($this); $this->mFieldProperties['groupid']->setDependsByArray(array('objectExist')); - $this->mFieldProperties['groupid']->addMessage('objectExist', _AD_BASE_ERROR_OBJECTEXIST, _AD_BASE_LANG_GROUPID); + $this->mFieldProperties['groupid']->addMessage('objectExist', _AD_LEGACY_ERROR_OBJECTEXIST, _AD_LEGACY_LANG_GROUPID); $this->mFieldProperties['groupid']->addVar('handler', 'group'); } @@ -69,14 +69,14 @@ { $bmodule = $this->get('bmodule'); if (!(count($bmodule))) { - $this->addErrorMessage(_AD_BASE_ERROR_BMODULE); + $this->addErrorMessage(_AD_LEGACY_ERROR_BMODULE); } else { $handler =& xoops_gethandler('module'); foreach ($this->get('bmodule') as $mid) { $module =& $handler->get($mid); if ($mid != -1 && $mid != 0 && !is_object($module)) { - $this->addErrorMessage(XCube_Utils::formatMessage(_AD_BASE_ERROR_OBJECTEXIST, _AD_BASE_LANG_BMODULE)); + $this->addErrorMessage(XCube_Utils::formatMessage(_AD_LEGACY_ERROR_OBJECTEXIST, _AD_LEGACY_LANG_BMODULE)); } } } @@ -86,7 +86,7 @@ { $groupid = $this->get('groupid'); if (!(count($groupid))) { - $this->addErrorMessage(_AD_BASE_ERROR_GROUPID); + $this->addErrorMessage(_AD_LEGACY_ERROR_GROUPID); } } @@ -121,7 +121,7 @@ $obj->set('last_modified', time()); $obj->mBmodule = array(); - $handler =& xoops_getmodulehandler('block_module_link', 'base'); + $handler =& xoops_getmodulehandler('block_module_link', 'legacy'); foreach ($this->get('bmodule') as $mid) { $t_obj =& $handler->create(); $t_obj->set('block_id', $this->get('bid')); From minahito @ users.sourceforge.jp Sun Oct 15 01:03:31 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:03:31 +0900 Subject: [xoops-cvslog 5204] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014160331.721C22AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/BlockFilterForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/BlockFilterForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/BlockFilterForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/BlockFilterForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/BlockFilterForm.class.php Sun Oct 15 01:03:31 2006 @@ -6,7 +6,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractFilterForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractFilterForm.class.php"; define('NEWBLOCKS_SORT_KEY_BID', 1); define('NEWBLOCKS_SORT_KEY_MID', 2); From minahito @ users.sourceforge.jp Sun Oct 15 01:03:46 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:03:46 +0900 Subject: [xoops-cvslog 5205] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014160346.4B8442AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/BlockInstallEditForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/BlockInstallEditForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/BlockInstallEditForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/BlockInstallEditForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/BlockInstallEditForm.class.php Sun Oct 15 01:03:46 2006 @@ -6,7 +6,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_ROOT_PATH . "/modules/base/admin/forms/BlockEditForm.class.php"; +require_once XOOPS_ROOT_PATH . "/modules/legacy/admin/forms/BlockEditForm.class.php"; class Legacy_BlockInstallEditForm extends Legacy_BlockEditForm { From minahito @ users.sourceforge.jp Sun Oct 15 01:03:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:03:57 +0900 Subject: [xoops-cvslog 5206] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014160357.0C0C32AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/BlockInstallFilterForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/BlockInstallFilterForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/BlockInstallFilterForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/BlockInstallFilterForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/BlockInstallFilterForm.class.php Sun Oct 15 01:03:56 2006 @@ -6,7 +6,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/admin/forms/BlockFilterForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/BlockFilterForm.class.php"; class Legacy_BlockInstallFilterForm extends Legacy_BlockFilterForm { From minahito @ users.sourceforge.jp Sun Oct 15 01:04:22 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:04:22 +0900 Subject: [xoops-cvslog 5207] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014160422.54FE82AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/BlockListForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/BlockListForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/BlockListForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/BlockListForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/BlockListForm.class.php Sun Oct 15 01:04:22 2006 @@ -7,7 +7,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); require_once XOOPS_ROOT_PATH . "/core/XCube_ActionForm.class.php"; -require_once XOOPS_MODULE_PATH . "/base/class/Legacy_Validator.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/Legacy_Validator.class.php"; /** * @todo We may rename this class. @@ -33,22 +33,22 @@ // $this->mFieldProperties['weight'] =& new XCube_FieldProperty($this); $this->mFieldProperties['weight']->setDependsByArray(array('required','intRange')); - $this->mFieldProperties['weight']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_WEIGHT); - $this->mFieldProperties['weight']->addMessage('intRange', _AD_BASE_ERROR_INTRANGE, _AD_BASE_LANG_WEIGHT); + $this->mFieldProperties['weight']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_WEIGHT); + $this->mFieldProperties['weight']->addMessage('intRange', _AD_LEGACY_ERROR_INTRANGE, _AD_LEGACY_LANG_WEIGHT); $this->mFieldProperties['weight']->addVar('min', '0'); $this->mFieldProperties['weight']->addVar('max', '255'); $this->mFieldProperties['side'] =& new XCube_FieldProperty($this); $this->mFieldProperties['side']->setDependsByArray(array('required','objectExist')); - $this->mFieldProperties['side']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_SIDE); - $this->mFieldProperties['side']->addMessage('objectExist', _AD_BASE_ERROR_OBJECTEXIST, _AD_BASE_LANG_SIDE); + $this->mFieldProperties['side']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_SIDE); + $this->mFieldProperties['side']->addMessage('objectExist', _AD_LEGACY_ERROR_OBJECTEXIST, _AD_LEGACY_LANG_SIDE); $this->mFieldProperties['side']->addVar('handler', 'columnside'); - $this->mFieldProperties['side']->addVar('module', 'base'); + $this->mFieldProperties['side']->addVar('module', 'legacy'); $this->mFieldProperties['bcachetime'] =& new XCube_FieldProperty($this); $this->mFieldProperties['bcachetime']->setDependsByArray(array('required','objectExist')); - $this->mFieldProperties['bcachetime']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_BCACHETIME); - $this->mFieldProperties['bcachetime']->addMessage('objectExist', _AD_BASE_ERROR_OBJECTEXIST, _AD_BASE_LANG_BCACHETIME); + $this->mFieldProperties['bcachetime']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_BCACHETIME); + $this->mFieldProperties['bcachetime']->addMessage('objectExist', _AD_LEGACY_ERROR_OBJECTEXIST, _AD_LEGACY_LANG_BCACHETIME); $this->mFieldProperties['bcachetime']->addVar('handler', 'cachetime'); } } From minahito @ users.sourceforge.jp Sun Oct 15 01:04:36 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:04:36 +0900 Subject: [xoops-cvslog 5208] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014160436.181862AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/BlockUninstallForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/BlockUninstallForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/BlockUninstallForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/BlockUninstallForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/BlockUninstallForm.class.php Sun Oct 15 01:04:35 2006 @@ -6,7 +6,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/admin/forms/CustomBlockDeleteForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/CustomBlockDeleteForm.class.php"; class Legacy_BlockUninstallForm extends Legacy_CustomBlockDeleteForm { From minahito @ users.sourceforge.jp Sun Oct 15 01:05:00 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:05:00 +0900 Subject: [xoops-cvslog 5209] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014160500.5C9572AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/CommentAdminDeleteForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/CommentAdminDeleteForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/CommentAdminDeleteForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/CommentAdminDeleteForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/CommentAdminDeleteForm.class.php Sun Oct 15 01:05:00 2006 @@ -30,7 +30,7 @@ // $this->mFieldProperties['com_id'] =& new XCube_FieldProperty($this); $this->mFieldProperties['com_id']->setDependsByArray(array('required')); - $this->mFieldProperties['com_id']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_ID); + $this->mFieldProperties['com_id']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _MD_LEGACY_LANG_COM_ID); } function load(&$obj) From minahito @ users.sourceforge.jp Sun Oct 15 01:05:31 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:05:31 +0900 Subject: [xoops-cvslog 5210] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014160531.BD4D72AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/CommentAdminEditForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/CommentAdminEditForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/CommentAdminEditForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/CommentAdminEditForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/CommentAdminEditForm.class.php Sun Oct 15 01:05:31 2006 @@ -38,22 +38,22 @@ $this->mFieldProperties['com_id'] =& new XCube_FieldProperty($this); $this->mFieldProperties['com_id']->setDependsByArray(array('required')); - $this->mFieldProperties['com_id']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_ID); + $this->mFieldProperties['com_id']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _MD_LEGACY_LANG_COM_ID); $this->mFieldProperties['com_icon'] =& new XCube_FieldProperty($this); $this->mFieldProperties['com_icon']->setDependsByArray(array('maxlength')); - $this->mFieldProperties['com_icon']->addMessage('maxlength', _MD_BASE_ERROR_MAXLENGTH, _MD_BASE_LANG_COM_ICON, '25'); + $this->mFieldProperties['com_icon']->addMessage('maxlength', _MD_LEGACY_ERROR_MAXLENGTH, _MD_LEGACY_LANG_COM_ICON, '25'); $this->mFieldProperties['com_icon']->addVar('maxlength', '25'); $this->mFieldProperties['com_title'] =& new XCube_FieldProperty($this); $this->mFieldProperties['com_title']->setDependsByArray(array('required','maxlength')); - $this->mFieldProperties['com_title']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_TITLE, '255'); - $this->mFieldProperties['com_title']->addMessage('maxlength', _MD_BASE_ERROR_MAXLENGTH, _MD_BASE_LANG_COM_TITLE, '255'); + $this->mFieldProperties['com_title']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _MD_LEGACY_LANG_COM_TITLE, '255'); + $this->mFieldProperties['com_title']->addMessage('maxlength', _MD_LEGACY_ERROR_MAXLENGTH, _MD_LEGACY_LANG_COM_TITLE, '255'); $this->mFieldProperties['com_title']->addVar('maxlength', '255'); $this->mFieldProperties['com_text'] =& new XCube_FieldProperty($this); $this->mFieldProperties['com_text']->setDependsByArray(array('required')); - $this->mFieldProperties['com_text']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_COM_TEXT); + $this->mFieldProperties['com_text']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _MD_LEGACY_LANG_COM_TEXT); } function load(&$obj) @@ -95,8 +95,8 @@ $this->mFieldProperties['com_status'] =& new XCube_FieldProperty($this); $this->mFieldProperties['com_status']->setDependsByArray(array('required','intRange')); - $this->mFieldProperties['com_status']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_STATUS); - $this->mFieldProperties['com_status']->addMessage('intRange', _AD_BASE_ERROR_INTRANGE, _AD_BASE_LANG_COM_STATUS); + $this->mFieldProperties['com_status']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_COM_STATUS); + $this->mFieldProperties['com_status']->addMessage('intRange', _AD_LEGACY_ERROR_INTRANGE, _AD_LEGACY_LANG_COM_STATUS); $this->mFieldProperties['com_status']->addVar('min', '1'); $this->mFieldProperties['com_status']->addVar('max', '3'); } @@ -110,8 +110,8 @@ $this->mFieldProperties['com_status'] =& new XCube_FieldProperty($this); $this->mFieldProperties['com_status']->setDependsByArray(array('required','intRange')); - $this->mFieldProperties['com_status']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_STATUS); - $this->mFieldProperties['com_status']->addMessage('intRange', _AD_BASE_ERROR_INTRANGE, _AD_BASE_LANG_COM_STATUS); + $this->mFieldProperties['com_status']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_COM_STATUS); + $this->mFieldProperties['com_status']->addMessage('intRange', _AD_LEGACY_ERROR_INTRANGE, _AD_LEGACY_LANG_COM_STATUS); $this->mFieldProperties['com_status']->addVar('min', '2'); $this->mFieldProperties['com_status']->addVar('max', '3'); } From minahito @ users.sourceforge.jp Sun Oct 15 01:06:04 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:06:04 +0900 Subject: [xoops-cvslog 5211] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014160604.9910F2AC283@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/CommentFilterForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/CommentFilterForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/CommentFilterForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/CommentFilterForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/CommentFilterForm.class.php Sun Oct 15 01:06:04 2006 @@ -6,7 +6,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractFilterForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractFilterForm.class.php"; define('COMMENT_SORT_KEY_COM_ID', 1); define('COMMENT_SORT_KEY_COM_PID', 2); From minahito @ users.sourceforge.jp Sun Oct 15 01:06:46 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:06:46 +0900 Subject: [xoops-cvslog 5212] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014160646.55D892AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/CustomBlockDeleteForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/CustomBlockDeleteForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/CustomBlockDeleteForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/CustomBlockDeleteForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/CustomBlockDeleteForm.class.php Sun Oct 15 01:06:46 2006 @@ -7,7 +7,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); require_once XOOPS_ROOT_PATH . "/core/XCube_ActionForm.class.php"; -require_once XOOPS_MODULE_PATH . "/base/class/Legacy_Validator.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/Legacy_Validator.class.php"; class Legacy_CustomBlockDeleteForm extends XCube_ActionForm { @@ -28,7 +28,7 @@ // $this->mFieldProperties['bid'] =& new XCube_FieldProperty($this); $this->mFieldProperties['bid']->setDependsByArray(array('required')); - $this->mFieldProperties['bid']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_BID); + $this->mFieldProperties['bid']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_BID); } function load(&$obj) From minahito @ users.sourceforge.jp Sun Oct 15 01:07:09 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:07:09 +0900 Subject: [xoops-cvslog 5213] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014160709.317672AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/CustomBlockEditForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/CustomBlockEditForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/CustomBlockEditForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/CustomBlockEditForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/CustomBlockEditForm.class.php Sun Oct 15 01:07:09 2006 @@ -5,8 +5,8 @@ */ require_once XOOPS_ROOT_PATH . "/core/XCube_ActionForm.class.php"; -require_once XOOPS_MODULE_PATH . "/base/class/Legacy_Validator.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/BlockEditForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/Legacy_Validator.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/BlockEditForm.class.php"; class Legacy_CustomBlockEditForm extends Legacy_BlockEditForm { @@ -30,12 +30,12 @@ // $this->mFieldProperties['content'] =& new XCube_FieldProperty($this); $this->mFieldProperties['content']->setDependsByArray(array('required')); - $this->mFieldProperties['content']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_CONTENT); + $this->mFieldProperties['content']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_CONTENT); $this->mFieldProperties['c_type'] =& new XCube_FieldProperty($this); $this->mFieldProperties['c_type']->setDependsByArray(array('required','maxlength')); - $this->mFieldProperties['c_type']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_C_TYPE, '1'); - $this->mFieldProperties['c_type']->addMessage('maxlength', _MD_BASE_ERROR_MAXLENGTH, _AD_BASE_LANG_C_TYPE, '1'); + $this->mFieldProperties['c_type']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_C_TYPE, '1'); + $this->mFieldProperties['c_type']->addMessage('maxlength', _MD_LEGACY_ERROR_MAXLENGTH, _AD_LEGACY_LANG_C_TYPE, '1'); $this->mFieldProperties['c_type']->addVar('maxlength', '1'); } @@ -57,19 +57,19 @@ switch ($this->get('c_type')) { case 'H': - $obj->set('name', _AD_BASE_LANG_CUSTOM_HTML); + $obj->set('name', _AD_LEGACY_LANG_CUSTOM_HTML); break; case 'P': - $obj->set('name', _AD_BASE_LANG_CUSTOM_PHP); + $obj->set('name', _AD_LEGACY_LANG_CUSTOM_PHP); break; case 'S': - $obj->set('name', _AD_BASE_LANG_CUSTOM_WITH_SMILIES); + $obj->set('name', _AD_LEGACY_LANG_CUSTOM_WITH_SMILIES); break; case 'T': - $obj->set('name', _AD_BASE_LANG_CUSTOM_WITHOUT_SMILIES); + $obj->set('name', _AD_LEGACY_LANG_CUSTOM_WITHOUT_SMILIES); break; } } From minahito @ users.sourceforge.jp Sun Oct 15 01:07:32 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:07:32 +0900 Subject: [xoops-cvslog 5214] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014160732.38D172AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/ImageAdminDeleteForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/ImageAdminDeleteForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/ImageAdminDeleteForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/ImageAdminDeleteForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ImageAdminDeleteForm.class.php Sun Oct 15 01:07:32 2006 @@ -7,7 +7,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); require_once XOOPS_ROOT_PATH . "/core/XCube_ActionForm.class.php"; -require_once XOOPS_MODULE_PATH . "/base/class/Legacy_Validator.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/Legacy_Validator.class.php"; class Legacy_ImageAdminDeleteForm extends XCube_ActionForm { @@ -28,7 +28,7 @@ // $this->mFieldProperties['image_id'] =& new XCube_FieldProperty($this); $this->mFieldProperties['image_id']->setDependsByArray(array('required')); - $this->mFieldProperties['image_id']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMAGE_ID); + $this->mFieldProperties['image_id']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_IMAGE_ID); } function load(&$obj) From minahito @ users.sourceforge.jp Sun Oct 15 01:08:02 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:08:02 +0900 Subject: [xoops-cvslog 5215] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014160802.BAAB12AC289@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/ImageAdminEditForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/ImageAdminEditForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/ImageAdminEditForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/ImageAdminEditForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ImageAdminEditForm.class.php Sun Oct 15 01:08:02 2006 @@ -7,8 +7,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); require_once XOOPS_ROOT_PATH . "/core/XCube_ActionForm.class.php"; -require_once XOOPS_MODULE_PATH . "/base/class/Legacy_Validator.class.php"; -require_once XOOPS_MODULE_PATH . "/base/forms/ImageUploadForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/Legacy_Validator.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/forms/ImageUploadForm.class.php"; class Legacy_ImageAdminCreateForm extends Legacy_ImageUploadForm { @@ -35,11 +35,11 @@ // $this->mFieldProperties['image_id'] =& new XCube_FieldProperty($this); $this->mFieldProperties['image_id']->setDependsByArray(array('required')); - $this->mFieldProperties['image_id']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMAGE_ID); + $this->mFieldProperties['image_id']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_IMAGE_ID); $this->mFieldProperties['image_weight'] =& new XCube_FieldProperty($this); $this->mFieldProperties['image_weight']->setDependsByArray(array('required')); - $this->mFieldProperties['image_weight']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMAGE_WEIGHT); + $this->mFieldProperties['image_weight']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_IMAGE_WEIGHT); } function load(&$obj) @@ -67,7 +67,7 @@ { parent::validateImgcat_id(); - $handler =& xoops_getmodulehandler('imagecategory', 'base'); + $handler =& xoops_getmodulehandler('imagecategory', 'legacy'); $currentCategory =& $handler->get($this->_mImgcatId); $specificCategory =& $handler->get($this->get('imgcat_id')); From minahito @ users.sourceforge.jp Sun Oct 15 01:08:23 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:08:23 +0900 Subject: [xoops-cvslog 5216] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014160823.A17F62AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminDeleteForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminDeleteForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminDeleteForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminDeleteForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminDeleteForm.class.php Sun Oct 15 01:08:23 2006 @@ -7,7 +7,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); require_once XOOPS_ROOT_PATH . "/core/XCube_ActionForm.class.php"; -require_once XOOPS_MODULE_PATH . "/base/class/Legacy_Validator.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/Legacy_Validator.class.php"; class Legacy_ImagecategoryAdminDeleteForm extends XCube_ActionForm { @@ -28,7 +28,7 @@ // $this->mFieldProperties['imgcat_id'] =& new XCube_FieldProperty($this); $this->mFieldProperties['imgcat_id']->setDependsByArray(array('required')); - $this->mFieldProperties['imgcat_id']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMGCAT_ID); + $this->mFieldProperties['imgcat_id']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_IMGCAT_ID); } function load(&$obj) From minahito @ users.sourceforge.jp Sun Oct 15 01:08:51 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:08:51 +0900 Subject: [xoops-cvslog 5217] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014160851.9EBB72AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminEditForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminEditForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminEditForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminEditForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminEditForm.class.php Sun Oct 15 01:08:51 2006 @@ -7,7 +7,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); require_once XOOPS_ROOT_PATH . "/core/XCube_ActionForm.class.php"; -require_once XOOPS_MODULE_PATH . "/base/class/Legacy_Validator.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/Legacy_Validator.class.php"; class Legacy_ImagecategoryAdminEditForm extends XCube_ActionForm { @@ -36,38 +36,38 @@ // $this->mFieldProperties['imgcat_id'] =& new XCube_FieldProperty($this); $this->mFieldProperties['imgcat_id']->setDependsByArray(array('required')); - $this->mFieldProperties['imgcat_id']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMGCAT_ID); + $this->mFieldProperties['imgcat_id']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_IMGCAT_ID); $this->mFieldProperties['imgcat_name'] =& new XCube_FieldProperty($this); $this->mFieldProperties['imgcat_name']->setDependsByArray(array('required','maxlength')); - $this->mFieldProperties['imgcat_name']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMGCAT_NAME, '100'); - $this->mFieldProperties['imgcat_name']->addMessage('maxlength', _MD_BASE_ERROR_MAXLENGTH, _AD_BASE_LANG_IMGCAT_NAME, '100'); + $this->mFieldProperties['imgcat_name']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_IMGCAT_NAME, '100'); + $this->mFieldProperties['imgcat_name']->addMessage('maxlength', _MD_LEGACY_ERROR_MAXLENGTH, _AD_LEGACY_LANG_IMGCAT_NAME, '100'); $this->mFieldProperties['imgcat_name']->addVar('maxlength', '100'); $this->mFieldProperties['imgcat_maxsize'] =& new XCube_FieldProperty($this); $this->mFieldProperties['imgcat_maxsize']->setDependsByArray(array('required')); - $this->mFieldProperties['imgcat_maxsize']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMGCAT_MAXSIZE); + $this->mFieldProperties['imgcat_maxsize']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_IMGCAT_MAXSIZE); $this->mFieldProperties['imgcat_maxwidth'] =& new XCube_FieldProperty($this); $this->mFieldProperties['imgcat_maxwidth']->setDependsByArray(array('required')); - $this->mFieldProperties['imgcat_maxwidth']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMGCAT_MAXWIDTH); + $this->mFieldProperties['imgcat_maxwidth']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_IMGCAT_MAXWIDTH); $this->mFieldProperties['imgcat_maxheight'] =& new XCube_FieldProperty($this); $this->mFieldProperties['imgcat_maxheight']->setDependsByArray(array('required')); - $this->mFieldProperties['imgcat_maxheight']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMGCAT_MAXHEIGHT); + $this->mFieldProperties['imgcat_maxheight']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_IMGCAT_MAXHEIGHT); $this->mFieldProperties['imgcat_weight'] =& new XCube_FieldProperty($this); $this->mFieldProperties['imgcat_weight']->setDependsByArray(array('required')); - $this->mFieldProperties['imgcat_weight']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMGCAT_WEIGHT); + $this->mFieldProperties['imgcat_weight']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_IMGCAT_WEIGHT); $this->mFieldProperties['readgroups'] =& new XCube_FieldProperty($this); $this->mFieldProperties['readgroups']->setDependsByArray(array('objectExist')); - $this->mFieldProperties['readgroups']->addMessage('objectExist', _AD_BASE_ERROR_OBJECTEXIST, _AD_BASE_LANG_IMGCAT_READ_GROUPS); + $this->mFieldProperties['readgroups']->addMessage('objectExist', _AD_LEGACY_ERROR_OBJECTEXIST, _AD_LEGACY_LANG_IMGCAT_READ_GROUPS); $this->mFieldProperties['readgroups']->addVar('handler', 'group'); $this->mFieldProperties['uploadgroups'] =& new XCube_FieldProperty($this); $this->mFieldProperties['uploadgroups']->setDependsByArray(array('objectExist')); - $this->mFieldProperties['uploadgroups']->addMessage('objectExist', _AD_BASE_ERROR_OBJECTEXIST, _AD_BASE_LANG_IMGCAT_UPLOAD_GROUPS); + $this->mFieldProperties['uploadgroups']->addMessage('objectExist', _AD_LEGACY_ERROR_OBJECTEXIST, _AD_LEGACY_LANG_IMGCAT_UPLOAD_GROUPS); $this->mFieldProperties['uploadgroups']->addVar('handler', 'group'); } @@ -75,7 +75,7 @@ { $readgroups = $this->get('readgroups'); if (count($readgroups) == 0) { - $this->addErrorMessage(_AD_BASE_ERROR_READGROUPS); + $this->addErrorMessage(_AD_LEGACY_ERROR_READGROUPS); } } @@ -83,7 +83,7 @@ { $uploadgroups = $this->get('uploadgroups'); if (count($uploadgroups) == 0) { - $this->addErrorMessage(_AD_BASE_ERROR_UPLOADGROUPS); + $this->addErrorMessage(_AD_LEGACY_ERROR_UPLOADGROUPS); } } From minahito @ users.sourceforge.jp Sun Oct 15 01:09:08 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:09:08 +0900 Subject: [xoops-cvslog 5218] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014160908.463012AC289@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminNewForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminNewForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminNewForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminNewForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminNewForm.class.php Sun Oct 15 01:09:08 2006 @@ -7,8 +7,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); require_once XOOPS_ROOT_PATH . "/core/XCube_ActionForm.class.php"; -require_once XOOPS_MODULE_PATH . "/base/class/Legacy_Validator.class.php"; -require_once XOOPS_MODULE_PATH . "/base/admin/forms/ImagecategoryAdminEditForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/Legacy_Validator.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/admin/forms/ImagecategoryAdminEditForm.class.php"; class Legacy_ImagecategoryAdminNewForm extends Legacy_ImagecategoryAdminEditForm { @@ -31,8 +31,8 @@ // $this->mFieldProperties['imgcat_storetype'] =& new XCube_FieldProperty($this); $this->mFieldProperties['imgcat_storetype']->setDependsByArray(array('required','mask')); - $this->mFieldProperties['imgcat_storetype']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_IMGCAT_STORETYPE); - $this->mFieldProperties['imgcat_storetype']->addMessage('mask', _MD_BASE_ERROR_MASK, _AD_BASE_LANG_IMGCAT_STORETYPE); + $this->mFieldProperties['imgcat_storetype']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_IMGCAT_STORETYPE); + $this->mFieldProperties['imgcat_storetype']->addMessage('mask', _MD_LEGACY_ERROR_MASK, _AD_LEGACY_LANG_IMGCAT_STORETYPE); $this->mFieldProperties['imgcat_storetype']->addVar('mask', '(file|db)'); } From minahito @ users.sourceforge.jp Sun Oct 15 01:09:48 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:09:48 +0900 Subject: [xoops-cvslog 5219] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014160948.560F92AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/ImagecategoryFilterForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/ImagecategoryFilterForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/ImagecategoryFilterForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/ImagecategoryFilterForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ImagecategoryFilterForm.class.php Sun Oct 15 01:09:48 2006 @@ -6,7 +6,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractFilterForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractFilterForm.class.php"; define('IMAGECATEGORY_SORT_KEY_IMGCAT_ID', 1); define('IMAGECATEGORY_SORT_KEY_IMGCAT_NAME', 2); From minahito @ users.sourceforge.jp Sun Oct 15 01:10:00 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:10:00 +0900 Subject: [xoops-cvslog 5220] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014161000.C443B2AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/ImageFilterForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/ImageFilterForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/ImageFilterForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/ImageFilterForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ImageFilterForm.class.php Sun Oct 15 01:10:00 2006 @@ -2,7 +2,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractFilterForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractFilterForm.class.php"; define('IMAGE_SORT_KEY_IMAGE_ID', 1); define('IMAGE_SORT_KEY_IMAGE_NAME', 2); From minahito @ users.sourceforge.jp Sun Oct 15 01:10:31 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:10:31 +0900 Subject: [xoops-cvslog 5221] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014161031.361D52AC289@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/InstallWizardForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/InstallWizardForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/InstallWizardForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/InstallWizardForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/InstallWizardForm.class.php Sun Oct 15 01:10:31 2006 @@ -28,7 +28,7 @@ // $this->mFieldProperties['agree'] =& new XCube_FieldProperty($this); $this->mFieldProperties['agree']->setDependsByArray(array('min')); - $this->mFieldProperties['agree']->addMessage('min', _AD_BASE_ERROR_PLEASE_AGREE); + $this->mFieldProperties['agree']->addMessage('min', _AD_LEGACY_ERROR_PLEASE_AGREE); $this->mFieldProperties['agree']->addVar('min', '1'); } From minahito @ users.sourceforge.jp Sun Oct 15 01:11:01 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:11:01 +0900 Subject: [xoops-cvslog 5222] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014161101.73C352AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/ModuleListFilterForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/ModuleListFilterForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/ModuleListFilterForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/ModuleListFilterForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ModuleListFilterForm.class.php Sun Oct 15 01:11:01 2006 @@ -6,7 +6,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_ROOT_PATH . "/modules/base/class/AbstractFilterForm.class.php"; +require_once XOOPS_ROOT_PATH . "/modules/legacy/class/AbstractFilterForm.class.php"; define("MODULE_SORT_KEY_MID", 1); define("MODULE_SORT_KEY_NAME", 2); From minahito @ users.sourceforge.jp Sun Oct 15 01:11:31 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:11:31 +0900 Subject: [xoops-cvslog 5223] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014161131.B4CC02AC289@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/ModuleListForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/ModuleListForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/ModuleListForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/ModuleListForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ModuleListForm.class.php Sun Oct 15 01:11:31 2006 @@ -49,13 +49,13 @@ // set fields $this->mFieldProperties['name']=new XCube_FieldProperty($this); $this->mFieldProperties['name']->setDependsByArray(array('required','maxlength')); - $this->mFieldProperties['name']->addMessage("required",_MD_BASE_ERROR_REQUIRED,_AD_BASE_LANG_NAME,"140"); - $this->mFieldProperties['name']->addMessage("maxlength",_MD_BASE_ERROR_MAXLENGTH,_AD_BASE_LANG_NAME,"140"); + $this->mFieldProperties['name']->addMessage("required",_MD_LEGACY_ERROR_REQUIRED,_AD_LEGACY_LANG_NAME,"140"); + $this->mFieldProperties['name']->addMessage("maxlength",_MD_LEGACY_ERROR_MAXLENGTH,_AD_LEGACY_LANG_NAME,"140"); $this->mFieldProperties['name']->addVar("maxlength",140); $this->mFieldProperties['weight']=new XCube_FieldProperty($this); $this->mFieldProperties['weight']->setDependsByArray(array('required','min')); - $this->mFieldProperties['weight']->addMessage("min",_AD_BASE_ERROR_MIN,_AD_BASE_LANG_WEIGHT,"0"); + $this->mFieldProperties['weight']->addMessage("min",_AD_LEGACY_ERROR_MIN,_AD_LEGACY_LANG_WEIGHT,"0"); $this->mFieldProperties['weight']->addVar("min",0); } } From minahito @ users.sourceforge.jp Sun Oct 15 01:11:50 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:11:50 +0900 Subject: [xoops-cvslog 5224] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014161150.D5F442AC289@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/PreferenceEditForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/PreferenceEditForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/PreferenceEditForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/PreferenceEditForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/PreferenceEditForm.class.php Sun Oct 15 01:11:50 2006 @@ -54,7 +54,7 @@ $this->mFieldProperties[$config->get('conf_name')] =& new XCube_FieldProperty($this); $this->mFieldProperties[$config->get('conf_name')]->setDependsByArray(array('required')); - $this->mFieldProperties[$config->get('conf_name')]->addMessage('required', _MD_BASE_ERROR_REQUIRED, $config->get('conf_title')); + $this->mFieldProperties[$config->get('conf_name')]->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, $config->get('conf_title')); break; case 'int': @@ -63,7 +63,7 @@ $this->mFieldProperties[$config->get('conf_name')] =& new XCube_FieldProperty($this); $this->mFieldProperties[$config->get('conf_name')]->setDependsByArray(array('required')); - $this->mFieldProperties[$config->get('conf_name')]->addMessage('required', _MD_BASE_ERROR_REQUIRED, $config->get('conf_title')); + $this->mFieldProperties[$config->get('conf_name')]->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, $config->get('conf_title')); break; case 'other': From minahito @ users.sourceforge.jp Sun Oct 15 01:12:04 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:12:04 +0900 Subject: [xoops-cvslog 5225] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014161204.0C3252AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/SmilesAdminDeleteForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/SmilesAdminDeleteForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/SmilesAdminDeleteForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/SmilesAdminDeleteForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/SmilesAdminDeleteForm.class.php Sun Oct 15 01:12:03 2006 @@ -27,7 +27,7 @@ // $this->mFieldProperties['id'] =& new XCube_FieldProperty($this); $this->mFieldProperties['id']->setDependsByArray(array('required')); - $this->mFieldProperties['id']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_ID); + $this->mFieldProperties['id']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_ID); } function load(&$obj) From minahito @ users.sourceforge.jp Sun Oct 15 01:12:19 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:12:19 +0900 Subject: [xoops-cvslog 5226] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014161219.533442AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/SmilesAdminEditForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/SmilesAdminEditForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/SmilesAdminEditForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/SmilesAdminEditForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/SmilesAdminEditForm.class.php Sun Oct 15 01:12:19 2006 @@ -35,30 +35,30 @@ // $this->mFieldProperties['id'] =& new XCube_FieldProperty($this); $this->mFieldProperties['id']->setDependsByArray(array('required')); - $this->mFieldProperties['id']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_ID); + $this->mFieldProperties['id']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_ID); $this->mFieldProperties['code'] =& new XCube_FieldProperty($this); $this->mFieldProperties['code']->setDependsByArray(array('required','maxlength')); - $this->mFieldProperties['code']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_CODE, '50'); - $this->mFieldProperties['code']->addMessage('maxlength', _MD_BASE_ERROR_MAXLENGTH, _MD_BASE_LANG_CODE, '50'); + $this->mFieldProperties['code']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _MD_LEGACY_LANG_CODE, '50'); + $this->mFieldProperties['code']->addMessage('maxlength', _MD_LEGACY_ERROR_MAXLENGTH, _MD_LEGACY_LANG_CODE, '50'); $this->mFieldProperties['code']->addVar('maxlength', '50'); $this->mFieldProperties['smile_url'] =& new XCube_FieldProperty($this); $this->mFieldProperties['smile_url']->setDependsByArray(array('extension')); - $this->mFieldProperties['smile_url']->addMessage('extension', _AD_BASE_ERROR_EXTENSION); + $this->mFieldProperties['smile_url']->addMessage('extension', _AD_LEGACY_ERROR_EXTENSION); $this->mFieldProperties['smile_url']->addVar('extension', 'jpg,gif,png'); $this->mFieldProperties['emotion'] =& new XCube_FieldProperty($this); $this->mFieldProperties['emotion']->setDependsByArray(array('required','maxlength')); - $this->mFieldProperties['emotion']->addMessage('required', _MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_EMOTION, '75'); - $this->mFieldProperties['emotion']->addMessage('maxlength', _MD_BASE_ERROR_MAXLENGTH, _MD_BASE_LANG_EMOTION, '75'); + $this->mFieldProperties['emotion']->addMessage('required', _MD_LEGACY_ERROR_REQUIRED, _MD_LEGACY_LANG_EMOTION, '75'); + $this->mFieldProperties['emotion']->addMessage('maxlength', _MD_LEGACY_ERROR_MAXLENGTH, _MD_LEGACY_LANG_EMOTION, '75'); $this->mFieldProperties['emotion']->addVar('maxlength', '75'); } function validateSmile_url() { if ($this->_mIsNew && $this->get('smile_url') == null) { - $this->addErrorMessage(XCube_Utils::formatMessage(_MD_BASE_ERROR_REQUIRED, _MD_BASE_LANG_SMILE_URL)); + $this->addErrorMessage(XCube_Utils::formatMessage(_MD_LEGACY_ERROR_REQUIRED, _MD_LEGACY_LANG_SMILE_URL)); } } From minahito @ users.sourceforge.jp Sun Oct 15 01:13:11 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:13:11 +0900 Subject: [xoops-cvslog 5227] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014161311.1007E2AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/SmilesFilterForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/SmilesFilterForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/SmilesFilterForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/SmilesFilterForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/SmilesFilterForm.class.php Sun Oct 15 01:13:10 2006 @@ -2,7 +2,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_MODULE_PATH . "/base/class/AbstractFilterForm.class.php"; +require_once XOOPS_MODULE_PATH . "/legacy/class/AbstractFilterForm.class.php"; define('SMILES_SORT_KEY_ID', 1); define('SMILES_SORT_KEY_CODE', 2); From minahito @ users.sourceforge.jp Sun Oct 15 01:13:39 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:13:39 +0900 Subject: [xoops-cvslog 5228] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014161339.360C72AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/block_edit.html diff -u xoops2jp/html/modules/legacy/admin/templates/block_edit.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/block_edit.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/block_edit.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/block_edit.html Sun Oct 15 01:13:39 2006 @@ -1,10 +1,10 @@
- <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_BLOCKLIST}> - »» <{$smarty.const._AD_BASE_LANG_BLOCK_EDIT}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_BLOCKLIST}> + »» <{$smarty.const._AD_LEGACY_LANG_BLOCK_EDIT}>
-

<{$smarty.const._AD_BASE_LANG_BLOCK_EDIT}>

+

<{$smarty.const._AD_LEGACY_LANG_BLOCK_EDIT}>

<{if $actionForm->hasError()}>
@@ -21,16 +21,16 @@ <{xoops_input type=hidden name=bid value=$actionForm->get('bid')}> - + - + - + - + - + - + - + <{if $optionForm != null}> - + From minahito @ users.sourceforge.jp Sun Oct 15 01:14:10 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:14:10 +0900 Subject: [xoops-cvslog 5229] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014161410.540B92AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/block_list.html diff -u xoops2jp/html/modules/legacy/admin/templates/block_list.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/block_list.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/block_list.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/block_list.html Sun Oct 15 01:14:10 2006 @@ -1,17 +1,17 @@ -

<{$smarty.const._MI_BASE_MENU_BLOCKLIST}>

+

<{$smarty.const._MI_LEGACY_MENU_BLOCKLIST}>

- <{$smarty.const._AD_BASE_TIPS_ADD_CUSTOM_BLOCK}> + <{$smarty.const._AD_LEGACY_TIPS_ADD_CUSTOM_BLOCK}>
<{if $actionForm->hasError()}> @@ -28,29 +28,29 @@ <{xoops_token form=$actionForm}>
<{$smarty.const._AD_BASE_LANG_BLOCK_EDIT}><{$smarty.const._AD_LEGACY_LANG_BLOCK_EDIT}>
<{$smarty.const._AD_BASE_LANG_TITLE}><{$smarty.const._AD_LEGACY_LANG_TITLE}> "> <{xoops_input type=text name=title value=$actionForm->get('title') size=50 maxlength=255}>
<{$smarty.const._AD_BASE_LANG_SIDE}><{$smarty.const._AD_LEGACY_LANG_SIDE}> ">
<{$smarty.const._AD_BASE_LANG_WEIGHT}><{$smarty.const._AD_LEGACY_LANG_WEIGHT}> "> <{xoops_input type=text name=weight value=$actionForm->get('weight') size=5 class=base_list_number}>
<{$smarty.const._AD_BASE_LANG_BCACHETIME}><{$smarty.const._AD_LEGACY_LANG_BCACHETIME}> ">
<{$smarty.const._AD_BASE_LANG_TARGET_MODULES}><{$smarty.const._AD_LEGACY_LANG_TARGET_MODULES}> ">
<{$smarty.const._AD_BASE_LANG_TARGET_GROUPS}><{$smarty.const._AD_LEGACY_LANG_TARGET_GROUPS}> ">
<{$smarty.const._AD_BASE_LANG_OPTIONS}><{$smarty.const._AD_LEGACY_LANG_OPTIONS}> "> <{$optionForm}>
- - - - - + - - - + <{foreach item=obj from=$objects}> @@ -60,10 +60,10 @@ <{$obj->mModule->getShow('name')}> <{else}> - <{if $obj->get('c_type') == "H" }><{$smarty.const._AD_BASE_LANG_CUSTOM_HTML}> - <{elseif $obj->get('c_type') == "P"}><{$smarty.const._AD_BASE_LANG_CUSTOM_PHP}> - <{elseif $obj->get('c_type') == "S"}><{$smarty.const._AD_BASE_LANG_CUSTOM_WITH_SMILIES}> - <{elseif $obj->get('c_type') == "T"}><{$smarty.const._AD_BASE_LANG_CUSTOM_WITHOUT_SMILIES}> + <{if $obj->get('c_type') == "H" }><{$smarty.const._AD_LEGACY_LANG_CUSTOM_HTML}> + <{elseif $obj->get('c_type') == "P"}><{$smarty.const._AD_LEGACY_LANG_CUSTOM_PHP}> + <{elseif $obj->get('c_type') == "S"}><{$smarty.const._AD_LEGACY_LANG_CUSTOM_WITH_SMILIES}> + <{elseif $obj->get('c_type') == "T"}><{$smarty.const._AD_LEGACY_LANG_CUSTOM_WITHOUT_SMILIES}> <{/if}> <{/if}> @@ -115,7 +115,7 @@ <{else}> " alt="<{$smarty.const._EDIT}>" title="<{$smarty.const._EDIT}>" /> <{/if}> - " alt="<{$smarty.const._AD_BASE_LANG_UNINSTALL}>" title="<{$smarty.const._AD_BASE_LANG_UNINSTALL}>" /> + " alt="<{$smarty.const._AD_LEGACY_LANG_UNINSTALL}>" title="<{$smarty.const._AD_LEGACY_LANG_UNINSTALL}>" /> <{/foreach}> From minahito @ users.sourceforge.jp Sun Oct 15 01:14:23 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:14:23 +0900 Subject: [xoops-cvslog 5230] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014161423.11BF52AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/block_uninstall.html diff -u xoops2jp/html/modules/legacy/admin/templates/block_uninstall.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/block_uninstall.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/block_uninstall.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/block_uninstall.html Sun Oct 15 01:14:22 2006 @@ -1,18 +1,18 @@
- <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_BLOCKLIST}> - »» <{$smarty.const._AD_BASE_LANG_BLOCK_UNINSTALL}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_BLOCKLIST}> + »» <{$smarty.const._AD_LEGACY_LANG_BLOCK_UNINSTALL}>
-

<{$smarty.const._AD_BASE_LANG_BLOCK_UNINSTALL}>

+

<{$smarty.const._AD_LEGACY_LANG_BLOCK_UNINSTALL}>

-
<{$smarty.const._AD_BASE_MESSAGE_CONFIRM_DELETE}>
+
<{$smarty.const._AD_LEGACY_MESSAGE_CONFIRM_DELETE}>
<{if $object->get('block_type') == 'C'}> - <{$smarty.const._AD_BASE_TIPS_CUSTOM_BLOCK_UNINSTALL}> + <{$smarty.const._AD_LEGACY_TIPS_CUSTOM_BLOCK_UNINSTALL}> <{else}> - <{$smarty.const._AD_BASE_TIPS_BLOCK_UNINSTALL}> + <{$smarty.const._AD_LEGACY_TIPS_BLOCK_UNINSTALL}> <{/if}>
@@ -21,48 +21,48 @@ <{xoops_input type=hidden name=bid value=$actionForm->get('bid')}>
<{$smarty.const._AD_BASE_LANG_BID}>
+
<{$smarty.const._AD_LEGACY_LANG_BID}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_BLOCK_MOD}>
+
<{$smarty.const._AD_LEGACY_LANG_BLOCK_MOD}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_TITLE}>
+
<{$smarty.const._AD_LEGACY_LANG_TITLE}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_SIDE}> + <{$smarty.const._AD_LEGACY_LANG_SIDE}> " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
- <{$smarty.const._AD_BASE_LANG_LCR}>
<{$smarty.const._AD_BASE_LANG_WEIGHT}>
+ <{$smarty.const._AD_LEGACY_LANG_LCR}>
<{$smarty.const._AD_LEGACY_LANG_WEIGHT}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_BCACHETIME}>
+
<{$smarty.const._AD_LEGACY_LANG_BCACHETIME}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_LAST_MODIFIED}>
+
<{$smarty.const._AD_LEGACY_LANG_LAST_MODIFIED}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_CONTROL}><{$smarty.const._AD_LEGACY_LANG_CONTROL}>
- + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - From minahito @ users.sourceforge.jp Sun Oct 15 01:15:07 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:15:07 +0900 Subject: [xoops-cvslog 5231] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014161507.6F6642AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/blockinstall_edit.html diff -u xoops2jp/html/modules/legacy/admin/templates/blockinstall_edit.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/blockinstall_edit.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/blockinstall_edit.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/blockinstall_edit.html Sun Oct 15 01:15:07 2006 @@ -1,10 +1,10 @@
- <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_BLOCKLIST}> - »» <{$smarty.const._AD_BASE_LANG_BLOCK_INSTALL}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_BLOCKLIST}> + »» <{$smarty.const._AD_LEGACY_LANG_BLOCK_INSTALL}>
-

<{$smarty.const._AD_BASE_LANG_BLOCK_INSTALL}>

+

<{$smarty.const._AD_LEGACY_LANG_BLOCK_INSTALL}>

<{if $actionForm->hasError()}>
@@ -21,16 +21,16 @@ <{xoops_input type=hidden name=bid value=$actionForm->get('bid')}>
<{$smarty.const._AD_BASE_LANG_BLOCK_UNINSTALL}><{$smarty.const._AD_LEGACY_LANG_BLOCK_UNINSTALL}>
<{$smarty.const._AD_BASE_LANG_BID}><{$smarty.const._AD_LEGACY_LANG_BID}> "><{$object->getShow('bid')}>
<{$smarty.const._AD_BASE_LANG_BLOCK_MOD}><{$smarty.const._AD_LEGACY_LANG_BLOCK_MOD}> "><{$object->getShow('mid')}>
<{$smarty.const._AD_BASE_LANG_FUNC_NUM}><{$smarty.const._AD_LEGACY_LANG_FUNC_NUM}> "><{$object->getShow('func_num')}>
<{$smarty.const._AD_BASE_LANG_OPTIONS}><{$smarty.const._AD_LEGACY_LANG_OPTIONS}> "><{$object->getShow('options')}>
<{$smarty.const._AD_BASE_LANG_MOD_NAME}><{$smarty.const._AD_LEGACY_LANG_MOD_NAME}> "><{$object->getShow('name')}>
<{$smarty.const._AD_BASE_LANG_TITLE}><{$smarty.const._AD_LEGACY_LANG_TITLE}> "><{$object->getShow('title')}>
<{$smarty.const._AD_BASE_LANG_CONTENT}><{$smarty.const._AD_LEGACY_LANG_CONTENT}> "><{$object->getShow('content')}>
<{$smarty.const._AD_BASE_LANG_SIDE}><{$smarty.const._AD_LEGACY_LANG_SIDE}> "> <{if $object->mColumn}><{$object->mColumn->getShow('name')}><{/if}>
<{$smarty.const._AD_BASE_LANG_WEIGHT}><{$smarty.const._AD_LEGACY_LANG_WEIGHT}> "><{$object->getShow('weight')}>
<{$smarty.const._AD_BASE_LANG_VISIBLE}><{$smarty.const._AD_LEGACY_LANG_VISIBLE}> "> <{if $object->getShow('visible') == 1}> <{$smarty.const._YES}> @@ -72,15 +72,15 @@
<{$smarty.const._AD_BASE_LANG_BLOCK_TYPE}><{$smarty.const._AD_LEGACY_LANG_BLOCK_TYPE}> "><{$object->getShow('block_type')}>
<{$smarty.const._AD_BASE_LANG_C_TYPE}><{$smarty.const._AD_LEGACY_LANG_C_TYPE}> "><{$object->getShow('c_type')}>
<{$smarty.const._AD_BASE_LANG_ISACTIVE}><{$smarty.const._AD_LEGACY_LANG_ISACTIVE}> "> <{if $object->getShow('isactive') == 1}> <{$smarty.const._YES}> @@ -90,33 +90,33 @@
<{$smarty.const._AD_BASE_LANG_DIRNAME}><{$smarty.const._AD_LEGACY_LANG_DIRNAME}> "><{$object->getShow('dirname')}>
<{$smarty.const._AD_BASE_LANG_FUNC_FILE}><{$smarty.const._AD_LEGACY_LANG_FUNC_FILE}> "><{$object->getShow('func_file')}>
<{$smarty.const._AD_BASE_LANG_SHOW_FUNC}><{$smarty.const._AD_LEGACY_LANG_SHOW_FUNC}> "><{$object->getShow('show_func')}>
<{$smarty.const._AD_BASE_LANG_EDIT_FUNC}><{$smarty.const._AD_LEGACY_LANG_EDIT_FUNC}> "><{$object->getShow('edit_func')}>
<{$smarty.const._AD_BASE_LANG_TEMPLATE}><{$smarty.const._AD_LEGACY_LANG_TEMPLATE}> "><{$object->getShow('template')}>
<{$smarty.const._AD_BASE_LANG_BCACHETIME}> + <{$smarty.const._AD_LEGACY_LANG_BCACHETIME}> "> <{if $object->mCachetime}><{$object->mCachetime->getShow('label')}><{/if}>
<{$smarty.const._AD_BASE_LANG_LAST_MODIFIED}> + <{$smarty.const._AD_LEGACY_LANG_LAST_MODIFIED}> "><{$object->get('last_modified')|xoops_formattimestamp:l}>
- + - + - + - + - + - + - + <{if $optionForm != null}> - + From minahito @ users.sourceforge.jp Sun Oct 15 01:15:46 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:15:46 +0900 Subject: [xoops-cvslog 5232] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014161546.D2B5E2AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/blockinstall_list.html diff -u xoops2jp/html/modules/legacy/admin/templates/blockinstall_list.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/blockinstall_list.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/blockinstall_list.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/blockinstall_list.html Sun Oct 15 01:15:46 2006 @@ -1,34 +1,34 @@
- <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_BLOCKLIST}> - »» <{$smarty.const._MI_BASE_MENU_BLOCKINSTALL}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_BLOCKLIST}> + »» <{$smarty.const._MI_LEGACY_MENU_BLOCKINSTALL}>
-

<{$smarty.const._MI_BASE_MENU_BLOCKINSTALL}>

+

<{$smarty.const._MI_LEGACY_MENU_BLOCKINSTALL}>

- <{$smarty.const._AD_BASE_TIPS_INSTALL_BLOCK}> + <{$smarty.const._AD_LEGACY_TIPS_INSTALL_BLOCK}>
<{$smarty.const._AD_BASE_LANG_BLOCK_INSTALL}><{$smarty.const._AD_LEGACY_LANG_BLOCK_INSTALL}>
<{$smarty.const._AD_BASE_LANG_TITLE}><{$smarty.const._AD_LEGACY_LANG_TITLE}> "> <{xoops_input type=text name=title value=$actionForm->get('title') size=50 maxlength=255}>
<{$smarty.const._AD_BASE_LANG_SIDE}><{$smarty.const._AD_LEGACY_LANG_SIDE}> ">
<{$smarty.const._AD_BASE_LANG_WEIGHT}><{$smarty.const._AD_LEGACY_LANG_WEIGHT}> "> <{xoops_input type=text name=weight value=$actionForm->get('weight') size=5 class=base_list_number}>
<{$smarty.const._AD_BASE_LANG_BCACHETIME}><{$smarty.const._AD_LEGACY_LANG_BCACHETIME}> ">
<{$smarty.const._AD_BASE_LANG_TARGET_MODULES}><{$smarty.const._AD_LEGACY_LANG_TARGET_MODULES}> ">
<{$smarty.const._AD_BASE_LANG_TARGET_GROUPS}><{$smarty.const._AD_LEGACY_LANG_TARGET_GROUPS}> ">
<{$smarty.const._AD_BASE_LANG_OPTIONS}><{$smarty.const._AD_LEGACY_LANG_OPTIONS}> "> <{$optionForm}>
- - - - - + <{foreach item=obj from=$objects}> @@ -38,10 +38,10 @@ <{$obj->mModule->getShow('name')}> <{else}> - <{if $obj->get('c_type') == "H" }><{$smarty.const._AD_BASE_LANG_CUSTOM_HTML}> - <{elseif $obj->get('c_type') == "P"}><{$smarty.const._AD_BASE_LANG_CUSTOM_PHP}> - <{elseif $obj->get('c_type') == "S"}><{$smarty.const._AD_BASE_LANG_CUSTOM_WITH_SMILIES}> - <{elseif $obj->get('c_type') == "T"}><{$smarty.const._AD_BASE_LANG_CUSTOM_WITHOUT_SMILIES}> + <{if $obj->get('c_type') == "H" }><{$smarty.const._AD_LEGACY_LANG_CUSTOM_HTML}> + <{elseif $obj->get('c_type') == "P"}><{$smarty.const._AD_LEGACY_LANG_CUSTOM_PHP}> + <{elseif $obj->get('c_type') == "S"}><{$smarty.const._AD_LEGACY_LANG_CUSTOM_WITH_SMILIES}> + <{elseif $obj->get('c_type') == "T"}><{$smarty.const._AD_LEGACY_LANG_CUSTOM_WITHOUT_SMILIES}> <{/if}> <{/if}> @@ -50,10 +50,10 @@ From minahito @ users.sourceforge.jp Sun Oct 15 01:16:31 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:16:31 +0900 Subject: [xoops-cvslog 5233] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014161631.0AC652AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/comment_delete.html diff -u xoops2jp/html/modules/legacy/admin/templates/comment_delete.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/comment_delete.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/comment_delete.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/comment_delete.html Sun Oct 15 01:16:30 2006 @@ -1,34 +1,34 @@
- <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_COMMENT_MANAGE}> - »» <{$smarty.const._AD_BASE_LANG_COMMENT_DELETE}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_COMMENT_MANAGE}> + »» <{$smarty.const._AD_LEGACY_LANG_COMMENT_DELETE}>
-

<{$smarty.const._AD_BASE_LANG_COMMENT_DELETE}>

+

<{$smarty.const._AD_LEGACY_LANG_COMMENT_DELETE}>

-
<{$smarty.const._AD_BASE_MESSAGE_CONFIRM_DELETE}>
+
<{$smarty.const._AD_LEGACY_MESSAGE_CONFIRM_DELETE}>
<{xoops_token form=$actionForm}> <{xoops_input type=hidden name=com_id value=$actionForm->get('com_id')}>
<{$smarty.const._AD_BASE_LANG_BID}>
+
<{$smarty.const._AD_LEGACY_LANG_BID}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_BLOCK_MOD}>
+
<{$smarty.const._AD_LEGACY_LANG_BLOCK_MOD}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_TITLE}>
+
<{$smarty.const._AD_LEGACY_LANG_TITLE}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_TEMPLATE}>
+
<{$smarty.const._AD_LEGACY_LANG_TEMPLATE}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_CONTROL}><{$smarty.const._AD_LEGACY_LANG_CONTROL}>
<{$obj->getShow('template')}> <{if $obj->get('block_type') == 'C'}> - " alt="<{$smarty.const._AD_BASE_LANG_INSTALL}>" title="<{$smarty.const._AD_BASE_LANG_INSTALL}>" /> + " alt="<{$smarty.const._AD_LEGACY_LANG_INSTALL}>" title="<{$smarty.const._AD_LEGACY_LANG_INSTALL}>" /> " alt="<{$smarty.const._DELETE}>" title="<{$smarty.const._DELETE}>" /> <{else}> - " alt="<{$smarty.const._AD_BASE_LANG_INSTALL}>"title="<{$smarty.const._AD_BASE_LANG_INSTALL}>" /> + " alt="<{$smarty.const._AD_LEGACY_LANG_INSTALL}>"title="<{$smarty.const._AD_LEGACY_LANG_INSTALL}>" /> <{/if}>
- + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -112,18 +112,18 @@
<{$smarty.const._AD_BASE_LANG_COMMENT_DELETE}><{$smarty.const._AD_LEGACY_LANG_COMMENT_DELETE}>
<{$smarty.const._MD_BASE_LANG_COM_ID}><{$smarty.const._MD_LEGACY_LANG_COM_ID}> "><{$object->getShow('com_id')}>
<{$smarty.const._MD_BASE_LANG_COM_PID}><{$smarty.const._MD_LEGACY_LANG_COM_PID}> "><{$object->getShow('com_pid')}>
<{$smarty.const._MD_BASE_LANG_COM_ROOTID}><{$smarty.const._MD_LEGACY_LANG_COM_ROOTID}> "><{$object->getShow('com_rootid')}>
<{$smarty.const._MD_BASE_LANG_COM_MODID}><{$smarty.const._MD_LEGACY_LANG_COM_MODID}> "> <{if $obj->mModule}> <{$obj->mModule->getShow('name')}> @@ -36,11 +36,11 @@
<{$smarty.const._MD_BASE_LANG_COM_ITEMID}><{$smarty.const._MD_LEGACY_LANG_COM_ITEMID}> "><{$object->getShow('com_itemid')}>
<{$smarty.const._MD_BASE_LANG_COM_ICON}><{$smarty.const._MD_LEGACY_LANG_COM_ICON}> "> <{if $object->getShow('com_icon')}> @@ -50,57 +50,57 @@
<{$smarty.const._AD_BASE_LANG_COM_CREATED}><{$smarty.const._AD_LEGACY_LANG_COM_CREATED}> "><{$object->get('com_created')|xoops_formattimestamp:l}>
<{$smarty.const._AD_BASE_LANG_COM_MODIFIED}><{$smarty.const._AD_LEGACY_LANG_COM_MODIFIED}> "><{$object->get('com_modified')|xoops_formattimestamp:l}>
<{$smarty.const._AD_BASE_LANG_COM_UID}><{$smarty.const._AD_LEGACY_LANG_COM_UID}> "><{$object->mUser->getShow('uname')}>
<{$smarty.const._MD_BASE_LANG_COM_IP}><{$smarty.const._MD_LEGACY_LANG_COM_IP}> "><{$object->getShow('com_ip')}>
<{$smarty.const._MD_BASE_LANG_COM_TITLE}><{$smarty.const._MD_LEGACY_LANG_COM_TITLE}> "><{$object->getShow('com_title')}>
<{$smarty.const._MD_BASE_LANG_COM_TEXT}><{$smarty.const._MD_LEGACY_LANG_COM_TEXT}> "><{$object->getShow('com_text')}>
<{$smarty.const._AD_BASE_LANG_COM_SIG}><{$smarty.const._AD_LEGACY_LANG_COM_SIG}> "> <{xoops_input type=radio name=com_sig value=1 default=$object->get('com_sig') disabled=true}><{$smarty.const._YES}> <{xoops_input type=radio name=com_sig value=0 default=$object->get('com_sig') disabled=true}><{$smarty.const._NO}>
<{$smarty.const._AD_BASE_LANG_COM_STATUS}><{$smarty.const._AD_LEGACY_LANG_COM_STATUS}> "><{$object->mStatus->getShow('name')}>
<{$smarty.const._MD_BASE_LANG_COM_EXPARAMS}><{$smarty.const._MD_LEGACY_LANG_COM_EXPARAMS}> "><{$object->getShow('com_exparams')}>
<{$smarty.const._AD_BASE_LANG_CONTROL}><{$smarty.const._AD_LEGACY_LANG_CONTROL}> "> <{xoops_input type=checkbox name=dohtml value=1 default=$object->get('dohtml') disabled=true}> - <{$smarty.const._MD_BASE_LANG_DOHTML}>
+ <{$smarty.const._MD_LEGACY_LANG_DOHTML}>
<{xoops_input type=checkbox name=dosmiley value=1 default=$object->get('dosmiley') disabled=true}> - <{$smarty.const._MD_BASE_LANG_DOSMILEY}>
+ <{$smarty.const._MD_LEGACY_LANG_DOSMILEY}>
<{xoops_input type=checkbox name=doxcode value=1 default=$object->get('doxcode') disabled=true}> - <{$smarty.const._MD_BASE_LANG_DOXCODE}>
+ <{$smarty.const._MD_LEGACY_LANG_DOXCODE}>
<{xoops_input type=checkbox name=doimage value=1 default=$object->get('doimage') disabled=true}> - <{$smarty.const._AD_BASE_LANG_DOIMAGE}>
+ <{$smarty.const._AD_LEGACY_LANG_DOIMAGE}>
<{xoops_input type=checkbox name=dobr value=1 default=$object->get('dobr') disabled=true}> - <{$smarty.const._MD_BASE_LANG_DOBR}> + <{$smarty.const._MD_LEGACY_LANG_DOBR}>
-

<{$smarty.const._AD_BASE_MESSAGE_CHILDREN_DELETED_TOGETHER}>

+

<{$smarty.const._AD_LEGACY_MESSAGE_CHILDREN_DELETED_TOGETHER}>

- <{foreach item=obj from=$children}> From minahito @ users.sourceforge.jp Sun Oct 15 01:16:46 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:16:46 +0900 Subject: [xoops-cvslog 5234] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014161646.468A82AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/comment_edit.html diff -u xoops2jp/html/modules/legacy/admin/templates/comment_edit.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/comment_edit.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/comment_edit.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/comment_edit.html Sun Oct 15 01:16:46 2006 @@ -1,18 +1,18 @@
- <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_COMMENT_MANAGE}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_COMMENT_MANAGE}> <{if $actionForm->get('com_id')}> - »» <{$smarty.const._AD_BASE_LANG_COMMENT_EDIT}> + »» <{$smarty.const._AD_LEGACY_LANG_COMMENT_EDIT}> <{else}> - »» <{$smarty.const._AD_BASE_LANG_COMMENT_NEW}> + »» <{$smarty.const._AD_LEGACY_LANG_COMMENT_NEW}> <{/if}>

<{if $actionForm->get('com_id')}> - <{$smarty.const._AD_BASE_LANG_COMMENT_EDIT}> + <{$smarty.const._AD_LEGACY_LANG_COMMENT_EDIT}> <{else}> - <{$smarty.const._AD_BASE_LANG_COMMENT_NEW}> + <{$smarty.const._AD_LEGACY_LANG_COMMENT_NEW}> <{/if}>

@@ -31,13 +31,13 @@ <{xoops_input type=hidden name=com_id value=$actionForm->get('com_id')}>
<{$smarty.const._MD_BASE_LANG_COM_ID}>
-
<{$smarty.const._MD_BASE_LANG_COM_MODID}>
-
<{$smarty.const._MD_BASE_LANG_COM_TITLE}>
-
<{$smarty.const._AD_BASE_LANG_COM_CREATED}>
-
<{$smarty.const._AD_BASE_LANG_COM_MODIFIED}>
-
<{$smarty.const._AD_BASE_LANG_COM_UID}>
-
<{$smarty.const._MD_BASE_LANG_COM_IP}>
-
<{$smarty.const._AD_BASE_LANG_COM_STATUS}>
+
<{$smarty.const._MD_LEGACY_LANG_COM_ID}>
+
<{$smarty.const._MD_LEGACY_LANG_COM_MODID}>
+
<{$smarty.const._MD_LEGACY_LANG_COM_TITLE}>
+
<{$smarty.const._AD_LEGACY_LANG_COM_CREATED}>
+
<{$smarty.const._AD_LEGACY_LANG_COM_MODIFIED}>
+
<{$smarty.const._AD_LEGACY_LANG_COM_UID}>
+
<{$smarty.const._MD_LEGACY_LANG_COM_IP}>
+
<{$smarty.const._AD_LEGACY_LANG_COM_STATUS}>
- + - + - + - + - + - + From minahito @ users.sourceforge.jp Sun Oct 15 01:17:33 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:17:33 +0900 Subject: [xoops-cvslog 5235] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014161733.586EF2AC289@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/comment_list.html diff -u xoops2jp/html/modules/legacy/admin/templates/comment_list.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/comment_list.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/comment_list.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/comment_list.html Sun Oct 15 01:17:33 2006 @@ -1,15 +1,15 @@ -

<{$smarty.const._MI_BASE_MENU_COMMENT_MANAGE}>

+

<{$smarty.const._MI_LEGACY_MENU_COMMENT_MANAGE}>

<{$smarty.const._MD_BASE_LANG_COM_TITLE}><{$smarty.const._MD_LEGACY_LANG_COM_TITLE}> "> <{xoops_input type=text name=com_title value=$actionForm->get('com_title') size=60 maxlength=255}>
<{$smarty.const._MD_BASE_LANG_COM_ICON}><{$smarty.const._MD_LEGACY_LANG_COM_ICON}> "> <{foreach item=icon from=$subjectIconArr}> <{xoops_input type=radio name=com_icon value=$icon->get('filename') default=$actionForm->get('com_icon')}> @@ -45,20 +45,20 @@
<{$smarty.const._MD_BASE_LANG_COM_TEXT}><{$smarty.const._MD_LEGACY_LANG_COM_TEXT}> "> <{xoops_dhtmltarea type=text rows=15 cols=60 name=com_text value=$actionForm->get('com_text')}>
<{$smarty.const._AD_BASE_LANG_COM_SIG}><{$smarty.const._AD_LEGACY_LANG_COM_SIG}> "> <{xoops_input type=radio name=com_sig value=1 default=$actionForm->get('com_sig')}><{$smarty.const._YES}> <{xoops_input type=radio name=com_sig value=0 default=$actionForm->get('com_sig')}><{$smarty.const._NO}>
<{$smarty.const._AD_BASE_LANG_COM_STATUS}><{$smarty.const._AD_LEGACY_LANG_COM_STATUS}> ">
<{$smarty.const._AD_BASE_LANG_CONTROL}><{$smarty.const._AD_LEGACY_LANG_CONTROL}> "> <{xoops_input type=checkbox name=dohtml value=1 default=$actionForm->get('dohtml')}> - <{$smarty.const._MD_BASE_LANG_DOHTML}>
+ <{$smarty.const._MD_LEGACY_LANG_DOHTML}>
<{xoops_input type=checkbox name=dosmiley value=1 default=$actionForm->get('dosmiley')}> - <{$smarty.const._MD_BASE_LANG_DOSMILEY}>
+ <{$smarty.const._MD_LEGACY_LANG_DOSMILEY}>
<{xoops_input type=checkbox name=doxcode value=1 default=$actionForm->get('doxcode')}> - <{$smarty.const._MD_BASE_LANG_DOXCODE}>
+ <{$smarty.const._MD_LEGACY_LANG_DOXCODE}>
<{xoops_input type=checkbox name=doimage value=1 default=$actionForm->get('doimage')}> - <{$smarty.const._AD_BASE_LANG_DOIMAGE}>
+ <{$smarty.const._AD_LEGACY_LANG_DOIMAGE}>
<{xoops_input type=checkbox name=dobr value=1 default=$actionForm->get('dobr')}> - <{$smarty.const._MD_BASE_LANG_DOBR}> + <{$smarty.const._MD_LEGACY_LANG_DOBR}>
- - - - - - - - - + <{foreach item=obj from=$objects}> Index: xoops2jp/html/modules/legacy/admin/templates/image_edit.html diff -u xoops2jp/html/modules/legacy/admin/templates/image_edit.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/image_edit.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/image_edit.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/image_edit.html Sun Oct 15 01:17:33 2006 @@ -1,18 +1,18 @@
- <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_IMAGE_MANAGE}> - »» <{$smarty.const._AD_BASE_LANG_IMAGE_LIST}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_IMAGE_MANAGE}> + »» <{$smarty.const._AD_LEGACY_LANG_IMAGE_LIST}> <{if $actionForm->get('image_id')}> - »» <{$smarty.const._AD_BASE_LANG_IMAGE_EDIT}> + »» <{$smarty.const._AD_LEGACY_LANG_IMAGE_EDIT}> <{else}> - »» <{$smarty.const._AD_BASE_LANG_IMAGE_NEW}> + »» <{$smarty.const._AD_LEGACY_LANG_IMAGE_NEW}> <{/if}>
<{if $actionForm->get('image_id')}> -

<{$smarty.const._AD_BASE_LANG_IMAGE_EDIT}>

+

<{$smarty.const._AD_LEGACY_LANG_IMAGE_EDIT}>

<{else}> -

<{$smarty.const._AD_BASE_LANG_IMAGE_NEW}>

+

<{$smarty.const._AD_LEGACY_LANG_IMAGE_NEW}>

<{/if}> <{if $actionForm->hasError()}> @@ -32,9 +32,9 @@ @@ -50,31 +50,31 @@ <{/if}> - + - + - + - + - + - + - + - + - + - + - + - + - + Index: xoops2jp/html/modules/legacy/admin/templates/module_uninstall_success.html diff -u xoops2jp/html/modules/legacy/admin/templates/module_uninstall_success.html:1.1.2.2 xoops2jp/html/modules/legacy/admin/templates/module_uninstall_success.html:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/templates/module_uninstall_success.html:1.1.2.2 Sun Oct 15 01:22:21 2006 +++ xoops2jp/html/modules/legacy/admin/templates/module_uninstall_success.html Sun Oct 15 01:54:59 2006 @@ -10,11 +10,11 @@
    <{foreach item=msg from=$log}> <{if $msg.type == "error"}> -
  • <{$msg.message|escape}>
  • +
  • <{$msg.message|escape}>
  • <{elseif $msg.type == "warning"}> -
  • <{$msg.message|escape}>
  • +
  • <{$msg.message|escape}>
  • <{else}> -
  • <{$msg.message|escape}>
  • +
  • <{$msg.message|escape}>
  • <{/if}> <{/foreach}>
Index: xoops2jp/html/modules/legacy/admin/templates/image_edit.html diff -u xoops2jp/html/modules/legacy/admin/templates/image_edit.html:1.1.2.2 xoops2jp/html/modules/legacy/admin/templates/image_edit.html:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/templates/image_edit.html:1.1.2.2 Sun Oct 15 01:17:33 2006 +++ xoops2jp/html/modules/legacy/admin/templates/image_edit.html Sun Oct 15 01:54:59 2006 @@ -40,7 +40,7 @@ <{if $actionForm->get('image_id')}> - Index: xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html diff -u xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html:1.1.2.2 xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html:1.1.2.2 Sun Oct 15 01:22:49 2006 +++ xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html Sun Oct 15 01:54:59 2006 @@ -29,9 +29,9 @@ - @@ -45,7 +45,7 @@ Index: xoops2jp/html/modules/legacy/admin/templates/image_delete.html diff -u xoops2jp/html/modules/legacy/admin/templates/image_delete.html:1.1.2.2 xoops2jp/html/modules/legacy/admin/templates/image_delete.html:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/templates/image_delete.html:1.1.2.2 Sun Oct 15 01:17:33 2006 +++ xoops2jp/html/modules/legacy/admin/templates/image_delete.html Sun Oct 15 01:54:59 2006 @@ -19,7 +19,7 @@ - From tom_g3x @ users.sourceforge.jp Sun Oct 15 21:59:55 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Sun, 15 Oct 2006 21:59:55 +0900 Subject: [xoops-cvslog 5339] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061015125955.E8D312AC01A@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/module_list.html diff -u xoops2jp/html/modules/legacy/admin/templates/module_list.html:1.1.2.3 xoops2jp/html/modules/legacy/admin/templates/module_list.html:1.1.2.4 --- xoops2jp/html/modules/legacy/admin/templates/module_list.html:1.1.2.3 Sun Oct 15 01:54:59 2006 +++ xoops2jp/html/modules/legacy/admin/templates/module_list.html Sun Oct 15 21:59:55 2006 @@ -55,13 +55,7 @@
<{$smarty.const._MD_BASE_LANG_COM_ID}>
+
<{$smarty.const._MD_LEGACY_LANG_COM_ID}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_BASE_LANG_COM_MODID}>
+
<{$smarty.const._MD_LEGACY_LANG_COM_MODID}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_BASE_LANG_COM_TITLE}>
+
<{$smarty.const._MD_LEGACY_LANG_COM_TITLE}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_COM_CREATED}>
+
<{$smarty.const._AD_LEGACY_LANG_COM_CREATED}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_COM_MODIFIED}>
+
<{$smarty.const._AD_LEGACY_LANG_COM_MODIFIED}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_COM_UID}>
+
<{$smarty.const._AD_LEGACY_LANG_COM_UID}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_BASE_LANG_COM_IP}>
+
<{$smarty.const._MD_LEGACY_LANG_COM_IP}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_COM_STATUS}>
+
<{$smarty.const._AD_LEGACY_LANG_COM_STATUS}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_CONTROL}><{$smarty.const._AD_LEGACY_LANG_CONTROL}>
<{if $actionForm->get('image_id')}> - <{$smarty.const._AD_BASE_LANG_IMAGE_EDIT}> + <{$smarty.const._AD_LEGACY_LANG_IMAGE_EDIT}> <{else}> - <{$smarty.const._AD_BASE_LANG_IMAGE_NEW}> + <{$smarty.const._AD_LEGACY_LANG_IMAGE_NEW}> <{/if}>
<{$smarty.const._AD_BASE_LANG_IMAGE_NAME}><{$smarty.const._AD_LEGACY_LANG_IMAGE_NAME}> "> <{xoops_input type=file name=image_name}>
<{$smarty.const._MD_BASE_LANG_IMAGE_NICENAME}><{$smarty.const._MD_LEGACY_LANG_IMAGE_NICENAME}> "> <{xoops_input type=text name=image_nicename value=$actionForm->get('image_nicename') size=30 maxlength=255}>
<{$smarty.const._AD_BASE_LANG_IMAGE_DISPLAY}><{$smarty.const._AD_LEGACY_LANG_IMAGE_DISPLAY}> "> <{xoops_input type=checkbox name=image_display value=1 default=$actionForm->get('image_display') size=45}>
<{$smarty.const._AD_BASE_LANG_IMAGE_WEIGHT}><{$smarty.const._AD_LEGACY_LANG_IMAGE_WEIGHT}> "> <{xoops_input type=text name=image_weight value=$actionForm->get('image_weight') size=5}>
<{$smarty.const._AD_BASE_LANG_IMGCAT_ID}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_ID}> "> <{if $actionForm->get('content')}> <{if $object->get('visible') == 1 }> - »» <{$smarty.const._AD_BASE_LANG_CUSTOMBLOCK_EDIT}> + »» <{$smarty.const._AD_LEGACY_LANG_CUSTOMBLOCK_EDIT}> <{else}> - »» <{$smarty.const._AD_BASE_LANG_BLOCK_INSTALL}> + »» <{$smarty.const._AD_LEGACY_LANG_BLOCK_INSTALL}> <{/if}> <{else}> - <{$smarty.const._AD_BASE_LANG_ADD_CUSTOM_BLOCK}> + <{$smarty.const._AD_LEGACY_LANG_ADD_CUSTOM_BLOCK}> <{/if}>
<{$smarty.const._AD_BASE_LANG_TITLE}><{$smarty.const._AD_LEGACY_LANG_TITLE}> "> <{xoops_input type=text name=title value=$actionForm->get('title') size=50 maxlength=255}>
<{$smarty.const._AD_BASE_LANG_SIDE}><{$smarty.const._AD_LEGACY_LANG_SIDE}> ">
<{$smarty.const._AD_BASE_LANG_WEIGHT}><{$smarty.const._AD_LEGACY_LANG_WEIGHT}> "> <{xoops_input type=text name=weight value=$actionForm->get('weight') size=5 class=base_list_number}>
<{$smarty.const._AD_BASE_LANG_CONTENT}><{$smarty.const._AD_LEGACY_LANG_CONTENT}> "> <{xoops_dhtmltarea type=text name=content value=$actionForm->get('content') rows=20 cols=60}>
<{$smarty.const._AD_BASE_LANG_C_TYPE}><{$smarty.const._AD_LEGACY_LANG_C_TYPE}> ">
<{$smarty.const._AD_BASE_LANG_BCACHETIME}><{$smarty.const._AD_LEGACY_LANG_BCACHETIME}> ">
<{$smarty.const._AD_BASE_LANG_TARGET_MODULES}><{$smarty.const._AD_LEGACY_LANG_TARGET_MODULES}> ">
<{$smarty.const._AD_BASE_LANG_TARGET_GROUPS}><{$smarty.const._AD_LEGACY_LANG_TARGET_GROUPS}> "> - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - +
<{$smarty.const._AD_BASE_LANG_COMMENT_VIEW}><{$smarty.const._AD_LEGACY_LANG_COMMENT_VIEW}>
<{$smarty.const._MD_BASE_LANG_COM_ID}><{$smarty.const._MD_LEGACY_LANG_COM_ID}> "><{$object->getShow('com_id')}>
<{$smarty.const._MD_BASE_LANG_COM_PID}><{$smarty.const._MD_LEGACY_LANG_COM_PID}> "><{$object->getShow('com_pid')}>
<{$smarty.const._MD_BASE_LANG_COM_ROOTID}><{$smarty.const._MD_LEGACY_LANG_COM_ROOTID}> "><{$object->getShow('com_rootid')}>
<{$smarty.const._MD_BASE_LANG_COM_MODID}><{$smarty.const._MD_LEGACY_LANG_COM_MODID}> "><{$object->mModule->getShow('name')}>
<{$smarty.const._MD_BASE_LANG_COM_ITEMID}><{$smarty.const._MD_LEGACY_LANG_COM_ITEMID}> "><{$object->getShow('com_itemid')}>
<{$smarty.const._MD_BASE_LANG_COM_ICON}><{$smarty.const._MD_LEGACY_LANG_COM_ICON}> "> <{if $object->getShow('com_icon')}> @@ -41,73 +41,73 @@
<{$smarty.const._AD_BASE_LANG_COM_CREATED}><{$smarty.const._AD_LEGACY_LANG_COM_CREATED}> "><{$object->get('com_created')|xoops_formattimestamp:l}>
<{$smarty.const._AD_BASE_LANG_COM_MODIFIED}><{$smarty.const._AD_LEGACY_LANG_COM_MODIFIED}> "><{$object->get('com_modified')|xoops_formattimestamp:l}>
<{$smarty.const._AD_BASE_LANG_COM_UID}><{$smarty.const._AD_LEGACY_LANG_COM_UID}> "><{$object->mUser->getShow('uname')}>
<{$smarty.const._MD_BASE_LANG_COM_IP}><{$smarty.const._MD_LEGACY_LANG_COM_IP}> "><{$object->getShow('com_ip')}>
<{$smarty.const._MD_BASE_LANG_COM_TITLE}><{$smarty.const._MD_LEGACY_LANG_COM_TITLE}> "><{$object->getShow('com_title')}>
<{$smarty.const._MD_BASE_LANG_COM_TEXT}><{$smarty.const._MD_LEGACY_LANG_COM_TEXT}> "><{$object->getShow('com_text')}>
<{$smarty.const._AD_BASE_LANG_COM_SIG}><{$smarty.const._AD_LEGACY_LANG_COM_SIG}> "> <{xoops_input type=radio name=com_sig value=1 default=$object->get('com_sig') disabled=true}><{$smarty.const._YES}> <{xoops_input type=radio name=com_sig value=0 default=$object->get('com_sig') disabled=true}><{$smarty.const._NO}>
<{$smarty.const._AD_BASE_LANG_COM_STATUS}><{$smarty.const._AD_LEGACY_LANG_COM_STATUS}> "><{$object->mStatus->getShow('name')}>
<{$smarty.const._MD_BASE_LANG_COM_EXPARAMS}><{$smarty.const._MD_LEGACY_LANG_COM_EXPARAMS}> "><{$object->getShow('com_exparams')}>
<{$smarty.const._AD_BASE_LANG_CONTROL}><{$smarty.const._AD_LEGACY_LANG_CONTROL}> "> <{xoops_input type=checkbox name=dohtml value=1 default=$object->get('dohtml') disabled=true}> - <{$smarty.const._MD_BASE_LANG_DOHTML}>
+ <{$smarty.const._MD_LEGACY_LANG_DOHTML}>
<{xoops_input type=checkbox name=dosmiley value=1 default=$object->get('dosmiley') disabled=true}> - <{$smarty.const._MD_BASE_LANG_DOSMILEY}>
+ <{$smarty.const._MD_LEGACY_LANG_DOSMILEY}>
<{xoops_input type=checkbox name=doxcode value=1 default=$object->get('doxcode') disabled=true}> - <{$smarty.const._MD_BASE_LANG_DOXCODE}>
+ <{$smarty.const._MD_LEGACY_LANG_DOXCODE}>
<{xoops_input type=checkbox name=doimage value=1 default=$object->get('doimage') disabled=true}> - <{$smarty.const._AD_BASE_LANG_DOIMAGE}>
+ <{$smarty.const._AD_LEGACY_LANG_DOIMAGE}>
<{xoops_input type=checkbox name=dobr value=1 default=$object->get('dobr') disabled=true}> - <{$smarty.const._MD_BASE_LANG_DOBR}> + <{$smarty.const._MD_LEGACY_LANG_DOBR}>
-

<{$smarty.const._AD_BASE_LANG_RES_FOR_COMMENT}>

+

<{$smarty.const._AD_LEGACY_LANG_RES_FOR_COMMENT}>

- - - - - - - - + + + + + + + + <{foreach item=obj from=$children}> @@ -120,7 +120,7 @@ Index: xoops2jp/html/modules/legacy/admin/templates/image_list.html diff -u xoops2jp/html/modules/legacy/admin/templates/image_list.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/image_list.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/image_list.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/image_list.html Sun Oct 15 01:17:33 2006 @@ -1,37 +1,37 @@
- <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_IMAGE_MANAGE}> - »» <{$smarty.const._AD_BASE_LANG_IMAGE_LIST}> (<{$category->getShow('imgcat_name')}>) + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_IMAGE_MANAGE}> + »» <{$smarty.const._AD_LEGACY_LANG_IMAGE_LIST}> (<{$category->getShow('imgcat_name')}>)
-

<{$smarty.const._AD_BASE_LANG_IMAGE_LIST}> (<{$category->getShow('imgcat_name')}>)

+

<{$smarty.const._AD_LEGACY_LANG_IMAGE_LIST}> (<{$category->getShow('imgcat_name')}>)

<{$smarty.const._MD_BASE_LANG_COM_ID}><{$smarty.const._MD_BASE_LANG_COM_MODID}><{$smarty.const._MD_BASE_LANG_COM_TITLE}><{$smarty.const._AD_BASE_LANG_COM_CREATED}><{$smarty.const._AD_BASE_LANG_COM_MODIFIED}><{$smarty.const._AD_BASE_LANG_COM_UID}><{$smarty.const._MD_BASE_LANG_COM_IP}><{$smarty.const._AD_BASE_LANG_COM_STATUS}><{$smarty.const._MD_LEGACY_LANG_COM_ID}><{$smarty.const._MD_LEGACY_LANG_COM_MODID}><{$smarty.const._MD_LEGACY_LANG_COM_TITLE}><{$smarty.const._AD_LEGACY_LANG_COM_CREATED}><{$smarty.const._AD_LEGACY_LANG_COM_MODIFIED}><{$smarty.const._AD_LEGACY_LANG_COM_UID}><{$smarty.const._MD_LEGACY_LANG_COM_IP}><{$smarty.const._AD_LEGACY_LANG_COM_STATUS}>
<{$obj->getShow('com_ip')}> <{if $obj->get('com_status') == 2 }> - " alt="<{$smarty.const._AD_BASE_LANG_ACTIVE}>" title="<{$smarty.const._AD_BASE_LANG_ACTIVE}>" /> + " alt="<{$smarty.const._AD_LEGACY_LANG_ACTIVE}>" title="<{$smarty.const._AD_LEGACY_LANG_ACTIVE}>" /> <{/if}>
- - - - - - - + <{foreach item=obj from=$objects}> <{if $obj->get('image_display') == 1}> Index: xoops2jp/html/modules/legacy/admin/templates/customblock_delete.html diff -u xoops2jp/html/modules/legacy/admin/templates/customblock_delete.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/customblock_delete.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/customblock_delete.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/customblock_delete.html Sun Oct 15 01:17:33 2006 @@ -1,60 +1,60 @@
- <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_BLOCKLIST}> - »» <{$smarty.const._AD_BASE_LANG_CUSTOMBLOCK_DELETE}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_BLOCKLIST}> + »» <{$smarty.const._AD_LEGACY_LANG_CUSTOMBLOCK_DELETE}>
-

<{$smarty.const._AD_BASE_LANG_CUSTOMBLOCK_DELETE}>

+

<{$smarty.const._AD_LEGACY_LANG_CUSTOMBLOCK_DELETE}>

-
<{$smarty.const._AD_BASE_MESSAGE_CONFIRM_DELETE}>
+
<{$smarty.const._AD_LEGACY_MESSAGE_CONFIRM_DELETE}>
<{xoops_token form=$actionForm}> <{xoops_input type=hidden name=bid value=$actionForm->get('bid')}>
<{$smarty.const._AD_BASE_LANG_IMAGE_ID}>
+
<{$smarty.const._AD_LEGACY_LANG_IMAGE_ID}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMAGE_NAME}>
- <{$smarty.const._MD_BASE_LANG_IMAGE_NICENAME}> +
<{$smarty.const._AD_LEGACY_LANG_IMAGE_NAME}>
+ <{$smarty.const._MD_LEGACY_LANG_IMAGE_NICENAME}> " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._MD_BASE_LANG_IMAGE_MIMETYPE}>
+
<{$smarty.const._MD_LEGACY_LANG_IMAGE_MIMETYPE}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMAGE_CREATED}>
+
<{$smarty.const._AD_LEGACY_LANG_IMAGE_CREATED}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMAGE_DISPLAY}>
+
<{$smarty.const._AD_LEGACY_LANG_IMAGE_DISPLAY}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMAGE_WEIGHT}>
+
<{$smarty.const._AD_LEGACY_LANG_IMAGE_WEIGHT}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_CONTROL}><{$smarty.const._AD_LEGACY_LANG_CONTROL}>
- + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - Index: xoops2jp/html/modules/legacy/admin/templates/image_delete.html diff -u xoops2jp/html/modules/legacy/admin/templates/image_delete.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/image_delete.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/image_delete.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/image_delete.html Sun Oct 15 01:17:33 2006 @@ -1,13 +1,13 @@ -

<{$smarty.const._AD_BASE_LANG_IMAGE_DELETE}>

+

<{$smarty.const._AD_LEGACY_LANG_IMAGE_DELETE}>

-
<{$smarty.const._AD_BASE_MESSAGE_CONFIRM_DELETE}>
+
<{$smarty.const._AD_LEGACY_MESSAGE_CONFIRM_DELETE}>
<{xoops_token form=$actionForm}> @@ -15,7 +15,7 @@
<{$smarty.const._AD_BASE_LANG_CUSTOMBLOCK_DELETE}><{$smarty.const._AD_LEGACY_LANG_CUSTOMBLOCK_DELETE}>
<{$smarty.const._AD_BASE_LANG_BID}><{$smarty.const._AD_LEGACY_LANG_BID}> "><{$object->getShow('bid')}>
<{$smarty.const._AD_BASE_LANG_BLOCK_MOD}><{$smarty.const._AD_LEGACY_LANG_BLOCK_MOD}> "><{$object->getShow('mid')}>
<{$smarty.const._AD_BASE_LANG_FUNC_NUM}><{$smarty.const._AD_LEGACY_LANG_FUNC_NUM}> "><{$object->getShow('func_num')}>
<{$smarty.const._AD_BASE_LANG_OPTIONS}><{$smarty.const._AD_LEGACY_LANG_OPTIONS}> "><{$object->getShow('options')}>
<{$smarty.const._AD_BASE_LANG_MOD_NAME}><{$smarty.const._AD_LEGACY_LANG_MOD_NAME}> "><{$object->getShow('name')}>
<{$smarty.const._AD_BASE_LANG_TITLE}><{$smarty.const._AD_LEGACY_LANG_TITLE}> "><{$object->getShow('title')}>
<{$smarty.const._AD_BASE_LANG_CONTENT}><{$smarty.const._AD_LEGACY_LANG_CONTENT}> "><{$object->getShow('content')}>
<{$smarty.const._AD_BASE_LANG_SIDE}><{$smarty.const._AD_LEGACY_LANG_SIDE}> "> <{if $object->mColumn}><{$object->mColumn->getShow('name')}><{/if}>
<{$smarty.const._AD_BASE_LANG_WEIGHT}><{$smarty.const._AD_LEGACY_LANG_WEIGHT}> "><{$object->getShow('weight')}>
<{$smarty.const._AD_BASE_LANG_VISIBLE}><{$smarty.const._AD_LEGACY_LANG_VISIBLE}> "> <{if $object->getShow('visible') == 1}> <{$smarty.const._YES}> @@ -64,15 +64,15 @@
<{$smarty.const._AD_BASE_LANG_BLOCK_TYPE}><{$smarty.const._AD_LEGACY_LANG_BLOCK_TYPE}> "><{$object->getShow('block_type')}>
<{$smarty.const._AD_BASE_LANG_C_TYPE}><{$smarty.const._AD_LEGACY_LANG_C_TYPE}> "><{$object->getShow('c_type')}>
<{$smarty.const._AD_BASE_LANG_ISACTIVE}><{$smarty.const._AD_LEGACY_LANG_ISACTIVE}> "> "> <{if $object->getShow('isactive') == 1}> @@ -83,33 +83,33 @@
<{$smarty.const._AD_BASE_LANG_DIRNAME}><{$smarty.const._AD_LEGACY_LANG_DIRNAME}> "><{$object->getShow('dirname')}>
<{$smarty.const._AD_BASE_LANG_FUNC_FILE}><{$smarty.const._AD_LEGACY_LANG_FUNC_FILE}> "><{$object->getShow('func_file')}>
<{$smarty.const._AD_BASE_LANG_SHOW_FUNC}><{$smarty.const._AD_LEGACY_LANG_SHOW_FUNC}> "><{$object->getShow('show_func')}>
<{$smarty.const._AD_BASE_LANG_EDIT_FUNC}><{$smarty.const._AD_LEGACY_LANG_EDIT_FUNC}> "><{$object->getShow('edit_func')}>
<{$smarty.const._AD_BASE_LANG_TEMPLATE}><{$smarty.const._AD_LEGACY_LANG_TEMPLATE}> "><{$object->getShow('template')}>
<{$smarty.const._AD_BASE_LANG_BCACHETIME}><{$smarty.const._AD_LEGACY_LANG_BCACHETIME}> "> <{if $object->mCachetime}><{$object->mCachetime->getShow('label')}><{/if}>
<{$smarty.const._AD_BASE_LANG_LAST_MODIFIED}> + <{$smarty.const._AD_LEGACY_LANG_LAST_MODIFIED}> "><{$object->get('last_modified')|xoops_formattimestamp:l}>
@@ -28,35 +28,35 @@ - + - + - + - + - + - + - + - + From minahito @ users.sourceforge.jp Sun Oct 15 01:18:21 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:18:21 +0900 Subject: [xoops-cvslog 5236] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014161821.47D5B2AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/imagecategory_edit.html diff -u xoops2jp/html/modules/legacy/admin/templates/imagecategory_edit.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/imagecategory_edit.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/imagecategory_edit.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/imagecategory_edit.html Sun Oct 15 01:18:21 2006 @@ -1,18 +1,18 @@
- <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_IMAGE_MANAGE}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_IMAGE_MANAGE}> <{if $actionForm->get('imgcat_id')}> - »» <{$smarty.const._AD_BASE_LANG_IMAGECATEGORY_EDIT}> + »» <{$smarty.const._AD_LEGACY_LANG_IMAGECATEGORY_EDIT}> <{else}> - »» <{$smarty.const._AD_BASE_LANG_IMAGECATEGORY_NEW}> + »» <{$smarty.const._AD_LEGACY_LANG_IMAGECATEGORY_NEW}> <{/if}>
<{if $actionForm->get('imgcat_id')}> -

<{$smarty.const._AD_BASE_LANG_IMAGECATEGORY_EDIT}>

+

<{$smarty.const._AD_LEGACY_LANG_IMAGECATEGORY_EDIT}>

<{else}> -

<{$smarty.const._AD_BASE_LANG_IMAGECATEGORY_NEW}>

-
<{$smarty.const._AD_BASE_TIPS_IMGCAT_STORETYPE}>
+

<{$smarty.const._AD_LEGACY_LANG_IMAGECATEGORY_NEW}>

+
<{$smarty.const._AD_LEGACY_TIPS_IMGCAT_STORETYPE}>
<{/if}> <{if $actionForm->hasError()}> @@ -32,19 +32,19 @@ - + - + - + - + - + - + - + - + <{if $actionForm->get('imgcat_id') == 0}> - + <{foreach from=$config key=config_key item=config_val name=config}> "> - +
- <{$smarty.const._AD_BASE_LANG_IMAGE_DELETE}> + <{$smarty.const._AD_LEGACY_LANG_IMAGE_DELETE}>
<{$smarty.const._AD_BASE_LANG_IMAGE_ID}><{$smarty.const._AD_LEGACY_LANG_IMAGE_ID}> "><{$object->getShow('image_id')}>
<{$smarty.const._AD_BASE_LANG_IMAGE_NAME}><{$smarty.const._AD_LEGACY_LANG_IMAGE_NAME}> "><{$object->getShow('image_name')}>
<{$smarty.const._MD_BASE_LANG_IMAGE_NICENAME}><{$smarty.const._MD_LEGACY_LANG_IMAGE_NICENAME}> "><{$object->getShow('image_nicename')}>
<{$smarty.const._MD_BASE_LANG_IMAGE_MIMETYPE}><{$smarty.const._MD_LEGACY_LANG_IMAGE_MIMETYPE}> "><{$object->getShow('image_mimetype')}>
<{$smarty.const._AD_BASE_LANG_IMAGE_CREATED}><{$smarty.const._AD_LEGACY_LANG_IMAGE_CREATED}> "><{$object->get('image_created')|xoops_formattimestamp:l}>
<{$smarty.const._AD_BASE_LANG_IMAGE_DISPLAY}><{$smarty.const._AD_LEGACY_LANG_IMAGE_DISPLAY}> "><{$object->getShow('image_display')}>
<{$smarty.const._AD_BASE_LANG_IMAGE_WEIGHT}><{$smarty.const._AD_LEGACY_LANG_IMAGE_WEIGHT}> "><{$object->getShow('image_weight')}>
<{$smarty.const._AD_BASE_LANG_IMGCAT_ID}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_ID}> "><{$object->getShow('imgcat_id')}>
<{if $actionForm->get('imgcat_id')}> - <{$smarty.const._AD_BASE_LANG_IMAGECATEGORY_EDIT}> + <{$smarty.const._AD_LEGACY_LANG_IMAGECATEGORY_EDIT}> <{else}> - <{$smarty.const._AD_BASE_LANG_IMAGECATEGORY_NEW}> + <{$smarty.const._AD_LEGACY_LANG_IMAGECATEGORY_NEW}> <{/if}>
<{$smarty.const._AD_BASE_LANG_IMGCAT_NAME}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_NAME}> "> <{xoops_input type=text name=imgcat_name value=$actionForm->get('imgcat_name') size=40 maxlength=100}>
<{$smarty.const._AD_BASE_LANG_IMGCAT_READ_GROUPS}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_READ_GROUPS}> ">
<{$smarty.const._AD_BASE_LANG_IMGCAT_UPLOAD_GROUPS}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_UPLOAD_GROUPS}> ">
<{$smarty.const._AD_BASE_LANG_IMGCAT_MAXSIZE}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_MAXSIZE}> "> <{xoops_input type=text name=imgcat_maxsize value=$actionForm->get('imgcat_maxsize')}>
<{$smarty.const._AD_BASE_LANG_IMGCAT_MAXWIDTH}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_MAXWIDTH}> "> <{xoops_input type=text name=imgcat_maxwidth value=$actionForm->get('imgcat_maxwidth')}>
<{$smarty.const._AD_BASE_LANG_IMGCAT_MAXHEIGHT}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_MAXHEIGHT}> "> <{xoops_input type=text name=imgcat_maxheight value=$actionForm->get('imgcat_maxheight')}>
<{$smarty.const._AD_BASE_LANG_IMGCAT_DISPLAY}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_DISPLAY}> "> <{xoops_input type=checkbox name=imgcat_display value=1 default=$actionForm->get('imgcat_display')}>
<{$smarty.const._AD_BASE_LANG_IMGCAT_WEIGHT}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_WEIGHT}> "> <{xoops_input type=text name=imgcat_weight value=$actionForm->get('imgcat_weight')}>
<{$smarty.const._AD_BASE_LANG_IMGCAT_STORETYPE}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_STORETYPE}> "> <{xoops_input type=radio name=imgcat_storetype value="file" default=$actionForm->get('imgcat_storetype')}>FILE
<{xoops_input type=radio name=imgcat_storetype value="db" default=$actionForm->get('imgcat_storetype')}>DB Index: xoops2jp/html/modules/legacy/admin/templates/install_list.html diff -u xoops2jp/html/modules/legacy/admin/templates/install_list.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/install_list.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/install_list.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/install_list.html Sun Oct 15 01:18:21 2006 @@ -1,18 +1,18 @@ -

<{$smarty.const._AD_BASE_LANG_MODINSTALL}>

+

<{$smarty.const._AD_LEGACY_LANG_MODINSTALL}>

-
<{$smarty.const._AD_BASE_LANG_MODINSTALL_LIST_ADVICE}>
+
<{$smarty.const._AD_LEGACY_LANG_MODINSTALL_LIST_ADVICE}>
- - - + + + <{foreach item=module from=$moduleObjects}> @@ -22,8 +22,8 @@ <{/foreach}> Index: xoops2jp/html/modules/legacy/admin/templates/imagecategory_list.html diff -u xoops2jp/html/modules/legacy/admin/templates/imagecategory_list.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/imagecategory_list.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/imagecategory_list.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/imagecategory_list.html Sun Oct 15 01:18:21 2006 @@ -1,43 +1,43 @@
- <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_IMAGE_MANAGE}> - »» <{$smarty.const._AD_BASE_LANG_IMAGECATEGORY_LIST}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_IMAGE_MANAGE}> + »» <{$smarty.const._AD_LEGACY_LANG_IMAGECATEGORY_LIST}>
-

<{$smarty.const._AD_BASE_LANG_IMAGECATEGORY_LIST}>

+

<{$smarty.const._AD_LEGACY_LANG_IMAGECATEGORY_LIST}>

<{$smarty.const._AD_BASE_LANG_MOD_NAME}><{$smarty.const._AD_BASE_LANG_VERSION}><{$smarty.const._AD_BASE_LANG_CONTROL}><{$smarty.const._AD_LEGACY_LANG_MOD_NAME}><{$smarty.const._AD_LEGACY_LANG_VERSION}><{$smarty.const._AD_LEGACY_LANG_CONTROL}>
<{$module->getRenderedVersion()}> - " alt="<{$smarty.const._AD_BASE_LANG_INSTALL}>" title="<{$smarty.const._AD_BASE_LANG_INSTALL}>" /> - " alt="<{$smarty.const._AD_BASE_LANG_INFORMATION}>" title="<{$smarty.const._AD_BASE_LANG_INFORMATION}>" /> + " alt="<{$smarty.const._AD_LEGACY_LANG_INSTALL}>" title="<{$smarty.const._AD_LEGACY_LANG_INSTALL}>" /> + " alt="<{$smarty.const._AD_LEGACY_LANG_INFORMATION}>" title="<{$smarty.const._AD_LEGACY_LANG_INFORMATION}>" />
- - - - - - - - - - + + <{foreach item=obj from=$objects}> <{if $obj->getShow('imgcat_display') == 1}> @@ -63,8 +63,8 @@ Index: xoops2jp/html/modules/legacy/admin/templates/install_wizard_licence.html diff -u xoops2jp/html/modules/legacy/admin/templates/install_wizard_licence.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/install_wizard_licence.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/install_wizard_licence.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/install_wizard_licence.html Sun Oct 15 01:18:21 2006 @@ -1,8 +1,8 @@

<{$licence|escape}>

@@ -30,12 +30,12 @@
<{$smarty.const._AD_BASE_LANG_IMGCAT_ID}>
+
<{$smarty.const._AD_LEGACY_LANG_IMGCAT_ID}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMGCAT_NAME}>
+
<{$smarty.const._AD_LEGACY_LANG_IMGCAT_NAME}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMGCAT_MAXSIZE}>
+
<{$smarty.const._AD_LEGACY_LANG_IMGCAT_MAXSIZE}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMGCAT_MAXWIDTH}>
+
<{$smarty.const._AD_LEGACY_LANG_IMGCAT_MAXWIDTH}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMGCAT_MAXHEIGHT}>
+
<{$smarty.const._AD_LEGACY_LANG_IMGCAT_MAXHEIGHT}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMGCAT_DISPLAY}>
+
<{$smarty.const._AD_LEGACY_LANG_IMGCAT_DISPLAY}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMGCAT_WEIGHT}>
+
<{$smarty.const._AD_LEGACY_LANG_IMGCAT_WEIGHT}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMGCAT_STORETYPE}>
+
<{$smarty.const._AD_LEGACY_LANG_IMGCAT_STORETYPE}>
" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_IMAGE_COUNT}><{$smarty.const._AD_BASE_LANG_CONTROL}><{$smarty.const._AD_LEGACY_LANG_IMAGE_COUNT}><{$smarty.const._AD_LEGACY_LANG_CONTROL}>
<{$obj->getShow('imgcat_storetype')}> <{$obj->getImageCount()|escape}> - " alt="<{$smarty.const._AD_BASE_LANG_LIST}>" title="<{$smarty.const._AD_BASE_LANG_LIST}>" /> - " alt="<{$smarty.const._AD_BASE_LANG_IMAGE_NEW}>" title="<{$smarty.const._AD_BASE_LANG_IMAGE_NEW}>" /> + " alt="<{$smarty.const._AD_LEGACY_LANG_LIST}>" title="<{$smarty.const._AD_LEGACY_LANG_LIST}>" /> + " alt="<{$smarty.const._AD_LEGACY_LANG_IMAGE_NEW}>" title="<{$smarty.const._AD_LEGACY_LANG_IMAGE_NEW}>" /> " alt="<{$smarty.const._EDIT}>" title="<{$smarty.const._EDIT}>" /> " alt="<{$smarty.const._DELETE}>" title="<{$smarty.const._DELETE}>" />
- <{$smarty.const._AD_BASE_LANG_AGREE}> - <{$smarty.const._AD_BASE_LANG_NO_AGREE}> + <{$smarty.const._AD_LEGACY_LANG_AGREE}> + <{$smarty.const._AD_LEGACY_LANG_NO_AGREE}>
- +
Index: xoops2jp/html/modules/legacy/admin/templates/imagecategory_delete.html diff -u xoops2jp/html/modules/legacy/admin/templates/imagecategory_delete.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/imagecategory_delete.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/imagecategory_delete.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/imagecategory_delete.html Sun Oct 15 01:18:21 2006 @@ -1,54 +1,54 @@
- <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_IMAGE_MANAGE}> - »» <{$smarty.const._AD_BASE_LANG_IMAGECATEGORY_DELETE}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_IMAGE_MANAGE}> + »» <{$smarty.const._AD_LEGACY_LANG_IMAGECATEGORY_DELETE}>
-

<{$smarty.const._AD_BASE_LANG_IMAGECATEGORY_DELETE}>

+

<{$smarty.const._AD_LEGACY_LANG_IMAGECATEGORY_DELETE}>

-
<{$smarty.const._AD_BASE_MESSAGE_CONFIRM_DELETE}>
+
<{$smarty.const._AD_LEGACY_MESSAGE_CONFIRM_DELETE}>
<{xoops_token form=$actionForm}> <{xoops_input type=hidden name=imgcat_id value=$actionForm->get('imgcat_id')}> - + - + - + - + - + - + - + - + - + - + Index: xoops2jp/html/modules/legacy/admin/templates/install_wizard.html diff -u xoops2jp/html/modules/legacy/admin/templates/install_wizard.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/install_wizard.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/install_wizard.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/install_wizard.html Sun Oct 15 01:18:21 2006 @@ -1,14 +1,14 @@ -

<{$smarty.const._AD_BASE_LANG_MODINSTALL_CONF}>

+

<{$smarty.const._AD_LEGACY_LANG_MODINSTALL_CONF}>

    -
  • <{$smarty.const._AD_BASE_LANG_MODINSTALL_ADVICE|replace:"_%s_":$module->getShow('name')}> +
  • <{$smarty.const._AD_LEGACY_LANG_MODINSTALL_ADVICE|replace:"_%s_":$module->getShow('name')}>
@@ -16,7 +16,7 @@
<{$smarty.const._AD_BASE_LANG_IMAGECATEGORY_DELETE}><{$smarty.const._AD_LEGACY_LANG_IMAGECATEGORY_DELETE}>
<{$smarty.const._AD_BASE_LANG_IMGCAT_ID}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_ID}> "><{$object->getShow('imgcat_id')}>
<{$smarty.const._AD_BASE_LANG_IMGCAT_NAME}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_NAME}> "><{$object->getShow('imgcat_name')}>
<{$smarty.const._AD_BASE_LANG_IMGCAT_MAXSIZE}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_MAXSIZE}> "><{$object->get('imgcat_maxsize')|number_format}>
<{$smarty.const._AD_BASE_LANG_IMGCAT_MAXWIDTH}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_MAXWIDTH}> "><{$object->get('imgcat_maxwidth')|number_format}>
<{$smarty.const._AD_BASE_LANG_IMGCAT_MAXHEIGHT}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_MAXHEIGHT}> "><{$object->get('imgcat_maxheight')|number_format}>
<{$smarty.const._AD_BASE_LANG_IMGCAT_DISPLAY}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_DISPLAY}> "><{$object->getShow('imgcat_display')}>
<{$smarty.const._AD_BASE_LANG_IMGCAT_WEIGHT}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_WEIGHT}> "><{$object->getShow('imgcat_weight')}>
<{$smarty.const._AD_BASE_LANG_IMGCAT_TYPE}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_TYPE}> "><{$object->getShow('imgcat_type')}>
<{$smarty.const._AD_BASE_LANG_IMGCAT_STORETYPE}><{$smarty.const._AD_LEGACY_LANG_IMGCAT_STORETYPE}> "><{$object->getShow('imgcat_storetype')}>
- +
<{$smarty.const._AD_BASE_LANG_MODINSTALL_CONF}><{$smarty.const._AD_LEGACY_LANG_MODINSTALL_CONF}>
@@ -33,7 +33,7 @@
- +
From minahito @ users.sourceforge.jp Sun Oct 15 01:19:19 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:19:19 +0900 Subject: [xoops-cvslog 5237] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014161919.0560B2AC289@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/legacy_admin_actionsearch_form.html diff -u xoops2jp/html/modules/legacy/admin/templates/legacy_admin_actionsearch_form.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/legacy_admin_actionsearch_form.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/legacy_admin_actionsearch_form.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/legacy_admin_actionsearch_form.html Sun Oct 15 01:19:18 2006 @@ -1,11 +1,11 @@ -

<{$smarty.const._MI_BASE_MENU_ACTIONSEARCH}>

+

<{$smarty.const._MI_LEGACY_MENU_ACTIONSEARCH}>

-
<{$smarty.const._AD_BASE_LANG_ACTIONSEARCH_INFO}>
+
<{$smarty.const._AD_LEGACY_LANG_ACTIONSEARCH_INFO}>
<{xoops_input type=hidden name=action value=ActSearch}> Index: xoops2jp/html/modules/legacy/admin/templates/legacy_admin_actionsearch_success.html diff -u xoops2jp/html/modules/legacy/admin/templates/legacy_admin_actionsearch_success.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/legacy_admin_actionsearch_success.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/legacy_admin_actionsearch_success.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/legacy_admin_actionsearch_success.html Sun Oct 15 01:19:18 2006 @@ -1,6 +1,6 @@ <{include file="legacy_admin_actionsearch_form.html"}> -

<{$smarty.const._AD_BASE_LANG_RESULT}>

+

<{$smarty.const._AD_LEGACY_LANG_RESULT}>

    <{foreach item=record from=$records}> Index: xoops2jp/html/modules/legacy/admin/templates/legacy_admin_actionsearch_error.html diff -u xoops2jp/html/modules/legacy/admin/templates/legacy_admin_actionsearch_error.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/legacy_admin_actionsearch_error.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/legacy_admin_actionsearch_error.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/legacy_admin_actionsearch_error.html Sun Oct 15 01:19:18 2006 @@ -1,10 +1,10 @@ <{include file="legacy_admin_actionsearch_form.html"}> -

    <{$smarty.const._AD_BASE_LANG_RESULT}>

    +

    <{$smarty.const._AD_LEGACY_LANG_RESULT}>

      -
    • <{$smarty.const._AD_BASE_ERROR_ACTION_SEARCH_NORESULT}>
    • -
    • <{$smarty.const._AD_BASE_ERROR_ACTION_SEARCH_TRY_AGAIN}>
    • +
    • <{$smarty.const._AD_LEGACY_ERROR_ACTION_SEARCH_NORESULT}>
    • +
    • <{$smarty.const._AD_LEGACY_ERROR_ACTION_SEARCH_TRY_AGAIN}>
    Index: xoops2jp/html/modules/legacy/admin/templates/module_information.html diff -u xoops2jp/html/modules/legacy/admin/templates/module_information.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/module_information.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/module_information.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/module_information.html Sun Oct 15 01:19:18 2006 @@ -1,33 +1,33 @@
    - <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_MODULELIST}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_MODULELIST}> <{if !$installed }> - »» <{$smarty.const._AD_BASE_LANG_MODINSTALL}> + »» <{$smarty.const._AD_LEGACY_LANG_MODINSTALL}> <{/if}> - »» <{$smarty.const._AD_BASE_LANG_INFORMATION}> + »» <{$smarty.const._AD_LEGACY_LANG_INFORMATION}>
    -

    <{$smarty.const._AD_BASE_LANG_INFORMATION}>

    +

    <{$smarty.const._AD_LEGACY_LANG_INFORMATION}>

    -

    <{$smarty.const._AD_BASE_LANG_MOD_BASIC_INFO}>

    +

    <{$smarty.const._AD_LEGACY_LANG_MOD_BASIC_INFO}>

    - + - + - + - + - + - + - +
    <{$smarty.const._AD_BASE_LANG_MOD_BASIC_INFO}><{$smarty.const._AD_LEGACY_LANG_MOD_BASIC_INFO}>
    <{$module->getShow('name')}>
    <{$module->modinfo.name|escape}>
    <{$smarty.const._AD_BASE_LANG_MOD_NAME}><{$smarty.const._AD_LEGACY_LANG_MOD_NAME}> <{$module->getShow('name')}>
    <{$smarty.const._AD_BASE_LANG_MOD_DIR_NAME}><{$smarty.const._AD_LEGACY_LANG_MOD_DIR_NAME}> <{$module->getShow('dirname')}>
    <{$smarty.const._AD_BASE_LANG_VERSION}><{$smarty.const._AD_LEGACY_LANG_VERSION}> <{math equation="v/100" v=$module->get('version') format="%.2f"}> <{if $module->get('version')/100 != $module->modinfo.version }> » <{math equation=$module->modinfo.version format="%.2f"}> @@ -35,7 +35,7 @@
    <{$smarty.const._AD_BASE_LANG_MOD_MID}><{$smarty.const._AD_LEGACY_LANG_MOD_MID}> <{if $module->get('mid')}> <{$module->getShow('mid')}> @@ -45,7 +45,7 @@
    <{$smarty.const._AD_BASE_LANG_LASTUPDATE}><{$smarty.const._AD_LEGACY_LANG_LASTUPDATE}> <{if $module->get('last_update')}> <{$module->get('last_update')|xoops_formattimestamp:l}> @@ -55,59 +55,59 @@
    <{$smarty.const._AD_BASE_LANG_MOD_DESC}><{$smarty.const._AD_LEGACY_LANG_MOD_DESC}> <{$module->modinfo.description}>

    -

    <{$smarty.const._AD_BASE_LANG_MOD_LICENSE_INFO}>

    +

    <{$smarty.const._AD_LEGACY_LANG_MOD_LICENSE_INFO}>

    - + - + - + - +
    <{$smarty.const._AD_BASE_LANG_MOD_LICENSE_INFO}><{$smarty.const._AD_LEGACY_LANG_MOD_LICENSE_INFO}>
    <{$smarty.const._AD_BASE_LANG_MODULE_LICENSE}><{$smarty.const._AD_LEGACY_LANG_MODULE_LICENSE}> <{$module->modinfo.license}>
    <{$smarty.const._AD_BASE_LANG_MOD_AUTHOR}><{$smarty.const._AD_LEGACY_LANG_MOD_AUTHOR}> <{$module->modinfo.author}>
    <{$smarty.const._AD_BASE_LANG_MOD_CREDITS}><{$smarty.const._AD_LEGACY_LANG_MOD_CREDITS}> <{$module->modinfo.credits}>

    -

    <{$smarty.const._AD_BASE_LANG_SQL_INFO}>

    +

    <{$smarty.const._AD_LEGACY_LANG_SQL_INFO}>

    <{if $module->modinfo.tables}> - + - - + + - - + + - +
    <{$smarty.const._AD_BASE_LANG_SQL_INFO}><{$smarty.const._AD_LEGACY_LANG_SQL_INFO}>
    <{$smarty.const._AD_BASE_LANG_SQL_HAS_MAIN}><{$smarty.const._AD_BASE_LANG_ACTIVE}><{$smarty.const._AD_LEGACY_LANG_SQL_HAS_MAIN}><{$smarty.const._AD_LEGACY_LANG_ACTIVE}>
    <{$smarty.const._AD_BASE_LANG_SQL_ENGINE}><{$smarty.const._AD_BASE_LANG_SQL_MYSQL}><{$smarty.const._AD_LEGACY_LANG_SQL_ENGINE}><{$smarty.const._AD_LEGACY_LANG_SQL_MYSQL}>
    <{$smarty.const._AD_BASE_LANG_SQL_FILE_NAME}><{$smarty.const._AD_LEGACY_LANG_SQL_FILE_NAME}> <{$module->modinfo.sqlfile.mysql}>

    - - - + + + <{foreach from=$module->modinfo.tables item=table key=table_key}> @@ -118,29 +118,29 @@ <{/foreach}>
    <{$smarty.const._AD_BASE_LANG_TABLE_NUM}><{$smarty.const._AD_BASE_LANG_TABLE_NAME}><{$smarty.const._AD_BASE_LANG_TABLE_PROPERTIES}><{$smarty.const._AD_LEGACY_LANG_TABLE_NUM}><{$smarty.const._AD_LEGACY_LANG_TABLE_NAME}><{$smarty.const._AD_LEGACY_LANG_TABLE_PROPERTIES}>
    <{else}> -
    <{$smarty.const._AD_BASE_LANG_NO_SQL}>
    +
    <{$smarty.const._AD_LEGACY_LANG_NO_SQL}>
    <{/if}>
    -

    <{$smarty.const._AD_BASE_LANG_MAINMENU_INFO}>

    +

    <{$smarty.const._AD_LEGACY_LANG_MAINMENU_INFO}>

    <{if $module->get('hasmain')}> - + - - + +
    <{$smarty.const._AD_BASE_LANG_MAINMENU_INFO}><{$smarty.const._AD_LEGACY_LANG_MAINMENU_INFO}>
    <{$smarty.const._AD_BASE_LANG_MAINMENU_HAS_MAIN}><{$smarty.const._AD_BASE_LANG_ACTIVE}><{$smarty.const._AD_LEGACY_LANG_MAINMENU_HAS_MAIN}><{$smarty.const._AD_LEGACY_LANG_ACTIVE}>

    - - + + <{foreach from=$module->modinfo.sub item=sub }> "> @@ -149,33 +149,33 @@ <{foreachelse}> - + <{/foreach}>
    <{$smarty.const._AD_BASE_LANG_SUBMENU_NAME}><{$smarty.const._AD_BASE_LANG_SUBMENU_URL}><{$smarty.const._AD_LEGACY_LANG_SUBMENU_NAME}><{$smarty.const._AD_LEGACY_LANG_SUBMENU_URL}>
    <{$smarty.const._AD_BASE_LANG_NO_SUBMENU}><{$smarty.const._AD_LEGACY_LANG_NO_SUBMENU}>
    <{else}> -
    <{$smarty.const._AD_BASE_LANG_NO_MAINMENU}>
    +
    <{$smarty.const._AD_LEGACY_LANG_NO_MAINMENU}>
    <{/if}>
    -

    <{$smarty.const._AD_BASE_LANG_ADMIN_MENU}>

    +

    <{$smarty.const._AD_LEGACY_LANG_ADMIN_MENU}>

    <{if $module->get('hasadmin')}> - + - - + + - + - + @@ -187,9 +187,9 @@
    <{$smarty.const._AD_BASE_LANG_ADMIN_MENU}><{$smarty.const._AD_LEGACY_LANG_ADMIN_MENU}>
    <{$smarty.const._AD_BASE_LANG_ADMINMENU_HAS_MAIN}><{$smarty.const._AD_BASE_LANG_ACTIVE}><{$smarty.const._AD_LEGACY_LANG_ADMINMENU_HAS_MAIN}><{$smarty.const._AD_LEGACY_LANG_ACTIVE}>
    <{$smarty.const._AD_BASE_LANG_ADMINMENU_INDEX}><{$smarty.const._AD_LEGACY_LANG_ADMINMENU_INDEX}> <{$module->modinfo.adminindex|escape}>
    <{$smarty.const._AD_BASE_LANG_ADMINMENU_MENU}><{$smarty.const._AD_LEGACY_LANG_ADMINMENU_MENU}> <{$module->modinfo.adminmenu|escape}>
    - - - + + + <{foreach from=$module->adminmenu item=admin key=admin_key}> @@ -201,32 +201,32 @@
    <{$smarty.const._AD_BASE_LANG_TEMPLATE_KEY}><{$smarty.const._AD_BASE_LANG_ADMINMENU_NAME}><{$smarty.const._AD_BASE_LANG_ADMINMENU_URL}><{$smarty.const._AD_LEGACY_LANG_TEMPLATE_KEY}><{$smarty.const._AD_LEGACY_LANG_ADMINMENU_NAME}><{$smarty.const._AD_LEGACY_LANG_ADMINMENU_URL}>
    <{/if}> <{else}> -
    <{$smarty.const._AD_BASE_LANG_NO_ADMINMENU}>
    +
    <{$smarty.const._AD_LEGACY_LANG_NO_ADMINMENU}>
    <{/if}>
    -

    <{$smarty.const._AD_BASE_LANG_TEMPLATE_INFO}>

    +

    <{$smarty.const._AD_LEGACY_LANG_TEMPLATE_INFO}>

    <{if $module->modinfo.templates}> - + - - + + - - + +
    <{$smarty.const._AD_BASE_LANG_TEMPLATE_INFO}><{$smarty.const._AD_LEGACY_LANG_TEMPLATE_INFO}>
    <{$smarty.const._AD_BASE_LANG_TEMPLATE_HAS_MAIN}><{$smarty.const._AD_BASE_LANG_ACTIVE}><{$smarty.const._AD_LEGACY_LANG_TEMPLATE_HAS_MAIN}><{$smarty.const._AD_LEGACY_LANG_ACTIVE}>
    <{$smarty.const._AD_BASE_LANG_TEMPLATE_ENGINE}><{$smarty.const._AD_BASE_LANG_SMARTY}><{$smarty.const._AD_LEGACY_LANG_TEMPLATE_ENGINE}><{$smarty.const._AD_LEGACY_LANG_SMARTY}>

    - - - + + + <{foreach from=$module->modinfo.templates item=template key=template_key}> @@ -237,18 +237,18 @@ <{/foreach}>
    <{$smarty.const._AD_BASE_LANG_TEMPLATE_KEY}><{$smarty.const._AD_BASE_LANG_TEMPLATE_FILE}><{$smarty.const._AD_BASE_LANG_TEMPLATE_DESC}><{$smarty.const._AD_LEGACY_LANG_TEMPLATE_KEY}><{$smarty.const._AD_LEGACY_LANG_TEMPLATE_FILE}><{$smarty.const._AD_LEGACY_LANG_TEMPLATE_DESC}>
    <{else}> -
    <{$smarty.const._AD_BASE_LANG_NO_TEMPLATE}>
    +
    <{$smarty.const._AD_LEGACY_LANG_NO_TEMPLATE}>
    <{/if}>
    -

    <{$smarty.const._AD_BASE_LANG_BLOCKS_INFO}>

    +

    <{$smarty.const._AD_LEGACY_LANG_BLOCKS_INFO}>

    <{foreach from=$module->modinfo.blocks item=block key=block_num }> - - + + <{foreach from=$block key=block_key item=block_val name=block }> @@ -263,18 +263,18 @@
    <{$smarty.const._AD_BASE_LANG_BLOCK_KEY}> (<{$block_num|escape}>)<{$smarty.const._AD_BASE_LANG_BLOCK_VAL}><{$smarty.const._AD_LEGACY_LANG_BLOCK_KEY}> (<{$block_num|escape}>)<{$smarty.const._AD_LEGACY_LANG_BLOCK_VAL}>

    <{foreachelse}> -
    <{$smarty.const._AD_BASE_LANG_NO_BLOCK}>
    +
    <{$smarty.const._AD_LEGACY_LANG_NO_BLOCK}>
    <{/foreach}>
    -

    <{$smarty.const._AD_BASE_LANG_CONFIG_INFO}>

    +

    <{$smarty.const._AD_LEGACY_LANG_CONFIG_INFO}>

    <{foreach from=$module->modinfo.config item=config key=conf_num}> - - + + <{foreach from=$config key=config_key item=config_val name=config}> "> @@ -295,31 +295,31 @@
    <{$smarty.const._AD_BASE_LANG_CONFIG_KEY}> (<{$conf_num}>)<{$smarty.const._AD_BASE_LANG_CONFIG_VAL}><{$smarty.const._AD_LEGACY_LANG_CONFIG_KEY}> (<{$conf_num}>)<{$smarty.const._AD_LEGACY_LANG_CONFIG_VAL}>

    <{foreachelse}> -
    <{$smarty.const._AD_BASE_LANG_NO_CONFIG}>
    +
    <{$smarty.const._AD_LEGACY_LANG_NO_CONFIG}>
    <{/foreach}> <{*
    -

    <{$smarty.const._AD_BASE_LANG_FEATURE_SVC_INFO}>

    +

    <{$smarty.const._AD_LEGACY_LANG_FEATURE_SVC_INFO}>

    <{if $module->get('hassearch')}> - - + + <{/if}> <{if $module->get('hascomments')}> - - + + <{/if}> <{if $module->get('hasnotification')}> - - + + <{/if}>
    <{$smarty.const._AD_BASE_LANG_SEARCH_SVC}><{$smarty.const._AD_BASE_LANG_ACTIVE}><{$smarty.const._AD_LEGACY_LANG_SEARCH_SVC}><{$smarty.const._AD_LEGACY_LANG_ACTIVE}>
    <{$smarty.const._AD_BASE_LANG_COMMENT_SVC}><{$smarty.const._AD_BASE_LANG_ACTIVE}><{$smarty.const._AD_LEGACY_LANG_COMMENT_SVC}><{$smarty.const._AD_LEGACY_LANG_ACTIVE}>
    <{$smarty.const._AD_BASE_LANG_NOTIF_SVC}><{$smarty.const._AD_BASE_LANG_ACTIVE}><{$smarty.const._AD_LEGACY_LANG_NOTIF_SVC}><{$smarty.const._AD_LEGACY_LANG_ACTIVE}>
    From minahito @ users.sourceforge.jp Sun Oct 15 01:20:38 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:20:38 +0900 Subject: [xoops-cvslog 5238] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014162038.4449E2AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/module_install_success.html diff -u xoops2jp/html/modules/legacy/admin/templates/module_install_success.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/module_install_success.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/module_install_success.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/module_install_success.html Sun Oct 15 01:20:38 2006 @@ -1,13 +1,13 @@ -

    <{$smarty.const._AD_BASE_LANG_MODINSTALL_SUCCESS}>

    +

    <{$smarty.const._AD_LEGACY_LANG_MODINSTALL_SUCCESS}>

    -

    <{$smarty.const._AD_BASE_LANG_MODINSTALL_LOG}>

    +

    <{$smarty.const._AD_LEGACY_LANG_MODINSTALL_LOG}>

      <{foreach item=msg from=$log}> @@ -21,4 +21,4 @@ <{/foreach}>
    - + Index: xoops2jp/html/modules/legacy/admin/templates/module_install.html diff -u xoops2jp/html/modules/legacy/admin/templates/module_install.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/module_install.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/module_install.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/module_install.html Sun Oct 15 01:20:38 2006 @@ -1,13 +1,13 @@ -

    <{$smarty.const._AD_BASE_LANG_MODINSTALL_CONF}>

    +

    <{$smarty.const._AD_LEGACY_LANG_MODINSTALL_CONF}>

    -
    <{$smarty.const._AD_BASE_LANG_MODINSTALL_ADVICE|replace:"_%s_":$module->getShow('name','e')}>
    +
    <{$smarty.const._AD_LEGACY_LANG_MODINSTALL_ADVICE|replace:"_%s_":$module->getShow('name','e')}>
    <{if $actionForm->hasError()}>
    @@ -24,22 +24,22 @@ - + - + - + - + - + - + - + From minahito @ users.sourceforge.jp Sun Oct 15 01:20:58 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:20:58 +0900 Subject: [xoops-cvslog 5239] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014162058.D753B2AC289@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/module_list_confirm.html diff -u xoops2jp/html/modules/legacy/admin/templates/module_list_confirm.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/module_list_confirm.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/module_list_confirm.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/module_list_confirm.html Sun Oct 15 01:20:58 2006 @@ -1,20 +1,20 @@
    - <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_MODULELIST}> - »» <{$smarty.const._AD_BASE_LANG_MODUPDATE_CONF}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_MODULELIST}> + »» <{$smarty.const._AD_LEGACY_LANG_MODUPDATE_CONF}>
    -

    <{$smarty.const._AD_BASE_LANG_MODUPDATE_CONF}>

    +

    <{$smarty.const._AD_LEGACY_LANG_MODUPDATE_CONF}>

    <{xoops_token form=$actionForm}> <{xoops_input type=hidden name=confirm value=1}>
    <{$smarty.const._AD_BASE_LANG_MODINSTALL_CONF}><{$smarty.const._AD_LEGACY_LANG_MODINSTALL_CONF}>
    <{$module->modinfo.name|escape}>
    <{$module->modinfo.name|escape}>
    <{$smarty.const._AD_BASE_LANG_MOD_NAME}><{$smarty.const._AD_LEGACY_LANG_MOD_NAME}> <{$module->getShow('name')}>
    <{$smarty.const._AD_BASE_LANG_MOD_DIR_NAME}><{$smarty.const._AD_LEGACY_LANG_MOD_DIR_NAME}> <{$module->getShow('dirname')}>
    <{$smarty.const._AD_BASE_LANG_VERSION}><{$smarty.const._AD_LEGACY_LANG_VERSION}> <{math equation="v/100" v=$module->get('version') format="%.2f"}> <{if $module->get('version') != $module->modinfo.version * 100 }> » <{math equation=$module->modinfo.version format="%.2f"}> @@ -47,7 +47,7 @@
    <{$smarty.const._AD_BASE_LANG_MOD_MID}><{$smarty.const._AD_LEGACY_LANG_MOD_MID}> <{if $module->get('mid')}> <{$module->getShow('mid')}> @@ -57,7 +57,7 @@
    <{$smarty.const._AD_BASE_LANG_LASTUPDATE}><{$smarty.const._AD_LEGACY_LANG_LASTUPDATE}> <{if $module->get('last_update')}> <{$module->get('last_update')|xoops_formattimestamp:l}> @@ -67,12 +67,12 @@
    <{$smarty.const._AD_BASE_LANG_MOD_DESC}><{$smarty.const._AD_LEGACY_LANG_MOD_DESC}> <{$module->modinfo.description|escape}>
    - +
    - - - - + + + + <{foreach item=mid from=$mids}> @@ -36,19 +36,19 @@ From minahito @ users.sourceforge.jp Sun Oct 15 01:21:48 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:21:48 +0900 Subject: [xoops-cvslog 5240] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014162148.7C7232AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/module_list.html diff -u xoops2jp/html/modules/legacy/admin/templates/module_list.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/module_list.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/module_list.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/module_list.html Sun Oct 15 01:21:48 2006 @@ -1,12 +1,12 @@ -

    <{$smarty.const._MI_BASE_MENU_MODULELIST}>

    +

    <{$smarty.const._MI_LEGACY_MENU_MODULELIST}>

    <{if $actionForm->hasError()}> @@ -23,25 +23,25 @@ <{xoops_token form=$actionForm}>
    <{$smarty.const._AD_BASE_LANG_MOD_MID}><{$smarty.const._AD_BASE_LANG_MOD_NAME}><{$smarty.const._AD_BASE_LANG_WEIGHT}><{$smarty.const._AD_BASE_LANG_ISACTIVE}><{$smarty.const._AD_LEGACY_LANG_MOD_MID}><{$smarty.const._AD_LEGACY_LANG_MOD_NAME}><{$smarty.const._AD_LEGACY_LANG_WEIGHT}><{$smarty.const._AD_LEGACY_LANG_ISACTIVE}>
    <{if $actionForm->get('isactive',$mid)|intval == $moduleObjects[$mid]->get('isactive')}> - <{$smarty.const._AD_BASE_LANG_NO_CHANGE}> + <{$smarty.const._AD_LEGACY_LANG_NO_CHANGE}> <{else}> (<{if $moduleObjects[$mid]->get('isactive') == 1 }> - <{$smarty.const._AD_BASE_LANG_ISACTIVE}> + <{$smarty.const._AD_LEGACY_LANG_ISACTIVE}> <{else}> - <{$smarty.const._AD_BASE_LANG_DEACTIVATE}> + <{$smarty.const._AD_LEGACY_LANG_DEACTIVATE}> <{/if}>) » <{if $actionForm->get('isactive',$mid) == 1}> - <{$smarty.const._AD_BASE_LANG_ISACTIVE}> + <{$smarty.const._AD_LEGACY_LANG_ISACTIVE}> <{else}> - <{$smarty.const._AD_BASE_LANG_DEACTIVATE}> + <{$smarty.const._AD_LEGACY_LANG_DEACTIVATE}> <{/if}> <{/if}> @@ -63,7 +63,7 @@ <{/foreach}>
    - +
    - - - - - - - + <{foreach item=module from=$moduleObjects}> <{if $module->get('hasmain') && $module->getShow('weight','e') != 0 }> @@ -65,17 +65,17 @@ <{/foreach}>
    <{$smarty.const._AD_BASE_LANG_MOD_MID}>
    +
    <{$smarty.const._AD_LEGACY_LANG_MOD_MID}>
    " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_MOD_NAME}>
    +
    <{$smarty.const._AD_LEGACY_LANG_MOD_NAME}>
    " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_VERSION}>
    +
    <{$smarty.const._AD_LEGACY_LANG_VERSION}>
    " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_LASTUPDATE}>
    +
    <{$smarty.const._AD_LEGACY_LANG_LASTUPDATE}>
    " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_WEIGHT}>
    +
    <{$smarty.const._AD_LEGACY_LANG_WEIGHT}>
    " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_ISACTIVE}>
    +
    <{$smarty.const._AD_LEGACY_LANG_ISACTIVE}>
    " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_CONTROL}><{$smarty.const._AD_LEGACY_LANG_CONTROL}>
    get('isactive')}>checked="checked"<{/if}> /> - " alt="<{$smarty.const._AD_BASE_LANG_UPDATE}>" title="<{$smarty.const._AD_BASE_LANG_UPDATE}>" /> + " alt="<{$smarty.const._AD_LEGACY_LANG_UPDATE}>" title="<{$smarty.const._AD_LEGACY_LANG_UPDATE}>" /> <{if $module->get('isactive') == 0 }> - " alt="<{$smarty.const._AD_BASE_LANG_UNINSTALL}>" title="<{$smarty.const._AD_BASE_LANG_UNINSTALL}>" /> + " alt="<{$smarty.const._AD_LEGACY_LANG_UNINSTALL}>" title="<{$smarty.const._AD_LEGACY_LANG_UNINSTALL}>" /> <{/if}> - " alt="<{$smarty.const._AD_BASE_LANG_INFORMATION}>" title="<{$smarty.const._AD_BASE_LANG_INFORMATION}>" /> + " alt="<{$smarty.const._AD_LEGACY_LANG_INFORMATION}>" title="<{$smarty.const._AD_LEGACY_LANG_INFORMATION}>" />
    - +
    From minahito @ users.sourceforge.jp Sun Oct 15 01:22:21 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:22:21 +0900 Subject: [xoops-cvslog 5241] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014162221.740982AC28A@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/module_uninstall_success.html diff -u xoops2jp/html/modules/legacy/admin/templates/module_uninstall_success.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/module_uninstall_success.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/module_uninstall_success.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/module_uninstall_success.html Sun Oct 15 01:22:21 2006 @@ -1,12 +1,12 @@
    - <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_MODULELIST}> - »» <{$smarty.const._AD_BASE_LANG_MODUNINSTALL_SUCCESS}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_MODULELIST}> + »» <{$smarty.const._AD_LEGACY_LANG_MODUNINSTALL_SUCCESS}>
    -

    <{$smarty.const._AD_BASE_LANG_MODUNINSTALL_SUCCESS}>

    +

    <{$smarty.const._AD_LEGACY_LANG_MODUNINSTALL_SUCCESS}>

    -

    <{$smarty.const._AD_BASE_LANG_MODUNINSTALL_LOG}>

    +

    <{$smarty.const._AD_LEGACY_LANG_MODUNINSTALL_LOG}>

      <{foreach item=msg from=$log}> <{if $msg.type == "error"}> @@ -19,4 +19,4 @@ <{/foreach}>
    -

    » <{$smarty.const._AD_BASE_LANG_MODLIST}>

    +

    » <{$smarty.const._AD_LEGACY_LANG_MODLIST}>

    From minahito @ users.sourceforge.jp Sun Oct 15 01:22:49 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:22:49 +0900 Subject: [xoops-cvslog 5242] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014162249.6F7DC2AC0DF@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html diff -u xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html Sun Oct 15 01:22:49 2006 @@ -1,13 +1,13 @@
    - <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_MODULELIST}> - »» <{$smarty.const._AD_BASE_LANG_MODUNINSTALL_CONF}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_MODULELIST}> + »» <{$smarty.const._AD_LEGACY_LANG_MODUNINSTALL_CONF}>
    -

    <{$smarty.const._AD_BASE_LANG_MODUNINSTALL_CONF}>

    +

    <{$smarty.const._AD_LEGACY_LANG_MODUNINSTALL_CONF}>

      -
    • <{$smarty.const._AD_BASE_LANG_MODUNINSTALL_ADVICE|replace:"_%s_":$module->getShow('name')}> +
    • <{$smarty.const._AD_LEGACY_LANG_MODUNINSTALL_ADVICE|replace:"_%s_":$module->getShow('name')}>
    <{if $actionForm->hasError()}> @@ -26,22 +26,22 @@ - + - + - + - + - + - + - + From minahito @ users.sourceforge.jp Sun Oct 15 01:23:13 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:23:13 +0900 Subject: [xoops-cvslog 5243] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014162313.414652AC28A@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/module_update_success.html diff -u xoops2jp/html/modules/legacy/admin/templates/module_update_success.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/module_update_success.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/module_update_success.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/module_update_success.html Sun Oct 15 01:23:13 2006 @@ -1,12 +1,12 @@
    - <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_MODULELIST}> - »» <{$smarty.const._AD_BASE_LANG_MODUPDATE_SUCCESS}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_MODULELIST}> + »» <{$smarty.const._AD_LEGACY_LANG_MODUPDATE_SUCCESS}>
    -

    <{$smarty.const._AD_BASE_LANG_MODUPDATE_SUCCESS}>

    +

    <{$smarty.const._AD_LEGACY_LANG_MODUPDATE_SUCCESS}>

    -

    <{$smarty.const._AD_BASE_LANG_MODUPDATE_LOG}>

    +

    <{$smarty.const._AD_LEGACY_LANG_MODUPDATE_LOG}>

      <{foreach item=msg from=$log}> <{if $msg.type=="error"}> @@ -19,4 +19,4 @@ <{/foreach}>
    -

    » <{$smarty.const._AD_BASE_LANG_MODLIST}>

    +

    » <{$smarty.const._AD_LEGACY_LANG_MODLIST}>

    From minahito @ users.sourceforge.jp Sun Oct 15 01:23:35 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:23:35 +0900 Subject: [xoops-cvslog 5244] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014162335.7A64F2AC037@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/module_update.html diff -u xoops2jp/html/modules/legacy/admin/templates/module_update.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/module_update.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/module_update.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/module_update.html Sun Oct 15 01:23:35 2006 @@ -1,12 +1,12 @@
    - <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_MODULELIST}> - »» <{$smarty.const._AD_BASE_LANG_MODUPDATE_CONF}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_MODULELIST}> + »» <{$smarty.const._AD_LEGACY_LANG_MODUPDATE_CONF}>
    -

    <{$smarty.const._AD_BASE_LANG_MODUPDATE_CONF}>

    +

    <{$smarty.const._AD_LEGACY_LANG_MODUPDATE_CONF}>

    -
    <{$smarty.const._AD_BASE_LANG_MODUPDATE_ADVICE|replace:"_%s_":$module->getShow('name')}>
    +
    <{$smarty.const._AD_LEGACY_LANG_MODUPDATE_ADVICE|replace:"_%s_":$module->getShow('name')}>
    <{if $actionForm->hasError()}>
    @@ -23,22 +23,22 @@ <{xoops_input type=hidden name=dirname value=$module->get('dirname')}>
    <{$smarty.const._AD_BASE_LANG_MODUNINSTALL_CONF}><{$smarty.const._AD_LEGACY_LANG_MODUNINSTALL_CONF}>
    <{$module->modinfo.name|escape}>
    <{$smarty.const._AD_BASE_LANG_MOD_NAME}><{$smarty.const._AD_LEGACY_LANG_MOD_NAME}> <{$module->getShow('name')}>
    <{$smarty.const._AD_BASE_LANG_MOD_DIR_NAME}><{$smarty.const._AD_LEGACY_LANG_MOD_DIR_NAME}> <{$module->getShow('dirname')}>
    <{$smarty.const._AD_BASE_LANG_VERSION}><{$smarty.const._AD_LEGACY_LANG_VERSION}> <{math equation="v/100" v=$module->get('version') format="%.2f"}> <{if $module->get('version') != $module->modinfo.version * 100 }> @@ -50,7 +50,7 @@
    <{$smarty.const._AD_BASE_LANG_MOD_MID}><{$smarty.const._AD_LEGACY_LANG_MOD_MID}> <{if $module->get('mid')}> <{$module->getShow('mid')}> @@ -60,7 +60,7 @@
    <{$smarty.const._AD_BASE_LANG_LASTUPDATE}><{$smarty.const._AD_LEGACY_LANG_LASTUPDATE}> <{if $module->get('last_update')}> <{$module->get('last_update')|xoops_formattimestamp:l}> @@ -70,17 +70,17 @@
    <{$smarty.const._AD_BASE_LANG_MOD_DESC}><{$smarty.const._AD_LEGACY_LANG_MOD_DESC}> <{$module->modinfo.description|escape}>
    - <{$smarty.const._AD_BASE_LANG_FORCE_MODE}> + <{$smarty.const._AD_LEGACY_LANG_FORCE_MODE}>
    - +
    - + - + - + - + - + - + - + From minahito @ users.sourceforge.jp Sun Oct 15 01:24:13 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:24:13 +0900 Subject: [xoops-cvslog 5245] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014162413.C421E2AC037@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/preference_edit.html diff -u xoops2jp/html/modules/legacy/admin/templates/preference_edit.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/preference_edit.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/preference_edit.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/preference_edit.html Sun Oct 15 01:24:13 2006 @@ -2,14 +2,14 @@ <{if $module != null}> <{$module->getVar('name')}> <{if $category != null}> - »» <{$smarty.const._MI_BASE_MENU_PREFERENCE}> + »» <{$smarty.const._MI_LEGACY_MENU_PREFERENCE}> »» <{$category->getName()|escape}> <{else}> - »» <{$smarty.const._MI_BASE_MENU_PREFERENCE}> + »» <{$smarty.const._MI_LEGACY_MENU_PREFERENCE}> <{/if}> <{else}> - <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_PREFERENCE}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_PREFERENCE}> »» <{$category->getName()|escape}> <{/if}> @@ -18,7 +18,7 @@ <{if $category != null}> <{$category->getName()|escape}> <{else}> - <{$smarty.const._MI_BASE_MENU_PREFERENCE}> + <{$smarty.const._MI_LEGACY_MENU_PREFERENCE}> <{/if}> @@ -38,7 +38,7 @@
    <{$smarty.const._AD_BASE_LANG_MODUPDATE_CONF}><{$smarty.const._AD_LEGACY_LANG_MODUPDATE_CONF}>
    <{$module->getShow('name')}>
    <{$module->modinfo.name|escape}>
    <{$smarty.const._AD_BASE_LANG_MOD_NAME}><{$smarty.const._AD_LEGACY_LANG_MOD_NAME}> <{$module->getShow('name')}>
    <{$smarty.const._AD_BASE_LANG_MOD_DIR_NAME}><{$smarty.const._AD_LEGACY_LANG_MOD_DIR_NAME}> <{$module->getShow('dirname')}>
    <{$smarty.const._AD_BASE_LANG_VERSION}><{$smarty.const._AD_LEGACY_LANG_VERSION}> <{math equation="v/100" v=$module->get('version') format="%.2f"}> <{if $module->get('version') != $module->modinfo.version * 100 }> » <{math equation=$module->modinfo.version format="%.2f"}> @@ -46,7 +46,7 @@
    <{$smarty.const._AD_BASE_LANG_MOD_MID}><{$smarty.const._AD_LEGACY_LANG_MOD_MID}> <{if $module->get('mid')}> <{$module->getShow('mid')}> @@ -56,7 +56,7 @@
    <{$smarty.const._AD_BASE_LANG_LASTUPDATE}><{$smarty.const._AD_LEGACY_LANG_LASTUPDATE}> <{if $module->get('last_update')}> <{$module->get('last_update')|xoops_formattimestamp:l}> @@ -66,12 +66,12 @@
    <{$smarty.const._AD_BASE_LANG_MOD_DESC}><{$smarty.const._AD_LEGACY_LANG_MOD_DESC}> <{$module->modinfo.description|escape}>
    - +
    <{foreach from=$block key=block_key item=block_val name=block }> - + <{if $block_key == "name" }> <{else}> @@ -263,7 +263,7 @@
    - <{$smarty.const._MI_BASE_MENU_PREFERENCE}> + <{$smarty.const._MI_LEGACY_MENU_PREFERENCE}> <{if $category != null}> - <{$category->getName()|escape}> <{/if}> @@ -119,7 +119,7 @@ <{elseif $config->get('conf_formtype') == 'startpage'}> From minahito @ users.sourceforge.jp Sun Oct 15 01:25:20 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:25:20 +0900 Subject: [xoops-cvslog 5246] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061014162520.9D27F2AC037@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/smiles_list.html diff -u xoops2jp/html/modules/legacy/admin/templates/smiles_list.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/smiles_list.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/smiles_list.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/smiles_list.html Sun Oct 15 01:25:20 2006 @@ -1,30 +1,30 @@ -

    <{$smarty.const._MI_BASE_MENU_SMILES_MANAGE}>

    +

    <{$smarty.const._MI_LEGACY_MENU_SMILES_MANAGE}>

    - - - - - + <{foreach item=obj from=$objects}> <{if $obj->get('display') == 1 }> Index: xoops2jp/html/modules/legacy/admin/templates/smiles_edit.html diff -u xoops2jp/html/modules/legacy/admin/templates/smiles_edit.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/smiles_edit.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/smiles_edit.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/smiles_edit.html Sun Oct 15 01:25:20 2006 @@ -1,17 +1,17 @@
    - <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_SMILES_MANAGE}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_SMILES_MANAGE}> <{if $actionForm->get('id')}> - »» <{$smarty.const._AD_BASE_LANG_SMILES_EDIT}> + »» <{$smarty.const._AD_LEGACY_LANG_SMILES_EDIT}> <{else}> - »» <{$smarty.const._AD_BASE_LANG_SMILES_NEW}> + »» <{$smarty.const._AD_LEGACY_LANG_SMILES_NEW}> <{/if}>
    <{if $actionForm->get('id')}> -

    <{$smarty.const._AD_BASE_LANG_SMILES_EDIT}>

    +

    <{$smarty.const._AD_LEGACY_LANG_SMILES_EDIT}>

    <{else}> -

    <{$smarty.const._AD_BASE_LANG_SMILES_NEW}>

    +

    <{$smarty.const._AD_LEGACY_LANG_SMILES_NEW}>

    <{/if}> <{if $actionForm->hasError()}> @@ -31,26 +31,26 @@ <{if $actionForm->get('id')}> - + <{/if}> - + - + - + - + <{foreach from=$module->modinfo.templates item=template key=template_key}> - + <{/foreach}>
    <{$smarty.const._AD_BASE_LANG_ID}>
    +
    <{$smarty.const._AD_LEGACY_LANG_ID}>
    " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._MD_BASE_LANG_CODE}>
    +
    <{$smarty.const._MD_LEGACY_LANG_CODE}>
    " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_SMILE_URL}>
    -
    <{$smarty.const._MD_BASE_LANG_EMOTION}>
    +
    <{$smarty.const._AD_LEGACY_LANG_SMILE_URL}>
    +
    <{$smarty.const._MD_LEGACY_LANG_EMOTION}>
    " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_DISPLAY}>
    +
    <{$smarty.const._AD_LEGACY_LANG_DISPLAY}>
    " alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_CONTROL}><{$smarty.const._AD_LEGACY_LANG_CONTROL}>
    <{if $actionForm->get('id')}> - <{$smarty.const._AD_BASE_LANG_SMILES_EDIT}> + <{$smarty.const._AD_LEGACY_LANG_SMILES_EDIT}> <{else}> - <{$smarty.const._AD_BASE_LANG_SMILES_NEW}> + <{$smarty.const._AD_LEGACY_LANG_SMILES_NEW}> <{/if}>
    <{$smarty.const._AD_BASE_LANG_ID}><{$smarty.const._AD_LEGACY_LANG_ID}> "><{$actionForm->get('id')}>
    <{$smarty.const._MD_BASE_LANG_CODE}><{$smarty.const._MD_LEGACY_LANG_CODE}> "> <{xoops_input type=text name=code value=$actionForm->get('code') size=15 maxlength=50}>
    <{$smarty.const._AD_BASE_LANG_SMILE_URL}><{$smarty.const._AD_LEGACY_LANG_SMILE_URL}> "> <{if $actionForm->get('id')}> <{$object->getShow('emotion')}> @@ -60,13 +60,13 @@
    <{$smarty.const._MD_BASE_LANG_EMOTION}><{$smarty.const._MD_LEGACY_LANG_EMOTION}> "> <{xoops_input type=text name=emotion value=$actionForm->get('emotion') size=30 maxlength=75}>
    <{$smarty.const._AD_BASE_LANG_DISPLAY}><{$smarty.const._AD_LEGACY_LANG_DISPLAY}> "> <{xoops_input type=radio name=display value=1 default=$actionForm->get('display')}><{$smarty.const._YES}> <{xoops_input type=radio name=display value=0 default=$actionForm->get('display')}><{$smarty.const._NO}> Index: xoops2jp/html/modules/legacy/admin/templates/smiles_delete.html diff -u xoops2jp/html/modules/legacy/admin/templates/smiles_delete.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/smiles_delete.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/smiles_delete.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/smiles_delete.html Sun Oct 15 01:25:20 2006 @@ -1,41 +1,41 @@
    - <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_SMILES_MANAGE}> - »» <{$smarty.const._AD_BASE_LANG_SMILES_DELETE}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_SMILES_MANAGE}> + »» <{$smarty.const._AD_LEGACY_LANG_SMILES_DELETE}>
    -

    <{$smarty.const._AD_BASE_LANG_SMILES_DELETE}>

    +

    <{$smarty.const._AD_LEGACY_LANG_SMILES_DELETE}>

    -
    <{$smarty.const._AD_BASE_MESSAGE_CONFIRM_DELETE}>
    +
    <{$smarty.const._AD_LEGACY_MESSAGE_CONFIRM_DELETE}>
    <{xoops_token form=$actionForm}> <{xoops_input type=hidden name=id value=$actionForm->get('id')}> - + - + - + - + - + - + <{foreach from=$module->adminmenu item=admin key=admin_key}> - + @@ -201,7 +201,7 @@
    <{$smarty.const._AD_BASE_LANG_SMILES_DELETE}><{$smarty.const._AD_LEGACY_LANG_SMILES_DELETE}>
    <{$smarty.const._AD_BASE_LANG_ID}><{$smarty.const._AD_LEGACY_LANG_ID}> "><{$object->getShow('id')}>
    <{$smarty.const._MD_BASE_LANG_CODE}><{$smarty.const._MD_LEGACY_LANG_CODE}> "><{$object->getShow('code')}>
    <{$smarty.const._AD_BASE_LANG_SMILE_URL}><{$smarty.const._AD_LEGACY_LANG_SMILE_URL}> "> <{$object->getShow('emotion')}> ( <{$object->getShow('smile_url')}> )
    <{$smarty.const._MD_BASE_LANG_EMOTION}><{$smarty.const._MD_LEGACY_LANG_EMOTION}> "><{$object->getShow('emotion')}>
    <{$smarty.const._AD_BASE_LANG_DISPLAY}><{$smarty.const._AD_LEGACY_LANG_DISPLAY}> "> <{if $object->get('display') == 1 }> <{$smarty.const._YES}> Index: xoops2jp/html/modules/legacy/admin/templates/theme_list.html diff -u xoops2jp/html/modules/legacy/admin/templates/theme_list.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/theme_list.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/theme_list.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/theme_list.html Sun Oct 15 01:25:20 2006 @@ -1,11 +1,11 @@ -

    <{$smarty.const._AD_BASE_LANG_THEME_ADMIN}>

    +

    <{$smarty.const._AD_LEGACY_LANG_THEME_ADMIN}>

    -
    <{$smarty.const._AD_BASE_TIPS_THEME_ADMIN}>
    +
    <{$smarty.const._AD_LEGACY_TIPS_THEME_ADMIN}>
    <{if $actionForm->hasError()}>
    @@ -21,9 +21,9 @@ <{xoops_token form=$actionForm}> - - - + + + <{foreach item=theme from=$themes}> <{if $currentThemeName == $theme->get('dirname')}> @@ -40,12 +40,12 @@ @@ -56,7 +56,7 @@ <{if $currentThemeName != $theme->get('dirname')}> <{else}> - " alt="<{$smarty.const._AD_BASE_LANG_SELECTED}>" title="<{$smarty.const._AD_BASE_LANG_SELECTED}>" /> + " alt="<{$smarty.const._AD_LEGACY_LANG_SELECTED}>" title="<{$smarty.const._AD_LEGACY_LANG_SELECTED}>" /> <{/if}> Index: xoops2jp/html/modules/legacy/admin/templates/preference_list.html diff -u xoops2jp/html/modules/legacy/admin/templates/preference_list.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/preference_list.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/preference_list.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/preference_list.html Sun Oct 15 01:25:20 2006 @@ -1,15 +1,15 @@
    - <{$smarty.const._MI_BASE_NAME}> - »» <{$smarty.const._MI_BASE_MENU_PREFERENCE}> + <{$smarty.const._MI_LEGACY_NAME}> + »» <{$smarty.const._MI_LEGACY_MENU_PREFERENCE}>
    -

    <{$smarty.const._MI_BASE_MENU_PREFERENCE}>

    +

    <{$smarty.const._MI_LEGACY_MENU_PREFERENCE}>

    <{$smarty.const._AD_BASE_LANG_THEME}><{$smarty.const._AD_BASE_LANG_PACKAGE}><{$smarty.const._AD_BASE_LANG_CONTROL}><{$smarty.const._AD_LEGACY_LANG_THEME}><{$smarty.const._AD_LEGACY_LANG_PACKAGE}><{$smarty.const._AD_LEGACY_LANG_CONTROL}>

    <{$theme->getShow('description') != null}>

      -
    • <{$smarty.const._AD_BASE_LANG_VERSION}> : <{$theme->getShow('version')}>
    • -
    • <{$smarty.const._AD_BASE_LANG_RENDER}> : <{$theme->getShow('render_system')}>
    • -
    • <{$smarty.const._AD_BASE_LANG_FORMAT}> : <{$theme->getShow('format')}>
    • -
    • <{$smarty.const._AD_BASE_LANG_AUTHOR}> : <{$theme->getShow('author')}>
    • +
    • <{$smarty.const._AD_LEGACY_LANG_VERSION}> : <{$theme->getShow('version')}>
    • +
    • <{$smarty.const._AD_LEGACY_LANG_RENDER}> : <{$theme->getShow('render_system')}>
    • +
    • <{$smarty.const._AD_LEGACY_LANG_FORMAT}> : <{$theme->getShow('format')}>
    • +
    • <{$smarty.const._AD_LEGACY_LANG_AUTHOR}> : <{$theme->getShow('author')}>
    • <{if $theme->get('url') != null}> -
    • <{$smarty.const._AD_BASE_LANG_GET_THE_LATEST_VERSION}>
    • +
    • <{$smarty.const._AD_LEGACY_LANG_GET_THE_LATEST_VERSION}>
    • <{/if}>
    - - - + + + <{foreach item=obj from=$objects}> From minahito @ users.sourceforge.jp Sun Oct 15 01:25:42 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:25:42 +0900 Subject: [xoops-cvslog 5247] CVS update: xoops2jp/html/modules/legacy/admin/templates/blocks Message-ID: <20061014162542.F150D2AC037@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/blocks/legacy_admin_block_sidemenu.html diff -u xoops2jp/html/modules/legacy/admin/templates/blocks/legacy_admin_block_sidemenu.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/blocks/legacy_admin_block_sidemenu.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/blocks/legacy_admin_block_sidemenu.html:1.1.2.1 Sat Oct 14 23:55:20 2006 +++ xoops2jp/html/modules/legacy/admin/templates/blocks/legacy_admin_block_sidemenu.html Sun Oct 15 01:25:42 2006 @@ -15,7 +15,7 @@ <{/if}> <{/foreach}> <{else}> -
  • <{$smarty.const._AD_BASE_LANG_NO_SETTING}>
  • +
  • <{$smarty.const._AD_LEGACY_LANG_NO_SETTING}>
  • <{/if}> Index: xoops2jp/html/modules/legacy/admin/templates/blocks/legacy_admin_block_actionsearch.html diff -u xoops2jp/html/modules/legacy/admin/templates/blocks/legacy_admin_block_actionsearch.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/blocks/legacy_admin_block_actionsearch.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/blocks/legacy_admin_block_actionsearch.html:1.1.2.1 Sat Oct 14 23:55:20 2006 +++ xoops2jp/html/modules/legacy/admin/templates/blocks/legacy_admin_block_actionsearch.html Sun Oct 15 01:25:42 2006 @@ -1,4 +1,4 @@ - + From minahito @ users.sourceforge.jp Sun Oct 15 01:26:01 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:26:01 +0900 Subject: [xoops-cvslog 5248] CVS update: xoops2jp/html/modules/legacy/admin/theme Message-ID: <20061014162601.276582AC037@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/theme/admin_theme.html diff -u xoops2jp/html/modules/legacy/admin/theme/admin_theme.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/theme/admin_theme.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/theme/admin_theme.html:1.1.2.1 Sat Oct 14 23:55:27 2006 +++ xoops2jp/html/modules/legacy/admin/theme/admin_theme.html Sun Oct 15 01:26:01 2006 @@ -39,7 +39,7 @@
    <{$smarty.const._AD_BASE_LANG_CONFCAT_ID}><{$smarty.const._AD_BASE_LANG_CONFCAT_NAME}><{$smarty.const._AD_BASE_LANG_CONTROL}><{$smarty.const._AD_LEGACY_LANG_CONFCAT_ID}><{$smarty.const._AD_LEGACY_LANG_CONFCAT_NAME}><{$smarty.const._AD_LEGACY_LANG_CONTROL}>
    <{else}> -
    <{$smarty.const._AD_LEGACY_LANG_NO_MAINMENU}>
    +
    <{$smarty.const._AD_LEGACY_LANG_NO_MAINMENU}>
    <{/if}> @@ -193,7 +193,7 @@
    <{$admin_key|escape}><{$admin_key|escape}> <{$admin.title|escape}> <{$admin.link|escape}>
    <{/if}> <{else}> -
    <{$smarty.const._AD_LEGACY_LANG_NO_ADMINMENU}>
    +
    <{$smarty.const._AD_LEGACY_LANG_NO_ADMINMENU}>
    <{/if}> @@ -230,14 +230,14 @@
    <{$template_key}><{$template_key}> <{$template.file|escape}> <{$template.description|escape}>
    <{else}> -
    <{$smarty.const._AD_LEGACY_LANG_NO_TEMPLATE}>
    +
    <{$smarty.const._AD_LEGACY_LANG_NO_TEMPLATE}>
    <{/if}> @@ -252,7 +252,7 @@
    <{$block_key|escape}><{$block_key|escape}><{$block_val|escape}>

    <{foreachelse}> -
    <{$smarty.const._AD_LEGACY_LANG_NO_BLOCK}>
    +
    <{$smarty.const._AD_LEGACY_LANG_NO_BLOCK}>
    <{/foreach}> @@ -278,7 +278,7 @@
<{$config_key|escape}><{$config_key|escape}> <{if $config_key == "name" }> <{$config_val|escape}> @@ -295,7 +295,7 @@

<{foreachelse}> -
<{$smarty.const._AD_LEGACY_LANG_NO_CONFIG}>
+
<{$smarty.const._AD_LEGACY_LANG_NO_CONFIG}>
<{/foreach}> <{* Index: xoops2jp/html/modules/legacy/admin/templates/customblock_edit.html diff -u xoops2jp/html/modules/legacy/admin/templates/customblock_edit.html:1.1.2.2 xoops2jp/html/modules/legacy/admin/templates/customblock_edit.html:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/templates/customblock_edit.html:1.1.2.2 Sun Oct 15 01:17:33 2006 +++ xoops2jp/html/modules/legacy/admin/templates/customblock_edit.html Sun Oct 15 01:54:59 2006 @@ -68,7 +68,7 @@
<{$smarty.const._AD_LEGACY_LANG_WEIGHT}> "> - <{xoops_input type=text name=weight value=$actionForm->get('weight') size=5 class=base_list_number}> + <{xoops_input type=text name=weight value=$actionForm->get('weight') size=5 class=legacy_list_number}>
base_list_image" colspan="2"> + legacy_list_image" colspan="2"> <{if $object->mImageCategory->get('imgcat_storetype') == 'file'}> <{$object->getShow('image_nicename')}> <{else}> Index: xoops2jp/html/modules/legacy/admin/templates/install_wizard_error.html diff -u xoops2jp/html/modules/legacy/admin/templates/install_wizard_error.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/install_wizard_error.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/install_wizard_error.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/install_wizard_error.html Sun Oct 15 01:54:59 2006 @@ -3,11 +3,11 @@
    <{foreach item=msg from=$log}> <{if $msg.type=="error"}> -
  • <{$msg.message|escape}>
  • +
  • <{$msg.message|escape}>
  • <{elseif $msg.type=="warning"}> -
  • <{$msg.message|escape}>
  • +
  • <{$msg.message|escape}>
  • <{else}> -
  • <{$msg.message|escape}>
  • +
  • <{$msg.message|escape}>
  • <{/if}> <{/foreach}>
Index: xoops2jp/html/modules/legacy/admin/templates/blockinstall_edit.html diff -u xoops2jp/html/modules/legacy/admin/templates/blockinstall_edit.html:1.1.2.2 xoops2jp/html/modules/legacy/admin/templates/blockinstall_edit.html:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/templates/blockinstall_edit.html:1.1.2.2 Sun Oct 15 01:15:07 2006 +++ xoops2jp/html/modules/legacy/admin/templates/blockinstall_edit.html Sun Oct 15 01:54:59 2006 @@ -40,7 +40,7 @@
<{$smarty.const._AD_LEGACY_LANG_WEIGHT}> "> - <{xoops_input type=text name=weight value=$actionForm->get('weight') size=5 class=base_list_number}> + <{xoops_input type=text name=weight value=$actionForm->get('weight') size=5 class=legacy_list_number}>
<{$smarty.const._AD_LEGACY_LANG_MODUNINSTALL_CONF}>
+ -
<{$module->modinfo.name|escape}>
+
<{$module->modinfo.name|escape}>
<{$smarty.const._AD_LEGACY_LANG_MOD_NAME}> <{$module->getShow('name')}> <{math equation="v/100" v=$module->get('version') format="%.2f"}> <{if $module->get('version') != $module->modinfo.version * 100 }> - » <{math equation=$module->modinfo.version format="%.2f"}> + » <{math equation=$module->modinfo.version format="%.2f"}> <{/if}>
base_list_image" colspan="2"> + legacy_list_image" colspan="2"> <{if $object->mImageCategory->get('imgcat_storetype') == 'file'}> <{$object->getShow('image_nicename')}> <{else}> Index: xoops2jp/html/modules/legacy/admin/templates/module_install_success.html diff -u xoops2jp/html/modules/legacy/admin/templates/module_install_success.html:1.1.2.2 xoops2jp/html/modules/legacy/admin/templates/module_install_success.html:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/templates/module_install_success.html:1.1.2.2 Sun Oct 15 01:20:38 2006 +++ xoops2jp/html/modules/legacy/admin/templates/module_install_success.html Sun Oct 15 01:54:59 2006 @@ -12,13 +12,13 @@
    <{foreach item=msg from=$log}> <{if $msg.type=="error"}> -
  • <{$msg.message|escape}>
  • +
  • <{$msg.message|escape}>
  • <{elseif $msg.type=="warning"}> -
  • <{$msg.message|escape}>
  • +
  • <{$msg.message|escape}>
  • <{else}> -
  • <{$msg.message|escape}>
  • +
  • <{$msg.message|escape}>
  • <{/if}> <{/foreach}>
- + Index: xoops2jp/html/modules/legacy/admin/templates/module_update_success.html diff -u xoops2jp/html/modules/legacy/admin/templates/module_update_success.html:1.1.2.2 xoops2jp/html/modules/legacy/admin/templates/module_update_success.html:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/templates/module_update_success.html:1.1.2.2 Sun Oct 15 01:23:13 2006 +++ xoops2jp/html/modules/legacy/admin/templates/module_update_success.html Sun Oct 15 01:54:59 2006 @@ -10,11 +10,11 @@
    <{foreach item=msg from=$log}> <{if $msg.type=="error"}> -
  • <{$msg.message|escape}>
  • +
  • <{$msg.message|escape}>
  • <{elseif $msg.type=="warning"}> -
  • <{$msg.message|escape}>
  • +
  • <{$msg.message|escape}>
  • <{else}> -
  • <{$msg.message|escape}>
  • +
  • <{$msg.message|escape}>
  • <{/if}> <{/foreach}>
From tom_g3x @ users.sourceforge.jp Sun Oct 15 01:54:59 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Sun, 15 Oct 2006 01:54:59 +0900 Subject: [xoops-cvslog 5307] CVS update: xoops2jp/html/modules/legacy/admin/templates/stylesheets Message-ID: <20061014165459.CEE862AC28C@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/stylesheets/module.css diff -u xoops2jp/html/modules/legacy/admin/templates/stylesheets/module.css:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/stylesheets/module.css:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/stylesheets/module.css:1.1.2.1 Sat Oct 14 23:55:29 2006 +++ xoops2jp/html/modules/legacy/admin/templates/stylesheets/module.css Sun Oct 15 01:54:59 2006 @@ -1,39 +1,39 @@ /* Action Search */ -.base_actionsearch_form { +.legacy_actionsearch_form { text-align:center; margin:20px; } -ul.base_actionsearch_records { +ul.legacy_actionsearch_records { margin:5px 10px; } -.base_actionsearch_records li , .base_actionsearch_records li a , .base_actionsearch_records li a:visited { +.legacy_actionsearch_records li , .legacy_actionsearch_records li a , .legacy_actionsearch_records li a:visited { font-weight:bold; padding:3px; } -.base_actionsearch_records_desc { +.legacy_actionsearch_records_desc { font-weight:normal; font-style:italic; color:#666666; padding:2px 10px 5px 10px; } /* block list */ -.base_blocktype_module { +.legacy_blocktype_module { } -.base_blocktype_custom { +.legacy_blocktype_custom { color:#0000cc; } -.base_blockside { +.legacy_blockside { width:135px; white-space: nowrap; } -.base_blocksideInput{ +.legacy_blocksideInput{ float:left; border:1px solid #333333; padding:1px; } -.base_blockside_separator { +.legacy_blockside_separator { float:left; } @@ -43,81 +43,81 @@ } /* module list */ -.base_module_title { +.legacy_module_title { font-weight:bold; } -.base_module_error { +.legacy_module_error { color:#ff0000; } -.base_module_warning { +.legacy_module_warning { color:#0000ff; } -.base_module_message { +.legacy_module_message { } -.base_module_return , .base_module_return a , .base_module_return a:visited { +.legacy_module_return , .legacy_module_return a , .legacy_module_return a:visited { font-weight:bold; } -.base_module_versionMsg { +.legacy_module_versionMsg { color:#0000ff; font-weight:bold; } -.base_modinfo_notmounted { +.legacy_modinfo_notmounted { margin:10px 10px 10px 40px; } /* comment list */ -.base_comment_search { +.legacy_comment_search { text-align:center; margin:20px; } /* for list table */ -.base_list_id { +.legacy_list_id { text-align:center; } -.base_list_title, .base_list_title a, .base_list_title a:visited { +.legacy_list_title, .legacy_list_title a, .legacy_list_title a:visited { text-align:left; padding-left:5px; font-weight:bold; } -.base_list_imagetitle { +.legacy_list_imagetitle { text-align:center; font-weight:bold; } -.base_list_name { +.legacy_list_name { text-align:left; padding-left:5px; } -.base_list_text { +.legacy_list_text { text-align:left; padding-left:5px; } -.base_list_description { +.legacy_list_description { text-align:left; padding-left:5px; font-weight:normal; } -.base_list_number { +.legacy_list_number { text-align:right; padding-right:5px; } -.base_list_order { +.legacy_list_order { text-align:center; } -.base_list_image { +.legacy_list_image { text-align:center; } -.base_list_select { +.legacy_list_select { text-align:center; } -.base_list_type { +.legacy_list_type { text-align:center; } -.base_list_date { +.legacy_list_date { text-align:center; } -.base_list_control { +.legacy_list_control { text-align:center; } From tom_g3x @ users.sourceforge.jp Sun Oct 15 01:55:00 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Sun, 15 Oct 2006 01:55:00 +0900 Subject: [xoops-cvslog 5308] CVS update: xoops2jp/html/modules/legacy/images Message-ID: <20061014165500.05D7F2AC28A@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/images/legacy.gif Index: xoops2jp/html/modules/legacy/images/base.gif From tom_g3x @ users.sourceforge.jp Sun Oct 15 01:55:00 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Sun, 15 Oct 2006 01:55:00 +0900 Subject: [xoops-cvslog 5309] CVS update: xoops2jp/html/modules/legacy Message-ID: <20061014165500.2CA0B2AC28C@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/xoops_version.php diff -u xoops2jp/html/modules/legacy/xoops_version.php:1.1.2.2 xoops2jp/html/modules/legacy/xoops_version.php:1.1.2.3 --- xoops2jp/html/modules/legacy/xoops_version.php:1.1.2.2 Sun Oct 15 00:39:11 2006 +++ xoops2jp/html/modules/legacy/xoops_version.php Sun Oct 15 01:55:00 2006 @@ -29,12 +29,12 @@ $modversion['version'] = 1.00; $modversion['description'] = _MI_LEGACY_NAME_DESC; $modversion['author'] = ""; -$modversion['credits'] = "The XOOPS Project"; +$modversion['credits'] = "The XOOPS Cube Project"; $modversion['help'] = "help.html"; $modversion['license'] = "GPL see LICENSE"; $modversion['official'] = 1; -$modversion['image'] = "images/base.gif"; -$modversion['dirname'] = "base"; +$modversion['image'] = "images/legacy.gif"; +$modversion['dirname'] = "legacy"; $modversion['cube_style'] = true; From minahito @ users.sourceforge.jp Sun Oct 15 01:56:20 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 01:56:20 +0900 Subject: [xoops-cvslog 5310] CVS update: xoops2jp/html/modules/legacy/preload Message-ID: <20061014165620.9A4D62AC099@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/preload/Wating.class.php diff -u xoops2jp/html/modules/legacy/preload/Wating.class.php:1.1.2.2 xoops2jp/html/modules/legacy/preload/Wating.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/preload/Wating.class.php:1.1.2.2 Sun Oct 15 01:43:24 2006 +++ xoops2jp/html/modules/legacy/preload/Wating.class.php Sun Oct 15 01:56:20 2006 @@ -2,7 +2,7 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -class Base_Wating extends XCube_ActionFilter { +class Legacy_Wating extends XCube_ActionFilter { function preBlockFilter() { $this->mController->mRoot->mDelegateManager->add('Legacyblock.Wating.Show',array(&$this,"callbackWatingShow")); From minahito @ users.sourceforge.jp Sun Oct 15 02:12:56 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 02:12:56 +0900 Subject: [xoops-cvslog 5311] CVS update: xoops2jp/html/modules/legacy/.xml Message-ID: <20061014171256.AB3B42AC28F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/.xml/image_upload.xml diff -u xoops2jp/html/modules/legacy/.xml/image_upload.xml:1.1.2.2 xoops2jp/html/modules/legacy/.xml/image_upload.xml:1.1.2.3 --- xoops2jp/html/modules/legacy/.xml/image_upload.xml:1.1.2.2 Sun Oct 15 00:39:44 2006 +++ xoops2jp/html/modules/legacy/.xml/image_upload.xml Sun Oct 15 02:12:56 2006 @@ -22,7 +22,7 @@ - + From minahito @ users.sourceforge.jp Sun Oct 15 02:13:09 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 02:13:09 +0900 Subject: [xoops-cvslog 5312] CVS update: xoops2jp/html/modules/legacy/admin/.xml Message-ID: <20061014171309.12CFC2AC28F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/.xml/block_list.xml diff -u xoops2jp/html/modules/legacy/admin/.xml/block_list.xml:1.1.2.2 xoops2jp/html/modules/legacy/admin/.xml/block_list.xml:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/.xml/block_list.xml:1.1.2.2 Sun Oct 15 00:46:11 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/block_list.xml Sun Oct 15 02:13:08 2006 @@ -18,7 +18,7 @@ - + Index: xoops2jp/html/modules/legacy/admin/.xml/block_edit.xml diff -u xoops2jp/html/modules/legacy/admin/.xml/block_edit.xml:1.1.2.2 xoops2jp/html/modules/legacy/admin/.xml/block_edit.xml:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/.xml/block_edit.xml:1.1.2.2 Sun Oct 15 00:46:11 2006 +++ xoops2jp/html/modules/legacy/admin/.xml/block_edit.xml Sun Oct 15 02:13:08 2006 @@ -27,7 +27,7 @@ - + @@ -41,7 +41,7 @@ - + From minahito @ users.sourceforge.jp Sun Oct 15 02:13:20 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 02:13:20 +0900 Subject: [xoops-cvslog 5313] CVS update: xoops2jp/html/modules/legacy/kernel Message-ID: <20061014171320.641C12AC0FB@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/kernel/Legacy_AdminControllerStrategy.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_AdminControllerStrategy.class.php:1.1.2.2 xoops2jp/html/modules/legacy/kernel/Legacy_AdminControllerStrategy.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/kernel/Legacy_AdminControllerStrategy.class.php:1.1.2.2 Sun Oct 15 01:38:12 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_AdminControllerStrategy.class.php Sun Oct 15 02:13:20 2006 @@ -94,13 +94,13 @@ if ($this->mController->mRoot->mContext->mModule != null) { $module =& $this->mController->mRoot->mContext->mXoopsModule; - if ($module->get('dirname') == "base" && isset($_REQUEST['dirname'])) { + if ($module->get('dirname') == "legacy" && isset($_REQUEST['dirname'])) { if (in_array(xoops_getrequest('action'), $this->_mSpecialActions)) { $handler =& xoops_gethandler('module'); $module =& $handler->getByDirname(xoops_getrequest('dirname')); } } - elseif ($module->get('dirname') == "base" && xoops_getrequest('action') == 'PreferenceEdit' && isset($_REQUEST['confmod_id'])) { + elseif ($module->get('dirname') == "legacy" && xoops_getrequest('action') == 'PreferenceEdit' && isset($_REQUEST['confmod_id'])) { $handler =& xoops_gethandler('module'); $module =& $handler->get(intval(xoops_getrequest('confmod_id'))); } From minahito @ users.sourceforge.jp Sun Oct 15 02:13:31 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 02:13:31 +0900 Subject: [xoops-cvslog 5314] CVS update: xoops2jp/html/modules/legacyRender/kernel Message-ID: <20061014171331.C56532AC0FB@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php diff -u xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.5 xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.6 --- xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.5 Sun Oct 15 01:46:21 2006 +++ xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php Sun Oct 15 02:13:31 2006 @@ -136,7 +136,7 @@ $this->mSmarty->assign($key, $value); } - $this->mSmarty->setModulePrefix("base"); + $this->mSmarty->setModulePrefix("legacy"); $result = $this->mSmarty->fetch("blocks/" . $target->getTemplateName()); $target->setResult($result); From minahito @ users.sourceforge.jp Sun Oct 15 02:15:19 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 02:15:19 +0900 Subject: [xoops-cvslog 5315] CVS update: xoops2jp/html/modules/legacy/class Message-ID: <20061014171519.AA4BF2AC08C@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/class/ActionFrame.class.php diff -u xoops2jp/html/modules/legacy/class/ActionFrame.class.php:1.1.2.2 xoops2jp/html/modules/legacy/class/ActionFrame.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/class/ActionFrame.class.php:1.1.2.2 Sun Oct 15 01:27:56 2006 +++ xoops2jp/html/modules/legacy/class/ActionFrame.class.php Sun Oct 15 02:15:19 2006 @@ -169,7 +169,7 @@ function hasPermission(&$controller, &$xoopsUser) { if ($this->_mAdminFlag) { - return $controller->mRoot->mContext->mUser->isInRole('Module.base.Admin'); + return $controller->mRoot->mContext->mUser->isInRole('Module.legacy.Admin'); } else { // From minahito @ users.sourceforge.jp Sun Oct 15 02:18:39 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 02:18:39 +0900 Subject: [xoops-cvslog 5316] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014171839.AF6782AC058@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/BlockEditForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/BlockEditForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/forms/BlockEditForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/forms/BlockEditForm.class.php:1.1.2.2 Sun Oct 15 01:03:00 2006 +++ xoops2jp/html/modules/legacy/admin/forms/BlockEditForm.class.php Sun Oct 15 02:18:39 2006 @@ -9,7 +9,7 @@ { function getTokenName() { - return "module.base.BlockEditForm.TOKEN" . $this->get('bid'); + return "module.legacy.BlockEditForm.TOKEN" . $this->get('bid'); } function prepare() Index: xoops2jp/html/modules/legacy/admin/forms/CustomBlockEditForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/CustomBlockEditForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/forms/CustomBlockEditForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/forms/CustomBlockEditForm.class.php:1.1.2.2 Sun Oct 15 01:07:09 2006 +++ xoops2jp/html/modules/legacy/admin/forms/CustomBlockEditForm.class.php Sun Oct 15 02:18:39 2006 @@ -12,7 +12,7 @@ { function getTokenName() { - return "module.base.CustomBlockEditForm.TOKEN" . $this->get('bid'); + return "module.legacy.CustomBlockEditForm.TOKEN" . $this->get('bid'); } function prepare() Index: xoops2jp/html/modules/legacy/admin/forms/ImageAdminEditForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/ImageAdminEditForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/forms/ImageAdminEditForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/forms/ImageAdminEditForm.class.php:1.1.2.2 Sun Oct 15 01:08:02 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ImageAdminEditForm.class.php Sun Oct 15 02:18:39 2006 @@ -16,7 +16,7 @@ function getTokenName() { - return "module.base.ImageAdminEditForm.TOKEN" . $this->get('image_id'); + return "module.legacy.ImageAdminEditForm.TOKEN" . $this->get('image_id'); } function prepare() Index: xoops2jp/html/modules/legacy/admin/forms/BlockInstallEditForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/BlockInstallEditForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/forms/BlockInstallEditForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/forms/BlockInstallEditForm.class.php:1.1.2.2 Sun Oct 15 01:03:46 2006 +++ xoops2jp/html/modules/legacy/admin/forms/BlockInstallEditForm.class.php Sun Oct 15 02:18:39 2006 @@ -12,7 +12,7 @@ { function getTokenName() { - return "module.base.BlockInstallEditForm.TOKEN" . $this->get('bid'); + return "module.legacy.BlockInstallEditForm.TOKEN" . $this->get('bid'); } function update(&$obj) Index: xoops2jp/html/modules/legacy/admin/forms/CustomBlockDeleteForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/CustomBlockDeleteForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/forms/CustomBlockDeleteForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/forms/CustomBlockDeleteForm.class.php:1.1.2.2 Sun Oct 15 01:06:46 2006 +++ xoops2jp/html/modules/legacy/admin/forms/CustomBlockDeleteForm.class.php Sun Oct 15 02:18:39 2006 @@ -13,7 +13,7 @@ { function getTokenName() { - return "module.base.CustomBlockDeleteForm.TOKEN" . $this->get('bid'); + return "module.legacy.CustomBlockDeleteForm.TOKEN" . $this->get('bid'); } function prepare() Index: xoops2jp/html/modules/legacy/admin/forms/BlockUninstallForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/BlockUninstallForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/forms/BlockUninstallForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/forms/BlockUninstallForm.class.php:1.1.2.2 Sun Oct 15 01:04:35 2006 +++ xoops2jp/html/modules/legacy/admin/forms/BlockUninstallForm.class.php Sun Oct 15 02:18:39 2006 @@ -12,7 +12,7 @@ { function getTokenName() { - return "module.base.BlockUninstallForm.TOKEN" . $this->get('bid'); + return "module.legacy.BlockUninstallForm.TOKEN" . $this->get('bid'); } function update(&$obj) Index: xoops2jp/html/modules/legacy/admin/forms/ImageAdminDeleteForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/ImageAdminDeleteForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/forms/ImageAdminDeleteForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/forms/ImageAdminDeleteForm.class.php:1.1.2.2 Sun Oct 15 01:07:32 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ImageAdminDeleteForm.class.php Sun Oct 15 02:18:39 2006 @@ -13,7 +13,7 @@ { function getTokenName() { - return "module.base.ImageAdminDeleteForm.TOKEN" . $this->get('image_id'); + return "module.legacy.ImageAdminDeleteForm.TOKEN" . $this->get('image_id'); } function prepare() Index: xoops2jp/html/modules/legacy/admin/forms/CommentAdminEditForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/CommentAdminEditForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/forms/CommentAdminEditForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/forms/CommentAdminEditForm.class.php:1.1.2.2 Sun Oct 15 01:05:31 2006 +++ xoops2jp/html/modules/legacy/admin/forms/CommentAdminEditForm.class.php Sun Oct 15 02:18:39 2006 @@ -12,7 +12,7 @@ { function getTokenName() { - return "module.base.CommentAdminEditForm.TOKEN" . $this->get('com_id'); + return "module.legacy.CommentAdminEditForm.TOKEN" . $this->get('com_id'); } function prepare() Index: xoops2jp/html/modules/legacy/admin/forms/CommentAdminDeleteForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/CommentAdminDeleteForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/forms/CommentAdminDeleteForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/forms/CommentAdminDeleteForm.class.php:1.1.2.2 Sun Oct 15 01:05:00 2006 +++ xoops2jp/html/modules/legacy/admin/forms/CommentAdminDeleteForm.class.php Sun Oct 15 02:18:39 2006 @@ -15,7 +15,7 @@ { function getTokenName() { - return "module.base.XoopscommentsAdminDeleteForm.TOKEN" . $this->get('com_id'); + return "module.legacy.XoopscommentsAdminDeleteForm.TOKEN" . $this->get('com_id'); } function prepare() Index: xoops2jp/html/modules/legacy/admin/forms/BlockListForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/BlockListForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/forms/BlockListForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/forms/BlockListForm.class.php:1.1.2.2 Sun Oct 15 01:04:22 2006 +++ xoops2jp/html/modules/legacy/admin/forms/BlockListForm.class.php Sun Oct 15 02:18:39 2006 @@ -16,7 +16,7 @@ { function getTokenName() { - return "module.base.BlockListForm.TOKEN"; + return "module.legacy.BlockListForm.TOKEN"; } function prepare() From minahito @ users.sourceforge.jp Sun Oct 15 02:23:10 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 02:23:10 +0900 Subject: [xoops-cvslog 5317] CVS update: xoops2jp/html/include Message-ID: <20061014172310.768052AC058@users.sourceforge.jp> Index: xoops2jp/html/include/comment_reply.php diff -u xoops2jp/html/include/comment_reply.php:1.2.8.3.2.1 xoops2jp/html/include/comment_reply.php:1.2.8.3.2.2 --- xoops2jp/html/include/comment_reply.php:1.2.8.3.2.1 Sun Oct 15 00:36:49 2006 +++ xoops2jp/html/include/comment_reply.php Sun Oct 15 02:23:10 2006 @@ -1,5 +1,5 @@ mLanguageManager->loadModuleMessageCatalog("base"); +$root->mLanguageManager->loadModuleMessageCatalog("legacy"); $root->mLanguageManager->loadPageTypeMessageCatalog("comment"); ///< @todo Is this must? Index: xoops2jp/html/include/comment_edit.php diff -u xoops2jp/html/include/comment_edit.php:1.2.8.2.2.1 xoops2jp/html/include/comment_edit.php:1.2.8.2.2.2 --- xoops2jp/html/include/comment_edit.php:1.2.8.2.2.1 Sun Oct 15 00:36:30 2006 +++ xoops2jp/html/include/comment_edit.php Sun Oct 15 02:23:10 2006 @@ -1,5 +1,5 @@ getLanguageManager(); -$langManager->loadModuleMessageCatalog("base"); +$langManager->loadModuleMessageCatalog("legacy"); if ('system' != $xoopsModule->getVar('dirname') && XOOPS_COMMENT_APPROVENONE == $xoopsModuleConfig['com_rule']) { exit(); Index: xoops2jp/html/include/comment_new.php diff -u xoops2jp/html/include/comment_new.php:1.2.8.3.2.1 xoops2jp/html/include/comment_new.php:1.2.8.3.2.2 --- xoops2jp/html/include/comment_new.php:1.2.8.3.2.1 Sun Oct 15 00:36:40 2006 +++ xoops2jp/html/include/comment_new.php Sun Oct 15 02:23:10 2006 @@ -1,5 +1,5 @@ mLanguageManager->loadModuleMessageCatalog("base"); +$root->mLanguageManager->loadModuleMessageCatalog("legacy"); require_once XOOPS_ROOT_PATH.'/include/comment_constants.php'; From minahito @ users.sourceforge.jp Sun Oct 15 02:23:16 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 02:23:16 +0900 Subject: [xoops-cvslog 5318] CVS update: xoops2jp/html/install/include Message-ID: <20061014172316.9F4102AC058@users.sourceforge.jp> Index: xoops2jp/html/install/include/makedata.php diff -u xoops2jp/html/install/include/makedata.php:1.1.2.6.2.2 xoops2jp/html/install/include/makedata.php:1.1.2.6.2.3 --- xoops2jp/html/install/include/makedata.php:1.1.2.6.2.2 Sun Oct 15 00:38:08 2006 +++ xoops2jp/html/install/include/makedata.php Sun Oct 15 02:23:16 2006 @@ -1,5 +1,5 @@ insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",14,1,'system_admin')"); $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",15,1,'system_admin')"); - installModule($dbm, 2, "base", _MI_LEGACY_NAME, $language, $gruops, true); + installModule($dbm, 2, "legacy", _MI_LEGACY_NAME, $language, $gruops, true); $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", 2, 1, 'module_admin')"); installModule($dbm, 3, "legacyRender", _MI_LEGACYRENDER_NAME, $language, $gruops, true); From minahito @ users.sourceforge.jp Sun Oct 15 02:23:36 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 02:23:36 +0900 Subject: [xoops-cvslog 5319] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061014172336.070222AC0FB@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/SmilesAdminDeleteForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/SmilesAdminDeleteForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/forms/SmilesAdminDeleteForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/forms/SmilesAdminDeleteForm.class.php:1.1.2.2 Sun Oct 15 01:12:03 2006 +++ xoops2jp/html/modules/legacy/admin/forms/SmilesAdminDeleteForm.class.php Sun Oct 15 02:23:35 2006 @@ -12,7 +12,7 @@ { function getTokenName() { - return "module.base.SmilesAdminDeleteForm.TOKEN" . $this->get('id'); + return "module.legacy.SmilesAdminDeleteForm.TOKEN" . $this->get('id'); } function prepare() Index: xoops2jp/html/modules/legacy/admin/forms/PreferenceEditForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/PreferenceEditForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/forms/PreferenceEditForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/forms/PreferenceEditForm.class.php:1.1.2.2 Sun Oct 15 01:11:50 2006 +++ xoops2jp/html/modules/legacy/admin/forms/PreferenceEditForm.class.php Sun Oct 15 02:23:35 2006 @@ -17,7 +17,7 @@ function getTokenName() { - return "module.base.PreferenceEditForm.TOKEN" . $this->getCategoryId(); + return "module.legacy.PreferenceEditForm.TOKEN" . $this->getCategoryId(); } function getCategoryId() @@ -128,7 +128,7 @@ function getTokenName() { - return "module.base.ModulePreferenceEditForm.TOKEN" . $this->getModuleId(); + return "module.legacy.ModulePreferenceEditForm.TOKEN" . $this->getModuleId(); } function getCategoryId() Index: xoops2jp/html/modules/legacy/admin/forms/InstallWizardForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/InstallWizardForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/forms/InstallWizardForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/forms/InstallWizardForm.class.php:1.1.2.2 Sun Oct 15 01:10:31 2006 +++ xoops2jp/html/modules/legacy/admin/forms/InstallWizardForm.class.php Sun Oct 15 02:23:35 2006 @@ -12,7 +12,7 @@ { function getTokenName() { - return "module.base.InstallWizardForm.TOKEN." . $this->get('dirname'); + return "module.legacy.InstallWizardForm.TOKEN." . $this->get('dirname'); } function prepare() Index: xoops2jp/html/modules/legacy/admin/forms/SmilesAdminEditForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/SmilesAdminEditForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/forms/SmilesAdminEditForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/forms/SmilesAdminEditForm.class.php:1.1.2.2 Sun Oct 15 01:12:19 2006 +++ xoops2jp/html/modules/legacy/admin/forms/SmilesAdminEditForm.class.php Sun Oct 15 02:23:35 2006 @@ -16,7 +16,7 @@ function getTokenName() { - return "module.base.SmilesAdminEditForm.TOKEN" . $this->get('id'); + return "module.legacy.SmilesAdminEditForm.TOKEN" . $this->get('id'); } function prepare() Index: xoops2jp/html/modules/legacy/admin/forms/ThemeSelectForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/ThemeSelectForm.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/forms/ThemeSelectForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/forms/ThemeSelectForm.class.php:1.1.2.1 Sat Oct 14 23:55:21 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ThemeSelectForm.class.php Sun Oct 15 02:23:35 2006 @@ -15,7 +15,7 @@ { function getTokenName() { - return "module.base.ThemeSelectForm.TOKEN"; + return "module.legacy.ThemeSelectForm.TOKEN"; } function prepare() Index: xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminEditForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminEditForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminEditForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminEditForm.class.php:1.1.2.2 Sun Oct 15 01:08:51 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminEditForm.class.php Sun Oct 15 02:23:35 2006 @@ -13,7 +13,7 @@ { function getTokenName() { - return "module.base.ImagecategoryAdminEditForm.TOKEN" . $this->get('imgcat_id'); + return "module.legacy.ImagecategoryAdminEditForm.TOKEN" . $this->get('imgcat_id'); } function prepare() Index: xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminDeleteForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminDeleteForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminDeleteForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminDeleteForm.class.php:1.1.2.2 Sun Oct 15 01:08:23 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminDeleteForm.class.php Sun Oct 15 02:23:35 2006 @@ -13,7 +13,7 @@ { function getTokenName() { - return "module.base.ImagecategoryAdminDeleteForm.TOKEN" . $this->get('imgcat_id'); + return "module.legacy.ImagecategoryAdminDeleteForm.TOKEN" . $this->get('imgcat_id'); } function prepare() Index: xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminNewForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminNewForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminNewForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminNewForm.class.php:1.1.2.2 Sun Oct 15 01:09:08 2006 +++ xoops2jp/html/modules/legacy/admin/forms/ImagecategoryAdminNewForm.class.php Sun Oct 15 02:23:35 2006 @@ -14,7 +14,7 @@ { function getTokenName() { - return "module.base.ImagecategoryAdminNewForm.TOKEN"; + return "module.legacy.ImagecategoryAdminNewForm.TOKEN"; } function prepare() From minahito @ users.sourceforge.jp Sun Oct 15 02:23:47 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 02:23:47 +0900 Subject: [xoops-cvslog 5320] CVS update: xoops2jp/html/modules/legacy/forms Message-ID: <20061014172347.36EBB2AC0FB@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/forms/NotifyDeleteForm.class.php diff -u xoops2jp/html/modules/legacy/forms/NotifyDeleteForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/forms/NotifyDeleteForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/forms/NotifyDeleteForm.class.php:1.1.2.2 Sun Oct 15 01:36:10 2006 +++ xoops2jp/html/modules/legacy/forms/NotifyDeleteForm.class.php Sun Oct 15 02:23:47 2006 @@ -12,7 +12,7 @@ function getTokenName() { - return $_SERVER['REQUEST_METHOD'] == 'POST' ? "module.base.NotifyDeleteForm.TOKEN" : null; + return $_SERVER['REQUEST_METHOD'] == 'POST' ? "module.legacy.NotifyDeleteForm.TOKEN" : null; } function fetch() Index: xoops2jp/html/modules/legacy/forms/ImageUploadForm.class.php diff -u xoops2jp/html/modules/legacy/forms/ImageUploadForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/forms/ImageUploadForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/forms/ImageUploadForm.class.php:1.1.2.2 Sun Oct 15 01:35:41 2006 +++ xoops2jp/html/modules/legacy/forms/ImageUploadForm.class.php Sun Oct 15 02:23:47 2006 @@ -13,7 +13,7 @@ function getTokenName() { - return "module.base.ImageUploadForm.TOKEN" . $this->get('imgcat_id'); + return "module.legacy.ImageUploadForm.TOKEN" . $this->get('imgcat_id'); } function prepare() Index: xoops2jp/html/modules/legacy/forms/CommentEditForm.class.php diff -u xoops2jp/html/modules/legacy/forms/CommentEditForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/forms/CommentEditForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/forms/CommentEditForm.class.php:1.1.2.2 Sun Oct 15 01:35:06 2006 +++ xoops2jp/html/modules/legacy/forms/CommentEditForm.class.php Sun Oct 15 02:23:47 2006 @@ -11,7 +11,7 @@ { function getTokenName() { - return "module.base.Legacy_CommentEditForm.TOKEN"; + return "module.legacy.Legacy_CommentEditForm.TOKEN"; } function prepare() Index: xoops2jp/html/modules/legacy/forms/MiscFriendForm.class.php diff -u xoops2jp/html/modules/legacy/forms/MiscFriendForm.class.php:1.1.2.2 xoops2jp/html/modules/legacy/forms/MiscFriendForm.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/forms/MiscFriendForm.class.php:1.1.2.2 Sun Oct 15 01:35:56 2006 +++ xoops2jp/html/modules/legacy/forms/MiscFriendForm.class.php Sun Oct 15 02:23:47 2006 @@ -9,7 +9,7 @@ { function getTokenName() { - return "module.base.MiscFriendForm.TOKEN"; + return "module.legacy.MiscFriendForm.TOKEN"; } function prepare() From minahito @ users.sourceforge.jp Sun Oct 15 02:24:23 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 02:24:23 +0900 Subject: [xoops-cvslog 5321] CVS update: xoops2jp/html/themes/cube_default Message-ID: <20061014172423.CF58D2AC058@users.sourceforge.jp> Index: xoops2jp/html/themes/cube_default/package.ini.php diff -u xoops2jp/html/themes/cube_default/package.ini.php:1.1.2.2 xoops2jp/html/themes/cube_default/package.ini.php:1.1.2.2.2.1 --- xoops2jp/html/themes/cube_default/package.ini.php:1.1.2.2 Wed Aug 2 18:46:49 2006 +++ xoops2jp/html/themes/cube_default/package.ini.php Sun Oct 15 02:24:23 2006 @@ -3,7 +3,7 @@ [Manifesto] Name="Default theme of Cube" -Depends=Legacy_RenderSystem,base +Depends=Legacy_RenderSystem,legacy Url="http://xoopscube.org" Version="1.0.0" From minahito @ users.sourceforge.jp Sun Oct 15 02:30:39 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 02:30:39 +0900 Subject: [xoops-cvslog 5322] CVS update: xoops2jp/html/modules/legacy/kernel Message-ID: <20061014173039.B0AFA2AC29B@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php:1.1.2.2 xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php:1.1.2.2 Sun Oct 15 01:41:17 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php Sun Oct 15 02:30:39 2006 @@ -394,13 +394,13 @@ || ($this->mXoopsModule->getInfo('config') && is_array($this->mXoopsModule->getInfo('config'))) || ($this->mXoopsModule->getInfo('comments') && is_array($this->mXoopsModule->getInfo('comments')))) { $this->mXoopsModule->adminmenu[] = array( - 'link' => XOOPS_MODULE_URL . '/legacy/admin/index.php?action=PreferenceEdit&confmod_id=' . $this->mXoopsModule->get('mid'), + 'link' => XOOPS_MODULE_URL . '/legacy/admin/index.php?action=PreferenceEdit&confmod_id=' . $this->mXoopsModule->get('mid'), 'title' => _PREFERENCES, 'absolute' => true); } if ($this->mXoopsModule->hasHelp()) { - $helpUrl = XOOPS_MODULE_URL . "/legacy/admin/index.php?action=Help&dirname=" . $this->mXoopsModule->get('dirname'); + $helpUrl = XOOPS_MODULE_URL . "/legacy/admin/index.php?action=Help&dirname=" . $this->mXoopsModule->get('dirname'); $this->mXoopsModule->adminmenu[] = array('link' => $helpUrl, 'title' => _HELP, 'absolute' => true); From tom_g3x @ users.sourceforge.jp Sun Oct 15 02:46:21 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Sun, 15 Oct 2006 02:46:21 +0900 Subject: [xoops-cvslog 5323] CVS update: xoops2jp/html/themes/cube_default Message-ID: <20061014174621.06FEF2AC29B@users.sourceforge.jp> Index: xoops2jp/html/themes/cube_default/package.ini.php diff -u xoops2jp/html/themes/cube_default/package.ini.php:1.1.2.2.2.1 xoops2jp/html/themes/cube_default/package.ini.php:1.1.2.2.2.2 --- xoops2jp/html/themes/cube_default/package.ini.php:1.1.2.2.2.1 Sun Oct 15 02:24:23 2006 +++ xoops2jp/html/themes/cube_default/package.ini.php Sun Oct 15 02:46:20 2006 @@ -15,5 +15,7 @@ Description="Default theme of XOOPS Cube 2.1" W3C=NG +Licence="GPL" + */ ?> \ No newline at end of file From tom_g3x @ users.sourceforge.jp Sun Oct 15 02:47:12 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Sun, 15 Oct 2006 02:47:12 +0900 Subject: [xoops-cvslog 5324] CVS update: xoops2jp/html/themes/default Message-ID: <20061014174712.CA0A22AC16C@users.sourceforge.jp> Index: xoops2jp/html/themes/default/package.ini.php diff -u xoops2jp/html/themes/default/package.ini.php:1.1.2.2 xoops2jp/html/themes/default/package.ini.php:1.1.2.2.2.1 --- xoops2jp/html/themes/default/package.ini.php:1.1.2.2 Wed Aug 2 18:46:49 2006 +++ xoops2jp/html/themes/default/package.ini.php Sun Oct 15 02:47:12 2006 @@ -3,7 +3,7 @@ [Manifesto] Name="Default Theme" -Depends=Legacy_RenderSystem +Depends=Legacy_RenderSystem,legacy Url="http://www.xoops.org" Version="1.0.0" From minahito @ users.sourceforge.jp Sun Oct 15 15:07:01 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 15:07:01 +0900 Subject: [xoops-cvslog 5325] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20061015060701.844A22AC1CF@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/AvatarEditAction.class.php diff -u xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.9.2.2 xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.9.2.3 --- xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.9.2.2 Fri Oct 13 15:50:34 2006 +++ xoops2jp/html/modules/user/actions/AvatarEditAction.class.php Sun Oct 15 15:07:01 2006 @@ -1,7 +1,7 @@ isAdmin()) { //< FIXME + if ($controller->mRoot->mContext->mUser->isInRole('Module.user.Admin')) { return true; } elseif ($this->mObject->get('uid') == $xoopsUser->get('uid')) { From minahito @ users.sourceforge.jp Sun Oct 15 15:09:31 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 15:09:31 +0900 Subject: [xoops-cvslog 5326] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20061015060931.727B42AC070@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php diff -u xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php:1.1.2.9.2.1 xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php:1.1.2.9.2.2 --- xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php:1.1.2.9.2.1 Sat Oct 7 15:30:09 2006 +++ xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php Sun Oct 15 15:09:31 2006 @@ -1,7 +1,7 @@ isAdmin()) { //< FIXME + if ($controller->mRoot->mContext->mUser->isInRole('Module.user.Admin')) { return true; } elseif ($this->mObject->get('uid') == $xoopsUser->get('uid')) { From minahito @ users.sourceforge.jp Sun Oct 15 15:09:39 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 15:09:39 +0900 Subject: [xoops-cvslog 5327] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20061015060939.683F02AC070@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/EditUserAction.class.php diff -u xoops2jp/html/modules/user/actions/EditUserAction.class.php:1.1.2.13 xoops2jp/html/modules/user/actions/EditUserAction.class.php:1.1.2.13.2.1 --- xoops2jp/html/modules/user/actions/EditUserAction.class.php:1.1.2.13 Mon Sep 25 08:10:16 2006 +++ xoops2jp/html/modules/user/actions/EditUserAction.class.php Sun Oct 15 15:09:39 2006 @@ -1,7 +1,7 @@ mObject != null) { - return ($this->mObject->get('uid') == $xoopsUser->get('uid') || $xoopsUser->isAdmin()); //< FIXME + if (!is_object($this->mObject)) { + return false; + } + + if ($controller->mRoot->mContext->mUser->isInRole('Module.user.Admin')) { + return true; } - return false; + return ($this->mObject->get('uid') == $xoopsUser->get('uid')); } function _doExecute() From minahito @ users.sourceforge.jp Sun Oct 15 15:09:48 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 15:09:48 +0900 Subject: [xoops-cvslog 5328] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20061015060948.0F31E2AC070@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/LostPassAction.class.php diff -u xoops2jp/html/modules/user/actions/LostPassAction.class.php:1.1.2.8 xoops2jp/html/modules/user/actions/LostPassAction.class.php:1.1.2.8.2.1 --- xoops2jp/html/modules/user/actions/LostPassAction.class.php:1.1.2.8 Mon Sep 25 08:10:16 2006 +++ xoops2jp/html/modules/user/actions/LostPassAction.class.php Sun Oct 15 15:09:47 2006 @@ -1,7 +1,7 @@ mRoot->mContext->mUser->mIdentity->isAuthenticated(); } function getDefaultView(&$controller, &$xoopsUser) From minahito @ users.sourceforge.jp Sun Oct 15 15:10:00 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 15:10:00 +0900 Subject: [xoops-cvslog 5329] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20061015061000.AC3A92AC070@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/UserDeleteAction.class.php diff -u xoops2jp/html/modules/user/actions/UserDeleteAction.class.php:1.1.2.2 xoops2jp/html/modules/user/actions/UserDeleteAction.class.php:1.1.2.2.2.1 --- xoops2jp/html/modules/user/actions/UserDeleteAction.class.php:1.1.2.2 Sun Sep 24 19:37:49 2006 +++ xoops2jp/html/modules/user/actions/UserDeleteAction.class.php Sun Oct 15 15:10:00 2006 @@ -48,6 +48,15 @@ return true; } + function hasPermission(&$controller, &$xoopsUser, $moduleConfig) + { + if ($xoopsUser->get('uid') == 1) { + return false; + } + + return true; + } + function getDefaultView(&$controller, &$xoopsUser) { return USER_FRAME_VIEW_INPUT; From tom_g3x @ users.sourceforge.jp Sun Oct 15 15:17:23 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Sun, 15 Oct 2006 15:17:23 +0900 Subject: [xoops-cvslog 5330] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061015061723.3ABAC2AC070@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html diff -u xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html:1.1.2.3 xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html:1.1.2.4 --- xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html:1.1.2.3 Sun Oct 15 01:54:59 2006 +++ xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html Sun Oct 15 15:17:23 2006 @@ -6,9 +6,7 @@

<{$smarty.const._AD_LEGACY_LANG_MODUNINSTALL_CONF}>

-
    -
  • <{$smarty.const._AD_LEGACY_LANG_MODUNINSTALL_ADVICE|replace:"_%s_":$module->getShow('name')}> -
+
<{$smarty.const._AD_LEGACY_LANG_MODUNINSTALL_ADVICE|replace:"_%s_":$module->getShow('name')}>
<{if $actionForm->hasError()}>
From minahito @ users.sourceforge.jp Sun Oct 15 15:33:53 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 15:33:53 +0900 Subject: [xoops-cvslog 5331] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20061015063353.456A62AC070@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/MiscOnlineAction.class.php diff -u xoops2jp/html/modules/user/actions/MiscOnlineAction.class.php:1.1.2.1.2.2 xoops2jp/html/modules/user/actions/MiscOnlineAction.class.php:1.1.2.1.2.3 --- xoops2jp/html/modules/user/actions/MiscOnlineAction.class.php:1.1.2.1.2.2 Fri Oct 13 14:10:35 2006 +++ xoops2jp/html/modules/user/actions/MiscOnlineAction.class.php Sun Oct 15 15:33:53 2006 @@ -43,6 +43,7 @@ $render->setAttribute("objects", $this->mObjects); $render->setAttribute("pageNavi", $this->mFilter->mNavi); + $render->setAttribute('enableViewIP', $controller->mRoot->mContext->mUser->isInRole('Module.user.Admin')); } } From minahito @ users.sourceforge.jp Sun Oct 15 15:42:16 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 15:42:16 +0900 Subject: [xoops-cvslog 5332] CVS update: xoops2jp/html/modules/legacy/admin/forms Message-ID: <20061015064216.204132AC070@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/forms/SmilesAdminEditForm.class.php diff -u xoops2jp/html/modules/legacy/admin/forms/SmilesAdminEditForm.class.php:1.1.2.3 xoops2jp/html/modules/legacy/admin/forms/SmilesAdminEditForm.class.php:1.1.2.4 --- xoops2jp/html/modules/legacy/admin/forms/SmilesAdminEditForm.class.php:1.1.2.3 Sun Oct 15 02:23:35 2006 +++ xoops2jp/html/modules/legacy/admin/forms/SmilesAdminEditForm.class.php Sun Oct 15 15:42:15 2006 @@ -58,7 +58,7 @@ function validateSmile_url() { if ($this->_mIsNew && $this->get('smile_url') == null) { - $this->addErrorMessage(XCube_Utils::formatMessage(_MD_LEGACY_ERROR_REQUIRED, _MD_LEGACY_LANG_SMILE_URL)); + $this->addErrorMessage(XCube_Utils::formatMessage(_MD_LEGACY_ERROR_REQUIRED, _AD_LEGACY_LANG_SMILE_URL)); } } From minahito @ users.sourceforge.jp Sun Oct 15 15:43:34 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 15:43:34 +0900 Subject: [xoops-cvslog 5333] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20061015064334.F27202AC086@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/UserRegisterAction.class.php diff -u xoops2jp/html/modules/user/actions/UserRegisterAction.class.php:1.1.2.11 xoops2jp/html/modules/user/actions/UserRegisterAction.class.php:1.1.2.11.2.1 --- xoops2jp/html/modules/user/actions/UserRegisterAction.class.php:1.1.2.11 Sun Sep 24 19:38:02 2006 +++ xoops2jp/html/modules/user/actions/UserRegisterAction.class.php Sun Oct 15 15:43:34 2006 @@ -1,7 +1,7 @@ mActionForm->prepare(); + + $root =& XCube_Root::getSingleton(); + $this->mActionForm->set('timezone_offset', $root->mContext->getXoopsConfig('default_TZ')); } function executeViewInput(&$controller,&$xoopsUser,&$renderSystem) From minahito @ users.sourceforge.jp Sun Oct 15 16:04:17 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 16:04:17 +0900 Subject: [xoops-cvslog 5334] CVS update: xoops2jp/html/modules/legacy/class Message-ID: <20061015070417.531AB2AC1CD@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/class/imagecategory.php diff -u xoops2jp/html/modules/legacy/class/imagecategory.php:1.1.2.2 xoops2jp/html/modules/legacy/class/imagecategory.php:1.1.2.3 --- xoops2jp/html/modules/legacy/class/imagecategory.php:1.1.2.2 Sun Oct 15 01:33:33 2006 +++ xoops2jp/html/modules/legacy/class/imagecategory.php Sun Oct 15 16:04:17 2006 @@ -225,7 +225,7 @@ function delete(&$obj, $force = false) { $handler =& xoops_getmodulehandler('image', 'legacy'); - $handler->deleteAll(new Criteria('imagecat_id', $obj->get('imagecat_id'))); + $handler->deleteAll(new Criteria('imgcat_id', $obj->get('imagecat_id'))); unset($handler); $handler =& xoops_gethandler('groupperm'); From minahito @ users.sourceforge.jp Sun Oct 15 16:08:31 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 16:08:31 +0900 Subject: [xoops-cvslog 5335] CVS update: xoops2jp/html/modules/legacy/class Message-ID: <20061015070831.B8E582AC1CA@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/class/imagecategory.php diff -u xoops2jp/html/modules/legacy/class/imagecategory.php:1.1.2.3 xoops2jp/html/modules/legacy/class/imagecategory.php:1.1.2.4 --- xoops2jp/html/modules/legacy/class/imagecategory.php:1.1.2.3 Sun Oct 15 16:04:17 2006 +++ xoops2jp/html/modules/legacy/class/imagecategory.php Sun Oct 15 16:08:31 2006 @@ -225,7 +225,7 @@ function delete(&$obj, $force = false) { $handler =& xoops_getmodulehandler('image', 'legacy'); - $handler->deleteAll(new Criteria('imgcat_id', $obj->get('imagecat_id'))); + $handler->deleteAll(new Criteria('imgcat_id', $obj->get('imgcat_id'))); unset($handler); $handler =& xoops_gethandler('groupperm'); From minahito @ users.sourceforge.jp Sun Oct 15 17:17:54 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 17:17:54 +0900 Subject: [xoops-cvslog 5336] CVS update: xoops2jp/html/modules/legacy/class Message-ID: <20061015081754.5BAB32AC014@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/class/DebuggerManager.class.php diff -u xoops2jp/html/modules/legacy/class/DebuggerManager.class.php:1.1.2.1 xoops2jp/html/modules/legacy/class/DebuggerManager.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/class/DebuggerManager.class.php:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/DebuggerManager.class.php Sun Oct 15 17:17:54 2006 @@ -27,6 +27,8 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); +require_once XOOPS_ROOT_PATH . "/class/errorhandler.php"; + define("XOOPS_DEBUG_OFF",0); define("XOOPS_DEBUG_PHP",1); define("XOOPS_DEBUG_MYSQL",2); @@ -111,6 +113,8 @@ function prepare() { error_reporting(E_ALL); + $GLOBALS['xoopsErrorHandler'] =& XoopsErrorHandler::getInstance(); + $GLOBALS['xoopsErrorHandler']->activate(true); } } @@ -119,6 +123,12 @@ */ class Legacy_MysqlDebugger extends Legacy_AbstractDebugger { + function prepare() + { + $GLOBALS['xoopsErrorHandler'] =& XoopsErrorHandler::getInstance(); + $GLOBALS['xoopsErrorHandler']->activate(true); + } + function renderLog() { $xoopsLogger =& XoopsLogger::instance(); @@ -149,6 +159,12 @@ */ class Legacy_SmartyDebugger extends Legacy_AbstractDebugger { + function prepare() + { + $GLOBALS['xoopsErrorHandler'] =& XoopsErrorHandler::getInstance(); + $GLOBALS['xoopsErrorHandler']->activate(true); + } + function isDebugRenderSystem() { $root =& XCube_Root::getSingleton(); From minahito @ users.sourceforge.jp Sun Oct 15 17:18:09 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 17:18:09 +0900 Subject: [xoops-cvslog 5337] CVS update: xoops2jp/html/modules/legacyRender/admin/actions Message-ID: <20061015081809.89BB22AC03C@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/actions/TplsetUploadAction.class.php diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplsetUploadAction.class.php:1.1.2.3 xoops2jp/html/modules/legacyRender/admin/actions/TplsetUploadAction.class.php:1.1.2.3.2.1 --- xoops2jp/html/modules/legacyRender/admin/actions/TplsetUploadAction.class.php:1.1.2.3 Tue Jul 11 12:06:23 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/TplsetUploadAction.class.php Sun Oct 15 17:18:09 2006 @@ -1,7 +1,7 @@ openTar($formFile->_mTmpFileName); + if (!is_array($tar->files)) { + return LEGACYRENDER_FRAME_VIEW_ERROR; + } + $tplsetName = null; foreach ($tar->files as $id => $info) { $infoArr = explode('/', str_replace("\\", '/', $info['name'])); From minahito @ users.sourceforge.jp Sun Oct 15 17:18:18 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Sun, 15 Oct 2006 17:18:18 +0900 Subject: [xoops-cvslog 5338] CVS update: xoops2jp/html/modules/user/templates Message-ID: <20061015081818.32B862AC03C@users.sourceforge.jp> Index: xoops2jp/html/modules/user/templates/user_misc_online.html diff -u xoops2jp/html/modules/user/templates/user_misc_online.html:1.1.2.1 xoops2jp/html/modules/user/templates/user_misc_online.html:1.1.2.1.2.1 --- xoops2jp/html/modules/user/templates/user_misc_online.html:1.1.2.1 Sun Aug 6 01:46:20 2006 +++ xoops2jp/html/modules/user/templates/user_misc_online.html Sun Oct 15 17:18:18 2006 @@ -19,7 +19,7 @@ <{/if}>
- <{if $xoops_isadmin}> + <{if $enableViewIP}> <{$obj->getShow('online_ip')}> <{/if}> <{$module->getRenderedVersion()}> <{$module->get('last_update')|xoops_formattimestamp:l}> -<{* <{if $module->get('hasmain')}> *}> - -<{* - <{else}> - - <{/if}> -*}> + get('isactive')}>checked="checked"<{/if}> /> From tom_g3x @ users.sourceforge.jp Sun Oct 15 22:11:33 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Sun, 15 Oct 2006 22:11:33 +0900 Subject: [xoops-cvslog 5340] CVS update: xoops2jp/html/modules/user/templates Message-ID: <20061015131133.8B2702AC1C5@users.sourceforge.jp> Index: xoops2jp/html/modules/user/templates/user_register_confirm.html diff -u xoops2jp/html/modules/user/templates/user_register_confirm.html:1.1.2.7 xoops2jp/html/modules/user/templates/user_register_confirm.html:1.1.2.7.2.1 --- xoops2jp/html/modules/user/templates/user_register_confirm.html:1.1.2.7 Wed Sep 6 18:00:20 2006 +++ xoops2jp/html/modules/user/templates/user_register_confirm.html Sun Oct 15 22:11:33 2006 @@ -15,6 +15,7 @@
+
Index: xoops2jp/html/modules/user/templates/user_delete.html diff -u xoops2jp/html/modules/user/templates/user_delete.html:1.1.2.2 xoops2jp/html/modules/user/templates/user_delete.html:1.1.2.2.2.1 --- xoops2jp/html/modules/user/templates/user_delete.html:1.1.2.2 Sun Aug 27 12:13:55 2006 +++ xoops2jp/html/modules/user/templates/user_delete.html Sun Oct 15 22:11:33 2006 @@ -7,10 +7,12 @@
<{/if}> +
-

<{$self_delete_message|nl2br}>

+

<{$self_delete_message|nl2br}>

<{xoops_token form=$actionForm}> +
\ No newline at end of file From tom_g3x @ users.sourceforge.jp Sun Oct 15 22:11:33 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Sun, 15 Oct 2006 22:11:33 +0900 Subject: [xoops-cvslog 5341] CVS update: xoops2jp/html/modules/legacy/templates Message-ID: <20061015131133.B24552AC1DE@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/templates/legacy_notification_delete.html diff -u xoops2jp/html/modules/legacy/templates/legacy_notification_delete.html:1.1.2.1 xoops2jp/html/modules/legacy/templates/legacy_notification_delete.html:1.1.2.2 --- xoops2jp/html/modules/legacy/templates/legacy_notification_delete.html:1.1.2.1 Sat Oct 14 23:55:20 2006 +++ xoops2jp/html/modules/legacy/templates/legacy_notification_delete.html Sun Oct 15 22:11:33 2006 @@ -1,12 +1,12 @@
-

<{$smarty.const._NOT_DELETINGNOTIFICATIONS}>

-
- <{xoops_token form=$actionForm}> - <{xoops_input type=hidden name=delete value=1}> - <{foreach item=ids from=$actionForm->mNotifiyIds}> - - <{/foreach}> - - -
+

<{$smarty.const._NOT_DELETINGNOTIFICATIONS}>

+
+ <{xoops_token form=$actionForm}> + <{xoops_input type=hidden name=delete value=1}> + <{foreach item=ids from=$actionForm->mNotifiyIds}> + + <{/foreach}> + + +
From tom_g3x @ users.sourceforge.jp Sun Oct 15 23:16:41 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Sun, 15 Oct 2006 23:16:41 +0900 Subject: [xoops-cvslog 5342] CVS update: xoops2jp/html/modules/pm/templates Message-ID: <20061015141641.3759C2AC09C@users.sourceforge.jp> Index: xoops2jp/html/modules/pm/templates/pm_pmlite_success.html diff -u xoops2jp/html/modules/pm/templates/pm_pmlite_success.html:1.1.2.3 xoops2jp/html/modules/pm/templates/pm_pmlite_success.html:1.1.2.3.2.1 --- xoops2jp/html/modules/pm/templates/pm_pmlite_success.html:1.1.2.3 Thu Aug 17 18:09:51 2006 +++ xoops2jp/html/modules/pm/templates/pm_pmlite_success.html Sun Oct 15 23:16:41 2006 @@ -1,12 +1,11 @@ -
-
-
-

<{$smarty.const._MD_PM_MESSAGE_POSTED}>

-
+ From tom_g3x @ users.sourceforge.jp Sun Oct 15 23:16:41 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Sun, 15 Oct 2006 23:16:41 +0900 Subject: [xoops-cvslog 5343] CVS update: xoops2jp/html/modules/user/templates Message-ID: <20061015141641.5E82B2AC1DA@users.sourceforge.jp> Index: xoops2jp/html/modules/user/templates/user_delete_success.html diff -u xoops2jp/html/modules/user/templates/user_delete_success.html:1.1.2.2.2.2 xoops2jp/html/modules/user/templates/user_delete_success.html:1.1.2.2.2.3 --- xoops2jp/html/modules/user/templates/user_delete_success.html:1.1.2.2.2.2 Fri Oct 13 19:37:28 2006 +++ xoops2jp/html/modules/user/templates/user_delete_success.html Sun Oct 15 23:16:41 2006 @@ -1,6 +1,6 @@ -
-
- <{$smarty.const._MD_USER_MESSAGE_USER_DELETE_SUCCESS}> +
+

<{$smarty.const._MD_USER_MESSAGE_USER_DELETE_SUCCESS}>

+

»»<{$smarty.const._MAIN}> Index: xoops2jp/html/modules/user/templates/user_register_finish.html diff -u xoops2jp/html/modules/user/templates/user_register_finish.html:1.1.2.2 xoops2jp/html/modules/user/templates/user_register_finish.html:1.1.2.2.2.1 --- xoops2jp/html/modules/user/templates/user_register_finish.html:1.1.2.2 Wed Jul 19 19:21:40 2006 +++ xoops2jp/html/modules/user/templates/user_register_finish.html Sun Oct 15 23:16:41 2006 @@ -1 +1,8 @@ -
<{$complete_message|escape}>
\ No newline at end of file +
+

<{$complete_message|escape}>

+ +
+
+ »»<{$smarty.const._MAIN}> +
+
\ No newline at end of file From tom_g3x @ users.sourceforge.jp Sun Oct 15 23:16:41 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Sun, 15 Oct 2006 23:16:41 +0900 Subject: [xoops-cvslog 5344] CVS update: xoops2jp/html/modules/legacy/templates Message-ID: <20061015141641.8B0A42AC09C@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/templates/legacy_misc_friend_success.html diff -u xoops2jp/html/modules/legacy/templates/legacy_misc_friend_success.html:1.1.2.1 xoops2jp/html/modules/legacy/templates/legacy_misc_friend_success.html:1.1.2.2 --- xoops2jp/html/modules/legacy/templates/legacy_misc_friend_success.html:1.1.2.1 Sat Oct 14 23:55:20 2006 +++ xoops2jp/html/modules/legacy/templates/legacy_misc_friend_success.html Sun Oct 15 23:16:41 2006 @@ -1,3 +1,8 @@ -
+

<{$smarty.const._MSC_REFERENCESENT}>

+ +
+
+ »»<{$smarty.const._MAIN}> +
From tom_g3x @ users.sourceforge.jp Sun Oct 15 23:59:44 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Sun, 15 Oct 2006 23:59:44 +0900 Subject: [xoops-cvslog 5345] CVS update: xoops2jp/html/modules/user/admin/templates Message-ID: <20061015145944.6E5332AC05C@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/templates/mailjob_link_list.html diff -u xoops2jp/html/modules/user/admin/templates/mailjob_link_list.html:1.1.2.2 xoops2jp/html/modules/user/admin/templates/mailjob_link_list.html:1.1.2.3 --- xoops2jp/html/modules/user/admin/templates/mailjob_link_list.html:1.1.2.2 Sat Oct 14 22:11:40 2006 +++ xoops2jp/html/modules/user/admin/templates/mailjob_link_list.html Sun Oct 15 23:59:44 2006 @@ -1,9 +1,10 @@ -

<{$smarty.const._AD_USER_LANG_MAILJOB_LINK_LIST}>

+

<{$smarty.const._AD_USER_LANG_MAILJOB_LINK_LIST}>

<{if $actionForm->hasError()}>
@@ -34,17 +35,17 @@ <{foreach item=obj from=$objects}> - <{xoops_input type=checkbox name=uid key=$obj->get('uid')}> - <{$obj->getShow('uid')}> - <{$obj->get('uid')|xoops_user:uname}> - <{$obj->getShow('retry')}> - <{$obj->getShow('message')}> + <{xoops_input type=checkbox name=uid key=$obj->get('uid')}> + <{$obj->getShow('uid')}> + <{$obj->get('uid')|xoops_user:uname}> + <{$obj->getShow('retry')}> + <{$obj->getShow('message')}> <{/foreach}> + + + - - - From tom_g3x @ users.sourceforge.jp Mon Oct 16 00:29:46 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Mon, 16 Oct 2006 00:29:46 +0900 Subject: [xoops-cvslog 5346] CVS update: xoops2jp/html/modules/user/admin/templates Message-ID: <20061015152946.0F7232AC09C@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/templates/user_edit.html diff -u xoops2jp/html/modules/user/admin/templates/user_edit.html:1.1.2.21 xoops2jp/html/modules/user/admin/templates/user_edit.html:1.1.2.21.2.1 --- xoops2jp/html/modules/user/admin/templates/user_edit.html:1.1.2.21 Sun Aug 20 17:33:33 2006 +++ xoops2jp/html/modules/user/admin/templates/user_edit.html Mon Oct 16 00:29:45 2006 @@ -55,8 +55,7 @@ "> <{xoops_input type=text name=email value=$actionForm->get('email') size=30 maxlength=60}>
- <{xoops_input type=checkbox name=user_viewemail value=1 default=$actionForm->get('user_viewemail')}> - <{$smarty.const._MD_USER_LANG_USER_VIEWEMAIL}> + @@ -120,8 +119,7 @@ "> <{xoops_dhtmltarea name=user_sig value=$actionForm->get('user_sig')}>
- <{xoops_input type=checkbox name=attachsig value=1 default=$actionForm->get('attachsig')}> - <{$smarty.const._MD_USER_LANG_ATTACHSIG}> + @@ -178,10 +176,8 @@ <{$smarty.const._MD_USER_LANG_USER_MAILOK}> "> - <{xoops_input type=radio name=user_mailok value=1 default=$actionForm->get('user_mailok')}> - <{$smarty.const._YES}> - <{xoops_input type=radio name=user_mailok value=0 default=$actionForm->get('user_mailok')}> - <{$smarty.const._NO}> + + Index: xoops2jp/html/modules/user/admin/templates/user_search.html diff -u xoops2jp/html/modules/user/admin/templates/user_search.html:1.1.2.10 xoops2jp/html/modules/user/admin/templates/user_search.html:1.1.2.10.2.1 --- xoops2jp/html/modules/user/admin/templates/user_search.html:1.1.2.10 Mon Sep 25 18:41:32 2006 +++ xoops2jp/html/modules/user/admin/templates/user_search.html Mon Oct 16 00:29:45 2006 @@ -134,17 +134,17 @@ <{$smarty.const._AD_USER_LANG_DISPLAY_USER_MAIL_CONDITION}> "> - <{xoops_input type=radio name=mail_condition value=1}><{$smarty.const._AD_USER_LANG_MAIL_OK_USERS_ONLY}>
- <{xoops_input type=radio name=mail_condition value=2}><{$smarty.const._AD_USER_LANG_MAIL_NG_USERS_ONLY}>
- <{xoops_input type=radio name=mail_condition value=3 default=3}><{$smarty.const._AD_USER_LANG_ALL_OF_USERS}> +
+
+ <{$smarty.const._AD_USER_LANG_DISPLAY_USER_LEVEL}> "> - <{xoops_input type=radio name=user_level value=1}><{$smarty.const._AD_USER_LANG_APPROVE_USERS_ONLY}>
- <{xoops_input type=radio name=user_level value=2}><{$smarty.const._AD_USER_LANG_PENDING_USERS_ONLY}>
- <{xoops_input type=radio name=user_level value=3 default=3}><{$smarty.const._AD_USER_LANG_ALL_OF_USERS}> +
+
+ Index: xoops2jp/html/modules/user/admin/templates/ranks_edit.html diff -u xoops2jp/html/modules/user/admin/templates/ranks_edit.html:1.1.2.12 xoops2jp/html/modules/user/admin/templates/ranks_edit.html:1.1.2.12.2.1 --- xoops2jp/html/modules/user/admin/templates/ranks_edit.html:1.1.2.12 Sun Aug 20 17:33:33 2006 +++ xoops2jp/html/modules/user/admin/templates/ranks_edit.html Mon Oct 16 00:29:45 2006 @@ -59,8 +59,8 @@ <{$smarty.const._AD_USER_LANG_RANK_SPECIAL}> "> - <{xoops_input type=radio name=rank_special value=1 default=$actionForm->get('rank_special')}><{$smarty.const._YES}> - <{xoops_input type=radio name=rank_special value=0 default=$actionForm->get('rank_special')}><{$smarty.const._NO}> + + Index: xoops2jp/html/modules/user/admin/templates/avatar_edit.html diff -u xoops2jp/html/modules/user/admin/templates/avatar_edit.html:1.1.2.11 xoops2jp/html/modules/user/admin/templates/avatar_edit.html:1.1.2.11.2.1 --- xoops2jp/html/modules/user/admin/templates/avatar_edit.html:1.1.2.11 Sun Sep 17 23:53:21 2006 +++ xoops2jp/html/modules/user/admin/templates/avatar_edit.html Mon Oct 16 00:29:45 2006 @@ -59,8 +59,8 @@ <{$smarty.const._AD_USER_LANG_AVATAR_DISPLAY}> "> - <{xoops_input type=radio name=avatar_display value=1 default=$actionForm->get('avatar_display')}><{$smarty.const._YES}> - <{xoops_input type=radio name=avatar_display value=0 default=$actionForm->get('avatar_display')}><{$smarty.const._NO}> + + Index: xoops2jp/html/modules/user/admin/templates/group_perm.html diff -u xoops2jp/html/modules/user/admin/templates/group_perm.html:1.1.2.25 xoops2jp/html/modules/user/admin/templates/group_perm.html:1.1.2.25.2.1 --- xoops2jp/html/modules/user/admin/templates/group_perm.html:1.1.2.25 Mon Aug 28 01:00:10 2006 +++ xoops2jp/html/modules/user/admin/templates/group_perm.html Mon Oct 16 00:29:45 2006 @@ -61,7 +61,7 @@ <{foreach item=perm from=$systemPermissions key="perm_key" name="SysPer"}>  <{$perm->mItem->getName()|escape}> <{assign var="getId" value=$perm->getId() }> - mValue==2}>checked="checked"<{/if}> /><{$smarty.const._AD_USER_LANG_PERM_ADMIN}> + <{if $smarty.foreach.SysPer.last}> @@ -80,8 +80,8 @@ <{foreach item=perm from=$modulePermissions name="ModPer"}>  <{$perm->mItem->getName()|escape}> <{assign var="getId" value=$perm->getId() }> - mValue & 1}>checked="checked"<{/if}> /><{$smarty.const._AD_USER_LANG_PERM_ACCESS}> - mValue & 2}>checked="checked"<{/if}> /><{$smarty.const._AD_USER_LANG_PERM_ADMIN}> + + <{if $smarty.foreach.ModPer.last}> @@ -115,7 +115,7 @@ <{/if}> <{assign var="getId" value=$perm->getId() }> - mValue==1}>checked="checked"<{/if}> /><{$smarty.const._AD_USER_LANG_PERM_ACCESS}> + <{if $smarty.foreach.BlockPer.last}> Index: xoops2jp/html/modules/user/admin/templates/mailjob_edit.html diff -u xoops2jp/html/modules/user/admin/templates/mailjob_edit.html:1.1.2.12.2.1 xoops2jp/html/modules/user/admin/templates/mailjob_edit.html:1.1.2.12.2.2 --- xoops2jp/html/modules/user/admin/templates/mailjob_edit.html:1.1.2.12.2.1 Fri Oct 13 14:11:16 2006 +++ xoops2jp/html/modules/user/admin/templates/mailjob_edit.html Mon Oct 16 00:29:45 2006 @@ -66,15 +66,15 @@ <{$smarty.const._AD_USER_LANG_IS_PM}> "> - <{xoops_input type=radio name=is_pm value=1 default=$actionForm->get('is_pm')}><{$smarty.const._YES}> - <{xoops_input type=radio name=is_pm value=0 default=$actionForm->get('is_pm')}><{$smarty.const._NO}> + + <{$smarty.const._AD_USER_LANG_IS_MAIL}> "> - <{xoops_input type=radio name=is_mail value=1 default=$actionForm->get('is_mail')}><{$smarty.const._YES}> - <{xoops_input type=radio name=is_mail value=0 default=$actionForm->get('is_mail')}><{$smarty.const._NO}> + + From tom_g3x @ users.sourceforge.jp Mon Oct 16 00:29:46 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Mon, 16 Oct 2006 00:29:46 +0900 Subject: [xoops-cvslog 5347] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061015152946.474662AC0AB@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/comment_delete.html diff -u xoops2jp/html/modules/legacy/admin/templates/comment_delete.html:1.1.2.3 xoops2jp/html/modules/legacy/admin/templates/comment_delete.html:1.1.2.4 --- xoops2jp/html/modules/legacy/admin/templates/comment_delete.html:1.1.2.3 Sun Oct 15 01:54:59 2006 +++ xoops2jp/html/modules/legacy/admin/templates/comment_delete.html Mon Oct 16 00:29:46 2006 @@ -76,8 +76,8 @@ <{$smarty.const._AD_LEGACY_LANG_COM_SIG}> "> - <{xoops_input type=radio name=com_sig value=1 default=$object->get('com_sig') disabled=true}><{$smarty.const._YES}> - <{xoops_input type=radio name=com_sig value=0 default=$object->get('com_sig') disabled=true}><{$smarty.const._NO}> + + @@ -91,16 +91,11 @@ <{$smarty.const._AD_LEGACY_LANG_CONTROL}> "> - <{xoops_input type=checkbox name=dohtml value=1 default=$object->get('dohtml') disabled=true}> - <{$smarty.const._MD_LEGACY_LANG_DOHTML}>
- <{xoops_input type=checkbox name=dosmiley value=1 default=$object->get('dosmiley') disabled=true}> - <{$smarty.const._MD_LEGACY_LANG_DOSMILEY}>
- <{xoops_input type=checkbox name=doxcode value=1 default=$object->get('doxcode') disabled=true}> - <{$smarty.const._MD_LEGACY_LANG_DOXCODE}>
- <{xoops_input type=checkbox name=doimage value=1 default=$object->get('doimage') disabled=true}> - <{$smarty.const._AD_LEGACY_LANG_DOIMAGE}>
- <{xoops_input type=checkbox name=dobr value=1 default=$object->get('dobr') disabled=true}> - <{$smarty.const._MD_LEGACY_LANG_DOBR}> +
+
+
+
+ Index: xoops2jp/html/modules/legacy/admin/templates/preference_edit.html diff -u xoops2jp/html/modules/legacy/admin/templates/preference_edit.html:1.1.2.3 xoops2jp/html/modules/legacy/admin/templates/preference_edit.html:1.1.2.4 --- xoops2jp/html/modules/legacy/admin/templates/preference_edit.html:1.1.2.3 Sun Oct 15 01:54:59 2006 +++ xoops2jp/html/modules/legacy/admin/templates/preference_edit.html Mon Oct 16 00:29:46 2006 @@ -81,8 +81,8 @@ <{elseif $config->get('conf_formtype') == 'yesno'}> <{*TODO ID conflict*}> - <{xoops_input type=radio name=$config->get('conf_name') value=1 default=$actionForm->get($config->get('conf_name'))}><{$smarty.const._YES}> - <{xoops_input type=radio name=$config->get('conf_name') value=0 default=$actionForm->get($config->get('conf_name'))}><{$smarty.const._NO}> + + <{elseif $config->get('conf_formtype') == 'theme'}> Index: xoops2jp/html/modules/legacy/admin/templates/comment_view.html diff -u xoops2jp/html/modules/legacy/admin/templates/comment_view.html:1.1.2.3 xoops2jp/html/modules/legacy/admin/templates/comment_view.html:1.1.2.4 --- xoops2jp/html/modules/legacy/admin/templates/comment_view.html:1.1.2.3 Sun Oct 15 01:54:59 2006 +++ xoops2jp/html/modules/legacy/admin/templates/comment_view.html Mon Oct 16 00:29:46 2006 @@ -67,8 +67,8 @@ <{$smarty.const._AD_LEGACY_LANG_COM_SIG}> "> - <{xoops_input type=radio name=com_sig value=1 default=$object->get('com_sig') disabled=true}><{$smarty.const._YES}> - <{xoops_input type=radio name=com_sig value=0 default=$object->get('com_sig') disabled=true}><{$smarty.const._NO}> + + @@ -82,16 +82,11 @@ <{$smarty.const._AD_LEGACY_LANG_CONTROL}> "> - <{xoops_input type=checkbox name=dohtml value=1 default=$object->get('dohtml') disabled=true}> - <{$smarty.const._MD_LEGACY_LANG_DOHTML}>
- <{xoops_input type=checkbox name=dosmiley value=1 default=$object->get('dosmiley') disabled=true}> - <{$smarty.const._MD_LEGACY_LANG_DOSMILEY}>
- <{xoops_input type=checkbox name=doxcode value=1 default=$object->get('doxcode') disabled=true}> - <{$smarty.const._MD_LEGACY_LANG_DOXCODE}>
- <{xoops_input type=checkbox name=doimage value=1 default=$object->get('doimage') disabled=true}> - <{$smarty.const._AD_LEGACY_LANG_DOIMAGE}>
- <{xoops_input type=checkbox name=dobr value=1 default=$object->get('dobr') disabled=true}> - <{$smarty.const._MD_LEGACY_LANG_DOBR}> +
+
+
+
+ Index: xoops2jp/html/modules/legacy/admin/templates/legacy_xoops_confirm.html diff -u xoops2jp/html/modules/legacy/admin/templates/legacy_xoops_confirm.html:1.1.2.1 xoops2jp/html/modules/legacy/admin/templates/legacy_xoops_confirm.html:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/templates/legacy_xoops_confirm.html:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/admin/templates/legacy_xoops_confirm.html Mon Oct 16 00:29:46 2006 @@ -5,7 +5,7 @@ <{foreach key=key item=value from=$hiddens}> <{if is_array($value)}> <{foreach key=radioName item=radioValue from=$value}> - <{xoops_input type=radio name=$key value=$radioValue}><{$radioName|escape}>
+
<{/foreach}> <{else}> <{xoops_input type=hidden name=$key value=$value}> Index: xoops2jp/html/modules/legacy/admin/templates/smiles_edit.html diff -u xoops2jp/html/modules/legacy/admin/templates/smiles_edit.html:1.1.2.2 xoops2jp/html/modules/legacy/admin/templates/smiles_edit.html:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/templates/smiles_edit.html:1.1.2.2 Sun Oct 15 01:25:20 2006 +++ xoops2jp/html/modules/legacy/admin/templates/smiles_edit.html Mon Oct 16 00:29:46 2006 @@ -68,8 +68,8 @@ <{$smarty.const._AD_LEGACY_LANG_DISPLAY}> "> - <{xoops_input type=radio name=display value=1 default=$actionForm->get('display')}><{$smarty.const._YES}> - <{xoops_input type=radio name=display value=0 default=$actionForm->get('display')}><{$smarty.const._NO}> + + Index: xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html diff -u xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html:1.1.2.4 xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html:1.1.2.5 --- xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html:1.1.2.4 Sun Oct 15 15:17:23 2006 +++ xoops2jp/html/modules/legacy/admin/templates/module_uninstall.html Mon Oct 16 00:29:46 2006 @@ -73,7 +73,7 @@ - <{$smarty.const._AD_LEGACY_LANG_FORCE_MODE}> + Index: xoops2jp/html/modules/legacy/admin/templates/imagecategory_edit.html diff -u xoops2jp/html/modules/legacy/admin/templates/imagecategory_edit.html:1.1.2.2 xoops2jp/html/modules/legacy/admin/templates/imagecategory_edit.html:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/templates/imagecategory_edit.html:1.1.2.2 Sun Oct 15 01:18:21 2006 +++ xoops2jp/html/modules/legacy/admin/templates/imagecategory_edit.html Mon Oct 16 00:29:46 2006 @@ -93,8 +93,8 @@ <{$smarty.const._AD_LEGACY_LANG_IMGCAT_STORETYPE}> "> - <{xoops_input type=radio name=imgcat_storetype value="file" default=$actionForm->get('imgcat_storetype')}>FILE
- <{xoops_input type=radio name=imgcat_storetype value="db" default=$actionForm->get('imgcat_storetype')}>DB +
+ <{/if}> Index: xoops2jp/html/modules/legacy/admin/templates/install_wizard_licence.html diff -u xoops2jp/html/modules/legacy/admin/templates/install_wizard_licence.html:1.1.2.2 xoops2jp/html/modules/legacy/admin/templates/install_wizard_licence.html:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/templates/install_wizard_licence.html:1.1.2.2 Sun Oct 15 01:18:21 2006 +++ xoops2jp/html/modules/legacy/admin/templates/install_wizard_licence.html Mon Oct 16 00:29:46 2006 @@ -30,8 +30,8 @@ - <{$smarty.const._AD_LEGACY_LANG_AGREE}> - <{$smarty.const._AD_LEGACY_LANG_NO_AGREE}> + + Index: xoops2jp/html/modules/legacy/admin/templates/comment_edit.html diff -u xoops2jp/html/modules/legacy/admin/templates/comment_edit.html:1.1.2.2 xoops2jp/html/modules/legacy/admin/templates/comment_edit.html:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/templates/comment_edit.html:1.1.2.2 Sun Oct 15 01:16:46 2006 +++ xoops2jp/html/modules/legacy/admin/templates/comment_edit.html Mon Oct 16 00:29:46 2006 @@ -40,7 +40,7 @@ <{$smarty.const._MD_LEGACY_LANG_COM_ICON}> "> <{foreach item=icon from=$subjectIconArr}> - <{xoops_input type=radio name=com_icon value=$icon->get('filename') default=$actionForm->get('com_icon')}> + <{/foreach}> @@ -68,16 +68,11 @@ <{$smarty.const._AD_LEGACY_LANG_CONTROL}> "> - <{xoops_input type=checkbox name=dohtml value=1 default=$actionForm->get('dohtml')}> - <{$smarty.const._MD_LEGACY_LANG_DOHTML}>
- <{xoops_input type=checkbox name=dosmiley value=1 default=$actionForm->get('dosmiley')}> - <{$smarty.const._MD_LEGACY_LANG_DOSMILEY}>
- <{xoops_input type=checkbox name=doxcode value=1 default=$actionForm->get('doxcode')}> - <{$smarty.const._MD_LEGACY_LANG_DOXCODE}>
- <{xoops_input type=checkbox name=doimage value=1 default=$actionForm->get('doimage')}> - <{$smarty.const._AD_LEGACY_LANG_DOIMAGE}>
- <{xoops_input type=checkbox name=dobr value=1 default=$actionForm->get('dobr')}> - <{$smarty.const._MD_LEGACY_LANG_DOBR}> +
+
+
+
+ From tom_g3x @ users.sourceforge.jp Mon Oct 16 00:29:46 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Mon, 16 Oct 2006 00:29:46 +0900 Subject: [xoops-cvslog 5348] CVS update: xoops2jp/html/modules/legacy/templates Message-ID: <20061015152946.7CB272AC09C@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/templates/legacy_search_form.html diff -u xoops2jp/html/modules/legacy/templates/legacy_search_form.html:1.1.2.1 xoops2jp/html/modules/legacy/templates/legacy_search_form.html:1.1.2.2 --- xoops2jp/html/modules/legacy/templates/legacy_search_form.html:1.1.2.1 Sat Oct 14 23:55:20 2006 +++ xoops2jp/html/modules/legacy/templates/legacy_search_form.html Mon Oct 16 00:29:46 2006 @@ -31,7 +31,7 @@ <{$smarty.const._SR_SEARCHIN}> "> <{foreach item=module from=$moduleArr}> - checked<{/if}>><{$module.name|escape}> + <{/foreach}> Index: xoops2jp/html/modules/legacy/templates/legacy_comment_edit.html diff -u xoops2jp/html/modules/legacy/templates/legacy_comment_edit.html:1.1.2.2 xoops2jp/html/modules/legacy/templates/legacy_comment_edit.html:1.1.2.3 --- xoops2jp/html/modules/legacy/templates/legacy_comment_edit.html:1.1.2.2 Sun Oct 15 01:44:53 2006 +++ xoops2jp/html/modules/legacy/templates/legacy_comment_edit.html Mon Oct 16 00:29:46 2006 @@ -42,7 +42,7 @@ <{$smarty.const._MD_LEGACY_LANG_COM_ICON}> "> <{foreach item=icon from=$subjectIcons}> - <{xoops_input type=radio name=com_icon value=$icon->get('filename') default=$actionForm->get('filename')}> + <{/foreach}> @@ -56,15 +56,11 @@ <{$smarty.const._MD_LEGACY_LANG_OPTION}> "> <{if $xoops_isadmin}> - <{xoops_input type=checkbox name=dohtml value=1 default=$actionForm->get('dohtml')}> - <{$smarty.const._MD_LEGACY_LANG_DOHTML}>
+
<{/if}> - <{xoops_input type=checkbox name=dosmiley value=1 default=$actionForm->get('dosmiley')}> - <{$smarty.const._MD_LEGACY_LANG_DOSMILEY}>
- <{xoops_input type=checkbox name=doxcode value=1 default=$actionForm->get('doxcode')}> - <{$smarty.const._MD_LEGACY_LANG_DOXCODE}>
- <{xoops_input type=checkbox name=dobr value=1 default=$actionForm->get('dobr')}> - <{$smarty.const._MD_LEGACY_LANG_DOBR}> +
+
+ Index: xoops2jp/html/modules/legacy/templates/legacy_xoops_confirm.html diff -u xoops2jp/html/modules/legacy/templates/legacy_xoops_confirm.html:1.1.2.1 xoops2jp/html/modules/legacy/templates/legacy_xoops_confirm.html:1.1.2.2 --- xoops2jp/html/modules/legacy/templates/legacy_xoops_confirm.html:1.1.2.1 Sat Oct 14 23:55:20 2006 +++ xoops2jp/html/modules/legacy/templates/legacy_xoops_confirm.html Mon Oct 16 00:29:46 2006 @@ -5,7 +5,7 @@ <{foreach key=key item=value from=$hiddens}> <{if is_array($value)}> <{foreach key=radioName item=radioValue from=$value}> - <{xoops_input type=radio name=$key value=$radioValue}><{$radioName|escape}>
+
<{/foreach}> <{else}> <{xoops_input type=hidden name=$key value=$value}> From tom_g3x @ users.sourceforge.jp Mon Oct 16 00:29:46 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Mon, 16 Oct 2006 00:29:46 +0900 Subject: [xoops-cvslog 5349] CVS update: xoops2jp/html/modules/user/templates/blocks Message-ID: <20061015152946.A47982AC0AB@users.sourceforge.jp> Index: xoops2jp/html/modules/user/templates/blocks/user_block_login.html diff -u xoops2jp/html/modules/user/templates/blocks/user_block_login.html:1.1.2.1 xoops2jp/html/modules/user/templates/blocks/user_block_login.html:1.1.2.1.2.1 --- xoops2jp/html/modules/user/templates/blocks/user_block_login.html:1.1.2.1 Fri Mar 24 22:04:25 2006 +++ xoops2jp/html/modules/user/templates/blocks/user_block_login.html Mon Oct 16 00:29:46 2006 @@ -3,7 +3,7 @@ <{xoops_input type=text name=uname size=12 value=$block.unamevalue maxlength=25}>
<{$smarty.const._MB_USER_PASSWORD}>
<{xoops_input type=password name=pass size=12 maxlength=32 }>
- + <{xoops_input type=hidden name=xoops_redirect value=$xoops_requesturi}> <{xoops_input type=hidden name=op value=login}> <{xoops_input type=submit name=submit value=$smarty.const._MB_USER_LOGIN}>
From tom_g3x @ users.sourceforge.jp Mon Oct 16 00:29:46 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Mon, 16 Oct 2006 00:29:46 +0900 Subject: [xoops-cvslog 5350] CVS update: xoops2jp/html/modules/legacyRender/admin/templates Message-ID: <20061015152946.CE81C2AC09C@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/templates/banner_edit.html diff -u xoops2jp/html/modules/legacyRender/admin/templates/banner_edit.html:1.1.2.13 xoops2jp/html/modules/legacyRender/admin/templates/banner_edit.html:1.1.2.13.2.1 --- xoops2jp/html/modules/legacyRender/admin/templates/banner_edit.html:1.1.2.13 Sat Aug 19 20:06:35 2006 +++ xoops2jp/html/modules/legacyRender/admin/templates/banner_edit.html Mon Oct 16 00:29:46 2006 @@ -78,8 +78,7 @@ <{$smarty.const._AD_LEGACYRENDER_LANG_HTMLCODE}> "> <{xoops_textarea name=htmlcode cols=50 rows=10 value=$actionForm->get('htmlcode')}>
- <{xoops_input type=checkbox name=htmlbanner value=1 default=$actionForm->get('htmlbanner')}> - <{$smarty.const._AD_LEGACYRENDER_LANG_HTMLBANNER}> + From tom_g3x @ users.sourceforge.jp Mon Oct 16 00:29:47 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Mon, 16 Oct 2006 00:29:47 +0900 Subject: [xoops-cvslog 5351] CVS update: xoops2jp/html/modules/user/templates Message-ID: <20061015152947.0501E2AC0AB@users.sourceforge.jp> Index: xoops2jp/html/modules/user/templates/user_register_form.html diff -u xoops2jp/html/modules/user/templates/user_register_form.html:1.1.2.11 xoops2jp/html/modules/user/templates/user_register_form.html:1.1.2.11.2.1 --- xoops2jp/html/modules/user/templates/user_register_form.html:1.1.2.11 Wed Sep 6 18:00:21 2006 +++ xoops2jp/html/modules/user/templates/user_register_form.html Mon Oct 16 00:29:46 2006 @@ -22,8 +22,7 @@ <{$smarty.const._MD_USER_LANG_EMAIL}> "> <{xoops_input name=email size=30 maxlength=60 value=$actionForm->get('email')}>
- <{xoops_input type=checkbox name=user_viewemail value=1 default=$actionForm->get('user_viewemail')}> - <{$smarty.const._MD_USER_LANG_USER_VIEWEMAIL}> + @@ -55,8 +54,7 @@ <{$smarty.const._MD_USER_LANG_DISCLAIMER}> "> <{xoops_textarea name=disclaimer rows=8 cols=50 readonly=true value=$disclaimer}>
- <{xoops_input type=checkbox name=agree value=1 default=$actionForm->get('agree')}> - <{$smarty.const._MD_USER_MESSAGE_IAGREE}> + <{/if}> Index: xoops2jp/html/modules/user/templates/user_edituser.html diff -u xoops2jp/html/modules/user/templates/user_edituser.html:1.1.2.12 xoops2jp/html/modules/user/templates/user_edituser.html:1.1.2.12.2.1 --- xoops2jp/html/modules/user/templates/user_edituser.html:1.1.2.12 Sat Aug 19 20:55:32 2006 +++ xoops2jp/html/modules/user/templates/user_edituser.html Mon Oct 16 00:29:46 2006 @@ -35,7 +35,7 @@ <{$smarty.const._MD_USER_LANG_EMAIL}> "> <{xoops_input name=email size=30 maxlength=60 value=$actionForm->get('email')}>
- <{xoops_input type=checkbox name=user_viewemail value=1 default=$actionForm->get('user_viewemail')}><{$smarty.const._MD_USER_LANG_USER_VIEWEMAIL}> + <{/if}> @@ -99,7 +99,7 @@ <{$smarty.const._MD_USER_LANG_USER_SIG}> "> <{xoops_dhtmltarea name=user_sig value=$actionForm->get('user_sig')}>
- <{xoops_input type=checkbox name=attachsig value=1 default=$actionForm->get('attachsig')}><{$smarty.const._MD_USER_LANG_ATTACHSIG}> + @@ -143,15 +143,15 @@ <{$smarty.const._MD_USER_LANG_USERCOOKIE}> "> - <{xoops_input type=radio name=usercookie value=1 default=$actionForm->get('usercookie')}><{$smarty.const._YES}> - <{xoops_input type=radio name=usercookie value=0 default=$actionForm->get('usercookie')}><{$smarty.const._NO}> + + <{$smarty.const._MD_USER_LANG_USER_MAILOK}> "> - <{xoops_input type=radio name=user_mailok value=1 default=$actionForm->get('user_mailok')}><{$smarty.const._YES}> - <{xoops_input type=radio name=user_mailok value=0 default=$actionForm->get('user_mailok')}><{$smarty.const._NO}> + + From minahito @ users.sourceforge.jp Mon Oct 16 15:16:17 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 16 Oct 2006 15:16:17 +0900 Subject: [xoops-cvslog 5352] CVS update: xoops2jp/html/modules/legacyRender/admin/forms Message-ID: <20061016061617.02C172AC022@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php:1.1.2.1.2.2 xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php:1.1.2.1.2.3 --- xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php:1.1.2.1.2.2 Thu Oct 12 22:56:57 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/TplfileSetFilterForm.class.php Mon Oct 16 15:16:17 2006 @@ -55,6 +55,8 @@ $this->mNavi->setPerpage(0); $this->mNavi->freezePerpage(); } + + $this->_mCriteria->addSort($this->getSort(), $this->getOrder()); } } From minahito @ users.sourceforge.jp Mon Oct 16 15:16:39 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 16 Oct 2006 15:16:39 +0900 Subject: [xoops-cvslog 5353] CVS update: xoops2jp/html/modules/legacyRender/admin/forms Message-ID: <20061016061639.BF4502AC022@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php:1.1.2.8.2.2 xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php:1.1.2.8.2.3 --- xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php:1.1.2.8.2.2 Thu Oct 12 22:56:57 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php Mon Oct 16 15:16:39 2006 @@ -61,9 +61,6 @@ $this->_mCriteria->add(new Criteria('tpl_file', '%' . xoops_getrequest('tpl_file') . '%', 'LIKE')); } - // - // @todo We can remove the following code: - // $this->_mCriteria->addSort($this->getSort(), $this->getOrder()); } } From minahito @ users.sourceforge.jp Mon Oct 16 15:48:19 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 16 Oct 2006 15:48:19 +0900 Subject: [xoops-cvslog 5354] CVS update: xoops2jp/html/modules/legacyRender/admin/forms Message-ID: <20061016064819.2466D2AC062@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php:1.1.2.8.2.3 xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php:1.1.2.8.2.4 --- xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php:1.1.2.8.2.3 Mon Oct 16 15:16:39 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/TplfileFilterForm.class.php Mon Oct 16 15:48:19 2006 @@ -15,12 +15,11 @@ define('TPLFILE_SORT_KEY_TPL_TYPE', 9); define('TPLFILE_SORT_KEY_MAXVALUE', 9); -define('TPLFILE_SORT_KEY_DEFAULT', TPLFILE_SORT_KEY_TPL_ID); +define('TPLFILE_SORT_KEY_DEFAULT', TPLFILE_SORT_KEY_TPL_FILE); class LegacyRender_TplfileFilterForm extends LegacyRender_AbstractFilterForm { var $mSortKeys = array( - TPLFILE_SORT_KEY_DEFAULT => 'tpl_id', TPLFILE_SORT_KEY_TPL_ID => 'tpl_id', TPLFILE_SORT_KEY_TPL_REFID => 'tpl_refid', TPLFILE_SORT_KEY_TPL_MODULE => 'tpl_module', @@ -35,6 +34,11 @@ var $mTplset = null; var $mModule = null; + function getDefaultSortKey() + { + return TPLFILE_SORT_KEY_DEFAULT; + } + function fetch() { parent::fetch(); From minahito @ users.sourceforge.jp Mon Oct 16 15:49:41 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 16 Oct 2006 15:49:41 +0900 Subject: [xoops-cvslog 5355] CVS update: xoops2jp/html/modules/pm/forms Message-ID: <20061016064941.380DF2AC086@users.sourceforge.jp> Index: xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php diff -u xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php:1.1.2.10.2.4 xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php:1.1.2.10.2.5 --- xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php:1.1.2.10.2.4 Sat Oct 7 15:36:56 2006 +++ xoops2jp/html/modules/pm/forms/PmliteEditForm.class.php Mon Oct 16 15:49:41 2006 @@ -205,7 +205,7 @@ // // Create subject // - if (preg_match("/^Re\[(\d+)\]:(.*)", $pm->get('subject'), $matches)) { + if (preg_match("/^Re\[(\d+)\]:(.*)/", $pm->get('subject'), $matches)) { $form->set('subject', "Re[" . $matches[1] . "]: " . $matches[2]); } elseif (preg_match("/^Re:(.*)/", $pm->get('subject'), $matches)) { From minahito @ users.sourceforge.jp Mon Oct 16 16:38:16 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 16 Oct 2006 16:38:16 +0900 Subject: [xoops-cvslog 5356] CVS update: xoops2jp/html/core Message-ID: <20061016073816.E92902AC05F@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_FormFile.class.php diff -u xoops2jp/html/core/XCube_FormFile.class.php:1.1.2.1 xoops2jp/html/core/XCube_FormFile.class.php:1.1.2.2 --- xoops2jp/html/core/XCube_FormFile.class.php:1.1.2.1 Fri Sep 29 17:13:22 2006 +++ xoops2jp/html/core/XCube_FormFile.class.php Mon Oct 16 16:38:16 2006 @@ -1,7 +1,7 @@ getFileName(); - if(preg_match("/\.(\w+)$/",$filename,$match)) + if (preg_match("/\.([a-z\.]+)$/", $filename, $match)) { $ret=$match[1]; + } return $ret; } From minahito @ users.sourceforge.jp Mon Oct 16 16:38:39 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 16 Oct 2006 16:38:39 +0900 Subject: [xoops-cvslog 5357] CVS update: xoops2jp/html/modules/legacy/admin Message-ID: <20061016073839.93ED42AC056@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/menu.php diff -u xoops2jp/html/modules/legacy/admin/menu.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/menu.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/menu.php:1.1.2.2 Sun Oct 15 00:45:47 2006 +++ xoops2jp/html/modules/legacy/admin/menu.php Mon Oct 16 16:38:39 2006 @@ -3,44 +3,48 @@ * @version $Id$ */ -$adminmenu[1]['title']=_MI_LEGACY_MENU_ACTIONSEARCH; -$adminmenu[1]['link']="admin/index.php?action=ActSearch"; +$adminmenu[10]['title']=_MI_LEGACY_MENU_ACTIONSEARCH; +$adminmenu[10]['link']="admin/index.php?action=ActSearch"; -$adminmenu[2]['title']=_MI_LEGACY_MENU_PREFERENCE; -$adminmenu[2]['link']="admin/index.php?action=PreferenceList"; +$adminmenu[20]['title']=_MI_LEGACY_MENU_MODULELIST; +$adminmenu[20]['keywords']=_MI_LEGACY_KEYWORD_MODULELIST; +$adminmenu[20]['link']="admin/index.php?action=ModuleList"; -$adminmenu[3]['title']=_MI_LEGACY_MENU_MODULELIST; -$adminmenu[3]['keywords']=_MI_LEGACY_KEYWORD_MODULELIST; -$adminmenu[3]['link']="admin/index.php?action=ModuleList"; +$adminmenu[30]['title']=_MI_LEGACY_MENU_MODULEINSTALL; +$adminmenu[30]['keywords']=_MI_LEGACY_KEYWORD_MODULEINSTALL; +$adminmenu[30]['link']="admin/index.php?action=InstallList"; -$adminmenu[4]['title']=_MI_LEGACY_MENU_MODULEINSTALL; -$adminmenu[4]['keywords']=_MI_LEGACY_KEYWORD_MODULEINSTALL; -$adminmenu[4]['link']="admin/index.php?action=InstallList"; +$adminmenu[40]['title']=_MI_LEGACY_MENU_BLOCKLIST; +$adminmenu[40]['keywords']=_MI_LEGACY_KEYWORD_BLOCKLIST; +$adminmenu[40]['link']="admin/index.php?action=BlockList"; -$adminmenu[5]['title']=_MI_LEGACY_MENU_BLOCKLIST; -$adminmenu[5]['keywords']=_MI_LEGACY_KEYWORD_BLOCKLIST; -$adminmenu[5]['link']="admin/index.php?action=BlockList"; +$adminmenu[50]['title']=_MI_LEGACY_MENU_BLOCKINSTALL; +$adminmenu[50]['keywords']=_MI_LEGACY_KEYWORD_BLOCKINSTALL; +$adminmenu[50]['link']="admin/index.php?action=BlockInstallList"; -$adminmenu[6]['title']=_MI_LEGACY_MENU_BLOCKINSTALL; -$adminmenu[6]['keywords']=_MI_LEGACY_KEYWORD_BLOCKINSTALL; -$adminmenu[6]['link']="admin/index.php?action=BlockInstallList"; +$adminmenu[60]['title']=_MI_LEGACY_MENU_CREATE_SMILES; +$adminmenu[60]['link']="admin/index.php?action=SmilesEdit"; +$adminmenu[60]['keywords']=_MI_LEGACY_KEYWORD_CREATE_SMILES; +$adminmenu[60]['show']=false; -$adminmenu[7]['title']=_MI_LEGACY_MENU_CREATE_SMILES; -$adminmenu[7]['link']="admin/index.php?action=SmilesEdit"; -$adminmenu[7]['keywords']=_MI_LEGACY_KEYWORD_CREATE_SMILES; -$adminmenu[7]['show']=false; +$adminmenu[70]['title']=_MI_LEGACY_MENU_SMILES_MANAGE; +$adminmenu[70]['keywords']=_MI_LEGACY_KEYWORD_SMILES_MANAGE; +$adminmenu[70]['link']="admin/index.php?action=SmilesList"; -$adminmenu[8]['title']=_MI_LEGACY_MENU_SMILES_MANAGE; -$adminmenu[8]['keywords']=_MI_LEGACY_KEYWORD_SMILES_MANAGE; -$adminmenu[8]['link']="admin/index.php?action=SmilesList"; +$adminmenu[80]['title']=_MI_LEGACY_MENU_COMMENT_MANAGE; +$adminmenu[80]['link']="admin/index.php?action=CommentList"; -$adminmenu[9]['title']=_MI_LEGACY_MENU_COMMENT_MANAGE; -$adminmenu[9]['link']="admin/index.php?action=CommentList"; +$adminmenu[90]['title']=_MI_LEGACY_MENU_IMAGE_MANAGE; +$adminmenu[90]['link']="admin/index.php?action=ImagecategoryList"; -$adminmenu[10]['title']=_MI_LEGACY_MENU_IMAGE_MANAGE; -$adminmenu[10]['link']="admin/index.php?action=ImagecategoryList"; +$adminmenu[100]['title']=_MI_LEGACY_MENU_THEME_MANAGE; +$adminmenu[100]['link']="admin/index.php?action=ThemeList"; + +$adminmenu[110]['title']=_MI_LEGACY_MENU_GENERAL_SETTINGS; +$adminmenu[110]['link']="admin/index.php?action=PreferenceEdit&confcat_id=1"; + +$adminmenu[120]['title']=_MI_LEGACY_MENU_XOOPS_CONFIG; +$adminmenu[120]['link']="admin/index.php?action=PreferenceList"; -$adminmenu[11]['title']=_MI_LEGACY_MENU_THEME_MANAGE; -$adminmenu[11]['link']="admin/index.php?action=ThemeList"; ?> From minahito @ users.sourceforge.jp Mon Oct 16 16:38:53 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 16 Oct 2006 16:38:53 +0900 Subject: [xoops-cvslog 5358] CVS update: xoops2jp/html/modules/legacy/class Message-ID: <20061016073853.D56BA2AC056@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/class/DebuggerManager.class.php diff -u xoops2jp/html/modules/legacy/class/DebuggerManager.class.php:1.1.2.2 xoops2jp/html/modules/legacy/class/DebuggerManager.class.php:removed --- xoops2jp/html/modules/legacy/class/DebuggerManager.class.php:1.1.2.2 Sun Oct 15 17:17:54 2006 +++ xoops2jp/html/modules/legacy/class/DebuggerManager.class.php Mon Oct 16 16:38:53 2006 @@ -1,177 +0,0 @@ - // -// ------------------------------------------------------------------------ // -// 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(); - -require_once XOOPS_ROOT_PATH . "/class/errorhandler.php"; - -define("XOOPS_DEBUG_OFF",0); -define("XOOPS_DEBUG_PHP",1); -define("XOOPS_DEBUG_MYSQL",2); -define("XOOPS_DEBUG_SMARTY",3); - -class Legacy_DebuggerManager -{ - function getInstance($debug_mode) - { - static $instance = array(); - - if (empty($instance[$debug_mode])) { - $instance[$debug_mode] =& Legacy_DebuggerManager::_createInstance($debug_mode); - } - - return $instance[$debug_mode]; - } - - /** - Create XoopsDebugger instance. - You must not communicate with this method directly. - */ - function &_createInstance($debug_mode) - { - $instance = null; - switch($debug_mode) { - case XOOPS_DEBUG_PHP: - $instance =& new Legacy_PHPDebugger(); - break; - - case XOOPS_DEBUG_MYSQL: - $instance =& new Legacy_MysqlDebugger(); - break; - - case XOOPS_DEBUG_SMARTY: - $instance =& new Legacy_SmartyDebugger(); - break; - - case XOOPS_DEBUG_OFF: - default: - // @todo I can not realize abstract class to instance. - $instance =& new Legacy_AbstractDebugger(); - break; - } - - return $instance; - } -} - -class Legacy_AbstractDebugger -{ - function Legacy_AbstractDebugger() - { - } - - function prepare() - { - } - - function isDebugRenderSystem() - { - return false; - } - - /** - * @return string Log as html code. - */ - function renderLog() - { - } - - function displayLog() - { - } -} - -/** -This class works for "PHP debugging mode". -*/ -class Legacy_PHPDebugger extends Legacy_AbstractDebugger -{ - function prepare() - { - error_reporting(E_ALL); - $GLOBALS['xoopsErrorHandler'] =& XoopsErrorHandler::getInstance(); - $GLOBALS['xoopsErrorHandler']->activate(true); - } -} - -/** -This class works for "Mysql debugging mode". -*/ -class Legacy_MysqlDebugger extends Legacy_AbstractDebugger -{ - function prepare() - { - $GLOBALS['xoopsErrorHandler'] =& XoopsErrorHandler::getInstance(); - $GLOBALS['xoopsErrorHandler']->activate(true); - } - - function renderLog() - { - $xoopsLogger =& XoopsLogger::instance(); - return $xoopsLogger->dumpAll(); - } - - function displayLog() - { - echo ''; - } -} - - -/** -This class works for "Smarty debugging mode". -*/ -class Legacy_SmartyDebugger extends Legacy_AbstractDebugger -{ - function prepare() - { - $GLOBALS['xoopsErrorHandler'] =& XoopsErrorHandler::getInstance(); - $GLOBALS['xoopsErrorHandler']->activate(true); - } - - function isDebugRenderSystem() - { - $root =& XCube_Root::getSingleton(); - $user =& $root->mContext->mXoopsUser; - - return is_object($user) ? $user->isAdmin(0) : false; - } -} - -?> \ No newline at end of file Index: xoops2jp/html/modules/legacy/class/Legacy_Debugger.class.php diff -u /dev/null xoops2jp/html/modules/legacy/class/Legacy_Debugger.class.php:1.1.2.1 --- /dev/null Mon Oct 16 16:38:53 2006 +++ xoops2jp/html/modules/legacy/class/Legacy_Debugger.class.php Mon Oct 16 16:38:53 2006 @@ -0,0 +1,181 @@ + // +// ------------------------------------------------------------------------ // +// 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(); + +require_once XOOPS_ROOT_PATH . "/class/errorhandler.php"; + +define("XOOPS_DEBUG_OFF",0); +define("XOOPS_DEBUG_PHP",1); +define("XOOPS_DEBUG_MYSQL",2); +define("XOOPS_DEBUG_SMARTY",3); + +class Legacy_DebuggerManager +{ + function getInstance($debug_mode) + { + static $instance = array(); + + if (empty($instance[$debug_mode])) { + $instance[$debug_mode] =& Legacy_DebuggerManager::_createInstance($debug_mode); + } + + return $instance[$debug_mode]; + } + + /** + Create XoopsDebugger instance. + You must not communicate with this method directly. + */ + function createInstance(&$instance, $debug_mode) + { + if (is_object($instance)) { + return; + } + + switch($debug_mode) { + case XOOPS_DEBUG_PHP: + $instance = new Legacy_PHPDebugger(); + break; + + case XOOPS_DEBUG_MYSQL: + $instance = new Legacy_MysqlDebugger(); + break; + + case XOOPS_DEBUG_SMARTY: + $instance = new Legacy_SmartyDebugger(); + break; + + case XOOPS_DEBUG_OFF: + default: + $instance = new Legacy_NonDebugger(); + break; + } + } +} + +class Legacy_AbstractDebugger +{ + function Legacy_AbstractDebugger() + { + } + + function prepare() + { + } + + function isDebugRenderSystem() + { + return false; + } + + /** + * @return string Log as html code. + */ + function renderLog() + { + } + + function displayLog() + { + } +} + +class Legacy_NonDebugger extends Legacy_AbstractDebugger +{ +} + +/** +This class works for "PHP debugging mode". +*/ +class Legacy_PHPDebugger extends Legacy_AbstractDebugger +{ + function prepare() + { + error_reporting(E_ALL); + $GLOBALS['xoopsErrorHandler'] =& XoopsErrorHandler::getInstance(); + $GLOBALS['xoopsErrorHandler']->activate(true); + } +} + +/** +This class works for "Mysql debugging mode". +*/ +class Legacy_MysqlDebugger extends Legacy_AbstractDebugger +{ + function prepare() + { + $GLOBALS['xoopsErrorHandler'] =& XoopsErrorHandler::getInstance(); + $GLOBALS['xoopsErrorHandler']->activate(true); + } + + function renderLog() + { + $xoopsLogger =& XoopsLogger::instance(); + return $xoopsLogger->dumpAll(); + } + + function displayLog() + { + echo ''; + } +} + + +/** +This class works for "Smarty debugging mode". +*/ +class Legacy_SmartyDebugger extends Legacy_AbstractDebugger +{ + function prepare() + { + $GLOBALS['xoopsErrorHandler'] =& XoopsErrorHandler::getInstance(); + $GLOBALS['xoopsErrorHandler']->activate(true); + } + + function isDebugRenderSystem() + { + $root =& XCube_Root::getSingleton(); + $user =& $root->mContext->mXoopsUser; + + return is_object($user) ? $user->isAdmin(0) : false; + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Mon Oct 16 16:39:20 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 16 Oct 2006 16:39:20 +0900 Subject: [xoops-cvslog 5359] CVS update: xoops2jp/html/modules/legacy/kernel Message-ID: <20061016073920.D00C92AC05F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.2 xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.2 Sun Oct 15 01:39:29 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php Mon Oct 16 16:39:20 2006 @@ -18,6 +18,7 @@ require_once XOOPS_ROOT_PATH . "/modules/legacy/kernel/Legacy_CacheInformation.class.php"; require_once XOOPS_ROOT_PATH . "/modules/legacy/kernel/Legacy_PublicControllerStrategy.class.php"; +require_once XOOPS_ROOT_PATH . "/modules/legacy/class/Legacy_Debugger.class.php"; /** * This class is a virtual controller that has the compatibility with XOOPS 2.0.x. @@ -84,6 +85,11 @@ var $mGetLanguageName = null; /** + * @var XCube_Delegate + */ + var $mSetupDebugger = null; + + /** * @var XoopsLogger */ var $mLogger = null; @@ -116,6 +122,9 @@ $this->mCheckEnableModuleCache =& new XCube_Delegate(); $this->mGetModuleCacheFilePath =& new XCube_Delegate(); $this->mGetBlockCacheFilePath =& new XCube_Delegate(); + + $this->mSetupDebugger =& new XCube_Delegate(); + $this->mSetupDebugger->add('Legacy_DebuggerManager::createInstance'); set_magic_quotes_runtime(0); // ^^; } @@ -598,14 +607,12 @@ { error_reporting(0); - require_once XOOPS_LEGACY_PATH . "/class/DebuggerManager.class.php"; - $debug_mode = $this->mRoot->mContext->mXoopsConfig['debug_mode']; if (defined("OH_MY_GOD_HELP_ME")) { $debug_mode = XOOPS_DEBUG_PHP; } - $this->mDebugger =& Legacy_DebuggerManager::getInstance($debug_mode); + $this->mSetupDebugger->call(new XCube_Ref($this->mDebugger), $debug_mode); $this->mDebugger->prepare(); $GLOBALS['xoopsDebugger']=&$this->mDebugger; From minahito @ users.sourceforge.jp Mon Oct 16 16:40:00 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 16 Oct 2006 16:40:00 +0900 Subject: [xoops-cvslog 5360] CVS update: xoops2jp/html/modules/legacy/language/english Message-ID: <20061016074000.69BB92AC05F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/language/english/modinfo.php diff -u xoops2jp/html/modules/legacy/language/english/modinfo.php:1.1.2.2 xoops2jp/html/modules/legacy/language/english/modinfo.php:1.1.2.3 --- xoops2jp/html/modules/legacy/language/english/modinfo.php:1.1.2.2 Sun Oct 15 01:41:42 2006 +++ xoops2jp/html/modules/legacy/language/english/modinfo.php Mon Oct 16 16:40:00 2006 @@ -27,14 +27,15 @@ define('_MI_LEGACY_MENU_BLOCKLIST', "Block Management"); define('_MI_LEGACY_MENU_COMMENT_MANAGE', "Comment Management"); define('_MI_LEGACY_MENU_CREATE_SMILES', "Create Smilies"); +define('_MI_LEGACY_MENU_GENERAL_SETTINGS', "General Settings"); define('_MI_LEGACY_MENU_IMAGE_MANAGE', "Image Management"); define('_MI_LEGACY_MENU_MODULEINSTALL', "Module Installation"); define('_MI_LEGACY_MENU_MODULELIST', "Module Management"); define('_MI_LEGACY_MENU_PREFERENCE', "Preferences"); define('_MI_LEGACY_MENU_SMILES_MANAGE', "Smilies Management"); define('_MI_LEGACY_MENU_THEME_MANAGE', "Theme Management"); +define('_MI_LEGACY_MENU_XOOPS_CONFIG', "XOOPS Config"); define('_MI_LEGACY_NAME', "Legacy System"); define('_MI_LEGACY_NAME_DESC', "This module provides compatibility between XOOPS Cube and XOOPS 2.0.x."); - -?> \ No newline at end of file +?> From minahito @ users.sourceforge.jp Mon Oct 16 16:40:12 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 16 Oct 2006 16:40:12 +0900 Subject: [xoops-cvslog 5361] CVS update: xoops2jp/html/modules/legacy/language/japanese Message-ID: <20061016074012.672CB2AC056@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/language/japanese/admin.php diff -u xoops2jp/html/modules/legacy/language/japanese/admin.php:1.1.2.2 xoops2jp/html/modules/legacy/language/japanese/admin.php:1.1.2.3 --- xoops2jp/html/modules/legacy/language/japanese/admin.php:1.1.2.2 Sun Oct 15 01:42:05 2006 +++ xoops2jp/html/modules/legacy/language/japanese/admin.php Mon Oct 16 16:40:12 2006 @@ -233,8 +233,8 @@ define('_AD_LEGACY_MESSAGE_INSERT_CONFIG', "コンフィグ {0} を追加しました"); define('_AD_LEGACY_MESSAGE_INSTALLATION_MODULE_SUCCESSFUL', "{0} モジュールのインストールに成功しました"); define('_AD_LEGACY_MESSAGE_TEMPLATE_INSTALLED', "テンプレート {0} をインストールしました"); -define('_AD_LEGACY_MESSAGE_UNINSTALLATION_MODULE_SUCCESSFUL', "{0} モジュールのアンインストールに成功しました"); define('_AD_LEGACY_MESSAGE_UNINSTALLATION_BLOCK_SUCCESSFUL', "{0} ブロックのアンインストールに成功しました"); +define('_AD_LEGACY_MESSAGE_UNINSTALLATION_MODULE_SUCCESSFUL', "{0} モジュールのアンインストールに成功しました"); define('_AD_LEGACY_MESSAGE_UPDATE_STARTED', "アップデートを開始します"); define('_AD_LEGACY_MESSAGE_UPDATING_MODULE_SUCCESSFUL', "{0} モジュールのアップデートに成功しました"); define('_AD_LEGACY_TIPS_ADD_CUSTOM_BLOCK', "新しいブロックをインストールして、サイトをカスタマイズしましょう。
モジュール付属のブロック以外にも、カスタムブロックを追加して、自由なメッセージをブロックカラムに追加できます。"); @@ -285,7 +285,7 @@ define('_MD_AM_DOSEARCHDSC', "サイト内の投稿/記事の全検索を行います。"); define('_MD_AM_DTHEME', "デフォルト・サイトテーマ"); define('_MD_AM_DTPLSET', "デフォルトのテンプレート・セット"); -define('_MD_AM_GENERAL', "一般設定"); +define('_MD_AM_GENERAL', "全般設定"); define('_MD_AM_IFUCANT', "もしファイルのアクセス権限を変更できない場合は、このファイルを直接編集してください。"); define('_MD_AM_INVLDMINPASS', "パスワードの最低文字数が正しくありません。"); define('_MD_AM_INVLDSCOOK', "セッションIDクッキーの名称が正しくありません。"); From minahito @ users.sourceforge.jp Mon Oct 16 16:40:18 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 16 Oct 2006 16:40:18 +0900 Subject: [xoops-cvslog 5362] CVS update: xoops2jp/html/modules/legacy/language/japanese Message-ID: <20061016074018.0F87A2AC0D1@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/language/japanese/modinfo.php diff -u xoops2jp/html/modules/legacy/language/japanese/modinfo.php:1.1.2.2 xoops2jp/html/modules/legacy/language/japanese/modinfo.php:1.1.2.3 --- xoops2jp/html/modules/legacy/language/japanese/modinfo.php:1.1.2.2 Sun Oct 15 01:42:05 2006 +++ xoops2jp/html/modules/legacy/language/japanese/modinfo.php Mon Oct 16 16:40:17 2006 @@ -27,12 +27,14 @@ define('_MI_LEGACY_MENU_BLOCKLIST', "ブロックの管理"); define('_MI_LEGACY_MENU_COMMENT_MANAGE', "コメントの管理"); define('_MI_LEGACY_MENU_CREATE_SMILES', "顔アイコンの新規作成"); +define('_MI_LEGACY_MENU_GENERAL_SETTINGS', "全般設定"); define('_MI_LEGACY_MENU_IMAGE_MANAGE', "イメージ・マネージャー"); define('_MI_LEGACY_MENU_MODULEINSTALL', "モジュールのインストール"); define('_MI_LEGACY_MENU_MODULELIST', "モジュールの管理"); -define('_MI_LEGACY_MENU_PREFERENCE', "一般設定"); +define('_MI_LEGACY_MENU_PREFERENCE', "プリファレンス"); define('_MI_LEGACY_MENU_SMILES_MANAGE', "顔アイコンの管理"); define('_MI_LEGACY_MENU_THEME_MANAGE', "テーマの管理"); +define('_MI_LEGACY_MENU_XOOPS_CONFIG', "XOOPS コンフィグ"); define('_MI_LEGACY_NAME', "互換モジュール"); define('_MI_LEGACY_NAME_DESC', "XOOPS Cube にXOOPS 2.0.x シリーズの互換性を与えます"); From minahito @ users.sourceforge.jp Mon Oct 16 18:55:46 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 16 Oct 2006 18:55:46 +0900 Subject: [xoops-cvslog 5363] CVS update: xoops2jp/html/modules/legacy/class Message-ID: <20061016095546.0FD022AC01B@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/class/ActionFrame.class.php diff -u xoops2jp/html/modules/legacy/class/ActionFrame.class.php:1.1.2.3 xoops2jp/html/modules/legacy/class/ActionFrame.class.php:1.1.2.4 --- xoops2jp/html/modules/legacy/class/ActionFrame.class.php:1.1.2.3 Sun Oct 15 02:15:19 2006 +++ xoops2jp/html/modules/legacy/class/ActionFrame.class.php Mon Oct 16 18:55:45 2006 @@ -36,9 +36,17 @@ */ var $mMode = null; + /** + * @var XCube_Delegate + */ + var $mCreateAction = null; + function Legacy_ActionFrame($admin) { $this->mAdminFlag = $admin; + $this->mCreateAction =& new XCube_Delegate(); + $this->mCreateAction->register('Legacy_ActionFrame.createAction'); + $this->mCreateAction->add(array(&$this, '_createAction')); } function setActionName($name) @@ -63,6 +71,35 @@ $this->mMode = $mode; } + function _createAction(&$actionFrame) + { + if (is_object($this->mAction)) { + return; + } + + // + // Create action object by mActionName + // + $className = "Legacy_" . ucfirst($actionFrame->mActionName) . "Action"; + $fileName = ucfirst($actionFrame->mActionName) . "Action"; + if ($actionFrame->mAdminFlag) { + $fileName = XOOPS_MODULE_PATH . "/legacy/admin/actions/${fileName}.class.php"; + } + else { + $fileName = XOOPS_MODULE_PATH . "/legacy/actions/${fileName}.class.php"; + } + + if (!file_exists($fileName)) { + die(); + } + + require_once $fileName; + + if (class_exists($className)) { + $this->mAction =& new $className($actionFrame->mAdminFlag); + } + } + function execute(&$controller) { if (strlen($this->mActionName) > 0 && !preg_match("/^\w+$/", $this->mActionName)) { @@ -85,27 +122,10 @@ // // Create action object by mActionName // - $className = "Legacy_" . ucfirst($this->mActionName) . "Action"; - $fileName = ucfirst($this->mActionName) . "Action"; - if ($this->mAdminFlag) { - $fileName = XOOPS_MODULE_PATH . "/legacy/admin/actions/${fileName}.class.php"; - } - else { - $fileName = XOOPS_MODULE_PATH . "/legacy/actions/${fileName}.class.php"; - } + $this->mCreateAction->call(new XCube_Ref($this)); - if (!file_exists($fileName)) { - die(); - } - - require_once $fileName; - - if (class_exists($className)) { - $this->mAction =& new $className($this->mAdminFlag); - } - - if (!is_object($this->mAction)) { - die(); + if (!(is_object($this->mAction) && is_a($this->mAction, 'Legacy_Action'))) { + die(); //< TODO } $this->mAction->prepare($controller, $controller->mRoot->mContext->mXoopsUser); From minahito @ users.sourceforge.jp Mon Oct 16 18:55:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 16 Oct 2006 18:55:57 +0900 Subject: [xoops-cvslog 5364] CVS update: xoops2jp/html/modules/legacyRender/class Message-ID: <20061016095557.330742AC01B@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php diff -u xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php:1.1.2.6.2.3 xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php:1.1.2.6.2.4 --- xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php:1.1.2.6.2.3 Tue Oct 10 15:13:12 2006 +++ xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php Mon Oct 16 18:55:57 2006 @@ -19,10 +19,18 @@ var $mActionName = null; var $mAction = null; var $mAdminFlag = null; + + /** + * @var XCube_Delegate + */ + var $mCreateAction = null; function LegacyRender_ActionFrame($admin) { $this->mAdminFlag = $admin; + $this->mCreateAction =& new XCube_Delegate(); + $this->mCreateAction->register('LegacyRender_ActionFrame.createAction'); + $this->mCreateAction->add(array(&$this, '_createAction')); } function setActionName($name) @@ -37,18 +45,18 @@ $root->mContext->mModule->setAttribute('actionName', $name); } - function execute(&$controller) + function _createAction(&$actionFrame) { - if (!preg_match("/^\w+$/", $this->mActionName)) { - die(); + if (is_object($this->mAction)) { + return; } - + // // Create action object by mActionName // - $className = "LegacyRender_" . ucfirst($this->mActionName) . "Action"; - $fileName = ucfirst($this->mActionName) . "Action"; - if ($this->mAdminFlag) { + $className = "LegacyRender_" . ucfirst($actionFrame->mActionName) . "Action"; + $fileName = ucfirst($actionFrame->mActionName) . "Action"; + if ($actionFrame->mAdminFlag) { $fileName = XOOPS_MODULE_PATH . "/legacyRender/admin/actions/${fileName}.class.php"; } else { @@ -62,13 +70,25 @@ require_once $fileName; if (class_exists($className)) { - $this->mAction =& new $className($this->mAdminFlag); + $this->mAction =& new $className($actionFrame->mAdminFlag); } + } - if (!is_object($this->mAction)) { + function execute(&$controller) + { + if (!preg_match("/^\w+$/", $this->mActionName)) { die(); } - + + // + // Create action object by mActionName + // + $this->mCreateAction->call(new XCube_Ref($this)); + + if (!(is_object($this->mAction) && is_a($this->mAction, 'LegacyRender_Action'))) { + die(); //< TODO + } + $handler =& xoops_gethandler('config'); $moduleConfig =& $handler->getConfigsByDirname('legacyRender'); From minahito @ users.sourceforge.jp Mon Oct 16 18:56:10 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 16 Oct 2006 18:56:10 +0900 Subject: [xoops-cvslog 5365] CVS update: xoops2jp/html/modules/legacyRender/kernel Message-ID: <20061016095610.63C852AC01B@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php diff -u xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.6 xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.7 --- xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php:1.1.2.6 Sun Oct 15 02:13:31 2006 +++ xoops2jp/html/modules/legacyRender/kernel/Legacy_AdminRenderSystem.class.php Mon Oct 16 18:56:10 2006 @@ -136,7 +136,7 @@ $this->mSmarty->assign($key, $value); } - $this->mSmarty->setModulePrefix("legacy"); + $this->mSmarty->setModulePrefix($target->getAttribute('legacy_module')); $result = $this->mSmarty->fetch("blocks/" . $target->getTemplateName()); $target->setResult($result); From minahito @ users.sourceforge.jp Mon Oct 16 18:56:23 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 16 Oct 2006 18:56:23 +0900 Subject: [xoops-cvslog 5366] CVS update: xoops2jp/html/modules/user/class Message-ID: <20061016095623.7953D2AC01B@users.sourceforge.jp> Index: xoops2jp/html/modules/user/class/ActionFrame.class.php diff -u xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.9.2.4 xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.9.2.5 --- xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.9.2.4 Fri Oct 13 18:22:13 2006 +++ xoops2jp/html/modules/user/class/ActionFrame.class.php Mon Oct 16 18:56:23 2006 @@ -20,9 +20,17 @@ var $mAction = null; var $mAdminFlag = null; + /** + * @var XCube_Delegate + */ + var $mCreateAction = null; + function User_ActionFrame($admin) { $this->mAdminFlag = $admin; + $this->mCreateAction =& new XCube_Delegate(); + $this->mCreateAction->register('User_ActionFrame.createAction'); + $this->mCreateAction->add(array(&$this, '_createAction')); } function setActionName($name) @@ -37,18 +45,18 @@ $root->mContext->mModule->setAttribute('actionName', $name); } - function execute(&$controller) + function _createAction(&$actionFrame) { - if (!preg_match("/^\w+$/", $this->mActionName)) { - die(); + if (is_object($this->mAction)) { + return; } // // Create action object by mActionName // - $className = "User_" . ucfirst($this->mActionName) . "Action"; - $fileName = ucfirst($this->mActionName) . "Action"; - if ($this->mAdminFlag) { + $className = "User_" . ucfirst($actionFrame->mActionName) . "Action"; + $fileName = ucfirst($actionFrame->mActionName) . "Action"; + if ($actionFrame->mAdminFlag) { $fileName = XOOPS_MODULE_PATH . "/user/admin/actions/${fileName}.class.php"; } else { @@ -56,17 +64,29 @@ } if (!file_exists($fileName)) { - $controller->executeForward(XOOPS_URL . '/'); + die(); } require_once $fileName; if (class_exists($className)) { - $this->mAction =& new $className(); + $this->mAction =& new $className($actionFrame->mAdminFlag); } + } - if (!is_object($this->mAction)) { - $controller->executeForward(XOOPS_URL . '/'); + function execute(&$controller) + { + if (!preg_match("/^\w+$/", $this->mActionName)) { + die(); + } + + // + // Create action object by mActionName + // + $this->mCreateAction->call(new XCube_Ref($this)); + + if (!(is_object($this->mAction) && is_a($this->mAction, 'User_Action'))) { + die(); //< TODO } if ($this->mAction->isSecure() && !is_object($controller->mRoot->mContext->mXoopsUser)) { From minahito @ users.sourceforge.jp Mon Oct 16 20:15:45 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 16 Oct 2006 20:15:45 +0900 Subject: [xoops-cvslog 5367] CVS update: xoops2jp/html/modules/legacy/class Message-ID: <20061016111545.8DFEF2AC011@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/class/group_permission.php diff -u xoops2jp/html/modules/legacy/class/group_permission.php:1.1.2.2 xoops2jp/html/modules/legacy/class/group_permission.php:1.1.2.3 --- xoops2jp/html/modules/legacy/class/group_permission.php:1.1.2.2 Sun Oct 15 01:31:49 2006 +++ xoops2jp/html/modules/legacy/class/group_permission.php Mon Oct 16 20:15:45 2006 @@ -30,7 +30,7 @@ { $retRoles = array(); - $sql = "SELECT gperm_name FROM " . $this->db->prefix($this->mTable) . " WHERE gperm_modid=" . intval($mid) . " AND gperm_itemid=0 AND "; + $sql = "SELECT gperm_name FROM " . $this->mTable . " WHERE gperm_modid=" . intval($mid) . " AND gperm_itemid=0 AND "; $groupSql = array(); foreach ($groups as $gid) { From minahito @ users.sourceforge.jp Tue Oct 17 00:11:29 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 00:11:29 +0900 Subject: [xoops-cvslog 5368] CVS update: xoops2jp/html/modules/legacy/kernel Message-ID: <20061016151129.310B82AC08B@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/kernel/Legacy_BlockProcedure.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_BlockProcedure.class.php:1.1.2.1 xoops2jp/html/modules/legacy/kernel/Legacy_BlockProcedure.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/kernel/Legacy_BlockProcedure.class.php:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_BlockProcedure.class.php Tue Oct 17 00:11:29 2006 @@ -131,6 +131,13 @@ { return true; } + + function &createCacheInfo() + { + $cacheInfo =& new Legacy_BlockCacheInformation(); + $cacheInfo->setBlock($this); + return $cacheInfo; + } } /** From minahito @ users.sourceforge.jp Tue Oct 17 00:11:41 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 00:11:41 +0900 Subject: [xoops-cvslog 5369] CVS update: xoops2jp/html/modules/legacy/kernel Message-ID: <20061016151141.819E42AC03B@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/kernel/Legacy_CacheInformation.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_CacheInformation.class.php:1.1.2.1 xoops2jp/html/modules/legacy/kernel/Legacy_CacheInformation.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/kernel/Legacy_CacheInformation.class.php:1.1.2.1 Sat Oct 14 23:55:24 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_CacheInformation.class.php Tue Oct 17 00:11:41 2006 @@ -91,6 +91,10 @@ $this->mGroupArr = array(); $this->_mEnableCache = null; } + + function getCacheFilePath() + { + } } class Legacy_ModuleCacheInformation extends Legacy_AbstractCacheInformation @@ -127,6 +131,24 @@ $this->mModule = null; $this->mURL = null; } + + /** + * Gets a file path of a cache file for module contents. + * @param Legacy_ModuleCacheInformation $cacheInfo + * @return string + */ + function getCacheFilePath() + { + $filepath = null; +// $this->mGetModuleCacheFilePath->call(new XCube_Ref($filepath), $cacheInfo); + + if (!$filepath) { + $id = md5(XOOPS_SALT . $this->mURL . "(" . implode("_", $this->mIdentityArr) . ")" . implode("_", $this->mGroupArr)); + $filepath = XOOPS_CACHE_PATH . "/" . $id . ".cache.html"; + } + + return $filepath; + } } class Legacy_BlockCacheInformation extends Legacy_AbstractCacheInformation @@ -154,6 +176,24 @@ parent::reset(); $this->mBlock = null; } + + /** + * Gets a file path of a cache file for module contents. + * @param Legacy_BlockCacheInformation $cacheInfo + * @return string + */ + function getCacheFilePath() + { + $filepath = null; +// $this->mGetBlockCacheFilePath->call(new XCube_Ref($filepath), $cacheInfo); + + if (!$filepath) { + $id = md5(XOOPS_SALT . $this->mBlock->get('bid') . "(" . implode("_", $this->mIdentityArr) . ")" . implode("_", $this->mGroupArr)); + $filepath = XOOPS_CACHE_PATH . "/" . $id . ".cache.html"; + } + + return $filepath; + } } ?> \ No newline at end of file From minahito @ users.sourceforge.jp Tue Oct 17 00:11:47 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 00:11:47 +0900 Subject: [xoops-cvslog 5370] CVS update: xoops2jp/html/modules/legacy/kernel Message-ID: <20061016151147.9C25A2AC03B@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php:1.1.2.3 xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php:1.1.2.4 --- xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php:1.1.2.3 Sun Oct 15 02:30:39 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php Tue Oct 17 00:11:47 2006 @@ -120,6 +120,9 @@ return $this->mCacheInfo; } + /** + * @access protected + */ function _createCacheInfo() { $this->mCacheInfo =& new Legacy_ModuleCacheInformation(); From minahito @ users.sourceforge.jp Tue Oct 17 00:11:58 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 00:11:58 +0900 Subject: [xoops-cvslog 5371] CVS update: xoops2jp/html/modules/legacy/kernel Message-ID: <20061016151158.3CDAB2AC03B@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.3 xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.4 --- xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.3 Mon Oct 16 16:39:20 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php Tue Oct 17 00:11:58 2006 @@ -67,17 +67,12 @@ /** * @var XCube_Delegate */ - var $mCheckEnableBlockCache = null; + var $mSetBlockCachePolicy = null; /** * @var XCube_Delegate */ - var $mCheckEnableModuleCache = null; - - /** - * @var XCube_Delegate - */ - var $mGetBlockCacheFilePath = null; + var $mSetModuleCachePolicy = null; /** * @var XCube_Delegate @@ -118,10 +113,8 @@ $this->mGetLanguageName =& new XCube_Delegate(); $this->mGetLanguageName->register("Legacy_Controller.GetLanguageName"); - $this->mCheckEnableBlockCache =& new XCube_Delegate(); - $this->mCheckEnableModuleCache =& new XCube_Delegate(); - $this->mGetModuleCacheFilePath =& new XCube_Delegate(); - $this->mGetBlockCacheFilePath =& new XCube_Delegate(); + $this->mSetBlockCachePolicy =& new XCube_Delegate(); + $this->mSetModuleCachePolicy =& new XCube_Delegate(); $this->mSetupDebugger =& new XCube_Delegate(); $this->mSetupDebugger->add('Legacy_DebuggerManager::createInstance'); @@ -280,7 +273,6 @@ // object in the foreach loop. // $context =& $this->mRoot->mContext; - $cacheInfo =& new Legacy_BlockCacheInformation(); foreach ($this->_mBlockChain as $blockProcedure) { // @@ -293,11 +285,10 @@ // // Reset the block cache information structure, and initialize. // - $cacheInfo->reset(); - $cacheInfo->setBlock($blockProcedure); //< FIXME - $this->mCheckEnableBlockCache->call(new XCube_Ref($cacheInfo)); - - $filepath = $this->getBlockCacheFilePath($cacheInfo); + $cacheInfo =& $blockProcedure->createCacheInfo(); + + $this->mSetBlockCachePolicy->call(new XCube_Ref($cacheInfo)); + $filepath = $cacheInfo->getCacheFilePath(); // // If caching is enable and the cache file exists, load and use. @@ -336,7 +327,7 @@ ); if ($this->isEnableCacheFeature() && $blockProcedure->getCacheTime() > 0 && $cacheInfo->isEnableCache()) { - $this->cacheRenderTarget($this->getBlockCacheFilePath($cacheInfo), $renderBuffer); + $this->cacheRenderTarget($cacheInfo->getCacheFilePath(), $renderBuffer); } } @@ -699,7 +690,7 @@ if ($this->mRoot->mContext->mModule != null && $this->isEnableCacheFeature()) { $cacheInfo =& $this->mRoot->mContext->mModule->createCacheInfo(); - $this->mCheckEnableModuleCache->call(new XCube_Ref($cacheInfo)); + $this->mSetModuleCachePolicy->call($cacheInfo); if ($this->mRoot->mContext->mModule->hasCacheConfig()) { // @@ -708,20 +699,20 @@ $xoopsModule =& $this->mRoot->mContext->mXoopsModule; $cachetime = $this->mRoot->mContext->mXoopsConfig['module_cache'][$xoopsModule->get('mid')]; - $filepath = $this->getModuleCacheFilePath($cacheInfo); + $filepath = $cacheInfo->getCacheFilePath(); // // Checks whether the active cache file exists. If it's OK, load // cache and do display. // if ($cacheInfo->isEnableCache() && $this->existActiveCacheFile($filepath, $cachetime)) { - $renderSystem =& $this->mRoot->getRenderSystem($this->mModule->getRenderSystemName()); + $renderSystem =& $this->mRoot->getRenderSystem($this->mRoot->mContext->mModule->getRenderSystemName()); $renderTarget =& $renderSystem->createRenderTarget(XCUBE_RENDER_TARGET_TYPE_MAIN); $renderTarget->setResult($this->loadCache($filepath)); $this->_executeViewTheme($renderTarget); - exit(0); + exit(); } } } @@ -772,7 +763,7 @@ // if ($this->isEnableCacheFeature() && $this->mRoot->mContext->mModule->hasCacheConfig()) { if ($this->mRoot->mContext->mModule->mCacheInfo->isEnableCache()) { - $this->cacheRenderTarget($this->getModuleCacheFilePath($this->mRoot->mContext->mModule->mCacheInfo), $renderTarget); + $this->cacheRenderTarget($this->mRoot->mContext->mModule->mCacheInfo->getCacheFilePath(), $renderTarget); } } else { @@ -1151,42 +1142,6 @@ } /** - * Gets a file path of a cache file for module contents. - * @param Legacy_ModuleCacheInformation $cacheInfo - * @return string - */ - function getModuleCacheFilePath(&$cacheInfo) - { - $filepath = null; - $this->mGetModuleCacheFilePath->call(new XCube_Ref($filepath), $cacheInfo); - - if (!$filepath) { - $id = md5(XOOPS_SALT . $cacheInfo->mURL . "(" . implode("_", $cacheInfo->mIdentityArr) . ")" . implode("_", $cacheInfo->mGroupArr)); - $filepath = XOOPS_CACHE_PATH . "/" . $id . ".cache.html"; - } - - return $filepath; - } - - /** - * Gets a file path of a cache file for module contents. - * @param Legacy_BlockCacheInformation $cacheInfo - * @return string - */ - function getBlockCacheFilePath(&$cacheInfo) - { - $filepath = null; - $this->mGetBlockCacheFilePath->call(new XCube_Ref($filepath), $cacheInfo); - - if (!$filepath) { - $id = md5(XOOPS_SALT . $cacheInfo->mBlock->get('bid') . "(" . implode("_", $cacheInfo->mIdentityArr) . ")" . implode("_", $cacheInfo->mGroupArr)); - $filepath = XOOPS_CACHE_PATH . "/" . $id . ".cache.html"; - } - - return $filepath; - } - - /** * Save the content of $renderTarget to $filepath. * @param string $filepath a file path of the cache file. * @param XCube_RenderTarget $renderBuffer From minahito @ users.sourceforge.jp Tue Oct 17 00:12:26 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 00:12:26 +0900 Subject: [xoops-cvslog 5372] CVS update: xoops2jp/html/modules/stdCache/preload Message-ID: <20061016151226.107362AC07D@users.sourceforge.jp> Index: xoops2jp/html/modules/stdCache/preload/Initialize.class.php diff -u xoops2jp/html/modules/stdCache/preload/Initialize.class.php:1.1.2.1.2.1 xoops2jp/html/modules/stdCache/preload/Initialize.class.php:1.1.2.1.2.2 --- xoops2jp/html/modules/stdCache/preload/Initialize.class.php:1.1.2.1.2.1 Thu Oct 5 18:10:56 2006 +++ xoops2jp/html/modules/stdCache/preload/Initialize.class.php Tue Oct 17 00:12:25 2006 @@ -10,11 +10,11 @@ { function preBlockFilter() { - $this->mController->mCheckEnableBlockCache->add(array(&$this, 'checkForBlock'), XCUBE_DELEGATE_PRIORITY_FIRST + 10); - $this->mController->mCheckEnableModuleCache->add(array(&$this, 'checkForModule'), XCUBE_DELEGATE_PRIORITY_FIRST + 10); + $this->mController->mSetBlockCachePolicy->add(array(&$this, 'setForBlock'), XCUBE_DELEGATE_PRIORITY_FIRST + 10); + $this->mController->mSetModuleCachePolicy->add(array(&$this, 'setForModule'), XCUBE_DELEGATE_PRIORITY_FIRST + 10); } - function checkForBlock(&$cacheInfo) + function setForBlock(&$cacheInfo) { $user =& $this->mRoot->mContext->mXoopsUser; if (is_object($user)) { @@ -27,7 +27,7 @@ } } - function checkForModule(&$cacheInfo) + function setForModule(&$cacheInfo) { $user =& $this->mRoot->mContext->mXoopsUser; if (is_object($user)) { From minahito @ users.sourceforge.jp Tue Oct 17 00:35:31 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 00:35:31 +0900 Subject: [xoops-cvslog 5373] CVS update: xoops2jp/html/modules/legacy/kernel Message-ID: <20061016153531.C18702AC08B@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/kernel/Legacy_BlockProcedure.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_BlockProcedure.class.php:1.1.2.2 xoops2jp/html/modules/legacy/kernel/Legacy_BlockProcedure.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/kernel/Legacy_BlockProcedure.class.php:1.1.2.2 Tue Oct 17 00:11:29 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_BlockProcedure.class.php Tue Oct 17 00:35:31 2006 @@ -86,7 +86,7 @@ * Gets a value indicating whether the block can be cached. * @return bool */ - function enableCache() + function isEnableCache() { } Index: xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php:1.1.2.4 xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php:1.1.2.5 --- xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php:1.1.2.4 Tue Oct 17 00:11:47 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php Tue Oct 17 00:35:31 2006 @@ -170,7 +170,7 @@ * configurations to use the cache system. * @return bool */ - function hasCacheConfig() + function isEnableCache() { if (xoops_getenv('REQUEST_METHOD') == 'POST') { return false; Index: xoops2jp/html/modules/legacy/kernel/Legacy_CacheInformation.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_CacheInformation.class.php:1.1.2.2 xoops2jp/html/modules/legacy/kernel/Legacy_CacheInformation.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/kernel/Legacy_CacheInformation.class.php:1.1.2.2 Tue Oct 17 00:11:41 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_CacheInformation.class.php Tue Oct 17 00:35:31 2006 @@ -116,6 +116,18 @@ */ var $mURL = null; + /** + * @var XCube_Delegate + */ + var $mGetCacheFilePath = null; + + function Legacy_ModuleCacheInformation() + { + parent::Legacy_AbstractCacheInformation(); + $this->mGetCacheFilePath =& new XCube_Delegate(); + $this->mGetCacheFilePath->register('Legacy_ModuleCacheInformation.getCacheFilePath'); + } + /** * Sets a module object. * @param XoopsModule $module @@ -140,7 +152,7 @@ function getCacheFilePath() { $filepath = null; -// $this->mGetModuleCacheFilePath->call(new XCube_Ref($filepath), $cacheInfo); + $this->mGetCacheFilePath->call(new XCube_Ref($filepath), $this); if (!$filepath) { $id = md5(XOOPS_SALT . $this->mURL . "(" . implode("_", $this->mIdentityArr) . ")" . implode("_", $this->mGroupArr)); @@ -162,6 +174,18 @@ var $mBlock = null; /** + * @var XCube_Delegate + */ + var $mGetCacheFilePath = null; + + function Legacy_BlockCacheInformation() + { + parent::Legacy_AbstractCacheInformation(); + $this->mGetCacheFilePath =& new XCube_Delegate(); + $this->mGetCacheFilePath->register('Legacy_BlockCachInformation.getCacheFilePath'); + } + + /** * Sets a block object. * * @param Legacy_AbstractBlockProcedure $blockProcedure @@ -185,7 +209,7 @@ function getCacheFilePath() { $filepath = null; -// $this->mGetBlockCacheFilePath->call(new XCube_Ref($filepath), $cacheInfo); + $this->mGetCacheFilePath->call(new XCube_Ref($filepath), $this); if (!$filepath) { $id = md5(XOOPS_SALT . $this->mBlock->get('bid') . "(" . implode("_", $this->mIdentityArr) . ")" . implode("_", $this->mGroupArr)); Index: xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.4 xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.5 --- xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.4 Tue Oct 17 00:11:58 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php Tue Oct 17 00:35:31 2006 @@ -281,7 +281,9 @@ // $usedCacheFlag = false; - if ($this->isEnableCacheFeature()) { + $cacheInfo = null; + + if ($this->isEnableCacheFeature() && $blockProcedure->isEnableCache()) { // // Reset the block cache information structure, and initialize. // @@ -326,7 +328,7 @@ 'weight'=>$blockProcedure->getWeight() ); - if ($this->isEnableCacheFeature() && $blockProcedure->getCacheTime() > 0 && $cacheInfo->isEnableCache()) { + if ($this->isEnableCacheFeature() && $blockProcedure->isEnableCache() && is_object($cacheInfo) && $cacheInfo->isEnableCache()) { $this->cacheRenderTarget($cacheInfo->getCacheFilePath(), $renderBuffer); } } @@ -692,7 +694,7 @@ $this->mSetModuleCachePolicy->call($cacheInfo); - if ($this->mRoot->mContext->mModule->hasCacheConfig()) { + if ($this->mRoot->mContext->mModule->isEnableCache()) { // // Checks whether the cache file exists. // @@ -761,7 +763,7 @@ // // Cache Control // - if ($this->isEnableCacheFeature() && $this->mRoot->mContext->mModule->hasCacheConfig()) { + if ($this->isEnableCacheFeature() && $this->mRoot->mContext->mModule->isEnableCache()) { if ($this->mRoot->mContext->mModule->mCacheInfo->isEnableCache()) { $this->cacheRenderTarget($this->mRoot->mContext->mModule->mCacheInfo->getCacheFilePath(), $renderTarget); } From minahito @ users.sourceforge.jp Tue Oct 17 00:36:26 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 00:36:26 +0900 Subject: [xoops-cvslog 5374] CVS update: xoops2jp/html/modules/stdCache/kernel Message-ID: <20061016153626.307132AC0D4@users.sourceforge.jp> Index: xoops2jp/html/modules/stdCache/kernel/index.html diff -u xoops2jp/html/modules/stdCache/kernel/index.html:1.1.2.1 xoops2jp/html/modules/stdCache/kernel/index.html:removed --- xoops2jp/html/modules/stdCache/kernel/index.html:1.1.2.1 Mon Mar 27 11:41:58 2006 +++ xoops2jp/html/modules/stdCache/kernel/index.html Tue Oct 17 00:36:26 2006 @@ -1 +0,0 @@ - \ No newline at end of file Index: xoops2jp/html/modules/stdCache/kernel/StdRenderCache.class.php diff -u xoops2jp/html/modules/stdCache/kernel/StdRenderCache.class.php:1.1.2.3.2.2 xoops2jp/html/modules/stdCache/kernel/StdRenderCache.class.php:removed --- xoops2jp/html/modules/stdCache/kernel/StdRenderCache.class.php:1.1.2.3.2.2 Thu Oct 5 18:10:47 2006 +++ xoops2jp/html/modules/stdCache/kernel/StdRenderCache.class.php Tue Oct 17 00:36:26 2006 @@ -1,90 +0,0 @@ -mContext->mXoopsUser; - - $groups = is_object($user) ? $user->getGroups() : XOOPS_GROUP_ANONYMOUS; - $this->_setGroupIds($groups); - } - - /** - * @return bool - */ - function isCache($cachetime = null) - { - if ($cachetime === 0) { - return false; - } - - if (!$this->enableCache()) { - return false; - } - - $filename = XOOPS_CACHE_PATH . "/" . $this->getCacheId() . ".cache.html"; - if (!file_exists($filename)) { - return false; - } - - if($cachetime === null) { - return true; - } - - // - // Check expire - // - $time = time() - filemtime($filename); - if ($time > $cachetime) { - return false; - } - - return true; - } - - function enableCache() - { - return (count($this->mGroupIds) == 1 && ($this->mGroupIds[0] == XOOPS_GROUP_USERS || $this->mGroupIds[0] == XOOPS_GROUP_ANONYMOUS)); - } - - function _setGroupIds($ids) - { - if (is_array($ids)) { - sort($ids); - $this->mGroupIds = $ids; - } - else { - $this->mGroupIds = array(); - $this->mGroupIds[] = $ids; - } - } - - function getCacheId() - { - return md5($this->mResourceName . implode("_", $this->mGroupIds)); - } - - function _getFileName() - { - return XOOPS_CACHE_PATH . "/" . $this->getCacheId() . ".cache.html"; - } -} - -?> \ No newline at end of file From minahito @ users.sourceforge.jp Tue Oct 17 00:59:55 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 00:59:55 +0900 Subject: [xoops-cvslog 5375] CVS update: xoops2jp/html/modules/legacy/class Message-ID: <20061016155955.47EA22AC079@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/class/ActionFrame.class.php diff -u xoops2jp/html/modules/legacy/class/ActionFrame.class.php:1.1.2.4 xoops2jp/html/modules/legacy/class/ActionFrame.class.php:1.1.2.5 --- xoops2jp/html/modules/legacy/class/ActionFrame.class.php:1.1.2.4 Mon Oct 16 18:55:45 2006 +++ xoops2jp/html/modules/legacy/class/ActionFrame.class.php Tue Oct 17 00:59:55 2006 @@ -45,7 +45,7 @@ { $this->mAdminFlag = $admin; $this->mCreateAction =& new XCube_Delegate(); - $this->mCreateAction->register('Legacy_ActionFrame.createAction'); + $this->mCreateAction->register('Legacy_ActionFrame.CreateAction'); $this->mCreateAction->add(array(&$this, '_createAction')); } From minahito @ users.sourceforge.jp Tue Oct 17 01:01:05 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 01:01:05 +0900 Subject: [xoops-cvslog 5376] CVS update: xoops2jp/html/modules/legacy/class Message-ID: <20061016160105.D87342AC08B@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/class/Legacy_Utils.class.php diff -u xoops2jp/html/modules/legacy/class/Legacy_Utils.class.php:1.1.2.1 xoops2jp/html/modules/legacy/class/Legacy_Utils.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/class/Legacy_Utils.class.php:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/class/Legacy_Utils.class.php Tue Oct 17 01:01:05 2006 @@ -51,6 +51,16 @@ function &createModule($module) { $instance = null; + + // + // TODO need cache here? + // + XCube_DelegateUtils::call('Legacy_Utils.CreateModule', new XCube_Ref($instance), $module); + + if (is_object($instance) && is_a($instance, 'Legacy_AbstractModule')) { + return $instance; + } + $dirname = $module->get('dirname'); // @@ -80,12 +90,22 @@ * @static * @return Legacy_BlockProcedure */ - function createBlockProcedure(&$block) + function &createBlockProcedure(&$block) { // // IMPORTANT CONVENTION // $retBlock = null; + + // + // TODO need cache here? + // + XCube_DelegateUtils::call('Legacy_Utils.CreateBlockProcedure', new XCube_Ref($retBlock), $block); + + if (is_object($retBlock) && is_a($retBlock, 'Legacy_AbstractBlockProcedure')) { + return $retBlock; + } + $func = $block->get('show_func'); if (substr($func, 0, 4) == 'cl::') { $className = ucfirst($block->get('dirname')) . '_' . substr($func, 4); From minahito @ users.sourceforge.jp Tue Oct 17 01:02:45 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 01:02:45 +0900 Subject: [xoops-cvslog 5377] CVS update: xoops2jp/html/modules/legacy/kernel Message-ID: <20061016160245.93F4E2AC079@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/kernel/Legacy_CacheInformation.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_CacheInformation.class.php:1.1.2.3 xoops2jp/html/modules/legacy/kernel/Legacy_CacheInformation.class.php:1.1.2.4 --- xoops2jp/html/modules/legacy/kernel/Legacy_CacheInformation.class.php:1.1.2.3 Tue Oct 17 00:35:31 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_CacheInformation.class.php Tue Oct 17 01:02:45 2006 @@ -125,7 +125,7 @@ { parent::Legacy_AbstractCacheInformation(); $this->mGetCacheFilePath =& new XCube_Delegate(); - $this->mGetCacheFilePath->register('Legacy_ModuleCacheInformation.getCacheFilePath'); + $this->mGetCacheFilePath->register('Legacy_ModuleCacheInformation.GetCacheFilePath'); } /** From minahito @ users.sourceforge.jp Tue Oct 17 01:02:54 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 01:02:54 +0900 Subject: [xoops-cvslog 5378] CVS update: xoops2jp/html/modules/legacy/class Message-ID: <20061016160254.8EDD62AC079@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/class/Module.class.php diff -u /dev/null xoops2jp/html/modules/legacy/class/Module.class.php:1.1.2.1 --- /dev/null Tue Oct 17 01:02:54 2006 +++ xoops2jp/html/modules/legacy/class/Module.class.php Tue Oct 17 01:02:54 2006 @@ -0,0 +1,25 @@ +mGetAdminMenu =& new XCube_Delegate(); + $this->mGetAdminMenu->register('Legacy_Module.getAdminMenu'); + } + + function getAdminMenu() + { + $menu = parent::getAdminMenu(); + $this->mGetAdminMenu->call(new XCube_Ref($menu)); + + ksort($menu); + + return $menu; + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Tue Oct 17 01:03:02 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 01:03:02 +0900 Subject: [xoops-cvslog 5379] CVS update: xoops2jp/html/modules/legacyRender/class Message-ID: <20061016160302.359322AC07D@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/class/Module.class.php diff -u /dev/null xoops2jp/html/modules/legacyRender/class/Module.class.php:1.1.2.1 --- /dev/null Tue Oct 17 01:03:02 2006 +++ xoops2jp/html/modules/legacyRender/class/Module.class.php Tue Oct 17 01:03:02 2006 @@ -0,0 +1,25 @@ +mGetAdminMenu =& new XCube_Delegate(); + $this->mGetAdminMenu->register('LegacyRender_Module.getAdminMenu'); + } + + function getAdminMenu() + { + $menu = parent::getAdminMenu(); + $this->mGetAdminMenu->call(new XCube_Ref($menu)); + + ksort($menu); + + return $menu; + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Tue Oct 17 01:03:10 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 01:03:10 +0900 Subject: [xoops-cvslog 5380] CVS update: xoops2jp/html/modules/user/class Message-ID: <20061016160310.B5ED52AC08B@users.sourceforge.jp> Index: xoops2jp/html/modules/user/class/Module.class.php diff -u /dev/null xoops2jp/html/modules/user/class/Module.class.php:1.1.2.1 --- /dev/null Tue Oct 17 01:03:10 2006 +++ xoops2jp/html/modules/user/class/Module.class.php Tue Oct 17 01:03:10 2006 @@ -0,0 +1,25 @@ +mGetAdminMenu =& new XCube_Delegate(); + $this->mGetAdminMenu->register('User_Module.getAdminMenu'); + } + + function getAdminMenu() + { + $menu = parent::getAdminMenu(); + $this->mGetAdminMenu->call(new XCube_Ref($menu)); + + ksort($menu); + + return $menu; + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Tue Oct 17 01:03:45 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 01:03:45 +0900 Subject: [xoops-cvslog 5381] CVS update: xoops2jp/html/modules/legacyRender/class Message-ID: <20061016160345.323522AC079@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php diff -u xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php:1.1.2.6.2.4 xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php:1.1.2.6.2.5 --- xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php:1.1.2.6.2.4 Mon Oct 16 18:55:57 2006 +++ xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php Tue Oct 17 01:03:45 2006 @@ -29,7 +29,7 @@ { $this->mAdminFlag = $admin; $this->mCreateAction =& new XCube_Delegate(); - $this->mCreateAction->register('LegacyRender_ActionFrame.createAction'); + $this->mCreateAction->register('LegacyRender_ActionFrame.CreateAction'); $this->mCreateAction->add(array(&$this, '_createAction')); } From minahito @ users.sourceforge.jp Tue Oct 17 01:03:51 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 01:03:51 +0900 Subject: [xoops-cvslog 5382] CVS update: xoops2jp/html/modules/user/class Message-ID: <20061016160351.B6DEC2AC08B@users.sourceforge.jp> Index: xoops2jp/html/modules/user/class/ActionFrame.class.php diff -u xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.9.2.5 xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.9.2.6 --- xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.9.2.5 Mon Oct 16 18:56:23 2006 +++ xoops2jp/html/modules/user/class/ActionFrame.class.php Tue Oct 17 01:03:51 2006 @@ -29,7 +29,7 @@ { $this->mAdminFlag = $admin; $this->mCreateAction =& new XCube_Delegate(); - $this->mCreateAction->register('User_ActionFrame.createAction'); + $this->mCreateAction->register('User_ActionFrame.CreateAction'); $this->mCreateAction->add(array(&$this, '_createAction')); } From minahito @ users.sourceforge.jp Tue Oct 17 01:15:24 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 01:15:24 +0900 Subject: [xoops-cvslog 5383] CVS update: xoops2jp/html/modules/user/class Message-ID: <20061016161524.F0C8D2AC079@users.sourceforge.jp> Index: xoops2jp/html/modules/user/class/ActionFrame.class.php diff -u xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.9.2.6 xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.9.2.7 --- xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.9.2.6 Tue Oct 17 01:03:51 2006 +++ xoops2jp/html/modules/user/class/ActionFrame.class.php Tue Oct 17 01:15:24 2006 @@ -70,7 +70,7 @@ require_once $fileName; if (class_exists($className)) { - $this->mAction =& new $className($actionFrame->mAdminFlag); + $actionFrame->mAction =& new $className($actionFrame->mAdminFlag); } } From minahito @ users.sourceforge.jp Tue Oct 17 01:16:19 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 01:16:19 +0900 Subject: [xoops-cvslog 5384] CVS update: xoops2jp/html/modules/legacyRender/class Message-ID: <20061016161619.3559B2AC079@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php diff -u xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php:1.1.2.6.2.5 xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php:1.1.2.6.2.6 --- xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php:1.1.2.6.2.5 Tue Oct 17 01:03:45 2006 +++ xoops2jp/html/modules/legacyRender/class/ActionFrame.class.php Tue Oct 17 01:16:19 2006 @@ -47,7 +47,7 @@ function _createAction(&$actionFrame) { - if (is_object($this->mAction)) { + if (is_object($actionFrame->mAction)) { return; } @@ -70,7 +70,7 @@ require_once $fileName; if (class_exists($className)) { - $this->mAction =& new $className($actionFrame->mAdminFlag); + $actionFrame->mAction =& new $className($actionFrame->mAdminFlag); } } From minahito @ users.sourceforge.jp Tue Oct 17 01:17:04 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 01:17:04 +0900 Subject: [xoops-cvslog 5385] CVS update: xoops2jp/html/modules/legacy/class Message-ID: <20061016161704.77C732AC079@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/class/ActionFrame.class.php diff -u xoops2jp/html/modules/legacy/class/ActionFrame.class.php:1.1.2.5 xoops2jp/html/modules/legacy/class/ActionFrame.class.php:1.1.2.6 --- xoops2jp/html/modules/legacy/class/ActionFrame.class.php:1.1.2.5 Tue Oct 17 00:59:55 2006 +++ xoops2jp/html/modules/legacy/class/ActionFrame.class.php Tue Oct 17 01:17:04 2006 @@ -73,7 +73,7 @@ function _createAction(&$actionFrame) { - if (is_object($this->mAction)) { + if (is_object($actionFrame->mAction)) { return; } @@ -96,7 +96,7 @@ require_once $fileName; if (class_exists($className)) { - $this->mAction =& new $className($actionFrame->mAdminFlag); + $actionFrame->mAction =& new $className($actionFrame->mAdminFlag); } } From nobunobu @ users.sourceforge.jp Tue Oct 17 13:47:37 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 17 Oct 2006 13:47:37 +0900 Subject: [xoops-cvslog 5386] CVS update: xoops2jp/html/modules/legacy Message-ID: <20061017044737.D6FD32AC047@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/xoops_version.php diff -u xoops2jp/html/modules/legacy/xoops_version.php:1.1.2.3 xoops2jp/html/modules/legacy/xoops_version.php:1.1.2.4 --- xoops2jp/html/modules/legacy/xoops_version.php:1.1.2.3 Sun Oct 15 01:55:00 2006 +++ xoops2jp/html/modules/legacy/xoops_version.php Tue Oct 17 13:47:37 2006 @@ -145,19 +145,19 @@ $modversion['hasMain'] = 0; // Blocks -$modversion['blocks'][1]['file'] = "legacy_mainmenu.php"; -$modversion['blocks'][1]['name'] = _MI_LEGACY_BLOCK_MAINMENU_NAME; -$modversion['blocks'][1]['description'] = _MI_LEGACY_BLOCK_MAINMENU_DESC; -$modversion['blocks'][1]['show_func'] = "b_legacy_mainmenu_show"; -$modversion['blocks'][1]['template'] = 'legacy_block_mainmenu.html'; +$modversion['blocks'][1]['file'] = "legacy_usermenu.php"; +$modversion['blocks'][1]['name'] = _MI_LEGACY_BLOCK_USERMENU_NAME; +$modversion['blocks'][1]['description'] = _MI_LEGACY_BLOCK_USERMENU_DESC; +$modversion['blocks'][1]['show_func'] = "b_legacy_usermenu_show"; +$modversion['blocks'][1]['template'] = 'legacy_block_usermenu.html'; $modversion['blocks'][1]['visible_any'] = true; $modversion['blocks'][1]['show_all_module'] = true; -$modversion['blocks'][2]['file'] = "legacy_usermenu.php"; -$modversion['blocks'][2]['name'] = _MI_LEGACY_BLOCK_USERMENU_NAME; -$modversion['blocks'][2]['description'] = _MI_LEGACY_BLOCK_USERMENU_DESC; -$modversion['blocks'][2]['show_func'] = "b_legacy_usermenu_show"; -$modversion['blocks'][2]['template'] = 'legacy_block_usermenu.html'; +$modversion['blocks'][2]['file'] = "legacy_mainmenu.php"; +$modversion['blocks'][2]['name'] = _MI_LEGACY_BLOCK_MAINMENU_NAME; +$modversion['blocks'][2]['description'] = _MI_LEGACY_BLOCK_MAINMENU_DESC; +$modversion['blocks'][2]['show_func'] = "b_legacy_mainmenu_show"; +$modversion['blocks'][2]['template'] = 'legacy_block_mainmenu.html'; $modversion['blocks'][2]['visible_any'] = true; $modversion['blocks'][2]['show_all_module'] = true; From minahito @ users.sourceforge.jp Tue Oct 17 16:49:48 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 16:49:48 +0900 Subject: [xoops-cvslog 5387] CVS update: xoops2jp/html/install/class Message-ID: <20061017074948.5FD482AC04A@users.sourceforge.jp> Index: xoops2jp/html/install/class/settingmanager.php diff -u xoops2jp/html/install/class/settingmanager.php:1.2.8.5 xoops2jp/html/install/class/settingmanager.php:1.2.8.5.2.1 --- xoops2jp/html/install/class/settingmanager.php:1.2.8.5 Sun Sep 17 11:53:48 2006 +++ xoops2jp/html/install/class/settingmanager.php Tue Oct 17 16:49:48 2006 @@ -29,7 +29,7 @@ * setting manager for XOOPS installer * * @author Haruki Setoyama -* @version $Id: settingmanager.php,v 1.2.8.5 2006/09/17 02:53:48 minahito Exp $ +* @version $Id: settingmanager.php,v 1.2.8.5.2.1 2006/10/17 07:49:48 minahito Exp $ * @access public **/ class setting_manager { @@ -149,7 +149,7 @@ $error[] = sprintf(_INSTALL_L57, _INSTALL_L30); } if ( empty($this->salt) ) { - $error[] = sprintf(_INSTALL_L57, _INSTALL_LANG_SALT); + $error[] = sprintf(_INSTALL_L57, _INSTALL_LANG_XOOPS_SALT); } if ( empty($this->root_path) ) { $error[] = sprintf(_INSTALL_L57, _INSTALL_L55); From minahito @ users.sourceforge.jp Tue Oct 17 18:49:22 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 18:49:22 +0900 Subject: [xoops-cvslog 5388] CVS update: xoops2jp/html/modules/legacy/kernel Message-ID: <20061017094922.748362AC070@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php:1.1.2.5 xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php:1.1.2.6 --- xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php:1.1.2.5 Tue Oct 17 00:35:31 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php Tue Oct 17 18:49:22 2006 @@ -4,6 +4,15 @@ * @version $Id$ */ + /** + * This is an abstract class which has interfaces to connect with the + * controller about the module process. Legacy controller has a instance of + * the sub-class of this class. So module developers may define their + * sub-classes. + * + * @see Legacy_Utils::createModule() + * @see XoopsModule + */ class Legacy_AbstractModule { /** @@ -24,10 +33,22 @@ */ var $mModuleConfig = array(); + /** + * @var Legacy_AbstractCacheInformation + */ var $mCacheInfo = null; + /** + * [READ ONLY] The render target instance for this module. + * @access public + * @var XCube_RenderTarget + * @see Legacy_Module::getRenderBuffer() + */ var $mRender = null; + /** + * + */ function Legacy_AbstractModule(&$module) { $this->setXoopsModule($module); @@ -110,7 +131,12 @@ return isset($this->mModuleConfig[$key]) ? $this->mModuleConfig[$key] : null; } - + + /** + * Gets the cache information instance. + * @return Legacy_ModuleCaceInformation + * @see Legacy_Module::_createChaceInfo() + */ function &getCacheInfo() { if (!is_object($this->mCacheInfo)) { @@ -121,7 +147,12 @@ } /** + * Creates a cache information instance and returns it. This member + * function sets the created instance to mCacheInfo because this instance + * has to keep the instance for many callbacks. * @access protected + * @return Legacy_ModuleCacheInformation + * @see Legacy_Module::getCacheInfo() */ function _createCacheInfo() { @@ -130,6 +161,12 @@ $this->mCacheInfo->setModule($this->mXoopsModule); } + /** + * Gets the render target instance. + * @access public + * @return XCube_RenderTarget + * @see Legacy_Module::_createRenderBuffer() + */ function &getRenderBuffer() { if ($this->mRender == null) { @@ -138,7 +175,15 @@ return $this->mRender; } - + + /** + * Creates a render target instance and returns it. This member function + * sets the created instance to mRender because this instance has to keep + * the instance for many callbacks. + * @access protected + * @return XCube_RenderTarget + * @see Legacy_Module::getRenderBuffer() + */ function _createRenderBuffer() { $root =& XCube_Root::getSingleton(); @@ -150,12 +195,20 @@ } } + /** + * Gets a name of the dependency render system. + * @return string + */ function getRenderSystemName() { $root =& XCube_Root::getSingleton(); return $root->mContext->mBaseRenderSystemName; } + /** + * Gets a value indicating whether this modules is an active. + * @return bool + */ function isActive() { if (!is_object($this->mXoopsModule)) { //< FIXME @@ -202,29 +255,63 @@ { } + /** + * This method is called back by the action search feature in the control + * panel. + * + * @param Legacy_ActionSearchArgs $searchArgs + * @see Legacy_ActionSearchArgs + */ function doActionSearch(&$searchArgs) { } + /** + * This method is called back by the xoops global search feature. + * + * @param Legacy_ActionSearchArgs $searchArgs + * @see Legacy_ActionSearchArgs + */ function doLegacyGlobalSearch($queries, $andor, $max_hit, $start, $uid) { } + /** + * Gets a value indicating whether this module has the page controller in + * the control panel side. + * + * @return bool + * @note Side menu blocks may not display the admin menu if this member + * function returns false. + */ function hasAdminIndex() { return false; } + /** + * Gets an absolute URL indicating the top page of this module for the + * control panel side. + * @return string + */ function getAdminIndex() { return null; } + /** + * Gets an array having menus for the side menu of the control panel. + * @return array + * @see /modules/legacy/admin/templates/blocks/legacy_admin_block_sidemenu.html + */ function getAdminMenu() { } } +/** + * This is an adapter class which imitates XOOPS2 responses. + */ class Legacy_ModuleAdapter extends Legacy_AbstractModule { var $_mAdminMenuLoadedFlag = false; From minahito @ users.sourceforge.jp Tue Oct 17 19:22:52 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 19:22:52 +0900 Subject: [xoops-cvslog 5389] CVS update: xoops2jp/html/modules/pm/class Message-ID: <20061017102252.DCEC52AC070@users.sourceforge.jp> Index: xoops2jp/html/modules/pm/class/ActionFrame.class.php diff -u xoops2jp/html/modules/pm/class/ActionFrame.class.php:1.1.2.6.2.3 xoops2jp/html/modules/pm/class/ActionFrame.class.php:1.1.2.6.2.4 --- xoops2jp/html/modules/pm/class/ActionFrame.class.php:1.1.2.6.2.3 Tue Oct 10 15:13:20 2006 +++ xoops2jp/html/modules/pm/class/ActionFrame.class.php Tue Oct 17 19:22:52 2006 @@ -1,7 +1,7 @@ mContext->mModule->setAttribute('actionName', $name); } - function &execute(&$controller) + function execute(&$controller) { if (!preg_match("/^\w+$/", $this->mActionName)) { die(); From minahito @ users.sourceforge.jp Tue Oct 17 19:23:03 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 17 Oct 2006 19:23:03 +0900 Subject: [xoops-cvslog 5390] CVS update: xoops2jp/html/modules/pm/actions Message-ID: <20061017102303.7C8D32AC070@users.sourceforge.jp> Index: xoops2jp/html/modules/pm/actions/ReadAction.class.php diff -u xoops2jp/html/modules/pm/actions/ReadAction.class.php:1.1.2.3.2.1 xoops2jp/html/modules/pm/actions/ReadAction.class.php:1.1.2.3.2.2 --- xoops2jp/html/modules/pm/actions/ReadAction.class.php:1.1.2.3.2.1 Thu Oct 5 19:18:14 2006 +++ xoops2jp/html/modules/pm/actions/ReadAction.class.php Tue Oct 17 19:23:03 2006 @@ -1,7 +1,7 @@ add(new Criteria('msg_id', $this->mPrivMessage->getVar('msg_id'), "<")); + $criteria->add(new Criteria('to_userid', $xoopsUser->get('uid'))); $criteria->setLimit(1); $criteria->setSort('msg_time'); $criteria->setOrder('DESC'); @@ -88,6 +89,7 @@ $criteria =& new CriteriaCompo(); $criteria->add(new Criteria('msg_id', $this->mPrivMessage->getVar('msg_id'), ">")); + $criteria->add(new Criteria('to_userid', $xoopsUser->get('uid'))); $criteria->setLimit(1); $criteria->setSort('msg_time'); $t_objArr =& $pmHandler->getObjects($criteria); From tom_g3x @ users.sourceforge.jp Tue Oct 17 19:51:05 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Tue, 17 Oct 2006 19:51:05 +0900 Subject: [xoops-cvslog 5391] CVS update: xoops2jp/html/modules/legacy/admin/templates Message-ID: <20061017105105.9A09C2AC098@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/templates/module_update.html diff -u xoops2jp/html/modules/legacy/admin/templates/module_update.html:1.1.2.3 xoops2jp/html/modules/legacy/admin/templates/module_update.html:1.1.2.4 --- xoops2jp/html/modules/legacy/admin/templates/module_update.html:1.1.2.3 Sun Oct 15 01:54:59 2006 +++ xoops2jp/html/modules/legacy/admin/templates/module_update.html Tue Oct 17 19:51:05 2006 @@ -41,7 +41,7 @@ <{$smarty.const._AD_LEGACY_LANG_VERSION}> <{math equation="v/100" v=$module->get('version') format="%.2f"}> <{if $module->get('version') != $module->modinfo.version * 100 }> - » <{math equation=$module->modinfo.version format="%.2f"}> + » <{$module->modinfo.version}> <{/if}> From minahito @ users.sourceforge.jp Wed Oct 18 00:05:25 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 18 Oct 2006 00:05:25 +0900 Subject: [xoops-cvslog 5392] CVS update: xoops2jp/html/themes/cube_default/images Message-ID: <20061017150525.43A372AC059@users.sourceforge.jp> Index: xoops2jp/html/themes/cube_default/images/poweredby.gif From minahito @ users.sourceforge.jp Thu Oct 19 15:50:47 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 19 Oct 2006 15:50:47 +0900 Subject: [xoops-cvslog 5393] CVS update: xoops2jp/html/install Message-ID: <20061019065047.1FB0D2AC112@users.sourceforge.jp> Index: xoops2jp/html/install/install_tpl.php diff -u xoops2jp/html/install/install_tpl.php:1.1.8.5 xoops2jp/html/install/install_tpl.php:1.1.8.5.2.1 --- xoops2jp/html/install/install_tpl.php:1.1.8.5 Tue Sep 19 16:30:53 2006 +++ xoops2jp/html/install/install_tpl.php Thu Oct 19 15:50:46 2006 @@ -23,6 +23,12 @@ +
+    +    + +
+ From minahito @ users.sourceforge.jp Thu Oct 19 15:50:55 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 19 Oct 2006 15:50:55 +0900 Subject: [xoops-cvslog 5394] CVS update: xoops2jp/html/install Message-ID: <20061019065055.093C12AC112@users.sourceforge.jp> Index: xoops2jp/html/install/style.css diff -u xoops2jp/html/install/style.css:1.1.8.4 xoops2jp/html/install/style.css:1.1.8.4.2.1 --- xoops2jp/html/install/style.css:1.1.8.4 Tue Sep 19 16:30:32 2006 +++ xoops2jp/html/install/style.css Thu Oct 19 15:50:54 2006 @@ -21,6 +21,7 @@ #mainbody .maincontents {background:#FFFFFF; padding:15px 20px; line-height:150%;} #mainbody h3 {margin-top:10px; margin-bottom:5px; padding:10px; background:#EEEEFF; font-size:14px;} +#header_buttons {background:#EEEEFF; padding:15px; text-align:right;} #footer {background:#EEEEFF; padding:15px; text-align:right;} .separate {border-collapse:separate;} From minahito @ users.sourceforge.jp Thu Oct 19 17:47:54 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 19 Oct 2006 17:47:54 +0900 Subject: [xoops-cvslog 5395] CVS update: xoops2jp/html/class/smarty/plugins Message-ID: <20061019084754.E1C512AC015@users.sourceforge.jp> Index: xoops2jp/html/class/smarty/plugins/modifier.xoops_user_avatarize.php diff -u xoops2jp/html/class/smarty/plugins/modifier.xoops_user_avatarize.php:1.1.2.2 xoops2jp/html/class/smarty/plugins/modifier.xoops_user_avatarize.php:1.1.2.2.2.1 --- xoops2jp/html/class/smarty/plugins/modifier.xoops_user_avatarize.php:1.1.2.2 Mon Sep 25 18:34:18 2006 +++ xoops2jp/html/class/smarty/plugins/modifier.xoops_user_avatarize.php Thu Oct 19 17:47:54 2006 @@ -19,7 +19,7 @@ } } - return XOOPS_UPLOAD_URL . "/modules/user/images/no_avatar.gif"; + return XOOPS_URL . "/modules/user/images/no_avatar.gif"; } ?> From minahito @ users.sourceforge.jp Thu Oct 19 17:55:22 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 19 Oct 2006 17:55:22 +0900 Subject: [xoops-cvslog 5396] CVS update: xoops2jp/html/class/mail/phpmailer/language Message-ID: <20061019085522.491382AC015@users.sourceforge.jp> From minahito @ users.sourceforge.jp Thu Oct 19 17:55:26 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 19 Oct 2006 17:55:26 +0900 Subject: [xoops-cvslog 5397] CVS update: xoops2jp/html/class/mail/phpmailer/language Message-ID: <20061019085526.0D3792AC015@users.sourceforge.jp> Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-fi.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-fi.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-fi.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,23 @@ + \ No newline at end of file Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-de.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-de.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-de.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,23 @@ + Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-fo.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-fo.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-fo.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,25 @@ + Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-tr.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-tr.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-tr.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,25 @@ + \ No newline at end of file Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-dk.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-dk.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-dk.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,24 @@ + + */ + +$PHPMAILER_LANG = array(); + +$PHPMAILER_LANG["provide_address"] = 'Du skal indtaste mindst en ' . + 'modtagers emailadresse.'; +$PHPMAILER_LANG["mailer_not_supported"] = ' mailer underst?tes ikke.'; +$PHPMAILER_LANG["execute"] = 'Kunne ikke k?e: '; +$PHPMAILER_LANG["instantiate"] = 'Kunne ikke initialisere email funktionen.'; +$PHPMAILER_LANG["authenticate"] = 'SMTP fejl: Kunne ikke logge p?'; +$PHPMAILER_LANG["from_failed"] = 'F?gende afsenderadresse er forkert: '; +$PHPMAILER_LANG["recipients_failed"] = 'SMTP fejl: F?gende' . + 'modtagere er forkerte: '; +$PHPMAILER_LANG["data_not_accepted"] = 'SMTP fejl: Data kunne ikke accepteres.'; +$PHPMAILER_LANG["connect_host"] = 'SMTP fejl: Kunne ikke tilslutte SMTP serveren.'; +$PHPMAILER_LANG["file_access"] = 'Ingen adgang til fil: '; +$PHPMAILER_LANG["file_open"] = 'Fil fejl: Kunne ikke ?ne filen: '; +$PHPMAILER_LANG["encoding"] = 'Ukendt encode-format: '; +?> \ No newline at end of file Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-es.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-es.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-es.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,23 @@ + \ No newline at end of file Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-ru.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-ru.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-ru.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,23 @@ + Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-ja.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-ja.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-ja.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,25 @@ + \ No newline at end of file Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-hu.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-hu.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-hu.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,23 @@ + \ No newline at end of file Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-fr.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-fr.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-fr.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,24 @@ + Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-it.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-it.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-it.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,28 @@ + +*/ + +$PHPMAILER_LANG = array(); + +$PHPMAILER_LANG["provide_address"] = 'Deve essere fornito almeno un'. + ' indirizzo ricevente'; +$PHPMAILER_LANG["mailer_not_supported"] = 'Mailer non supportato'; +$PHPMAILER_LANG["execute"] = "Impossibile eseguire l'operazione: "; +$PHPMAILER_LANG["instantiate"] = 'Impossibile istanziare la funzione mail'; +$PHPMAILER_LANG["authenticate"] = 'SMTP Error: Impossibile autenticarsi.'; +$PHPMAILER_LANG["from_failed"] = 'I seguenti indirizzi mittenti hanno'. + ' generato errore: '; +$PHPMAILER_LANG["recipients_failed"] = 'SMTP Error: I seguenti indirizzi'. + 'destinatari hanno generato errore: '; +$PHPMAILER_LANG["data_not_accepted"] = 'SMTP Error: Data non accettati dal'. + 'server.'; +$PHPMAILER_LANG["connect_host"] = 'SMTP Error: Impossibile connettersi'. + ' all\'host SMTP.'; +$PHPMAILER_LANG["file_access"] = 'Impossibile accedere al file: '; +$PHPMAILER_LANG["file_open"] = 'File Error: Impossibile aprire il file: '; +$PHPMAILER_LANG["encoding"] = 'Encoding set dei caratteri sconosciuto: '; +?> Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-br.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-br.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-br.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,21 @@ + Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-en.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-en.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-en.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,23 @@ + Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-nl.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-nl.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-nl.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,23 @@ + \ No newline at end of file Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-ro.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-ro.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-ro.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,23 @@ + + */ + +$PHPMAILER_LANG = array(); + +$PHPMAILER_LANG["provide_address"] = 'Trebuie sa adaugati cel putin un recipient (adresa de mail).'; +$PHPMAILER_LANG["mailer_not_supported"] = ' mailer nu este suportat.'; +$PHPMAILER_LANG["execute"] = 'Nu pot executa: '; +$PHPMAILER_LANG["instantiate"] = 'Nu am putut instantia functia mail.'; +$PHPMAILER_LANG["authenticate"] = 'Eroare SMTP: Nu a functionat autentificarea.'; +$PHPMAILER_LANG["from_failed"] = 'Urmatoarele adrese From au dat eroare: '; +$PHPMAILER_LANG["recipients_failed"] = 'Eroare SMTP: Urmatoarele adrese de mail au dat eroare: '; +$PHPMAILER_LANG["data_not_accepted"] = 'Eroare SMTP: Continutul mailului nu a fost acceptat.'; +$PHPMAILER_LANG["connect_host"] = 'Eroare SMTP: Nu m-am putut conecta la adresa SMTP.'; +$PHPMAILER_LANG["file_access"] = 'Nu pot accesa fisierul: '; +$PHPMAILER_LANG["file_open"] = 'Eroare de fisier: Nu pot deschide fisierul: '; +$PHPMAILER_LANG["encoding"] = 'Encodare necunoscuta: '; +?> Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-no.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-no.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-no.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,23 @@ + Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-ca.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-ca.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-ca.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,22 @@ + \ No newline at end of file Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-cz.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-cz.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-cz.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,24 @@ + \ No newline at end of file Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-pl.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-pl.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-pl.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,24 @@ + \ No newline at end of file Index: xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-se.php diff -u /dev/null xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-se.php:1.1.2.1 --- /dev/null Thu Oct 19 17:55:25 2006 +++ xoops2jp/html/class/mail/phpmailer/language/phpmailer.lang-se.php Thu Oct 19 17:55:25 2006 @@ -0,0 +1,24 @@ + + */ + +$PHPMAILER_LANG = array(); + +$PHPMAILER_LANG["provide_address"] = 'Du m?te ange minst en ' . + 'mottagares e-postadress.'; +$PHPMAILER_LANG["mailer_not_supported"] = ' mailer st?s inte.'; +$PHPMAILER_LANG["execute"] = 'Kunde inte k?a: '; +$PHPMAILER_LANG["instantiate"] = 'Kunde inte initiera e-postfunktion.'; +$PHPMAILER_LANG["authenticate"] = 'SMTP fel: Kunde inte autentisera.'; +$PHPMAILER_LANG["from_failed"] = 'F?jande avs?daradress ? felaktig: '; +$PHPMAILER_LANG["recipients_failed"] = 'SMTP fel: F?jande ' . + 'mottagare ? felaktig: '; +$PHPMAILER_LANG["data_not_accepted"] = 'SMTP fel: Data accepterades inte.'; +$PHPMAILER_LANG["connect_host"] = 'SMTP fel: Kunde inte ansluta till SMTP-server.'; +$PHPMAILER_LANG["file_access"] = 'Ingen ?komst till fil: '; +$PHPMAILER_LANG["file_open"] = 'Fil fel: Kunde inte ?pna fil: '; +$PHPMAILER_LANG["encoding"] = 'Ok?t encode-format: '; +?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Oct 19 17:55:53 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 19 Oct 2006 17:55:53 +0900 Subject: [xoops-cvslog 5398] CVS update: xoops2jp/html/class/mail Message-ID: <20061019085553.4AF052AC015@users.sourceforge.jp> Index: xoops2jp/html/class/mail/xoopsmultimailer.php diff -u xoops2jp/html/class/mail/xoopsmultimailer.php:1.2.8.1 xoops2jp/html/class/mail/xoopsmultimailer.php:1.2.8.1.2.1 --- xoops2jp/html/class/mail/xoopsmultimailer.php:1.2.8.1 Sun Nov 20 21:14:56 2005 +++ xoops2jp/html/class/mail/xoopsmultimailer.php Thu Oct 19 17:55:53 2006 @@ -1,5 +1,5 @@ - * @copyright copyright (c) 2000-2003 The XOOPS Project (http://www.xoops.org) + * @author Jochen B?nagel + * @copyright copyright (c) 2000-2003 The XOOPS Project (http://www.xoops.org) * - * @version $Revision: 1.2.8.1 $ - $Date: 2005/11/20 12:14:56 $ + * @version $Revision: 1.2.8.1.2.1 $ - $Date: 2006/10/19 08:55:53 $ */ /** @@ -54,125 +54,125 @@ * If you have problems sending mail with "mail()", you can edit the member variables * to suit your setting. Later this will be possible through the admin panel. * - * @todo Make a page in the admin panel for setting mailer preferences. + * @todo Make a page in the admin panel for setting mailer preferences. * - * @package class - * @subpackage mail + * @package class + * @subpackage mail * - * @author Jochen Buennagel - * @copyright (c) 2000-2003 The Xoops Project - www.xoops.org - * @version $Revision: 1.2.8.1 $ - changed by $Author: nobunobu $ on $Date: 2005/11/20 12:14:56 $ + * @author Jochen Buennagel + * @copyright (c) 2000-2003 The Xoops Project - www.xoops.org + * @version $Revision: 1.2.8.1.2.1 $ - changed by $Author: minahito $ on $Date: 2006/10/19 08:55:53 $ */ class XoopsMultiMailer extends PHPMailer { - /** - * "from" address - * @var string - * @access private - */ - var $From = ""; - - /** - * "from" name - * @var string - * @access private - */ - var $FromName = ""; - - // can be "smtp", "sendmail", or "mail" - /** - * Method to be used when sending the mail. - * - * This can be: - *
  • mail (standard PHP function "mail()") (default) - *
  • smtp (send through any SMTP server, SMTPAuth is supported. - * You must set {@link $Host}, for SMTPAuth also {@link $SMTPAuth}, - * {@link $Username}, and {@link $Password}.) - *
  • sendmail (manually set the path to your sendmail program - * to something different than "mail()" uses in {@link $Sendmail}) - * - * @var string - * @access private - */ - var $Mailer = "mail"; - - /** - * set if $Mailer is "sendmail" - * - * Only used if {@link $Mailer} is set to "sendmail". - * Contains the full path to your sendmail program or replacement. - * @var string - * @access private - */ - var $Sendmail = "/usr/sbin/sendmail"; - - /** - * SMTP Host. - * - * Only used if {@link $Mailer} is set to "smtp" - * @var string - * @access private - */ - var $Host = ""; - - /** - * Does your SMTP host require SMTPAuth authentication? - * @var boolean - * @access private - */ - var $SMTPAuth = FALSE; - - /** - * Username for authentication with your SMTP host. - * - * Only used if {@link $Mailer} is "smtp" and {@link $SMTPAuth} is TRUE - * @var string - * @access private - */ - var $Username = ""; - - /** - * Password for SMTPAuth. - * - * Only used if {@link $Mailer} is "smtp" and {@link $SMTPAuth} is TRUE - * @var string - * @access private - */ - var $Password = ""; - - /** - * Constuctor - * - * @access public - * @return void - * - * @global $xoopsConfig - */ - function XoopsMultiMailer(){ - global $xoopsConfig; - - $config_handler =& xoops_gethandler('config'); - $xoopsMailerConfig =& $config_handler->getConfigsByCat(XOOPS_CONF_MAILER); - $this->From = $xoopsMailerConfig['from']; - if ($this->From == '') { - $this->From = $xoopsConfig['adminmail']; - } - // $this->Sender = $xoopsConfig['adminmail']; //TODO: This line is added in OTX by Marijuana. We must verify. - if ($xoopsMailerConfig["mailmethod"] == "smtpauth") { - $this->Mailer = "smtp"; - $this->SMTPAuth = TRUE; - $this->Host = implode(';',$xoopsMailerConfig['smtphost']); - $this->Username = $xoopsMailerConfig['smtpuser']; - $this->Password = $xoopsMailerConfig['smtppass']; - } else { - $this->Mailer = $xoopsMailerConfig['mailmethod']; - $this->SMTPAuth = FALSE; - $this->Sendmail = $xoopsMailerConfig['sendmailpath']; - $this->Host = implode(';',$xoopsMailerConfig['smtphost']); - } - } + /** + * "from" address + * @var string + * @access private + */ + var $From = ""; + + /** + * "from" name + * @var string + * @access private + */ + var $FromName = ""; + + // can be "smtp", "sendmail", or "mail" + /** + * Method to be used when sending the mail. + * + * This can be: + *
  • mail (standard PHP function "mail()") (default) + *
  • smtp (send through any SMTP server, SMTPAuth is supported. + * You must set {@link $Host}, for SMTPAuth also {@link $SMTPAuth}, + * {@link $Username}, and {@link $Password}.) + *
  • sendmail (manually set the path to your sendmail program + * to something different than "mail()" uses in {@link $Sendmail}) + * + * @var string + * @access private + */ + var $Mailer = "mail"; + + /** + * set if $Mailer is "sendmail" + * + * Only used if {@link $Mailer} is set to "sendmail". + * Contains the full path to your sendmail program or replacement. + * @var string + * @access private + */ + var $Sendmail = "/usr/sbin/sendmail"; + + /** + * SMTP Host. + * + * Only used if {@link $Mailer} is set to "smtp" + * @var string + * @access private + */ + var $Host = ""; + + /** + * Does your SMTP host require SMTPAuth authentication? + * @var boolean + * @access private + */ + var $SMTPAuth = FALSE; + + /** + * Username for authentication with your SMTP host. + * + * Only used if {@link $Mailer} is "smtp" and {@link $SMTPAuth} is TRUE + * @var string + * @access private + */ + var $Username = ""; + + /** + * Password for SMTPAuth. + * + * Only used if {@link $Mailer} is "smtp" and {@link $SMTPAuth} is TRUE + * @var string + * @access private + */ + var $Password = ""; + + /** + * Constuctor + * + * @access public + * @return void + * + * @global $xoopsConfig + */ + function XoopsMultiMailer(){ + global $xoopsConfig; + $this->ClearAllRecipients(); + $config_handler =& xoops_gethandler('config'); + $xoopsMailerConfig =& $config_handler->getConfigsByCat(XOOPS_CONF_MAILER); + $this->From = $xoopsMailerConfig['from']; + if ($this->From == '') { + $this->From = $xoopsConfig['adminmail']; + } + $this->Sender = $xoopsConfig['adminmail']; + if ($xoopsMailerConfig["mailmethod"] == "smtpauth") { + $this->Mailer = "smtp"; + $this->SMTPAuth = TRUE; + $this->Host = implode(';',$xoopsMailerConfig['smtphost']); + $this->Username = $xoopsMailerConfig['smtpuser']; + $this->Password = $xoopsMailerConfig['smtppass']; + } else { + $this->Mailer = $xoopsMailerConfig['mailmethod']; + $this->SMTPAuth = FALSE; + $this->Sendmail = $xoopsMailerConfig['sendmailpath']; + $this->Host = implode(';',$xoopsMailerConfig['smtphost']); + } + } - /** + /** * Formats an address correctly. This overrides the default AddrFormat method * which does not seem to encode $FromName correctly * This method name is renamed from "addr_format", because method name in parent class is renamed. From minahito @ users.sourceforge.jp Thu Oct 19 17:56:25 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 19 Oct 2006 17:56:25 +0900 Subject: [xoops-cvslog 5399] CVS update: xoops2jp/html/language/japanese Message-ID: <20061019085625.278922AC015@users.sourceforge.jp> Index: xoops2jp/html/language/japanese/xoopsmailerlocal.php diff -u xoops2jp/html/language/japanese/xoopsmailerlocal.php:1.1.8.3 xoops2jp/html/language/japanese/xoopsmailerlocal.php:1.1.8.3.2.1 --- xoops2jp/html/language/japanese/xoopsmailerlocal.php:1.1.8.3 Tue May 16 22:11:28 2006 +++ xoops2jp/html/language/japanese/xoopsmailerlocal.php Thu Oct 19 17:56:25 2006 @@ -1,5 +1,5 @@ reset(); $this->charSet = 'iso-2022-jp'; $this->encoding = '7bit'; - $this->multimailer->CharSet = $this->charSet; + $this->multimailer->CharSet = $this->charSet; + $this->multimailer->SetLanguage('ja'); + $this->multimailer->Encoding = "7bit"; } function encodeFromName($text){ @@ -63,7 +65,7 @@ --------------------------------------*/ 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); + $str_JIS = mb_convert_encoding(mb_convert_kana($str,"KV", $from_charset), "JIS", $from_charset); } else if ($from_charset=='EUC-JP') { $str_JIS = ''; $mode = 0; From minahito @ users.sourceforge.jp Thu Oct 19 18:00:40 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 19 Oct 2006 18:00:40 +0900 Subject: [xoops-cvslog 5400] CVS update: xoops2jp/html/modules/legacy/language/english Message-ID: <20061019090040.D43E52AC015@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/language/english/global.php diff -u xoops2jp/html/modules/legacy/language/english/global.php:1.1.2.1 xoops2jp/html/modules/legacy/language/english/global.php:1.1.2.2 --- xoops2jp/html/modules/legacy/language/english/global.php:1.1.2.1 Sat Oct 14 23:55:22 2006 +++ xoops2jp/html/modules/legacy/language/english/global.php Thu Oct 19 18:00:40 2006 @@ -34,8 +34,8 @@ define("_MORE","more..."); define("_MULTIPAGE","To have your article span multiple pages, insert the word [pagebreak] (with brackets) in the article."); define("_IFNOTRELOAD","If the page does not automatically reload, please click here"); -define("_WARNINSTALL2","WARNING: Directory %s exists on your server.
    Please remove this directory for security reasons."); -define("_WARNINWRITEABLE","WARNING: File %s is writeable by the server.
    Please change the permission of this file for security reasons.
    in Unix (444), in Win32 (read-only)"); +define("_WARNINSTALL2","WARNING: Directory %s exists on your server. Please remove this directory for security reasons."); +define("_WARNINWRITEABLE","WARNING: File %s is writeable by the server. Please change the permission of this file for security reasons. in Unix (444), in Win32 (read-only)"); define('_WARNPHPENV','WARNING: php.ini parameter "%s" is set to "%s". %s'); define('_WARNSECURITY','(It may cause a security problem)'); From minahito @ users.sourceforge.jp Thu Oct 19 18:01:06 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 19 Oct 2006 18:01:06 +0900 Subject: [xoops-cvslog 5401] CVS update: xoops2jp/html/modules/legacy/language/english Message-ID: <20061019090106.F10BA2AC015@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/language/english/admin.php diff -u xoops2jp/html/modules/legacy/language/english/admin.php:1.1.2.2 xoops2jp/html/modules/legacy/language/english/admin.php:1.1.2.3 --- xoops2jp/html/modules/legacy/language/english/admin.php:1.1.2.2 Sun Oct 15 01:41:42 2006 +++ xoops2jp/html/modules/legacy/language/english/admin.php Thu Oct 19 18:01:06 2006 @@ -232,8 +232,8 @@ define('_AD_LEGACY_MESSAGE_INSERT_CONFIG', "Config {0} added."); define('_AD_LEGACY_MESSAGE_INSTALLATION_MODULE_SUCCESSFUL', "Installation of '{0}' module has been successful."); define('_AD_LEGACY_MESSAGE_TEMPLATE_INSTALLED', "Template '{0}' has been installed."); -define('_AD_LEGACY_MESSAGE_UNINSTALLATION_MODULE_SUCCESSFUL', "Uninstallation of '{0}' module has been successful."); define('_AD_LEGACY_MESSAGE_UNINSTALLATION_BLOCK_SUCCESSFUL', "Uninstallation of '{0}' block has been successful."); +define('_AD_LEGACY_MESSAGE_UNINSTALLATION_MODULE_SUCCESSFUL', "Uninstallation of '{0}' module has been successful."); define('_AD_LEGACY_MESSAGE_UPDATE_STARTED', "Update started."); define('_AD_LEGACY_MESSAGE_UPDATING_MODULE_SUCCESSFUL', "Updating '{0}' module has been successful."); define('_AD_LEGACY_TIPS_ADD_CUSTOM_BLOCK', "Install new blocks, and set your site just the way you want it!
    If you want to have a block with free content that is not part of a module, simply create a custom block and write your message in it."); From minahito @ users.sourceforge.jp Thu Oct 19 19:20:56 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 19 Oct 2006 19:20:56 +0900 Subject: [xoops-cvslog 5402] CVS update: xoops2jp/html/modules/legacy/lib/EasyLex Message-ID: <20061019102056.A37252AC048@users.sourceforge.jp> From minahito @ users.sourceforge.jp Thu Oct 19 19:20:59 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 19 Oct 2006 19:20:59 +0900 Subject: [xoops-cvslog 5403] CVS update: xoops2jp/html/modules/legacy/lib/EasyLex Message-ID: <20061019102059.224DE2AC048@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/lib/EasyLex/EasyLex_SQLScanner.class.php diff -u /dev/null xoops2jp/html/modules/legacy/lib/EasyLex/EasyLex_SQLScanner.class.php:1.1.2.1 --- /dev/null Thu Oct 19 19:20:59 2006 +++ xoops2jp/html/modules/legacy/lib/EasyLex/EasyLex_SQLScanner.class.php Thu Oct 19 19:20:58 2006 @@ -0,0 +1,415 @@ +mBuffer = array(); + for ($i = 0; $i < strlen($buffer); $i++) { + $this->mBuffer[$i] = $buffer{$i}; + } + + $this->mIndex = 0; + } + + function parse() + { + while ($this->mIndex <= count($this->mBuffer)) { + if ($this->mIndex == count($this->mBuffer)) { + $ch = ''; + $type = EASYLEX_SQL_UNKNOWN; + } + else { + $ch = $this->mBuffer[$this->mIndex]; + $type = $this->_getChrType($ch); + } + + switch ($this->mStatus) { + case EASYLEX_SQL_UNKNOWN: + $this->_parseUnknown($ch, $type); + break; + + case EASYLEX_SQL_DIGIT: + $this->_parseDigit($ch, $type); + break; + + case EASYLEX_SQL_LETTER: + $this->_parseLetter($ch, $type); + break; + + case EASYLEX_SQL_STRING_LITERAL: + $this->_parseStringLiteral($ch, $type); + break; + + case EASYLEX_SQL_STRING_LITERAL_ESCAPE: + $this->_parseStringLiteralEscape($ch, $type); + break; + + case EASYLEX_SQL_OPEN_PARENTHESIS: + $this->_parseOpenParenthesis($ch, $type); + break; + + case EASYLEX_SQL_CLOSE_PARENTHESIS: + $this->_parseCloseParenthesis($ch, $type); + break; + + case EASYLEX_SQL_SEPARATER: + $this->_parseSeparater($ch, $type); + break; + + case EASYLEX_SQL_MARK: + $this->_parseMark($ch, $type); + break; + + case EASYLEX_SQL_SEMICOLON: + $this->_parseSemicolon($ch, $type); + break; + + case EASYLEX_SQL_COMMA: + $this->_parseComma($ch, $type); + break; + } + } + } + + /** + * Load file and set buffer. If $preprocess is true, scan commetns and + * remove these. + * + * @param string $path file path + * @param bool $preprocess + * @return bool + */ + function loadFile($path, $preprocess = true) + { + if (!file_exists($path)) { + return false; + } + + $fp = fopen($path, "rb"); + if (!$fp) { + return false; + } + + $t_buff = ""; + while ($str = fgets($fp)) { + if ($preprocess) { + $str = preg_replace("/^\s*\#.*/", "", $str); + } + $t_buff .= $str; + } + + $this->setBuffer($t_buff); + + fclose($fp); + return true; + } + + function _getChrType($ch) + { + if (preg_match("/\s/", $ch)) { + return EASYLEX_SQL_SEPARATER; + } + + if ($ch == '(') { + return EASYLEX_SQL_OPEN_PARENTHESIS; + } + + if ($ch == ')') { + return EASYLEX_SQL_CLOSE_PARENTHESIS; + } + + if ($ch == ';') { + return EASYLEX_SQL_SEMICOLON; + } + + if ($ch == ',') { + return EASYLEX_SQL_COMMA; + } + + if (preg_match("/[0-9]/", $ch)) { + return EASYLEX_SQL_DIGIT; + } + + if (preg_match("/[!=<>%\*]/", $ch)) { + return EASYLEX_SQL_MARK; + } + + return EASYLEX_SQL_LETTER; + } + + function _parseUnknown($ch, $type) + { + $this->mStatus = $type; + $this->mActiveToken .= $ch; + $this->mIndex++; + + if ($ch == "'" || $ch == '"' || $ch == '`') { + $this->mStatus = EASYLEX_SQL_STRING_LITERAL; + $this->mActiveQuoteMark = $ch; + } + + } + + function _parseDigit($ch, $type) + { + if ($type == EASYLEX_SQL_DIGIT) { + $this->mActiveToken .= $ch; + $this->mIndex++; + } + elseif ($type == EASYLEX_SQL_LETTER) { + $this->mStatus = EASYLEX_SQL_LETTER; + $this->mActiveToken .= $ch; + $this->mIndex++; + } + else { + $this->_createToken(); + } + } + + function _parseLetter($ch, $type) + { + if ($type == EASYLEX_SQL_LETTER || $type == EASYLEX_SQL_DIGIT) { + $this->mActiveToken .= $ch; + $this->mIndex++; + } + else { + $this->_createToken(); + } + } + + function _parseStringLiteral($ch, $type) + { + $this->mActiveToken .= $ch; + $this->mIndex++; + + if ($ch == "\\") { + $this->mStatus = EASYLEX_SQL_STRING_LITERAL_ESCAPE; + } + elseif ($ch == $this->mActiveQuoteMark) { + $this->_createToken(); + } + } + + function _parseStringLiteralEscape($ch, $type) + { + $this->mStatus = EASYLEX_SQL_STRING_LITERAL; + } + + function _parseOpenParenthesis($ch, $type) + { + $this->_createToken(); + } + + function _parseCloseParenthesis($ch, $type) + { + $this->_createToken(); + } + + function _parseSeparater($ch, $type) + { + if ($type == EASYLEX_SQL_SEPARATER) { + $this->mActiveToken .= $ch; + $this->mIndex++; + } + else { + // $this->_createToken(); + $this->mStatus = EASYLEX_SQL_UNKNOWN; + $this->mActiveToken = ""; + } + } + + function _parseSemicolon($ch, $type) + { + $this->_createToken(); + } + + function _parseMark($ch, $type) + { + if ($type == EASYLEX_SQL_MARK) { + $this->mActiveToken .= $ch; + $this->mIndex++; + } + else { + $this->_createToken(); + } + } + + function _parseComma($ch, $type) + { + $this->_createToken(); + } + + function _createToken($type = null, $value = null) + { + if ($type === null) { + $type = $this->mStatus; + } + + if ($value === null) { + $value = $this->mActiveToken; + } + + $token =& new EasyLex_SQLToken($type, $value); + $this->mTokens[] =& $token; + + $this->mStatus = EASYLEX_SQL_UNKNOWN; + $this->mActiveToken = ""; + + return $token; + } + + /** + * Return Array of operations. + * + * @return Array $ret[Index] = Array of tokens. + */ + function &getOperations() + { + $ret = array(); + $t_tokens = array(); + $depth = 0; + + foreach (array_keys($this->mTokens) as $key) { + if ($this->mTokens[$key]->mType == EASYLEX_SQL_OPEN_PARENTHESIS) { + $depth++; + } + elseif ($this->mTokens[$key]->mType == EASYLEX_SQL_CLOSE_PARENTHESIS) { + $depth--; + } + + $t_tokens[] =& $this->mTokens[$key]; + + if ($this->mTokens[$key]->mType == EASYLEX_SQL_SEMICOLON && $depth == 0) { + $ret[] =& $t_tokens; + unset($t_tokens); + $t_tokens = array(); + } + } + + if (count($t_tokens) > 0) { + $ret[] =& $t_tokens; + unset($t_tokens); + } + + return $ret; + } + + function getSQL() + { + $sqls = array(); + $lines =& $this->getOperations(); + + foreach ($lines as $line) { + $t_arr = array(); + foreach ($line as $token) { + $t_arr[] = $token->getOutputValue(); + } + $sqls[] = join(" ", $t_arr); + } + + return $sqls; + } +} + +class EasyLex_SQLToken +{ + var $mType = EASYLEX_SQL_UNKNOWN; + var $mValue = ""; + + function EasyLex_SQLToken($type, $value) + { + $this->mType = $type; + $this->mValue = $value; + } + + function getOutputValue() + { + if ($this->mType == EASYLEX_SQL_SEPARATER) { + return ""; + } + else { + return $this->mValue; + } + } + + function getValue() + { + if ($this->mType == EASYLEX_SQL_SEPARATER) { + return ""; + } + + if ($this->mType == EASYLEX_SQL_STRING_LITERAL) { + return substr($this->mValue, 1, strlen($this->mValue) - 2); + } + + return $this->mValue; + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Oct 19 19:21:10 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 19 Oct 2006 19:21:10 +0900 Subject: [xoops-cvslog 5403] CVS update: xoops2jp/html/modules/legacy/admin/class Message-ID: <20061019102110.3B8952AC048@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/class/EasyLex_SQLScanner.class.php diff -u xoops2jp/html/modules/legacy/admin/class/EasyLex_SQLScanner.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/class/EasyLex_SQLScanner.class.php:removed --- xoops2jp/html/modules/legacy/admin/class/EasyLex_SQLScanner.class.php:1.1.2.1 Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/admin/class/EasyLex_SQLScanner.class.php Thu Oct 19 19:21:10 2006 @@ -1,415 +0,0 @@ -mBuffer = array(); - for ($i = 0; $i < strlen($buffer); $i++) { - $this->mBuffer[$i] = $buffer{$i}; - } - - $this->mIndex = 0; - } - - function parse() - { - while ($this->mIndex <= count($this->mBuffer)) { - if ($this->mIndex == count($this->mBuffer)) { - $ch = ''; - $type = EASYLEX_SQL_UNKNOWN; - } - else { - $ch = $this->mBuffer[$this->mIndex]; - $type = $this->_getChrType($ch); - } - - switch ($this->mStatus) { - case EASYLEX_SQL_UNKNOWN: - $this->_parseUnknown($ch, $type); - break; - - case EASYLEX_SQL_DIGIT: - $this->_parseDigit($ch, $type); - break; - - case EASYLEX_SQL_LETTER: - $this->_parseLetter($ch, $type); - break; - - case EASYLEX_SQL_STRING_LITERAL: - $this->_parseStringLiteral($ch, $type); - break; - - case EASYLEX_SQL_STRING_LITERAL_ESCAPE: - $this->_parseStringLiteralEscape($ch, $type); - break; - - case EASYLEX_SQL_OPEN_PARENTHESIS: - $this->_parseOpenParenthesis($ch, $type); - break; - - case EASYLEX_SQL_CLOSE_PARENTHESIS: - $this->_parseCloseParenthesis($ch, $type); - break; - - case EASYLEX_SQL_SEPARATER: - $this->_parseSeparater($ch, $type); - break; - - case EASYLEX_SQL_MARK: - $this->_parseMark($ch, $type); - break; - - case EASYLEX_SQL_SEMICOLON: - $this->_parseSemicolon($ch, $type); - break; - - case EASYLEX_SQL_COMMA: - $this->_parseComma($ch, $type); - break; - } - } - } - - /** - * Load file and set buffer. If $preprocess is true, scan commetns and - * remove these. - * - * @param string $path file path - * @param bool $preprocess - * @return bool - */ - function loadFile($path, $preprocess = true) - { - if (!file_exists($path)) { - return false; - } - - $fp = fopen($path, "rb"); - if (!$fp) { - return false; - } - - $t_buff = ""; - while ($str = fgets($fp)) { - if ($preprocess) { - $str = preg_replace("/^\s*\#.*/", "", $str); - } - $t_buff .= $str; - } - - $this->setBuffer($t_buff); - - fclose($fp); - return true; - } - - function _getChrType($ch) - { - if (preg_match("/\s/", $ch)) { - return EASYLEX_SQL_SEPARATER; - } - - if ($ch == '(') { - return EASYLEX_SQL_OPEN_PARENTHESIS; - } - - if ($ch == ')') { - return EASYLEX_SQL_CLOSE_PARENTHESIS; - } - - if ($ch == ';') { - return EASYLEX_SQL_SEMICOLON; - } - - if ($ch == ',') { - return EASYLEX_SQL_COMMA; - } - - if (preg_match("/[0-9]/", $ch)) { - return EASYLEX_SQL_DIGIT; - } - - if (preg_match("/[!=<>%\*]/", $ch)) { - return EASYLEX_SQL_MARK; - } - - return EASYLEX_SQL_LETTER; - } - - function _parseUnknown($ch, $type) - { - $this->mStatus = $type; - $this->mActiveToken .= $ch; - $this->mIndex++; - - if ($ch == "'" || $ch == '"' || $ch == '`') { - $this->mStatus = EASYLEX_SQL_STRING_LITERAL; - $this->mActiveQuoteMark = $ch; - } - - } - - function _parseDigit($ch, $type) - { - if ($type == EASYLEX_SQL_DIGIT) { - $this->mActiveToken .= $ch; - $this->mIndex++; - } - elseif ($type == EASYLEX_SQL_LETTER) { - $this->mStatus = EASYLEX_SQL_LETTER; - $this->mActiveToken .= $ch; - $this->mIndex++; - } - else { - $this->_createToken(); - } - } - - function _parseLetter($ch, $type) - { - if ($type == EASYLEX_SQL_LETTER || $type == EASYLEX_SQL_DIGIT) { - $this->mActiveToken .= $ch; - $this->mIndex++; - } - else { - $this->_createToken(); - } - } - - function _parseStringLiteral($ch, $type) - { - $this->mActiveToken .= $ch; - $this->mIndex++; - - if ($ch == "\\") { - $this->mStatus = EASYLEX_SQL_STRING_LITERAL_ESCAPE; - } - elseif ($ch == $this->mActiveQuoteMark) { - $this->_createToken(); - } - } - - function _parseStringLiteralEscape($ch, $type) - { - $this->mStatus = EASYLEX_SQL_STRING_LITERAL; - } - - function _parseOpenParenthesis($ch, $type) - { - $this->_createToken(); - } - - function _parseCloseParenthesis($ch, $type) - { - $this->_createToken(); - } - - function _parseSeparater($ch, $type) - { - if ($type == EASYLEX_SQL_SEPARATER) { - $this->mActiveToken .= $ch; - $this->mIndex++; - } - else { - // $this->_createToken(); - $this->mStatus = EASYLEX_SQL_UNKNOWN; - $this->mActiveToken = ""; - } - } - - function _parseSemicolon($ch, $type) - { - $this->_createToken(); - } - - function _parseMark($ch, $type) - { - if ($type == EASYLEX_SQL_MARK) { - $this->mActiveToken .= $ch; - $this->mIndex++; - } - else { - $this->_createToken(); - } - } - - function _parseComma($ch, $type) - { - $this->_createToken(); - } - - function _createToken($type = null, $value = null) - { - if ($type === null) { - $type = $this->mStatus; - } - - if ($value === null) { - $value = $this->mActiveToken; - } - - $token =& new EasyLex_SQLToken($type, $value); - $this->mTokens[] =& $token; - - $this->mStatus = EASYLEX_SQL_UNKNOWN; - $this->mActiveToken = ""; - - return $token; - } - - /** - * Return Array of operations. - * - * @return Array $ret[Index] = Array of tokens. - */ - function &getOperations() - { - $ret = array(); - $t_tokens = array(); - $depth = 0; - - foreach (array_keys($this->mTokens) as $key) { - if ($this->mTokens[$key]->mType == EASYLEX_SQL_OPEN_PARENTHESIS) { - $depth++; - } - elseif ($this->mTokens[$key]->mType == EASYLEX_SQL_CLOSE_PARENTHESIS) { - $depth--; - } - - $t_tokens[] =& $this->mTokens[$key]; - - if ($this->mTokens[$key]->mType == EASYLEX_SQL_SEMICOLON && $depth == 0) { - $ret[] =& $t_tokens; - unset($t_tokens); - $t_tokens = array(); - } - } - - if (count($t_tokens) > 0) { - $ret[] =& $t_tokens; - unset($t_tokens); - } - - return $ret; - } - - function getSQL() - { - $sqls = array(); - $lines =& $this->getOperations(); - - foreach ($lines as $line) { - $t_arr = array(); - foreach ($line as $token) { - $t_arr[] = $token->getOutputValue(); - } - $sqls[] = join(" ", $t_arr); - } - - return $sqls; - } -} - -class EasyLex_SQLToken -{ - var $mType = EASYLEX_SQL_UNKNOWN; - var $mValue = ""; - - function EasyLex_SQLToken($type, $value) - { - $this->mType = $type; - $this->mValue = $value; - } - - function getOutputValue() - { - if ($this->mType == EASYLEX_SQL_SEPARATER) { - return ""; - } - else { - return $this->mValue; - } - } - - function getValue() - { - if ($this->mType == EASYLEX_SQL_SEPARATER) { - return ""; - } - - if ($this->mType == EASYLEX_SQL_STRING_LITERAL) { - return substr($this->mValue, 1, strlen($this->mValue) - 2); - } - - return $this->mValue; - } -} - -?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Oct 19 19:21:24 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 19 Oct 2006 19:21:24 +0900 Subject: [xoops-cvslog 5404] CVS update: xoops2jp/html/modules/legacy/admin/class Message-ID: <20061019102124.491042AC048@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/class/Legacy_SQLScanner.class.php diff -u xoops2jp/html/modules/legacy/admin/class/Legacy_SQLScanner.class.php:1.1.2.1 xoops2jp/html/modules/legacy/admin/class/Legacy_SQLScanner.class.php:1.1.2.2 --- xoops2jp/html/modules/legacy/admin/class/Legacy_SQLScanner.class.php:1.1.2.1 Sat Oct 14 23:55:23 2006 +++ xoops2jp/html/modules/legacy/admin/class/Legacy_SQLScanner.class.php Thu Oct 19 19:21:24 2006 @@ -1,6 +1,8 @@ Index: xoops2jp/html/modules/legacy/admin/class/ModuleUpdateFramework.class.php diff -u /dev/null xoops2jp/html/modules/legacy/admin/class/ModuleUpdateFramework.class.php:1.1.2.1 --- /dev/null Thu Oct 19 19:23:23 2006 +++ xoops2jp/html/modules/legacy/admin/class/ModuleUpdateFramework.class.php Thu Oct 19 19:23:23 2006 @@ -0,0 +1,103 @@ + {methodName} + * + * Example: + * var $_mMilestone = array('020' => 'update020', '025' => 'update025'); + * + * @access protected + */ + var $_mMilestone = array(); + + /** + * @access protected + */ + var $_mTargetVersion = 0; + + /** + * @access protected + */ + var $_mIsEnableFramework = false; + + function &loadModuleObject($dirname) + { + $ret = null; + + $module =& parent::loadModuleObject($dirname); + if (!is_object($module)) { + return $ret; + } + + ksort($this->_mMilestone); + + foreach ($this->_mMilestone as $version => $value) { + if ($version > $this->mPreVersion) { + $this->_mTargetVersion = $version; + $this->_mIsEnableFramework = true; + return $module; + } + } + + $this->_mTargetVersion = intval($module->modinfo['version'] * 100); + + return $module; + } + + function _installModule() + { + $moduleHandler =& xoops_gethandler('module'); + $this->mModule->set('version', $this->_mTargetVersion); + if (!$moduleHandler->insert($this->mModule)) { + $this->mLog->addError("*Could not install module information*"); + return false; + } + + return true; + } + + function execute() + { + if ($this->_mIsEnableFramework) { + $this->mModule =& $this->loadModuleObject($this->mDirname); + + if (!is_object($this->mModule)) { + $this->_processReport(); + return false; + } + + $method = $this->_mMilestone[$this->_mTargetVersion]; + + if (is_callable(array($this, $method))) { + $this->$method(); + + $this->_processReport(); + + return true; + } + else { + // + // TODO need error message. + // + $this->mLog->addError('Update framework is a wrong.'); + return false; + } + } + else { + parent::execute(); + } + } +} + + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Oct 19 19:23:42 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 19 Oct 2006 19:23:42 +0900 Subject: [xoops-cvslog 5406] CVS update: xoops2jp/html/modules/legacy/admin/class Message-ID: <20061019102342.9451E2AC048@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/class/ModuleUpdater.class.php diff -u xoops2jp/html/modules/legacy/admin/class/ModuleUpdater.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/class/ModuleUpdater.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/class/ModuleUpdater.class.php:1.1.2.2 Sun Oct 15 01:01:18 2006 +++ xoops2jp/html/modules/legacy/admin/class/ModuleUpdater.class.php Thu Oct 19 19:23:42 2006 @@ -51,7 +51,8 @@ $this->mPreVersion = $module->getVar('version'); $name = $module->getVar('name','n'); $module->loadInfoAsVar($dirname); - $module->setVar('name', $name, true); + $module->set('name', $name, true); + return $module; } From minahito @ users.sourceforge.jp Thu Oct 19 19:24:48 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 19 Oct 2006 19:24:48 +0900 Subject: [xoops-cvslog 5407] CVS update: xoops2jp/html/modules/legacy/admin/actions Message-ID: <20061019102448.712FD2AC048@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/actions/ModuleUpdateAction.class.php diff -u xoops2jp/html/modules/legacy/admin/actions/ModuleUpdateAction.class.php:1.1.2.2 xoops2jp/html/modules/legacy/admin/actions/ModuleUpdateAction.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/actions/ModuleUpdateAction.class.php:1.1.2.2 Sun Oct 15 00:55:56 2006 +++ xoops2jp/html/modules/legacy/admin/actions/ModuleUpdateAction.class.php Thu Oct 19 19:24:48 2006 @@ -8,6 +8,7 @@ require_once XOOPS_LEGACY_PATH . "/admin/actions/AbstractModuleInstallAction.class.php"; require_once XOOPS_LEGACY_PATH . "/admin/class/ModuleUpdater.class.php"; +require_once XOOPS_LEGACY_PATH . "/admin/class/ModuleUpdateFramework.class.php"; require_once XOOPS_LEGACY_PATH . "/admin/forms/ModuleUpdateForm.class.php"; class Legacy_ModuleUpdateAction extends Legacy_AbstractModuleInstallAction From minahito @ users.sourceforge.jp Thu Oct 19 22:30:41 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 19 Oct 2006 22:30:41 +0900 Subject: [xoops-cvslog 5408] CVS update: xoops2jp/html/core Message-ID: <20061019133041.E5D342AC04E@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_Delegate.class.php diff -u xoops2jp/html/core/XCube_Delegate.class.php:1.1.2.2 xoops2jp/html/core/XCube_Delegate.class.php:1.1.2.3 --- xoops2jp/html/core/XCube_Delegate.class.php:1.1.2.2 Sat Oct 7 17:54:31 2006 +++ xoops2jp/html/core/XCube_Delegate.class.php Thu Oct 19 22:30:41 2006 @@ -1,6 +1,6 @@ 1) { $delegateName = $args[0]; $string = $args[1]; - if (!empty($strint) && is_string($string)) { + if (!empty($string) && is_string($string)) { return ""; } $args[1] =& new XCube_Ref($string); From minahito @ users.sourceforge.jp Thu Oct 19 22:54:20 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 19 Oct 2006 22:54:20 +0900 Subject: [xoops-cvslog 5409] CVS update: xoops2jp/html/themes/cube_default Message-ID: <20061019135420.AFFCE2AC11F@users.sourceforge.jp> Index: xoops2jp/html/themes/cube_default/theme.html diff -u xoops2jp/html/themes/cube_default/theme.html:1.1.2.5.2.1 xoops2jp/html/themes/cube_default/theme.html:1.1.2.5.2.2 --- xoops2jp/html/themes/cube_default/theme.html:1.1.2.5.2.1 Fri Oct 13 18:32:39 2006 +++ xoops2jp/html/themes/cube_default/theme.html Thu Oct 19 22:54:20 2006 @@ -96,7 +96,7 @@
    XOOPS Cube PROJECT
    -<{if $xoops_footer != 'Powered by XOOPS Cube 2.1© 2001-2006 The XOOPS Cube Project'}><{$xoops_footer}><{/if}> +<{if $xoops_footer != 'Powered by XOOPS Cube 2.1© 2001-2006 The XOOPS Cube Project'}><{$xoops_footer}><{/if}>
    From minahito @ users.sourceforge.jp Thu Oct 19 23:22:23 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 19 Oct 2006 23:22:23 +0900 Subject: [xoops-cvslog 5410] CVS update: xoops2jp/html/modules/legacy/language/japanese Message-ID: <20061019142223.E29DF2AC0C2@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/language/japanese/admin.php diff -u xoops2jp/html/modules/legacy/language/japanese/admin.php:1.1.2.3 xoops2jp/html/modules/legacy/language/japanese/admin.php:1.1.2.4 --- xoops2jp/html/modules/legacy/language/japanese/admin.php:1.1.2.3 Mon Oct 16 16:40:12 2006 +++ xoops2jp/html/modules/legacy/language/japanese/admin.php Thu Oct 19 23:22:23 2006 @@ -136,7 +136,7 @@ define('_AD_LEGACY_LANG_ISACTIVE', "アクティブ"); define('_AD_LEGACY_LANG_LAST_MODIFIED', "最終更新日時"); define('_AD_LEGACY_LANG_LASTUPDATE', "最終更新日"); -define('_AD_LEGACY_LANG_LCR', "右-中央-左"); +define('_AD_LEGACY_LANG_LCR', "左-中央-右"); define('_AD_LEGACY_LANG_LIST', "一覧"); define('_AD_LEGACY_LANG_MAINMENU_HAS_MAIN', "メインメニュー"); define('_AD_LEGACY_LANG_MAINMENU_INFO', "メインメニュー情報"); From tom_g3x @ users.sourceforge.jp Fri Oct 20 02:01:50 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Fri, 20 Oct 2006 02:01:50 +0900 Subject: [xoops-cvslog 5411] CVS update: xoops2jp/html/modules/user/admin/templates Message-ID: <20061019170150.0872C2AC074@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/templates/group_property.html diff -u xoops2jp/html/modules/user/admin/templates/group_property.html:1.1.2.20 xoops2jp/html/modules/user/admin/templates/group_property.html:1.1.2.20.2.1 --- xoops2jp/html/modules/user/admin/templates/group_property.html:1.1.2.20 Fri Aug 25 17:26:10 2006 +++ xoops2jp/html/modules/user/admin/templates/group_property.html Fri Oct 20 02:01:49 2006 @@ -137,13 +137,13 @@
  • - <{foreach item=perm from=$permissions name="BlockPer"}> + <{foreach item=perm from=$permissions name=$i}> - <{if $smarty.foreach.BlockPer.last}> - - <{else}> - <{cycle values="," name="BlockPer"}> - <{/if}> + <{cycle values="," name=$i}> <{/foreach}> +
    Cubekun<{$smarty.const._AD_USER_LANG_PERM_GROUP_PERM_BLOCK}> <{if $i == 0}>( <{$smarty.const._LEFT}> ) <{elseif $i == 1}>( <{$smarty.const._RIGHT}> ) - <{elseif $i == 2}>( <{$smarty.const._CENTER}> ) - <{elseif $i == 3}>( <{$smarty.const._CENTER}>-<{$smarty.const._LEFT}> ) - <{elseif $i == 4}>( <{$smarty.const._CENTER}>-<{$smarty.const._RIGHT}> ) + <{elseif $i == 4}>( <{$smarty.const._CENTER}> ) + <{elseif $i == 2}>( <{$smarty.const._CENTER}>-<{$smarty.const._LEFT}> ) + <{elseif $i == 3}>( <{$smarty.const._CENTER}>-<{$smarty.const._RIGHT}> ) <{/if}>
      <{if $perm->mItem->isActive()}> <{$perm->mItem->getName()|escape}> @@ -158,12 +158,9 @@ -- <{/if}>

    <{/foreach}> Index: xoops2jp/html/modules/user/admin/templates/group_perm.html diff -u xoops2jp/html/modules/user/admin/templates/group_perm.html:1.1.2.25.2.1 xoops2jp/html/modules/user/admin/templates/group_perm.html:1.1.2.25.2.2 --- xoops2jp/html/modules/user/admin/templates/group_perm.html:1.1.2.25.2.1 Mon Oct 16 00:29:45 2006 +++ xoops2jp/html/modules/user/admin/templates/group_perm.html Fri Oct 20 02:01:49 2006 @@ -100,13 +100,13 @@ <{$smarty.const._AD_USER_LANG_PERM_GROUP_PERM_BLOCK}> <{if $i == 0}>( <{$smarty.const._LEFT}> ) <{elseif $i == 1}>( <{$smarty.const._RIGHT}> ) - <{elseif $i == 2}>( <{$smarty.const._CENTER}> ) - <{elseif $i == 3}>( <{$smarty.const._CENTER}>-<{$smarty.const._LEFT}> ) - <{elseif $i == 4}>( <{$smarty.const._CENTER}>-<{$smarty.const._RIGHT}> ) + <{elseif $i == 4}>( <{$smarty.const._CENTER}> ) + <{elseif $i == 2}>( <{$smarty.const._CENTER}>-<{$smarty.const._LEFT}> ) + <{elseif $i == 3}>( <{$smarty.const._CENTER}>-<{$smarty.const._RIGHT}> ) <{/if}> - <{foreach item=perm from=$permissions name="BlockPer"}> + <{foreach item=perm from=$permissions name=$i}>   <{if $perm->mItem->isActive()}> <{$perm->mItem->getName()|escape}> @@ -117,12 +117,9 @@ <{assign var="getId" value=$perm->getId() }> - <{if $smarty.foreach.BlockPer.last}> - - <{else}> - <{cycle values="," name="BlockPer"}> - <{/if}> + <{cycle values="," name=$i}> <{/foreach}> +
    <{/foreach}> From tom_g3x @ users.sourceforge.jp Fri Oct 20 02:20:51 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Fri, 20 Oct 2006 02:20:51 +0900 Subject: [xoops-cvslog 5412] CVS update: xoops2jp/html/install Message-ID: <20061019172051.E458D2AC037@users.sourceforge.jp> Index: xoops2jp/html/install/style.css diff -u xoops2jp/html/install/style.css:1.1.8.4.2.1 xoops2jp/html/install/style.css:1.1.8.4.2.2 --- xoops2jp/html/install/style.css:1.1.8.4.2.1 Thu Oct 19 15:50:54 2006 +++ xoops2jp/html/install/style.css Fri Oct 20 02:20:51 2006 @@ -21,7 +21,7 @@ #mainbody .maincontents {background:#FFFFFF; padding:15px 20px; line-height:150%;} #mainbody h3 {margin-top:10px; margin-bottom:5px; padding:10px; background:#EEEEFF; font-size:14px;} -#header_buttons {background:#EEEEFF; padding:15px; text-align:right;} +#header_buttons { padding:10px 15px 5px 15px; text-align:right;} #footer {background:#EEEEFF; padding:15px; text-align:right;} .separate {border-collapse:separate;} Index: xoops2jp/html/install/install_tpl.php diff -u xoops2jp/html/install/install_tpl.php:1.1.8.5.2.1 xoops2jp/html/install/install_tpl.php:1.1.8.5.2.2 --- xoops2jp/html/install/install_tpl.php:1.1.8.5.2.1 Thu Oct 19 15:50:46 2006 +++ xoops2jp/html/install/install_tpl.php Fri Oct 20 02:20:51 2006 @@ -23,17 +23,18 @@ + + + +
    Cubekun +

    +
           
    - - - - From tom_g3x @ users.sourceforge.jp Fri Oct 20 02:36:34 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Fri, 20 Oct 2006 02:36:34 +0900 Subject: [xoops-cvslog 5413] CVS update: xoops2jp/html/images/icons Message-ID: <20061019173634.184E02AC11C@users.sourceforge.jp> Index: xoops2jp/html/images/icons/profile.gif Index: xoops2jp/html/images/icons/email.gif Index: xoops2jp/html/images/icons/reply.gif Index: xoops2jp/html/images/icons/delete.gif Index: xoops2jp/html/images/icons/edit.gif From tom_g3x @ users.sourceforge.jp Fri Oct 20 10:48:31 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Fri, 20 Oct 2006 10:48:31 +0900 Subject: [xoops-cvslog 5414] CVS update: xoops2jp/html/modules/legacy/admin/theme Message-ID: <20061020014831.B77282AC0AA@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/admin/theme/admin_theme.html diff -u xoops2jp/html/modules/legacy/admin/theme/admin_theme.html:1.1.2.2 xoops2jp/html/modules/legacy/admin/theme/admin_theme.html:1.1.2.3 --- xoops2jp/html/modules/legacy/admin/theme/admin_theme.html:1.1.2.2 Sun Oct 15 01:26:01 2006 +++ xoops2jp/html/modules/legacy/admin/theme/admin_theme.html Fri Oct 20 10:48:31 2006 @@ -5,7 +5,7 @@ -<{$xoops_sitename}> : <{$smarty.const._CPHOME}> +<{$xoops_sitename}> : <{$smarty.const._CPHOME}> : <{$currentModule->getVar('name')}> <{stylesheet file=style.css}> <{stylesheet file=module.css}> @@ -67,7 +67,7 @@
    Cubekun -

    -<{* option +<{* option - /option *}> +/option *}>
    <{$xoops_contents}>
    From minahito @ users.sourceforge.jp Fri Oct 20 17:03:54 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 20 Oct 2006 17:03:54 +0900 Subject: [xoops-cvslog 5415] CVS update: xoops2jp/html/class Message-ID: <20061020080354.9F7282AC02E@users.sourceforge.jp> Index: xoops2jp/html/class/xoopsmailer.php diff -u xoops2jp/html/class/xoopsmailer.php:1.2.8.3 xoops2jp/html/class/xoopsmailer.php:1.2.8.3.2.1 --- xoops2jp/html/class/xoopsmailer.php:1.2.8.3 Sun Feb 5 19:34:29 2006 +++ xoops2jp/html/class/xoopsmailer.php Fri Oct 20 17:03:54 2006 @@ -1,5 +1,5 @@ multimailer->ClearAllRecipients(); $this->fromEmail = ""; $this->fromName = ""; $this->fromUser = null; // RMV-NOTIFY @@ -369,7 +370,6 @@ { $subject = $this->encodeSubject($subject); $this->encodeBody($body); - $this->multimailer->ClearAllRecipients(); $this->multimailer->AddAddress($email); $this->multimailer->Subject = $subject; $this->multimailer->Body = $body; From minahito @ users.sourceforge.jp Fri Oct 20 17:04:05 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 20 Oct 2006 17:04:05 +0900 Subject: [xoops-cvslog 5416] CVS update: xoops2jp/html/core Message-ID: <20061020080405.B34D92AC02E@users.sourceforge.jp> Index: xoops2jp/html/core/XCube_Controller.class.php diff -u xoops2jp/html/core/XCube_Controller.class.php:1.1.2.3 xoops2jp/html/core/XCube_Controller.class.php:1.1.2.4 --- xoops2jp/html/core/XCube_Controller.class.php:1.1.2.3 Fri Oct 6 18:49:16 2006 +++ xoops2jp/html/core/XCube_Controller.class.php Fri Oct 20 17:04:05 2006 @@ -1,7 +1,7 @@ Index: xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.5 xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.6 --- xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php:1.1.2.5 Tue Oct 17 00:35:31 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_Controller.class.php Fri Oct 20 17:04:43 2006 @@ -578,17 +578,14 @@ function _setupConfig() { - $configHandler=&xoops_gethandler('config'); + $configHandler = &xoops_gethandler('config'); - $config =& $configHandler->getConfigsByCat(XOOPS_CONF); + $this->mRoot->mContext->mXoopsConfig =& $configHandler->getConfigsByCat(XOOPS_CONF); - $this->setTheme($config['theme_set']); - $config['language'] = $this->mRoot->mLanguageManager->getLanguage(); + $this->setTheme($this->mRoot->mContext->mXoopsConfig['theme_set']); + $this->mRoot->mContext->mXoopsConfig['language'] = $this->mRoot->mLanguageManager->getLanguage(); - $this->mRoot->mContext->mXoopsConfig =& $config; - $this->mConfig =& $config; // Compatiblity for 2.1Alpha - $GLOBALS['xoopsConfig'] =& $config; // Compatiblity for 2.0.x - + $GLOBALS['xoopsConfig'] = $this->mRoot->mContext->mXoopsConfig; // Compatiblity for 2.0.x $GLOBALS['config_handler'] =& $configHandler; } From minahito @ users.sourceforge.jp Fri Oct 20 17:04:59 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 20 Oct 2006 17:04:59 +0900 Subject: [xoops-cvslog 5418] CVS update: xoops2jp/html/modules/legacy/kernel Message-ID: <20061020080459.94A352AC02E@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/kernel/Legacy_HttpContext.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_HttpContext.class.php:1.1.2.2 xoops2jp/html/modules/legacy/kernel/Legacy_HttpContext.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/kernel/Legacy_HttpContext.class.php:1.1.2.2 Sun Oct 15 01:40:12 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_HttpContext.class.php Fri Oct 20 17:04:59 2006 @@ -33,8 +33,15 @@ var $mXoopsModule = null; /** + * [READ ONLY] This is string collection which indicates site + * configurations by a site owner. Those configuration informations are + * loaded by the controller, and set. This configuration and the site + * configuration of XCube_Root are different. + * * The array for Xoops, which is configured in the preference of the base. * This property and $xoopsConfig (X2) is the same. + * + * @var array */ var $mXoopsConfig = array(); From minahito @ users.sourceforge.jp Fri Oct 20 17:05:54 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 20 Oct 2006 17:05:54 +0900 Subject: [xoops-cvslog 5419] CVS update: xoops2jp/html/modules/legacy/kernel Message-ID: <20061020080554.44A1B2AC02E@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php:1.1.2.6 xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php:1.1.2.7 --- xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php:1.1.2.6 Tue Oct 17 18:49:22 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_Module.class.php Fri Oct 20 17:05:54 2006 @@ -231,7 +231,7 @@ $root =& XCube_Root::getSingleton(); - return is_object($this->mXoopsModule) && !empty($root->mController->mConfig['module_cache'][$this->mXoopsModule->get('mid')]); + return is_object($this->mXoopsModule) && !empty($root->mContext->mXoopsConfig['module_cache'][$this->mXoopsModule->get('mid')]); } /** From minahito @ users.sourceforge.jp Fri Oct 20 17:06:05 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 20 Oct 2006 17:06:05 +0900 Subject: [xoops-cvslog 5420] CVS update: xoops2jp/html/modules/legacy/kernel Message-ID: <20061020080605.DD5AC2AC02E@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/kernel/Legacy_PublicControllerStrategy.class.php diff -u xoops2jp/html/modules/legacy/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.2 xoops2jp/html/modules/legacy/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/kernel/Legacy_PublicControllerStrategy.class.php:1.1.2.2 Sun Oct 15 01:41:34 2006 +++ xoops2jp/html/modules/legacy/kernel/Legacy_PublicControllerStrategy.class.php Fri Oct 20 17:06:05 2006 @@ -27,7 +27,7 @@ $mid=0; if($this->mController->mRoot->mContext->mModule != null) { - $showFlag = (preg_match("/index\.php$/i", xoops_getenv('PHP_SELF')) && $this->mController->mConfig['startpage'] == $this->mController->mRoot->mContext->mXoopsModule->get('dirname')); + $showFlag = (preg_match("/index\.php$/i", xoops_getenv('PHP_SELF')) && $this->mController->mRoot->mContext->mXoopsConfig['startpage'] == $this->mController->mRoot->mContext->mXoopsModule->get('dirname')); $mid = $this->mController->mRoot->mContext->mXoopsModule->get('mid'); } else { From minahito @ users.sourceforge.jp Fri Oct 20 17:06:23 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 20 Oct 2006 17:06:23 +0900 Subject: [xoops-cvslog 5421] CVS update: xoops2jp/html/modules/legacy/preload Message-ID: <20061020080623.BEF112AC02E@users.sourceforge.jp> Index: xoops2jp/html/modules/legacy/preload/IPbanningFilter.class.php diff -u xoops2jp/html/modules/legacy/preload/IPbanningFilter.class.php:1.1.2.2 xoops2jp/html/modules/legacy/preload/IPbanningFilter.class.php:1.1.2.3 --- xoops2jp/html/modules/legacy/preload/IPbanningFilter.class.php:1.1.2.2 Sun Oct 15 01:42:36 2006 +++ xoops2jp/html/modules/legacy/preload/IPbanningFilter.class.php Fri Oct 20 17:06:23 2006 @@ -16,7 +16,7 @@ { if ($this->mRoot->mContext->getXoopsConfig('enable_badips')) { if (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR']) { - foreach ($this->mController->mConfig['bad_ips'] as $bi) { + foreach ($this->mRoot->mContext->mXoopsConfig['bad_ips'] as $bi) { if(!empty($bi) && strstr($_SERVER['REMOTE_ADDR'], $bi)!==false) { die(); } From minahito @ users.sourceforge.jp Fri Oct 20 17:06:50 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 20 Oct 2006 17:06:50 +0900 Subject: [xoops-cvslog 5422] CVS update: xoops2jp/html/modules/legacyRender/kernel Message-ID: <20061020080650.363802AC02E@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php diff -u xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.30.2.3 xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.30.2.4 --- xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php:1.1.2.30.2.3 Wed Oct 11 17:11:19 2006 +++ xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderSystem.class.php Fri Oct 20 17:06:50 2006 @@ -1,6 +1,6 @@ mXoopsTpl->assign(array('xoops_requesturi' => htmlspecialchars($GLOBALS['xoopsRequestUri'], ENT_QUOTES), //@todo ????????????? - 'xoops_sitename' => htmlspecialchars($this->mController->mConfig['sitename'], ENT_QUOTES), - 'xoops_slogan' => htmlspecialchars($this->mController->mConfig['slogan'], ENT_QUOTES), + 'xoops_sitename' => htmlspecialchars($this->mController->mRoot->mContext->mXoopsConfig['sitename'], ENT_QUOTES), + 'xoops_slogan' => htmlspecialchars($this->mController->mRoot->mContext->mXoopsConfig['slogan'], ENT_QUOTES), // set JavaScript/Weird, but need extra