From minahito @ users.sourceforge.jp Thu Dec 1 00:58:32 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 00:58:32 +0900 Subject: [xoops-cvslog 1247] CVS update: xoops2jp/html/kernel Message-ID: <20051130155832.8290F2AC048@users.sourceforge.jp> Index: xoops2jp/html/kernel/module.php diff -u xoops2jp/html/kernel/module.php:1.2.8.1 xoops2jp/html/kernel/module.php:1.2.8.2 --- xoops2jp/html/kernel/module.php:1.2.8.1 Wed Oct 19 02:21:03 2005 +++ xoops2jp/html/kernel/module.php Thu Dec 1 00:58:32 2005 @@ -1,5 +1,5 @@ getVar('version') / 100; + } /**#@+ * For backward compatibility only! From minahito @ users.sourceforge.jp Thu Dec 1 00:59:51 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 00:59:51 +0900 Subject: [xoops-cvslog 1248] CVS update: xoops2jp/html/modules/base Message-ID: <20051130155951.62E322AC01A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/xoops_version.php diff -u xoops2jp/html/modules/base/xoops_version.php:1.1.2.10 xoops2jp/html/modules/base/xoops_version.php:1.1.2.11 --- xoops2jp/html/modules/base/xoops_version.php:1.1.2.10 Fri Nov 25 01:31:22 2005 +++ xoops2jp/html/modules/base/xoops_version.php Thu Dec 1 00:59:51 2005 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/base/admin/menu.php diff -u /dev/null xoops2jp/html/modules/base/admin/menu.php:1.1.2.1 --- /dev/null Thu Dec 1 01:00:24 2005 +++ xoops2jp/html/modules/base/admin/menu.php Thu Dec 1 01:00:24 2005 @@ -0,0 +1,12 @@ + \ No newline at end of file From minahito @ users.sourceforge.jp Thu Dec 1 01:02:16 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 01:02:16 +0900 Subject: [xoops-cvslog 1250] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20051130160216.D15212AC01A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/LegacyActSearchAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/LegacyActSearchAction.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/actions/LegacyActSearchAction.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/actions/LegacyActSearchAction.class.php:1.1.2.1 Wed Nov 16 19:09:24 2005 +++ xoops2jp/html/modules/base/admin/actions/LegacyActSearchAction.class.php Thu Dec 1 01:02:16 2005 @@ -68,9 +68,9 @@ var $mRecords=null; var $mActionForm; - function LegacyActSearchAction(&$controller,&$xoopsUser) + function prepare(&$controller,&$xoopsUser) { - parent::LegacyAdminAction(&$controller,&$xoopsUser); + parent::prepare(&$controller,&$xoopsUser); $db=&$controller->getDB(); // From minahito @ users.sourceforge.jp Thu Dec 1 01:02:24 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 01:02:24 +0900 Subject: [xoops-cvslog 1251] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20051130160224.D297A2AC01A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/LegacyDefaultAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/LegacyDefaultAction.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/actions/LegacyDefaultAction.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/actions/LegacyDefaultAction.class.php:1.1.2.1 Wed Nov 16 19:09:24 2005 +++ xoops2jp/html/modules/base/admin/actions/LegacyDefaultAction.class.php Thu Dec 1 01:02:24 2005 @@ -2,6 +2,10 @@ class LegacyDefaultAction extends LegacyAdminAction { + function prepare(&$controller,&$xoopsUser) + { + } + function getDefaultView(&$controller,&$xoopsUser) { return LEGACY_ADMIN_FRAME_VIEW_NONE; From minahito @ users.sourceforge.jp Thu Dec 1 01:17:37 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 01:17:37 +0900 Subject: [xoops-cvslog 1252] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20051130161737.92E702AC01A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/LegacyModuleListAction.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/actions/LegacyModuleListAction.class.php:1.1.2.1 --- /dev/null Thu Dec 1 01:17:37 2005 +++ xoops2jp/html/modules/base/admin/actions/LegacyModuleListAction.class.php Thu Dec 1 01:17:37 2005 @@ -0,0 +1,56 @@ +mDB=&$controller->getDB(); + } + + function getDefaultView(&$controller,&$xoopsUser) + { + $this->mFilter=new ModuleListFilterForm(); + $this->mFilter->fetch(); + + $moduleHandler=&xoops_gethandler('module'); + + // dmy + $criteria=new Criteria('mid',0,'>'); + $criteria->setSort($this->mFilter->getSort()); + $criteria->setOrder($this->mFilter->getOrder()); + + $this->mModuleObjects=&$moduleHandler->getObjects($criteria); + + return LEGACY_ADMIN_FRAME_VIEW_INDEX; + } + + function execute(&$controller,&$xoopsUser) + { + } + + function executeViewIndex(&$controller,&$xoopsUser,&$renderer) + { + $renderer->setTemplateName("legacy_admin_modulelist_index.html"); + + // + // Load adminmenu before we assign these to template. + // + foreach(array_keys($this->mModuleObjects) as $key) { + $this->mModuleObjects[$key]->loadAdminMenu(); + $this->mModuleObjects[$key]->loadInfo($this->mModuleObjects[$key]->getVar('dirname')); + } + + $renderer->setAttribute('moduleObjects',$this->mModuleObjects); + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Dec 1 01:18:22 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 01:18:22 +0900 Subject: [xoops-cvslog 1253] CVS update: xoops2jp/html/modules/base/admin/class Message-ID: <20051130161822.DDEBF2AC01A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/class/LegacyAdminActionFrame.class.php diff -u xoops2jp/html/modules/base/admin/class/LegacyAdminActionFrame.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/class/LegacyAdminActionFrame.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/class/LegacyAdminActionFrame.class.php:1.1.2.1 Wed Nov 16 19:09:41 2005 +++ xoops2jp/html/modules/base/admin/class/LegacyAdminActionFrame.class.php Thu Dec 1 01:18:22 2005 @@ -1,5 +1,5 @@ mAction=new $className($controller,$controller->getXoopsUser()); - + $this->mAction=new $className(); + + $this->mAction->prepare($controller,$controller->getXoopsUser()); + if(!is_object($this->mAction)) die(); // TODO @@ -125,7 +127,11 @@ { var $mConfig; - function LegacyAdminAction(&$controller,&$xoopsUser) + function LegacyAdminAction() + { + } + + function prepare(&$controller,&$xoopsUser) { $this->mConfig=$controller->mModuleController->getConfig(); } From minahito @ users.sourceforge.jp Thu Dec 1 01:18:46 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 01:18:46 +0900 Subject: [xoops-cvslog 1254] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20051130161846.3DAE42AC01A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/forms/ModuleListFilterForm.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/forms/ModuleListFilterForm.class.php:1.1.2.1 --- /dev/null Thu Dec 1 01:18:46 2005 +++ xoops2jp/html/modules/base/admin/forms/ModuleListFilterForm.class.php Thu Dec 1 01:18:46 2005 @@ -0,0 +1,70 @@ + "id", + MODULE_SORT_KEY_MID => "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 fetch() + { + $this->mSpecial=isset($_REQUEST['special']) ? intval($_REQUEST['special']) : null; + + $this->mSortKey=isset($_REQUEST['sort']) ? intval($_REQUEST['sort']) : 0; + + if($this->mSortKey>MODULE_SORT_KEY_MAXVALUE) + $this->mSortKey=0; + } + + function getSort() + { + $sortkey=abs($this->mSortKey); + return $this->_mSortKeys[$sortkey]; + } + + function getOrder() + { + return ($this->mSortKey < 0) ? "DESC" : "ASC"; + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Dec 1 01:19:19 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 01:19:19 +0900 Subject: [xoops-cvslog 1255] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051130161919.2F71F2AC01A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html:1.1.2.1 --- /dev/null Thu Dec 1 01:19:19 2005 +++ xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html Thu Dec 1 01:19:18 2005 @@ -0,0 +1,56 @@ +

MODULE LIST

+ +
+ + + + + + + + + + + + <{foreach item=module from=$moduleObjects}> + + + + + + + + + + <{/foreach}> +
+ *MID* + ASC + DESC + + *GRAPHIC* + + *NAME* + ASC + DESC + + *VERSION* + ASC + DESC + + *LASTUPDATE* + ASC + DESC + + *WEIGHT* + ASC + DESC + + *ISACTIVE* + ASC + DESC +
<{$module->getVar('mid')}><{xoops_input type=text name=name[$module->getVar('mid')] value=$module->getVar('name')}><{$module->getRenderedVersion()}><{$module->getVar('last_update')|xoops_formattimestamp:l}><{xoops_input type=text size=4 maxlength=4 name=weight[$module->getVar('mid')] value=$module->getVar('weight')}>getVar('isactive')}>checked<{/if}>>
+ + + +
\ No newline at end of file From minahito @ users.sourceforge.jp Thu Dec 1 01:22:08 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 01:22:08 +0900 Subject: [xoops-cvslog 1256] CVS update: xoops2jp/html/kernel Message-ID: <20051130162208.D7AE72AC01A@users.sourceforge.jp> Index: xoops2jp/html/kernel/module.php diff -u xoops2jp/html/kernel/module.php:1.2.8.2 xoops2jp/html/kernel/module.php:1.2.8.3 --- xoops2jp/html/kernel/module.php:1.2.8.2 Thu Dec 1 00:58:32 2005 +++ xoops2jp/html/kernel/module.php Thu Dec 1 01:22:08 2005 @@ -1,5 +1,5 @@ db->prefix('modules'); if (isset($criteria) && is_subclass_of($criteria, 'criteriaelement')) { $sql .= ' '.$criteria->renderWhere(); - $sql .= ' ORDER BY weight '.$criteria->getOrder().', mid ASC'; + + if($criteria->getSort()!=null) { + $sql .= ' ORDER BY '.$criteria->getSort().' '.$criteria->getOrder(); + } + else { + $sql .= ' ORDER BY weight '.$criteria->getOrder().', mid ASC'; + } + $limit = $criteria->getLimit(); $start = $criteria->getStart(); } From minahito @ users.sourceforge.jp Thu Dec 1 01:24:25 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 01:24:25 +0900 Subject: [xoops-cvslog 1257] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20051130162425.BF3402AC01A@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.1 xoops2jp/html/modules/base/admin/forms/ModuleListFilterForm.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/forms/ModuleListFilterForm.class.php:1.1.2.1 Thu Dec 1 01:18:46 2005 +++ xoops2jp/html/modules/base/admin/forms/ModuleListFilterForm.class.php Thu Dec 1 01:24:25 2005 @@ -1,10 +1,10 @@ Index: xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html diff -u xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html:1.1.2.2 --- xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html:1.1.2.1 Thu Dec 1 01:19:18 2005 +++ xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html Thu Dec 1 12:48:53 2005 @@ -42,11 +42,11 @@ <{$module->getVar('mid')}> - <{xoops_input type=text name=name[$module->getVar('mid')] value=$module->getVar('name')}> + <{$module->getRenderedVersion()}> <{$module->getVar('last_update')|xoops_formattimestamp:l}> - <{xoops_input type=text size=4 maxlength=4 name=weight[$module->getVar('mid')] value=$module->getVar('weight')}> - getVar('isactive')}>checked<{/if}>> + + getVar('isactive')}>checked<{/if}>> <{/foreach}> From minahito @ users.sourceforge.jp Thu Dec 1 12:50:09 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 12:50:09 +0900 Subject: [xoops-cvslog 1259] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20051201035009.F3F4F2AC022@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.2 xoops2jp/html/modules/base/admin/forms/ModuleListFilterForm.class.php:1.1.2.3 --- xoops2jp/html/modules/base/admin/forms/ModuleListFilterForm.class.php:1.1.2.2 Thu Dec 1 01:24:25 2005 +++ xoops2jp/html/modules/base/admin/forms/ModuleListFilterForm.class.php Thu Dec 1 12:50:09 2005 @@ -1,10 +1,10 @@ "id", + MODULE_SORT_KEY_DEFAULT => "mid", MODULE_SORT_KEY_MID => "mid", MODULE_SORT_KEY_NAME => "name", MODULE_SORT_KEY_VERSION => "version", From minahito @ users.sourceforge.jp Thu Dec 1 14:16:33 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 14:16:33 +0900 Subject: [xoops-cvslog 1260] CVS update: xoops2jp/html/class Message-ID: <20051201051633.006432AC0A5@users.sourceforge.jp> Index: xoops2jp/html/class/XCube_ActionForm.class.php diff -u xoops2jp/html/class/XCube_ActionForm.class.php:1.1.2.11 xoops2jp/html/class/XCube_ActionForm.class.php:1.1.2.12 --- xoops2jp/html/class/XCube_ActionForm.class.php:1.1.2.11 Sun Nov 27 16:22:27 2005 +++ xoops2jp/html/class/XCube_ActionForm.class.php Thu Dec 1 14:16:33 2005 @@ -38,13 +38,25 @@ function setVar($key,$val) { + // + // TODO Follow about array. + // if(isset($this->mFormProperties[$key])) $this->mFormProperties[$key]->setValue($val); } - function getVar($key) + function getVar($key,$index=null) + { + return isset($this->mFormProperties[$key]) ? $this->mFormProperties[$key]->getValue($index) : null; + } + + /** + * Return form properties of this member property. + * @return XCube_AbstractProperty[] + */ + function &getFormProperties() { - return isset($this->mFormProperties[$key]) ? $this->mFormProperties[$key]->getValue() : null; + return $this->mFormProperties; } function fetch() @@ -209,7 +221,7 @@ $this->mValue=$val; } - function getValue() + function getValue($index=null) { return $this->mValue; } @@ -252,6 +264,15 @@ else $this->mValue=array(); } + + function getValue($index=null) + { + if($index==null) + return $this->mValue; + + return $this->mValue[$index]; + } + } class XCube_IntProperty extends XCube_AbstractProperty @@ -317,6 +338,21 @@ } } +class XCube_StringArrayProperty extends XCube_AbstractArrayProperty +{ + function fetch() + { + parent::fetch(); + foreach(array_keys($this->mValue) as $key) { + if(preg_match_all("/[\\x00-\\x1f]/",$this->mValue[$key],$matches,PREG_PATTERN_ORDER)) { + foreach($matches[0] as $match) { + die("Get control code :" . ord($match)); + } + } + } + } +} + class XCube_TextProperty extends XCube_AbstractProperty { function fetch() @@ -478,7 +514,7 @@ $flag = true; foreach($val as $i) { - $flag &= !empty($i); + $flag &= (strlen($i)!=0); } return $flag; @@ -489,65 +525,135 @@ { var $mName="minlength"; - function check($val,$vars) + function _check($val,$vars) { if(!empty($val)) return strlen($val)>=$vars['minlength']; else return true; } + + function _checkAsArray($val,$vars) + { + if(!count($val)) + return false; + + $flag = true; + foreach($val as $i) { + if(!empty($i)) + $flag&=(strlen($i)>=$vars['minlength']); + } + + return $flag; + } } class XCube_MaxlengthDepend extends XCube_AbstractDepend { var $mName="maxlength"; - function check($val,$vars) + function _check($val,$vars) { if(!empty($val)) return strlen($val)<=$vars['maxlength']; else return true; } + + function _checkAsArray($val,$vars) + { + if(!count($val)) + return false; + + $flag = true; + foreach($val as $i) { + if(!empty($i)) + $flag&=(strlen($i)<=$vars['maxlength']); + } + + return $flag; + } } class XCube_MinDepend extends XCube_AbstractDepend { var $mName="min"; - function check($val,$vars) + function _check($val,$vars) { if(!empty($val)) return $val>=$vars['min']; else return true; } + + function _checkAsArray($val,$vars) + { + if(!count($val)) + return false; + + $flag = true; + foreach($val as $i) { + if(!empty($i)) + $flag&=($i>=$vars['min']); + } + + return $flag; + } } class XCube_MaxDepend extends XCube_AbstractDepend { var $mName="max"; - function check($val,$vars) + function _check($val,$vars) { if(!empty($val)) return $val<=$vars['max']; else return true; } + + function _checkAsArray($val,$vars) + { + if(!count($val)) + return false; + + $flag = true; + foreach($val as $i) { + if(!empty($i)) + $flag&=($i<=$vars['max']); + } + + return $flag; + } } class XCube_IntRangeDepend extends XCube_AbstractDepend { var $mName="intRange"; - function check($val,$vars) + function _check($val,$vars) { if(!empty($val)) return ($val>=$vars['min'])&&($val<=$vars['max']); else return true; } + + function _checkAsArray($val,$vars) + { + if(!count($val)) + return false; + + $flag = true; + foreach($val as $i) { + if(!empty($i)) + $flag&=(($i>=$vars['min'])&&($i<=$vars['max'])); + } + + return $flag; + } } ?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Dec 1 14:17:07 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 14:17:07 +0900 Subject: [xoops-cvslog 1261] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20051201051707.60CF82AC0A5@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/LegacyModuleListAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/LegacyModuleListAction.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/actions/LegacyModuleListAction.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/actions/LegacyModuleListAction.class.php:1.1.2.1 Thu Dec 1 01:17:37 2005 +++ xoops2jp/html/modules/base/admin/actions/LegacyModuleListAction.class.php Thu Dec 1 14:17:07 2005 @@ -1,15 +1,17 @@ getObjects(); + + $this->mForm=new ModuleSettingsForm(); + $this->mForm->prepare(); + + $this->mForm->fetch(); + $this->mForm->validate(); + + if($this->mForm->hasError() || !isset($_POST['dummy_ticket'])) { + return $this->_processConfirm($controller,$xoopsUser); + } + else { + return $this->_processSave($controller,$xoopsUser); + } + } + function _processConfirm(&$controller,&$xoopsUser) + { + $moduleHandler=&xoops_gethandler('module'); + $objests=$moduleHandler->getObjects(); + + // + // Do mapping. + // + foreach($objests as $modObject) { + $this->mModuleObjects[$modObject->getVar('mid')]=&$modObject; + unset($modObject); + } + + return LEGACY_ADMIN_FRAME_VIEW_INPUT; + } + + function _processSave(&$controller,&$xoopsUser) + { + $moduleHandler=&xoops_gethandler('module'); + $objects=$moduleHandler->getObjects(); + + $successFlag=true; + foreach($objects as $modObject) { + $mid=$modObject->getVar('mid'); + $modObject->setVar('name',$this->mForm->getVar('name',$mid)); + $modObject->setVar('weight',$this->mForm->getVar('weight',$mid)); + $modObject->setVar('isactive',$this->mForm->getVar('isactive',$mid)); + + // + // Store. + // + $successFlag&=$moduleHandler->insert($modObject); + } + + return $successFlag ? LEGACY_ADMIN_FRAME_VIEW_SUCCESS : LEGACY_ADMIN_FRAME_VIEW_ERROR; + } + + /** + * To support a template writer, this send the list of mid that actionForm kept. + */ + function executeViewInput(&$controller,&$xoopsUser,&$renderer) + { + $renderer->setTemplateName("legacy_admin_modulelist_confirm.html"); + $renderer->setAttribute('moduleObjects',$this->mModuleObjects); + $renderer->setAttribute('actionForm',$this->mForm); + + // + // To support a template writer, this send the list of mid that + // actionForm kept. + // + $tarray=&$this->mForm->getVar('name'); + $renderer->setAttribute('mids',array_keys($tarray)); + } + function executeViewIndex(&$controller,&$xoopsUser,&$renderer) { $renderer->setTemplateName("legacy_admin_modulelist_index.html"); @@ -51,6 +123,16 @@ $renderer->setAttribute('moduleObjects',$this->mModuleObjects); } + + function executeViewSuccess(&$controller,&$xoopsUser,&$renderer) + { + XCube_Utils::redirectHeader('./index.php?action=ModuleList',1,"*SUCCESS*"); + } + + function executeViewError(&$controller,&$xoopsUser,&$renderer) + { + XCube_Utils::redirectHeader('./index.php?action=ModuleList',1,"*ERROR*"); + } } ?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Dec 1 14:17:19 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 14:17:19 +0900 Subject: [xoops-cvslog 1262] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20051201051719.9A83E2AC0A5@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/forms/ModuleSettingsForm.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/forms/ModuleSettingsForm.class.php:1.1.2.1 --- /dev/null Thu Dec 1 14:17:19 2005 +++ xoops2jp/html/modules/base/admin/forms/ModuleSettingsForm.class.php Thu Dec 1 14:17:19 2005 @@ -0,0 +1,39 @@ +mFormProperties['name']=new XCube_StringArrayProperty('name'); + $this->mFormProperties['weight']=new XCube_IntArrayProperty('weight'); + $this->mFormProperties['isactive']=new XCube_IntArrayProperty('isactive'); + + // set fields + $this->mFieldProperties['name']=new XCube_FieldProperty($this); + $this->mFieldProperties['name']->setDependsByArray(array('required','maxlength')); + $this->mFieldProperties['name']->addMessage("required",_MD_A_BASE_ERROR_REQUIRED,_MD_A_BASE_LANG_NAME,"140"); + $this->mFieldProperties['name']->addMessage("maxlength",_MD_A_BASE_ERROR_MAXLENGTH,_MD_A_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",_MD_A_BASE_ERROR_MIN,_MD_A_BASE_LANG_WEIGHT,"0"); + $this->mFieldProperties['weight']->addVar("min",0); + + $this->mFieldProperties['isactive']=new XCube_FieldProperty($this); + $this->mFieldProperties['isactive']->setDependsByArray(array('required','intRange')); + $this->mFieldProperties['isactive']->addMessage("min",_MD_A_BASE_ERROR_ABOUT_ISACTIVE); + $this->mFieldProperties['isactive']->addVar("min",0); + $this->mFieldProperties['isactive']->addVar("max",1); + + } +} + +?> From minahito @ users.sourceforge.jp Thu Dec 1 14:18:19 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 14:18:19 +0900 Subject: [xoops-cvslog 1263] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051201051819.ED52C2AC0AF@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html diff -u xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html:1.1.2.2 xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html:1.1.2.3 --- xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html:1.1.2.2 Thu Dec 1 12:48:53 2005 +++ xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html Thu Dec 1 14:18:19 2005 @@ -1,6 +1,6 @@

MODULE LIST

-
+ @@ -42,11 +42,11 @@ - + - - + + <{/foreach}>
<{$module->getVar('mid')}> <{$module->getRenderedVersion()}> <{$module->getVar('last_update')|xoops_formattimestamp:l}>getVar('isactive')}>checked<{/if}>>getVar('isactive')}>checked<{/if}>>
From minahito @ users.sourceforge.jp Thu Dec 1 14:20:17 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 14:20:17 +0900 Subject: [xoops-cvslog 1264] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051201052017.D22752AC0A5@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_confirm.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_confirm.html:1.1.2.1 --- /dev/null Thu Dec 1 14:20:17 2005 +++ xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_confirm.html Thu Dec 1 14:20:17 2005 @@ -0,0 +1,39 @@ + + + + +<{foreach item=mid from=$mids}> + + + + + + + + + + +<{/foreach}> +
<{$mid}> + <{if $actionForm->getVar('name',$mid)==$moduleObjects[$mid]->getProperty('name')}> + <{$actionForm->getVar('name',$mid)|escape}> + <{else}> + <{$actionForm->getVar('name',$mid)|escape}> (<{$moduleObjects[$mid]->getVar('name')}>) + <{/if}> + + <{if $actionForm->getVar('weight',$mid)==$moduleObjects[$mid]->getProperty('weight')}> + <{$actionForm->getVar('weight',$mid)|escape}> + <{else}> + <{$actionForm->getVar('weight',$mid)|escape}> (<{$moduleObjects[$mid]->getVar('weight')}>) + <{/if}> + + <{if $actionForm->getVar('isactive',$mid)==$moduleObjects[$mid]->getProperty('isactive')}> + <{$actionForm->getVar('isactive',$mid)|escape}> + <{else}> + <{$actionForm->getVar('isactive',$mid)|escape}> (<{$moduleObjects[$mid]->getVar('isactive')}>) + <{/if}> +
+ + + +
From minahito @ users.sourceforge.jp Thu Dec 1 14:21:36 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 14:21:36 +0900 Subject: [xoops-cvslog 1265] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20051201052136.8EE432AC0A5@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.1 xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.2 --- xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.1 Wed Nov 16 19:10:59 2005 +++ xoops2jp/html/modules/base/language/japanese/admin.php Thu Dec 1 14:21:36 2005 @@ -10,4 +10,13 @@ define("_MB_A_BASE_LANG_SEARCH","検索"); define("_MB_A_BASE_LANG_MENU","メニュー"); +define("_MD_A_BASE_LANG_NAME","名前"); +define("_MD_A_BASE_LANG_WEIGHT","表示優先度"); +define("_MD_A_BASE_LANG_ACTIVE","アクティブ"); + +define("_MD_A_BASE_ERROR_REQUIRED","{0}は必ず入力して下さい"); +define("_MD_A_BASE_ERROR_MAXLENGTH","{0}は半角{1}文字以内で入力して下さい"); +define("_MD_A_BASE_ERROR_MIN","{0}は{1}以上の数値を指定して下さい"); +define("_MD_A_BASE_ERROR_ABOUT_ISACTIVE","ISACTIVEに指定した値が不正です"); + ?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Dec 1 21:41:50 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 21:41:50 +0900 Subject: [xoops-cvslog 1266] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20051201124150.4DC792AC07B@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/LegacyModuleInfoAction.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/actions/LegacyModuleInfoAction.class.php:1.1.2.1 --- /dev/null Thu Dec 1 21:41:50 2005 +++ xoops2jp/html/modules/base/admin/actions/LegacyModuleInfoAction.class.php Thu Dec 1 21:41:50 2005 @@ -0,0 +1,64 @@ +mModuleObject=&$moduleHandler->getByDirname($dirname); + + // + // If a module is installed, load modinfo and go to special displaying. + // + if(is_object($this->mModuleObject)) { + $this->mModuleObject->loadAdminMenu(); + $this->mModuleObject->loadInfo($dirname); + return LEGACY_ADMIN_FRAME_VIEW_SUCCESS; + } + + $this->mModuleObject=&$moduleHandler->create(); + $this->mModuleObject->loadInfoAsVar($dirname); + + return LEGACY_ADMIN_FRAME_VIEW_INPUT; + } + + function executeViewSuccess(&$controller,&$xoopsUser,&$renderer) + { + $renderer->setTemplateName("legacy_admin_inst_moduleinfo.html"); + $renderer->setAttribute('module',$this->mModuleObject); + } + + function executeViewInput(&$controller,&$xoopsUser,&$renderer) + { + $renderer->setTemplateName("legacy_admin_uninst_moduleinfo.html"); + $renderer->setAttribute('module',$this->mModuleObject); + } + + function executeViewError(&$controller,&$xoopsUser,&$renderer) + { + XCube_Utils::redirectHeader('./index.php?action=ModuleList',1,"*ERROR*"); + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Dec 1 21:42:06 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 21:42:06 +0900 Subject: [xoops-cvslog 1267] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051201124206.54D9A2AC082@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/legacy_admin_inst_moduleinfo.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/legacy_admin_inst_moduleinfo.html:1.1.2.1 --- /dev/null Thu Dec 1 21:42:06 2005 +++ xoops2jp/html/modules/base/admin/templates/legacy_admin_inst_moduleinfo.html Thu Dec 1 21:42:06 2005 @@ -0,0 +1,4 @@ + +This template shows a module that is already installed. + +

<{$module->getVar('name')}>

From minahito @ users.sourceforge.jp Thu Dec 1 21:42:15 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 1 Dec 2005 21:42:15 +0900 Subject: [xoops-cvslog 1268] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051201124215.B453E2AC07B@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/legacy_admin_uninst_moduleinfo.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/legacy_admin_uninst_moduleinfo.html:1.1.2.1 --- /dev/null Thu Dec 1 21:42:15 2005 +++ xoops2jp/html/modules/base/admin/templates/legacy_admin_uninst_moduleinfo.html Thu Dec 1 21:42:15 2005 @@ -0,0 +1,7 @@ + +This template shows a module that is not installed yet. + +

<{$module->getVar('name')}>

+ +

<{$module->modinfo.name|escape}>

+

<{$module->modinfo.description|escape}>

From minahito @ users.sourceforge.jp Sat Dec 3 15:50:39 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 3 Dec 2005 15:50:39 +0900 Subject: [xoops-cvslog 1269] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051203065039.78CB42AC08B@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html diff -u xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html:1.1.2.3 xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html:1.1.2.4 --- xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html:1.1.2.3 Thu Dec 1 14:18:19 2005 +++ xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html Sat Dec 3 15:50:39 2005 @@ -2,10 +2,10 @@
- +
@@ -13,44 +13,50 @@ *GRAPHIC* + <{foreach item=module from=$moduleObjects}> - + - - + + - + + <{/foreach}> + + +
- *MID* + *MID*
ASC DESC
- *NAME* + *NAME*
ASC DESC
- *VERSION* + *VERSION*
ASC DESC
- *LASTUPDATE* + *LASTUPDATE*
ASC DESC
- *WEIGHT* + *WEIGHT*
ASC DESC
- *ISACTIVE* + *ISACTIVE*
ASC DESC
+ *ACTION* +
<{$module->getVar('mid')}><{$module->getVar('name','e')}> <{$module->getRenderedVersion()}> <{$module->getVar('last_update')|xoops_formattimestamp:l}> getVar('isactive')}>checked<{/if}>>getVar('isactive')}>checked<{/if}> />*UPDATE* + *INFORMATION*
- -
\ No newline at end of file From minahito @ users.sourceforge.jp Sat Dec 10 18:24:37 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 10 Dec 2005 18:24:37 +0900 Subject: [xoops-cvslog 1270] CVS update: xoops2jp/html/modules/base/admin Message-ID: <20051210092437.8B1072AC03D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/menu.php diff -u xoops2jp/html/modules/base/admin/menu.php:1.1.2.1 xoops2jp/html/modules/base/admin/menu.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/menu.php:1.1.2.1 Thu Dec 1 01:00:24 2005 +++ xoops2jp/html/modules/base/admin/menu.php Sat Dec 10 18:24:37 2005 @@ -1,12 +1,12 @@ - \ No newline at end of file From minahito @ users.sourceforge.jp Sat Dec 10 18:25:28 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 10 Dec 2005 18:25:28 +0900 Subject: [xoops-cvslog 1271] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20051210092528.846872AC0D2@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.2 xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.3 --- xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.2 Thu Dec 1 14:21:36 2005 +++ xoops2jp/html/modules/base/language/japanese/admin.php Sat Dec 10 18:25:28 2005 @@ -10,9 +10,20 @@ define("_MB_A_BASE_LANG_SEARCH","検索"); define("_MB_A_BASE_LANG_MENU","メニュー"); +define("_MD_A_BASE_LANG_ACTIVE","アクティブ"); + +define("_MD_A_BASE_LANG_MID","MID"); define("_MD_A_BASE_LANG_NAME","名前"); +define("_MD_A_BASE_LANG_VERSION","バージョン"); +define("_MD_A_BASE_LANG_LASTUPDATE","最終更新日"); define("_MD_A_BASE_LANG_WEIGHT","表示優先度"); -define("_MD_A_BASE_LANG_ACTIVE","アクティブ"); +define("_MD_A_BASE_LANG_ISACTIVE","有効"); +define("_MD_A_BASE_LANG_CONTROL","操作"); +define("_MD_A_BASE_LANG_MODIFY","変更"); +define("_MD_A_BASE_LANG_UPDATE","アップデート"); +define("_MD_A_BASE_LANG_INFORMATION","インフォメーション"); +define("_MD_A_BASE_LANG_SUBMIT","送信"); + define("_MD_A_BASE_ERROR_REQUIRED","{0}は必ず入力して下さい"); define("_MD_A_BASE_ERROR_MAXLENGTH","{0}は半角{1}文字以内で入力して下さい"); From minahito @ users.sourceforge.jp Sat Dec 10 18:25:50 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 10 Dec 2005 18:25:50 +0900 Subject: [xoops-cvslog 1272] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20051210092550.094DF2AC0D3@users.sourceforge.jp> Index: xoops2jp/html/modules/base/language/japanese/modinfo.php diff -u xoops2jp/html/modules/base/language/japanese/modinfo.php:1.1.2.2 xoops2jp/html/modules/base/language/japanese/modinfo.php:1.1.2.3 --- xoops2jp/html/modules/base/language/japanese/modinfo.php:1.1.2.2 Mon Nov 14 18:07:39 2005 +++ xoops2jp/html/modules/base/language/japanese/modinfo.php Sat Dec 10 18:25:49 2005 @@ -3,7 +3,7 @@ define("_MI_BASE_NAME","互換モジュール"); define("_MI_BASE_NAME_DESC","XOOPS Cube にXOOPS 2.0.x シリーズの互換性を与えます"); -define("_MI_PROFILE_BASE_CONTROLLER","XOOPS 2.0.x シリーズとの互換性動作を重視します。
自由度の高いプリロードシステムは、やや低速です。"); -define("_MI_PROFILE_BASE_LEGACY_RENDER_SYSTEM","レンダリングとキャッシュにSmartyエンジンを使います。
XOOPS 2.0.x シリーズのテーマを使用可能です"); +define("_MI_BASE_MENU_ACTIONSEARCH","コマンド検索"); +define("_MI_BASE_MENU_MODULELIST","モジュールリスト"); ?> \ No newline at end of file From minahito @ users.sourceforge.jp Sat Dec 10 18:50:35 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Sat, 10 Dec 2005 18:50:35 +0900 Subject: [xoops-cvslog 1273] CVS update: xoops2jp/html/kernel Message-ID: <20051210095035.A86E52AC092@users.sourceforge.jp> Index: xoops2jp/html/kernel/block.php diff -u xoops2jp/html/kernel/block.php:1.2.8.1 xoops2jp/html/kernel/block.php:1.2.8.2 --- xoops2jp/html/kernel/block.php:1.2.8.1 Wed Oct 19 02:21:03 2005 +++ xoops2jp/html/kernel/block.php Sat Dec 10 18:50:35 2005 @@ -1,5 +1,5 @@ create(); + + $options=isset($info['options']) ? $info['options'] : null; + $edit_func=isset($info['edit_func']) ? $info['edit_func'] : null; + + $block->setVar('options',$options); + $block->setVar('name',$info['name']); + $block->setVar('title',$info['name']); + $block->setVar('block_type','M'); + $block->setVar('c_type',1); + $block->setVar('func_file',$info['file']); + $block->setVar('show_func',$info['show_func']); + $block->setVar('edit_func',$edit_func); + $block->setVar('template',$info['template']); + $block->setVar('last_modified',time()); + + return $block; + } + /** * retrieve a specific {@link XoopsBlock} * From minahito @ users.sourceforge.jp Wed Dec 14 12:56:52 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 14 Dec 2005 12:56:52 +0900 Subject: [xoops-cvslog 1274] CVS update: xoops2jp/html/modules/base/language/english Message-ID: <20051214035652.6F4DE2AC015@users.sourceforge.jp> Index: xoops2jp/html/modules/base/language/english/admin.php diff -u /dev/null xoops2jp/html/modules/base/language/english/admin.php:1.1.2.1 --- /dev/null Wed Dec 14 12:56:52 2005 +++ xoops2jp/html/modules/base/language/english/admin.php Wed Dec 14 12:56:52 2005 @@ -0,0 +1,36 @@ + From minahito @ users.sourceforge.jp Wed Dec 14 13:57:43 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 14 Dec 2005 13:57:43 +0900 Subject: [xoops-cvslog 1275] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20051214045743.7D3152AC02D@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.3 xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.4 --- xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.3 Sat Dec 10 18:25:28 2005 +++ xoops2jp/html/modules/base/language/japanese/admin.php Wed Dec 14 13:57:43 2005 @@ -1,33 +1,36 @@ \ No newline at end of file +// +// Lang (A word) +// +define('_MB_A_BASE_LANG_ACTIONSEARCH', "アクションサーチ"); +define('_MB_A_BASE_LANG_MENU', "メニュー"); +define('_MB_A_BASE_LANG_SEARCH', "検索"); + +// +// Error Messages +// +define('_MD_A_BASE_ERROR_ABOUT_ISACTIVE', "ISACTIVEに指定した値が不正です"); +define('_MD_A_BASE_ERROR_MAXLENGTH', "{0}は半角{1}文字以内で入力して下さい"); +define('_MD_A_BASE_ERROR_MIN', "{0}は{1}以上の数値を指定して下さい"); +define('_MD_A_BASE_ERROR_REQUIRED', "{0}は必ず入力して下さい"); +define('_MD_A_BASE_ERROR_SEARCH_REQUIRED', "キーワードを入力して下さい"); + +// +// Lang (A word) +// +define('_MD_A_BASE_LANG_ACTIONSEARCH', "アクションサーチ"); +define('_MD_A_BASE_LANG_ACTIVE', "アクティブ"); +define('_MD_A_BASE_LANG_CONTROL', "操作"); +define('_MD_A_BASE_LANG_INFORMATION', "インフォメーション"); +define('_MD_A_BASE_LANG_ISACTIVE', "有効"); +define('_MD_A_BASE_LANG_LASTUPDATE', "最終更新日"); +define('_MD_A_BASE_LANG_MID', "MID"); +define('_MD_A_BASE_LANG_MODIFY', "変更"); +define('_MD_A_BASE_LANG_NAME', "名前"); +define('_MD_A_BASE_LANG_SEARCH', "検索"); +define('_MD_A_BASE_LANG_SUBMIT', "送信"); +define('_MD_A_BASE_LANG_UPDATE', "アップデート"); +define('_MD_A_BASE_LANG_VERSION', "バージョン"); +define('_MD_A_BASE_LANG_WEIGHT', "表示優先度"); +?> From minahito @ users.sourceforge.jp Wed Dec 14 14:35:08 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 14 Dec 2005 14:35:08 +0900 Subject: [xoops-cvslog 1276] CVS update: xoops2jp/html/modules/base/language/english Message-ID: <20051214053508.D988D2AC039@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.1 xoops2jp/html/modules/base/language/english/admin.php:1.1.2.2 --- xoops2jp/html/modules/base/language/english/admin.php:1.1.2.1 Wed Dec 14 12:56:52 2005 +++ xoops2jp/html/modules/base/language/english/admin.php Wed Dec 14 14:35:08 2005 @@ -21,15 +21,49 @@ // define('_MD_A_BASE_LANG_ACTIONSEARCH', "Actionsearch"); define('_MD_A_BASE_LANG_ACTIVE', "Active"); +define('_MD_A_BASE_LANG_BLOCK_KEY', "BLOCK_KEY"); +define('_MD_A_BASE_LANG_BLOCK_VAL', "BLOCK_VAL"); +define('_MD_A_BASE_LANG_BLOCKS_INFO', "BLOCKS_INFO"); +define('_MD_A_BASE_LANG_CONFIG_INFO', "CONFIG_INFO"); +define('_MD_A_BASE_LANG_CONFIG_KEY', "CONFIG_KEY"); +define('_MD_A_BASE_LANG_CONFIG_VAL', "CONFIG_VAL"); define('_MD_A_BASE_LANG_CONTROL', "Control"); +define('_MD_A_BASE_LANG_FEATURE_SVC_INFO', "FEATURE_SVC_INFO"); define('_MD_A_BASE_LANG_INFORMATION', "Information"); define('_MD_A_BASE_LANG_ISACTIVE', "Isactive"); define('_MD_A_BASE_LANG_LASTUPDATE', "Lastupdate"); +define('_MD_A_BASE_LANG_MAINMENU_INFO', "MAINMENU_INFO"); define('_MD_A_BASE_LANG_MID', "Mid"); +define('_MD_A_BASE_LANG_MOD_AUTHOR', "MOD_AUTHOR"); +define('_MD_A_BASE_LANG_MOD_BASIC_INFO', "MOD_BASIC_INFO"); +define('_MD_A_BASE_LANG_MOD_CREDITS', "MOD_CREDITS"); +define('_MD_A_BASE_LANG_MOD_DESC', "MOD_DESC"); +define('_MD_A_BASE_LANG_MOD_DIR_NAME', "MOD_DIR_NAME"); +define('_MD_A_BASE_LANG_MOD_LICENSE_INFO', "MOD_LICENSE_INFO"); define('_MD_A_BASE_LANG_MODIFY', "Modify"); +define('_MD_A_BASE_LANG_MODULE_LICENSE', "MODULE_LICENSE"); define('_MD_A_BASE_LANG_NAME', "Name"); +define('_MD_A_BASE_LANG_NO_BLOCK', "NO_BLOCK"); +define('_MD_A_BASE_LANG_NO_CONFIG', "NO_CONFIG"); +define('_MD_A_BASE_LANG_NO_MAINMENU', "NO_MAINMENU"); +define('_MD_A_BASE_LANG_NO_SQL', "NO_SQL"); +define('_MD_A_BASE_LANG_NO_TEMPLATE', "NO_TEMPLATE"); define('_MD_A_BASE_LANG_SEARCH', "Search"); +define('_MD_A_BASE_LANG_SQL_ENGINE', "SQL_ENGINE"); +define('_MD_A_BASE_LANG_SQL_FILE_NAME', "SQL_FILE_NAME"); +define('_MD_A_BASE_LANG_SQL_HAS_MAIN', "SQL_HAS_MAIN"); +define('_MD_A_BASE_LANG_SQL_INFO', "SQL_INFO"); +define('_MD_A_BASE_LANG_SQL_MYSQL', "SQL_MySQL"); define('_MD_A_BASE_LANG_SUBMIT', "Submit"); +define('_MD_A_BASE_LANG_TABLE_NAME', "TABLE_NAME"); +define('_MD_A_BASE_LANG_TABLE_NUM', "TABLE_NUM"); +define('_MD_A_BASE_LANG_TABLE_PROPERTIES', "TABLE_PROPERTIES"); +define('_MD_A_BASE_LANG_TEMPLATE_DESC', "TEMPLATE_DESC"); +define('_MD_A_BASE_LANG_TEMPLATE_ENGINE', "TEMPLATE_ENGINE"); +define('_MD_A_BASE_LANG_TEMPLATE_FILE', "TEMPLATE_FILE"); +define('_MD_A_BASE_LANG_TEMPLATE_HAS_MAIN', "TEMPLATE_HAS_MAIN"); +define('_MD_A_BASE_LANG_TEMPLATE_INFO', "TEMPLATE_INFO"); +define('_MD_A_BASE_LANG_TEMPLATE_KEY', "TEMPLATE_KEY"); define('_MD_A_BASE_LANG_UPDATE', "Update"); define('_MD_A_BASE_LANG_VERSION', "Version"); define('_MD_A_BASE_LANG_WEIGHT', "Weight"); From minahito @ users.sourceforge.jp Wed Dec 14 14:35:14 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 14 Dec 2005 14:35:14 +0900 Subject: [xoops-cvslog 1277] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20051214053514.E04AF2AC039@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.4 xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.5 --- xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.4 Wed Dec 14 13:57:43 2005 +++ xoops2jp/html/modules/base/language/japanese/admin.php Wed Dec 14 14:35:14 2005 @@ -21,15 +21,49 @@ // define('_MD_A_BASE_LANG_ACTIONSEARCH', "アクションサーチ"); define('_MD_A_BASE_LANG_ACTIVE', "アクティブ"); +define('_MD_A_BASE_LANG_BLOCK_KEY', "BLOCK_KEY"); +define('_MD_A_BASE_LANG_BLOCK_VAL', "BLOCK_VAL"); +define('_MD_A_BASE_LANG_BLOCKS_INFO', "ブロック情報"); +define('_MD_A_BASE_LANG_CONFIG_INFO', "一般設定情報"); +define('_MD_A_BASE_LANG_CONFIG_KEY', "CONFIG_KEY"); +define('_MD_A_BASE_LANG_CONFIG_VAL', "CONFIG_VAL"); define('_MD_A_BASE_LANG_CONTROL', "操作"); +define('_MD_A_BASE_LANG_FEATURE_SVC_INFO', "フューチャー機能情報"); define('_MD_A_BASE_LANG_INFORMATION', "インフォメーション"); define('_MD_A_BASE_LANG_ISACTIVE', "有効"); define('_MD_A_BASE_LANG_LASTUPDATE', "最終更新日"); +define('_MD_A_BASE_LANG_MAINMENU_INFO', "メインメニュー情報"); define('_MD_A_BASE_LANG_MID', "MID"); +define('_MD_A_BASE_LANG_MOD_AUTHOR', "モジュール作者"); +define('_MD_A_BASE_LANG_MOD_BASIC_INFO', "モジュール概要"); +define('_MD_A_BASE_LANG_MOD_CREDITS', "クレジット情報"); +define('_MD_A_BASE_LANG_MOD_DESC', "モジュール説明"); +define('_MD_A_BASE_LANG_MOD_DIR_NAME', "ディレクトリ名"); +define('_MD_A_BASE_LANG_MOD_LICENSE_INFO', "ライセンス情報"); define('_MD_A_BASE_LANG_MODIFY', "変更"); +define('_MD_A_BASE_LANG_MODULE_LICENSE', "ライセンス"); define('_MD_A_BASE_LANG_NAME', "名前"); +define('_MD_A_BASE_LANG_NO_BLOCK', "ブロック情報は設定されていません"); +define('_MD_A_BASE_LANG_NO_CONFIG', "一般設定情報は設定されていません"); +define('_MD_A_BASE_LANG_NO_MAINMENU', "NO_MAINMENU"); +define('_MD_A_BASE_LANG_NO_SQL', "SQL情報は設定されていません"); +define('_MD_A_BASE_LANG_NO_TEMPLATE', "テンプレート情報は設定されていません"); define('_MD_A_BASE_LANG_SEARCH', "検索"); +define('_MD_A_BASE_LANG_SQL_ENGINE', "SQL_ENGINE"); +define('_MD_A_BASE_LANG_SQL_FILE_NAME', "SQL_FILE_NAME"); +define('_MD_A_BASE_LANG_SQL_HAS_MAIN', "SQL_HAS_MAIN"); +define('_MD_A_BASE_LANG_SQL_INFO', "SQL情報"); +define('_MD_A_BASE_LANG_SQL_MYSQL', "MySQL"); define('_MD_A_BASE_LANG_SUBMIT', "送信"); +define('_MD_A_BASE_LANG_TABLE_NAME', "テーブル名"); +define('_MD_A_BASE_LANG_TABLE_NUM', "No"); +define('_MD_A_BASE_LANG_TABLE_PROPERTIES', "テーブル構造"); +define('_MD_A_BASE_LANG_TEMPLATE_DESC', "TEMPLATE_DESC"); +define('_MD_A_BASE_LANG_TEMPLATE_ENGINE', "TEMPLATE_ENGINE"); +define('_MD_A_BASE_LANG_TEMPLATE_FILE', "TEMPLATE_FILE"); +define('_MD_A_BASE_LANG_TEMPLATE_HAS_MAIN', "TEMPLATE_HAS_MAIN"); +define('_MD_A_BASE_LANG_TEMPLATE_INFO', "テンプレート情報"); +define('_MD_A_BASE_LANG_TEMPLATE_KEY', "TEMPLATE_KEY"); define('_MD_A_BASE_LANG_UPDATE', "アップデート"); define('_MD_A_BASE_LANG_VERSION', "バージョン"); define('_MD_A_BASE_LANG_WEIGHT', "表示優先度"); From minahito @ users.sourceforge.jp Wed Dec 14 14:35:52 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 14 Dec 2005 14:35:52 +0900 Subject: [xoops-cvslog 1278] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051214053552.11F6D2AC045@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/legacy_admin_inst_moduleinfo.html diff -u xoops2jp/html/modules/base/admin/templates/legacy_admin_inst_moduleinfo.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/legacy_admin_inst_moduleinfo.html:1.1.2.2 --- xoops2jp/html/modules/base/admin/templates/legacy_admin_inst_moduleinfo.html:1.1.2.1 Thu Dec 1 21:42:06 2005 +++ xoops2jp/html/modules/base/admin/templates/legacy_admin_inst_moduleinfo.html Wed Dec 14 14:35:51 2005 @@ -1,4 +1,178 @@ +

» <{$smarty.const._MD_A_BASE_LANG_INFORMATION}> » <{$module->getVar('name')}>

-This template shows a module that is already installed. +
<{$smarty.const._MD_A_BASE_LANG_MOD_BASIC_INFO}>
+ + + + + + + + + + + + + + + + + + +
+
<{$module->modinfo.name}>
<{$smarty.const._MD_A_BASE_LANG_NAME}><{$module->getVar('name')}>
<{$smarty.const._MD_A_BASE_LANG_MOD_DIR_NAME}><{$module->getVar('dirname')}>
<{$smarty.const._MD_A_BASE_LANG_VERSION}><{$module->getVar('version')}>
<{$smarty.const._MD_A_BASE_LANG_MOD_DESC}><{$module->modinfo.description}>
-

<{$module->getVar('name')}>

+
+ + + + + + + + + + + + + + + + +
<{$smarty.const._MD_A_BASE_LANG_MOD_LICENSE_INFO}>
<{$smarty.const._MD_A_BASE_LANG_MODULE_LICENSE}><{$module->modinfo.license}>
<{$smarty.const._MD_A_BASE_LANG_MOD_AUTHOR}><{$module->modinfo.author}>
<{$smarty.const._MD_A_BASE_LANG_MOD_CREDITS}><{$module->modinfo.credits}>
+ + +
<{$smarty.const._MD_A_BASE_LANG_SQL_INFO}>
+<{if $module->modinfo.tables}> + + + + + + + + + + + + + +
<{$smarty.const._MD_A_BASE_LANG_SQL_HAS_MAIN}><{$smarty.const._MD_A_BASE_LANG_ACTIVE}>
<{$smarty.const._MD_A_BASE_LANG_SQL_ENGINE}><{$smarty.const._MD_A_BASE_LANG_SQL_MYSQL}>
<{$smarty.const._MD_A_BASE_LANG_SQL_FILE_NAME}><{$module->modinfo.sqlfile.mysql}>
+
+ + + + + + +<{foreach from=$module->modinfo.tables item=table key=table_key}> + + + + + +<{/foreach}> +
<{$smarty.const._MD_A_BASE_LANG_TABLE_NUM}><{$smarty.const._MD_A_BASE_LANG_TABLE_NAME}><{$smarty.const._MD_A_BASE_LANG_TABLE_PROPERTIES}>
<{$table_key}><{$table}>xxxxxxxxxxxxx
+<{else}> +
<{$smarty.const._MD_A_BASE_LANG_NO_SQL}>
+<{/if}> + + +
<{$smarty.const._MD_A_BASE_LANG_TEMPLATE_INFO}>
+ +<{if $module->modinfo.templates }> + + + + + + + + + +
<{$smarty.const._MD_A_BASE_LANG_TEMPLATE_HAS_MAIN}>使用
<{$smarty.const._MD_A_BASE_LANG_TEMPLATE_ENGINE}>Smarty
+
+ + + + + + +<{foreach from=$module->modinfo.templates item=template key=template_key}> + + + + + +<{/foreach}> +
<{$smarty.const._MD_A_BASE_LANG_TEMPLATE_KEY}><{$smarty.const._MD_A_BASE_LANG_TEMPLATE_FILE}><{$smarty.const._MD_A_BASE_LANG_TEMPLATE_DESC}>
<{$template_key}><{$template.file}><{$template.description}>
+<{else}> +
<{$smarty.const._MD_A_BASE_LANG_NO_TEMPLATE}>
+<{/if}> + + +
<{$smarty.const._MD_A_BASE_LANG_BLOCKS_INFO}>
+ +<{foreach from=$module->modinfo.blocks item=block key=block_num }> + + + + + + <{foreach from=$block key=block_key item=block_val name=block }> + + + <{if $block_key == "name" }> + + <{else}> + + <{/if}> + + <{/foreach}> +
<{$smarty.const._MD_A_BASE_LANG_BLOCK_KEY}> (<{$block_num}>)<{$smarty.const._MD_A_BASE_LANG_BLOCK_VAL}>
<{$block_key}><{$block_val}><{$block_val}>
+
+<{foreachelse}> +
<{$smarty.const._MD_A_BASE_LANG_NO_BLOCK}>
+<{/foreach}> + + +
<{$smarty.const._MD_A_BASE_LANG_CONFIG_INFO}>
+ +<{foreach from=$module->modinfo.config item=config }> + + + + + + <{foreach from=$config key=config_key item=config_val name=config }> + + + <{if $config_key == "name" }> + + <{else}> + + <{/if}> + + <{/foreach}> +
<{$smarty.const._MD_A_BASE_LANG_CONFIG_KEY}><{$smarty.const._MD_A_BASE_LANG_CONFIG_VAL}>
<{$config_key}>"><{$config_val}>"><{$config_val}>
+
+<{foreachelse}> +
<{$smarty.const._MD_A_BASE_LANG_NO_CONFIG}>
+<{/foreach}> + +
<{$smarty.const._MD_A_BASE_LANG_MAINMENU_INFO}>
+<{if $module->getVar('hasmain')}> + +<{else}> +
<{$smarty.const._MD_A_BASE_LANG_NO_MAINMENU}>
+<{/if}> + +
<{$smarty.const._MD_A_BASE_LANG_FEATURE_SVC_INFO}>
+<{if $module->getVar('hassearch')}> +<{/if}> + +<{if $module->getVar('hascomments')}> +<{/if}> + +<{if $module->getVar('hasnotification')}> +<{/if}> From minahito @ users.sourceforge.jp Wed Dec 14 17:34:40 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 14 Dec 2005 17:34:40 +0900 Subject: [xoops-cvslog 1279] CVS update: xoops2jp/html/modules/base/class Message-ID: <20051214083440.4728F2AC028@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/Legacy_AdminRenderSystem.class.php diff -u xoops2jp/html/modules/base/class/Legacy_AdminRenderSystem.class.php:1.1.2.6 xoops2jp/html/modules/base/class/Legacy_AdminRenderSystem.class.php:1.1.2.7 --- xoops2jp/html/modules/base/class/Legacy_AdminRenderSystem.class.php:1.1.2.6 Wed Nov 30 01:01:24 2005 +++ xoops2jp/html/modules/base/class/Legacy_AdminRenderSystem.class.php Wed Dec 14 17:34:40 2005 @@ -1,60 +1,62 @@ -mSmarty=new Smarty(); - $this->mSmarty->compile_dir=XOOPS_COMPILE_PATH; - $this->mSmarty->left_delimiter="<{"; - $this->mSmarty->right_delimiter="}>"; - - $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)); - } - - function renderBlock(&$target) - { - $this->mSmarty->template_dir=XOOPS_ROOT_PATH."/modules/base/admin/templates/blocks"; - - foreach($target->getAttributes() as $key=>$value) { - $this->mSmarty->assign($key,$value); - } - - $result=&$this->mSmarty->fetch($target->getTemplateName()); - $target->setResult($result); - - // - // Reset - // - foreach($target->getAttributes() as $key=>$value) { - $this->mSmarty->clear_assign($key); - } - } - +mSmarty=new Smarty(); + $this->mSmarty->compile_dir=XOOPS_COMPILE_PATH; + $this->mSmarty->left_delimiter="<{"; + $this->mSmarty->right_delimiter="}>"; + + $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)); + + $this->mSmarty->register_modifier("theme","Legacy_modifier_theme"); + } + + function renderBlock(&$target) + { + $this->mSmarty->template_dir=XOOPS_ROOT_PATH."/modules/base/admin/templates/blocks"; + + foreach($target->getAttributes() as $key=>$value) { + $this->mSmarty->assign($key,$value); + } + + $result=&$this->mSmarty->fetch($target->getTemplateName()); + $target->setResult($result); + + // + // Reset + // + foreach($target->getAttributes() as $key=>$value) { + $this->mSmarty->clear_assign($key); + } + } + function renderTheme(&$target) { - $this->mController->mDebugger->displayLog(); + $this->mController->mDebugger->displayLog(); // // Assign from attributes of the render-target. @@ -62,42 +64,53 @@ foreach($target->getAttributes() as $key=>$value) { $this->mSmarty->assign($key,$value); } - - $this->mSmarty->assign("currentModule",$this->mController->mModuleController->mModuleObject); - // - // Theme rendering - // - foreach($this->mBlockContents[0] as $result) { - $this->mSmarty->append('xoops_lblocks',$result); - } + $this->mSmarty->assign("currentModule",$this->mController->mModuleController->mModuleObject); - $this->mSmarty->template_dir=XOOPS_ROOT_PATH."/themes/admin/"; - $result=$this->mSmarty->fetch("file:admin_theme.html"); + // + // Theme rendering + // + foreach($this->mBlockContents[0] as $result) { + $this->mSmarty->append('xoops_lblocks',$result); + } + + $this->mSmarty->template_dir=XOOPS_ROOT_PATH."/themes/admin/"; + $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()) { + $this->mSmarty->template_dir=$this->mController->mModuleController->getModuleDir() . "/". LEGACY_ADMIN_RENDER_TEMPLATE_DIRNAME; + $result=$this->mSmarty->fetch("file:".$this->mTemplateName); + } + else { + $result=$target->getAttribute("stdout_buffer"); + } + $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()) { - $this->mSmarty->template_dir=$this->mController->mModuleController->getModuleDir() . "/". LEGACY_ADMIN_RENDER_TEMPLATE_DIRNAME; - $result=$this->mSmarty->fetch("file:".$this->mTemplateName); - } - else { - $result=$target->getAttribute("stdout_buffer"); - } - - $target->setResult($result); - } -} - +} + +/** + * Return URL string by "overriding" rule + * (Now, test implement) + */ +function Legacy_modifier_theme($string) +{ + // TEST + // I will modify this function to oveeride system. + return XOOPS_THEME_URL."/admin/".$string; +} + ?> \ No newline at end of file From minahito @ users.sourceforge.jp Wed Dec 14 18:38:06 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 14 Dec 2005 18:38:06 +0900 Subject: [xoops-cvslog 1280] CVS update: xoops2jp/html/modules/legacyRender/language/english Message-ID: <20051214093806.8B4982AC035@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/language/english/admin.php diff -u /dev/null xoops2jp/html/modules/legacyRender/language/english/admin.php:1.1.2.1 --- /dev/null Wed Dec 14 18:38:06 2005 +++ xoops2jp/html/modules/legacyRender/language/english/admin.php Wed Dec 14 18:38:06 2005 @@ -0,0 +1,44 @@ + From minahito @ users.sourceforge.jp Wed Dec 14 18:38:59 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 14 Dec 2005 18:38:59 +0900 Subject: [xoops-cvslog 1281] CVS update: xoops2jp/html/modules/legacyRender/language/japanese Message-ID: <20051214093859.F10A02AC035@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.1 xoops2jp/html/modules/legacyRender/language/japanese/admin.php:1.1.2.2 --- xoops2jp/html/modules/legacyRender/language/japanese/admin.php:1.1.2.1 Fri Nov 25 19:28:16 2005 +++ xoops2jp/html/modules/legacyRender/language/japanese/admin.php Wed Dec 14 18:38:59 2005 @@ -1,36 +1,44 @@ \ No newline at end of file +// +// Others +// +define('_MD_A_LEGACYRENDER_GET_THEME_DESC1', "テーマ開発者のインターネットサイトなどから、追加テーマを入手できます。"); +define('_MD_A_LEGACYRENDER_GET_THEME_DESC2', "入手したテーマはたいてい圧縮されています。解凍ソフトで展開してから、使用中のXOOPS Cubeの決められた位置へ配置します。"); +define('_MD_A_LEGACYRENDER_GETTING_START_DESC1', "このレンダーシステムは、XOOPS 2.0.9/XOOPS JP 2.0.x のテーマエンジンと互換性があり、同フォーマットのテーマを使用することができます。"); +define('_MD_A_LEGACYRENDER_GETTING_START_DESC2', "オーバーライド、およびフォールバックメカニズムを持ちません。"); +define('_MD_A_LEGACYRENDER_GETTING_START_DESC3', "レンダリングとキャッシュマネジメントにSmartyを使用します。速度は中速度です。"); +define('_MD_A_LEGACYRENDER_GETTING_START_DESC4', "詳しい公称スペックはマニフェストをご覧下さい。"); + +// +// Lang (A word) +// +define('_MD_A_LEGACYRENDER_LANG_AUTHOR', "作成者"); +define('_MD_A_LEGACYRENDER_LANG_CONTROL', "コントロール"); +define('_MD_A_LEGACYRENDER_LANG_GET_ADDRESS', "最新版の入手先"); +define('_MD_A_LEGACYRENDER_LANG_GET_THEME', "追加テーマの入手"); +define('_MD_A_LEGACYRENDER_LANG_GETTING_START', "まずはじめに"); +define('_MD_A_LEGACYRENDER_LANG_HELP', "ヘルプ"); +define('_MD_A_LEGACYRENDER_LANG_INFORMATION', "インフォメーション"); +define('_MD_A_LEGACYRENDER_LANG_INSTALL', "インストール"); +define('_MD_A_LEGACYRENDER_LANG_MANIFESTO', "マニフェスト情報"); +define('_MD_A_LEGACYRENDER_LANG_THEME', "テーマ"); +define('_MD_A_LEGACYRENDER_LANG_UNINSTALL', "テーマのアンインストール"); +define('_MD_A_LEGACYRENDER_LANG_UPLOAD', "テーマのアップロード"); +define('_MD_A_LEGACYRENDER_LANG_VERSION', "バージョン"); +define('_MD_A_LEGACYRENDER_LANG_W3C', "W3C"); + +// +// Messages +// +define('_MD_A_LEGACYRENDER_MESSAGE_NO_MANIFESTO', "マニフェスト情報なし"); + +// +// Others +// +define('_MD_A_LEGACYRENDER_UNINSTALL_DESC1', "このレンダーシステムは、データベースを使用せずにテーマを管理しています。"); +define('_MD_A_LEGACYRENDER_UNINSTALL_DESC2', "XOOPS Cubeのテーマディレクトリより、アンインストールしたいテーマをディレクトリごと削除して下さい。"); +define('_MD_A_LEGACYRENDER_UPLOAD_DESC1', "展開したテーマのディレクトリをXOOPS Cubeのルートディレクトリ下にあるthemesディレクトリへアップロードして下さい。"); +define('_MD_A_LEGACYRENDER_UPLOAD_DESC2', "ディレクトリが二重にならないように、たとえばdefaultテーマであればdefaultディレクトリのすぐ下にtheme.htmlかmanifesto.ini.phpがある状態でアップロードします。"); +define('_MD_A_LEGACYRENDER_UPLOAD_DESC3', "このレンダーシステムが対応していないテーマは一覧に表示しません。ご注意下さい。"); +?> From minahito @ users.sourceforge.jp Wed Dec 14 18:40:15 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 14 Dec 2005 18:40:15 +0900 Subject: [xoops-cvslog 1282] CVS update: xoops2jp/html/modules/legacyRender/language/english Message-ID: <20051214094015.E36D62AC03E@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/language/english/admin.php diff -u xoops2jp/html/modules/legacyRender/language/english/admin.php:1.1.2.1 xoops2jp/html/modules/legacyRender/language/english/admin.php:1.1.2.2 --- xoops2jp/html/modules/legacyRender/language/english/admin.php:1.1.2.1 Wed Dec 14 18:38:06 2005 +++ xoops2jp/html/modules/legacyRender/language/english/admin.php Wed Dec 14 18:40:15 2005 @@ -7,7 +7,7 @@ define('_MD_A_LEGACYRENDER_GET_THEME_DESC2', "A theme is usually compressed. After extend it with using archiver, you must upload it to theme directory of your XOOPS Cube site."); define('_MD_A_LEGACYRENDER_GETTING_START_DESC1', "This render-system is compatible with XOOPS 2.0.9/XOOPS JP 2.0.x theme engine. You can use many themes that follows the same format."); define('_MD_A_LEGACYRENDER_GETTING_START_DESC2', "No override function. No fallback function."); -define('_MD_A_LEGACYRENDER_GETTING_START_DESC3', "This uses Smarty for rendering and managing cache. A speed of this system is never "); +define('_MD_A_LEGACYRENDER_GETTING_START_DESC3', "This uses Smarty for rendering and managing cache. This is not fast, but is not slow."); define('_MD_A_LEGACYRENDER_GETTING_START_DESC4', "To know a detail, you can read a manifesto of this system."); // From minahito @ users.sourceforge.jp Wed Dec 14 18:58:31 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 14 Dec 2005 18:58:31 +0900 Subject: [xoops-cvslog 1283] CVS update: xoops2jp/html/modules/legacyRender/language/english Message-ID: <20051214095831.8BAFE2AC030@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/language/english/modinfo.php diff -u xoops2jp/html/modules/legacyRender/language/english/modinfo.php:1.1.2.1 xoops2jp/html/modules/legacyRender/language/english/modinfo.php:1.1.2.2 --- xoops2jp/html/modules/legacyRender/language/english/modinfo.php:1.1.2.1 Fri Nov 25 13:20:22 2005 +++ xoops2jp/html/modules/legacyRender/language/english/modinfo.php Wed Dec 14 18:58:31 2005 @@ -1,6 +1,19 @@ +language/japanese/modinfo.php \ No newline at end of file +// +// Others +// +define('_MI_LEGACYRENDER_ADMENU_HELP', "Help"); +define('_MI_LEGACYRENDER_ADMENU_THEME_SETTING', "Theme setting"); +define('_MI_LEGACYRENDER_KEYWORD_ADD', "Add"); +define('_MI_LEGACYRENDER_KEYWORD_DELETE', "Delete"); +define('_MI_LEGACYRENDER_KEYWORD_DOWNLOAD', "Download"); +define('_MI_LEGACYRENDER_KEYWORD_INSTALL', "Install"); +define('_MI_LEGACYRENDER_KEYWORD_SELECT', "Select"); +define('_MI_LEGACYRENDER_KEYWORD_THEME', "Theme"); +define('_MI_LEGACYRENDER_KEYWORD_UNINSTALL', "Uninstall"); +define('_MI_LEGACYRENDER_KEYWORD_UPLOAD', "Upload"); +define('_MI_LEGACYRENDER_NAME', "Compatibility Render System"); +define('_MI_LEGACYRENDER_NAME_DESC', "This system has compatibility with XOOPS 2.0.9 and XOOPS JP 2.0.x. You can use XOOPS2 Format Theme on this system."); +?> From minahito @ users.sourceforge.jp Wed Dec 14 18:58:39 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 14 Dec 2005 18:58:39 +0900 Subject: [xoops-cvslog 1284] CVS update: xoops2jp/html/modules/legacyRender/language/japanese Message-ID: <20051214095839.D8DAF2AC030@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/language/japanese/modinfo.php diff -u xoops2jp/html/modules/legacyRender/language/japanese/modinfo.php:1.1.2.2 xoops2jp/html/modules/legacyRender/language/japanese/modinfo.php:1.1.2.3 --- xoops2jp/html/modules/legacyRender/language/japanese/modinfo.php:1.1.2.2 Fri Nov 25 19:28:16 2005 +++ xoops2jp/html/modules/legacyRender/language/japanese/modinfo.php Wed Dec 14 18:58:39 2005 @@ -1,18 +1,18 @@ \ No newline at end of file +// +// Others +// +define('_MI_LEGACYRENDER_ADMENU_HELP', "ヘルプ"); +define('_MI_LEGACYRENDER_ADMENU_THEME_SETTING', "テーマの設定"); +define('_MI_LEGACYRENDER_KEYWORD_ADD', "追加"); +define('_MI_LEGACYRENDER_KEYWORD_DELETE', "削除"); +define('_MI_LEGACYRENDER_KEYWORD_DOWNLOAD', "ダウンロード"); +define('_MI_LEGACYRENDER_KEYWORD_INSTALL', "インストール"); +define('_MI_LEGACYRENDER_KEYWORD_SELECT', "選択"); +define('_MI_LEGACYRENDER_KEYWORD_THEME', "テーマ"); +define('_MI_LEGACYRENDER_KEYWORD_UNINSTALL', "アンインストール"); +define('_MI_LEGACYRENDER_KEYWORD_UPLOAD', "アップロード"); +define('_MI_LEGACYRENDER_NAME', "互換レンダーシステム"); +define('_MI_LEGACYRENDER_NAME_DESC', "XOOPS 2.0.9/XOOPS JP 2.0.x のテーマエンジンと互換性のあるレンダーシステムです。XOOPS2テーマを使用可能です。"); +?> From minahito @ users.sourceforge.jp Fri Dec 16 18:05:43 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 16 Dec 2005 18:05:43 +0900 Subject: [xoops-cvslog 1285] CVS update: xoops2jp/html/kernel Message-ID: <20051216090543.DE28C2AC0A1@users.sourceforge.jp> Index: xoops2jp/html/kernel/tplfile.php diff -u xoops2jp/html/kernel/tplfile.php:1.2.8.1 xoops2jp/html/kernel/tplfile.php:1.2.8.2 --- xoops2jp/html/kernel/tplfile.php:1.2.8.1 Wed Oct 19 02:21:03 2005 +++ xoops2jp/html/kernel/tplfile.php Fri Dec 16 18:05:43 2005 @@ -1,5 +1,5 @@ db->prefix('tplfile')); + $sql .= ' ' . $criteria->renderWhere(); + + $result = $this->db->query($sql); + while ($row = $this->db->fetchArray($result)) { + $sql = sprintf("DELETE FROM %s WHERE tpl_id=%u", $this->db->prefix('tplsource'), $row['tpl_id']); + $this->db->query($sql); + } + + $sql = sprintf("DELETE FROM %s", $this->db->prefix('tplfile')); + $sql .= ' ' . $criteria->renderWhere(); + + return $this->db->query($sql); + } + function &getObjects($criteria = null, $getsource = false, $id_as_key = false) { $ret = array(); From minahito @ users.sourceforge.jp Fri Dec 16 18:49:31 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 16 Dec 2005 18:49:31 +0900 Subject: [xoops-cvslog 1286] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20051216094931.D176B2AC09F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/AbstractModuleInstallAction.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/actions/AbstractModuleInstallAction.class.php:1.1.2.1 --- /dev/null Fri Dec 16 18:49:31 2005 +++ xoops2jp/html/modules/base/admin/actions/AbstractModuleInstallAction.class.php Fri Dec 16 18:49:31 2005 @@ -0,0 +1,60 @@ +_getInstaller($dirname); + + $this->mModuleObject =& $installer->loadModuleObject($dirname); + + if (!is_object($this->mModuleObject)) { + return LEGACY_ADMIN_FRAME_VIEW_ERROR; + } + + $this->mModuleObject->loadAdminMenu(); + $this->mModuleObject->loadInfo($dirname); + + return LEGACY_ADMIN_FRAME_VIEW_INPUT; + } + + function execute(&$controller, &$xoopsUser) + { + $dirname = trim($_POST['dirname']); + + $force=false; + if(isset($_POST['force'])) + $force=intval($_POST['force'])>0 ? true : false; + + $installer =& $this->_getInstaller($dirname); + $installer->setForceMode($force); + $installer->execute($dirname); + + $this->mLog =& $installer->getLog(); + + return LEGACY_ADMIN_FRAME_VIEW_SUCCESS; + } + + /** + * Return a procedure for this process. + */ + function &_getInstaller($dirname) + { + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Fri Dec 16 18:50:52 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 16 Dec 2005 18:50:52 +0900 Subject: [xoops-cvslog 1287] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20051216095052.31EC52AC010@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/LegacyModuleDeactiveListAction.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/actions/LegacyModuleDeactiveListAction.class.php:1.1.2.1 --- /dev/null Fri Dec 16 18:50:52 2005 +++ xoops2jp/html/modules/base/admin/actions/LegacyModuleDeactiveListAction.class.php Fri Dec 16 18:50:52 2005 @@ -0,0 +1,34 @@ +getDB(); + $handler = new Legacy_DeactiveModuleHandler($db); + + $this->mModuleObjects =& $handler->getObjects(); + + return LEGACY_ADMIN_FRAME_VIEW_INDEX; + } + + function executeViewIndex(&$controller, &$xoopsUser, &$renderer) + { + $renderer->setTemplateName("deactive_module_list.html"); + $renderer->setAttribute('moduleObjects',$this->mModuleObjects); + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Fri Dec 16 18:51:09 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 16 Dec 2005 18:51:09 +0900 Subject: [xoops-cvslog 1288] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20051216095109.C28832AC010@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/LegacyModuleInstallAction.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/actions/LegacyModuleInstallAction.class.php:1.1.2.1 --- /dev/null Fri Dec 16 18:51:09 2005 +++ xoops2jp/html/modules/base/admin/actions/LegacyModuleInstallAction.class.php Fri Dec 16 18:51:09 2005 @@ -0,0 +1,33 @@ +setTemplateName("module_install_success.html"); + $renderer->setAttribute('log', $this->mLog->mMessages); + } + + function executeViewInput(&$controller,&$xoopsUser,&$renderer) + { + $renderer->setTemplateName("module_install_confirm.html"); + $renderer->setAttribute('module', $this->mModuleObject); + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Fri Dec 16 18:51:21 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 16 Dec 2005 18:51:21 +0900 Subject: [xoops-cvslog 1289] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20051216095121.47E5C2AC010@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/LegacyModuleUninstallAction.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/actions/LegacyModuleUninstallAction.class.php:1.1.2.1 --- /dev/null Fri Dec 16 18:51:21 2005 +++ xoops2jp/html/modules/base/admin/actions/LegacyModuleUninstallAction.class.php Fri Dec 16 18:51:21 2005 @@ -0,0 +1,33 @@ +setTemplateName("module_uninstall_success.html"); + $renderer->setAttribute('log',$this->mLog->mMessages); + } + + function executeViewInput(&$controller,&$xoopsUser,&$renderer) + { + $renderer->setTemplateName("module_uninstall_confirm.html"); + $renderer->setAttribute('module',$this->mModuleObject); + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/base/admin/actions/LegacyModuleUpdateAction.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/actions/LegacyModuleUpdateAction.class.php:1.1.2.1 --- /dev/null Fri Dec 16 18:51:21 2005 +++ xoops2jp/html/modules/base/admin/actions/LegacyModuleUpdateAction.class.php Fri Dec 16 18:51:21 2005 @@ -0,0 +1,33 @@ +setTemplateName("module_update_success.html"); + $renderer->setAttribute('log',$this->mLog->mMessages); + } + + function executeViewInput(&$controller,&$xoopsUser,&$renderer) + { + $renderer->setTemplateName("module_update_confirm.html"); + $renderer->setAttribute('module',$this->mModuleObject); + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Fri Dec 16 18:52:04 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 16 Dec 2005 18:52:04 +0900 Subject: [xoops-cvslog 1290] CVS update: xoops2jp/html/modules/base/admin/class Message-ID: <20051216095204.D87012AC010@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php:1.1.2.1 --- /dev/null Fri Dec 16 18:52:04 2005 +++ xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php Fri Dec 16 18:52:04 2005 @@ -0,0 +1,121 @@ +mDirname = $dirname; + $this->mLog = new Legacy_ModuleUtilsSimpleLog(); + } + + /** + * @return bool + */ + function execute() + { + $this->mModule =& $this->loadModuleObject($this->mDirname); + if (!is_object($this->mModule)) + return false; + + $this->_installTable(); + if (!$this->mForceMode && $this->mLog->hasError()) + return false; + + $this->_installModule(); + if (!$this->mForceMode && $this->mLog->hasError()) + return false; + + $this->_installTemplate(); + if (!$this->mForceMode && $this->mLog->hasError()) + return false; + + $this->_installBlock(); + if (!$this->mForceMode && $this->mLog->hasError()) + return false; + + 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*"); + } + } + + /** + * Create or drop tables, this function is called by own execute(). + */ + function _installTable() + { + } + + /** + * Install or uninstall templates of this target module, this function is called by own execute(). + */ + function _installTemplate() + { + } + + /** + * Install or uninstall blocks and their templates, this function is called by own execute(). + */ + function _installBlock() + { + } + + /** + * If set true, this class may never stop for error. + */ + function setForceMode($flag) + { + $this->mForceMode = $flag; + } + + /** + * Return log instance. + */ + function &getLog() + { + return $this->mLog; + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Fri Dec 16 18:52:31 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 16 Dec 2005 18:52:31 +0900 Subject: [xoops-cvslog 1291] CVS update: xoops2jp/html/modules/base/admin/class Message-ID: <20051216095231.C2AFB2AC010@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/class/DeactiveModuleHandler.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/class/DeactiveModuleHandler.class.php:1.1.2.1 --- /dev/null Fri Dec 16 18:52:31 2005 +++ xoops2jp/html/modules/base/admin/class/DeactiveModuleHandler.class.php Fri Dec 16 18:52:31 2005 @@ -0,0 +1,77 @@ +_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, not return it. + * @param $dirname string + * @param XoopsModule or false + */ + function &get($dirname) + { + $ret=false; + + $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) + { + $ret =& $this->_setupObjects(); + + // + // ????????? + // + return $this->_mXoopsModules; + } +} + +?> From minahito @ users.sourceforge.jp Fri Dec 16 18:56:11 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 16 Dec 2005 18:56:11 +0900 Subject: [xoops-cvslog 1292] CVS update: xoops2jp/html/modules/base/admin/class Message-ID: <20051216095611.3DD9E2AC060@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php:1.1.2.1 --- /dev/null Fri Dec 16 18:56:11 2005 +++ xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php Fri Dec 16 18:56:11 2005 @@ -0,0 +1,64 @@ +getByDirname($dirname); + + if (is_object($module)) + return $ret; + + $module =& $moduleHandler->create(); + $module->loadInfoAsVar($this->mDirname); + + return $module; + } + + function _installTable() + { + Legacy_ModuleUtils::installTable($this->mModule, $this->mLog); + } + + function _installTemplate() + { + $templates = $this->mModule->getInfo('templates'); + if ($templates != false) { + foreach ($templates as $template) { + Legacy_ModuleUtils::installTemplate($this->mModule, $template, $this->mLog); + } + } + } + + 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, $this->mLog); + } + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/base/admin/class/ModuleUninstaller.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/class/ModuleUninstaller.class.php:1.1.2.1 --- /dev/null Fri Dec 16 18:56:11 2005 +++ xoops2jp/html/modules/base/admin/class/ModuleUninstaller.class.php Fri Dec 16 18:56:11 2005 @@ -0,0 +1,110 @@ +getByDirname($dirname); + + if (!is_object($module)) + return $ret; + + 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("*Could not delete module information from XOOPS database.*"); + } + else { + $this->mLog->addReport("*Delete module information from XOOPS database.*"); + } + } + + /** + * Drop table because this class is uninstaller. + */ + function _installTable() + { + $root =& XCube_Root::getSingleton(); + $db =& $root->mController->getDB(); + + $tables = $this->mModule->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)) { + $this->mLog->addError("Could not drop table " . $db->prefix($table)); + } + } + } + } + + /** + * Delete template because this class is uninstaller. + */ + function _installTemplate() + { + $tplHandler =& xoops_gethandler('tplfile'); + + $deleteTemplates =& $tplHandler->find(null, 'module', $this->mModule->getVar('mid')); + + foreach($deleteTemplates as $template) { + $tplHandler->delete($template); + } + } + + /** + * Delete all of module's blocks. + */ + function _installBlock() + { + $blockHandler =& xoops_gethandler('block'); + $criteria = new Criteria('mid', $this->mModule->getVar('mid')); + + $blocks =& $blockHandler->getObjects($criteria); + + $gpermHandler =& xoops_gethandler('groupperm'); + foreach ($blocks as $block) { + $blockHandler->delete($block); + $this->mLog->addReport("Uninstall block '".$block->getName('block')); + + // + // 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("Could not delete block templates : " . $tplHandler->db->error()); + } + } +} + +?> \ No newline at end of file Index: xoops2jp/html/modules/base/admin/class/ModuleUpdater.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/class/ModuleUpdater.class.php:1.1.2.1 --- /dev/null Fri Dec 16 18:56:11 2005 +++ xoops2jp/html/modules/base/admin/class/ModuleUpdater.class.php Fri Dec 16 18:56:11 2005 @@ -0,0 +1,170 @@ +mLog->addReport("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; + + $module->loadInfoAsVar($dirname); + + return $module; + } + + /** + * Remove all of installed templates and re-install all of defined templates. + */ + function _installTemplate() + { + $tplHandler =& xoops_gethandler('tplfile'); + + // + // The following processing depends on the structure of Legacy_RenderSystem. + // + $tplHandler =& xoops_gethandler('tplfile'); + $delTemplates =& $tplHandler->find('default', 'module', $this->mModule->getVar('mid')); + if(is_array($delTemplates) && count($delTemplates) > 0) { + // + // clear cache + // + $xoopsTpl=new XoopsTpl(); + $xoopsTpl->clear_cache(null, "mod_" . $this->mModule->getVar('dirname')); + + foreach ($delTemplates as $tpl) { + if (!$tplHandler->delete($tpl)) { + $this->mLog->addError(@sprintf(_MD_A_BASE_ERROR_DELETE_TEMPLATE, $tpl->getVar('tpl_file'))); + } + } + } + + // + // install Template All + // + $templates = $this->mModule->getInfo('templates'); + if ($templates != false) { + foreach ($templates as $template) { + Legacy_ModuleUtils::installTemplate($this->mModule, $template, $this->mLog); + } + } + } + + /** + * @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; + foreach ($definedBlocks as $block) { + $func_num++; + $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('name', $block['name'])); + $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); + $installedBlocks[] =& $newBlock; + unset($newBlock); + + continue; + } + + $oldBlock =& $installedBlocks[0]; + + // + // Check update + // + $changedFlag = false; + $changedFlag |= ($newBlock->getVar('name') != $oldBlock->getVar('name')); + $changedFlag |= ($newBlock->getVar('func_file') != $oldBlock->getVar('func_file')); + $changedFlag |= ($newBlock->getVar('show_func') != $oldBlock->getVar('show_func')); + $changedFlag |= ($newBlock->getVar('edit_func') != $oldBlock->getVar('edit_func')); + $changedFlag |= ($newBlock->getVar('template') != $oldBlock->getVar('template')); + + if ($changedFlag) { + $installedBlocks[] =& $newBlock; + } + else { + if (!Legacy_ModuleUtils::installBlockTemplate($this->mModule, $block)) { + $this->mLog->addError("ERROR : Could not update block template ".$block->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 $block) { + $name = $block->getVar('name'); + $findFlag = false; + foreach ($definedBlocks as $definedBlock) { + $findFlag |= ($definedBlock['name'] == $block->getVar('name')); + } + + if (!$findFlag) { + $unInstallBlocks[] =& $block; + unset($block); + } + } + + foreach ($installBlocks as $block) { + Legacy_ModuleUtils::installBlock($this->mModule, $block, $this->mLog); + } + + /* + foreach ($unInstallBlocks as $block) { + Legacy_ModuleUtils::unInstallBlock($block); + } + */ + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Fri Dec 16 18:56:39 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 16 Dec 2005 18:56:39 +0900 Subject: [xoops-cvslog 1293] CVS update: xoops2jp/html/modules/base/admin/class Message-ID: <20051216095639.A8F5A2AC010@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.1 --- /dev/null Fri Dec 16 18:56:39 2005 +++ xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php Fri Dec 16 18:56:39 2005 @@ -0,0 +1,294 @@ +mMessages[]=array('type'=>'report','message'=>$msg); + } + + function addReport($msg) + { + $this->add($msg); + } + + function addWarning($msg) + { + $this->mMessages[]=array('type'=>'warning','message'=>$msg); + } + + function addError($msg) + { + $this->mMessages[]=array('type'=>'error','message'=>$msg); + $this->mFetalErrorFlag=true; + } + + function hasError() + { + return $this->mFetalErrorFlag; + } +} + +class Legacy_ModuleUtils +{ + /** + */ + function installTable(&$module, &$log) + { + $sqlfileInfo =& $module->getInfo('sqlfile'); + $sqlfile = XOOPS_MODULE_PATH . "/" . $module->getVar('dirname') . "/" . $sqlfileInfo[XOOPS_DB_TYPE]; + if (!file_exists($sqlfile)) { + $log->addError("SQL file not found at $sqlfile"); + return false; + } + + $sqlQuery = trim(implode("", file($sqlfile))); + + require_once XOOPS_ROOT_PATH . "/class/database/sqlutility.php"; + SqlUtility::splitMySqlFile($pieces, $sqlQuery); + + $root =& XCube_Root::getSingleton(); + $db =& $root->mController->getDB(); + + // + // TODO The following variable exists for rollback, but it is not implemented. + // + $createdTables=array(); + + foreach ($pieces as $piece) { + $prefixedQuery =SqlUtility::prefixQuery($piece, $db->prefix()); + if($prefixedQuery==false) { + $log->addError("${piece} is not a valid SQL"); + return; + } + + if (!$db->query($prefixedQuery[0])) { + $log->addError($db->error()); + return; + } + + // TODO I don't use reserve table in this time. + if (!in_array($prefixedQuery[4], $createdTables)) { + $createdTables[] = $prefixedQuery[4]; + } + else { + $log->addReport("Data inserted to table ".$db->prefix($prefixedQuery[4])); + } + } + } + + /** + * 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->addError(@sprintf(_MD_A_BASE_ERROR_INSERT_TEMPLATE,$fileName)); + return false; + } + else { + $log->addReport(@sprintf("Template '${fileName}' has been installed.")); + } + + 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; + + $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('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',$block['template']); + $blockObj->setVar('last_modified',time()); + + return $blockObj; + } + + /** + * This function can receive both new and update. + * @param $module XoopsModule + * @param $block XoopsBlock + * @return bool + */ + function installBlock(&$module, &$block, &$log) + { + $isNew = $block->isNew(); + + $blockHandler=&xoops_gethandler('block'); + $blockObj=&$blockHandler->create(); + + if(!$blockHandler->insert($block)) { + $log->addError("ERROR : Could not install block whose name is ".$blockObj->getVar('name')); + } + else { + $log->addReport("block ".$block->getVar('name')." has been installed"); + + $tplHandler=&xoops_gethandler('tplfile'); + + if(!Legacy_ModuleUtils::installBlockTemplate($module, $block)) { + $log->addError("ERROR : Could not install block template ".$block->getVar('name')); + } + + // + // Process of a permission. + // + if ($isNew) { + $gpermHandler=&xoops_gethandler('groupperm'); + $bperm=&$gpermHandler->create(); + $bperm->setVar('gperm_groupid',XOOPS_GROUP_ADMIN); + $bperm->setVar('gperm_itemid',$block->getVar('bid')); + $bperm->setVar('gperm_name','block_read'); + $bperm->setVar('gperm_modid',1); + if(!$gpermHandler->insert($bperm)) { + $log->addWarn("Could not set block permission ".$tplfile->getVar('bid')); + } + } + } + + return true; + } + + function unInstallBlock(&$module, &$block) + { + // $blockHandler=&xoops_gethandler('block'); + // $blockHandler->delete($block); + } + + /** + * @return bool + */ + function installBlockTemplate(&$module, &$block) + { + $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 =& $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); + } + else { + $tplfile =& $tplfiles[0]; + } + + $tplSource = Legacy_ModuleUtils::readTemplateFile($module->getVar('dirname'), $block->getVar('template'), true); + $tplfile->setVar('tpl_source', $tplSource); + $tplfile->setVar('tpl_lastmodified',time()); + + $result = $tplHandler->insert($tplfile); + + // + // TODO We must install to tpl_source table. + // + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Fri Dec 16 18:59:46 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 16 Dec 2005 18:59:46 +0900 Subject: [xoops-cvslog 1294] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20051216095946.B6C7D2AC010@users.sourceforge.jp> Index: xoops2jp/html/modules/base/language/japanese/modinfo.php diff -u xoops2jp/html/modules/base/language/japanese/modinfo.php:1.1.2.3 xoops2jp/html/modules/base/language/japanese/modinfo.php:1.1.2.4 --- xoops2jp/html/modules/base/language/japanese/modinfo.php:1.1.2.3 Sat Dec 10 18:25:49 2005 +++ xoops2jp/html/modules/base/language/japanese/modinfo.php Fri Dec 16 18:59:46 2005 @@ -4,6 +4,7 @@ define("_MI_BASE_NAME_DESC","XOOPS Cube にXOOPS 2.0.x シリーズの互換性を与えます"); define("_MI_BASE_MENU_ACTIONSEARCH","コマンド検索"); -define("_MI_BASE_MENU_MODULELIST","モジュールリスト"); +define("_MI_BASE_MENU_MODULEINSTALL","モジュールのインストール"); +define("_MI_BASE_MENU_MODULELIST","モジュールの管理"); ?> \ No newline at end of file Index: xoops2jp/html/modules/base/language/japanese/admin.php diff -u xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.5 xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.6 --- xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.5 Wed Dec 14 14:35:14 2005 +++ xoops2jp/html/modules/base/language/japanese/admin.php Fri Dec 16 18:59:46 2005 @@ -64,6 +64,7 @@ define('_MD_A_BASE_LANG_TEMPLATE_HAS_MAIN', "TEMPLATE_HAS_MAIN"); define('_MD_A_BASE_LANG_TEMPLATE_INFO', "テンプレート情報"); define('_MD_A_BASE_LANG_TEMPLATE_KEY', "TEMPLATE_KEY"); +define('_MD_A_BASE_LANG_UNINSTALL', "アンインストール"); define('_MD_A_BASE_LANG_UPDATE', "アップデート"); define('_MD_A_BASE_LANG_VERSION', "バージョン"); define('_MD_A_BASE_LANG_WEIGHT', "表示優先度"); From minahito @ users.sourceforge.jp Fri Dec 16 18:59:46 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 16 Dec 2005 18:59:46 +0900 Subject: [xoops-cvslog 1295] CVS update: xoops2jp/html/modules/base/language/english Message-ID: <20051216095946.DA3D52AC060@users.sourceforge.jp> Index: xoops2jp/html/modules/base/language/english/modinfo.php diff -u xoops2jp/html/modules/base/language/english/modinfo.php:1.1.2.2 xoops2jp/html/modules/base/language/english/modinfo.php:1.1.2.3 --- xoops2jp/html/modules/base/language/english/modinfo.php:1.1.2.2 Mon Nov 14 18:07:31 2005 +++ xoops2jp/html/modules/base/language/english/modinfo.php Fri Dec 16 18:59:46 2005 @@ -6,4 +6,8 @@ define("_MI_PROFILE_BASE_CONTROLLER","This system attaches great importance to the compatibility with XOOPS 2.0.x.
Pre-road mechanism of this module is very flexible, but it is low speed.
"); define("_MI_PROFILE_BASE_LEGACY_RENDER_SYSTEM","This system depends on Smarty engine for rendering and cache.
This system can use themes of Xoops2.0.x rightly."); +define("_MI_BASE_MENU_ACTIONSEARCH","Action search"); +define("_MI_BASE_MENU_MODULEINSTALL","Module Install"); +define("_MI_BASE_MENU_MODULELIST","Module list"); + ?> \ No newline at end of file Index: xoops2jp/html/modules/base/language/english/admin.php diff -u xoops2jp/html/modules/base/language/english/admin.php:1.1.2.2 xoops2jp/html/modules/base/language/english/admin.php:1.1.2.3 --- xoops2jp/html/modules/base/language/english/admin.php:1.1.2.2 Wed Dec 14 14:35:08 2005 +++ xoops2jp/html/modules/base/language/english/admin.php Fri Dec 16 18:59:46 2005 @@ -64,6 +64,7 @@ define('_MD_A_BASE_LANG_TEMPLATE_HAS_MAIN', "TEMPLATE_HAS_MAIN"); define('_MD_A_BASE_LANG_TEMPLATE_INFO', "TEMPLATE_INFO"); define('_MD_A_BASE_LANG_TEMPLATE_KEY', "TEMPLATE_KEY"); +define('_MD_A_BASE_LANG_UNINSTALL', "Uninstall"); define('_MD_A_BASE_LANG_UPDATE', "Update"); define('_MD_A_BASE_LANG_VERSION', "Version"); define('_MD_A_BASE_LANG_WEIGHT', "Weight"); From minahito @ users.sourceforge.jp Fri Dec 16 19:01:58 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 16 Dec 2005 19:01:58 +0900 Subject: [xoops-cvslog 1296] CVS update: xoops2jp/html/modules/base/class Message-ID: <20051216100158.0FA592AC060@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/Legacy_AdminRenderSystem.class.php diff -u xoops2jp/html/modules/base/class/Legacy_AdminRenderSystem.class.php:1.1.2.7 xoops2jp/html/modules/base/class/Legacy_AdminRenderSystem.class.php:1.1.2.8 --- xoops2jp/html/modules/base/class/Legacy_AdminRenderSystem.class.php:1.1.2.7 Wed Dec 14 17:34:40 2005 +++ xoops2jp/html/modules/base/class/Legacy_AdminRenderSystem.class.php Fri Dec 16 19:01:57 2005 @@ -1,116 +1,148 @@ -mSmarty=new Smarty(); - $this->mSmarty->compile_dir=XOOPS_COMPILE_PATH; - $this->mSmarty->left_delimiter="<{"; - $this->mSmarty->right_delimiter="}>"; - - $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)); - - $this->mSmarty->register_modifier("theme","Legacy_modifier_theme"); - } - - function renderBlock(&$target) - { - $this->mSmarty->template_dir=XOOPS_ROOT_PATH."/modules/base/admin/templates/blocks"; - - foreach($target->getAttributes() as $key=>$value) { - $this->mSmarty->assign($key,$value); - } - - $result=&$this->mSmarty->fetch($target->getTemplateName()); - $target->setResult($result); - - // - // Reset - // - foreach($target->getAttributes() as $key=>$value) { - $this->mSmarty->clear_assign($key); - } - } - - function renderTheme(&$target) - { - $this->mController->mDebugger->displayLog(); - - // - // Assign from attributes of the render-target. - // - foreach($target->getAttributes() as $key=>$value) { - $this->mSmarty->assign($key,$value); - } - - $this->mSmarty->assign("currentModule",$this->mController->mModuleController->mModuleObject); - - // - // Theme rendering - // - foreach($this->mBlockContents[0] as $result) { - $this->mSmarty->append('xoops_lblocks',$result); - } - - $this->mSmarty->template_dir=XOOPS_ROOT_PATH."/themes/admin/"; - $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()) { - $this->mSmarty->template_dir=$this->mController->mModuleController->getModuleDir() . "/". LEGACY_ADMIN_RENDER_TEMPLATE_DIRNAME; - $result=$this->mSmarty->fetch("file:".$this->mTemplateName); - } - else { - $result=$target->getAttribute("stdout_buffer"); - } - - $target->setResult($result); - } -} - -/** - * Return URL string by "overriding" rule - * (Now, test implement) - */ -function Legacy_modifier_theme($string) -{ - // TEST - // I will modify this function to oveeride system. - return XOOPS_THEME_URL."/admin/".$string; -} - +compile_dir = XOOPS_COMPILE_PATH; + $this->left_delimiter = "<{"; + $this->right_delimiter = "}>"; + + $this->register_modifier("theme", "Legacy_modifier_theme"); + } + + 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); + } +} + +/** + * [TODO] + * We depends on Legacy_RenderSystem that a add-in module defines. We must stop + * this situation. + */ +class Legacy_AdminRenderSystem extends Legacy_RenderSystem +{ + var $mSmarty; + + function prepare() + { + $this->mSmarty=new Legacy_AdminSmarty(); + + $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)); + + } + + function renderBlock(&$target) + { + $this->mSmarty->template_dir=XOOPS_ROOT_PATH."/modules/base/admin/templates/blocks"; + + foreach($target->getAttributes() as $key=>$value) { + $this->mSmarty->assign($key,$value); + } + + $this->mSmarty->setModulePrefix("base"); + $result=&$this->mSmarty->fetch($target->getTemplateName()); + $target->setResult($result); + + // + // Reset + // + foreach($target->getAttributes() as $key=>$value) { + $this->mSmarty->clear_assign($key); + } + } + + function renderTheme(&$target) + { + $this->mController->mDebugger->displayLog(); + + // + // Assign from attributes of the render-target. + // + foreach($target->getAttributes() as $key=>$value) { + $this->mSmarty->assign($key,$value); + } + + $this->mSmarty->assign("currentModule",$this->mController->mModuleController->mModuleObject); + + // + // Theme rendering + // + foreach($this->mBlockContents[0] as $result) { + $this->mSmarty->append('xoops_lblocks',$result); + } + + $this->mSmarty->template_dir=XOOPS_ROOT_PATH."/themes/admin/"; + $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()) { + $this->mSmarty->template_dir=$this->mController->mModuleController->getModuleDir() . "/". LEGACY_ADMIN_RENDER_TEMPLATE_DIRNAME; + $this->mSmarty->setModulePrefix($this->mController->mModuleController->getModuleDir()); + $result=$this->mSmarty->fetch("file:".$this->mTemplateName); + } + else { + $result=$target->getAttribute("stdout_buffer"); + } + + $target->setResult($result); + } +} + +/** + * 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) +{ + // TEST + // I will modify this function to oveeride system. + return XOOPS_THEME_URL."/admin/".$string; +} + ?> \ No newline at end of file From minahito @ users.sourceforge.jp Mon Dec 19 22:57:55 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 19 Dec 2005 22:57:55 +0900 Subject: [xoops-cvslog 1297] CVS update: xoops2jp/html/modules/base/admin Message-ID: <20051219135755.4DAF72AC01F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/menu.php diff -u xoops2jp/html/modules/base/admin/menu.php:1.1.2.2 xoops2jp/html/modules/base/admin/menu.php:1.1.2.3 --- xoops2jp/html/modules/base/admin/menu.php:1.1.2.2 Sat Dec 10 18:24:37 2005 +++ xoops2jp/html/modules/base/admin/menu.php Mon Dec 19 22:57:55 2005 @@ -1,6 +1,6 @@ \ No newline at end of file From minahito @ users.sourceforge.jp Mon Dec 19 22:58:54 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 19 Dec 2005 22:58:54 +0900 Subject: [xoops-cvslog 1298] CVS update: xoops2jp/html/modules/base/admin/class Message-ID: <20051219135854.55E1C2AC01F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php diff -u xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php:1.1.2.1 Fri Dec 16 18:52:04 2005 +++ xoops2jp/html/modules/base/admin/class/AbstractModuleInstaller.class.php Mon Dec 19 22:58:54 2005 @@ -77,7 +77,10 @@ $moduleHandler =& xoops_gethandler('module'); if (!$moduleHandler->insert($this->mModule)) { $this->mLog->addError("*Could not install module information*"); + return false; } + + return true; } /** From minahito @ users.sourceforge.jp Mon Dec 19 22:59:42 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 19 Dec 2005 22:59:42 +0900 Subject: [xoops-cvslog 1299] CVS update: xoops2jp/html/modules/base/admin/class Message-ID: <20051219135942.34E5F2AC01F@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.1 xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php:1.1.2.1 Fri Dec 16 18:56:11 2005 +++ xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php Mon Dec 19 22:59:42 2005 @@ -2,6 +2,10 @@ require_once XOOPS_BASE_PATH."/admin/class/AbstractModuleInstaller.class.php"; +/** + * This class extends a base class for the process of install module. This is added + * some private functions. + */ class Legacy_ModuleInstaller extends Legacy_AbstractModuleInstaller { /** @@ -26,6 +30,51 @@ return $module; } + + function _installModule() + { + if (parent::_installModule()) { + $gpermHandler =& xoops_gethandler('groupperm'); + + // + // Add a permission which administrators can manage. + // + $adminPerm =& $this->_createPermission(); + $adminPerm->setVar('gperm_name', 'module_admin'); + + if (!$gpermHandler->insert($adminPerm)) { + $log->addWarn("Could not set admin permission " . $tplfile->getVar('bid')); + } + + // + // Add a permission which administrators can read. + // + $readPerm =& $this->_createPermission(); + $readPerm->setVar('gperm_name', 'module_read'); + + if (!$gpermHandler->insert($adminPerm)) { + $log->addWarn("Could not set read permission " . $tplfile->getVar('bid')); + } + } + } + + /** + * Create a permission object which has been initialized for admin. + * For flexibility, creation only and not save it. + * @access private + */ + function &_createPermission() + { + $gpermHandler =& xoops_gethandler('groupperm'); + + $perm =& $gpermHandler->create(); + + $perm->setVar('gperm_groupid', XOOPS_GROUP_ADMIN); + $perm->setVar('gperm_itemid', $this->mModule->getVar('mid')); + $perm->setVar('gperm_modid', 1); + + return $perm; + } function _installTable() { From minahito @ users.sourceforge.jp Mon Dec 19 23:00:16 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 19 Dec 2005 23:00:16 +0900 Subject: [xoops-cvslog 1300] CVS update: xoops2jp/html/modules/base/admin/class Message-ID: <20051219140016.97A622AC01F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/class/ModuleUninstaller.class.php diff -u xoops2jp/html/modules/base/admin/class/ModuleUninstaller.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/class/ModuleUninstaller.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/class/ModuleUninstaller.class.php:1.1.2.1 Fri Dec 16 18:56:11 2005 +++ xoops2jp/html/modules/base/admin/class/ModuleUninstaller.class.php Mon Dec 19 23:00:16 2005 @@ -53,7 +53,10 @@ // TODO Do we need to check reserved core tables? $sql = "DROP TABLE " . $db->prefix($table); - if (!$db->query($sql)) { + if ($db->query($sql)) { + $this->mLog->addReport("Drop table " . $db->prefix($table)); + } + else { $this->mLog->addError("Could not drop table " . $db->prefix($table)); } } @@ -68,7 +71,7 @@ $tplHandler =& xoops_gethandler('tplfile'); $deleteTemplates =& $tplHandler->find(null, 'module', $this->mModule->getVar('mid')); - + foreach($deleteTemplates as $template) { $tplHandler->delete($template); } From minahito @ users.sourceforge.jp Mon Dec 19 23:01:17 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 19 Dec 2005 23:01:17 +0900 Subject: [xoops-cvslog 1301] CVS update: xoops2jp/html/modules/base/admin/class Message-ID: <20051219140117.066612AC01F@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.1 xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.1 Fri Dec 16 18:56:39 2005 +++ xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php Mon Dec 19 23:01:16 2005 @@ -211,38 +211,41 @@ { $isNew = $block->isNew(); - $blockHandler=&xoops_gethandler('block'); - $blockObj=&$blockHandler->create(); + $blockHandler =& xoops_gethandler('block'); + $blockObj =& $blockHandler->create(); - if(!$blockHandler->insert($block)) { - $log->addError("ERROR : Could not install block whose name is ".$blockObj->getVar('name')); + if (!$blockHandler->insert($block)) { + $log->addError("ERROR : Could not install block whose name is " . $blockObj->getVar('name')); + + return false; } else { - $log->addReport("block ".$block->getVar('name')." has been installed"); + $log->addReport("block " . $block->getVar('name') . " has been installed"); - $tplHandler=&xoops_gethandler('tplfile'); + $tplHandler =& xoops_gethandler('tplfile'); - if(!Legacy_ModuleUtils::installBlockTemplate($module, $block)) { - $log->addError("ERROR : Could not install block template ".$block->getVar('name')); + if (!Legacy_ModuleUtils::installBlockTemplate($module, $block)) { + $log->addError("Could not install block template " . $block->getVar('name')); } // // Process of a permission. // if ($isNew) { - $gpermHandler=&xoops_gethandler('groupperm'); - $bperm=&$gpermHandler->create(); - $bperm->setVar('gperm_groupid',XOOPS_GROUP_ADMIN); - $bperm->setVar('gperm_itemid',$block->getVar('bid')); - $bperm->setVar('gperm_name','block_read'); - $bperm->setVar('gperm_modid',1); - if(!$gpermHandler->insert($bperm)) { - $log->addWarn("Could not set block permission ".$tplfile->getVar('bid')); + $gpermHandler =& xoops_gethandler('groupperm'); + $bperm =& $gpermHandler->create(); + $bperm->setVar('gperm_groupid', XOOPS_GROUP_ADMIN); + $bperm->setVar('gperm_itemid', $block->getVar('bid')); + $bperm->setVar('gperm_name', 'block_read'); + $bperm->setVar('gperm_modid', 1); + if (!$gpermHandler->insert($bperm)) { + $log->addWarn("Could not set block permission " . $tplfile->getVar('bid')); } } + + return true; } - return true; } function unInstallBlock(&$module, &$block) @@ -252,6 +255,8 @@ } /** + * Save the information of block's template specified and the source code of it + * to database. * @return bool */ function installBlockTemplate(&$module, &$block) @@ -283,11 +288,7 @@ $tplfile->setVar('tpl_source', $tplSource); $tplfile->setVar('tpl_lastmodified',time()); - $result = $tplHandler->insert($tplfile); - - // - // TODO We must install to tpl_source table. - // + return $tplHandler->insert($tplfile); } } From minahito @ users.sourceforge.jp Mon Dec 19 23:02:01 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 19 Dec 2005 23:02:01 +0900 Subject: [xoops-cvslog 1302] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051219140201.709A42AC01F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/legacy_admin_actionsearch_form.html diff -u xoops2jp/html/modules/base/admin/templates/legacy_admin_actionsearch_form.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/legacy_admin_actionsearch_form.html:1.1.2.2 --- xoops2jp/html/modules/base/admin/templates/legacy_admin_actionsearch_form.html:1.1.2.1 Wed Nov 16 19:10:02 2005 +++ xoops2jp/html/modules/base/admin/templates/legacy_admin_actionsearch_form.html Mon Dec 19 23:02:01 2005 @@ -1,3 +1,6 @@ +

» <{$smarty.const._MD_A_BASE_LANG_ACTIONSEARCH}>

+ +

<{$smarty.const._MB_A_BASE_LANG_ACTIONSEARCH_INFO}>

value="<{$actionForm->getVar('keywords')|escape}>"<{/if}> /> From minahito @ users.sourceforge.jp Mon Dec 19 23:02:36 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 19 Dec 2005 23:02:36 +0900 Subject: [xoops-cvslog 1303] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051219140236.604C52AC01F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/legacy_admin_actionsearch_success.html diff -u xoops2jp/html/modules/base/admin/templates/legacy_admin_actionsearch_success.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/legacy_admin_actionsearch_success.html:1.1.2.2 --- xoops2jp/html/modules/base/admin/templates/legacy_admin_actionsearch_success.html:1.1.2.1 Wed Nov 16 19:10:02 2005 +++ xoops2jp/html/modules/base/admin/templates/legacy_admin_actionsearch_success.html Mon Dec 19 23:02:36 2005 @@ -1,10 +1,11 @@ <{include file="legacy_admin_actionsearch_form.html"}> -

<{$smarty.const._MD_A_BASE_LANG_ACTIONSEARCH}>

- + +

» <{$smarty.const._MB_A_BASE_LANG_RESULT}>

+ + - - - +
  • [ <{$record->mModuleName}> ] - <{$record->mTitle}> + <{if $record->mDescription}>
    ( <{$record->mDescription}> )<{/if}> +
  • <{/foreach}> -
    <{$record->mModuleName}>"><{$record->mTitle}>
    + From minahito @ users.sourceforge.jp Mon Dec 19 23:02:51 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 19 Dec 2005 23:02:51 +0900 Subject: [xoops-cvslog 1304] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051219140251.1C21D2AC027@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/legacy_admin_inst_moduleinfo.html diff -u xoops2jp/html/modules/base/admin/templates/legacy_admin_inst_moduleinfo.html:1.1.2.2 xoops2jp/html/modules/base/admin/templates/legacy_admin_inst_moduleinfo.html:1.1.2.3 --- xoops2jp/html/modules/base/admin/templates/legacy_admin_inst_moduleinfo.html:1.1.2.2 Wed Dec 14 14:35:51 2005 +++ xoops2jp/html/modules/base/admin/templates/legacy_admin_inst_moduleinfo.html Mon Dec 19 23:02:50 2005 @@ -1,48 +1,50 @@ -

    » <{$smarty.const._MD_A_BASE_LANG_INFORMATION}> » <{$module->getVar('name')}>

    +

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}> » <{$smarty.const._MD_A_BASE_LANG_INFORMATION}>

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

    <{$smarty.const._MD_A_BASE_LANG_MOD_BASIC_INFO}>

    - + - + - + - + + + + + - +
    -
    <{$module->modinfo.name}>
    +
    <{$module->modinfo.name|escape}>
    <{$smarty.const._MD_A_BASE_LANG_NAME}><{$module->getVar('name')}><{$module->getVar('name',e)}>
    <{$smarty.const._MD_A_BASE_LANG_MOD_DIR_NAME}><{$module->getVar('dirname')}><{$module->getVar('dirname',e)}>
    <{$smarty.const._MD_A_BASE_LANG_VERSION}><{$module->getVar('version')}><{math equation="v/100" v=$module->getVar('version') format="%.2f"}>
    <{$smarty.const._MD_A_BASE_LANG_MID}><{$module->getVar('mid')}>
    <{$smarty.const._MD_A_BASE_LANG_MOD_DESC}><{$module->modinfo.description}><{$module->modinfo.description|escape}>
    -
    +
    +

    <{$smarty.const._MD_A_BASE_LANG_MOD_LICENSE_INFO}>

    - - - - + - + - +
    <{$smarty.const._MD_A_BASE_LANG_MOD_LICENSE_INFO}>
    <{$smarty.const._MD_A_BASE_LANG_MODULE_LICENSE}><{$module->modinfo.license}><{$module->modinfo.license|escape}>
    <{$smarty.const._MD_A_BASE_LANG_MOD_AUTHOR}><{$module->modinfo.author}><{$module->modinfo.author|escape}>
    <{$smarty.const._MD_A_BASE_LANG_MOD_CREDITS}><{$module->modinfo.credits}><{$module->modinfo.credits|escape}>
    - -
    <{$smarty.const._MD_A_BASE_LANG_SQL_INFO}>
    +
    +

    <{$smarty.const._MD_A_BASE_LANG_SQL_INFO}>

    <{if $module->modinfo.tables}> @@ -77,18 +79,88 @@
    <{$smarty.const._MD_A_BASE_LANG_NO_SQL}>
    <{/if}> +
    +

    <{$smarty.const._MD_A_BASE_LANG_MAINMENU_INFO}>

    +<{if $module->getVar('hasmain')}> -
    <{$smarty.const._MD_A_BASE_LANG_TEMPLATE_INFO}>
    +
    + + + + +
    <{$smarty.const._MD_A_BASE_LANG_MAINMENU_HAS_MAIN}><{$smarty.const._MD_A_BASE_LANG_ACTIVE}>
    +
    + + + + + + <{foreach from=$module->modinfo.sub item=sub }> + "> + + + + <{foreachelse}> + + + + <{/foreach}> +
    <{$smarty.const._MD_A_BASE_LANG_SUBMENU_NAME}><{$smarty.const._MD_A_BASE_LANG_SUBMENU_URL}>
    <{$sub.name}><{$sub.url}>
    <{$smarty.const._MD_A_BASE_LANG_NO_SUBMENU}>
    + +<{else}> +
    <{$smarty.const._MD_A_BASE_LANG_NO_MAINMENU}>
    +<{/if}> +
    +

    <{$smarty.const._MD_A_BASE_LANG_ADMIN_MENU}>

    +<{if $module->getVar('hasadmin')}> + + + + + + + + + + + + + +
    <{$smarty.const._MD_A_BASE_LANG_ADMINMENU_HAS_MAIN}><{$smarty.const._MD_A_BASE_LANG_ACTIVE}>
    <{$smarty.const._MD_A_BASE_LANG_ADMINMENU_INDEX}><{$module->modinfo.adminindex}>
    <{$smarty.const._MD_A_BASE_LANG_ADMINMENU_MENU}><{$module->modinfo.adminmenu}>
    +<{if $module->adminmenu }> +
    + + + + + + + <{foreach from=$module->adminmenu item=admin key=admin_key}> + + + + + + <{/foreach}> +
    <{$smarty.const._MD_A_BASE_LANG_TEMPLATE_KEY}><{$smarty.const._MD_A_BASE_LANG_ADMINMENU_NAME}><{$smarty.const._MD_A_BASE_LANG_ADMINMENU_URL}>
    <{$admin_key}>"><{$admin.title}>"><{$admin.link}>
    +<{/if}> +<{else}> +
    <{$smarty.const._MD_A_BASE_LANG_NO_ADMINMENU}>
    +<{/if}> + + +
    +

    <{$smarty.const._MD_A_BASE_LANG_TEMPLATE_INFO}>

    <{if $module->modinfo.templates }> - + - +
    <{$smarty.const._MD_A_BASE_LANG_TEMPLATE_HAS_MAIN}>使用<{$smarty.const._MD_A_BASE_LANG_ACTIVE}>
    <{$smarty.const._MD_A_BASE_LANG_TEMPLATE_ENGINE}>Smarty<{$smarty.const._MD_A_BASE_LANG_SMARTY}>

    @@ -110,8 +182,8 @@
    <{$smarty.const._MD_A_BASE_LANG_NO_TEMPLATE}>
    <{/if}> - -
    <{$smarty.const._MD_A_BASE_LANG_BLOCKS_INFO}>
    +
    +

    <{$smarty.const._MD_A_BASE_LANG_BLOCKS_INFO}>

    <{foreach from=$module->modinfo.blocks item=block key=block_num }> @@ -135,23 +207,29 @@
    <{$smarty.const._MD_A_BASE_LANG_NO_BLOCK}>
    <{/foreach}> +
    +

    <{$smarty.const._MD_A_BASE_LANG_CONFIG_INFO}>

    -
    <{$smarty.const._MD_A_BASE_LANG_CONFIG_INFO}>
    - -<{foreach from=$module->modinfo.config item=config }> +<{foreach from=$module->modinfo.config item=config key=conf_num }>
    - + <{foreach from=$config key=config_key item=config_val name=config }> - <{if $config_key == "name" }> - - <{else}> - - <{/if}> + <{/foreach}>
    <{$smarty.const._MD_A_BASE_LANG_CONFIG_KEY}><{$smarty.const._MD_A_BASE_LANG_CONFIG_KEY}> (<{$conf_num}>) <{$smarty.const._MD_A_BASE_LANG_CONFIG_VAL}>
    <{$config_key}>"><{$config_val}>"><{$config_val}>"> + <{if $config_key == "name" }> + <{$config_val}> + <{elseif $config_key == options }> + <{foreach from=$config_val item=opt key=opt_key }> + <{$opt_key}> » <{$opt}>
    + <{/foreach}> + <{else}> + <{$config_val}> + <{/if}> +
    @@ -160,19 +238,26 @@
    <{$smarty.const._MD_A_BASE_LANG_NO_CONFIG}>
    <{/foreach}> -
    <{$smarty.const._MD_A_BASE_LANG_MAINMENU_INFO}>
    -<{if $module->getVar('hasmain')}> - -<{else}> -
    <{$smarty.const._MD_A_BASE_LANG_NO_MAINMENU}>
    -<{/if}> - -
    <{$smarty.const._MD_A_BASE_LANG_FEATURE_SVC_INFO}>
    +
    +

    <{$smarty.const._MD_A_BASE_LANG_FEATURE_SVC_INFO}>

    + <{if $module->getVar('hassearch')}> + + + + <{/if}> - <{if $module->getVar('hascomments')}> + + + + <{/if}> <{if $module->getVar('hasnotification')}> + + + + <{/if}> +
    <{$smarty.const._MD_A_BASE_LANG_SEARCH_SVC}><{$smarty.const._MD_A_BASE_LANG_ACTIVE}>
    <{$smarty.const._MD_A_BASE_LANG_COMMENT_SVC}><{$smarty.const._MD_A_BASE_LANG_ACTIVE}>
    <{$smarty.const._MD_A_BASE_LANG_NOTIF_SVC}><{$smarty.const._MD_A_BASE_LANG_ACTIVE}>
    From minahito @ users.sourceforge.jp Mon Dec 19 23:03:16 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 19 Dec 2005 23:03:16 +0900 Subject: [xoops-cvslog 1305] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051219140316.0DE362AC027@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_confirm.html diff -u xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_confirm.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_confirm.html:1.1.2.2 --- xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_confirm.html:1.1.2.1 Thu Dec 1 14:20:17 2005 +++ xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_confirm.html Mon Dec 19 23:03:15 2005 @@ -1,39 +1,56 @@ +

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}> » <{$smarty.const._MI_BASE_MENU_MODUPDATE_CONF}>

    + - -<{foreach item=mid from=$mids}> - - - +
    + + + + + + +<{foreach item=mid from=$mids}> + - + + + <{/foreach}> + + +
    <{$smarty.const._MD_A_BASE_LANG_MID}><{$smarty.const._MD_A_BASE_LANG_NAME}><{$smarty.const._MD_A_BASE_LANG_WEIGHT}><{$smarty.const._MD_A_BASE_LANG_ISACTIVE}>
    <{$mid}> - <{if $actionForm->getVar('name',$mid)==$moduleObjects[$mid]->getProperty('name')}> + <{if $actionForm->getVar('name',$mid) == $moduleObjects[$mid]->getProperty('name')}> <{$actionForm->getVar('name',$mid)|escape}> <{else}> - <{$actionForm->getVar('name',$mid)|escape}> (<{$moduleObjects[$mid]->getVar('name')}>) + (<{$moduleObjects[$mid]->getVar('name',e)}>) » <{$actionForm->getVar('name',$mid)|escape}> <{/if}> - <{if $actionForm->getVar('weight',$mid)==$moduleObjects[$mid]->getProperty('weight')}> + <{if $actionForm->getVar('weight',$mid) == $moduleObjects[$mid]->getProperty('weight')}> <{$actionForm->getVar('weight',$mid)|escape}> <{else}> - <{$actionForm->getVar('weight',$mid)|escape}> (<{$moduleObjects[$mid]->getVar('weight')}>) + (<{$moduleObjects[$mid]->getVar('weight')}>) » <{$actionForm->getVar('weight',$mid)|escape}> <{/if}> <{if $actionForm->getVar('isactive',$mid)==$moduleObjects[$mid]->getProperty('isactive')}> - <{$actionForm->getVar('isactive',$mid)|escape}> + <{$smarty.const._MI_BASE_MENU_NO_CHANGE}> + <{* <{$actionForm->getVar('isactive',$mid)|escape}> *}> <{else}> - <{$actionForm->getVar('isactive',$mid)|escape}> (<{$moduleObjects[$mid]->getVar('isactive')}>) + (<{if $moduleObjects[$mid]->getVar('isactive') == 1 }><{$smarty.const._MD_A_BASE_LANG_ISACTIVE}> + <{elseif $moduleObjects[$mid]->getVar('isactive') == 0 }><{$smarty.const._MD_A_BASE_LANG_DEACTIVATE}> + <{/if}>) + » + + <{if $actionForm->getVar('isactive',$mid) == 1}><{$smarty.const._MD_A_BASE_LANG_ISACTIVE}> + <{elseif $actionForm->getVar('isactive',$mid) == 0 }><{$smarty.const._MD_A_BASE_LANG_DEACTIVATE}><{/if}> <{/if}>

    + +
    - - -
    From minahito @ users.sourceforge.jp Mon Dec 19 23:03:25 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Mon, 19 Dec 2005 23:03:25 +0900 Subject: [xoops-cvslog 1306] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051219140325.65CC82AC027@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html diff -u xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html:1.1.2.4 xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html:1.1.2.5 --- xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html:1.1.2.4 Sat Dec 3 15:50:39 2005 +++ xoops2jp/html/modules/base/admin/templates/legacy_admin_modulelist_index.html Mon Dec 19 23:03:25 2005 @@ -1,62 +1,44 @@ -

    MODULE LIST

    +

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}>

    - - - - - - - - + + + + + + + <{foreach item=module from=$moduleObjects}> - - + - - + <{/foreach}> - - - + +
    - *MID*
    - ASC - DESC -
    - *GRAPHIC* - - *NAME*
    - ASC - DESC -
    - *VERSION*
    - ASC - DESC -
    - *LASTUPDATE*
    - ASC - DESC -
    - *WEIGHT*
    - ASC - DESC -
    - *ISACTIVE*
    - ASC - DESC -
    - *ACTION* - <{$smarty.const._MD_A_BASE_LANG_MID}>
    + " alt="ASC"> + " alt="DESC">
    <{$smarty.const._MD_A_BASE_LANG_NAME}>
    + " alt="ASC"> + " alt="DESC">
    <{$smarty.const._MD_A_BASE_LANG_VERSION}>
    + " alt="ASC"> + " alt="DESC">
    <{$smarty.const._MD_A_BASE_LANG_LASTUPDATE}>
    + " alt="ASC"> + " alt="DESC">
    <{$smarty.const._MD_A_BASE_LANG_WEIGHT}>
    + " alt="ASC"> + " alt="DESC">
    <{$smarty.const._MD_A_BASE_LANG_ISACTIVE}>
    + " alt="ASC"> + " alt="DESC">
    <{$smarty.const._MD_A_BASE_LANG_CONTROL}>
    <{$module->getVar('mid')}><{$module->getVar('name','e')}><{$module->getVar('name','e')}>
    <{$module->getRenderedVersion()}> <{$module->getVar('last_update')|xoops_formattimestamp:l}> getVar('isactive')}>checked<{/if}> />*UPDATE* - *INFORMATION* + getVar('isactive')}>value="1" checked <{else}>value="0"<{/if}> />" alt="<{$smarty.const._MD_A_BASE_LANG_UPDATE}>" /> + " alt="<{$smarty.const._MD_A_BASE_LANG_INFORMATION}>" />

    + +
    - -
    \ No newline at end of file + From minahito @ users.sourceforge.jp Wed Dec 21 12:52:19 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 21 Dec 2005 12:52:19 +0900 Subject: [xoops-cvslog 1307] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051221035219.57D032AC025@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/module_uninstall_success.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/module_uninstall_success.html:1.1.2.1 --- /dev/null Wed Dec 21 12:52:19 2005 +++ xoops2jp/html/modules/base/admin/templates/module_uninstall_success.html Wed Dec 21 12:52:19 2005 @@ -0,0 +1,14 @@ +

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}> » <{$smarty.const._MD_A_BASE_LANG_MODUNINSTALL_SUCCESS}>

    + +

    <{$smarty.const._MD_A_BASE_LANG_MODUNINSTALL_LOG}>

    + Index: xoops2jp/html/modules/base/admin/templates/module_installers_error.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/module_installers_error.html:1.1.2.1 --- /dev/null Wed Dec 21 12:52:19 2005 +++ xoops2jp/html/modules/base/admin/templates/module_installers_error.html Wed Dec 21 12:52:19 2005 @@ -0,0 +1,13 @@ +

    *module error*

    + + Index: xoops2jp/html/modules/base/admin/templates/module_information.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/module_information.html:1.1.2.1 --- /dev/null Wed Dec 21 12:52:19 2005 +++ xoops2jp/html/modules/base/admin/templates/module_information.html Wed Dec 21 12:52:19 2005 @@ -0,0 +1,263 @@ +

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}> » <{$smarty.const._MD_A_BASE_LANG_INFORMATION}>

    + +

    <{$smarty.const._MD_A_BASE_LANG_MOD_BASIC_INFO}>

    + + + + + + + + + + + + + + + + + + + + + + +
    +
    <{$module->modinfo.name|escape}>
    <{$smarty.const._MD_A_BASE_LANG_NAME}><{$module->getVar('name',e)}>
    <{$smarty.const._MD_A_BASE_LANG_MOD_DIR_NAME}><{$module->getVar('dirname',e)}>
    <{$smarty.const._MD_A_BASE_LANG_VERSION}><{math equation="v/100" v=$module->getVar('version') format="%.2f"}>
    <{$smarty.const._MD_A_BASE_LANG_MID}><{$module->getVar('mid')}>
    <{$smarty.const._MD_A_BASE_LANG_MOD_DESC}><{$module->modinfo.description|escape}>
    + +
    +

    <{$smarty.const._MD_A_BASE_LANG_MOD_LICENSE_INFO}>

    + + + + + + + + + + + + + +
    <{$smarty.const._MD_A_BASE_LANG_MODULE_LICENSE}><{$module->modinfo.license|escape}>
    <{$smarty.const._MD_A_BASE_LANG_MOD_AUTHOR}><{$module->modinfo.author|escape}>
    <{$smarty.const._MD_A_BASE_LANG_MOD_CREDITS}><{$module->modinfo.credits|escape}>
    + +
    +

    <{$smarty.const._MD_A_BASE_LANG_SQL_INFO}>

    +<{if $module->modinfo.tables}> + + + + + + + + + + + + + +
    <{$smarty.const._MD_A_BASE_LANG_SQL_HAS_MAIN}><{$smarty.const._MD_A_BASE_LANG_ACTIVE}>
    <{$smarty.const._MD_A_BASE_LANG_SQL_ENGINE}><{$smarty.const._MD_A_BASE_LANG_SQL_MYSQL}>
    <{$smarty.const._MD_A_BASE_LANG_SQL_FILE_NAME}><{$module->modinfo.sqlfile.mysql}>
    +
    + + + + + + +<{foreach from=$module->modinfo.tables item=table key=table_key}> + + + + + +<{/foreach}> +
    <{$smarty.const._MD_A_BASE_LANG_TABLE_NUM}><{$smarty.const._MD_A_BASE_LANG_TABLE_NAME}><{$smarty.const._MD_A_BASE_LANG_TABLE_PROPERTIES}>
    <{$table_key}><{$table}>xxxxxxxxxxxxx
    +<{else}> +
    <{$smarty.const._MD_A_BASE_LANG_NO_SQL}>
    +<{/if}> + +
    +

    <{$smarty.const._MD_A_BASE_LANG_MAINMENU_INFO}>

    +<{if $module->getVar('hasmain')}> + + + + + + +
    <{$smarty.const._MD_A_BASE_LANG_MAINMENU_HAS_MAIN}><{$smarty.const._MD_A_BASE_LANG_ACTIVE}>
    +
    + + + + + + <{foreach from=$module->modinfo.sub item=sub }> + "> + + + + <{foreachelse}> + + + + <{/foreach}> +
    <{$smarty.const._MD_A_BASE_LANG_SUBMENU_NAME}><{$smarty.const._MD_A_BASE_LANG_SUBMENU_URL}>
    <{$sub.name}><{$sub.url}>
    <{$smarty.const._MD_A_BASE_LANG_NO_SUBMENU}>
    + +<{else}> +
    <{$smarty.const._MD_A_BASE_LANG_NO_MAINMENU}>
    +<{/if}> + +
    +

    <{$smarty.const._MD_A_BASE_LANG_ADMIN_MENU}>

    +<{if $module->getVar('hasadmin')}> + + + + + + + + + + + + + +
    <{$smarty.const._MD_A_BASE_LANG_ADMINMENU_HAS_MAIN}><{$smarty.const._MD_A_BASE_LANG_ACTIVE}>
    <{$smarty.const._MD_A_BASE_LANG_ADMINMENU_INDEX}><{$module->modinfo.adminindex}>
    <{$smarty.const._MD_A_BASE_LANG_ADMINMENU_MENU}><{$module->modinfo.adminmenu}>
    +<{if $module->adminmenu }> +
    + + + + + + + <{foreach from=$module->adminmenu item=admin key=admin_key}> + + + + + + <{/foreach}> +
    <{$smarty.const._MD_A_BASE_LANG_TEMPLATE_KEY}><{$smarty.const._MD_A_BASE_LANG_ADMINMENU_NAME}><{$smarty.const._MD_A_BASE_LANG_ADMINMENU_URL}>
    <{$admin_key}>"><{$admin.title}>"><{$admin.link}>
    +<{/if}> +<{else}> +
    <{$smarty.const._MD_A_BASE_LANG_NO_ADMINMENU}>
    +<{/if}> + + +
    +

    <{$smarty.const._MD_A_BASE_LANG_TEMPLATE_INFO}>

    +<{if $module->modinfo.templates }> + + + + + + + + + +
    <{$smarty.const._MD_A_BASE_LANG_TEMPLATE_HAS_MAIN}><{$smarty.const._MD_A_BASE_LANG_ACTIVE}>
    <{$smarty.const._MD_A_BASE_LANG_TEMPLATE_ENGINE}><{$smarty.const._MD_A_BASE_LANG_SMARTY}>
    +
    + + + + + + +<{foreach from=$module->modinfo.templates item=template key=template_key}> + + + + + +<{/foreach}> +
    <{$smarty.const._MD_A_BASE_LANG_TEMPLATE_KEY}><{$smarty.const._MD_A_BASE_LANG_TEMPLATE_FILE}><{$smarty.const._MD_A_BASE_LANG_TEMPLATE_DESC}>
    <{$template_key}><{$template.file}><{$template.description}>
    +<{else}> +
    <{$smarty.const._MD_A_BASE_LANG_NO_TEMPLATE}>
    +<{/if}> + +
    +

    <{$smarty.const._MD_A_BASE_LANG_BLOCKS_INFO}>

    + +<{foreach from=$module->modinfo.blocks item=block key=block_num }> + + + + + + <{foreach from=$block key=block_key item=block_val name=block }> + + + <{if $block_key == "name" }> + + <{else}> + + <{/if}> + + <{/foreach}> +
    <{$smarty.const._MD_A_BASE_LANG_BLOCK_KEY}> (<{$block_num}>)<{$smarty.const._MD_A_BASE_LANG_BLOCK_VAL}>
    <{$block_key}><{$block_val}><{$block_val}>
    +
    +<{foreachelse}> +
    <{$smarty.const._MD_A_BASE_LANG_NO_BLOCK}>
    +<{/foreach}> + +
    +

    <{$smarty.const._MD_A_BASE_LANG_CONFIG_INFO}>

    + +<{foreach from=$module->modinfo.config item=config key=conf_num }> + + + + + + <{foreach from=$config key=config_key item=config_val name=config }> + + + + + <{/foreach}> +
    <{$smarty.const._MD_A_BASE_LANG_CONFIG_KEY}> (<{$conf_num}>)<{$smarty.const._MD_A_BASE_LANG_CONFIG_VAL}>
    <{$config_key}>"> + <{if $config_key == "name" }> + <{$config_val}> + <{elseif $config_key == options }> + <{foreach from=$config_val item=opt key=opt_key }> + <{$opt_key}> » <{$opt}>
    + <{/foreach}> + <{else}> + <{$config_val}> + <{/if}> +
    +
    +<{foreachelse}> +
    <{$smarty.const._MD_A_BASE_LANG_NO_CONFIG}>
    +<{/foreach}> + +
    +

    <{$smarty.const._MD_A_BASE_LANG_FEATURE_SVC_INFO}>

    + +<{if $module->getVar('hassearch')}> + + + + +<{/if}> +<{if $module->getVar('hascomments')}> + + + + +<{/if}> + +<{if $module->getVar('hasnotification')}> + + + + +<{/if}> +
    <{$smarty.const._MD_A_BASE_LANG_SEARCH_SVC}><{$smarty.const._MD_A_BASE_LANG_ACTIVE}>
    <{$smarty.const._MD_A_BASE_LANG_COMMENT_SVC}><{$smarty.const._MD_A_BASE_LANG_ACTIVE}>
    <{$smarty.const._MD_A_BASE_LANG_NOTIF_SVC}><{$smarty.const._MD_A_BASE_LANG_ACTIVE}>
    Index: xoops2jp/html/modules/base/admin/templates/module_uninstall_confirm.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/module_uninstall_confirm.html:1.1.2.1 --- /dev/null Wed Dec 21 12:52:19 2005 +++ xoops2jp/html/modules/base/admin/templates/module_uninstall_confirm.html Wed Dec 21 12:52:19 2005 @@ -0,0 +1,11 @@ +

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}> » <{$smarty.const._MD_A_BASE_LANG_MODUNINSTALL_CONF}>

    + + + +
    + + *Force mode:強制モード* + +
    Index: xoops2jp/html/modules/base/admin/templates/module_install_success.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/module_install_success.html:1.1.2.1 --- /dev/null Wed Dec 21 12:52:19 2005 +++ xoops2jp/html/modules/base/admin/templates/module_install_success.html Wed Dec 21 12:52:19 2005 @@ -0,0 +1,14 @@ +

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}> » <{$smarty.const._MD_A_BASE_LANG_MODINSTALL_SUCCESS}>

    + +

    <{$smarty.const._MD_A_BASE_LANG_MODINSTALL_LOG}>

    + Index: xoops2jp/html/modules/base/admin/templates/module_update_confirm.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/module_update_confirm.html:1.1.2.1 --- /dev/null Wed Dec 21 12:52:19 2005 +++ xoops2jp/html/modules/base/admin/templates/module_update_confirm.html Wed Dec 21 12:52:19 2005 @@ -0,0 +1,10 @@ +

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}> » <{$smarty.const._MD_A_BASE_LANG_MODUPDATE_CONF}>

    + + + +
    + + +
    Index: xoops2jp/html/modules/base/admin/templates/module_install_confirm.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/module_install_confirm.html:1.1.2.1 --- /dev/null Wed Dec 21 12:52:19 2005 +++ xoops2jp/html/modules/base/admin/templates/module_install_confirm.html Wed Dec 21 12:52:19 2005 @@ -0,0 +1,10 @@ +

    » <{$smarty.const._MI_BASE_MENU_MODULEINSTALL}> » <{$smarty.const._MD_A_BASE_LANG_MODINSTALL_CONF}>

    + + + +
    + + +
    Index: xoops2jp/html/modules/base/admin/templates/module_update_success.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/module_update_success.html:1.1.2.1 --- /dev/null Wed Dec 21 12:52:19 2005 +++ xoops2jp/html/modules/base/admin/templates/module_update_success.html Wed Dec 21 12:52:19 2005 @@ -0,0 +1,15 @@ +

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}> » <{$smarty.const._MD_A_BASE_LANG_MODUPDATE_SUCCESS}>

    + +

    <{$smarty.const._MD_A_BASE_LANG_MODUPDATE_LOG}>

    + + From minahito @ users.sourceforge.jp Wed Dec 21 13:06:52 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 21 Dec 2005 13:06:52 +0900 Subject: [xoops-cvslog 1308] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20051221040652.ED91D2AC04D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/AbstractModuleInstallAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/AbstractModuleInstallAction.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/actions/AbstractModuleInstallAction.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/actions/AbstractModuleInstallAction.class.php:1.1.2.1 Fri Dec 16 18:49:31 2005 +++ xoops2jp/html/modules/base/admin/actions/AbstractModuleInstallAction.class.php Wed Dec 21 13:06:52 2005 @@ -23,6 +23,7 @@ $this->mModuleObject =& $installer->loadModuleObject($dirname); if (!is_object($this->mModuleObject)) { + $this->mLogLog =& $installer->getLog(); return LEGACY_ADMIN_FRAME_VIEW_ERROR; } @@ -55,6 +56,12 @@ function &_getInstaller($dirname) { } + + function executeViewInput(&$controller,&$xoopsUser,&$renderer) + { + $renderer->setTemplateName("module_installers_error.html"); + $renderer->setAttribute('log', $this->mLog); + } } ?> \ No newline at end of file From minahito @ users.sourceforge.jp Wed Dec 21 13:08:12 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 21 Dec 2005 13:08:12 +0900 Subject: [xoops-cvslog 1309] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20051221040812.B7FA62AC04D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/LegacyModuleInfoAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/LegacyModuleInfoAction.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/actions/LegacyModuleInfoAction.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/actions/LegacyModuleInfoAction.class.php:1.1.2.1 Thu Dec 1 21:41:50 2005 +++ xoops2jp/html/modules/base/admin/actions/LegacyModuleInfoAction.class.php Wed Dec 21 13:08:12 2005 @@ -1,6 +1,6 @@ mModuleObject=&$moduleHandler->getByDirname($dirname); + $moduleHandler =& xoops_gethandler('module'); + $this->mModuleObject =& $moduleHandler->getByDirname($dirname); // // If a module is installed, load modinfo and go to special displaying. // - if(is_object($this->mModuleObject)) { + if (is_object($this->mModuleObject)) { $this->mModuleObject->loadAdminMenu(); $this->mModuleObject->loadInfo($dirname); - return LEGACY_ADMIN_FRAME_VIEW_SUCCESS; + $this->mInstalledFlag = true; + } + else { + $this->mModuleObject =& $moduleHandler->create(); + $this->mModuleObject->loadInfoAsVar($dirname); + $this->mInstalledFlag = false; } - $this->mModuleObject=&$moduleHandler->create(); - $this->mModuleObject->loadInfoAsVar($dirname); - - return LEGACY_ADMIN_FRAME_VIEW_INPUT; + return LEGACY_ADMIN_FRAME_VIEW_SUCCESS; } - function executeViewSuccess(&$controller,&$xoopsUser,&$renderer) - { - $renderer->setTemplateName("legacy_admin_inst_moduleinfo.html"); - $renderer->setAttribute('module',$this->mModuleObject); - } - - function executeViewInput(&$controller,&$xoopsUser,&$renderer) + function executeViewSuccess(&$controller, &$xoopsUser, &$renderer) { - $renderer->setTemplateName("legacy_admin_uninst_moduleinfo.html"); - $renderer->setAttribute('module',$this->mModuleObject); + $renderer->setTemplateName("module_information.html"); + $renderer->setAttribute('module', $this->mModuleObject); + $renderer->setAttribute('installed', $this->mInstalledFlag); } - function executeViewError(&$controller,&$xoopsUser,&$renderer) + function executeViewError(&$controller, &$xoopsUser, &$renderer) { - XCube_Utils::redirectHeader('./index.php?action=ModuleList',1,"*ERROR*"); + XCube_Utils::redirectHeader('./index.php?action=ModuleList', 1, "*Module not found*"); } } From minahito @ users.sourceforge.jp Wed Dec 21 13:08:57 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 21 Dec 2005 13:08:57 +0900 Subject: [xoops-cvslog 1310] CVS update: xoops2jp/html/modules/base/admin/class Message-ID: <20051221040857.C6F072AC04D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/class/ModuleUninstaller.class.php diff -u xoops2jp/html/modules/base/admin/class/ModuleUninstaller.class.php:1.1.2.2 xoops2jp/html/modules/base/admin/class/ModuleUninstaller.class.php:1.1.2.3 --- xoops2jp/html/modules/base/admin/class/ModuleUninstaller.class.php:1.1.2.2 Mon Dec 19 23:00:16 2005 +++ xoops2jp/html/modules/base/admin/class/ModuleUninstaller.class.php Wed Dec 21 13:08:57 2005 @@ -18,8 +18,14 @@ $moduleHandler =& xoops_gethandler('module'); $module =& $moduleHandler->getByDirname($dirname); - if (!is_object($module)) + if (!is_object($module)) { + $this->mLog->addError("*Module not found*"); return $ret; + } + + if ($module->getVar('isactive') == 0) { + $this->mLog->addError("*For uninstall, turn off the active-status of the module.*"); + } return $module; } From minahito @ users.sourceforge.jp Wed Dec 21 13:09:37 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 21 Dec 2005 13:09:37 +0900 Subject: [xoops-cvslog 1311] CVS update: xoops2jp/html/modules/base/admin/class Message-ID: <20051221040937.179032AC04D@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.2 xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.3 --- xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.2 Mon Dec 19 23:01:16 2005 +++ xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php Wed Dec 21 13:09:36 2005 @@ -2,14 +2,17 @@ require_once XOOPS_ROOT_PATH."/class/template.php"; +/** + * A temporary log class. + */ class Legacy_ModuleUtilsSimpleLog { - var $mFetalErrorFlag=false; - var $mMessages=array(); + var $mFetalErrorFlag = false; + var $mMessages = array(); function add($msg) { - $this->mMessages[]=array('type'=>'report','message'=>$msg); + $this->mMessages[] = array('type' => 'report', 'message' => $msg); } function addReport($msg) @@ -19,13 +22,13 @@ function addWarning($msg) { - $this->mMessages[]=array('type'=>'warning','message'=>$msg); + $this->mMessages[] = array('type' => 'warning', 'message' => $msg); } function addError($msg) { - $this->mMessages[]=array('type'=>'error','message'=>$msg); - $this->mFetalErrorFlag=true; + $this->mMessages[] = array('type' => 'error', 'message' => $msg); + $this->mFetalErrorFlag = true; } function hasError() @@ -34,6 +37,10 @@ } } +/** + * This provides static methods for the module installation. Methods of this class + * may move to base class of installers. + */ class Legacy_ModuleUtils { /** @@ -58,11 +65,11 @@ // // TODO The following variable exists for rollback, but it is not implemented. // - $createdTables=array(); + $createdTables = array(); foreach ($pieces as $piece) { $prefixedQuery =SqlUtility::prefixQuery($piece, $db->prefix()); - if($prefixedQuery==false) { + if ($prefixedQuery == false) { $log->addError("${piece} is not a valid SQL"); return; } @@ -77,9 +84,11 @@ $createdTables[] = $prefixedQuery[4]; } else { - $log->addReport("Data inserted to table ".$db->prefix($prefixedQuery[4])); + $log->addReport("Data inserted to table " . $db->prefix($prefixedQuery[4])); } } + + $log->addReport("*Database table setup finished.*"); } /** @@ -92,45 +101,45 @@ * @param $log Legacy_ModuleUtilsSimpleLog * * @param bool */ - function installTemplate($module,$template,&$log) + function installTemplate($module, $template, &$log) { - $tplHandler=&xoops_gethandler('tplfile'); + $tplHandler =& xoops_gethandler('tplfile'); - $fileName=trim($template['file']); + $fileName = trim($template['file']); - $tpldata=Legacy_ModuleUtils::readTemplateFile($module->getVar('dirname'),$fileName); - if($tpldata==false) + $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()); + $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'); + if (preg_match("/\.css$/i", $fileName)) { + $tplfile->setVar('tpl_type', 'css'); } else { - $tplfile->setVar('tpl_type','module'); + $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); + $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); + $description = isset($tpl['description']) ? $tpl['description'] : ''; + $tplfile->setVar('tpl_desc', $description, true); - if(!$tplHandler->insert($tplfile)) { - $log->addError(@sprintf(_MD_A_BASE_ERROR_INSERT_TEMPLATE,$fileName)); - return false; + if ($tplHandler->insert($tplfile)) { + $log->addReport(@sprintf("Template '${fileName}' has been installed.")); } else { - $log->addReport(@sprintf("Template '${fileName}' has been installed.")); + $log->addError(@sprintf(_MD_A_BASE_ERROR_INSERT_TEMPLATE, $fileName)); + return false; } return true; @@ -141,31 +150,31 @@ * * @return string or false */ - function readTemplateFile($dirname,$fileName,$isblock=false) + function readTemplateFile($dirname, $fileName, $isblock = false) { // // Load template data // - if($isblock) { - $filePath=XOOPS_MODULE_PATH."/".$dirname."/templates/blocks/".$fileName; + if ($isblock) { + $filePath = XOOPS_MODULE_PATH . "/" . $dirname . "/templates/blocks/" . $fileName; } else { - $filePath=XOOPS_MODULE_PATH."/".$dirname."/templates/".$fileName; + $filePath = XOOPS_MODULE_PATH . "/" . $dirname . "/templates/" . $fileName; } - if(!file_exists($filePath)) + if (!file_exists($filePath)) return false; - $lines=file($filePath); - if($lines==false) + $lines = file($filePath); + if ($lines == false) return false; - $tpldata=""; - foreach($lines as $line) { + $tpldata = ""; + foreach ($lines as $line) { // // Unify linefeed to "\r\n" // - $tpldata.=str_replace("\n","\r\n",str_replace("\r\n","\n",$line)); + $tpldata .= str_replace("\n", "\r\n", str_replace("\r\n", "\n", $line)); } return $tpldata; @@ -179,24 +188,24 @@ */ function &createBlockByInfo(&$module, $block) { - $options=isset($block['options']) ? $block['options'] : null; - $edit_func=isset($block['edit_func']) ? $block['edit_func'] : null; + $options = isset($block['options']) ? $block['options'] : null; + $edit_func = isset($block['edit_func']) ? $block['edit_func'] : null; - $blockHandler=&xoops_gethandler('block'); - $blockObj=&$blockHandler->create(); + $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('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',$block['template']); - $blockObj->setVar('last_modified',time()); + $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('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', $block['template']); + $blockObj->setVar('last_modified', time()); return $blockObj; } @@ -245,13 +254,6 @@ return true; } - - } - - function unInstallBlock(&$module, &$block) - { - // $blockHandler=&xoops_gethandler('block'); - // $blockHandler->delete($block); } /** @@ -261,7 +263,7 @@ */ function installBlockTemplate(&$module, &$block) { - $tplHandler=&xoops_gethandler('tplfile'); + $tplHandler =& xoops_gethandler('tplfile'); $criteria =& new CriteriaCompo(); $criteria->add(new Criteria('tpl_type', 'block')); @@ -270,23 +272,23 @@ $criteria->add(new Criteria('tpl_file', $block->getVar('template'))); $tplfiles =& $tplHandler->getObjects($criteria); - if (count($tplfiles) == 0) { - $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); + if (count($tplfiles) > 0) { + $tplfile =& $tplfiles[0]; } else { - $tplfile =& $tplfiles[0]; + $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()); + $tplfile->setVar('tpl_lastmodified', time()); return $tplHandler->insert($tplfile); } From minahito @ users.sourceforge.jp Wed Dec 21 13:10:09 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 21 Dec 2005 13:10:09 +0900 Subject: [xoops-cvslog 1312] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051221041009.E509C2AC04D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/module_information.html diff -u xoops2jp/html/modules/base/admin/templates/module_information.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/module_information.html:1.1.2.2 --- xoops2jp/html/modules/base/admin/templates/module_information.html:1.1.2.1 Wed Dec 21 12:52:19 2005 +++ xoops2jp/html/modules/base/admin/templates/module_information.html Wed Dec 21 13:10:09 2005 @@ -1,11 +1,17 @@ -

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}> » <{$smarty.const._MD_A_BASE_LANG_INFORMATION}>

    +

    + <{if $installed }> + » <{$smarty.const._MI_BASE_MENU_MODULELIST}> + <{else}> + » <{$smarty.const._MI_BASE_MENU_MODULEINSTALL}> + <{/if}> +» <{$smarty.const._MD_A_BASE_LANG_INFORMATION}>

    <{$smarty.const._MD_A_BASE_LANG_MOD_BASIC_INFO}>

    - - + @@ -14,11 +20,31 @@ - + - + + + + + From minahito @ users.sourceforge.jp Wed Dec 21 13:10:55 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 21 Dec 2005 13:10:55 +0900 Subject: [xoops-cvslog 1313] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051221041055.B23DD2AC055@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/module_install_confirm.html diff -u xoops2jp/html/modules/base/admin/templates/module_install_confirm.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/module_install_confirm.html:1.1.2.2 --- xoops2jp/html/modules/base/admin/templates/module_install_confirm.html:1.1.2.1 Wed Dec 21 12:52:19 2005 +++ xoops2jp/html/modules/base/admin/templates/module_install_confirm.html Wed Dec 21 13:10:55 2005 @@ -4,7 +4,54 @@
  • <{$smarty.const._MD_A_BASE_LANG_MODINSTALL_ADVICE|replace:"_%s_":$module->getVar('name','e')}> +
  • +
    <{$module->modinfo.name|escape}>
    <{$smarty.const._MD_A_BASE_LANG_NAME}><{$smarty.const._MD_A_BASE_LANG_NAME}> <{$module->getVar('name',e)}>
    <{$smarty.const._MD_A_BASE_LANG_VERSION}><{math equation="v/100" v=$module->getVar('version') format="%.2f"}><{math equation="v/100" v=$module->getVar('version') format="%.2f"}> + <{if $module->getVar('version') != $module->modinfo.version * 100 }> + » <{math equation=$module->modinfo.version format="%.2f"}> + <{/if}> +
    <{$smarty.const._MD_A_BASE_LANG_MID}><{$module->getVar('mid')}> + <{if $module->getVar('mid')}> + <{$module->getVar('mid')}> + <{else}> + -- + <{/if}> +
    <{$smarty.const._MD_A_BASE_LANG_LASTUPDATE}> + <{if $module->getVar('last_update')}> + <{$module->getVar('last_update')|xoops_formattimestamp:l}> + <{else}> + -- + <{/if}> +
    <{$smarty.const._MD_A_BASE_LANG_MOD_DESC}>
    + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    <{$module->modinfo.name|escape}>
    <{$smarty.const._MD_A_BASE_LANG_NAME}><{$module->getVar('name',e)}>
    <{$smarty.const._MD_A_BASE_LANG_MOD_DIR_NAME}><{$module->getVar('dirname',e)}>
    <{$smarty.const._MD_A_BASE_LANG_VERSION}><{math equation="v/100" v=$module->getVar('version') format="%.2f"}> + <{if $module->getVar('version') != $module->modinfo.version * 100 }> + » <{math equation=$module->modinfo.version format="%.2f"}> + <{/if}> +
    <{$smarty.const._MD_A_BASE_LANG_MID}> + <{if $module->getVar('mid')}> + <{$module->getVar('mid')}> + <{else}> + -- + <{/if}> +
    <{$smarty.const._MD_A_BASE_LANG_LASTUPDATE}> + <{if $module->getVar('last_update')}> + <{$module->getVar('last_update')|xoops_formattimestamp:l}> + <{else}> + -- + <{/if}> +
    <{$smarty.const._MD_A_BASE_LANG_MOD_DESC}><{$module->modinfo.description|escape}>
    +
    + +<{* <{$module|debug_print_var}> *}> From minahito @ users.sourceforge.jp Wed Dec 21 13:11:07 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 21 Dec 2005 13:11:07 +0900 Subject: [xoops-cvslog 1314] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051221041107.0CC652AC054@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/module_install_success.html diff -u xoops2jp/html/modules/base/admin/templates/module_install_success.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/module_install_success.html:1.1.2.2 --- xoops2jp/html/modules/base/admin/templates/module_install_success.html:1.1.2.1 Wed Dec 21 12:52:19 2005 +++ xoops2jp/html/modules/base/admin/templates/module_install_success.html Wed Dec 21 13:11:06 2005 @@ -1,14 +1,17 @@

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}> » <{$smarty.const._MD_A_BASE_LANG_MODINSTALL_SUCCESS}>

    <{$smarty.const._MD_A_BASE_LANG_MODINSTALL_LOG}>

    + + +

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}>

    From minahito @ users.sourceforge.jp Wed Dec 21 13:11:16 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 21 Dec 2005 13:11:16 +0900 Subject: [xoops-cvslog 1315] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051221041116.EF5A72AC054@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/module_installers_error.html diff -u xoops2jp/html/modules/base/admin/templates/module_installers_error.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/module_installers_error.html:1.1.2.2 --- xoops2jp/html/modules/base/admin/templates/module_installers_error.html:1.1.2.1 Wed Dec 21 12:52:19 2005 +++ xoops2jp/html/modules/base/admin/templates/module_installers_error.html Wed Dec 21 13:11:16 2005 @@ -3,9 +3,9 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    <{$module->modinfo.name|escape}>
    <{$smarty.const._MD_A_BASE_LANG_NAME}><{$module->getVar('name',e)}>
    <{$smarty.const._MD_A_BASE_LANG_MOD_DIR_NAME}><{$module->getVar('dirname',e)}>
    <{$smarty.const._MD_A_BASE_LANG_VERSION}><{math equation="v/100" v=$module->getVar('version') format="%.2f"}> + <{if $module->getVar('version') != $module->modinfo.version * 100 }> + » <{math equation=$module->modinfo.version format="%.2f"}> + <{/if}> +
    <{$smarty.const._MD_A_BASE_LANG_MID}> + <{if $module->getVar('mid')}> + <{$module->getVar('mid')}> + <{else}> + -- + <{/if}> +
    <{$smarty.const._MD_A_BASE_LANG_LASTUPDATE}> + <{if $module->getVar('last_update')}> + <{$module->getVar('last_update')|xoops_formattimestamp:l}> + <{else}> + -- + <{/if}> +
    <{$smarty.const._MD_A_BASE_LANG_MOD_DESC}><{$module->modinfo.description|escape}>
    + +
    - *Force mode:強制モード* + <{$smarty.const._MD_A_BASE_LANG_FORCE_MODE}>

    From minahito @ users.sourceforge.jp Wed Dec 21 13:11:37 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 21 Dec 2005 13:11:37 +0900 Subject: [xoops-cvslog 1317] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051221041137.7A8242AC04D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/module_uninstall_success.html diff -u xoops2jp/html/modules/base/admin/templates/module_uninstall_success.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/module_uninstall_success.html:1.1.2.2 --- xoops2jp/html/modules/base/admin/templates/module_uninstall_success.html:1.1.2.1 Wed Dec 21 12:52:19 2005 +++ xoops2jp/html/modules/base/admin/templates/module_uninstall_success.html Wed Dec 21 13:11:37 2005 @@ -1,14 +1,17 @@

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}> » <{$smarty.const._MD_A_BASE_LANG_MODUNINSTALL_SUCCESS}>

    <{$smarty.const._MD_A_BASE_LANG_MODUNINSTALL_LOG}>

    + + +

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}>

    From minahito @ users.sourceforge.jp Wed Dec 21 13:12:00 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 21 Dec 2005 13:12:00 +0900 Subject: [xoops-cvslog 1318] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051221041200.0A15D2AC04D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/module_update_confirm.html diff -u xoops2jp/html/modules/base/admin/templates/module_update_confirm.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/module_update_confirm.html:1.1.2.2 --- xoops2jp/html/modules/base/admin/templates/module_update_confirm.html:1.1.2.1 Wed Dec 21 12:52:19 2005 +++ xoops2jp/html/modules/base/admin/templates/module_update_confirm.html Wed Dec 21 13:11:59 2005 @@ -4,7 +4,53 @@
  • <{$smarty.const._MD_A_BASE_LANG_MODUPDATE_ADVICE|replace:"_%s_":$module->getVar('name','e')}> + + + + + + + + + + + + + + + + + + + + + + + + + + +
    +
    <{$module->modinfo.name|escape}>
    <{$smarty.const._MD_A_BASE_LANG_NAME}><{$module->getVar('name',e)}>
    <{$smarty.const._MD_A_BASE_LANG_MOD_DIR_NAME}><{$module->getVar('dirname',e)}>
    <{$smarty.const._MD_A_BASE_LANG_VERSION}><{math equation="v/100" v=$module->getVar('version') format="%.2f"}> + <{if $module->getVar('version') != $module->modinfo.version * 100 }> + » <{math equation=$module->modinfo.version format="%.2f"}> + <{/if}> +
    <{$smarty.const._MD_A_BASE_LANG_MID}> + <{if $module->getVar('mid')}> + <{$module->getVar('mid')}> + <{else}> + -- + <{/if}> +
    <{$smarty.const._MD_A_BASE_LANG_LASTUPDATE}> + <{if $module->getVar('last_update')}> + <{$module->getVar('last_update')|xoops_formattimestamp:l}> + <{else}> + -- + <{/if}> +
    <{$smarty.const._MD_A_BASE_LANG_MOD_DESC}><{$module->modinfo.description|escape}>
    +
    + From minahito @ users.sourceforge.jp Wed Dec 21 13:12:11 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 21 Dec 2005 13:12:11 +0900 Subject: [xoops-cvslog 1319] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051221041211.C7D6A2AC04D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/module_update_success.html diff -u xoops2jp/html/modules/base/admin/templates/module_update_success.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/module_update_success.html:1.1.2.2 --- xoops2jp/html/modules/base/admin/templates/module_update_success.html:1.1.2.1 Wed Dec 21 12:52:19 2005 +++ xoops2jp/html/modules/base/admin/templates/module_update_success.html Wed Dec 21 13:12:11 2005 @@ -4,12 +4,14 @@ + +

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}>

    From minahito @ users.sourceforge.jp Wed Dec 21 13:12:45 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 21 Dec 2005 13:12:45 +0900 Subject: [xoops-cvslog 1320] CVS update: xoops2jp/html/modules/base/language/english Message-ID: <20051221041245.BD50D2AC04D@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.3 xoops2jp/html/modules/base/language/english/admin.php:1.1.2.4 --- xoops2jp/html/modules/base/language/english/admin.php:1.1.2.3 Fri Dec 16 18:59:46 2005 +++ xoops2jp/html/modules/base/language/english/admin.php Wed Dec 21 13:12:45 2005 @@ -6,6 +6,8 @@ define('_MB_A_BASE_LANG_ACTIONSEARCH', "Action Search"); define('_MB_A_BASE_LANG_MENU', "Menu"); define('_MB_A_BASE_LANG_SEARCH', "Search"); +define('_MB_A_BASE_LANG_RESULT', "Results"); +define('_MB_A_BASE_LANG_ACTIONSEARCH_INFO', "what's Action Search...."); // // Error Messages @@ -68,4 +70,41 @@ define('_MD_A_BASE_LANG_UPDATE', "Update"); define('_MD_A_BASE_LANG_VERSION', "Version"); define('_MD_A_BASE_LANG_WEIGHT', "Weight"); + +define('_MD_A_BASE_LANG_MAINMENU_HAS_MAIN', 'MainMenu'); +define('_MD_A_BASE_LANG_SUBMENU_NAME', 'SubMenu name'); +define('_MD_A_BASE_LANG_SUBMENU_URL', 'SubMenu URL'); +define('_MD_A_BASE_LANG_NO_SUBMENU', 'no SubMenu'); +define('_MD_A_BASE_LANG_ADMIN_MENU', 'Admin Menu Information'); +define('_MD_A_BASE_LANG_ADMINMENU_HAS_MAIN', 'Admin Menu'); +define('_MD_A_BASE_LANG_ADMINMENU_INDEX', 'Admin Menu'); +define('_MD_A_BASE_LANG_ADMINMENU_MENU', 'Admin Menu'); +define('_MD_A_BASE_LANG_ADMINMENU_NAME', 'Admin Menu name'); +define('_MD_A_BASE_LANG_ADMINMENU_URL', 'Admin Menu URL'); +define('_MD_A_BASE_LANG_NO_ADMINMENU', 'no Admin Menu'); +define('_MD_A_BASE_LANG_SMARTY', 'Smarty'); +define('_MD_A_BASE_LANG_SEARCH_SVC', 'Search'); +define('_MD_A_BASE_LANG_COMMENT_SVC', 'Comment'); +define('_MD_A_BASE_LANG_NOTIF_SVC', 'Notification'); + +define('_MD_A_BASE_LANG_NO_CHANGE', 'no change'); +define('_MD_A_BASE_LANG_DEACTIVATE', 'deactive'); +define('_MD_A_BASE_LANG_MODUPDATE_CONF', 'update module'); +define('_MD_A_BASE_LANG_MODUPDATE_ADVICE', 'uopdate module_%s_ OK?'); +define('_MD_A_BASE_LANG_MODUPDATE_SUCCESS', 'module update success'); +define('_MD_A_BASE_LANG_MODUPDATE_LOG', 'module update LOG'); + +define('_MD_A_BASE_LANG_INSTALL', 'install'); +define('_MD_A_BASE_LANG_MODINSTALL_LIST_ADVICE', 'いいかいお嬢さん……使わないモジュールはサーバーから削るもんだぜ。。'); +define('_MD_A_BASE_LANG_MODINSTALL_CONF', 'module install confirm'); +define('_MD_A_BASE_LANG_MODINSTALL_ADVICE', 'install module_%s_ OK?'); +define('_MD_A_BASE_LANG_MODINSTALL_SUCCESS', 'module install success'); +define('_MD_A_BASE_LANG_MODINSTALL_LOG', 'module install LOG'); + +define('_MD_A_BASE_LANG_MODUNINSTALL_CONF', 'module uninstall confirm'); +define('_MD_A_BASE_LANG_MODUNINSTALL_ADVICE', 'Uninstall module_%s_ OK?'); +define('_MD_A_BASE_LANG_MODUNINSTALL_SUCCESS', 'module uninstall success'); +define('_MD_A_BASE_LANG_MODUNINSTALL_LOG', 'module uninstall LOG'); +define('_MD_A_BASE_LANG_FORCE_MODE', 'force mode: ...................'); + ?> From minahito @ users.sourceforge.jp Wed Dec 21 13:13:10 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 21 Dec 2005 13:13:10 +0900 Subject: [xoops-cvslog 1321] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20051221041310.B55A82AC04D@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.6 xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.7 --- xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.6 Fri Dec 16 18:59:46 2005 +++ xoops2jp/html/modules/base/language/japanese/admin.php Wed Dec 21 13:13:10 2005 @@ -6,6 +6,9 @@ define('_MB_A_BASE_LANG_ACTIONSEARCH', "アクションサーチ"); define('_MB_A_BASE_LANG_MENU', "メニュー"); define('_MB_A_BASE_LANG_SEARCH', "検索"); +define('_MB_A_BASE_LANG_RESULT', "検索結果"); +define('_MB_A_BASE_LANG_ACTIONSEARCH_INFO', "君の悩みは何だね?私が何でも答えてあげよう~~"); + // // Error Messages @@ -21,12 +24,12 @@ // define('_MD_A_BASE_LANG_ACTIONSEARCH', "アクションサーチ"); define('_MD_A_BASE_LANG_ACTIVE', "アクティブ"); -define('_MD_A_BASE_LANG_BLOCK_KEY', "BLOCK_KEY"); -define('_MD_A_BASE_LANG_BLOCK_VAL', "BLOCK_VAL"); +define('_MD_A_BASE_LANG_BLOCK_KEY', "キー"); +define('_MD_A_BASE_LANG_BLOCK_VAL', "値"); define('_MD_A_BASE_LANG_BLOCKS_INFO', "ブロック情報"); define('_MD_A_BASE_LANG_CONFIG_INFO', "一般設定情報"); -define('_MD_A_BASE_LANG_CONFIG_KEY', "CONFIG_KEY"); -define('_MD_A_BASE_LANG_CONFIG_VAL', "CONFIG_VAL"); +define('_MD_A_BASE_LANG_CONFIG_KEY', "キー"); +define('_MD_A_BASE_LANG_CONFIG_VAL', "値"); define('_MD_A_BASE_LANG_CONTROL', "操作"); define('_MD_A_BASE_LANG_FEATURE_SVC_INFO', "フューチャー機能情報"); define('_MD_A_BASE_LANG_INFORMATION', "インフォメーション"); @@ -45,27 +48,65 @@ define('_MD_A_BASE_LANG_NAME', "名前"); define('_MD_A_BASE_LANG_NO_BLOCK', "ブロック情報は設定されていません"); define('_MD_A_BASE_LANG_NO_CONFIG', "一般設定情報は設定されていません"); -define('_MD_A_BASE_LANG_NO_MAINMENU', "NO_MAINMENU"); +define('_MD_A_BASE_LANG_NO_MAINMENU', "メインメニュー情報は設定されていません"); define('_MD_A_BASE_LANG_NO_SQL', "SQL情報は設定されていません"); define('_MD_A_BASE_LANG_NO_TEMPLATE', "テンプレート情報は設定されていません"); define('_MD_A_BASE_LANG_SEARCH', "検索"); -define('_MD_A_BASE_LANG_SQL_ENGINE', "SQL_ENGINE"); -define('_MD_A_BASE_LANG_SQL_FILE_NAME', "SQL_FILE_NAME"); -define('_MD_A_BASE_LANG_SQL_HAS_MAIN', "SQL_HAS_MAIN"); +define('_MD_A_BASE_LANG_SQL_ENGINE', "SQLエンジン"); +define('_MD_A_BASE_LANG_SQL_FILE_NAME', "SQLファイル名"); +define('_MD_A_BASE_LANG_SQL_HAS_MAIN', "SQLの使用"); define('_MD_A_BASE_LANG_SQL_INFO', "SQL情報"); define('_MD_A_BASE_LANG_SQL_MYSQL', "MySQL"); define('_MD_A_BASE_LANG_SUBMIT', "送信"); define('_MD_A_BASE_LANG_TABLE_NAME', "テーブル名"); define('_MD_A_BASE_LANG_TABLE_NUM', "No"); define('_MD_A_BASE_LANG_TABLE_PROPERTIES', "テーブル構造"); -define('_MD_A_BASE_LANG_TEMPLATE_DESC', "TEMPLATE_DESC"); -define('_MD_A_BASE_LANG_TEMPLATE_ENGINE', "TEMPLATE_ENGINE"); -define('_MD_A_BASE_LANG_TEMPLATE_FILE', "TEMPLATE_FILE"); -define('_MD_A_BASE_LANG_TEMPLATE_HAS_MAIN', "TEMPLATE_HAS_MAIN"); +define('_MD_A_BASE_LANG_TEMPLATE_DESC', "テンプレートの説明"); +define('_MD_A_BASE_LANG_TEMPLATE_ENGINE', "テンプレート エンジン"); +define('_MD_A_BASE_LANG_TEMPLATE_FILE', "テンプレート ファイル名"); +define('_MD_A_BASE_LANG_TEMPLATE_HAS_MAIN', "テンプレートの使用"); define('_MD_A_BASE_LANG_TEMPLATE_INFO', "テンプレート情報"); -define('_MD_A_BASE_LANG_TEMPLATE_KEY', "TEMPLATE_KEY"); +define('_MD_A_BASE_LANG_TEMPLATE_KEY', "キー"); define('_MD_A_BASE_LANG_UNINSTALL', "アンインストール"); define('_MD_A_BASE_LANG_UPDATE', "アップデート"); define('_MD_A_BASE_LANG_VERSION', "バージョン"); -define('_MD_A_BASE_LANG_WEIGHT', "表示優先度"); -?> +define('_MD_A_BASE_LANG_WEIGHT', "表示順"); + +define('_MD_A_BASE_LANG_MAINMENU_HAS_MAIN', 'メインメニュー'); +define('_MD_A_BASE_LANG_SUBMENU_NAME', 'サブメニュー名'); +define('_MD_A_BASE_LANG_SUBMENU_URL', 'サブメニューURL'); +define('_MD_A_BASE_LANG_NO_SUBMENU', 'サブメニューは設定されていません'); +define('_MD_A_BASE_LANG_ADMIN_MENU', '管理画面情報'); +define('_MD_A_BASE_LANG_ADMINMENU_HAS_MAIN', '管理画面'); +define('_MD_A_BASE_LANG_ADMINMENU_INDEX', '管理画面ページ'); +define('_MD_A_BASE_LANG_ADMINMENU_MENU', '管理メニュー設定ファイル'); +define('_MD_A_BASE_LANG_ADMINMENU_NAME', '管理画面名'); +define('_MD_A_BASE_LANG_ADMINMENU_URL', '管理画面URL'); +define('_MD_A_BASE_LANG_NO_ADMINMENU', '管理画面情報は設定されていません'); +define('_MD_A_BASE_LANG_SMARTY', 'Smarty'); +define('_MD_A_BASE_LANG_SEARCH_SVC', '検索機能'); +define('_MD_A_BASE_LANG_COMMENT_SVC', 'コメント機能'); +define('_MD_A_BASE_LANG_NOTIF_SVC', 'イベント通知機能'); + +define('_MD_A_BASE_LANG_NO_CHANGE', '変更なし'); +define('_MD_A_BASE_LANG_DEACTIVATE', '非アクティブ'); +define('_MD_A_BASE_LANG_MODUPDATE_CONF', 'モジュールアップデートの確認'); +define('_MD_A_BASE_LANG_MODUPDATE_ADVICE', '_%s_ をアップデートします。よろしいですか?'); +define('_MD_A_BASE_LANG_MODUPDATE_SUCCESS', 'モジュールアップデート終了'); +define('_MD_A_BASE_LANG_MODUPDATE_LOG', 'モジュールアップデート ログ'); + +define('_MD_A_BASE_LANG_INSTALL', 'インストール'); +define('_MD_A_BASE_LANG_MODINSTALL_LIST_ADVICE', 'サイトの安全のために、使用する予定のないモジュールはサイトから削除しておきましょう。'); +define('_MD_A_BASE_LANG_MODINSTALL_CONF', 'モジュールインストールの確認'); +define('_MD_A_BASE_LANG_MODINSTALL_ADVICE', '_%s_ をインストールします。よろしいですか?'); +define('_MD_A_BASE_LANG_MODINSTALL_SUCCESS', 'モジュールインストール終了'); +define('_MD_A_BASE_LANG_MODINSTALL_LOG', 'モジュールインストール ログ'); + +define('_MD_A_BASE_LANG_MODUNINSTALL_CONF', 'モジュールアンインストールの確認'); +define('_MD_A_BASE_LANG_MODUNINSTALL_ADVICE', '_%s_ をアンインストールします。よろしいですか?'); +define('_MD_A_BASE_LANG_MODUNINSTALL_SUCCESS', 'モジュールアンインストール終了'); +define('_MD_A_BASE_LANG_MODUNINSTALL_LOG', 'モジュールアンインストール ログ'); + +define('_MD_A_BASE_LANG_FORCE_MODE', '強制モード:これは強制的に・・・・・・・(説明文)・・・・・'); + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Wed Dec 21 13:13:32 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 21 Dec 2005 13:13:32 +0900 Subject: [xoops-cvslog 1322] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051221041332.A37302AC04D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/deactive_module_list.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/deactive_module_list.html:1.1.2.1 --- /dev/null Wed Dec 21 13:13:32 2005 +++ xoops2jp/html/modules/base/admin/templates/deactive_module_list.html Wed Dec 21 13:13:32 2005 @@ -0,0 +1,25 @@ +

    » <{$smarty.const._MI_BASE_MENU_MODULEINSTALL}>

    + +

    <{$smarty.const._MD_A_BASE_LANG_MODINSTALL_LIST_ADVICE}>

    + + + + + + + + <{foreach item=module from=$moduleObjects}> + + + + + + <{/foreach}> +
    <{$smarty.const._MD_A_BASE_LANG_NAME}> + <{$smarty.const._MD_A_BASE_LANG_VERSION}> + <{$smarty.const._MD_A_BASE_LANG_CONTROL}> +
    <{$module->getVar('name','e')}>
    <{$module->getVar('name')}>
    <{$module->getRenderedVersion()}> + " alt="<{$smarty.const._MD_A_BASE_LANG_INSTALL}>" /> + " alt="<{$smarty.const._MD_A_BASE_LANG_INFORMATION}>" /> +
    + From minahito @ users.sourceforge.jp Wed Dec 21 13:15:24 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 21 Dec 2005 13:15:24 +0900 Subject: [xoops-cvslog 1323] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051221041524.47BC62AC04D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/legacy_admin_uninst_moduleinfo.html diff -u xoops2jp/html/modules/base/admin/templates/legacy_admin_uninst_moduleinfo.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/legacy_admin_uninst_moduleinfo.html:removed --- xoops2jp/html/modules/base/admin/templates/legacy_admin_uninst_moduleinfo.html:1.1.2.1 Thu Dec 1 21:42:15 2005 +++ xoops2jp/html/modules/base/admin/templates/legacy_admin_uninst_moduleinfo.html Wed Dec 21 13:15:24 2005 @@ -1,7 +0,0 @@ - -This template shows a module that is not installed yet. - -

    <{$module->getVar('name')}>

    - -

    <{$module->modinfo.name|escape}>

    -

    <{$module->modinfo.description|escape}>

    From minahito @ users.sourceforge.jp Thu Dec 22 20:21:58 2005 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 22 Dec 2005 20:21:58 +0900 Subject: [xoops-cvslog 1324] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20051222112158.819372AC04A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/module_uninstall_success.html diff -u xoops2jp/html/modules/base/admin/templates/module_uninstall_success.html:1.1.2.2 xoops2jp/html/modules/base/admin/templates/module_uninstall_success.html:1.1.2.3 --- xoops2jp/html/modules/base/admin/templates/module_uninstall_success.html:1.1.2.2 Wed Dec 21 13:11:37 2005 +++ xoops2jp/html/modules/base/admin/templates/module_uninstall_success.html Thu Dec 22 20:21:58 2005 @@ -1,4 +1,4 @@ -

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}> » <{$smarty.const._MD_A_BASE_LANG_MODUNINSTALL_SUCCESS}>

    +

    » <{$smarty.const._MD_A_BASE_LANG_MODLIST}> » <{$smarty.const._MD_A_BASE_LANG_MODUNINSTALL_SUCCESS}>

    <{$smarty.const._MD_A_BASE_LANG_MODUNINSTALL_LOG}>

    @@ -14,4 +14,4 @@ <{/foreach}> -

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}>

    +

    » <{$smarty.const._MD_A_BASE_LANG_MODLIST}>

    Index: xoops2jp/html/modules/base/admin/templates/module_information.html diff -u xoops2jp/html/modules/base/admin/templates/module_information.html:1.1.2.2 xoops2jp/html/modules/base/admin/templates/module_information.html:1.1.2.3 --- xoops2jp/html/modules/base/admin/templates/module_information.html:1.1.2.2 Wed Dec 21 13:10:09 2005 +++ xoops2jp/html/modules/base/admin/templates/module_information.html Thu Dec 22 20:21:58 2005 @@ -1,8 +1,8 @@

    <{if $installed }> - » <{$smarty.const._MI_BASE_MENU_MODULELIST}> + » <{$smarty.const._MD_A_BASE_LANG_MODLIST}> <{else}> - » <{$smarty.const._MI_BASE_MENU_MODULEINSTALL}> + » <{$smarty.const._MD_A_BASE_LANG_MODINSTALL}> <{/if}> » <{$smarty.const._MD_A_BASE_LANG_INFORMATION}>

    Index: xoops2jp/html/modules/base/admin/templates/module_uninstall_confirm.html diff -u xoops2jp/html/modules/base/admin/templates/module_uninstall_confirm.html:1.1.2.2 xoops2jp/html/modules/base/admin/templates/module_uninstall_confirm.html:1.1.2.3 --- xoops2jp/html/modules/base/admin/templates/module_uninstall_confirm.html:1.1.2.2 Wed Dec 21 13:11:28 2005 +++ xoops2jp/html/modules/base/admin/templates/module_uninstall_confirm.html Thu Dec 22 20:21:58 2005 @@ -1,4 +1,4 @@ -

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}> » <{$smarty.const._MD_A_BASE_LANG_MODUNINSTALL_CONF}>

    +

    » <{$smarty.const._MD_A_BASE_LANG_MODLIST}> » <{$smarty.const._MD_A_BASE_LANG_MODUNINSTALL_CONF}>

    -

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}>

    +

    » <{$smarty.const._MD_A_BASE_LANG_MODLIST}>

    Index: xoops2jp/html/modules/base/admin/templates/module_update_confirm.html diff -u xoops2jp/html/modules/base/admin/templates/module_update_confirm.html:1.1.2.2 xoops2jp/html/modules/base/admin/templates/module_update_confirm.html:1.1.2.3 --- xoops2jp/html/modules/base/admin/templates/module_update_confirm.html:1.1.2.2 Wed Dec 21 13:11:59 2005 +++ xoops2jp/html/modules/base/admin/templates/module_update_confirm.html Thu Dec 22 20:21:58 2005 @@ -1,4 +1,4 @@ -

    » <{$smarty.const._MI_BASE_MENU_MODULELIST}> » <{$smarty.const._MD_A_BASE_LANG_MODUPDATE_CONF}>

    +

    » <{$smarty.const._MD_A_BASE_LANG_MODLIST}> » <{$smarty.const._MD_A_BASE_LANG_MODUPDATE_CONF}>