From nobunobu @ users.sourceforge.jp Sat Apr 1 10:31:04 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 1 Apr 2006 10:31:04 +0900 Subject: [xoops-cvslog 2606] CVS update: xoops2jp/html/install/wizards Message-ID: <20060401013104.EAD212AC01F@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Sat Apr 1 10:32:57 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 1 Apr 2006 10:32:57 +0900 Subject: [xoops-cvslog 2607] CVS update: xoops2jp/html/install/custom Message-ID: <20060401013257.531ED2AC01F@users.sourceforge.jp> Index: xoops2jp/html/install/custom/custom.inc.dist.php diff -u xoops2jp/html/install/custom/custom.inc.dist.php:1.1.2.1 xoops2jp/html/install/custom/custom.inc.dist.php:1.1.2.2 --- xoops2jp/html/install/custom/custom.inc.dist.php:1.1.2.1 Tue Mar 7 22:11:39 2006 +++ xoops2jp/html/install/custom/custom.inc.dist.php Sat Apr 1 10:32:57 2006 @@ -1,3 +1,3 @@ insertAfter('start', 'envcheck', 'Enviromment Check'); + $wizardSeq->insertAfter('start', 'envcheck', 'Enviromment Check'); ?> Index: xoops2jp/html/install/custom/install_envcheck.inc.php diff -u xoops2jp/html/install/custom/install_envcheck.inc.php:1.1.2.1 xoops2jp/html/install/custom/install_envcheck.inc.php:1.1.2.2 --- xoops2jp/html/install/custom/install_envcheck.inc.php:1.1.2.1 Tue Mar 7 22:11:39 2006 +++ xoops2jp/html/install/custom/install_envcheck.inc.php Sat Apr 1 10:32:57 2006 @@ -1,4 +1,4 @@ setTemplatePath(dirname(__FILE__)); - $widzard->render('install_envcheck.tpl.php'); + $wizard->setTemplatePath(dirname(__FILE__)); + $wizard->render('install_envcheck.tpl.php'); ?> \ No newline at end of file From nobunobu @ users.sourceforge.jp Sat Apr 1 10:32:57 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 1 Apr 2006 10:32:57 +0900 Subject: [xoops-cvslog 2608] CVS update: xoops2jp/html/install Message-ID: <20060401013257.7EA2E2AC057@users.sourceforge.jp> Index: xoops2jp/html/install/index.php diff -u xoops2jp/html/install/index.php:1.2.8.3 xoops2jp/html/install/index.php:1.2.8.4 --- xoops2jp/html/install/index.php:1.2.8.3 Tue Mar 7 22:11:39 2006 +++ xoops2jp/html/install/index.php Sat Apr 1 10:32:57 2006 @@ -1,5 +1,5 @@ '); define('_NGIMG', 'NG '); -include_once './class/simplewidzard.php'; -$widzard = new SimpleWidzard; -$widzard->setBaseTemplate('install_tpl.php'); -$widzard->setTemplatePath('templates'); - -$widzardSeq = new SimpleWidzardSequence; - -$widzardSeq->add('langselect', _INSTALL_L0, 'start', _INSTALL_L80); -$widzardSeq->add('start', _INSTALL_L0, 'modcheck', _INSTALL_L81); -$widzardSeq->add('modcheck', _INSTALL_L82, 'dbform', _INSTALL_L89); -$widzardSeq->add('dbform', _INSTALL_L90, 'dbconfirm', _INSTALL_L91); -$widzardSeq->add('dbconfirm', _INSTALL_L53, 'dbsave', _INSTALL_L92, '', _INSTALL_L93); -$widzardSeq->add('dbsave', _INSTALL_L92, 'mainfile', _INSTALL_L94); -$widzardSeq->add('mainfile', _INSTALL_L94, 'initial', _INSTALL_L102, 'start', _INSTALL_L103, true); -$widzardSeq->add('initial', _INSTALL_L102, 'checkDB', _INSTALL_L104, 'start', _INSTALL_L103, true); -$widzardSeq->add('checkDB', _INSTALL_L104, 'createDB', _INSTALL_L105, 'start', _INSTALL_L103, true); -$widzardSeq->add('createDB', _INSTALL_L105, 'checkDB', _INSTALL_L104); -$widzardSeq->add('createTables',_INSTALL_L40, 'siteInit', _INSTALL_L112); -$widzardSeq->add('siteInit', _INSTALL_L112, 'insertData', _INSTALL_L116); -$widzardSeq->add('insertData', _INSTALL_L116, 'finish', _INSTALL_L117); -$widzardSeq->add('finish', _INSTALL_L32); +include_once './class/simplewizard.php'; +$wizard = new SimpleWizard; +$wizard->setBaseTemplate('install_tpl.php'); +$wizard->setTemplatePath('templates'); + +$wizardSeq = new SimpleWizardSequence; + +$wizardSeq->add('langselect', _INSTALL_L0, 'start', _INSTALL_L80); +$wizardSeq->add('start', _INSTALL_L0, 'modcheck', _INSTALL_L81); +$wizardSeq->add('modcheck', _INSTALL_L82, 'dbform', _INSTALL_L89); +$wizardSeq->add('dbform', _INSTALL_L90, 'dbconfirm', _INSTALL_L91); +$wizardSeq->add('dbconfirm', _INSTALL_L53, 'dbsave', _INSTALL_L92, '', _INSTALL_L93); +$wizardSeq->add('dbsave', _INSTALL_L92, 'mainfile', _INSTALL_L94); +$wizardSeq->add('mainfile', _INSTALL_L94, 'initial', _INSTALL_L102, 'start', _INSTALL_L103, true); +$wizardSeq->add('initial', _INSTALL_L102, 'checkDB', _INSTALL_L104, 'start', _INSTALL_L103, true); +$wizardSeq->add('checkDB', _INSTALL_L104, 'createDB', _INSTALL_L105, 'start', _INSTALL_L103, true); +$wizardSeq->add('createDB', _INSTALL_L105, 'checkDB', _INSTALL_L104); +$wizardSeq->add('createTables',_INSTALL_L40, 'siteInit', _INSTALL_L112); +$wizardSeq->add('siteInit', _INSTALL_L112, 'insertData', _INSTALL_L116); +$wizardSeq->add('insertData', _INSTALL_L116, 'finish', _INSTALL_L117); +$wizardSeq->add('finish', _INSTALL_L32); if (file_exists('./custom/custom.inc.php')) { include './custom/custom.inc.php'; @@ -100,16 +100,16 @@ } else { $op = 'langselect'; } -$widzard->setOp($op); +$wizard->setOp($op); $op=basename($op); -$fname = './widzards/install_'.$op.'.inc.php'; +$fname = './wizards/install_'.$op.'.inc.php'; $custom_fname = './custom/install_'.$op.'.inc.php'; if (file_exists($fname)) { include $fname; } else if(file_exists($custom_fname)) { include $custom_fname; } else { - $widzard->render(); + $wizard->render(); } ?> \ No newline at end of file Index: xoops2jp/html/install/install_tpl.php diff -u xoops2jp/html/install/install_tpl.php:1.1.8.2 xoops2jp/html/install/install_tpl.php:1.1.8.3 --- xoops2jp/html/install/install_tpl.php:1.1.8.2 Tue Mar 7 22:05:59 2006 +++ xoops2jp/html/install/install_tpl.php Sat Apr 1 10:32:57 2006 @@ -1,7 +1,7 @@ - XOOPS Cube Install Widzard + XOOPS Cube Install Wizard From nobunobu @ users.sourceforge.jp Sat Apr 1 10:32:57 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 1 Apr 2006 10:32:57 +0900 Subject: [xoops-cvslog 2609] CVS update: xoops2jp/html/install/class Message-ID: <20060401013257.A46D12AC01F@users.sourceforge.jp> Index: xoops2jp/html/install/class/simplewizard.php diff -u /dev/null xoops2jp/html/install/class/simplewizard.php:1.1.2.1 --- /dev/null Sat Apr 1 10:32:57 2006 +++ xoops2jp/html/install/class/simplewizard.php Sat Apr 1 10:32:57 2006 @@ -0,0 +1,202 @@ +_template_path = $name; + } + + function setBaseTemplate($name) { + $this->_base_template_name = $name; + } + + function assign($name, $value) { + $this->_v[$name] = $value; + } + + function setContent($value) { + $this->_content = $value; + } + + function setOp($value) { + $this->_op = $value; + } + + function setTitle($value) { + $this->_title = $value; + } + + function setNext($value) { + $this->_next = $value; + $this->_custom_seq = true; + } + + function setBack($value) { + $this->_back = $value; + $this->_custom_seq = true; + } + + function setReload($value) { + $this->_reload = $value; + $this->_custom_seq = true; + } + + function addArray($name, $value) { + if (!isset($this->_v[$name]) || !is_array($this->_v[$name])) { + $this->_v[$name] = array(); + } + $this->_v[$name][] = $value; + } + + function v($name) { + if (!empty($this->_v[$name])) { + return $this->_v[$name]; + } else { + return $false; + } + } + + function e() { + $args = func_get_args(); + if (func_num_args() >0) { + if (!empty($this->_v[$args[0]])) { + $value = $this->_v[$args[0]]; + if ((func_num_args() ==2) && is_array($value)) { + $value = $value[$args[1]]; + } + } else { + $value = ''; + } + echo $value; + } + } + + function render($fname='') { + if ($fname && file_exists($this->_template_path.'/'.$fname)) { + ob_start(); + include $this->_template_path.'/'.$fname; + $this->setContent(ob_get_contents()); + ob_end_clean(); + } + $content = $this->_content; + if (!empty($this->_title)) { + $title = $this->_title; + } else { + $title = $GLOBALS['wizardSeq']->getTitle($this->_op); + } + if (!empty($this->_next)) { + $b_next = $this->_next; + } else if (!$this->_custom_seq) { + $b_next = $GLOBALS['wizardSeq']->getNext($this->_op); + } else { + $b_next = ''; + } + if (!empty($this->_back)) { + $b_back = $this->_back; + } else if (!$this->_custom_seq) { + $b_back = $GLOBALS['wizardSeq']->getBack($this->_op); + } else { + $b_back = ''; + } + if (!empty($this->_reload)) { + $b_reload = $this->_reload; + } else if (!$this->_custom_seq) { + $b_reload = $GLOBALS['wizardSeq']->getReload($this->_op); + } else { + $b_reload = ''; + } + include $this->_base_template_name; + } + function error() { + $content = $this->_content; + if (!empty($this->_title)) { + $title = $this->_title; + } else { + $title = $GLOBALS['wizardSeq']->getTitle($this->_op); + } + if (!empty($this->_next)) { + $b_next = $this->_next; + } else { + $b_next = ''; + } + if (!empty($this->_back)) { + $b_back = $this->_back; + } else { + $b_back = ''; + } + if (!empty($this->_reload)) { + $b_reload = $this->_reload; + } else { + $b_reload = ''; + } + include $this->_base_template_name; + } +} + +class SimpleWizardSequence { + var $_list; + + function add($name, $title='', $next='', $next_btn='', $back='', $back_btn='', $reload='') { + $this->_list[$name]['title'] = $title; + $this->_list[$name]['next'] = $next; + $this->_list[$name]['next_btn'] = $next_btn; + $this->_list[$name]['back'] = $back; + $this->_list[$name]['back_btn'] = $back_btn; + $this->_list[$name]['reload'] = $reload; + } + + function insertAfter($after, $name, $title='', $back='', $back_btn='', $reload='') { + if (!empty($this->_list[$after])) { + $this->_list[$name]['title'] = $title; + $this->_list[$name]['next'] = $this->_list[$after]['next']; + $this->_list[$name]['next_btn'] = $this->_list[$after]['next_btn']; + $this->_list[$after]['next'] = $name; + $this->_list[$after]['next_btn'] = $title; + $this->_list[$name]['back'] = $back; + $this->_list[$name]['back_btn'] = $back_btn; + $this->_list[$name]['reload'] = $reload; + } + } + + function getTitle($name) { + if (!empty($this->_list[$name]['title'])) { + return($this->_list[$name]['title']); + } else { + return ''; + } + } + + function getNext($name) { + if (!empty($this->_list[$name]['next'])||!empty($this->_list[$name]['next_btn'])) { + return(array($this->_list[$name]['next'],$this->_list[$name]['next_btn'])); + } else { + return ''; + } + } + + function getBack($name) { + if (!empty($this->_list[$name]['back'])||!empty($this->_list[$name]['back_btn'])) { + return(array($this->_list[$name]['back'],$this->_list[$name]['back_btn'])); + } else { + return ''; + } + } + + function getReload($name) { + if (!empty($this->_list[$name]['reload'])) { + return($this->_list[$name]['reload']); + } else { + return ''; + } + } +} + Index: xoops2jp/html/install/class/simplewidzard.php diff -u xoops2jp/html/install/class/simplewidzard.php:1.1.2.1 xoops2jp/html/install/class/simplewidzard.php:removed --- xoops2jp/html/install/class/simplewidzard.php:1.1.2.1 Tue Mar 7 22:11:39 2006 +++ xoops2jp/html/install/class/simplewidzard.php Sat Apr 1 10:32:57 2006 @@ -1,202 +0,0 @@ -_template_path = $name; - } - - function setBaseTemplate($name) { - $this->_base_template_name = $name; - } - - function assign($name, $value) { - $this->_v[$name] = $value; - } - - function setContent($value) { - $this->_content = $value; - } - - function setOp($value) { - $this->_op = $value; - } - - function setTitle($value) { - $this->_title = $value; - } - - function setNext($value) { - $this->_next = $value; - $this->_custom_seq = true; - } - - function setBack($value) { - $this->_back = $value; - $this->_custom_seq = true; - } - - function setReload($value) { - $this->_reload = $value; - $this->_custom_seq = true; - } - - function addArray($name, $value) { - if (!isset($this->_v[$name]) || !is_array($this->_v[$name])) { - $this->_v[$name] = array(); - } - $this->_v[$name][] = $value; - } - - function v($name) { - if (!empty($this->_v[$name])) { - return $this->_v[$name]; - } else { - return $false; - } - } - - function e() { - $args = func_get_args(); - if (func_num_args() >0) { - if (!empty($this->_v[$args[0]])) { - $value = $this->_v[$args[0]]; - if ((func_num_args() ==2) && is_array($value)) { - $value = $value[$args[1]]; - } - } else { - $value = ''; - } - echo $value; - } - } - - function render($fname='') { - if ($fname && file_exists($this->_template_path.'/'.$fname)) { - ob_start(); - include $this->_template_path.'/'.$fname; - $this->setContent(ob_get_contents()); - ob_end_clean(); - } - $content = $this->_content; - if (!empty($this->_title)) { - $title = $this->_title; - } else { - $title = $GLOBALS['widzardSeq']->getTitle($this->_op); - } - if (!empty($this->_next)) { - $b_next = $this->_next; - } else if (!$this->_custom_seq) { - $b_next = $GLOBALS['widzardSeq']->getNext($this->_op); - } else { - $b_next = ''; - } - if (!empty($this->_back)) { - $b_back = $this->_back; - } else if (!$this->_custom_seq) { - $b_back = $GLOBALS['widzardSeq']->getBack($this->_op); - } else { - $b_back = ''; - } - if (!empty($this->_reload)) { - $b_reload = $this->_reload; - } else if (!$this->_custom_seq) { - $b_reload = $GLOBALS['widzardSeq']->getReload($this->_op); - } else { - $b_reload = ''; - } - include $this->_base_template_name; - } - function error() { - $content = $this->_content; - if (!empty($this->_title)) { - $title = $this->_title; - } else { - $title = $GLOBALS['widzardSeq']->getTitle($this->_op); - } - if (!empty($this->_next)) { - $b_next = $this->_next; - } else { - $b_next = ''; - } - if (!empty($this->_back)) { - $b_back = $this->_back; - } else { - $b_back = ''; - } - if (!empty($this->_reload)) { - $b_reload = $this->_reload; - } else { - $b_reload = ''; - } - include $this->_base_template_name; - } -} - -class SimpleWidzardSequence { - var $_list; - - function add($name, $title='', $next='', $next_btn='', $back='', $back_btn='', $reload='') { - $this->_list[$name]['title'] = $title; - $this->_list[$name]['next'] = $next; - $this->_list[$name]['next_btn'] = $next_btn; - $this->_list[$name]['back'] = $back; - $this->_list[$name]['back_btn'] = $back_btn; - $this->_list[$name]['reload'] = $reload; - } - - function insertAfter($after, $name, $title='', $back='', $back_btn='', $reload='') { - if (!empty($this->_list[$after])) { - $this->_list[$name]['title'] = $title; - $this->_list[$name]['next'] = $this->_list[$after]['next']; - $this->_list[$name]['next_btn'] = $this->_list[$after]['next_btn']; - $this->_list[$after]['next'] = $name; - $this->_list[$after]['next_btn'] = $title; - $this->_list[$name]['back'] = $back; - $this->_list[$name]['back_btn'] = $back_btn; - $this->_list[$name]['reload'] = $reload; - } - } - - function getTitle($name) { - if (!empty($this->_list[$name]['title'])) { - return($this->_list[$name]['title']); - } else { - return ''; - } - } - - function getNext($name) { - if (!empty($this->_list[$name]['next'])||!empty($this->_list[$name]['next_btn'])) { - return(array($this->_list[$name]['next'],$this->_list[$name]['next_btn'])); - } else { - return ''; - } - } - - function getBack($name) { - if (!empty($this->_list[$name]['back'])||!empty($this->_list[$name]['back_btn'])) { - return(array($this->_list[$name]['back'],$this->_list[$name]['back_btn'])); - } else { - return ''; - } - } - - function getReload($name) { - if (!empty($this->_list[$name]['reload'])) { - return($this->_list[$name]['reload']); - } else { - return ''; - } - } -} - From nobunobu @ users.sourceforge.jp Sat Apr 1 10:32:57 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 1 Apr 2006 10:32:57 +0900 Subject: [xoops-cvslog 2610] CVS update: xoops2jp/html/install/widzards Message-ID: <20060401013257.EF7472AC01F@users.sourceforge.jp> Index: xoops2jp/html/install/widzards/index.html diff -u xoops2jp/html/install/widzards/index.html:1.1.2.1 xoops2jp/html/install/widzards/index.html:removed --- xoops2jp/html/install/widzards/index.html:1.1.2.1 Mon Mar 27 11:41:52 2006 +++ xoops2jp/html/install/widzards/index.html Sat Apr 1 10:32:57 2006 @@ -1 +0,0 @@ - \ No newline at end of file Index: xoops2jp/html/install/widzards/install_checkDB.inc.php diff -u xoops2jp/html/install/widzards/install_checkDB.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_checkDB.inc.php:removed --- xoops2jp/html/install/widzards/install_checkDB.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_checkDB.inc.php Sat Apr 1 10:32:57 2006 @@ -1,32 +0,0 @@ -isConnectable()) { - $widzard->addArray('checks',_NGIMG._INSTALL_L106); - $widzard->addArray('msgs',_INSTALL_L107); - $widzard->setBack(array('start', _INSTALL_L103)); - $widzard->setReload(true); - } else { - $widzard->addArray('checks',_OKIMG._INSTALL_L108); - if (! $dbm->dbExists()) { - $widzard->addArray('checks',_NGIMG.sprintf(_INSTALL_L109, XOOPS_DB_NAME)); - $widzard->addArray('msgs',_INSTALL_L21.'
'.XOOPS_DB_NAME.''); - $widzard->addArray('msgs',_INSTALL_L22); - } else { - $widzard->addArray('checks',_OKIMG.sprintf(_INSTALL_L110, XOOPS_DB_NAME)); - if (!$dbm->tableExists('users')) { - $widzard->addArray('msgs',_INSTALL_L111); - $widzard->setNext(array('createTables', _INSTALL_L40)); - } else if (!$dbm->tableExists('config')) { - $widzard->addArray('msgs',_INSTALL_L130); - $widzard->setNext(array('updateTables', _INSTALL_L14)); - } else { - $widzard->addArray('checks',_NGIMG._INSTALL_L131); - $widzard->setNext(''); - } - } - } - $widzard->render('install_checkDB.tpl.php'); -?> Index: xoops2jp/html/install/widzards/install_createDB.inc.php diff -u xoops2jp/html/install/widzards/install_createDB.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_createDB.inc.php:removed --- xoops2jp/html/install/widzards/install_createDB.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_createDB.inc.php Sat Apr 1 10:32:57 2006 @@ -1,13 +0,0 @@ -createDB()){ - $widzard->setContent('

'._INSTALL_L31.'

'); - $widzard->setNext(array('checkDB', _INSTALL_L104)); - $widzard->setBack(array('start', _INSTALL_L103)); - } else { - $widzard->setContent('

'.sprintf(_INSTALL_L43, XOOPS_DB_NAME).'

'); - } - $widzard->render(); -?> Index: xoops2jp/html/install/widzards/install_createTables.inc.php diff -u xoops2jp/html/install/widzards/install_createTables.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_createTables.inc.php:removed --- xoops2jp/html/install/widzards/install_createTables.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_createTables.inc.php Sat Apr 1 10:32:57 2006 @@ -1,16 +0,0 @@ -queryFromFile('./sql/'.XOOPS_DB_TYPE.'.structure.sql'); - $widzard->assign('reports',$dbm->report()); - if(! $result ){ - $widzard->assign('message',_INSTALL_L114); - $widzard->setBack(array('start', _INSTALL_L103)); - }else{ - $widzard->assign('message',_INSTALL_L115); - } - $widzard->render('install_createTables.tpl.php'); -?> Index: xoops2jp/html/install/widzards/install_dbconfirm.inc.php diff -u xoops2jp/html/install/widzards/install_dbconfirm.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_dbconfirm.inc.php:removed --- xoops2jp/html/install/widzards/install_dbconfirm.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_dbconfirm.inc.php Sat Apr 1 10:32:57 2006 @@ -1,14 +0,0 @@ -checkData(); - if (!empty($content)) { - $widzard->setTitle(_INSTALL_L93); - $widzard->setContent($content . $sm->editform()); - $widzard->setNext(array('dbconfirm',_INSTALL_L91)); - } else { - $widzard->setContent($sm->confirmForm()); - } - $widzard->render(); -?> Index: xoops2jp/html/install/widzards/install_dbform.inc.php diff -u xoops2jp/html/install/widzards/install_dbform.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_dbform.inc.php:removed --- xoops2jp/html/install/widzards/install_dbform.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_dbform.inc.php Sat Apr 1 10:32:57 2006 @@ -1,8 +0,0 @@ -readConstant(); - $widzard->setContent($sm->editform()); - $widzard->render(); -?> Index: xoops2jp/html/install/widzards/install_dbsave.inc.php diff -u xoops2jp/html/install/widzards/install_dbsave.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_dbsave.inc.php:removed --- xoops2jp/html/install/widzards/install_dbsave.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_dbsave.inc.php Sat Apr 1 10:32:57 2006 @@ -1,42 +0,0 @@ -copyDistFile(); - if(! $ret){ - $widzard->setContent(_INSTALL_L60); - $widzard->error(); - exit(); - } - - $mm->setRewrite('XOOPS_ROOT_PATH', $myts->stripSlashesGPC($_POST['root_path'])); - $mm->setRewrite('XOOPS_URL', $myts->stripSlashesGPC($_POST['xoops_url'])); - $mm->setRewrite('XOOPS_DB_TYPE', $myts->stripSlashesGPC($_POST['database'])); - $mm->setRewrite('XOOPS_DB_PREFIX', $myts->stripSlashesGPC($_POST['prefix'])); - $mm->setRewrite('XOOPS_DB_HOST', $myts->stripSlashesGPC($_POST['dbhost'])); - $mm->setRewrite('XOOPS_DB_USER', $myts->stripSlashesGPC($_POST['dbuname'])); - $mm->setRewrite('XOOPS_DB_PASS', $myts->stripSlashesGPC($_POST['dbpass'])); - $mm->setRewrite('XOOPS_DB_NAME', $myts->stripSlashesGPC($_POST['dbname'])); - $mm->setRewrite('XOOPS_DB_PCONNECT', intval($_POST['db_pconnect'])); - $mm->setRewrite('XOOPS_GROUP_ADMIN', 1); - $mm->setRewrite('XOOPS_GROUP_USERS', 2); - $mm->setRewrite('XOOPS_GROUP_ANONYMOUS', 3); - - // Check if XOOPS_CHECK_PATH should be initially set or not - $xoopsPathTrans = isset($_SERVER['PATH_TRANSLATED']) ? $_SERVER['PATH_TRANSLATED'] : $_SERVER['SCRIPT_FILENAME']; - if ( DIRECTORY_SEPARATOR != '/' ) { - // IIS6 doubles the \ chars - $xoopsPathTrans = str_replace( strpos( $xoopsPathTrans, '\\\\', 2 ) ? '\\\\' : DIRECTORY_SEPARATOR, '/', $xoopsPathTrans); - } - $mm->setRewrite('XOOPS_CHECK_PATH', strcasecmp( substr($xoopsPathTrans, 0, strlen(XOOPS_ROOT_PATH)), $_POST['root_path']) ? 0 : 1 ); - - $ret = $mm->doRewrite(); - if(! $ret){ - $widzard->setContent(_INSTALL_L60); - $widzard->error(); - exit(); - } - $widzard->assign('reports', $mm->report()); - $widzard->assign('message',_INSTALL_L62); - $widzard->render('install_dbsave.tpl.php'); -?> Index: xoops2jp/html/install/widzards/install_finish.inc.php diff -u xoops2jp/html/install/widzards/install_finish.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_finish.inc.php:removed --- xoops2jp/html/install/widzards/install_finish.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_finish.inc.php Sat Apr 1 10:32:57 2006 @@ -1,5 +0,0 @@ -assign('finish', $content); - $widzard->render('install_finish.tpl.php'); -?> Index: xoops2jp/html/install/widzards/install_initial.inc.php diff -u xoops2jp/html/install/widzards/install_initial.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_initial.inc.php:removed --- xoops2jp/html/install/widzards/install_initial.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_initial.inc.php Sat Apr 1 10:32:57 2006 @@ -1,5 +0,0 @@ -render('install_initial.tpl.php'); -?> Index: xoops2jp/html/install/widzards/install_insertData.inc.php diff -u xoops2jp/html/install/widzards/install_insertData.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_insertData.inc.php:removed --- xoops2jp/html/install/widzards/install_insertData.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_insertData.inc.php Sat Apr 1 10:32:57 2006 @@ -1,58 +0,0 @@ -stripSlashesGPC(trim($_POST['adminname'])); - $adminpass = $myts->stripSlashesGPC($_POST['adminpass']); - $adminmail = $myts->stripSlashesGPC(trim($_POST['adminmail'])); - - if (!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/i",$adminmail)) { - $widzard->setContent('

'._INSTALL_L73.'

'); - $widzard->setBack(array('', _INSTALL_L112)); - $widzard->error(); - exit(); - } - if ( !isset($adminname) || !isset($adminpass) || !isset($adminmail) || $adminmail == "" || $adminname =="" || $adminpass =="" || $adminpass != $adminpass2) { - $widzard->setContent('

'._INSTALL_L41.'

'); - $widzard->setBack(array('', _INSTALL_L112)); - $widzard->error(); - exit(); - } - - include_once '../mainfile.php'; - include_once './include/makedata.php'; - include_once './class/dbmanager.php'; - $dbm = new db_manager; - include_once './class/cachemanager.php'; - $cm = new cache_manager; - - $language = check_language($language); - if ( file_exists('./language/'.$language.'/install2.php') ) { - include_once './language/'.$language.'/install2.php'; - } elseif ( file_exists('./language/english/install2.php') ) { - include_once './language/english/install2.php'; - $language = 'english'; - } else { - echo 'no language file (install2.php).'; - exit(); - } - - //$tables = array(); - $result = $dbm->queryFromFile('./sql/'.XOOPS_DB_TYPE.'.data.sql'); - - $result = $dbm->queryFromFile('./language/'.$language.'/'.XOOPS_DB_TYPE.'.lang.data.sql'); - - $group = make_groups($dbm); - $result = make_data($dbm, $cm, $adminname, $adminpass, $adminmail, $language, $group); - - $widzard->assign('dbm_reports',$dbm->report()); - $widzard->assign('cm_reports',$cm->report()); - - include_once './class/mainfilemanager.php'; - $mm = new mainfile_manager('../mainfile.php'); - foreach($group as $key => $val){ - $mm->setRewrite($key, intval($val)); - } - $result = $mm->doRewrite(); - $widzard->assign('mm_reports',$mm->report()); - - setcookie('xoops_session', '', time() - 3600); - $widzard->render('install_insertData.tpl.php'); -?> Index: xoops2jp/html/install/widzards/install_langselect.inc.php diff -u xoops2jp/html/install/widzards/install_langselect.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_langselect.inc.php:removed --- xoops2jp/html/install/widzards/install_langselect.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_langselect.inc.php Sat Apr 1 10:32:57 2006 @@ -1,15 +0,0 @@ -addArray('languages', $lang); - if (strtolower($lang) == $language) { - $widzard->addArray('selected','selected="selected"'); - } else { - $widzard->addArray('selected',''); - } - } - $widzard->render('install_langselect.tpl.php'); -?> Index: xoops2jp/html/install/widzards/install_mainfile.inc.php diff -u xoops2jp/html/install/widzards/install_mainfile.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_mainfile.inc.php:removed --- xoops2jp/html/install/widzards/install_mainfile.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_mainfile.inc.php Sat Apr 1 10:32:57 2006 @@ -1,30 +0,0 @@ -addArray('checks', _NGIMG._INSTALL_L95); - } elseif ( XOOPS_ROOT_PATH != $detected ) { - $widzard->addArray('checks', _NGIMG.sprintf(_INSTALL_L96,$detected)); - } else { - $widzard->addArray('checks', _OKIMG._INSTALL_L97); - } - - if(!is_dir(XOOPS_ROOT_PATH)){ - $widzard->addArray('checks', _NGIMG._INSTALL_L99); - } - - if(preg_match('/^http[s]?:\/\/(.*)[^\/]+$/i',XOOPS_URL)){ - $widzard->addArray('checks', _OKIMG._INSTALL_L100); - }else{ - $widzard->addArray('checks', _NGIMG._INSTALL_L101); - } - - $widzard->render('install_mainfile.tpl.php'); -?> Index: xoops2jp/html/install/widzards/install_modcheck.inc.php diff -u xoops2jp/html/install/widzards/install_modcheck.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_modcheck.inc.php:removed --- xoops2jp/html/install/widzards/install_modcheck.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_modcheck.inc.php Sat Apr 1 10:32:57 2006 @@ -1,33 +0,0 @@ -addArray('checks',_NGIMG.sprintf(_INSTALL_L83, $wok)); - $error = true; - }else{ - $widzard->addArray('checks',_OKIMG.sprintf(_INSTALL_L84, $wok)); - } - } - } else { - @chmod('../'.$wok, 0777); - if (! is_writeable('../'.$wok)) { - $widzard->addArray('checks',_NGIMG.sprintf(_INSTALL_L85, $wok)); - $error = true; - }else{ - $widzard->addArray('checks',_OKIMG.sprintf(_INSTALL_L86, $wok)); - } - } - } - - if(! $error) { - $widzard->assign('message',_INSTALL_L87); - }else{ - $widzard->assign('message',_INSTALL_L46); - $widzard->setReload(true); - } - $widzard->render('install_modcheck.tpl.php'); -?> Index: xoops2jp/html/install/widzards/install_siteInit.inc.php diff -u xoops2jp/html/install/widzards/install_siteInit.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_siteInit.inc.php:removed --- xoops2jp/html/install/widzards/install_siteInit.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_siteInit.inc.php Sat Apr 1 10:32:57 2006 @@ -1,4 +0,0 @@ -render('install_siteInit.tpl.php'); -?> Index: xoops2jp/html/install/widzards/install_start.inc.php diff -u xoops2jp/html/install/widzards/install_start.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_start.inc.php:removed --- xoops2jp/html/install/widzards/install_start.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_start.inc.php Sat Apr 1 10:32:57 2006 @@ -1,5 +0,0 @@ -assign('welcome', $content); - $widzard->render('install_start.tpl.php'); -?> Index: xoops2jp/html/install/widzards/install_updateAvatars.inc.php diff -u xoops2jp/html/install/widzards/install_updateAvatars.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_updateAvatars.inc.php:removed --- xoops2jp/html/install/widzards/install_updateAvatars.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateAvatars.inc.php Sat Apr 1 10:32:57 2006 @@ -1,5 +0,0 @@ -'._INSTALL_L151.'

'; - $b_next = array('updateAvatars_go', _INSTALL_L139); - include 'install_tpl.php'; -?> Index: xoops2jp/html/install/widzards/install_updateAvatars_go.inc.php diff -u xoops2jp/html/install/widzards/install_updateAvatars_go.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_updateAvatars_go.inc.php:removed --- xoops2jp/html/install/widzards/install_updateAvatars_go.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateAvatars_go.inc.php Sat Apr 1 10:32:57 2006 @@ -1,57 +0,0 @@ -query("UPDATE ".$xoopsDB->prefix('users')." SET user_avatar='blank.gif'"); - $avt_handler =& xoops_gethandler('avatar'); - if (!defined('XOOPS_UPLOAD_PATH')) { - define('XOOPS_UPLOAD_PATH', '../uploads'); - } - foreach ($avatars as $avatar_file) { - if (preg_match("/^([0-9]+)\.([a-zA-Z]+)$/", $avatar_file, $matched)) { - $user_id = intval($matched[1]); - if ($user_id > 0 && false != $fp = fopen('../images/avatar/users/'.$avatar_file, 'rb')) { - $binary = fread($fp, filesize('../images/avatar/users/'.$avatar_file)); - fclose($fp); - $newavatar = uniqid('cavt').'.'.strtolower($matched[2]); - if (false != $fp = fopen(XOOPS_UPLOAD_PATH.'/'.$newavatar, 'wb')) { - if (-1 != fwrite($fp, $binary)) { - $error = false; - if (!$xoopsDB->query("UPDATE ".$xoopsDB->prefix('users')." SET user_avatar='".$newavatar."' WHERE uid=".$user_id)) { - $error = true; - } else { - $avatar =& $avt_handler->create(); - $avatar->setVar('avatar_file', $newavatar); - $avatar->setVar('avatar_name', 'custom'); - $avatar->setVar('avatar_mimetype', ''); - $avatar->setVar('avatar_display', 1); - $avatar->setVar('avatar_type', 'C'); - if(!$avt_handler->insert($avatar)) { - $error = true; - } else { - $avt_handler->addUser($avatar->getVar('avatar_id'), $user['uid']); - } - } - if (false != $error) { - $content .= _NGIMG.sprintf(_INSTALL_L153, $avatar_file).'
'; - @unlink(XOOPS_UPLOAD_PATH.'/'.$newavatar); - } else { - $content .= _OKIMG.sprintf(_INSTALL_L154, $avatar_file).'
'; - } - } else { - $content .= _NGIMG.sprintf(_INSTALL_L153, $avatar_file).'
'; - $xoopsDB->query("UPDATE ".$xoopsDB->prefix('users')." SET user_avatar='blank.gif' WHERE uid=".$user_id); - } - fclose($fp); - } - } else { - $content .= _NGIMG.sprintf(_INSTALL_L152, $avatar_file).'
'; - } - } - } - - $b_next = array('finish', _INSTALL_L14); - include 'install_tpl.php'; -?> Index: xoops2jp/html/install/widzards/install_updateComments.inc.php diff -u xoops2jp/html/install/widzards/install_updateComments.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_updateComments.inc.php:removed --- xoops2jp/html/install/widzards/install_updateComments.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateComments.inc.php Sat Apr 1 10:32:57 2006 @@ -1,5 +0,0 @@ -"._INSTALL_L149."

\n"; - $b_next = array('updateComments_go', _INSTALL_L138); - include 'install_tpl.php'; -?> Index: xoops2jp/html/install/widzards/install_updateComments_go.inc.php diff -u xoops2jp/html/install/widzards/install_updateComments_go.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_updateComments_go.inc.php:removed --- xoops2jp/html/install/widzards/install_updateComments_go.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateComments_go.inc.php Sat Apr 1 10:32:57 2006 @@ -1,47 +0,0 @@ - 'comments', 'xoopspoll' => 'xoopspollcomments'); - $title = _INSTALL_L147; - $content = ''; - foreach ($old_commentd_mods as $module => $com_table) { - $moduleobj =& $module_handler->getByDirname($module); - if (is_object($moduleobj)) { - $content .= '
'.$moduleobj->getVar('name').'
'; - $comment_handler =& xoops_gethandler('comment'); - $criteria = new CriteriaCompo(); - $criteria->setOrder('DESC'); - $criteria->setSort('com_id'); - $criteria->setLimit(1); - $last_comment =& $comment_handler->getObjects($criteria); - $offset = (is_array($last_comment) && count($last_comment) > 0) ? $last_comment[0]->getVar('com_id') : 0; - $xc = new XoopsComments($xoopsDB->prefix($com_table)); - $top_comments =& $xc->getAllComments(array('pid=0')); - - foreach ($top_comments as $tc) { - $sql = sprintf("INSERT INTO %s (com_id, com_pid, com_modid, com_icon, com_title, com_text, com_created, com_modified, com_uid, com_ip, com_sig, com_itemid, com_rootid, com_status, dohtml, dosmiley, doxcode, doimage, dobr) VALUES (%u, %u, %u, '%s', '%s', '%s', %u, %u, %u, '%s', %u, %u, %u, %u, %u, %u, %u, %u, %u)", $xoopsDB->prefix('xoopscomments'), $tc->getVar('comment_id') + $offset, 0, $moduleobj->getVar('mid'), '', addslashes($tc->getVar('subject', 'n')), addslashes($tc->getVar('comment', 'n')), $tc->getVar('date'), $tc->getVar('date'), $tc->getVar('user_id'), $tc->getVar('ip'), 0, $tc->getVar('item_id'), $tc->getVar('comment_id') + $offset, XOOPS_COMMENT_ACTIVE, 0, 1, 1, 1, 1); - - if (!$xoopsDB->query($sql)) { - $content .= _NGIMG.sprintf(_INSTALL_L146, $tc->getVar('comment_id') + $offset).'
'; - } else { - $content .= _OKIMG.sprintf(_INSTALL_L145, $tc->getVar('comment_id') + $offset).'
'; - $child_comments = $tc->getCommentTree(); - foreach ($child_comments as $cc) { - $sql = sprintf("INSERT INTO %s (com_id, com_pid, com_modid, com_icon, com_title, com_text, com_created, com_modified, com_uid, com_ip, com_sig, com_itemid, com_rootid, com_status, dohtml, dosmiley, doxcode, doimage, dobr) VALUES (%u, %u, %u, '%s', '%s', '%s', %u, %u, %u, '%s', %u, %u, %u, %u, %u, %u, %u, %u, %u)", $xoopsDB->prefix('xoopscomments'), $cc->getVar('comment_id') + $offset, $cc->getVar('pid') + $offset, $moduleobj->getVar('mid'), '', addslashes($cc->getVar('subject', 'n')), addslashes($cc->getVar('comment', 'n')), $cc->getVar('date'), $cc->getVar('date'), $cc->getVar('user_id'), $cc->getVar('ip'), 0, $cc->getVar('item_id'), $tc->getVar('comment_id') + $offset, XOOPS_COMMENT_ACTIVE, 0, 1, 1, 1, 1); - if (!$xoopsDB->query($sql)) { - $content .= _NGIMG.sprintf(_INSTALL_L146, $cc->getVar('comment_id') + $offset).'
'; - } else { - $content .= _OKIMG.sprintf(_INSTALL_L145, $cc->getVar('comment_id') + $offset).'
'; - } - } - } - } - } - } - $xoopsDB->query('ALTER TABLE '.$xoopsDB->prefix('xoopscomments').' CHANGE com_id com_id mediumint(8) unsigned NOT NULL auto_increment PRIMARY KEY'); - $b_next = array('updateSmilies', _INSTALL_L14); - include 'install_tpl.php'; -?> Index: xoops2jp/html/install/widzards/install_updateConfig.inc.php diff -u xoops2jp/html/install/widzards/install_updateConfig.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_updateConfig.inc.php:removed --- xoops2jp/html/install/widzards/install_updateConfig.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateConfig.inc.php Sat Apr 1 10:32:57 2006 @@ -1,5 +0,0 @@ -"._INSTALL_L143."

\n"; - include 'install_tpl.php'; -?> Index: xoops2jp/html/install/widzards/install_updateConfig_go.inc.php diff -u xoops2jp/html/install/widzards/install_updateConfig_go.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_updateConfig_go.inc.php:removed --- xoops2jp/html/install/widzards/install_updateConfig_go.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateConfig_go.inc.php Sat Apr 1 10:32:57 2006 @@ -1,168 +0,0 @@ -insert('config', " VALUES (1, 0, 1, 'sitename', '_MD_AM_SITENAME', '".addslashes($xoopsConfig['sitename'])."', '_MD_AM_SITENAMEDSC', 'textbox', 'text', 0)"); - $dbm->insert('config', " VALUES (2, 0, 1, 'slogan', '_MD_AM_SLOGAN', '".addslashes($xoopsConfig['slogan'])."', '_MD_AM_SLOGANDSC', 'textbox', 'text', 2)"); - $dbm->insert('config', " VALUES (3, 0, 1, 'language', '_MD_AM_LANGUAGE', '".$xoopsConfig['language']."', '_MD_AM_LANGUAGEDSC', 'language', 'other', 4)"); - $dbm->insert('config', " VALUES (4, 0, 1, 'startpage', '_MD_AM_STARTPAGE', '--', '_MD_AM_STARTPAGEDSC', 'startpage', 'other', 6)"); - $dbm->insert('config', " VALUES (5, 0, 1, 'server_TZ', '_MD_AM_SERVERTZ', '".addslashes($xoopsConfig['server_TZ'])."', '_MD_AM_SERVERTZDSC', 'timezone', 'float', 8)"); - $dbm->insert('config', " VALUES (6, 0, 1, 'default_TZ', '_MD_AM_DEFAULTTZ', '".addslashes($xoopsConfig['default_TZ'])."', '_MD_AM_DEFAULTTZDSC', 'timezone', 'float', 10)"); - $dbm->insert('config', " VALUES (7, 0, 1, 'theme_set', '_MD_AM_DTHEME', 'default', '_MD_AM_DTHEMEDSC', 'theme', 'other', 12)"); - $dbm->insert('config', " VALUES (8, 0, 1, 'anonymous', '_MD_AM_ANONNAME', '".addslashes($xoopsConfig['anonymous'])."', '_MD_AM_ANONNAMEDSC', 'textbox', 'text', 15)"); - $dbm->insert('config', " VALUES (9, 0, 1, 'gzip_compression', '_MD_AM_USEGZIP', '".intval($xoopsConfig['gzip_compression'])."', '_MD_AM_USEGZIPDSC', 'yesno', 'int', 16)"); - $dbm->insert('config', " VALUES (10, 0, 1, 'usercookie', '_MD_AM_USERCOOKIE', '".addslashes($xoopsConfig['usercookie'])."', '_MD_AM_USERCOOKIEDSC', 'textbox', 'text', 18)"); - $dbm->insert('config', " VALUES (11, 0, 1, 'session_expire', '_MD_AM_SESSEXPIRE', '15', '_MD_AM_SESSEXPIREDSC', 'textbox', 'int', 22)"); - $dbm->insert('config', " VALUES (12, 0, 1, 'banners', '_MD_AM_BANNERS', '".intval($xoopsConfig['banners'])."', '_MD_AM_BANNERSDSC', 'yesno', 'int', 26)"); - $dbm->insert('config', " VALUES (13, 0, 1, 'debug_mode', '_MD_AM_DEBUGMODE', '1', '_MD_AM_DEBUGMODEDSC', 'select', 'int', 24)"); - $dbm->insert('config', " VALUES (14, 0, 1, 'my_ip', '_MD_AM_MYIP', '".addslashes($xoopsConfig['my_ip'])."', '_MD_AM_MYIPDSC', 'textbox', 'text', 29)"); - $dbm->insert('config', " VALUES (15, 0, 1, 'use_ssl', '_MD_AM_USESSL', '0', '_MD_AM_USESSLDSC', 'yesno', 'int', 30)"); - $dbm->insert('config', " VALUES (16, 0, 1, 'session_name', '_MD_AM_SESSNAME', 'xoops_session', '_MD_AM_SESSNAMEDSC', 'textbox', 'text', 20)"); - $dbm->insert('config', " VALUES (17, 0, 2, 'minpass', '_MD_AM_MINPASS', '".intval($xoopsConfig['minpass'])."', '_MD_AM_MINPASSDSC', 'textbox', 'int', 1)"); - $dbm->insert('config', " VALUES (18, 0, 2, 'minuname', '_MD_AM_MINUNAME', '5', '_MD_AM_MINUNAMEDSC', 'textbox', 'int', 2)"); - $dbm->insert('config', " VALUES (19, 0, 2, 'new_user_notify', '_MD_AM_NEWUNOTIFY', '".intval($xoopsConfig['new_user_notify'])."', '_MD_AM_NEWUNOTIFYDSC', 'yesno', 'int', 4)"); - $dbm->insert('config', " VALUES (20, 0, 2, 'new_user_notify_group', '_MD_AM_NOTIFYTO', ".intval($xoopsConfig['new_user_notify_group']).", '_MD_AM_NOTIFYTODSC', 'group', 'int', 6)"); - $dbm->insert('config', " VALUES (21, 0, 2, 'activation_type', '_MD_AM_ACTVTYPE', '0', '_MD_AM_ACTVTYPEDSC', 'select', 'int', 8)"); - $dbm->insert('config', " VALUES (22, 0, 2, 'activation_group', '_MD_AM_ACTVGROUP', ".XOOPS_GROUP_ADMIN.", '_MD_AM_ACTVGROUPDSC', 'group', 'int', 10)"); - $dbm->insert('config', " VALUES (23, 0, 2, 'uname_test_level', '_MD_AM_UNAMELVL', '".intval($xoopsConfig['uname_test_level'])."', '_MD_AM_UNAMELVLDSC', 'select', 'int', 12)"); - $dbm->insert('config', " VALUES (24, 0, 2, 'avatar_allow_upload', '_MD_AM_AVATARALLOW', '".intval($xoopsConfig['avatar_allow_upload'])."', '_MD_AM_AVATARALWDSC', 'yesno', 'int', 14)"); - $dbm->insert('config', " VALUES (27, 0, 2, 'avatar_width', '_MD_AM_AVATARW', '".intval($xoopsConfig['avatar_width'])."', '_MD_AM_AVATARWDSC', 'textbox', 'int', 16)"); - $dbm->insert('config', " VALUES (28, 0, 2, 'avatar_height', '_MD_AM_AVATARH', '".intval($xoopsConfig['avatar_height'])."', '_MD_AM_AVATARHDSC', 'textbox', 'int', 18)"); - $dbm->insert('config', " VALUES (29, 0, 2, 'avatar_maxsize', '_MD_AM_AVATARMAX', '".intval($xoopsConfig['avatar_maxsize'])."', '_MD_AM_AVATARMAXDSC', 'textbox', 'int', 20)"); - $dbm->insert('config', " VALUES (30, 0, 1, 'adminmail', '_MD_AM_ADMINML', '".addslashes($xoopsConfig['adminmail'])."', '_MD_AM_ADMINMLDSC', 'textbox', 'text', 3)"); - $dbm->insert('config', " VALUES (31, 0, 2, 'self_delete', '_MD_AM_SELFDELETE', '".intval($xoopsConfig['self_delete'])."', '_MD_AM_SELFDELETEDSC', 'yesno', 'int', 22)"); - $dbm->insert('config', " VALUES (32, 0, 1, 'com_mode', '_MD_AM_COMMODE', '".addslashes($xoopsConfig['com_mode'])."', '_MD_AM_COMMODEDSC', 'select', 'text', 34)"); - $dbm->insert('config', " VALUES (33, 0, 1, 'com_order', '_MD_AM_COMORDER', '".intval($xoopsConfig['com_order'])."', '_MD_AM_COMORDERDSC', 'select', 'int', 36)"); - $dbm->insert('config', " VALUES (34, 0, 2, 'bad_unames', '_MD_AM_BADUNAMES', '".addslashes(serialize(array('webmaster', '^xoops', '^admin')))."', '_MD_AM_BADUNAMESDSC', 'textarea', 'array', 24)"); - $dbm->insert('config', " VALUES (35, 0, 2, 'bad_emails', '_MD_AM_BADEMAILS', '".addslashes(serialize(array('xoops.org$')))."', '_MD_AM_BADEMAILSDSC', 'textarea', 'array', 26)"); - $dbm->insert('config', " VALUES (36, 0, 2, 'maxuname', '_MD_AM_MAXUNAME', '10', '_MD_AM_MAXUNAMEDSC', 'textbox', 'int', 3)"); - $dbm->insert('config', " VALUES (37, 0, 1, 'bad_ips', '_MD_AM_BADIPS', '".addslashes(serialize(array('127.0.0.1')))."', '_MD_AM_BADIPSDSC', 'textarea', 'array', 42)"); - $dbm->insert('config', " VALUES (38, 0, 3, 'meta_keywords', '_MD_AM_METAKEY', 'news, technology, headlines, xoops, xoop, nuke, myphpnuke, myphp-nuke, phpnuke, SE, geek, geeks, hacker, hackers, linux, software, download, downloads, free, community, mp3, forum, forums, bulletin, board, boards, bbs, php, survey, poll, polls, kernel, comment, comments, portal, odp, open, source, opensource, FreeSoftware, gnu, gpl, license, Unix, *nix, mysql, sql, database, databases, web site, weblog, guru, module, modules, theme, themes, cms, content management', '_MD_AM_METAKEYDSC', 'textarea', 'text', 0)"); - $dbm->insert('config', " VALUES (39, 0, 3, 'footer', '_MD_AM_FOOTER', 'Powered by XOOPS 2.0 © 2001-2003 The XOOPS Project', '_MD_AM_FOOTERDSC', 'textarea', 'text', 20)"); - $dbm->insert('config', " VALUES (40, 0, 4, 'censor_enable', '_MD_AM_DOCENSOR', '0', '_MD_AM_DOCENSORDSC', 'yesno', 'int', 0)"); - $dbm->insert('config', " VALUES (41, 0, 4, 'censor_words', '_MD_AM_CENSORWRD', '".addslashes(serialize(array('fuck', 'shit')))."', '_MD_AM_CENSORWRDDSC', 'textarea', 'array', 1)"); - $dbm->insert('config', " VALUES (42, 0, 4, 'censor_replace', '_MD_AM_CENSORRPLC', '#OOPS#', '_MD_AM_CENSORRPLCDSC', 'textbox', 'text', 2)"); - $dbm->insert('config', " VALUES (43, 0, 3, 'meta_robots', '_MD_AM_METAROBOTS', 'index,follow', '_MD_AM_METAROBOTSDSC', 'select', 'text', 2)"); - $dbm->insert('config', " VALUES (44, 0, 5, 'enable_search', '_MD_AM_DOSEARCH', '1', '_MD_AM_DOSEARCHDSC', 'yesno', 'int', 0)"); - $dbm->insert('config', " VALUES (45, 0, 5, 'keyword_min', '_MD_AM_MINSEARCH', '5', '_MD_AM_MINSEARCHDSC', 'textbox', 'int', 1)"); - $dbm->insert('config', " VALUES (46, 0, 2, 'avatar_minposts', '_MD_AM_AVATARMP', '0', '_MD_AM_AVATARMPDSC', 'textbox', 'int', 15)"); - $dbm->insert('config', " VALUES (47, 0, 1, 'enable_badips', '_MD_AM_DOBADIPS', '0', '_MD_AM_DOBADIPSDSC', 'yesno', 'int', 40)"); - $dbm->insert('config', " VALUES (48, 0, 3, 'meta_rating', '_MD_AM_METARATING', 'general', '_MD_AM_METARATINGDSC', 'select', 'text', 4)"); - $dbm->insert('config', " VALUES (49, 0, 3, 'meta_author', '_MD_AM_METAAUTHOR', 'XOOPS', '_MD_AM_METAAUTHORDSC', 'textbox', 'text', 6)"); - $dbm->insert('config', " VALUES (50, 0, 3, 'meta_copyright', '_MD_AM_METACOPYR', 'Copyright © 2001-2003', '_MD_AM_METACOPYRDSC', 'textbox', 'text', 8)"); - $dbm->insert('config', " VALUES (51, 0, 3, 'meta_description', '_MD_AM_METADESC', 'XOOPS is a dynamic Object Oriented based open source portal script written in PHP.', '_MD_AM_METADESCDSC', 'textarea', 'text', 1)"); - $dbm->insert('config', " VALUES (52, 0, 2, 'allow_chgmail', '_MD_AM_ALLWCHGMAIL', '0', '_MD_AM_ALLWCHGMAILDSC', 'yesno', 'int', 3)"); - $dbm->insert('config', " VALUES (53, 0, 1, 'use_mysession', '_MD_AM_USEMYSESS', '0', '_MD_AM_USEMYSESSDSC', 'yesno', 'int', 19)"); - $dbm->insert('config', " VALUES (54, 0, 2, 'reg_dispdsclmr', '_MD_AM_DSPDSCLMR', 1, '_MD_AM_DSPDSCLMRDSC', 'yesno', 'int', 30)"); - $dbm->insert('config', " VALUES (55, 0, 2, 'reg_disclaimer', '_MD_AM_REGDSCLMR', '".addslashes(_INSTALL_DISCLMR)."', '_MD_AM_REGDSCLMRDSC', 'textarea', 'text', 32)"); - $dbm->insert('config', " VALUES (56, 0, 2, 'allow_register', '_MD_AM_ALLOWREG', 1, '_MD_AM_ALLOWREGDSC', 'yesno', 'int', 0)"); - $dbm->insert('config', " VALUES (57, 0, 1, 'theme_fromfile', '_MD_AM_THEMEFILE', '0', '_MD_AM_THEMEFILEDSC', 'yesno', 'int', 13)"); - $dbm->insert('config', " VALUES (58, 0, 1, 'closesite', '_MD_AM_CLOSESITE', '0', '_MD_AM_CLOSESITEDSC', 'yesno', 'int', 26)"); - $dbm->insert('config', " VALUES (59, 0, 1, 'closesite_okgrp', '_MD_AM_CLOSESITEOK', '".addslashes(serialize(array('1')))."', '_MD_AM_CLOSESITEOKDSC', 'group_multi', 'array', 27)"); - $dbm->insert('config', " VALUES (60, 0, 1, 'closesite_text', '_MD_AM_CLOSESITETXT', '"._INSTALL_L165."', '_MD_AM_CLOSESITETXTDSC', 'textarea', 'text', 28)"); - $dbm->insert('config', " VALUES (61, 0, 1, 'sslpost_name', '_MD_AM_SSLPOST', 'xoops_ssl', '_MD_AM_SSLPOSTDSC', 'textbox', 'text', 31)"); - $dbm->insert('config', " VALUES (62, 0, 1, 'module_cache', '_MD_AM_MODCACHE', '', '_MD_AM_MODCACHEDSC', 'module_cache', 'array', 50)"); - $dbm->insert('config', " VALUES (63, 0, 1, 'template_set', '_MD_AM_DTPLSET', 'default', '_MD_AM_DTPLSETDSC', 'tplset', 'other', 14)"); - $dbm->insert('config', " VALUES (64,0,6,'mailmethod','_MD_AM_MAILERMETHOD','mail','_MD_AM_MAILERMETHODDESC','select','text',4)"); - $dbm->insert('config', " VALUES (65,0,6,'smtphost','_MD_AM_SMTPHOST','a:1:{i:0;s:0:\"\";}', '_MD_AM_SMTPHOSTDESC','textarea','array',6)"); - $dbm->insert('config', " VALUES (66,0,6,'smtpuser','_MD_AM_SMTPUSER','','_MD_AM_SMTPUSERDESC','textbox','text',7)"); - $dbm->insert('config', " VALUES (67,0,6,'smtppass','_MD_AM_SMTPPASS','','_MD_AM_SMTPPASSDESC','password','text',8)"); - $dbm->insert('config', " VALUES (68,0,6,'sendmailpath','_MD_AM_SENDMAILPATH','/usr/sbin/sendmail','_MD_AM_SENDMAILPATHDESC','textbox','text',5)"); - $dbm->insert('config', " VALUES (69,0,6,'from','_MD_AM_MAILFROM','','_MD_AM_MAILFROMDESC','textbox','text',1)"); - $dbm->insert('config', " VALUES (70,0,6,'fromname','_MD_AM_MAILFROMNAME','','_MD_AM_MAILFROMNAMEDESC','textbox','text',2)"); - $dbm->insert('config', " VALUES (71, 0, 1, 'sslloginlink', '_MD_AM_SSLLINK', 'https://', '_MD_AM_SSLLINKDSC', 'textbox', 'text', 33)"); - $dbm->insert('config', " VALUES (72, 0, 1, 'theme_set_allowed', '_MD_AM_THEMEOK', '".serialize(array('default'))."', '_MD_AM_THEMEOKDSC', 'theme_multi', 'array', 13)"); - $dbm->insert('config', " VALUES (73,0,6,'fromuid','_MD_AM_MAILFROMUID','1','_MD_AM_MAILFROMUIDDESC','user','int',3)"); - - - // default the default theme - - $time = time(); - $dbm->insert('tplset', " VALUES (1, 'default', 'XOOPS Default Theme', '', ".$time.")"); - -// include_once './class/cachemanager.php'; -// $cm = new cache_manager; -// $skinfiles = array('1' => 'skin.html', '2' => 'style.css' -// , '3' => 'styleNN.css','4' => 'styleMAC.css' -// , '5' => 'skin_blockleft.html', '6' => 'skin_blockright.html' -// , '7' => 'skin_blockcenter_l.html', '8' => 'skin_blockcenter_c.html' -// , '9' => 'skin_blockcenter_r.html'); -// foreach ($skinfiles as $key => $skinfile) { -// if(preg_match('/\.css$/', $skinfile)) { -// $type = 'css'; -// }else{ -// $type = 'skin'; -// } -// $dbm->insert('tplfile', " VALUES ($key, 0, '', 'default', '$skinfile', '', $time, $time, '$type')"); - -// $fp = fopen('./templates/default_skin/'.$skinfile, 'r'); -// $skinsource = fread($fp, filesize('./templates/default_skin/'.$skinfile)); -// fclose($fp); -// $dbm->insert('tplsource', " (tpl_id, tpl_source) VALUES ($key, '".addslashes($skinsource)."')"); -// if(preg_match('/\.css$/',$skinfile)) { -// $cm->write($skinfile, $skinsource); -// } -// } - - $dbm->query("INSERT INTO ".$dbm->prefix('group_permission')." (gperm_groupid, gperm_itemid) SELECT groupid, block_id FROM ".$dbm->prefix('groups_blocks_link')); - $dbm->query("UPDATE ".$dbm->prefix('group_permission')." SET gperm_name = 'block_read'"); - $dbm->query("INSERT INTO ".$dbm->prefix('group_permission')." (gperm_groupid, gperm_itemid) SELECT groupid, mid FROM ".$dbm->prefix('groups_modules_link') ." WHERE type='A'"); - $dbm->query("UPDATE ".$dbm->prefix('group_permission')." SET gperm_name = 'module_admin' WHERE gperm_name = ''"); - $dbm->query("INSERT INTO ".$dbm->prefix('group_permission')." (gperm_groupid, gperm_itemid) SELECT groupid, mid FROM ".$dbm->prefix('groups_modules_link')." WHERE type='R'"); - $dbm->query("UPDATE ".$dbm->prefix('group_permission')." SET gperm_name = 'module_read' WHERE gperm_name = ''"); - $dbm->query("UPDATE ".$dbm->prefix('group_permission')." SET gperm_modid = 1"); - $dbm->query('DROP TABLE '.$dbm->prefix('groups_blocks_link')); - $dbm->query('DROP TABLE '.$dbm->prefix('groups_modules_link')); - - // insert some more data - $result = $dbm->queryFromFile('./sql/'.XOOPS_DB_TYPE.'.data.sql'); - - $content = $dbm->report(); - //$content .= $cm->report(); - $b_next = array('updateModules', _INSTALL_L14); - include 'install_tpl.php'; -?> Index: xoops2jp/html/install/widzards/install_updateModules.inc.php diff -u xoops2jp/html/install/widzards/install_updateModules.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_updateModules.inc.php:removed --- xoops2jp/html/install/widzards/install_updateModules.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateModules.inc.php Sat Apr 1 10:32:57 2006 @@ -1,5 +0,0 @@ -"._INSTALL_L141."

\n"; - include 'install_tpl.php'; -?> Index: xoops2jp/html/install/widzards/install_updateModules_go.inc.php diff -u xoops2jp/html/install/widzards/install_updateModules_go.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_updateModules_go.inc.php:removed --- xoops2jp/html/install/widzards/install_updateModules_go.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateModules_go.inc.php Sat Apr 1 10:32:57 2006 @@ -1,248 +0,0 @@ -getObjects(null, true); - foreach (array_keys($modules) as $mid) { - echo '
'.$modules[$mid]->getVar('name').'
'; - $dirname = $modules[$mid]->getVar('dirname'); - if (is_dir(XOOPS_ROOT_PATH.'/modules/'.$dirname)) { - $modules[$mid]->loadInfoAsVar($dirname, false); - if (!$module_handler->insert($modules[$mid])) { - echo '

Could not update '.$modules[$mid]->getVar('name').'

'; - } else { - $newmid = $modules[$mid]->getVar('mid'); - $msgs = array(); - $msgs[] = 'Module data updated.'; - $tplfile_handler =& xoops_gethandler('tplfile'); - $templates = $modules[$mid]->getInfo('templates'); - if ($templates != false) { - $msgs[] = 'Generating templates...'; - foreach ($templates as $tpl) { - $tpl['file'] = trim($tpl['file']); - $tpldata =& xoops_module_gettemplate($dirname, $tpl['file']); - $tplfile =& $tplfile_handler->create(); - $tplfile->setVar('tpl_refid', $newmid); - $tplfile->setVar('tpl_lastimported', 0); - $tplfile->setVar('tpl_lastmodified', time()); - if (preg_match("/\.css$/i", $tpl['file'])) { - $tplfile->setVar('tpl_type', 'css'); - } else { - $tplfile->setVar('tpl_type', 'module'); - //if ($xoopsConfig['default_theme'] == 'default') { - // include_once XOOPS_ROOT_PATH.'/class/template.php'; - // xoops_template_touch($tplfile->getVar('tpl_id')); - //} - } - $tplfile->setVar('tpl_source', $tpldata, true); - $tplfile->setVar('tpl_module', $dirname); - $tplfile->setVar('tpl_tplset', 'default'); - $tplfile->setVar('tpl_file', $tpl['file'], true); - $tplfile->setVar('tpl_desc', $tpl['description'], true); - if (!$tplfile_handler->insert($tplfile)) { - $msgs[] = '  ERROR: Could not insert template '.$tpl['file'].' to the database.'; - } else { - $msgs[] = '  Template '.$tpl['file'].' inserted to the database.'; - } - unset($tpldata); - } - } - $blocks = $modules[$mid]->getInfo('blocks'); - $msgs[] = 'Rebuilding blocks...'; - $showfuncs = array(); - $funcfiles = array(); - if ($blocks != false) { - $count = count($blocks); - include_once(XOOPS_ROOT_PATH.'/class/xoopsblock.php'); - for ( $i = 1; $i <= $count; $i++ ) { - if (isset($blocks[$i]['show_func']) && $blocks[$i]['show_func'] != '' && isset($blocks[$i]['file']) && $blocks[$i]['file'] != '') { - $editfunc = isset($blocks[$i]['edit_func']) ? $blocks[$i]['edit_func'] : ''; - $showfuncs[] = $blocks[$i]['show_func']; - $funcfiles[] = $blocks[$i]['file']; - $template = ''; - if ((isset($blocks[$i]['template']) && trim($blocks[$i]['template']) != '')) { - $content =& xoops_module_gettemplate($dirname, $blocks[$i]['template'], true); - $template = $blocks[$i]['template']; - } - if (!$content) { - $content = ''; - } - $options = ''; - if (isset($blocks[$i]['options']) && $blocks[$i]['options'] != '') { - $options = $blocks[$i]['options']; - } - $sql = "SELECT bid, name FROM ".$xoopsDB->prefix('newblocks')." WHERE mid=".$mid." AND func_num=".$i; - $fresult = $xoopsDB->query($sql); - $fcount = 0; - while ($fblock = $xoopsDB->fetchArray($fresult)) { - $fcount++; - $sql = "UPDATE ".$xoopsDB->prefix("newblocks")." SET name='".addslashes($blocks[$i]['name'])."', title='".addslashes($blocks[$i]['name'])."', dirname='".addslashes($dirname)."', func_file='".addslashes($blocks[$i]['file'])."', show_func='".addslashes($blocks[$i]['show_func'])."', template='".addslashes($template)."', edit_func='".addslashes($editfunc)."', options='".addslashes($options)."', content='', template='".$template."', last_modified=".time()." WHERE bid=".$fblock['bid']; - $result = $xoopsDB->query($sql); - if (!$result) { - $msgs[] = '  ERROR: Could not update '.$fblock['name']; - } else { - $msgs[] = '  Block '.$fblock['name'].' updated. Block ID: '.$fblock['bid'].''; - if ($template != '') { - $tplfile =& $tplfile_handler->create(); - $tplfile->setVar('tpl_refid', $fblock['bid']); - $tplfile->setVar('tpl_source', $content, true); - $tplfile->setVar('tpl_tplset', 'default'); - $tplfile->setVar('tpl_file', $blocks[$i]['template']); - $tplfile->setVar('tpl_module', $dirname); - $tplfile->setVar('tpl_type', 'block'); - $tplfile->setVar('tpl_desc', $blocks[$i]['description'], true); - $tplfile->setVar('tpl_lastimported', 0); - $tplfile->setVar('tpl_lastmodified', time()); - if (!$tplfile_handler->insert($tplfile)) { - $msgs[] = '  ERROR: Could not insert template '.$blocks[$i]['template'].' to the database.'; - } else { - $msgs[] = '  Template '.$blocks[$i]['template'].' inserted to the database.'; - //if ($xoopsConfig['default_theme'] == 'default') { - // if (!xoops_template_touch($tplfile[0]->getVar('tpl_id'))) { - // $msgs[] = '  ERROR: Could not recompile template '.$blocks[$i]['template'].'.'; - // } else { - // $msgs[] = '  Template '.$blocks[$i]['template'].' recompiled.'; - // } - //} - } - } - } - } - if ($fcount == 0) { - $newbid = $xoopsDB->genId($xoopsDB->prefix('newblocks').'_bid_seq'); - $block_name = addslashes($blocks[$i]['name']); - $sql = "INSERT INTO ".$xoopsDB->prefix("newblocks")." (bid, mid, func_num, options, name, title, content, side, weight, visible, block_type, isactive, dirname, func_file, show_func, edit_func, template, last_modified) VALUES (".$newbid.", ".$mid.", ".$i.",'".addslashes($options)."','".$block_name."', '".$block_name."', '', 0, 0, 0, 'M', 1, '".addslashes($dirname)."', '".addslashes($blocks[$i]['file'])."', '".addslashes($blocks[$i]['show_func'])."', '".addslashes($editfunc)."', '".$template."', ".time().")"; - $result = $xoopsDB->query($sql); - if (!$result) { - $msgs[] = '  ERROR: Could not create '.$blocks[$i]['name']; - } else { - if (empty($newbid)) { - $newbid = $xoopsDB->getInsertId(); - } - if ($template != '') { - $tplfile =& $tplfile_handler->create(); - $tplfile->setVar('tpl_module', $dirname); - $tplfile->setVar('tpl_refid', $newbid); - $tplfile->setVar('tpl_source', $content, true); - $tplfile->setVar('tpl_tplset', 'default'); - $tplfile->setVar('tpl_file', $blocks[$i]['template'], true); - $tplfile->setVar('tpl_type', 'block'); - $tplfile->setVar('tpl_lastimported', 0); - $tplfile->setVar('tpl_lastmodified', time()); - $tplfile->setVar('tpl_desc', $blocks[$i]['description'], true); - if (!$tplfile_handler->insert($tplfile)) { - $msgs[] = '  ERROR: Could not insert template '.$blocks[$i]['template'].' to the database.'; - } else { - $msgs[] = '  Template '.$blocks[$i]['template'].' inserted to the database.'; - } - } - $msgs[] = '  Block '.$blocks[$i]['name'].' created. Block ID: '.$newbid.''; - } - } - } - } - } - $block_arr = XoopsBlock::getByModule($mid); - foreach ($block_arr as $block) { - if (!in_array($block->getVar('show_func'), $showfuncs) || !in_array($block->getVar('func_file'), $funcfiles)) { - $sql = sprintf("DELETE FROM %s WHERE bid = %u", $xoopsDB->prefix('newblocks'), $block->getVar('bid')); - if(!$xoopsDB->query($sql)) { - $msgs[] = '  ERROR: Could not delete block '.$block->getVar('name').'. Block ID: '.$block->getVar('bid').''; - } else { - $msgs[] = '  Block '.$block->getVar('name').' deleted. Block ID: '.$block->getVar('bid').''; - } - } - } - - $configs = $modules[$mid]->getInfo('config'); - if ($configs != false) { - if ($modules[$mid]->getVar('hascomments') != 0) { - include_once(XOOPS_ROOT_PATH.'/include/comment_constants.php'); - array_push($configs, array('name' => 'com_rule', 'title' => '_CM_COMRULES', 'description' => '', 'formtype' => 'select', 'valuetype' => 'int', 'default' => 1, 'options' => array('_CM_COMAPPROVEALL' => XOOPS_COMMENT_APPROVEALL, '_CM_COMAPPROVEUSER' => XOOPS_COMMENT_APPROVEUSER, '_CM_COMAPPROVEADMIN' => XOOPS_COMMENT_APPROVEADMIN))); - array_push($configs, array('name' => 'com_anonpost', 'title' => '_CM_COMANONPOST', 'description' => '', 'formtype' => 'yesno', 'valuetype' => 'int', 'default' => 0)); - } - } else { - if ($modules[$mid]->getVar('hascomments') != 0) { - $configs = array(); - include_once(XOOPS_ROOT_PATH.'/include/comment_constants.php'); - $configs[] = array('name' => 'com_rule', 'title' => '_CM_COMRULES', 'description' => '', 'formtype' => 'select', 'valuetype' => 'int', 'default' => 1, 'options' => array('_CM_COMAPPROVEALL' => XOOPS_COMMENT_APPROVEALL, '_CM_COMAPPROVEUSER' => XOOPS_COMMENT_APPROVEUSER, '_CM_COMAPPROVEADMIN' => XOOPS_COMMENT_APPROVEADMIN)); - array_push($configs, array('name' => 'com_anonpost', 'title' => '_CM_COMANONPOST', 'description' => '', 'formtype' => 'yesno', 'valuetype' => 'int', 'default' => 0)); - } - } - // RMV-NOTIFY - if ($modules[$mid]->getVar('hasnotification') != 0) { - if (empty($configs)) { - $configs = array(); - } - include_once(XOOPS_ROOT_PATH.'/include/notification_constants.php'); - $configs[] = array ('name' => 'notification_enabled', 'title' => '_NOT_CONFIG_ENABLED', 'description' => '_NOT_CONFIG_ENABLEDDSC', 'formtype' => 'select', 'valuetype' => 'int', 'default' => XOOPS_NOTIFICATION_ENABLEBOTH, 'options' => $options); - } - - if ($configs != false) { - $msgs[] = 'Adding module config data...'; - $config_handler =& xoops_gethandler('config'); - $order = 0; - foreach ($configs as $config) { - $confobj =& $config_handler->createConfig(); - $confobj->setVar('conf_modid', $newmid); - $confobj->setVar('conf_catid', 0); - $confobj->setVar('conf_name', $config['name']); - $confobj->setVar('conf_title', $config['title'], true); - $confobj->setVar('conf_desc', $config['description'], true); - $confobj->setVar('conf_formtype', $config['formtype']); - $confobj->setVar('conf_valuetype', $config['valuetype']); - $confobj->setVar('conf_value', $config['default'], true); - $confobj->setVar('conf_order', $order); - $confop_msgs = ''; - if (isset($config['options']) && is_array($config['options'])) { - foreach ($config['options'] as $key => $value) { - $confop =& $config_handler->createConfigOption(); - $confop->setVar('confop_name', $key, true); - $confop->setVar('confop_value', $value, true); - $confobj->setConfOptions($confop); - $confop_msgs .= '
    Config option added. Name: '.$key.' Value: '.$value.''; - unset($confop); - } - } - $order++; - if ($config_handler->insertConfig($confobj) != false) { - $msgs[] = '  Config '.$config['name'].' added to the database.'.$confop_msgs; - } else { - $msgs[] = '  ERROR: Could not insert config '.$config['name'].' to the database.'; - } - unset($confobj); - } - unset($configs); - } - foreach ($msgs as $msg) { - echo ''.$msg.'
'; - } - } - // data for table 'block_module_link' - include_once './class/dbmanager.php'; - $dbm = new db_manager; - $sql = 'SELECT bid, side FROM '.$dbm->prefix('newblocks'); - $result = $dbm->query($sql); - - while ($myrow = $dbm->fetchArray($result)) { - if ($myrow['side'] == 0) { - $dbm->insert("block_module_link", " VALUES (".$myrow['bid'].", 0)"); - } else { - $dbm->insert("block_module_link", " VALUES (".$myrow['bid'].", -1)"); - } - } - } - echo '
'; - flush(); - sleep(1); - } - $title = _INSTALL_L142; - $content = "
\n"; - $content .= ob_get_contents(); - $content .= "
\n"; - ob_end_clean(); - $b_next = array('updateComments', _INSTALL_L14); - include 'install_tpl.php'; -?> Index: xoops2jp/html/install/widzards/install_updateSmilies.inc.php diff -u xoops2jp/html/install/widzards/install_updateSmilies.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_updateSmilies.inc.php:removed --- xoops2jp/html/install/widzards/install_updateSmilies.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateSmilies.inc.php Sat Apr 1 10:32:57 2006 @@ -1,5 +0,0 @@ -'._INSTALL_L150.'

'; - $b_next = array('updateSmilies_go', _INSTALL_L140); - include 'install_tpl.php'; -?> Index: xoops2jp/html/install/widzards/install_updateSmilies_go.inc.php diff -u xoops2jp/html/install/widzards/install_updateSmilies_go.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_updateSmilies_go.inc.php:removed --- xoops2jp/html/install/widzards/install_updateSmilies_go.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateSmilies_go.inc.php Sat Apr 1 10:32:57 2006 @@ -1,55 +0,0 @@ -query("SELECT * FROM ".$xoopsDB->prefix('smiles')); - $content = ''; - $title = _INSTALL_L155; - if (!defined('XOOPS_UPLOAD_PATH')) { - define('XOOPS_UPLOAD_PATH', '../uploads'); - } - while ($smiley = $xoopsDB->fetchArray($result)) { - if (file_exists('../images/smilies/'.$smiley['smile_url']) && false != $fp = fopen('../images/smilies/'.$smiley['smile_url'], 'rb')) { - $binary = fread($fp, filesize('../images/smilies/'.$smiley['smile_url'])); - fclose($fp); - if (!preg_match("/\.([a-zA-Z0-9]+)$/", $smiley['smile_url'], $matched)) { - continue; - } - $newsmiley = uniqid('smil').'.'.strtolower($matched[1]); - if (false != $fp = fopen(XOOPS_UPLOAD_PATH.'/'.$newsmiley, 'wb')) { - if (-1 != fwrite($fp, $binary)) { - $xoopsDB->query("UPDATE ".$xoopsDB->prefix('smiles')." SET smile_url='".$newsmiley."' WHERE id=".$smiley['id']); - $content .= _OKIMG.sprintf(_INSTALL_L154, $smiley['smile_url']).'
'; - } else { - $content .= _NGIMG.sprintf(_INSTALL_L153, $smiley['smile_url']).'
'; - } - fclose($fp); - } - } else { - $content .= _OKIMG.sprintf(_INSTALL_L152, $smiley['smile_url']).'
'; - } - } - $result = $xoopsDB->query("SELECT * FROM ".$xoopsDB->prefix('ranks')); - while ($rank = $xoopsDB->fetchArray($result)) { - if (file_exists('../images/ranks/'.$rank['rank_image']) && false != $fp = fopen('../images/ranks/'.$rank['rank_image'], 'rb')) { - $binary = fread($fp, filesize('../images/ranks/'.$rank['rank_image'])); - fclose($fp); - if (!preg_match("/\.([a-zA-Z0-9]+)$/", $rank['rank_image'], $matched)) { - continue; - } - $newrank = uniqid('rank').'.'.strtolower($matched[1]); - if (false != $fp = fopen(XOOPS_UPLOAD_PATH.'/'.$newrank, 'wb')) { - if (-1 != fwrite($fp, $binary)) { - $content .= _OKIMG.sprintf(_INSTALL_L154, $rank['rank_image']).'
'; - $xoopsDB->query("UPDATE ".$xoopsDB->prefix('ranks')." SET rank_image='".$newrank."' WHERE rank_id=".$rank['rank_id']); - } else { - $content .= _NGIMG.sprintf(_INSTALL_L153, $rank['rank_image']).'
'; - } - fclose($fp); - } - } else { - $content .= _OKIMG.sprintf(_INSTALL_L152, $rank['rank_image']).'
'; - } - } - $b_next = array('updateAvatars', _INSTALL_L14); - include 'install_tpl.php'; -?> Index: xoops2jp/html/install/widzards/install_updateTables.inc.php diff -u xoops2jp/html/install/widzards/install_updateTables.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_updateTables.inc.php:removed --- xoops2jp/html/install/widzards/install_updateTables.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateTables.inc.php Sat Apr 1 10:32:57 2006 @@ -1,22 +0,0 @@ -prefix('groups'); - $result = $db->query($sql); - $content = '
'._INSTALL_L157.'
'; - $content .= ''; - while ($myrow = $db->fetchArray($result)) { - if ($myrow['type'] == 'Admin') { - $content .= ''; - } elseif ($myrow['type'] == 'User') { - $content .= ''; - } else { - $content .= ''; - } - } - $content .= '
'._INSTALL_L158.''._INSTALL_L159.''._INSTALL_L160.''._INSTALL_L161.'
'.$myrow['name'].'  
'.$myrow['name'].'  
'.$myrow['name'].'  
'; - $b_back = array(); - $b_next = array('updateTables_go', _INSTALL_L132); - include 'install_tpl.php'; -?> Index: xoops2jp/html/install/widzards/install_updateTables_go.inc.php diff -u xoops2jp/html/install/widzards/install_updateTables_go.inc.php:1.1.2.1 xoops2jp/html/install/widzards/install_updateTables_go.inc.php:removed --- xoops2jp/html/install/widzards/install_updateTables_go.inc.php:1.1.2.1 Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateTables_go.inc.php Sat Apr 1 10:32:57 2006 @@ -1,44 +0,0 @@ -setRewrite('XOOPS_GROUP_ADMIN', $g_webmasters); - $mm->setRewrite('XOOPS_GROUP_USERS', $g_users); - $mm->setRewrite('XOOPS_GROUP_ANONYMOUS', $g_anonymous); - - $ret = $mm->doRewrite(); - if(!$ret){ - $content = _INSTALL_L60; - include 'install_tpl.php'; - exit(); - } - } - if (false != $error) { - $b_back = array(); - $content = _INSTALL_L162; - include 'install_tpl.php'; - break; - } - include_once './class/dbmanager.php'; - $dbm = new db_manager; - if (!$dbm->query("ALTER TABLE ".$dbm->prefix("newblocks")." ADD dirname VARCHAR(50) NOT NULL, ADD func_file VARCHAR(50) NOT NULL, ADD show_func VARCHAR(50) NOT NULL, ADD edit_func VARCHAR(50) NOT NULL")) { - } - $result = $dbm->queryFromFile('./sql/upgrade/'.XOOPS_DB_TYPE.'.structure.sql'); - $content = $dbm->report(); - if (!$result) { - $content .= "

"._INSTALL_L135."

\n"; - $b_back = array(); - } else { - $content .= "

"._INSTALL_L136."

\n"; - $b_next = array('updateConfig', _INSTALL_L14); - } - include 'install_tpl.php'; -?> From nobunobu @ users.sourceforge.jp Sat Apr 1 10:33:00 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 1 Apr 2006 10:33:00 +0900 Subject: [xoops-cvslog 2611] CVS update: xoops2jp/html/install/wizards Message-ID: <20060401013300.F19942AC01F@users.sourceforge.jp> Index: xoops2jp/html/install/wizards/index.html diff -u /dev/null xoops2jp/html/install/wizards/index.html:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/index.html Sat Apr 1 10:33:00 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/install/wizards/install_checkDB.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_checkDB.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_checkDB.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,32 @@ +isConnectable()) { + $wizard->addArray('checks',_NGIMG._INSTALL_L106); + $wizard->addArray('msgs',_INSTALL_L107); + $wizard->setBack(array('start', _INSTALL_L103)); + $wizard->setReload(true); + } else { + $wizard->addArray('checks',_OKIMG._INSTALL_L108); + if (! $dbm->dbExists()) { + $wizard->addArray('checks',_NGIMG.sprintf(_INSTALL_L109, XOOPS_DB_NAME)); + $wizard->addArray('msgs',_INSTALL_L21.'
'.XOOPS_DB_NAME.''); + $wizard->addArray('msgs',_INSTALL_L22); + } else { + $wizard->addArray('checks',_OKIMG.sprintf(_INSTALL_L110, XOOPS_DB_NAME)); + if (!$dbm->tableExists('users')) { + $wizard->addArray('msgs',_INSTALL_L111); + $wizard->setNext(array('createTables', _INSTALL_L40)); + } else if (!$dbm->tableExists('config')) { + $wizard->addArray('msgs',_INSTALL_L130); + $wizard->setNext(array('updateTables', _INSTALL_L14)); + } else { + $wizard->addArray('checks',_NGIMG._INSTALL_L131); + $wizard->setNext(''); + } + } + } + $wizard->render('install_checkDB.tpl.php'); +?> Index: xoops2jp/html/install/wizards/install_createDB.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_createDB.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_createDB.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,13 @@ +createDB()){ + $wizard->setContent('

'._INSTALL_L31.'

'); + $wizard->setNext(array('checkDB', _INSTALL_L104)); + $wizard->setBack(array('start', _INSTALL_L103)); + } else { + $wizard->setContent('

'.sprintf(_INSTALL_L43, XOOPS_DB_NAME).'

'); + } + $wizard->render(); +?> Index: xoops2jp/html/install/wizards/install_createTables.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_createTables.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_createTables.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,16 @@ +queryFromFile('./sql/'.XOOPS_DB_TYPE.'.structure.sql'); + $wizard->assign('reports',$dbm->report()); + if(! $result ){ + $wizard->assign('message',_INSTALL_L114); + $wizard->setBack(array('start', _INSTALL_L103)); + }else{ + $wizard->assign('message',_INSTALL_L115); + } + $wizard->render('install_createTables.tpl.php'); +?> Index: xoops2jp/html/install/wizards/install_dbconfirm.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_dbconfirm.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_dbconfirm.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,14 @@ +checkData(); + if (!empty($content)) { + $wizard->setTitle(_INSTALL_L93); + $wizard->setContent($content . $sm->editform()); + $wizard->setNext(array('dbconfirm',_INSTALL_L91)); + } else { + $wizard->setContent($sm->confirmForm()); + } + $wizard->render(); +?> Index: xoops2jp/html/install/wizards/install_dbform.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_dbform.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_dbform.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,8 @@ +readConstant(); + $wizard->setContent($sm->editform()); + $wizard->render(); +?> Index: xoops2jp/html/install/wizards/install_dbsave.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_dbsave.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_dbsave.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,42 @@ +copyDistFile(); + if(! $ret){ + $wizard->setContent(_INSTALL_L60); + $wizard->error(); + exit(); + } + + $mm->setRewrite('XOOPS_ROOT_PATH', $myts->stripSlashesGPC($_POST['root_path'])); + $mm->setRewrite('XOOPS_URL', $myts->stripSlashesGPC($_POST['xoops_url'])); + $mm->setRewrite('XOOPS_DB_TYPE', $myts->stripSlashesGPC($_POST['database'])); + $mm->setRewrite('XOOPS_DB_PREFIX', $myts->stripSlashesGPC($_POST['prefix'])); + $mm->setRewrite('XOOPS_DB_HOST', $myts->stripSlashesGPC($_POST['dbhost'])); + $mm->setRewrite('XOOPS_DB_USER', $myts->stripSlashesGPC($_POST['dbuname'])); + $mm->setRewrite('XOOPS_DB_PASS', $myts->stripSlashesGPC($_POST['dbpass'])); + $mm->setRewrite('XOOPS_DB_NAME', $myts->stripSlashesGPC($_POST['dbname'])); + $mm->setRewrite('XOOPS_DB_PCONNECT', intval($_POST['db_pconnect'])); + $mm->setRewrite('XOOPS_GROUP_ADMIN', 1); + $mm->setRewrite('XOOPS_GROUP_USERS', 2); + $mm->setRewrite('XOOPS_GROUP_ANONYMOUS', 3); + + // Check if XOOPS_CHECK_PATH should be initially set or not + $xoopsPathTrans = isset($_SERVER['PATH_TRANSLATED']) ? $_SERVER['PATH_TRANSLATED'] : $_SERVER['SCRIPT_FILENAME']; + if ( DIRECTORY_SEPARATOR != '/' ) { + // IIS6 doubles the \ chars + $xoopsPathTrans = str_replace( strpos( $xoopsPathTrans, '\\\\', 2 ) ? '\\\\' : DIRECTORY_SEPARATOR, '/', $xoopsPathTrans); + } + $mm->setRewrite('XOOPS_CHECK_PATH', strcasecmp( substr($xoopsPathTrans, 0, strlen(XOOPS_ROOT_PATH)), $_POST['root_path']) ? 0 : 1 ); + + $ret = $mm->doRewrite(); + if(! $ret){ + $wizard->setContent(_INSTALL_L60); + $wizard->error(); + exit(); + } + $wizard->assign('reports', $mm->report()); + $wizard->assign('message',_INSTALL_L62); + $wizard->render('install_dbsave.tpl.php'); +?> Index: xoops2jp/html/install/wizards/install_finish.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_finish.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_finish.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,5 @@ +assign('finish', $content); + $wizard->render('install_finish.tpl.php'); +?> Index: xoops2jp/html/install/wizards/install_initial.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_initial.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_initial.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,5 @@ +render('install_initial.tpl.php'); +?> Index: xoops2jp/html/install/wizards/install_insertData.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_insertData.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_insertData.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,58 @@ +stripSlashesGPC(trim($_POST['adminname'])); + $adminpass = $myts->stripSlashesGPC($_POST['adminpass']); + $adminmail = $myts->stripSlashesGPC(trim($_POST['adminmail'])); + + if (!preg_match("/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+([\.][a-z0-9-]+)+$/i",$adminmail)) { + $wizard->setContent('

'._INSTALL_L73.'

'); + $wizard->setBack(array('', _INSTALL_L112)); + $wizard->error(); + exit(); + } + if ( !isset($adminname) || !isset($adminpass) || !isset($adminmail) || $adminmail == "" || $adminname =="" || $adminpass =="" || $adminpass != $adminpass2) { + $wizard->setContent('

'._INSTALL_L41.'

'); + $wizard->setBack(array('', _INSTALL_L112)); + $wizard->error(); + exit(); + } + + include_once '../mainfile.php'; + include_once './include/makedata.php'; + include_once './class/dbmanager.php'; + $dbm = new db_manager; + include_once './class/cachemanager.php'; + $cm = new cache_manager; + + $language = check_language($language); + if ( file_exists('./language/'.$language.'/install2.php') ) { + include_once './language/'.$language.'/install2.php'; + } elseif ( file_exists('./language/english/install2.php') ) { + include_once './language/english/install2.php'; + $language = 'english'; + } else { + echo 'no language file (install2.php).'; + exit(); + } + + //$tables = array(); + $result = $dbm->queryFromFile('./sql/'.XOOPS_DB_TYPE.'.data.sql'); + + $result = $dbm->queryFromFile('./language/'.$language.'/'.XOOPS_DB_TYPE.'.lang.data.sql'); + + $group = make_groups($dbm); + $result = make_data($dbm, $cm, $adminname, $adminpass, $adminmail, $language, $group); + + $wizard->assign('dbm_reports',$dbm->report()); + $wizard->assign('cm_reports',$cm->report()); + + include_once './class/mainfilemanager.php'; + $mm = new mainfile_manager('../mainfile.php'); + foreach($group as $key => $val){ + $mm->setRewrite($key, intval($val)); + } + $result = $mm->doRewrite(); + $wizard->assign('mm_reports',$mm->report()); + + setcookie('xoops_session', '', time() - 3600); + $wizard->render('install_insertData.tpl.php'); +?> Index: xoops2jp/html/install/wizards/install_langselect.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_langselect.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_langselect.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,15 @@ +addArray('languages', $lang); + if (strtolower($lang) == $language) { + $wizard->addArray('selected','selected="selected"'); + } else { + $wizard->addArray('selected',''); + } + } + $wizard->render('install_langselect.tpl.php'); +?> Index: xoops2jp/html/install/wizards/install_mainfile.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_mainfile.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_mainfile.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,30 @@ +addArray('checks', _NGIMG._INSTALL_L95); + } elseif ( XOOPS_ROOT_PATH != $detected ) { + $wizard->addArray('checks', _NGIMG.sprintf(_INSTALL_L96,$detected)); + } else { + $wizard->addArray('checks', _OKIMG._INSTALL_L97); + } + + if(!is_dir(XOOPS_ROOT_PATH)){ + $wizard->addArray('checks', _NGIMG._INSTALL_L99); + } + + if(preg_match('/^http[s]?:\/\/(.*)[^\/]+$/i',XOOPS_URL)){ + $wizard->addArray('checks', _OKIMG._INSTALL_L100); + }else{ + $wizard->addArray('checks', _NGIMG._INSTALL_L101); + } + + $wizard->render('install_mainfile.tpl.php'); +?> Index: xoops2jp/html/install/wizards/install_modcheck.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_modcheck.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_modcheck.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,33 @@ +addArray('checks',_NGIMG.sprintf(_INSTALL_L83, $wok)); + $error = true; + }else{ + $wizard->addArray('checks',_OKIMG.sprintf(_INSTALL_L84, $wok)); + } + } + } else { + @chmod('../'.$wok, 0777); + if (! is_writeable('../'.$wok)) { + $wizard->addArray('checks',_NGIMG.sprintf(_INSTALL_L85, $wok)); + $error = true; + }else{ + $wizard->addArray('checks',_OKIMG.sprintf(_INSTALL_L86, $wok)); + } + } + } + + if(! $error) { + $wizard->assign('message',_INSTALL_L87); + }else{ + $wizard->assign('message',_INSTALL_L46); + $wizard->setReload(true); + } + $wizard->render('install_modcheck.tpl.php'); +?> Index: xoops2jp/html/install/wizards/install_siteInit.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_siteInit.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_siteInit.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,4 @@ +render('install_siteInit.tpl.php'); +?> Index: xoops2jp/html/install/wizards/install_start.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_start.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_start.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,5 @@ +assign('welcome', $content); + $wizard->render('install_start.tpl.php'); +?> Index: xoops2jp/html/install/wizards/install_updateAvatars.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_updateAvatars.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_updateAvatars.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,5 @@ +'._INSTALL_L151.'

'; + $b_next = array('updateAvatars_go', _INSTALL_L139); + include 'install_tpl.php'; +?> Index: xoops2jp/html/install/wizards/install_updateAvatars_go.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_updateAvatars_go.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_updateAvatars_go.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,57 @@ +query("UPDATE ".$xoopsDB->prefix('users')." SET user_avatar='blank.gif'"); + $avt_handler =& xoops_gethandler('avatar'); + if (!defined('XOOPS_UPLOAD_PATH')) { + define('XOOPS_UPLOAD_PATH', '../uploads'); + } + foreach ($avatars as $avatar_file) { + if (preg_match("/^([0-9]+)\.([a-zA-Z]+)$/", $avatar_file, $matched)) { + $user_id = intval($matched[1]); + if ($user_id > 0 && false != $fp = fopen('../images/avatar/users/'.$avatar_file, 'rb')) { + $binary = fread($fp, filesize('../images/avatar/users/'.$avatar_file)); + fclose($fp); + $newavatar = uniqid('cavt').'.'.strtolower($matched[2]); + if (false != $fp = fopen(XOOPS_UPLOAD_PATH.'/'.$newavatar, 'wb')) { + if (-1 != fwrite($fp, $binary)) { + $error = false; + if (!$xoopsDB->query("UPDATE ".$xoopsDB->prefix('users')." SET user_avatar='".$newavatar."' WHERE uid=".$user_id)) { + $error = true; + } else { + $avatar =& $avt_handler->create(); + $avatar->setVar('avatar_file', $newavatar); + $avatar->setVar('avatar_name', 'custom'); + $avatar->setVar('avatar_mimetype', ''); + $avatar->setVar('avatar_display', 1); + $avatar->setVar('avatar_type', 'C'); + if(!$avt_handler->insert($avatar)) { + $error = true; + } else { + $avt_handler->addUser($avatar->getVar('avatar_id'), $user['uid']); + } + } + if (false != $error) { + $content .= _NGIMG.sprintf(_INSTALL_L153, $avatar_file).'
'; + @unlink(XOOPS_UPLOAD_PATH.'/'.$newavatar); + } else { + $content .= _OKIMG.sprintf(_INSTALL_L154, $avatar_file).'
'; + } + } else { + $content .= _NGIMG.sprintf(_INSTALL_L153, $avatar_file).'
'; + $xoopsDB->query("UPDATE ".$xoopsDB->prefix('users')." SET user_avatar='blank.gif' WHERE uid=".$user_id); + } + fclose($fp); + } + } else { + $content .= _NGIMG.sprintf(_INSTALL_L152, $avatar_file).'
'; + } + } + } + + $b_next = array('finish', _INSTALL_L14); + include 'install_tpl.php'; +?> Index: xoops2jp/html/install/wizards/install_updateComments.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_updateComments.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_updateComments.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,5 @@ +"._INSTALL_L149."

\n"; + $b_next = array('updateComments_go', _INSTALL_L138); + include 'install_tpl.php'; +?> Index: xoops2jp/html/install/wizards/install_updateComments_go.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_updateComments_go.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_updateComments_go.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,47 @@ + 'comments', 'xoopspoll' => 'xoopspollcomments'); + $title = _INSTALL_L147; + $content = ''; + foreach ($old_commentd_mods as $module => $com_table) { + $moduleobj =& $module_handler->getByDirname($module); + if (is_object($moduleobj)) { + $content .= '
'.$moduleobj->getVar('name').'
'; + $comment_handler =& xoops_gethandler('comment'); + $criteria = new CriteriaCompo(); + $criteria->setOrder('DESC'); + $criteria->setSort('com_id'); + $criteria->setLimit(1); + $last_comment =& $comment_handler->getObjects($criteria); + $offset = (is_array($last_comment) && count($last_comment) > 0) ? $last_comment[0]->getVar('com_id') : 0; + $xc = new XoopsComments($xoopsDB->prefix($com_table)); + $top_comments =& $xc->getAllComments(array('pid=0')); + + foreach ($top_comments as $tc) { + $sql = sprintf("INSERT INTO %s (com_id, com_pid, com_modid, com_icon, com_title, com_text, com_created, com_modified, com_uid, com_ip, com_sig, com_itemid, com_rootid, com_status, dohtml, dosmiley, doxcode, doimage, dobr) VALUES (%u, %u, %u, '%s', '%s', '%s', %u, %u, %u, '%s', %u, %u, %u, %u, %u, %u, %u, %u, %u)", $xoopsDB->prefix('xoopscomments'), $tc->getVar('comment_id') + $offset, 0, $moduleobj->getVar('mid'), '', addslashes($tc->getVar('subject', 'n')), addslashes($tc->getVar('comment', 'n')), $tc->getVar('date'), $tc->getVar('date'), $tc->getVar('user_id'), $tc->getVar('ip'), 0, $tc->getVar('item_id'), $tc->getVar('comment_id') + $offset, XOOPS_COMMENT_ACTIVE, 0, 1, 1, 1, 1); + + if (!$xoopsDB->query($sql)) { + $content .= _NGIMG.sprintf(_INSTALL_L146, $tc->getVar('comment_id') + $offset).'
'; + } else { + $content .= _OKIMG.sprintf(_INSTALL_L145, $tc->getVar('comment_id') + $offset).'
'; + $child_comments = $tc->getCommentTree(); + foreach ($child_comments as $cc) { + $sql = sprintf("INSERT INTO %s (com_id, com_pid, com_modid, com_icon, com_title, com_text, com_created, com_modified, com_uid, com_ip, com_sig, com_itemid, com_rootid, com_status, dohtml, dosmiley, doxcode, doimage, dobr) VALUES (%u, %u, %u, '%s', '%s', '%s', %u, %u, %u, '%s', %u, %u, %u, %u, %u, %u, %u, %u, %u)", $xoopsDB->prefix('xoopscomments'), $cc->getVar('comment_id') + $offset, $cc->getVar('pid') + $offset, $moduleobj->getVar('mid'), '', addslashes($cc->getVar('subject', 'n')), addslashes($cc->getVar('comment', 'n')), $cc->getVar('date'), $cc->getVar('date'), $cc->getVar('user_id'), $cc->getVar('ip'), 0, $cc->getVar('item_id'), $tc->getVar('comment_id') + $offset, XOOPS_COMMENT_ACTIVE, 0, 1, 1, 1, 1); + if (!$xoopsDB->query($sql)) { + $content .= _NGIMG.sprintf(_INSTALL_L146, $cc->getVar('comment_id') + $offset).'
'; + } else { + $content .= _OKIMG.sprintf(_INSTALL_L145, $cc->getVar('comment_id') + $offset).'
'; + } + } + } + } + } + } + $xoopsDB->query('ALTER TABLE '.$xoopsDB->prefix('xoopscomments').' CHANGE com_id com_id mediumint(8) unsigned NOT NULL auto_increment PRIMARY KEY'); + $b_next = array('updateSmilies', _INSTALL_L14); + include 'install_tpl.php'; +?> Index: xoops2jp/html/install/wizards/install_updateConfig.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_updateConfig.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_updateConfig.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,5 @@ +"._INSTALL_L143."

\n"; + include 'install_tpl.php'; +?> Index: xoops2jp/html/install/wizards/install_updateConfig_go.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_updateConfig_go.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_updateConfig_go.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,168 @@ +insert('config', " VALUES (1, 0, 1, 'sitename', '_MD_AM_SITENAME', '".addslashes($xoopsConfig['sitename'])."', '_MD_AM_SITENAMEDSC', 'textbox', 'text', 0)"); + $dbm->insert('config', " VALUES (2, 0, 1, 'slogan', '_MD_AM_SLOGAN', '".addslashes($xoopsConfig['slogan'])."', '_MD_AM_SLOGANDSC', 'textbox', 'text', 2)"); + $dbm->insert('config', " VALUES (3, 0, 1, 'language', '_MD_AM_LANGUAGE', '".$xoopsConfig['language']."', '_MD_AM_LANGUAGEDSC', 'language', 'other', 4)"); + $dbm->insert('config', " VALUES (4, 0, 1, 'startpage', '_MD_AM_STARTPAGE', '--', '_MD_AM_STARTPAGEDSC', 'startpage', 'other', 6)"); + $dbm->insert('config', " VALUES (5, 0, 1, 'server_TZ', '_MD_AM_SERVERTZ', '".addslashes($xoopsConfig['server_TZ'])."', '_MD_AM_SERVERTZDSC', 'timezone', 'float', 8)"); + $dbm->insert('config', " VALUES (6, 0, 1, 'default_TZ', '_MD_AM_DEFAULTTZ', '".addslashes($xoopsConfig['default_TZ'])."', '_MD_AM_DEFAULTTZDSC', 'timezone', 'float', 10)"); + $dbm->insert('config', " VALUES (7, 0, 1, 'theme_set', '_MD_AM_DTHEME', 'default', '_MD_AM_DTHEMEDSC', 'theme', 'other', 12)"); + $dbm->insert('config', " VALUES (8, 0, 1, 'anonymous', '_MD_AM_ANONNAME', '".addslashes($xoopsConfig['anonymous'])."', '_MD_AM_ANONNAMEDSC', 'textbox', 'text', 15)"); + $dbm->insert('config', " VALUES (9, 0, 1, 'gzip_compression', '_MD_AM_USEGZIP', '".intval($xoopsConfig['gzip_compression'])."', '_MD_AM_USEGZIPDSC', 'yesno', 'int', 16)"); + $dbm->insert('config', " VALUES (10, 0, 1, 'usercookie', '_MD_AM_USERCOOKIE', '".addslashes($xoopsConfig['usercookie'])."', '_MD_AM_USERCOOKIEDSC', 'textbox', 'text', 18)"); + $dbm->insert('config', " VALUES (11, 0, 1, 'session_expire', '_MD_AM_SESSEXPIRE', '15', '_MD_AM_SESSEXPIREDSC', 'textbox', 'int', 22)"); + $dbm->insert('config', " VALUES (12, 0, 1, 'banners', '_MD_AM_BANNERS', '".intval($xoopsConfig['banners'])."', '_MD_AM_BANNERSDSC', 'yesno', 'int', 26)"); + $dbm->insert('config', " VALUES (13, 0, 1, 'debug_mode', '_MD_AM_DEBUGMODE', '1', '_MD_AM_DEBUGMODEDSC', 'select', 'int', 24)"); + $dbm->insert('config', " VALUES (14, 0, 1, 'my_ip', '_MD_AM_MYIP', '".addslashes($xoopsConfig['my_ip'])."', '_MD_AM_MYIPDSC', 'textbox', 'text', 29)"); + $dbm->insert('config', " VALUES (15, 0, 1, 'use_ssl', '_MD_AM_USESSL', '0', '_MD_AM_USESSLDSC', 'yesno', 'int', 30)"); + $dbm->insert('config', " VALUES (16, 0, 1, 'session_name', '_MD_AM_SESSNAME', 'xoops_session', '_MD_AM_SESSNAMEDSC', 'textbox', 'text', 20)"); + $dbm->insert('config', " VALUES (17, 0, 2, 'minpass', '_MD_AM_MINPASS', '".intval($xoopsConfig['minpass'])."', '_MD_AM_MINPASSDSC', 'textbox', 'int', 1)"); + $dbm->insert('config', " VALUES (18, 0, 2, 'minuname', '_MD_AM_MINUNAME', '5', '_MD_AM_MINUNAMEDSC', 'textbox', 'int', 2)"); + $dbm->insert('config', " VALUES (19, 0, 2, 'new_user_notify', '_MD_AM_NEWUNOTIFY', '".intval($xoopsConfig['new_user_notify'])."', '_MD_AM_NEWUNOTIFYDSC', 'yesno', 'int', 4)"); + $dbm->insert('config', " VALUES (20, 0, 2, 'new_user_notify_group', '_MD_AM_NOTIFYTO', ".intval($xoopsConfig['new_user_notify_group']).", '_MD_AM_NOTIFYTODSC', 'group', 'int', 6)"); + $dbm->insert('config', " VALUES (21, 0, 2, 'activation_type', '_MD_AM_ACTVTYPE', '0', '_MD_AM_ACTVTYPEDSC', 'select', 'int', 8)"); + $dbm->insert('config', " VALUES (22, 0, 2, 'activation_group', '_MD_AM_ACTVGROUP', ".XOOPS_GROUP_ADMIN.", '_MD_AM_ACTVGROUPDSC', 'group', 'int', 10)"); + $dbm->insert('config', " VALUES (23, 0, 2, 'uname_test_level', '_MD_AM_UNAMELVL', '".intval($xoopsConfig['uname_test_level'])."', '_MD_AM_UNAMELVLDSC', 'select', 'int', 12)"); + $dbm->insert('config', " VALUES (24, 0, 2, 'avatar_allow_upload', '_MD_AM_AVATARALLOW', '".intval($xoopsConfig['avatar_allow_upload'])."', '_MD_AM_AVATARALWDSC', 'yesno', 'int', 14)"); + $dbm->insert('config', " VALUES (27, 0, 2, 'avatar_width', '_MD_AM_AVATARW', '".intval($xoopsConfig['avatar_width'])."', '_MD_AM_AVATARWDSC', 'textbox', 'int', 16)"); + $dbm->insert('config', " VALUES (28, 0, 2, 'avatar_height', '_MD_AM_AVATARH', '".intval($xoopsConfig['avatar_height'])."', '_MD_AM_AVATARHDSC', 'textbox', 'int', 18)"); + $dbm->insert('config', " VALUES (29, 0, 2, 'avatar_maxsize', '_MD_AM_AVATARMAX', '".intval($xoopsConfig['avatar_maxsize'])."', '_MD_AM_AVATARMAXDSC', 'textbox', 'int', 20)"); + $dbm->insert('config', " VALUES (30, 0, 1, 'adminmail', '_MD_AM_ADMINML', '".addslashes($xoopsConfig['adminmail'])."', '_MD_AM_ADMINMLDSC', 'textbox', 'text', 3)"); + $dbm->insert('config', " VALUES (31, 0, 2, 'self_delete', '_MD_AM_SELFDELETE', '".intval($xoopsConfig['self_delete'])."', '_MD_AM_SELFDELETEDSC', 'yesno', 'int', 22)"); + $dbm->insert('config', " VALUES (32, 0, 1, 'com_mode', '_MD_AM_COMMODE', '".addslashes($xoopsConfig['com_mode'])."', '_MD_AM_COMMODEDSC', 'select', 'text', 34)"); + $dbm->insert('config', " VALUES (33, 0, 1, 'com_order', '_MD_AM_COMORDER', '".intval($xoopsConfig['com_order'])."', '_MD_AM_COMORDERDSC', 'select', 'int', 36)"); + $dbm->insert('config', " VALUES (34, 0, 2, 'bad_unames', '_MD_AM_BADUNAMES', '".addslashes(serialize(array('webmaster', '^xoops', '^admin')))."', '_MD_AM_BADUNAMESDSC', 'textarea', 'array', 24)"); + $dbm->insert('config', " VALUES (35, 0, 2, 'bad_emails', '_MD_AM_BADEMAILS', '".addslashes(serialize(array('xoops.org$')))."', '_MD_AM_BADEMAILSDSC', 'textarea', 'array', 26)"); + $dbm->insert('config', " VALUES (36, 0, 2, 'maxuname', '_MD_AM_MAXUNAME', '10', '_MD_AM_MAXUNAMEDSC', 'textbox', 'int', 3)"); + $dbm->insert('config', " VALUES (37, 0, 1, 'bad_ips', '_MD_AM_BADIPS', '".addslashes(serialize(array('127.0.0.1')))."', '_MD_AM_BADIPSDSC', 'textarea', 'array', 42)"); + $dbm->insert('config', " VALUES (38, 0, 3, 'meta_keywords', '_MD_AM_METAKEY', 'news, technology, headlines, xoops, xoop, nuke, myphpnuke, myphp-nuke, phpnuke, SE, geek, geeks, hacker, hackers, linux, software, download, downloads, free, community, mp3, forum, forums, bulletin, board, boards, bbs, php, survey, poll, polls, kernel, comment, comments, portal, odp, open, source, opensource, FreeSoftware, gnu, gpl, license, Unix, *nix, mysql, sql, database, databases, web site, weblog, guru, module, modules, theme, themes, cms, content management', '_MD_AM_METAKEYDSC', 'textarea', 'text', 0)"); + $dbm->insert('config', " VALUES (39, 0, 3, 'footer', '_MD_AM_FOOTER', 'Powered by XOOPS 2.0 © 2001-2003 The XOOPS Project', '_MD_AM_FOOTERDSC', 'textarea', 'text', 20)"); + $dbm->insert('config', " VALUES (40, 0, 4, 'censor_enable', '_MD_AM_DOCENSOR', '0', '_MD_AM_DOCENSORDSC', 'yesno', 'int', 0)"); + $dbm->insert('config', " VALUES (41, 0, 4, 'censor_words', '_MD_AM_CENSORWRD', '".addslashes(serialize(array('fuck', 'shit')))."', '_MD_AM_CENSORWRDDSC', 'textarea', 'array', 1)"); + $dbm->insert('config', " VALUES (42, 0, 4, 'censor_replace', '_MD_AM_CENSORRPLC', '#OOPS#', '_MD_AM_CENSORRPLCDSC', 'textbox', 'text', 2)"); + $dbm->insert('config', " VALUES (43, 0, 3, 'meta_robots', '_MD_AM_METAROBOTS', 'index,follow', '_MD_AM_METAROBOTSDSC', 'select', 'text', 2)"); + $dbm->insert('config', " VALUES (44, 0, 5, 'enable_search', '_MD_AM_DOSEARCH', '1', '_MD_AM_DOSEARCHDSC', 'yesno', 'int', 0)"); + $dbm->insert('config', " VALUES (45, 0, 5, 'keyword_min', '_MD_AM_MINSEARCH', '5', '_MD_AM_MINSEARCHDSC', 'textbox', 'int', 1)"); + $dbm->insert('config', " VALUES (46, 0, 2, 'avatar_minposts', '_MD_AM_AVATARMP', '0', '_MD_AM_AVATARMPDSC', 'textbox', 'int', 15)"); + $dbm->insert('config', " VALUES (47, 0, 1, 'enable_badips', '_MD_AM_DOBADIPS', '0', '_MD_AM_DOBADIPSDSC', 'yesno', 'int', 40)"); + $dbm->insert('config', " VALUES (48, 0, 3, 'meta_rating', '_MD_AM_METARATING', 'general', '_MD_AM_METARATINGDSC', 'select', 'text', 4)"); + $dbm->insert('config', " VALUES (49, 0, 3, 'meta_author', '_MD_AM_METAAUTHOR', 'XOOPS', '_MD_AM_METAAUTHORDSC', 'textbox', 'text', 6)"); + $dbm->insert('config', " VALUES (50, 0, 3, 'meta_copyright', '_MD_AM_METACOPYR', 'Copyright © 2001-2003', '_MD_AM_METACOPYRDSC', 'textbox', 'text', 8)"); + $dbm->insert('config', " VALUES (51, 0, 3, 'meta_description', '_MD_AM_METADESC', 'XOOPS is a dynamic Object Oriented based open source portal script written in PHP.', '_MD_AM_METADESCDSC', 'textarea', 'text', 1)"); + $dbm->insert('config', " VALUES (52, 0, 2, 'allow_chgmail', '_MD_AM_ALLWCHGMAIL', '0', '_MD_AM_ALLWCHGMAILDSC', 'yesno', 'int', 3)"); + $dbm->insert('config', " VALUES (53, 0, 1, 'use_mysession', '_MD_AM_USEMYSESS', '0', '_MD_AM_USEMYSESSDSC', 'yesno', 'int', 19)"); + $dbm->insert('config', " VALUES (54, 0, 2, 'reg_dispdsclmr', '_MD_AM_DSPDSCLMR', 1, '_MD_AM_DSPDSCLMRDSC', 'yesno', 'int', 30)"); + $dbm->insert('config', " VALUES (55, 0, 2, 'reg_disclaimer', '_MD_AM_REGDSCLMR', '".addslashes(_INSTALL_DISCLMR)."', '_MD_AM_REGDSCLMRDSC', 'textarea', 'text', 32)"); + $dbm->insert('config', " VALUES (56, 0, 2, 'allow_register', '_MD_AM_ALLOWREG', 1, '_MD_AM_ALLOWREGDSC', 'yesno', 'int', 0)"); + $dbm->insert('config', " VALUES (57, 0, 1, 'theme_fromfile', '_MD_AM_THEMEFILE', '0', '_MD_AM_THEMEFILEDSC', 'yesno', 'int', 13)"); + $dbm->insert('config', " VALUES (58, 0, 1, 'closesite', '_MD_AM_CLOSESITE', '0', '_MD_AM_CLOSESITEDSC', 'yesno', 'int', 26)"); + $dbm->insert('config', " VALUES (59, 0, 1, 'closesite_okgrp', '_MD_AM_CLOSESITEOK', '".addslashes(serialize(array('1')))."', '_MD_AM_CLOSESITEOKDSC', 'group_multi', 'array', 27)"); + $dbm->insert('config', " VALUES (60, 0, 1, 'closesite_text', '_MD_AM_CLOSESITETXT', '"._INSTALL_L165."', '_MD_AM_CLOSESITETXTDSC', 'textarea', 'text', 28)"); + $dbm->insert('config', " VALUES (61, 0, 1, 'sslpost_name', '_MD_AM_SSLPOST', 'xoops_ssl', '_MD_AM_SSLPOSTDSC', 'textbox', 'text', 31)"); + $dbm->insert('config', " VALUES (62, 0, 1, 'module_cache', '_MD_AM_MODCACHE', '', '_MD_AM_MODCACHEDSC', 'module_cache', 'array', 50)"); + $dbm->insert('config', " VALUES (63, 0, 1, 'template_set', '_MD_AM_DTPLSET', 'default', '_MD_AM_DTPLSETDSC', 'tplset', 'other', 14)"); + $dbm->insert('config', " VALUES (64,0,6,'mailmethod','_MD_AM_MAILERMETHOD','mail','_MD_AM_MAILERMETHODDESC','select','text',4)"); + $dbm->insert('config', " VALUES (65,0,6,'smtphost','_MD_AM_SMTPHOST','a:1:{i:0;s:0:\"\";}', '_MD_AM_SMTPHOSTDESC','textarea','array',6)"); + $dbm->insert('config', " VALUES (66,0,6,'smtpuser','_MD_AM_SMTPUSER','','_MD_AM_SMTPUSERDESC','textbox','text',7)"); + $dbm->insert('config', " VALUES (67,0,6,'smtppass','_MD_AM_SMTPPASS','','_MD_AM_SMTPPASSDESC','password','text',8)"); + $dbm->insert('config', " VALUES (68,0,6,'sendmailpath','_MD_AM_SENDMAILPATH','/usr/sbin/sendmail','_MD_AM_SENDMAILPATHDESC','textbox','text',5)"); + $dbm->insert('config', " VALUES (69,0,6,'from','_MD_AM_MAILFROM','','_MD_AM_MAILFROMDESC','textbox','text',1)"); + $dbm->insert('config', " VALUES (70,0,6,'fromname','_MD_AM_MAILFROMNAME','','_MD_AM_MAILFROMNAMEDESC','textbox','text',2)"); + $dbm->insert('config', " VALUES (71, 0, 1, 'sslloginlink', '_MD_AM_SSLLINK', 'https://', '_MD_AM_SSLLINKDSC', 'textbox', 'text', 33)"); + $dbm->insert('config', " VALUES (72, 0, 1, 'theme_set_allowed', '_MD_AM_THEMEOK', '".serialize(array('default'))."', '_MD_AM_THEMEOKDSC', 'theme_multi', 'array', 13)"); + $dbm->insert('config', " VALUES (73,0,6,'fromuid','_MD_AM_MAILFROMUID','1','_MD_AM_MAILFROMUIDDESC','user','int',3)"); + + + // default the default theme + + $time = time(); + $dbm->insert('tplset', " VALUES (1, 'default', 'XOOPS Default Theme', '', ".$time.")"); + +// include_once './class/cachemanager.php'; +// $cm = new cache_manager; +// $skinfiles = array('1' => 'skin.html', '2' => 'style.css' +// , '3' => 'styleNN.css','4' => 'styleMAC.css' +// , '5' => 'skin_blockleft.html', '6' => 'skin_blockright.html' +// , '7' => 'skin_blockcenter_l.html', '8' => 'skin_blockcenter_c.html' +// , '9' => 'skin_blockcenter_r.html'); +// foreach ($skinfiles as $key => $skinfile) { +// if(preg_match('/\.css$/', $skinfile)) { +// $type = 'css'; +// }else{ +// $type = 'skin'; +// } +// $dbm->insert('tplfile', " VALUES ($key, 0, '', 'default', '$skinfile', '', $time, $time, '$type')"); + +// $fp = fopen('./templates/default_skin/'.$skinfile, 'r'); +// $skinsource = fread($fp, filesize('./templates/default_skin/'.$skinfile)); +// fclose($fp); +// $dbm->insert('tplsource', " (tpl_id, tpl_source) VALUES ($key, '".addslashes($skinsource)."')"); +// if(preg_match('/\.css$/',$skinfile)) { +// $cm->write($skinfile, $skinsource); +// } +// } + + $dbm->query("INSERT INTO ".$dbm->prefix('group_permission')." (gperm_groupid, gperm_itemid) SELECT groupid, block_id FROM ".$dbm->prefix('groups_blocks_link')); + $dbm->query("UPDATE ".$dbm->prefix('group_permission')." SET gperm_name = 'block_read'"); + $dbm->query("INSERT INTO ".$dbm->prefix('group_permission')." (gperm_groupid, gperm_itemid) SELECT groupid, mid FROM ".$dbm->prefix('groups_modules_link') ." WHERE type='A'"); + $dbm->query("UPDATE ".$dbm->prefix('group_permission')." SET gperm_name = 'module_admin' WHERE gperm_name = ''"); + $dbm->query("INSERT INTO ".$dbm->prefix('group_permission')." (gperm_groupid, gperm_itemid) SELECT groupid, mid FROM ".$dbm->prefix('groups_modules_link')." WHERE type='R'"); + $dbm->query("UPDATE ".$dbm->prefix('group_permission')." SET gperm_name = 'module_read' WHERE gperm_name = ''"); + $dbm->query("UPDATE ".$dbm->prefix('group_permission')." SET gperm_modid = 1"); + $dbm->query('DROP TABLE '.$dbm->prefix('groups_blocks_link')); + $dbm->query('DROP TABLE '.$dbm->prefix('groups_modules_link')); + + // insert some more data + $result = $dbm->queryFromFile('./sql/'.XOOPS_DB_TYPE.'.data.sql'); + + $content = $dbm->report(); + //$content .= $cm->report(); + $b_next = array('updateModules', _INSTALL_L14); + include 'install_tpl.php'; +?> Index: xoops2jp/html/install/wizards/install_updateModules.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_updateModules.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_updateModules.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,5 @@ +"._INSTALL_L141."

\n"; + include 'install_tpl.php'; +?> Index: xoops2jp/html/install/wizards/install_updateModules_go.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_updateModules_go.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_updateModules_go.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,248 @@ +getObjects(null, true); + foreach (array_keys($modules) as $mid) { + echo '
'.$modules[$mid]->getVar('name').'
'; + $dirname = $modules[$mid]->getVar('dirname'); + if (is_dir(XOOPS_ROOT_PATH.'/modules/'.$dirname)) { + $modules[$mid]->loadInfoAsVar($dirname, false); + if (!$module_handler->insert($modules[$mid])) { + echo '

Could not update '.$modules[$mid]->getVar('name').'

'; + } else { + $newmid = $modules[$mid]->getVar('mid'); + $msgs = array(); + $msgs[] = 'Module data updated.'; + $tplfile_handler =& xoops_gethandler('tplfile'); + $templates = $modules[$mid]->getInfo('templates'); + if ($templates != false) { + $msgs[] = 'Generating templates...'; + foreach ($templates as $tpl) { + $tpl['file'] = trim($tpl['file']); + $tpldata =& xoops_module_gettemplate($dirname, $tpl['file']); + $tplfile =& $tplfile_handler->create(); + $tplfile->setVar('tpl_refid', $newmid); + $tplfile->setVar('tpl_lastimported', 0); + $tplfile->setVar('tpl_lastmodified', time()); + if (preg_match("/\.css$/i", $tpl['file'])) { + $tplfile->setVar('tpl_type', 'css'); + } else { + $tplfile->setVar('tpl_type', 'module'); + //if ($xoopsConfig['default_theme'] == 'default') { + // include_once XOOPS_ROOT_PATH.'/class/template.php'; + // xoops_template_touch($tplfile->getVar('tpl_id')); + //} + } + $tplfile->setVar('tpl_source', $tpldata, true); + $tplfile->setVar('tpl_module', $dirname); + $tplfile->setVar('tpl_tplset', 'default'); + $tplfile->setVar('tpl_file', $tpl['file'], true); + $tplfile->setVar('tpl_desc', $tpl['description'], true); + if (!$tplfile_handler->insert($tplfile)) { + $msgs[] = '  ERROR: Could not insert template '.$tpl['file'].' to the database.'; + } else { + $msgs[] = '  Template '.$tpl['file'].' inserted to the database.'; + } + unset($tpldata); + } + } + $blocks = $modules[$mid]->getInfo('blocks'); + $msgs[] = 'Rebuilding blocks...'; + $showfuncs = array(); + $funcfiles = array(); + if ($blocks != false) { + $count = count($blocks); + include_once(XOOPS_ROOT_PATH.'/class/xoopsblock.php'); + for ( $i = 1; $i <= $count; $i++ ) { + if (isset($blocks[$i]['show_func']) && $blocks[$i]['show_func'] != '' && isset($blocks[$i]['file']) && $blocks[$i]['file'] != '') { + $editfunc = isset($blocks[$i]['edit_func']) ? $blocks[$i]['edit_func'] : ''; + $showfuncs[] = $blocks[$i]['show_func']; + $funcfiles[] = $blocks[$i]['file']; + $template = ''; + if ((isset($blocks[$i]['template']) && trim($blocks[$i]['template']) != '')) { + $content =& xoops_module_gettemplate($dirname, $blocks[$i]['template'], true); + $template = $blocks[$i]['template']; + } + if (!$content) { + $content = ''; + } + $options = ''; + if (isset($blocks[$i]['options']) && $blocks[$i]['options'] != '') { + $options = $blocks[$i]['options']; + } + $sql = "SELECT bid, name FROM ".$xoopsDB->prefix('newblocks')." WHERE mid=".$mid." AND func_num=".$i; + $fresult = $xoopsDB->query($sql); + $fcount = 0; + while ($fblock = $xoopsDB->fetchArray($fresult)) { + $fcount++; + $sql = "UPDATE ".$xoopsDB->prefix("newblocks")." SET name='".addslashes($blocks[$i]['name'])."', title='".addslashes($blocks[$i]['name'])."', dirname='".addslashes($dirname)."', func_file='".addslashes($blocks[$i]['file'])."', show_func='".addslashes($blocks[$i]['show_func'])."', template='".addslashes($template)."', edit_func='".addslashes($editfunc)."', options='".addslashes($options)."', content='', template='".$template."', last_modified=".time()." WHERE bid=".$fblock['bid']; + $result = $xoopsDB->query($sql); + if (!$result) { + $msgs[] = '  ERROR: Could not update '.$fblock['name']; + } else { + $msgs[] = '  Block '.$fblock['name'].' updated. Block ID: '.$fblock['bid'].''; + if ($template != '') { + $tplfile =& $tplfile_handler->create(); + $tplfile->setVar('tpl_refid', $fblock['bid']); + $tplfile->setVar('tpl_source', $content, true); + $tplfile->setVar('tpl_tplset', 'default'); + $tplfile->setVar('tpl_file', $blocks[$i]['template']); + $tplfile->setVar('tpl_module', $dirname); + $tplfile->setVar('tpl_type', 'block'); + $tplfile->setVar('tpl_desc', $blocks[$i]['description'], true); + $tplfile->setVar('tpl_lastimported', 0); + $tplfile->setVar('tpl_lastmodified', time()); + if (!$tplfile_handler->insert($tplfile)) { + $msgs[] = '  ERROR: Could not insert template '.$blocks[$i]['template'].' to the database.'; + } else { + $msgs[] = '  Template '.$blocks[$i]['template'].' inserted to the database.'; + //if ($xoopsConfig['default_theme'] == 'default') { + // if (!xoops_template_touch($tplfile[0]->getVar('tpl_id'))) { + // $msgs[] = '  ERROR: Could not recompile template '.$blocks[$i]['template'].'.'; + // } else { + // $msgs[] = '  Template '.$blocks[$i]['template'].' recompiled.'; + // } + //} + } + } + } + } + if ($fcount == 0) { + $newbid = $xoopsDB->genId($xoopsDB->prefix('newblocks').'_bid_seq'); + $block_name = addslashes($blocks[$i]['name']); + $sql = "INSERT INTO ".$xoopsDB->prefix("newblocks")." (bid, mid, func_num, options, name, title, content, side, weight, visible, block_type, isactive, dirname, func_file, show_func, edit_func, template, last_modified) VALUES (".$newbid.", ".$mid.", ".$i.",'".addslashes($options)."','".$block_name."', '".$block_name."', '', 0, 0, 0, 'M', 1, '".addslashes($dirname)."', '".addslashes($blocks[$i]['file'])."', '".addslashes($blocks[$i]['show_func'])."', '".addslashes($editfunc)."', '".$template."', ".time().")"; + $result = $xoopsDB->query($sql); + if (!$result) { + $msgs[] = '  ERROR: Could not create '.$blocks[$i]['name']; + } else { + if (empty($newbid)) { + $newbid = $xoopsDB->getInsertId(); + } + if ($template != '') { + $tplfile =& $tplfile_handler->create(); + $tplfile->setVar('tpl_module', $dirname); + $tplfile->setVar('tpl_refid', $newbid); + $tplfile->setVar('tpl_source', $content, true); + $tplfile->setVar('tpl_tplset', 'default'); + $tplfile->setVar('tpl_file', $blocks[$i]['template'], true); + $tplfile->setVar('tpl_type', 'block'); + $tplfile->setVar('tpl_lastimported', 0); + $tplfile->setVar('tpl_lastmodified', time()); + $tplfile->setVar('tpl_desc', $blocks[$i]['description'], true); + if (!$tplfile_handler->insert($tplfile)) { + $msgs[] = '  ERROR: Could not insert template '.$blocks[$i]['template'].' to the database.'; + } else { + $msgs[] = '  Template '.$blocks[$i]['template'].' inserted to the database.'; + } + } + $msgs[] = '  Block '.$blocks[$i]['name'].' created. Block ID: '.$newbid.''; + } + } + } + } + } + $block_arr = XoopsBlock::getByModule($mid); + foreach ($block_arr as $block) { + if (!in_array($block->getVar('show_func'), $showfuncs) || !in_array($block->getVar('func_file'), $funcfiles)) { + $sql = sprintf("DELETE FROM %s WHERE bid = %u", $xoopsDB->prefix('newblocks'), $block->getVar('bid')); + if(!$xoopsDB->query($sql)) { + $msgs[] = '  ERROR: Could not delete block '.$block->getVar('name').'. Block ID: '.$block->getVar('bid').''; + } else { + $msgs[] = '  Block '.$block->getVar('name').' deleted. Block ID: '.$block->getVar('bid').''; + } + } + } + + $configs = $modules[$mid]->getInfo('config'); + if ($configs != false) { + if ($modules[$mid]->getVar('hascomments') != 0) { + include_once(XOOPS_ROOT_PATH.'/include/comment_constants.php'); + array_push($configs, array('name' => 'com_rule', 'title' => '_CM_COMRULES', 'description' => '', 'formtype' => 'select', 'valuetype' => 'int', 'default' => 1, 'options' => array('_CM_COMAPPROVEALL' => XOOPS_COMMENT_APPROVEALL, '_CM_COMAPPROVEUSER' => XOOPS_COMMENT_APPROVEUSER, '_CM_COMAPPROVEADMIN' => XOOPS_COMMENT_APPROVEADMIN))); + array_push($configs, array('name' => 'com_anonpost', 'title' => '_CM_COMANONPOST', 'description' => '', 'formtype' => 'yesno', 'valuetype' => 'int', 'default' => 0)); + } + } else { + if ($modules[$mid]->getVar('hascomments') != 0) { + $configs = array(); + include_once(XOOPS_ROOT_PATH.'/include/comment_constants.php'); + $configs[] = array('name' => 'com_rule', 'title' => '_CM_COMRULES', 'description' => '', 'formtype' => 'select', 'valuetype' => 'int', 'default' => 1, 'options' => array('_CM_COMAPPROVEALL' => XOOPS_COMMENT_APPROVEALL, '_CM_COMAPPROVEUSER' => XOOPS_COMMENT_APPROVEUSER, '_CM_COMAPPROVEADMIN' => XOOPS_COMMENT_APPROVEADMIN)); + array_push($configs, array('name' => 'com_anonpost', 'title' => '_CM_COMANONPOST', 'description' => '', 'formtype' => 'yesno', 'valuetype' => 'int', 'default' => 0)); + } + } + // RMV-NOTIFY + if ($modules[$mid]->getVar('hasnotification') != 0) { + if (empty($configs)) { + $configs = array(); + } + include_once(XOOPS_ROOT_PATH.'/include/notification_constants.php'); + $configs[] = array ('name' => 'notification_enabled', 'title' => '_NOT_CONFIG_ENABLED', 'description' => '_NOT_CONFIG_ENABLEDDSC', 'formtype' => 'select', 'valuetype' => 'int', 'default' => XOOPS_NOTIFICATION_ENABLEBOTH, 'options' => $options); + } + + if ($configs != false) { + $msgs[] = 'Adding module config data...'; + $config_handler =& xoops_gethandler('config'); + $order = 0; + foreach ($configs as $config) { + $confobj =& $config_handler->createConfig(); + $confobj->setVar('conf_modid', $newmid); + $confobj->setVar('conf_catid', 0); + $confobj->setVar('conf_name', $config['name']); + $confobj->setVar('conf_title', $config['title'], true); + $confobj->setVar('conf_desc', $config['description'], true); + $confobj->setVar('conf_formtype', $config['formtype']); + $confobj->setVar('conf_valuetype', $config['valuetype']); + $confobj->setVar('conf_value', $config['default'], true); + $confobj->setVar('conf_order', $order); + $confop_msgs = ''; + if (isset($config['options']) && is_array($config['options'])) { + foreach ($config['options'] as $key => $value) { + $confop =& $config_handler->createConfigOption(); + $confop->setVar('confop_name', $key, true); + $confop->setVar('confop_value', $value, true); + $confobj->setConfOptions($confop); + $confop_msgs .= '
    Config option added. Name: '.$key.' Value: '.$value.''; + unset($confop); + } + } + $order++; + if ($config_handler->insertConfig($confobj) != false) { + $msgs[] = '  Config '.$config['name'].' added to the database.'.$confop_msgs; + } else { + $msgs[] = '  ERROR: Could not insert config '.$config['name'].' to the database.'; + } + unset($confobj); + } + unset($configs); + } + foreach ($msgs as $msg) { + echo ''.$msg.'
'; + } + } + // data for table 'block_module_link' + include_once './class/dbmanager.php'; + $dbm = new db_manager; + $sql = 'SELECT bid, side FROM '.$dbm->prefix('newblocks'); + $result = $dbm->query($sql); + + while ($myrow = $dbm->fetchArray($result)) { + if ($myrow['side'] == 0) { + $dbm->insert("block_module_link", " VALUES (".$myrow['bid'].", 0)"); + } else { + $dbm->insert("block_module_link", " VALUES (".$myrow['bid'].", -1)"); + } + } + } + echo '
'; + flush(); + sleep(1); + } + $title = _INSTALL_L142; + $content = "
\n"; + $content .= ob_get_contents(); + $content .= "
\n"; + ob_end_clean(); + $b_next = array('updateComments', _INSTALL_L14); + include 'install_tpl.php'; +?> Index: xoops2jp/html/install/wizards/install_updateSmilies.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_updateSmilies.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_updateSmilies.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,5 @@ +'._INSTALL_L150.'

'; + $b_next = array('updateSmilies_go', _INSTALL_L140); + include 'install_tpl.php'; +?> Index: xoops2jp/html/install/wizards/install_updateSmilies_go.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_updateSmilies_go.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_updateSmilies_go.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,55 @@ +query("SELECT * FROM ".$xoopsDB->prefix('smiles')); + $content = ''; + $title = _INSTALL_L155; + if (!defined('XOOPS_UPLOAD_PATH')) { + define('XOOPS_UPLOAD_PATH', '../uploads'); + } + while ($smiley = $xoopsDB->fetchArray($result)) { + if (file_exists('../images/smilies/'.$smiley['smile_url']) && false != $fp = fopen('../images/smilies/'.$smiley['smile_url'], 'rb')) { + $binary = fread($fp, filesize('../images/smilies/'.$smiley['smile_url'])); + fclose($fp); + if (!preg_match("/\.([a-zA-Z0-9]+)$/", $smiley['smile_url'], $matched)) { + continue; + } + $newsmiley = uniqid('smil').'.'.strtolower($matched[1]); + if (false != $fp = fopen(XOOPS_UPLOAD_PATH.'/'.$newsmiley, 'wb')) { + if (-1 != fwrite($fp, $binary)) { + $xoopsDB->query("UPDATE ".$xoopsDB->prefix('smiles')." SET smile_url='".$newsmiley."' WHERE id=".$smiley['id']); + $content .= _OKIMG.sprintf(_INSTALL_L154, $smiley['smile_url']).'
'; + } else { + $content .= _NGIMG.sprintf(_INSTALL_L153, $smiley['smile_url']).'
'; + } + fclose($fp); + } + } else { + $content .= _OKIMG.sprintf(_INSTALL_L152, $smiley['smile_url']).'
'; + } + } + $result = $xoopsDB->query("SELECT * FROM ".$xoopsDB->prefix('ranks')); + while ($rank = $xoopsDB->fetchArray($result)) { + if (file_exists('../images/ranks/'.$rank['rank_image']) && false != $fp = fopen('../images/ranks/'.$rank['rank_image'], 'rb')) { + $binary = fread($fp, filesize('../images/ranks/'.$rank['rank_image'])); + fclose($fp); + if (!preg_match("/\.([a-zA-Z0-9]+)$/", $rank['rank_image'], $matched)) { + continue; + } + $newrank = uniqid('rank').'.'.strtolower($matched[1]); + if (false != $fp = fopen(XOOPS_UPLOAD_PATH.'/'.$newrank, 'wb')) { + if (-1 != fwrite($fp, $binary)) { + $content .= _OKIMG.sprintf(_INSTALL_L154, $rank['rank_image']).'
'; + $xoopsDB->query("UPDATE ".$xoopsDB->prefix('ranks')." SET rank_image='".$newrank."' WHERE rank_id=".$rank['rank_id']); + } else { + $content .= _NGIMG.sprintf(_INSTALL_L153, $rank['rank_image']).'
'; + } + fclose($fp); + } + } else { + $content .= _OKIMG.sprintf(_INSTALL_L152, $rank['rank_image']).'
'; + } + } + $b_next = array('updateAvatars', _INSTALL_L14); + include 'install_tpl.php'; +?> Index: xoops2jp/html/install/wizards/install_updateTables.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_updateTables.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_updateTables.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,22 @@ +prefix('groups'); + $result = $db->query($sql); + $content = '
'._INSTALL_L157.'
'; + $content .= ''; + while ($myrow = $db->fetchArray($result)) { + if ($myrow['type'] == 'Admin') { + $content .= ''; + } elseif ($myrow['type'] == 'User') { + $content .= ''; + } else { + $content .= ''; + } + } + $content .= '
'._INSTALL_L158.''._INSTALL_L159.''._INSTALL_L160.''._INSTALL_L161.'
'.$myrow['name'].'  
'.$myrow['name'].'  
'.$myrow['name'].'  
'; + $b_back = array(); + $b_next = array('updateTables_go', _INSTALL_L132); + include 'install_tpl.php'; +?> Index: xoops2jp/html/install/wizards/install_updateTables_go.inc.php diff -u /dev/null xoops2jp/html/install/wizards/install_updateTables_go.inc.php:1.1.2.1 --- /dev/null Sat Apr 1 10:33:00 2006 +++ xoops2jp/html/install/wizards/install_updateTables_go.inc.php Sat Apr 1 10:33:00 2006 @@ -0,0 +1,44 @@ +setRewrite('XOOPS_GROUP_ADMIN', $g_webmasters); + $mm->setRewrite('XOOPS_GROUP_USERS', $g_users); + $mm->setRewrite('XOOPS_GROUP_ANONYMOUS', $g_anonymous); + + $ret = $mm->doRewrite(); + if(!$ret){ + $content = _INSTALL_L60; + include 'install_tpl.php'; + exit(); + } + } + if (false != $error) { + $b_back = array(); + $content = _INSTALL_L162; + include 'install_tpl.php'; + break; + } + include_once './class/dbmanager.php'; + $dbm = new db_manager; + if (!$dbm->query("ALTER TABLE ".$dbm->prefix("newblocks")." ADD dirname VARCHAR(50) NOT NULL, ADD func_file VARCHAR(50) NOT NULL, ADD show_func VARCHAR(50) NOT NULL, ADD edit_func VARCHAR(50) NOT NULL")) { + } + $result = $dbm->queryFromFile('./sql/upgrade/'.XOOPS_DB_TYPE.'.structure.sql'); + $content = $dbm->report(); + if (!$result) { + $content .= "

"._INSTALL_L135."

\n"; + $b_back = array(); + } else { + $content .= "

"._INSTALL_L136."

\n"; + $b_next = array('updateConfig', _INSTALL_L14); + } + include 'install_tpl.php'; +?> From nobunobu @ users.sourceforge.jp Sun Apr 2 22:06:01 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 2 Apr 2006 22:06:01 +0900 Subject: [xoops-cvslog 2612] CVS update: xoops2jp/html/class Message-ID: <20060402130601.D0F452AC059@users.sourceforge.jp> Index: xoops2jp/html/class/XCube_ModuleController.class.php diff -u xoops2jp/html/class/XCube_ModuleController.class.php:1.1.2.6 xoops2jp/html/class/XCube_ModuleController.class.php:1.1.2.7 --- xoops2jp/html/class/XCube_ModuleController.class.php:1.1.2.6 Wed Jan 11 12:34:39 2006 +++ xoops2jp/html/class/XCube_ModuleController.class.php Sun Apr 2 22:06:01 2006 @@ -1,5 +1,5 @@ Index: xoops2jp/html/kernel/XCube_Controller.class.php diff -u xoops2jp/html/kernel/XCube_Controller.class.php:1.1.2.6 xoops2jp/html/kernel/XCube_Controller.class.php:1.1.2.7 --- xoops2jp/html/kernel/XCube_Controller.class.php:1.1.2.6 Fri Feb 3 15:01:38 2006 +++ xoops2jp/html/kernel/XCube_Controller.class.php Sun Apr 2 22:06:01 2006 @@ -238,7 +238,7 @@ if(!$this->mModuleController->isActive()) die('NOT ACTIVE'); ///< @todo - if(!$this->mModuleController->isPermission()) + if(!$this->mModuleController->hasPermission()) XCube_Utils::redirectHeader(XOOPS_URL,1,_NOPERM); // TODO Depens on const message catalog. $this->mModuleController->setupLanguage(); From nobunobu @ users.sourceforge.jp Sun Apr 2 22:06:02 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 2 Apr 2006 22:06:02 +0900 Subject: [xoops-cvslog 2614] CVS update: xoops2jp/html/modules/base/class Message-ID: <20060402130602.382492AC0C9@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/Legacy_AdminModuleController.class.php diff -u xoops2jp/html/modules/base/class/Legacy_AdminModuleController.class.php:1.1.2.12 xoops2jp/html/modules/base/class/Legacy_AdminModuleController.class.php:1.1.2.13 --- xoops2jp/html/modules/base/class/Legacy_AdminModuleController.class.php:1.1.2.12 Tue Mar 28 22:29:21 2006 +++ xoops2jp/html/modules/base/class/Legacy_AdminModuleController.class.php Sun Apr 2 22:06:02 2006 @@ -1,5 +1,5 @@ mController->getXoopsUser(); From nobunobu @ users.sourceforge.jp Sun Apr 2 22:06:02 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 2 Apr 2006 22:06:02 +0900 Subject: [xoops-cvslog 2615] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20060402130602.605B52AC0CA@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:1.1.2.4 xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:1.1.2.5 --- xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php:1.1.2.4 Tue Mar 28 22:30:15 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_ModuleController.class.php Sun Apr 2 22:06:02 2006 @@ -1,5 +1,5 @@ mController->mXoopsUser; $xoopsModule=&$this->mModuleObject; From nobunobu @ users.sourceforge.jp Sun Apr 2 22:07:47 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 2 Apr 2006 22:07:47 +0900 Subject: [xoops-cvslog 2616] CVS update: xoops2jp/html/class Message-ID: <20060402130747.BDACD2AC059@users.sourceforge.jp> Index: xoops2jp/html/class/XCube_Utils.class.php diff -u xoops2jp/html/class/XCube_Utils.class.php:1.1.2.2 xoops2jp/html/class/XCube_Utils.class.php:1.1.2.3 --- xoops2jp/html/class/XCube_Utils.class.php:1.1.2.2 Tue Nov 15 21:42:56 2005 +++ xoops2jp/html/class/XCube_Utils.class.php Sun Apr 2 22:07:47 2006 @@ -1,5 +1,5 @@ getSiteConfig('Cube','SystemModules')); + $moduleHandler =& xoops_gethandler('module'); + $uninstalledModules = array(); + $disabledModules = array(); + foreach($systemModules as $systemModule) { + if(!empty($systemModule)) { + if(!($moduleObject =& $moduleHandler->getByDirname($systemModule))) { + $uninstalledModules[] = $systemModule; + } else if(!$moduleObject->getVar('isactive')) { + $disabledModules[] = $systemModule; + } + } + } + if ((count($uninstalledModules)==0)&&(count($disabledModules)==0)) { + return true; + } else { + return array('uninstalled' =>$uninstalledModules, 'disabled'=>$disabledModules); + } + } } ?> \ No newline at end of file From nobunobu @ users.sourceforge.jp Sun Apr 2 22:07:47 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 2 Apr 2006 22:07:47 +0900 Subject: [xoops-cvslog 2617] CVS update: xoops2jp/html/modules/base/language/english Message-ID: <20060402130747.E1BCE2AC0C9@users.sourceforge.jp> Index: xoops2jp/html/modules/base/language/english/global.php diff -u xoops2jp/html/modules/base/language/english/global.php:1.1.2.3 xoops2jp/html/modules/base/language/english/global.php:1.1.2.4 --- xoops2jp/html/modules/base/language/english/global.php:1.1.2.3 Thu Jan 12 14:49:12 2006 +++ xoops2jp/html/modules/base/language/english/global.php Sun Apr 2 22:07:47 2006 @@ -1,7 +1,14 @@ Index: xoops2jp/html/modules/base/language/japanese/global.php diff -u xoops2jp/html/modules/base/language/japanese/global.php:1.1.2.3 xoops2jp/html/modules/base/language/japanese/global.php:1.1.2.4 --- xoops2jp/html/modules/base/language/japanese/global.php:1.1.2.3 Thu Jan 12 14:49:06 2006 +++ xoops2jp/html/modules/base/language/japanese/global.php Sun Apr 2 22:07:47 2006 @@ -1,6 +1,13 @@ Index: xoops2jp/html/modules/base/preload/SiteClose/SiteClose.class.php diff -u xoops2jp/html/modules/base/preload/SiteClose/SiteClose.class.php:1.1.2.5 xoops2jp/html/modules/base/preload/SiteClose/SiteClose.class.php:1.1.2.6 --- xoops2jp/html/modules/base/preload/SiteClose/SiteClose.class.php:1.1.2.5 Tue Mar 28 22:30:25 2006 +++ xoops2jp/html/modules/base/preload/SiteClose/SiteClose.class.php Sun Apr 2 22:07:48 2006 @@ -6,7 +6,7 @@ { function preBlockFilter() { - if($this->mController->mConfig['closesite']==1) { + if(($this->mController->mConfig['closesite']==1)||is_array(XCube_Utils::checkSystemModules())) { $this->mController->mRoot->mEventManager->add("Site.Login",new XCube_InstanceDelegate($this,"callbackSiteLogin")); $this->mController->mRoot->mEventManager->add("Site.CheckLogin.Success",new XCube_InstanceDelegate($this,"callbackCheckLoginSuccess")); } @@ -27,6 +27,101 @@ } } } + // @todo Devide following lines to another preload file + if ($accessAllowFlag) { + $retArray = XCube_Utils::checkSystemModules(); + if (is_array($retArray)) { + if (in_array(XOOPS_GROUP_ADMIN, $this->mController->mXoopsUser->getGroups())) { + $GLOBALS['xoopsUser'] = $this->mController->mXoopsUser; + if (!empty($_POST['cube_module_install'])) { //@todo use Ticket + require_once XOOPS_BASE_PATH."/admin/class/ModuleInstaller.class.php"; + if (isset($_POST['uninstalled_modules']) && is_array($_POST['uninstalled_modules']) ){ + foreach($_POST['uninstalled_modules'] as $module) { + $module = basename($module); + if (in_array($module, $retArray['uninstalled'])) { + $installer = new Legacy_ModuleInstaller($module); + $installer->execute(); + } + } + } + if (isset($_POST['disabled_modules']) &&is_array($_POST['disabled_modules'])){ + $moduleHandler =& xoops_gethandler('module'); + foreach($_POST['disabled_modules'] as $module) { + $module = basename($module); + if (in_array($module, $retArray['disabled'])) { + if($moduleObject =& $moduleHandler->getByDirname($module)) { + $moduleObject->setVar('isactive',1); + $moduleHandler->insert($moduleObject); + } + } + } + } + if (isset($_POST['option_modules']) && is_array($_POST['option_modules']) ){ + $handler =& xoops_getmodulehandler('non_installation_module','base'); + $objects = $handler->getObjects(); + $optionModules = array(); + foreach($objects as $module) { + if (!in_array($module->getVar('dirname'), $retArray['uninstalled'])) { + $optionModules[] = $module->getVar('dirname'); + } + } + foreach($_POST['option_modules'] as $module) { + $module = basename($module); + if (in_array($module, $optionModules)) { + $installer = new Legacy_ModuleInstaller($module); + $installer->execute(); + } + } + } + XCube_Utils::redirectHeader(XOOPS_URL,1); + } else if (!empty($_GET['cube_module_uninstall'])) { + require_once XOOPS_ROOT_PATH.'/class/template.php'; + $xoopsTpl = new XoopsTpl(); + $xoopsTpl->assign('cube_module_uninstall',htmlspecialchars($_GET['cube_module_uninstall'],ENT_QUOTES)); + $xoopsTpl->assign( array( + 'xoops_sitename' => htmlspecialchars($this->mController->mConfig['sitename']), + 'xoops_themecss' => xoops_getcss(), + 'xoops_imageurl' => XOOPS_THEME_URL.'/'.$this->mController->mConfig['theme_set'].'/', + )); + ///< @todo filebase template with absolute file path + $xoopsTpl->display(XOOPS_ROOT_PATH.'/modules/base/templates/legacy_uninstall_modules.html'); + exit(); + } else if (!empty($_POST['cube_module_uninstallok'])) { //@todo use Ticket + require_once XOOPS_BASE_PATH."/admin/class/ModuleUninstaller.class.php"; + $module = basename($_POST['cube_module_uninstallok']); + if (in_array($module, $retArray['disabled'])) { + $uninstaller = new Legacy_ModuleUninstaller($module); + $uninstaller->execute(); + } + XCube_Utils::redirectHeader(XOOPS_URL,1); + } else { + $handler =& xoops_getmodulehandler('non_installation_module','base'); + $objects = $handler->getObjects(); + $optionModules = array(); + foreach($objects as $module) { + if (!in_array($module->getVar('dirname'), $retArray['uninstalled'])) { + $optionModules[] = $module->getVar('dirname'); + } + } + require_once XOOPS_ROOT_PATH.'/class/template.php'; + $xoopsTpl = new XoopsTpl(); + $xoopsTpl->assign('uninstalled',$retArray['uninstalled']); + $xoopsTpl->assign('disabled',$retArray['disabled']); + $xoopsTpl->assign('option',$optionModules); + $xoopsTpl->assign( array( + 'xoops_sitename' => htmlspecialchars($this->mController->mConfig['sitename']), + 'xoops_themecss' => xoops_getcss(), + 'xoops_imageurl' => XOOPS_THEME_URL.'/'.$this->mController->mConfig['theme_set'].'/', + )); + ///< @todo filebase template with absolute file path + $xoopsTpl->display(XOOPS_ROOT_PATH.'/modules/base/templates/legacy_install_modules.html'); + exit(); + } + } else { + $accessAllowFlag = false; + } + } + } if (!$accessAllowFlag) { require_once XOOPS_ROOT_PATH.'/class/template.php'; @@ -39,7 +134,8 @@ 'lang_password' => _PASSWORD, 'lang_siteclosemsg' => $this->mController->mConfig['closesite_text'])); $xoopsTpl->xoops_setCaching(1); - $xoopsTpl->display('db:system_siteclosed.html'); ///< @todo depends schema + // @todo filebase template with absolute file path + $xoopsTpl->display(XOOPS_ROOT_PATH.'/modules/base/templates/legacy_site_closed.html'); exit(); } } From nobunobu @ users.sourceforge.jp Sun Apr 2 22:07:48 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 2 Apr 2006 22:07:48 +0900 Subject: [xoops-cvslog 2620] CVS update: xoops2jp/html/settings Message-ID: <20060402130748.619D82AC059@users.sourceforge.jp> Index: xoops2jp/html/settings/site_default.ini.php diff -u xoops2jp/html/settings/site_default.ini.php:1.1.2.7 xoops2jp/html/settings/site_default.ini.php:1.1.2.8 --- xoops2jp/html/settings/site_default.ini.php:1.1.2.7 Thu Mar 23 17:17:20 2006 +++ xoops2jp/html/settings/site_default.ini.php Sun Apr 2 22:07:48 2006 @@ -3,11 +3,10 @@ [Cube] Controller=Legacy_Controller - +SystemModules=base, user,legacyRender CacheSystem.path=/modules/stdCache/kernel CacheSystem.class=StdRenderCache - # # You can register plural render systems. # From nobunobu @ users.sourceforge.jp Sun Apr 2 22:07:48 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 2 Apr 2006 22:07:48 +0900 Subject: [xoops-cvslog 2621] CVS update: xoops2jp/html/modules/base/templates Message-ID: <20060402130748.8969F2AC0C9@users.sourceforge.jp> Index: xoops2jp/html/modules/base/templates/legacy_install_modules.html diff -u /dev/null xoops2jp/html/modules/base/templates/legacy_install_modules.html:1.1.2.1 --- /dev/null Sun Apr 2 22:07:48 2006 +++ xoops2jp/html/modules/base/templates/legacy_install_modules.html Sun Apr 2 22:07:48 2006 @@ -0,0 +1,70 @@ + + + + + +<{$xoops_sitename}> + + + + + + + + + + + + +
 
+ + + + + +
<{$smarty.const._SYSTEM_MODULE_ERROR}>
+ +
+ + + + + + +<{foreach item=module from=$uninstalled}> + + + + + +<{/foreach}> +<{foreach item=module from=$disabled}> + + + + + + +<{/foreach}> +<{foreach item=module from=$option}> + + + + + +<{/foreach}> + +
 ModuleStatus
 <{$module}><{$smarty.const._SYS_MODULE_UNINSTALLED}>
 <{$module}><{$smarty.const._SYS_MODULE_DISABLED}><{$smarty.const._UNINSTALL}>
<{$module}><{$smarty.const._SYS_OPTION_MODULES}>
+ + +
+
+ + + + + +
 
+ + + \ No newline at end of file Index: xoops2jp/html/modules/base/templates/legacy_site_closed.html diff -u /dev/null xoops2jp/html/modules/base/templates/legacy_site_closed.html:1.1.2.1 --- /dev/null Sun Apr 2 22:07:48 2006 +++ xoops2jp/html/modules/base/templates/legacy_site_closed.html Sun Apr 2 22:07:48 2006 @@ -0,0 +1,52 @@ + + + + + +<{$xoops_sitename}> + + + + + + + + + + + + +
 
+ + + + + +
<{$lang_siteclosemsg}>
+ +
+ + + + + + + + + + + + + + +
<{$lang_login}>
<{$lang_username}>
<{$lang_password}>
 
+
+ + + + + +
 
+ + + \ No newline at end of file Index: xoops2jp/html/modules/base/templates/legacy_uninstall_modules.html diff -u /dev/null xoops2jp/html/modules/base/templates/legacy_uninstall_modules.html:1.1.2.1 --- /dev/null Sun Apr 2 22:07:48 2006 +++ xoops2jp/html/modules/base/templates/legacy_uninstall_modules.html Sun Apr 2 22:07:48 2006 @@ -0,0 +1,43 @@ + + + + + +<{$xoops_sitename}> + + + + + + + + + + + + +
 
+ + + + + +
<{$smarty.const._UNINSTALL_CONFIRM}>
+ +
+ + +
+ + +
+
+ + + + + +
 
+ + + \ No newline at end of file From nobunobu @ users.sourceforge.jp Sun Apr 2 23:42:44 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 2 Apr 2006 23:42:44 +0900 Subject: [xoops-cvslog 2622] CVS update: xoops2jp/html/modules/base/admin/class Message-ID: <20060402144244.813DF2AC047@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.9 xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php:1.1.2.10 --- xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php:1.1.2.9 Wed Mar 29 22:52:01 2006 +++ xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php Sun Apr 2 23:42:44 2006 @@ -77,12 +77,16 @@ // // Add a permission which administrators can read. // - $readPerm =& $this->_createPermission(XOOPS_GROUP_ADMIN); - $readPerm->setVar('gperm_name', 'module_read'); - - if (!$gpermHandler->insert($readPerm)) { - $log->addError("Could not set read permission " . $this->mModule->getVar('mid')); - } + $root = $root=&XCube_Root::getSingleton(); + $groups = $root->mController->mXoopsUser->getGroups(); + foreach($groups as $mygroup) { + $readPerm =& $this->_createPermission($mygroup); + $readPerm->setVar('gperm_name', 'module_read'); + + if (!$gpermHandler->insert($readPerm)) { + $log->addError("Could not set read permission " . $this->mModule->getVar('mid')); + } + } } } } Index: xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php diff -u xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.12 xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.13 --- xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.12 Wed Mar 29 22:52:01 2006 +++ xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php Sun Apr 2 23:42:44 2006 @@ -301,10 +301,15 @@ } } } else { - $bperm->setVar('gperm_groupid', XOOPS_GROUP_ADMIN); - if (!$gpermHandler->insert($bperm)) { - $log->addWarn("Could not set block permission " . $blockObj->getVar('name')); - } + $root = $root=&XCube_Root::getSingleton(); + $groups = $root->mController->mXoopsUser->getGroups();var_dump($groups); + foreach ($groups as $mygroup) { + $bperm->setVar('gperm_groupid', $mygroup); + $bperm->setNew(); + if (!$gpermHandler->insert($bperm)) { + $log->addWarn("Could not set block permission " . $blockObj->getVar('name')); + } + } } } From nobunobu @ users.sourceforge.jp Sun Apr 2 23:54:54 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 2 Apr 2006 23:54:54 +0900 Subject: [xoops-cvslog 2623] CVS update: xoops2jp/html/modules/base/class Message-ID: <20060402145454.E38022AC01A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/modulePreloadWating.class.php diff -u /dev/null xoops2jp/html/modules/base/class/modulePreloadWating.class.php:1.1.2.1 --- /dev/null Sun Apr 2 23:54:54 2006 +++ xoops2jp/html/modules/base/class/modulePreloadWating.class.php Sun Apr 2 23:54:54 2006 @@ -0,0 +1,89 @@ +mController->mRoot->mEventManager->add('Legacyblock.Wating.Show',new XCube_InstanceDelegate($this,"callbackWatingShow")); + } + + function callbackWatingShow(&$controller,&$eventArgs) { + // for News Module + $module_handler =& xoops_gethandler('module'); + if ($module_handler->getCount(new Criteria('dirname', 'news'))) { + $result = $GLOBALS['xoopsDB']->query("SELECT COUNT(*) FROM ".$GLOBALS['xoopsDB']->prefix("stories")." WHERE published=0"); + if ( $result ) { + $blockVal = array(); + $blockVal['adminlink'] = XOOPS_URL."/modules/news/admin/index.php?op=newarticle"; + list($blockVal['pendingnum']) = $GLOBALS['xoopsDB']->fetchRow($result); + $blockVal['lang_linkname'] = _MB_BASE_SUBMS; + $eventArgs['modules'][] = $blockVal; + } + } + // for MyLinks Module + if ($module_handler->getCount(new Criteria('dirname', 'mylinks'))) { + $result = $GLOBALS['xoopsDB']->query("SELECT COUNT(*) FROM ".$GLOBALS['xoopsDB']->prefix("mylinks_links")." WHERE status=0"); + if ( $result ) { + $blockVal = array(); + $blockVal['adminlink'] = XOOPS_URL."/modules/mylinks/admin/index.php?op=listNewLinks"; + list($blockVal['pendingnum']) = $GLOBALS['xoopsDB']->fetchRow($result); + $blockVal['lang_linkname'] = _MB_BASE_WLNKS; + $eventArgs['modules'][] = $blockVal; + } + $result = $GLOBALS['xoopsDB']->query("SELECT COUNT(*) FROM ".$GLOBALS['xoopsDB']->prefix("mylinks_broken")); + if ( $result ) { + $blockVal = array(); + $blockVal['adminlink'] = XOOPS_URL."/modules/mylinks/admin/index.php?op=listBrokenLinks"; + list($blockVal['pendingnum']) = $GLOBALS['xoopsDB']->fetchRow($result); + $blockVal['lang_linkname'] = _MB_BASE_BLNK; + $eventArgs['modules'][] = $blockVal; + } + $result = $GLOBALS['xoopsDB']->query("SELECT COUNT(*) FROM ".$GLOBALS['xoopsDB']->prefix("mylinks_mod")); + if ( $result ) { + $blockVal = array(); + $blockVal['adminlink'] = XOOPS_URL."/modules/mylinks/admin/index.php?op=listModReq"; + list($blockVal['pendingnum']) = $GLOBALS['xoopsDB']->fetchRow($result); + $blockVal['lang_linkname'] = _MB_BASE_MLNKS; + $eventArgs['modules'][] = $blockVal; + } + } + // for MyDownloads Modules + if ($module_handler->getCount(new Criteria('dirname', 'mydownloads'))) { + $result = $GLOBALS['xoopsDB']->query("SELECT COUNT(*) FROM ".$GLOBALS['xoopsDB']->prefix("mydownloads_downloads")." WHERE status=0"); + if ( $result ) { + $blockVal = array(); + $blockVal['adminlink'] = XOOPS_URL."/modules/mydownloads/admin/index.php?op=listNewDownloads"; + list($blockVal['pendingnum']) = $GLOBALS['xoopsDB']->fetchRow($result); + $blockVal['lang_linkname'] = _MB_BASE_WDLS; + $eventArgs['modules'][] = $blockVal; + } + $result = $GLOBALS['xoopsDB']->query("SELECT COUNT(*) FROM ".$GLOBALS['xoopsDB']->prefix("mydownloads_broken").""); + if ( $result ) { + $blockVal = array(); + $blockVal['adminlink'] = XOOPS_URL."/modules/mydownloads/admin/index.php?op=listBrokenDownloads"; + list($blockVal['pendingnum']) = $GLOBALS['xoopsDB']->fetchRow($result); + $blockVal['lang_linkname'] = _MB_BASE_BFLS; + $eventArgs['modules'][] = $blockVal; + } + $result = $GLOBALS['xoopsDB']->query("SELECT COUNT(*) FROM ".$GLOBALS['xoopsDB']->prefix("mydownloads_mod").""); + if ( $result ) { + $blockVal = array(); + $blockVal['adminlink'] = XOOPS_URL."/modules/mydownloads/admin/index.php?op=listModReq"; + list($blockVal['pendingnum']) = $GLOBALS['xoopsDB']->fetchRow($result); + $blockVal['lang_linkname'] = _MB_BASE_MFLS; + $eventArgs['modules'][] = $blockVal; + } + } + // for Comments + $result = $GLOBALS['xoopsDB']->query("SELECT COUNT(*) FROM ".$GLOBALS['xoopsDB']->prefix("xoopscomments")." WHERE com_status=1"); + if ( $result ) { + $blockVal = array(); + $blockVal['adminlink'] = XOOPS_URL."/modules/system/admin.php?module=0&status=1&fct=comments"; + list($blockVal['pendingnum']) = $GLOBALS['xoopsDB']->fetchRow($result); + $blockVal['lang_linkname'] =_MB_BASE_COMPEND; + $eventArgs['modules'][] = $blockVal; + } + } +} +?> From nobunobu @ users.sourceforge.jp Sun Apr 2 23:54:57 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 2 Apr 2006 23:54:57 +0900 Subject: [xoops-cvslog 2624] CVS update: xoops2jp/html/modules/base/blocks Message-ID: <20060402145457.A6AF52AC01A@users.sourceforge.jp> Index: xoops2jp/html/modules/base/blocks/legacy_waiting.php diff -u xoops2jp/html/modules/base/blocks/legacy_waiting.php:1.1.2.1 xoops2jp/html/modules/base/blocks/legacy_waiting.php:1.1.2.2 --- xoops2jp/html/modules/base/blocks/legacy_waiting.php:1.1.2.1 Sun Mar 26 15:07:46 2006 +++ xoops2jp/html/modules/base/blocks/legacy_waiting.php Sun Apr 2 23:54:57 2006 @@ -3,61 +3,9 @@ global $xoopsUser; $xoopsDB =& Database::getInstance(); $module_handler =& xoops_gethandler('module'); - $block = array(); - if ($module_handler->getCount(new Criteria('dirname', 'news'))) { - $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("stories")." WHERE published=0"); - if ( $result ) { - $block['modules'][0]['adminlink'] = XOOPS_URL."/modules/news/admin/index.php?op=newarticle"; - list($block['modules'][0]['pendingnum']) = $xoopsDB->fetchRow($result); - $block['modules'][0]['lang_linkname'] = _MB_BASE_SUBMS; - } - } - if ($module_handler->getCount(new Criteria('dirname', 'mylinks'))) { - $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mylinks_links")." WHERE status=0"); - if ( $result ) { - $block['modules'][1]['adminlink'] = XOOPS_URL."/modules/mylinks/admin/index.php?op=listNewLinks"; - list($block['modules'][1]['pendingnum']) = $xoopsDB->fetchRow($result); - $block['modules'][1]['lang_linkname'] = _MB_BASE_WLNKS; - } - $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mylinks_broken")); - if ( $result ) { - $block['modules'][2]['adminlink'] = XOOPS_URL."/modules/mylinks/admin/index.php?op=listBrokenLinks"; - list($block['modules'][2]['pendingnum']) = $xoopsDB->fetchRow($result); - $block['modules'][2]['lang_linkname'] = _MB_BASE_BLNK; - } - $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mylinks_mod")); - if ( $result ) { - $block['modules'][3]['adminlink'] = XOOPS_URL."/modules/mylinks/admin/index.php?op=listModReq"; - list($block['modules'][3]['pendingnum']) = $xoopsDB->fetchRow($result); - $block['modules'][3]['lang_linkname'] = _MB_BASE_MLNKS; - } - } - if ($module_handler->getCount(new Criteria('dirname', 'mydownloads'))) { - $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_downloads")." WHERE status=0"); - if ( $result ) { - $block['modules'][4]['adminlink'] = XOOPS_URL."/modules/mydownloads/admin/index.php?op=listNewDownloads"; - list($block['modules'][4]['pendingnum']) = $xoopsDB->fetchRow($result); - $block['modules'][4]['lang_linkname'] = _MB_BASE_WDLS; - } - $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_broken").""); - if ( $result ) { - $block['modules'][5]['adminlink'] = XOOPS_URL."/modules/mydownloads/admin/index.php?op=listBrokenDownloads"; - list($block['modules'][5]['pendingnum']) = $xoopsDB->fetchRow($result); - $block['modules'][5]['lang_linkname'] = _MB_BASE_BFLS; - } - $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("mydownloads_mod").""); - if ( $result ) { - $block['modules'][6]['adminlink'] = XOOPS_URL."/modules/mydownloads/admin/index.php?op=listModReq"; - list($block['modules'][6]['pendingnum']) = $xoopsDB->fetchRow($result); - $block['modules'][6]['lang_linkname'] = _MB_BASE_MFLS; - } - } - $result = $xoopsDB->query("SELECT COUNT(*) FROM ".$xoopsDB->prefix("xoopscomments")." WHERE com_status=1"); - if ( $result ) { - $block['modules'][7]['adminlink'] = XOOPS_URL."/modules/system/admin.php?module=0&status=1&fct=comments"; - list($block['modules'][7]['pendingnum']) = $xoopsDB->fetchRow($result); - $block['modules'][7]['lang_linkname'] =_MB_BASE_COMPEND; - } + + $modules = array(); + $block =& XCube_EventUtils::quickRaiseEvent('Legacyblock.Wating.Show', array('modules'=>&$modules)); return $block; } ?> From nobunobu @ users.sourceforge.jp Mon Apr 3 14:43:58 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 3 Apr 2006 14:43:58 +0900 Subject: [xoops-cvslog 2625] CVS update: xoops2jp/html/modules/base/templates/blocks Message-ID: <20060403054358.552842AC024@users.sourceforge.jp> Index: xoops2jp/html/modules/base/templates/blocks/legacy_block_mainmenu.html diff -u xoops2jp/html/modules/base/templates/blocks/legacy_block_mainmenu.html:1.1.2.1 xoops2jp/html/modules/base/templates/blocks/legacy_block_mainmenu.html:1.1.2.2 --- xoops2jp/html/modules/base/templates/blocks/legacy_block_mainmenu.html:1.1.2.1 Sun Mar 26 15:07:49 2006 +++ xoops2jp/html/modules/base/templates/blocks/legacy_block_mainmenu.html Mon Apr 3 14:43:58 2006 @@ -1,7 +1,7 @@
-v('cm_reports') as $report) { ?> -
+v('cm_reports'))) { ?> + v('cm_reports') as $report) { ?> +
+
@@ -47,9 +45,7 @@ @@ -57,9 +53,7 @@ From minahito @ users.sourceforge.jp Thu Apr 6 12:38:20 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 12:38:20 +0900 Subject: [xoops-cvslog 2645] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20060406033820.ED2012AC013@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.1 Wed Apr 5 19:57:52 2006 +++ xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php Thu Apr 6 12:38:20 2006 @@ -38,9 +38,10 @@ // lazy loading // $this->mObject->loadModule(); + $this->mObject->loadGroup(); $render->setAttribute('object', $this->mObject); - + $handler =& xoops_gethandler('module'); $moduleArr =& $handler->getObjects(); $render->setAttribute('moduleArr', $moduleArr); From minahito @ users.sourceforge.jp Thu Apr 6 12:38:37 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 12:38:37 +0900 Subject: [xoops-cvslog 2646] CVS update: xoops2jp/html/class/smarty/plugins Message-ID: <20060406033837.E7E882AC013@users.sourceforge.jp> Index: xoops2jp/html/class/smarty/plugins/function.xoops_optionsArray.php diff -u /dev/null xoops2jp/html/class/smarty/plugins/function.xoops_optionsArray.php:1.1.2.1 --- /dev/null Thu Apr 6 12:38:37 2006 +++ xoops2jp/html/class/smarty/plugins/function.xoops_optionsArray.php Thu Apr 6 12:38:37 2006 @@ -0,0 +1,47 @@ +get($params['value']), ENT_QUOTES); + $label = htmlspecialchars($object->get($params['label']), ENT_QUOTES); + + $selected = ""; + if (is_array($default) && in_array($default, $object->get($params['value']))) { + $selected = " selected"; + } + elseif (!is_array($default) && $object->get($params['value']) == $default) { + $selected = " selected"; + } + + $tags .= "\n"; + } + + print $tags; +} + +?> From minahito @ users.sourceforge.jp Thu Apr 6 13:20:53 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 13:20:53 +0900 Subject: [xoops-cvslog 2647] CVS update: xoops2jp/html/class/smarty/plugins Message-ID: <20060406042053.C52942AC013@users.sourceforge.jp> Index: xoops2jp/html/class/smarty/plugins/function.xoops_optionsArray.php diff -u xoops2jp/html/class/smarty/plugins/function.xoops_optionsArray.php:1.1.2.1 xoops2jp/html/class/smarty/plugins/function.xoops_optionsArray.php:1.1.2.2 --- xoops2jp/html/class/smarty/plugins/function.xoops_optionsArray.php:1.1.2.1 Thu Apr 6 12:38:37 2006 +++ xoops2jp/html/class/smarty/plugins/function.xoops_optionsArray.php Thu Apr 6 13:20:53 2006 @@ -31,7 +31,7 @@ $label = htmlspecialchars($object->get($params['label']), ENT_QUOTES); $selected = ""; - if (is_array($default) && in_array($default, $object->get($params['value']))) { + if (is_array($default) && in_array($object->get($params['value']), $default)) { $selected = " selected"; } elseif (!is_array($default) && $object->get($params['value']) == $default) { From minahito @ users.sourceforge.jp Thu Apr 6 14:58:32 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 14:58:32 +0900 Subject: [xoops-cvslog 2648] CVS update: xoops2jp/html/modules/base/language/english Message-ID: <20060406055832.17EBF2AC04F@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.19 xoops2jp/html/modules/base/language/english/admin.php:1.1.2.20 --- xoops2jp/html/modules/base/language/english/admin.php:1.1.2.19 Wed Apr 5 19:59:03 2006 +++ xoops2jp/html/modules/base/language/english/admin.php Thu Apr 6 14:58:31 2006 @@ -8,6 +8,7 @@ define('_AD_BASE_ERROR_PLEASE_AGREE', "Please agree the following licence."); define('_AD_BASE_ERROR_REQUIRED', "{0} is required."); define('_AD_BASE_ERROR_SMILE_URL_REQUIRED', "Upload the image file of smilies."); +define('_AD_BASE_LANG_ALL_MODULES', "All modules"); define('_AD_BASE_LANG_ALL_STATUS', "All status"); define('_AD_BASE_LANG_BCACHETIME', "bcachetime"); define('_AD_BASE_LANG_BID', "bid"); @@ -76,6 +77,7 @@ define('_AD_BASE_LANG_TARGET_MODULES', "Target modules"); define('_AD_BASE_LANG_TEMPLATE', "template"); define('_AD_BASE_LANG_TITLE', "title"); +define('_AD_BASE_LANG_TOPPAGE', "Toppage"); define('_AD_BASE_LANG_VISIBLE', "visible"); define('_AD_BASE_LANG_WEIGHT', "weight"); define('_AD_BASE_MESSAGE_CHILDREN_DELETED_TOGETHER', "Children deleted together"); From minahito @ users.sourceforge.jp Thu Apr 6 14:58:41 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 14:58:41 +0900 Subject: [xoops-cvslog 2649] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20060406055841.6391B2AC04F@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.23 xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.24 --- xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.23 Wed Apr 5 19:59:03 2006 +++ xoops2jp/html/modules/base/language/japanese/admin.php Thu Apr 6 14:58:41 2006 @@ -8,6 +8,7 @@ define('_AD_BASE_ERROR_PLEASE_AGREE', "ライセンスに同意してください"); define('_AD_BASE_ERROR_REQUIRED', "{0}は必ず入力して下さい"); define('_AD_BASE_ERROR_SMILE_URL_REQUIRED', "顔アイコンをアップロードして下さい"); +define('_AD_BASE_LANG_ALL_MODULES', "すべてのモジュール"); define('_AD_BASE_LANG_ALL_STATUS', "すべてのステータス"); define('_AD_BASE_LANG_BCACHETIME', "bcachetime"); define('_AD_BASE_LANG_BID', "bid"); @@ -76,6 +77,7 @@ define('_AD_BASE_LANG_TARGET_MODULES', "Target modules"); define('_AD_BASE_LANG_TEMPLATE', "template"); define('_AD_BASE_LANG_TITLE', "title"); +define('_AD_BASE_LANG_TOPPAGE', "トップページ"); define('_AD_BASE_LANG_VISIBLE', "visible"); define('_AD_BASE_LANG_WEIGHT', "weight"); define('_AD_BASE_MESSAGE_CHILDREN_DELETED_TOGETHER', "一緒に削除されるデータ"); From minahito @ users.sourceforge.jp Thu Apr 6 14:59:33 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 14:59:33 +0900 Subject: [xoops-cvslog 2650] CVS update: xoops2jp/html/modules/base/class Message-ID: <20060406055933.644812AC04F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/block_module_link.php diff -u /dev/null xoops2jp/html/modules/base/class/block_module_link.php:1.1.2.1 --- /dev/null Thu Apr 6 14:59:33 2006 +++ xoops2jp/html/modules/base/class/block_module_link.php Thu Apr 6 14:59:33 2006 @@ -0,0 +1,21 @@ +initVar('block_id', XOBJ_DTYPE_INT, '0', true); + $this->initVar('module_id', XOBJ_DTYPE_INT, '0', true); + } +} + +class BaseBlock_module_linkHandler extends XoopsObjectGenericHandler +{ + var $mTable = "block_module_link"; + var $mPrimary = "block_id"; + var $mClass = "BaseBlock_module_linkObject"; +} + +?> From minahito @ users.sourceforge.jp Thu Apr 6 15:00:25 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 15:00:25 +0900 Subject: [xoops-cvslog 2651] CVS update: xoops2jp/html/modules/base/class Message-ID: <20060406060025.B04B42AC04F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/newblocks.php diff -u xoops2jp/html/modules/base/class/newblocks.php:1.1.2.2 xoops2jp/html/modules/base/class/newblocks.php:1.1.2.3 --- xoops2jp/html/modules/base/class/newblocks.php:1.1.2.2 Thu Apr 6 12:37:37 2006 +++ xoops2jp/html/modules/base/class/newblocks.php Thu Apr 6 15:00:25 2006 @@ -10,8 +10,14 @@ * Array of group objects who can access this object. * It need lazy loading to access. */ - var $mGroup = null; + var $mGroup = array(); + var $mBmodule = array(); + + var $mColumn = null; + + var $mCachetime = null; + function BaseNewblocksObject() { $this->initVar('bid', XOBJ_DTYPE_INT, '', true); @@ -62,6 +68,26 @@ $this->mGroup[] =& $handler->get($gperm->get('gperm_groupid')); } } + + function loadBmodule() + { + $handler =& xoops_getmodulehandler('block_module_link', 'base'); + $criteria =& new Criteria('block_id', $this->get('bid')); + + $this->mBmodule =& $handler->getObjects($criteria); + } + + function loadColumn() + { + $handler =& xoops_getmodulehandler('columnside', 'base'); + $this->mColumn =& $handler->get($this->get('side')); + } + + function loadCachetime() + { + $handler =& xoops_gethandler('cachetime'); + $this->mCachetime =& $handler->get($this->get('bcachetime')); + } } class BaseNewblocksHandler extends XoopsObjectGenericHandler @@ -69,6 +95,61 @@ var $mTable = "newblocks"; var $mPrimary = "bid"; var $mClass = "BaseNewblocksObject"; + + function insert(&$obj, $force=false) + { + if (parent::insert($obj, $force)) { + $handler =& xoops_getmodulehandler('block_module_link', 'base'); + $handler->deleteAll(new Criteria('block_id', $obj->get('bid'))); + foreach ($obj->mBmodule as $bmodule) { + $handler->insert($bmodule); + } + + // + // Insert group permissions. + // + $currentGroupid = array(); + foreach ($obj->mGroup as $group) { + $currentGroupid[] = $group->get('groupid'); + } + + $permHandler =& xoops_gethandler('groupperm'); + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('gperm_modid', 1)); + $criteria->add(new Criteria('gperm_itemid', $obj->get('bid'))); + $criteria->add(new Criteria('gperm_name', 'block_read')); + + $gpermArr =& $permHandler->getObjects($criteria); + foreach ($gpermArr as $gperm) { + if (!in_array($gperm->get('gperm_groupid', $currentGroupid))) { + $permHandler->delete($gperm, $force); + } + } + + foreach ($obj->mGroup as $group) { + $insertFlag = true; + foreach ($gpermArr as $gperm) { + if ($gperm->get('gperm_groupid') == $group->get('group_id')) { + $insertFlag = false; + } + } + + if ($insertFlag) { + $gperm =& $permHandler->create(); + $gperm->set('gperm_modid', 1); + $gperm->set('gperm_groupid', $group->get('groupid')); + $gperm->set('gperm_itemid', $obj->get('bid')); + $gperm->set('gperm_name', 'block_read'); + + $permHandler->insert($gperm, $force); + } + } + + return true; + } + + return false; + } } ?> From minahito @ users.sourceforge.jp Thu Apr 6 15:00:56 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 15:00:56 +0900 Subject: [xoops-cvslog 2652] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20060406060056.8A16C2AC04F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/block_uninstall.html diff -u xoops2jp/html/modules/base/admin/templates/block_uninstall.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/block_uninstall.html:1.1.2.2 --- xoops2jp/html/modules/base/admin/templates/block_uninstall.html:1.1.2.1 Wed Apr 5 19:58:23 2006 +++ xoops2jp/html/modules/base/admin/templates/block_uninstall.html Thu Apr 6 15:00:56 2006 @@ -35,7 +35,9 @@ - + @@ -79,11 +81,13 @@ - + - + - @@ -40,16 +37,15 @@ <{foreach item=obj from=$objects}> - + - + - - - + + @@ -53,7 +55,7 @@ From minahito @ users.sourceforge.jp Thu Apr 6 15:01:28 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 15:01:28 +0900 Subject: [xoops-cvslog 2654] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20060406060128.767902AC052@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/forms/BlockEditForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/BlockEditForm.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/forms/BlockEditForm.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/forms/BlockEditForm.class.php:1.1.2.1 Wed Apr 5 19:58:07 2006 +++ xoops2jp/html/modules/base/admin/forms/BlockEditForm.class.php Thu Apr 6 15:01:28 2006 @@ -68,6 +68,16 @@ $this->set('side', $obj->get('side')); $this->set('weight', $obj->get('weight')); $this->set('bcachetime', $obj->get('bcachetime')); + + $i = 0; + foreach ($obj->mBmodule as $module) { + $this->set('bmodule', $i++, $module->get('module_id')); + } + + $i = 0; + foreach ($obj->mGroup as $group) { + $this->set('groupid', $i++, $group->get('groupid')); + } } function update(&$obj) @@ -81,6 +91,22 @@ $obj->set('bcachetime', $this->get('bcachetime')); $obj->set('last_modified', time()); + + $obj->mBmodule = array(); + $handler =& xoops_getmodulehandler('block_module_link', 'base'); + foreach ($this->get('bmodule') as $mid) { + $t_obj =& $handler->create(); + $t_obj->set('block_id', $this->get('bid')); + $t_obj->set('module_id', $mid); + $obj->mBmodule[] =& $t_obj; + unset($t_obj); + } + + $obj->mGroup = array(); + $handler =& xoops_gethandler('group'); + foreach ($this->get('groupid') as $groupid) { + $obj->mGroup[] =& $handler->get($groupid); + } } } From minahito @ users.sourceforge.jp Thu Apr 6 15:01:39 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 15:01:39 +0900 Subject: [xoops-cvslog 2655] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20060406060139.9CF6A2AC055@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/BlockUninstallAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/BlockUninstallAction.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/actions/BlockUninstallAction.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/actions/BlockUninstallAction.class.php:1.1.2.1 Wed Apr 5 19:57:52 2006 +++ xoops2jp/html/modules/base/admin/actions/BlockUninstallAction.class.php Thu Apr 6 15:01:39 2006 @@ -33,6 +33,8 @@ // lazy loading // $this->mObject->loadModule(); + $this->mObject->loadColumn(); + $this->mObject->loadCachetime(); $render->setAttribute('object', $this->mObject); } From minahito @ users.sourceforge.jp Thu Apr 6 15:01:43 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 15:01:43 +0900 Subject: [xoops-cvslog 2656] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20060406060143.971792AC052@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php:1.1.2.1 Wed Apr 5 19:57:52 2006 +++ xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php Thu Apr 6 15:01:43 2006 @@ -31,6 +31,8 @@ #cubson::lazy_load_array('newblocks', $this->mObjects); foreach (array_keys($this->mObjects) as $key) { $this->mObjects[$key]->loadModule(); + $this->mObjects[$key]->loadColumn(); + $this->mObjects[$key]->loadCachetime(); } $render->setAttribute("objects", $this->mObjects); From minahito @ users.sourceforge.jp Thu Apr 6 15:01:47 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 15:01:47 +0900 Subject: [xoops-cvslog 2657] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20060406060147.7F36A2AC052@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.2 xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.3 --- xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.2 Thu Apr 6 12:38:20 2006 +++ xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php Thu Apr 6 15:01:47 2006 @@ -23,6 +23,13 @@ return $handler; } + function _setupObject() + { + parent::_setupObject(); + $this->mObject->loadGroup(); + $this->mObject->loadBmodule(); + } + function _setupActionForm() { $this->mActionForm =& new Legacy_BlockEditForm(); @@ -38,12 +45,27 @@ // lazy loading // $this->mObject->loadModule(); - $this->mObject->loadGroup(); $render->setAttribute('object', $this->mObject); + // + // Build active modules list and set. + // $handler =& xoops_gethandler('module'); - $moduleArr =& $handler->getObjects(); + $moduleArr[0] =& $handler->create(); + $moduleArr[0]->set('mid', -1); + $moduleArr[0]->set('name', _AD_BASE_LANG_ALL_MODULES); + + $moduleArr[1] =& $handler->create(); + $moduleArr[1]->set('mid', 0); + $moduleArr[1]->set('name', _AD_BASE_LANG_TOPPAGE); + + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('hasmain', 1)); + $criteria->add(new Criteria('isactive', 1)); + + $t_Arr =& $handler->getObjects($criteria); + $moduleArr = array_merge($moduleArr, $t_Arr); $render->setAttribute('moduleArr', $moduleArr); $handler =& xoops_getmodulehandler('columnside'); @@ -55,6 +77,13 @@ $render->setAttribute('groupArr', $groupArr); // + // Build cachetime list and set. + // + $handler =& xoops_gethandler('cachetime'); + $cachetimeArr =& $handler->getObjects(); + $render->setAttribute('cachetimeArr', $cachetimeArr); + + // // Get html of option form rendered. // if ($this->mObject->get('func_file') && $this->mObject->get('edit_func')) { From minahito @ users.sourceforge.jp Thu Apr 6 15:11:32 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 15:11:32 +0900 Subject: [xoops-cvslog 2658] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20060406061132.550E12AC04F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/forms/BlockFilterForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/BlockFilterForm.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/forms/BlockFilterForm.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/forms/BlockFilterForm.class.php:1.1.2.1 Wed Apr 5 19:58:07 2006 +++ xoops2jp/html/modules/base/admin/forms/BlockFilterForm.class.php Thu Apr 6 15:11:32 2006 @@ -30,7 +30,7 @@ class Legacy_BlockFilterForm extends Legacy_AbstractFilterForm { var $mSort = 0; - var $mSortKeys = array( + var $_mSortKeys = array( NEWBLOCKS_SORT_KEY_DEFAULT => 'bid', NEWBLOCKS_SORT_KEY_BID => 'bid', NEWBLOCKS_SORT_KEY_MID => 'mid', From minahito @ users.sourceforge.jp Thu Apr 6 15:11:37 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 15:11:37 +0900 Subject: [xoops-cvslog 2659] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20060406061137.F10B42AC04F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/forms/BlockInstallFilterForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/BlockInstallFilterForm.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/forms/BlockInstallFilterForm.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/forms/BlockInstallFilterForm.class.php:1.1.2.1 Wed Apr 5 19:58:07 2006 +++ xoops2jp/html/modules/base/admin/forms/BlockInstallFilterForm.class.php Thu Apr 6 15:11:37 2006 @@ -30,7 +30,7 @@ class Legacy_BlockInstallFilterForm extends Legacy_AbstractFilterForm { var $mSort = 0; - var $mSortKeys = array( + var $_mSortKeys = array( NEWBLOCKS_SORT_KEY_DEFAULT => 'bid', NEWBLOCKS_SORT_KEY_BID => 'bid', NEWBLOCKS_SORT_KEY_MID => 'mid', From minahito @ users.sourceforge.jp Thu Apr 6 15:12:29 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 15:12:29 +0900 Subject: [xoops-cvslog 2660] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20060406061229.D74C22AC04F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php:1.1.2.2 xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php:1.1.2.3 --- xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php:1.1.2.2 Thu Apr 6 15:01:43 2006 +++ xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php Thu Apr 6 15:12:29 2006 @@ -22,7 +22,7 @@ function _getBaseUrl() { - return "./index.php?action=NewblocksList"; + return "./index.php?action=BlockList"; } function executeViewIndex(&$controller, &$xoopsUser, &$render) From minahito @ users.sourceforge.jp Thu Apr 6 15:24:11 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 15:24:11 +0900 Subject: [xoops-cvslog 2661] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20060406062411.410E92AC075@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.12 xoops2jp/html/modules/base/language/japanese/modinfo.php:1.1.2.13 --- xoops2jp/html/modules/base/language/japanese/modinfo.php:1.1.2.12 Wed Apr 5 19:59:03 2006 +++ xoops2jp/html/modules/base/language/japanese/modinfo.php Thu Apr 6 15:24:11 2006 @@ -1,38 +1,38 @@ - + Index: xoops2jp/html/modules/base/language/japanese/main.php diff -u xoops2jp/html/modules/base/language/japanese/main.php:1.1.2.10 xoops2jp/html/modules/base/language/japanese/main.php:1.1.2.11 --- xoops2jp/html/modules/base/language/japanese/main.php:1.1.2.10 Wed Apr 5 19:59:03 2006 +++ xoops2jp/html/modules/base/language/japanese/main.php Thu Apr 6 15:24:11 2006 @@ -1,95 +1,95 @@ -%s件のデータが見つかりました。"); -define('_SR_IGNOREDWORDS', "次の語句は短すぎる(%u 文字以下)ため検索に使用されていません。"); -define('_SR_KEYIGNORE', "文字数が "); -define('_SR_KEYTOOSHORT', "キーワードは %s 文字以上で指定してください。"); -define('_SR_KEYWORDS', "キーワード"); -define('_SR_NEXT', "次のページ >>"); -define('_SR_NOMATCH', "該当データなし。"); -define('_SR_PLZENTER', "必要なデータを全て入力してください。"); -define('_SR_PREVIOUS', "<< 前のページ"); -define('_SR_SEARCH', "検索"); -define('_SR_SEARCHIN', "検索対象のモジュール"); -define('_SR_SEARCHRESULTS', "検索結果"); -define('_SR_SEARCHRULE', "検索のルール"); -define('_SR_SHOWALLR', "すべて表示"); -define('_SR_SHOWING', "(%d 〜 %d 件目を表示)"); -define('_SR_TYPE', "検索の種類"); - -?> +%s件のデータが見つかりました。"); +define('_SR_IGNOREDWORDS', "次の語句は短すぎる(%u 文字以下)ため検索に使用されていません。"); +define('_SR_KEYIGNORE', "文字数が "); +define('_SR_KEYTOOSHORT', "キーワードは %s 文字以上で指定してください。"); +define('_SR_KEYWORDS', "キーワード"); +define('_SR_NEXT', "次のページ >>"); +define('_SR_NOMATCH', "該当データなし。"); +define('_SR_PLZENTER', "必要なデータを全て入力してください。"); +define('_SR_PREVIOUS', "<< 前のページ"); +define('_SR_SEARCH', "検索"); +define('_SR_SEARCHIN', "検索対象のモジュール"); +define('_SR_SEARCHRESULTS', "検索結果"); +define('_SR_SEARCHRULE', "検索のルール"); +define('_SR_SHOWALLR', "すべて表示"); +define('_SR_SHOWING', "(%d 〜 %d 件目を表示)"); +define('_SR_TYPE', "検索の種類"); + +?> From minahito @ users.sourceforge.jp Thu Apr 6 15:48:39 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 15:48:39 +0900 Subject: [xoops-cvslog 2662] CVS update: xoops2jp/html/kernel Message-ID: <20060406064839.D309A2AC06F@users.sourceforge.jp> Index: xoops2jp/html/kernel/cachetime.php diff -u /dev/null xoops2jp/html/kernel/cachetime.php:1.1.2.1 --- /dev/null Thu Apr 6 15:48:39 2006 +++ xoops2jp/html/kernel/cachetime.php Thu Apr 6 15:48:39 2006 @@ -0,0 +1,89 @@ +initVar('cachetime', XOBJ_DTYPE_OTHER, null, false); + $this->initVar('label', XOBJ_DTYPE_TXTBOX, null, true, 255); + } +} + +class XoopsCachetimeHandler extends XoopsObjectHandler +{ + var $_mResult; + + function XoopsCachetimeHandler(&$db) + { + parent::XoopsObjectHandler($db); + + // + // This handler not connects to database. + // + $this->_mResult = array( + "0" => _NOCACHE, + "30" => sprintf(_SECONDS, 30), + "60" => _MINUTE, + "300" => sprintf(_MINUTES, 5), + "1800" => sprintf(_MINUTES, 30), + "3600" => _HOUR, + "18000" => sprintf(_HOURS, 5), + "86400" => _DAY, + "259200" => sprintf(_DAYS, 3), + "604800" => _WEEK, + "2592000" => _MONTH + ); + } + + function &create() + { + $ret =& new XoopsCachetime(); + return $ret; + } + + function &get($cachetime) + { + if (isset($this->_mResult[$cachetime])) { + $obj =& new XoopsCachetime(); + $obj->setVar('cachetime', $cachetime); + $obj->setVar('label', $this->_mResult[$cachetime]); + + return $obj; + } + + $ret = null; + return $ret; + } + + function &getObjects($criteria = null, $key_as_id = false) + { + $ret = array(); + + foreach ($this->_mResult as $cachetime => $label) { + $obj =& new XoopsCachetime(); + $obj->setVar('cachetime', $cachetime); + $obj->setVar('label', $label); + if ($key_as_id) { + $ret[$cachetime] =& $obj; + } + else { + $ret[] =& $obj; + } + unset($obj); + } + + return $ret; + } + + function insert(&$obj) + { + return false; + } + + function delete(&$obj) + { + return false; + } +} + +?> \ No newline at end of file From minahito @ users.sourceforge.jp Thu Apr 6 15:49:35 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 15:49:35 +0900 Subject: [xoops-cvslog 2663] CVS update: xoops2jp/html/class Message-ID: <20060406064935.676352AC04F@users.sourceforge.jp> Index: xoops2jp/html/class/XCube_ActionForm.class.php diff -u xoops2jp/html/class/XCube_ActionForm.class.php:1.1.2.30 xoops2jp/html/class/XCube_ActionForm.class.php:1.1.2.31 --- xoops2jp/html/class/XCube_ActionForm.class.php:1.1.2.30 Tue Mar 28 22:28:16 2006 +++ xoops2jp/html/class/XCube_ActionForm.class.php Thu Apr 6 15:49:35 2006 @@ -312,6 +312,8 @@ function fetch($key = null) { + unset($this->mProperties); + $this->mProperties = array(); if (isset($_REQUEST[$this->mName]) && is_array($_REQUEST[$this->mName])) { foreach ($_REQUEST[$this->mName] as $_key => $_val) { $this->mProperties[$_key] =& new $this->mPropertyClassName($this->mName); From minahito @ users.sourceforge.jp Thu Apr 6 16:51:41 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 16:51:41 +0900 Subject: [xoops-cvslog 2664] CVS update: xoops2jp/html/modules/base/admin/.xml Message-ID: <20060406075141.EC9622AC01F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/.xml/customblock_edit.xml diff -u /dev/null xoops2jp/html/modules/base/admin/.xml/customblock_edit.xml:1.1.2.1 --- /dev/null Thu Apr 6 16:51:41 2006 +++ xoops2jp/html/modules/base/admin/.xml/customblock_edit.xml Thu Apr 6 16:51:41 2006 @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + From minahito @ users.sourceforge.jp Thu Apr 6 16:51:50 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 16:51:50 +0900 Subject: [xoops-cvslog 2665] CVS update: xoops2jp/html/modules/base/admin/.xml Message-ID: <20060406075150.D77372AC01F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/.xml/block_edit.xml diff -u xoops2jp/html/modules/base/admin/.xml/block_edit.xml:1.1.2.1 xoops2jp/html/modules/base/admin/.xml/block_edit.xml:1.1.2.2 --- xoops2jp/html/modules/base/admin/.xml/block_edit.xml:1.1.2.1 Wed Apr 5 19:57:26 2006 +++ xoops2jp/html/modules/base/admin/.xml/block_edit.xml Thu Apr 6 16:51:50 2006 @@ -3,7 +3,6 @@ - @@ -16,13 +15,6 @@ - - - - - - - From minahito @ users.sourceforge.jp Thu Apr 6 16:53:20 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 16:53:20 +0900 Subject: [xoops-cvslog 2666] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20060406075320.C455D2AC01F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/forms/CustomBlockEditForm.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/forms/CustomBlockEditForm.class.php:1.1.2.1 --- /dev/null Thu Apr 6 16:53:20 2006 +++ xoops2jp/html/modules/base/admin/forms/CustomBlockEditForm.class.php Thu Apr 6 16:53:20 2006 @@ -0,0 +1,74 @@ +get('bid'); + } + + function prepare() + { + parent::prepare(); + + // + // Set form properties + // + $this->mFormProperties['content'] =& new XCube_TextProperty('content'); + $this->mFormProperties['c_type'] =& new XCube_StringProperty('c_type'); + + // + // Set field properties + // + $this->mFieldProperties['content'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['content']->setDependsByArray(array('required')); + $this->mFieldProperties['content']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_CONTENT); + + $this->mFieldProperties['c_type'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['c_type']->setDependsByArray(array('required','maxlength')); + $this->mFieldProperties['c_type']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_C_TYPE, '1'); + $this->mFieldProperties['c_type']->addMessage('maxlength', _AD_BASE_ERROR_MAXLENGTH, _AD_BASE_LANG_C_TYPE, '1'); + $this->mFieldProperties['c_type']->addVar('maxlength', '1'); + } + + function load(&$obj) + { + parent::load($obj); + $this->set('content', $obj->get('content')); + $this->set('c_type', $obj->get('c_type')); + } + + function update(&$obj) + { + parent::update($obj); + $obj->set('content', $this->get('content')); + $obj->set('block_type', 'C'); + $obj->set('c_type', $this->get('c_type')); + $obj->set('visible', 1); + $obj->set('isactive', 1); + + switch ($this->get('c_type')) { + case 'H': + $obj->set('name', _AD_BASE_LANG_CUSTOM_HTML); + break; + + case 'P': + $obj->set('name', _AD_BASE_LANG_CUSTOM_PHP); + break; + + case 'S': + $obj->set('name', _AD_BASE_LANG_CUSTOM_WITH_SMILIES); + break; + + case 'T': + $obj->set('name', _AD_BASE_LANG_CUSTOM_WITHOUT_SMILIES); + break; + } + } +} + +?> From minahito @ users.sourceforge.jp Thu Apr 6 16:53:52 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 16:53:52 +0900 Subject: [xoops-cvslog 2667] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20060406075352.BA56B2AC015@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/forms/BlockEditForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/BlockEditForm.class.php:1.1.2.2 xoops2jp/html/modules/base/admin/forms/BlockEditForm.class.php:1.1.2.3 --- xoops2jp/html/modules/base/admin/forms/BlockEditForm.class.php:1.1.2.2 Thu Apr 6 15:01:28 2006 +++ xoops2jp/html/modules/base/admin/forms/BlockEditForm.class.php Thu Apr 6 16:53:52 2006 @@ -19,7 +19,6 @@ // $this->mFormProperties['bid'] =& new XCube_IntProperty('bid'); $this->mFormProperties['options'] =& new XCube_StringArrayProperty('options'); - $this->mFormProperties['name'] =& new XCube_StringProperty('name'); $this->mFormProperties['title'] =& new XCube_StringProperty('title'); $this->mFormProperties['side'] =& new XCube_IntProperty('side'); $this->mFormProperties['weight'] =& new XCube_IntProperty('weight'); @@ -35,12 +34,6 @@ $this->mFieldProperties['bid']->setDependsByArray(array('required')); $this->mFieldProperties['bid']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_BID); - $this->mFieldProperties['name'] =& new XCube_FieldProperty($this); - $this->mFieldProperties['name']->setDependsByArray(array('required','maxlength')); - $this->mFieldProperties['name']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_NAME, '150'); - $this->mFieldProperties['name']->addMessage('maxlength', _AD_BASE_ERROR_MAXLENGTH, _AD_BASE_LANG_NAME, '150'); - $this->mFieldProperties['name']->addVar('maxlength', '150'); - $this->mFieldProperties['title'] =& new XCube_FieldProperty($this); $this->mFieldProperties['title']->setDependsByArray(array('required','maxlength')); $this->mFieldProperties['title']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_TITLE, '255'); @@ -63,7 +56,6 @@ function load(&$obj) { $this->set('bid', $obj->get('bid')); - $this->set('name', $obj->get('name')); $this->set('title', $obj->get('title')); $this->set('side', $obj->get('side')); $this->set('weight', $obj->get('weight')); @@ -84,7 +76,6 @@ { $obj->set('bid', $this->get('bid')); $obj->set('options', implode('|', $this->get('options'))); - $obj->set('name', $this->get('name')); $obj->set('title', $this->get('title')); $obj->set('side', $this->get('side')); $obj->set('weight', $this->get('weight')); From minahito @ users.sourceforge.jp Thu Apr 6 16:54:08 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 16:54:08 +0900 Subject: [xoops-cvslog 2668] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20060406075408.7D6772AC015@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/CustomBlockEditAction.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/actions/CustomBlockEditAction.class.php:1.1.2.1 --- /dev/null Thu Apr 6 16:54:08 2006 +++ xoops2jp/html/modules/base/admin/actions/CustomBlockEditAction.class.php Thu Apr 6 16:54:08 2006 @@ -0,0 +1,73 @@ +mActionForm =& new Legacy_CustomBlockEditForm(); + $this->mActionForm->prepare(); + } + + function executeViewInput(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("customblock_edit.html"); + $render->setAttribute('actionForm', $this->mActionForm); + + // + // lazy loading + // + $this->mObject->loadModule(); + + $render->setAttribute('object', $this->mObject); + + // + // Build active modules list and set. + // + $handler =& xoops_gethandler('module'); + $moduleArr[0] =& $handler->create(); + $moduleArr[0]->set('mid', -1); + $moduleArr[0]->set('name', _AD_BASE_LANG_ALL_MODULES); + + $moduleArr[1] =& $handler->create(); + $moduleArr[1]->set('mid', 0); + $moduleArr[1]->set('name', _AD_BASE_LANG_TOPPAGE); + + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('hasmain', 1)); + $criteria->add(new Criteria('isactive', 1)); + + $t_Arr =& $handler->getObjects($criteria); + $moduleArr = array_merge($moduleArr, $t_Arr); + $render->setAttribute('moduleArr', $moduleArr); + + $handler =& xoops_getmodulehandler('columnside'); + $columnSideArr =& $handler->getObjects(); + $render->setAttribute('columnSideArr', $columnSideArr); + + $handler =& xoops_gethandler('group'); + $groupArr =& $handler->getObjects(); + $render->setAttribute('groupArr', $groupArr); + + // + // Build cachetime list and set. + // + $handler =& xoops_gethandler('cachetime'); + $cachetimeArr =& $handler->getObjects(); + $render->setAttribute('cachetimeArr', $cachetimeArr); + + // + // Build ctype list and set. + // + $handler =& xoops_getmodulehandler('blockctype'); + $ctypeArr =& $handler->getObjects(); + $render->setAttribute('ctypeArr', $ctypeArr); + } +} + +?> From minahito @ users.sourceforge.jp Thu Apr 6 16:54:25 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 16:54:25 +0900 Subject: [xoops-cvslog 2669] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20060406075425.22A382AC015@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/customblock_edit.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/customblock_edit.html:1.1.2.1 --- /dev/null Thu Apr 6 16:54:25 2006 +++ xoops2jp/html/modules/base/admin/templates/customblock_edit.html Thu Apr 6 16:54:25 2006 @@ -0,0 +1,76 @@ +<{if $actionForm->hasError()}> +
    + <{foreach item=message from=$actionForm->getErrorMessages()}> +
  • <{$message|escape}>
  • + <{/foreach}> +
+<{/if}> +
+ <{xoops_token form=$actionForm}> + <{xoops_input type=hidden name=bid value=$actionForm->getVar('bid')}> +
From nobunobu @ users.sourceforge.jp Wed Apr 5 17:40:57 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Wed, 5 Apr 2006 17:40:57 +0900 Subject: [xoops-cvslog 2629] CVS update: xoops2jp/html/modules/user/admin/templates Message-ID: <20060405084057.8735C2AC02C@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/templates/user_edit.html diff -u xoops2jp/html/modules/user/admin/templates/user_edit.html:1.1.2.11 xoops2jp/html/modules/user/admin/templates/user_edit.html:1.1.2.12 --- xoops2jp/html/modules/user/admin/templates/user_edit.html:1.1.2.11 Sat Feb 4 16:28:25 2006 +++ xoops2jp/html/modules/user/admin/templates/user_edit.html Wed Apr 5 17:40:57 2006 @@ -158,7 +158,7 @@ <{$smarty.const._AD_USER_LANG_RANK}> "> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
<{$smarty.const._AD_BASE_LANG_BID}>"><{$object->getVar('bid')}>
<{$smarty.const._AD_BASE_LANG_MID}>"><{$object->getVar('mid')}>
<{$smarty.const._AD_BASE_LANG_FUNC_NUM}>"><{$object->getVar('func_num')}>
<{$smarty.const._AD_BASE_LANG_OPTIONS}>"><{$object->getVar('options')}>
<{$smarty.const._AD_BASE_LANG_NAME}>"><{$object->getVar('name')}>
<{$smarty.const._AD_BASE_LANG_TITLE}>"><{$object->getVar('title')}>
<{$smarty.const._AD_BASE_LANG_CONTENT}>"><{$object->getVar('content')}>
<{$smarty.const._AD_BASE_LANG_SIDE}>"><{$object->getVar('side')}>
<{$smarty.const._AD_BASE_LANG_WEIGHT}>"><{$object->getVar('weight')}>
<{$smarty.const._AD_BASE_LANG_VISIBLE}>"><{$object->getVar('visible')}>
<{$smarty.const._AD_BASE_LANG_BLOCK_TYPE}>"><{$object->getVar('block_type')}>
<{$smarty.const._AD_BASE_LANG_C_TYPE}>"><{$object->getVar('c_type')}>
<{$smarty.const._AD_BASE_LANG_ISACTIVE}>"><{$object->getVar('isactive')}>
<{$smarty.const._AD_BASE_LANG_DIRNAME}>"><{$object->getVar('dirname')}>
<{$smarty.const._AD_BASE_LANG_FUNC_FILE}>"><{$object->getVar('func_file')}>
<{$smarty.const._AD_BASE_LANG_SHOW_FUNC}>"><{$object->getVar('show_func')}>
<{$smarty.const._AD_BASE_LANG_EDIT_FUNC}>"><{$object->getVar('edit_func')}>
<{$smarty.const._AD_BASE_LANG_TEMPLATE}>"><{$object->getVar('template')}>
<{$smarty.const._AD_BASE_LANG_BCACHETIME}>"><{$object->getVar('bcachetime')}>
<{$smarty.const._AD_BASE_LANG_LAST_MODIFIED}>"><{$object->getVar('last_modified')}>

+
+ <{xoops_token form=$actionForm}> + <{xoops_input type=hidden name=bid value=$actionForm->get('bid')}> + +
+
Index: xoops2jp/html/modules/base/admin/templates/blockinstall_edit.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/blockinstall_edit.html:1.1.2.1 --- /dev/null Wed Apr 5 19:58:23 2006 +++ xoops2jp/html/modules/base/admin/templates/blockinstall_edit.html Wed Apr 5 19:58:23 2006 @@ -0,0 +1,80 @@ +<{if $actionForm->hasError()}> +
    + <{foreach item=message from=$actionForm->getErrorMessages()}> +
  • <{$message|escape}>
  • + <{/foreach}> +
+<{/if}> +
+ <{xoops_token form=$actionForm}> + <{xoops_input type=hidden name=bid value=$actionForm->getVar('bid')}> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <{if $optionForm != null}> + + + + + <{/if}> + + + +
<{$smarty.const._AD_BASE_LANG_NAME}>"> + <{xoops_input type=text name=name value=$actionForm->getVar('name') size=15 maxlength=150}> +
<{$smarty.const._AD_BASE_LANG_TITLE}>"> + <{xoops_input type=text name=title value=$actionForm->getVar('title') size=15 maxlength=255}> +
<{$smarty.const._AD_BASE_LANG_SIDE}>"> + +
<{$smarty.const._AD_BASE_LANG_WEIGHT}>"> + <{xoops_input type=text name=weight value=$actionForm->getVar('weight')}> +
<{$smarty.const._AD_BASE_LANG_BCACHETIME}>"> + <{xoops_input type=text name=bcachetime value=$actionForm->getVar('bcachetime')}> +
<{$smarty.const._AD_BASE_LANG_TARGET_MODULES}>"> + +
<{$smarty.const._AD_BASE_LANG_TARGET_GROUPS}>"> + +
<{$smarty.const._AD_BASE_LANG_OPTIONS}>"> + <{$optionForm}> +
+ +
+
Index: xoops2jp/html/modules/base/admin/templates/block_list.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/block_list.html:1.1.2.1 --- /dev/null Wed Apr 5 19:58:23 2006 +++ xoops2jp/html/modules/base/admin/templates/block_list.html Wed Apr 5 19:58:23 2006 @@ -0,0 +1,61 @@ + +
+ + + + + + + + + + + + + + + + <{foreach item=obj from=$objects}> + + + + + + + + + + + + + + + <{/foreach}> +
<{$smarty.const._AD_BASE_LANG_BID}>
+ " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_MID}>
+ " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_NAME}>
+ " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_TITLE}>
+ " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_SIDE}>
+ " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_WEIGHT}>
+ " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_VISIBLE}>
+ " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_BLOCK_TYPE}>
+ " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_C_TYPE}>
+ " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_BCACHETIME}>
+ " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_LAST_MODIFIED}>
+ " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_CONTROL}>
<{$obj->getVar('bid')}><{$obj->getVar('mid')}><{$obj->getVar('name')}><{$obj->getVar('title')}><{$obj->getVar('side')}><{$obj->getVar('weight')}><{$obj->getVar('visible')}><{$obj->getVar('block_type')}><{$obj->getVar('c_type')}><{$obj->getVar('bcachetime')}><{$obj->getVar('last_modified')}> + " alt="<{$smarty.const._EDIT}>" /> + " alt="<{$smarty.const._DELETE}>" /> +
+
+
<{xoops_pagenavi pagenavi=$pageNavi}>
Index: xoops2jp/html/modules/base/admin/templates/blockinstall_list.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/blockinstall_list.html:1.1.2.1 --- /dev/null Wed Apr 5 19:58:23 2006 +++ xoops2jp/html/modules/base/admin/templates/blockinstall_list.html Wed Apr 5 19:58:23 2006 @@ -0,0 +1,46 @@ +
+ <{$smarty.const._AD_BASE_TIPS_INSTALL_BLOCK}> +
+ + + + + + + + + + + + + <{foreach item=obj from=$objects}> + + + + + + + + + + + <{/foreach}> +
<{$smarty.const._AD_BASE_LANG_BID}>
+ " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_MID}>
+ " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_NAME}>
+ " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_TITLE}>
+ " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_BLOCK_TYPE}>
+ " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_C_TYPE}>
+ " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_TEMPLATE}>
+ " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_BASE_LANG_CONTROL}>
<{$obj->getVar('bid')}><{$obj->mModule->getVar('name')}><{$obj->getVar('name')}><{$obj->getVar('title')}><{$obj->getVar('block_type')}><{$obj->getVar('c_type')}><{$obj->getVar('template')}> + " alt="<{$smarty.const._MD_A_BASE_LANG_INSTALL}>" /> +
+
+
<{xoops_pagenavi pagenavi=$pageNavi}>
Index: xoops2jp/html/modules/base/admin/templates/block_edit.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/block_edit.html:1.1.2.1 --- /dev/null Wed Apr 5 19:58:23 2006 +++ xoops2jp/html/modules/base/admin/templates/block_edit.html Wed Apr 5 19:58:23 2006 @@ -0,0 +1,80 @@ +<{if $actionForm->hasError()}> +
    + <{foreach item=message from=$actionForm->getErrorMessages()}> +
  • <{$message|escape}>
  • + <{/foreach}> +
+<{/if}> +
+ <{xoops_token form=$actionForm}> + <{xoops_input type=hidden name=bid value=$actionForm->getVar('bid')}> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + <{if $optionForm != null}> + + + + + <{/if}> + + + +
<{$smarty.const._AD_BASE_LANG_NAME}>"> + <{xoops_input type=text name=name value=$actionForm->getVar('name') size=15 maxlength=150}> +
<{$smarty.const._AD_BASE_LANG_TITLE}>"> + <{xoops_input type=text name=title value=$actionForm->getVar('title') size=15 maxlength=255}> +
<{$smarty.const._AD_BASE_LANG_SIDE}>"> + +
<{$smarty.const._AD_BASE_LANG_WEIGHT}>"> + <{xoops_input type=text name=weight value=$actionForm->getVar('weight')}> +
<{$smarty.const._AD_BASE_LANG_BCACHETIME}>"> + <{xoops_input type=text name=bcachetime value=$actionForm->getVar('bcachetime')}> +
<{$smarty.const._AD_BASE_LANG_TARGET_MODULES}>"> + +
<{$smarty.const._AD_BASE_LANG_TARGET_GROUPS}>"> + +
<{$smarty.const._AD_BASE_LANG_OPTIONS}>"> + <{$optionForm}> +
+ +
+
From minahito @ users.sourceforge.jp Wed Apr 5 19:58:39 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 5 Apr 2006 19:58:39 +0900 Subject: [xoops-cvslog 2638] CVS update: xoops2jp/html/modules/base/class Message-ID: <20060405105839.3316D2AC054@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/newblocks.php diff -u /dev/null xoops2jp/html/modules/base/class/newblocks.php:1.1.2.1 --- /dev/null Wed Apr 5 19:58:39 2006 +++ xoops2jp/html/modules/base/class/newblocks.php Wed Apr 5 19:58:39 2006 @@ -0,0 +1,47 @@ +initVar('bid', XOBJ_DTYPE_INT, '', true); + $this->initVar('mid', XOBJ_DTYPE_INT, '0', true); + $this->initVar('func_num', XOBJ_DTYPE_INT, '0', true); + $this->initVar('options', XOBJ_DTYPE_STRING, '', true, 255); + $this->initVar('name', XOBJ_DTYPE_STRING, '', true, 150); + $this->initVar('title', XOBJ_DTYPE_STRING, '', true, 255); + $this->initVar('content', XOBJ_DTYPE_TEXT, '', true); + $this->initVar('side', XOBJ_DTYPE_INT, '0', true); + $this->initVar('weight', XOBJ_DTYPE_INT, '0', true); + $this->initVar('visible', XOBJ_DTYPE_BOOL, '0', true); + $this->initVar('block_type', XOBJ_DTYPE_STRING, '', true, 1); + $this->initVar('c_type', XOBJ_DTYPE_STRING, '', true, 1); + $this->initVar('isactive', XOBJ_DTYPE_BOOL, '0', true); + $this->initVar('dirname', XOBJ_DTYPE_STRING, '', true, 50); + $this->initVar('func_file', XOBJ_DTYPE_STRING, '', true, 50); + $this->initVar('show_func', XOBJ_DTYPE_STRING, '', true, 50); + $this->initVar('edit_func', XOBJ_DTYPE_STRING, '', true, 50); + $this->initVar('template', XOBJ_DTYPE_STRING, '', true, 50); + $this->initVar('bcachetime', XOBJ_DTYPE_INT, '0', true); + $this->initVar('last_modified', XOBJ_DTYPE_INT, '0', true); + } + + function loadModule() + { + $handler =& xoops_gethandler('module'); + $this->mModule =& $handler->get($this->get('mid')); + } +} + +class BaseNewblocksHandler extends XoopsObjectGenericHandler +{ + var $mTable = "newblocks"; + var $mPrimary = "bid"; + var $mClass = "BaseNewblocksObject"; +} + +?> Index: xoops2jp/html/modules/base/class/columnside.php diff -u /dev/null xoops2jp/html/modules/base/class/columnside.php:1.1.2.1 --- /dev/null Wed Apr 5 19:58:39 2006 +++ xoops2jp/html/modules/base/class/columnside.php Wed Apr 5 19:58:39 2006 @@ -0,0 +1,81 @@ +initVar('id', XOBJ_DTYPE_INT, '', true); + $this->initVar('name', XOBJ_DTYPE_STRING, '', true, 255); + } +} + +class BaseColumnsideHandler extends XoopsObjectHandler +{ + var $_mResults = array(); + + function BaseColumnsideHandler(&$db) + { + $t_arr = array ( + 0 => _AD_BASE_LANG_SIDE_BLOCK_LEFT, + 1 => _AD_BASE_LANG_SIDE_BLOCK_RIGHT, + 3 => _AD_BASE_LANG_CENTER_BLOCK_LEFT, + 4 => _AD_BASE_LANG_CENTER_BLOCK_RIGHT, + 5 => _AD_BASE_LANG_CENTER_BLOCK_CENTER + ); + + foreach ($t_arr as $id => $name) { + $this->_mResults[$id] =& $this->create(); + $this->_mResults[$id]->setVar('id', $id); + $this->_mResults[$id]->setVar('name', $name); + } + } + + function &create() + { + $ret =& new BaseColumnsideObject(); + return $ret; + } + + function get($id) + { + if (isset($this->_mResults[$id])) { + return $this->_mResults[$id]; + } + + $ret = null; + return $ret; + } + + function &getObjects($criteria = null, $id_as_key = false) + { + if ($id_as_key) { + return $this->_mResults; + } + else { + $ret = array(); + + foreach (array_keys($this->_mResults) as $key) { + $ret[] =& $this->_mResults[$key]; + } + + return $ret; + } + } + + function insert(&$obj) + { + return false; + } + + function delete(&$obj) + { + return false; + } +} + +?> From minahito @ users.sourceforge.jp Wed Apr 5 19:59:03 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 5 Apr 2006 19:59:03 +0900 Subject: [xoops-cvslog 2639] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20060405105903.C3E812AC02D@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.11 xoops2jp/html/modules/base/language/japanese/modinfo.php:1.1.2.12 --- xoops2jp/html/modules/base/language/japanese/modinfo.php:1.1.2.11 Sun Mar 26 15:07:43 2006 +++ xoops2jp/html/modules/base/language/japanese/modinfo.php Wed Apr 5 19:59:03 2006 @@ -1,10 +1,32 @@ Index: xoops2jp/html/modules/base/language/japanese/xoops2.html diff -u xoops2jp/html/modules/base/language/japanese/xoops2.html:1.1.2.2 xoops2jp/html/modules/base/language/japanese/xoops2.html:1.1.2.3 --- xoops2jp/html/modules/base/language/japanese/xoops2.html:1.1.2.2 Thu Feb 2 23:13:38 2006 +++ xoops2jp/html/modules/base/language/japanese/xoops2.html Wed Apr 5 19:59:03 2006 @@ -26,6 +26,15 @@
  • DBテンプレートはレンダーシステムの特性という考え方になりますので、その管理はレンダーシステムのモジュールへ移動します。ただしこの移行作業はまだ終えていません。
  • +New! +
    ブロックの管理
    +
      +
    • XOOPS Cube 2.1 + Legacy モジュールでは、ブロックの考え方を整理し、「可視/不可視」をモジュール同様、インストールという概念で考えています。
    • +
    • モジュールをインストールするとブロックも XOOPS Cube + Legacy に登録されますが、使用可能な状態ではありません。モジュールと同様に、ブロックのインストールリストへ進み、導入したいブロックのインストールアイコンをクリックしてください。
    • +
    • アンインストールすると、そのブロックはインストール候補リストに戻ります。
    • +
    • XOOPS Cube 2.1 では非インストールブロックには権限の概念も、アサイン列の概念も、アサインモジュールの概念もありません。ただし、設定は記憶されており、再インストール時の初期値は最後のパラメータが使用されます。
    • +
    +
    TODO
    • baseモジュールからlegacyモジュールへ名称を変更する予定です。
    • Index: xoops2jp/html/modules/base/language/japanese/main.php diff -u xoops2jp/html/modules/base/language/japanese/main.php:1.1.2.9 xoops2jp/html/modules/base/language/japanese/main.php:1.1.2.10 --- xoops2jp/html/modules/base/language/japanese/main.php:1.1.2.9 Sat Feb 4 12:37:35 2006 +++ xoops2jp/html/modules/base/language/japanese/main.php Wed Apr 5 19:59:03 2006 @@ -1,75 +1,95 @@ -%s件のデータが見つかりました。"); -define('_SR_IGNOREDWORDS', "次の語句は短すぎる(%u 文字以下)ため検索に使用されていません。"); -define('_SR_KEYIGNORE', "文字数が "); -define('_SR_KEYTOOSHORT', "キーワードは %s 文字以上で指定してください。"); -define('_SR_KEYWORDS', "キーワード"); -define('_SR_NEXT', "次のページ >>"); -define('_SR_NOMATCH', "該当データなし。"); -define('_SR_PLZENTER', "必要なデータを全て入力してください。"); -define('_SR_PREVIOUS', "<< 前のページ"); -define('_SR_SEARCH', "検索"); -define('_SR_SEARCHIN', "検索対象のモジュール"); -define('_SR_SEARCHRESULTS', "検索結果"); -define('_SR_SEARCHRULE', "検索のルール"); -define('_SR_SHOWALLR', "すべて表示"); -define('_SR_SHOWING', "(%d 〜 %d 件目を表示)"); -define('_SR_TYPE', "検索の種類"); - -?> +%s件のデータが見つかりました。"); +define('_SR_IGNOREDWORDS', "次の語句は短すぎる(%u 文字以下)ため検索に使用されていません。"); +define('_SR_KEYIGNORE', "文字数が "); +define('_SR_KEYTOOSHORT', "キーワードは %s 文字以上で指定してください。"); +define('_SR_KEYWORDS', "キーワード"); +define('_SR_NEXT', "次のページ >>"); +define('_SR_NOMATCH', "該当データなし。"); +define('_SR_PLZENTER', "必要なデータを全て入力してください。"); +define('_SR_PREVIOUS', "<< 前のページ"); +define('_SR_SEARCH', "検索"); +define('_SR_SEARCHIN', "検索対象のモジュール"); +define('_SR_SEARCHRESULTS', "検索結果"); +define('_SR_SEARCHRULE', "検索のルール"); +define('_SR_SHOWALLR', "すべて表示"); +define('_SR_SHOWING', "(%d 〜 %d 件目を表示)"); +define('_SR_TYPE', "検索の種類"); + +?> Index: xoops2jp/html/modules/base/language/japanese/admin.php diff -u xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.22 xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.23 --- xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.22 Thu Mar 30 23:51:53 2006 +++ xoops2jp/html/modules/base/language/japanese/admin.php Wed Apr 5 19:59:03 2006 @@ -4,10 +4,19 @@ define('_AD_BASE_ERROR_EXTENSION', "許可されたファイル形式ではありません"); define('_AD_BASE_ERROR_INTRANGE', "{0}の値が不正です"); define('_AD_BASE_ERROR_MAXLENGTH', "{0}は半角{1}文字以下で入力して下さい"); +define('_AD_BASE_ERROR_OPTIONS', "オプションの値が不正です"); define('_AD_BASE_ERROR_PLEASE_AGREE', "ライセンスに同意してください"); define('_AD_BASE_ERROR_REQUIRED', "{0}は必ず入力して下さい"); define('_AD_BASE_ERROR_SMILE_URL_REQUIRED', "顔アイコンをアップロードして下さい"); define('_AD_BASE_LANG_ALL_STATUS', "すべてのステータス"); +define('_AD_BASE_LANG_BCACHETIME', "bcachetime"); +define('_AD_BASE_LANG_BID', "bid"); +define('_AD_BASE_LANG_BLOCK_INSTALL', "ブロックのインストール"); +define('_AD_BASE_LANG_BLOCK_TYPE', "block type"); +define('_AD_BASE_LANG_C_TYPE', "c type"); +define('_AD_BASE_LANG_CENTER_BLOCK_CENTER', "Center block center"); +define('_AD_BASE_LANG_CENTER_BLOCK_LEFT', "Center block left"); +define('_AD_BASE_LANG_CENTER_BLOCK_RIGHT', "Center block right"); define('_AD_BASE_LANG_CODE', "コード"); define('_AD_BASE_LANG_COM_CREATED', "作成日時"); define('_AD_BASE_LANG_COM_EXPARAMS', "com exparams"); @@ -28,29 +37,51 @@ define('_AD_BASE_LANG_COMMENT_EDIT', "コメント編集"); define('_AD_BASE_LANG_COMMENT_NEW', "コメント新規追加"); define('_AD_BASE_LANG_COMMENT_VIEW', "コメント閲覧"); +define('_AD_BASE_LANG_CONTENT', "content"); define('_AD_BASE_LANG_CONTROL', "コントロール"); define('_AD_BASE_LANG_CREATE_NEW', "新規作成"); +define('_AD_BASE_LANG_DIRNAME', "dirname"); define('_AD_BASE_LANG_DISPLAY', "表示"); define('_AD_BASE_LANG_DOBR', "改行を自動挿入する"); define('_AD_BASE_LANG_DOHTML', "HTMLタグを有効にする"); define('_AD_BASE_LANG_DOIMAGE', "doimage"); define('_AD_BASE_LANG_DOSMILEY', "顔アイコンを有効にする"); define('_AD_BASE_LANG_DOXCODE', "XOOPSコードを有効にする"); +define('_AD_BASE_LANG_EDIT_FUNC', "edit func"); define('_AD_BASE_LANG_EMOTION', "意味"); +define('_AD_BASE_LANG_FUNC_FILE', "func file"); +define('_AD_BASE_LANG_FUNC_NUM', "func num"); define('_AD_BASE_LANG_ID', "ID"); +define('_AD_BASE_LANG_ISACTIVE', "isactive"); +define('_AD_BASE_LANG_LAST_MODIFIED', "last modified"); +define('_AD_BASE_LANG_MID', "mid"); +define('_AD_BASE_LANG_NAME', "name"); define('_AD_BASE_LANG_ONLINE_IP', "online ip"); define('_AD_BASE_LANG_ONLINE_MODULE', "online module"); define('_AD_BASE_LANG_ONLINE_UID', "online uid"); define('_AD_BASE_LANG_ONLINE_UNAME', "online uname"); define('_AD_BASE_LANG_ONLINE_UPDATED', "online updated"); +define('_AD_BASE_LANG_OPTIONS', "options"); define('_AD_BASE_LANG_RES_FOR_COMMENT', "このコメントへのレスポンス"); +define('_AD_BASE_LANG_SHOW_FUNC', "show func"); +define('_AD_BASE_LANG_SIDE', "side"); +define('_AD_BASE_LANG_SIDE_BLOCK_LEFT', "Side block left"); +define('_AD_BASE_LANG_SIDE_BLOCK_RIGHT', "Side block right"); define('_AD_BASE_LANG_SMILE_URL', "画像"); define('_AD_BASE_LANG_SMILES_DELETE', "顔アイコン削除"); define('_AD_BASE_LANG_SMILES_EDIT', "顔アイコン編集"); define('_AD_BASE_LANG_SMILES_NEW', "顔アイコン新規追加"); define('_AD_BASE_LANG_SUBMIT', "送信"); +define('_AD_BASE_LANG_TARGET_GROUPS', "Target groups"); +define('_AD_BASE_LANG_TARGET_MODULES', "Target modules"); +define('_AD_BASE_LANG_TEMPLATE', "template"); +define('_AD_BASE_LANG_TITLE', "title"); +define('_AD_BASE_LANG_VISIBLE', "visible"); +define('_AD_BASE_LANG_WEIGHT', "weight"); define('_AD_BASE_MESSAGE_CHILDREN_DELETED_TOGETHER', "一緒に削除されるデータ"); define('_AD_BASE_MESSAGE_CONFIRM_DELETE', "削除確認"); +define('_AD_BASE_TIPS_BLOCK_UNINSTALL', "Q:ブロックをアンインストールすると?
      A:すべての設定を記録したまま、表示やリストから消えます。設定を記録してますので、簡単に再インストールすることができます。"); +define('_AD_BASE_TIPS_INSTALL_BLOCK', "ブロックをインストールしてサイトをカスタマイズしましょう。インストール時に表示オプションなどを調整できます。"); define('_MB_A_BASE_LANG_ACTIONSEARCH', "アクションサーチ"); define('_MB_A_BASE_LANG_ACTIONSEARCH_INFO', "管理メニューやヘルプから入力されたキーワードを検索します。
      管理メニューの位置を忘れたときに使いましょう (例)利用許諾文"); define('_MB_A_BASE_LANG_MENU', "メニュー"); From minahito @ users.sourceforge.jp Wed Apr 5 19:59:03 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 5 Apr 2006 19:59:03 +0900 Subject: [xoops-cvslog 2640] CVS update: xoops2jp/html/modules/base/language/english Message-ID: <20060405105903.EA2DE2AC054@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.11 xoops2jp/html/modules/base/language/english/modinfo.php:1.1.2.12 --- xoops2jp/html/modules/base/language/english/modinfo.php:1.1.2.11 Sun Mar 26 15:07:43 2006 +++ xoops2jp/html/modules/base/language/english/modinfo.php Wed Apr 5 19:59:03 2006 @@ -1,10 +1,32 @@ 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_BLOCK_MAINMENU_NAME', "Main Menu"); -define('_MI_BASE_BLOCK_MAINMENU_DESC', "Shows the main navigation menu of the site"); -define('_MI_BASE_BLOCK_USERMENU_NAME', "User Menu"); -define('_MI_BASE_BLOCK_USERMENU_DESC', "Shows user block"); -define('_MI_BASE_BLOCK_SEARCH_NAME', "Search"); -define('_MI_BASE_BLOCK_SEARCH_DESC', "Shows search form block"); -define('_MI_BASE_BLOCK_WAITING_NAME', "Waiting Contents"); -define('_MI_BASE_BLOCK_WAITING_DESC', "Shows contents waiting for approval"); -define('_MI_BASE_BLOCK_SITEINFO_NAME', "Site Info"); -define('_MI_BASE_BLOCK_SITEINFO_DESC', "Shows basic info about the site and a link to Recommend Us pop up window"); -define('_MI_BASE_BLOCK_COMMENTS_NAME', "Recent Comments"); -define('_MI_BASE_BLOCK_COMMENTS_DESC', "Shows most recent comments"); -define('_MI_BASE_BLOCK_NOTIFICATION_NAME', "Notification Options"); -define('_MI_BASE_BLOCK_NOTIFICATION_DESC', "Shows notification options"); ?> Index: xoops2jp/html/modules/base/language/english/admin.php diff -u xoops2jp/html/modules/base/language/english/admin.php:1.1.2.18 xoops2jp/html/modules/base/language/english/admin.php:1.1.2.19 --- xoops2jp/html/modules/base/language/english/admin.php:1.1.2.18 Thu Mar 30 23:51:54 2006 +++ xoops2jp/html/modules/base/language/english/admin.php Wed Apr 5 19:59:03 2006 @@ -4,10 +4,19 @@ define('_AD_BASE_ERROR_EXTENSION', "Uploaded file's extension does not match any entry in the allowed list."); define('_AD_BASE_ERROR_INTRANGE', "{0} is wrong."); define('_AD_BASE_ERROR_MAXLENGTH', "Input {0} with {1} or less characters."); +define('_AD_BASE_ERROR_OPTIONS', "options"); define('_AD_BASE_ERROR_PLEASE_AGREE', "Please agree the following licence."); define('_AD_BASE_ERROR_REQUIRED', "{0} is required."); define('_AD_BASE_ERROR_SMILE_URL_REQUIRED', "Upload the image file of smilies."); define('_AD_BASE_LANG_ALL_STATUS', "All status"); +define('_AD_BASE_LANG_BCACHETIME', "bcachetime"); +define('_AD_BASE_LANG_BID', "bid"); +define('_AD_BASE_LANG_BLOCK_INSTALL', "block install"); +define('_AD_BASE_LANG_BLOCK_TYPE', "block type"); +define('_AD_BASE_LANG_C_TYPE', "c type"); +define('_AD_BASE_LANG_CENTER_BLOCK_CENTER', "Center block center"); +define('_AD_BASE_LANG_CENTER_BLOCK_LEFT', "Center block left"); +define('_AD_BASE_LANG_CENTER_BLOCK_RIGHT', "Center block right"); define('_AD_BASE_LANG_CODE', "Code"); define('_AD_BASE_LANG_COM_CREATED', "Created"); define('_AD_BASE_LANG_COM_EXPARAMS', "com exparams"); @@ -28,29 +37,51 @@ define('_AD_BASE_LANG_COMMENT_EDIT', "Edit a comment"); define('_AD_BASE_LANG_COMMENT_NEW', "Add a new comment"); define('_AD_BASE_LANG_COMMENT_VIEW', "Comment view"); +define('_AD_BASE_LANG_CONTENT', "content"); define('_AD_BASE_LANG_CONTROL', "Control"); define('_AD_BASE_LANG_CREATE_NEW', "Add a new"); +define('_AD_BASE_LANG_DIRNAME', "dirname"); define('_AD_BASE_LANG_DISPLAY', "Display"); define('_AD_BASE_LANG_DOBR', "Insert line-break automaticall"); define('_AD_BASE_LANG_DOHTML', "Enable HTML tags"); define('_AD_BASE_LANG_DOIMAGE', "doimage"); define('_AD_BASE_LANG_DOSMILEY', "Use smilies"); define('_AD_BASE_LANG_DOXCODE', "Enable XOOPS code"); +define('_AD_BASE_LANG_EDIT_FUNC', "edit func"); define('_AD_BASE_LANG_EMOTION', "Emotion"); +define('_AD_BASE_LANG_FUNC_FILE', "func file"); +define('_AD_BASE_LANG_FUNC_NUM', "func num"); define('_AD_BASE_LANG_ID', "ID"); +define('_AD_BASE_LANG_ISACTIVE', "isactive"); +define('_AD_BASE_LANG_LAST_MODIFIED', "last modified"); +define('_AD_BASE_LANG_MID', "mid"); +define('_AD_BASE_LANG_NAME', "name"); define('_AD_BASE_LANG_ONLINE_IP', "online ip"); define('_AD_BASE_LANG_ONLINE_MODULE', "online module"); define('_AD_BASE_LANG_ONLINE_UID', "online uid"); define('_AD_BASE_LANG_ONLINE_UNAME', "online uname"); define('_AD_BASE_LANG_ONLINE_UPDATED', "online updated"); +define('_AD_BASE_LANG_OPTIONS', "options"); define('_AD_BASE_LANG_RES_FOR_COMMENT', "Responses for this comment"); +define('_AD_BASE_LANG_SHOW_FUNC', "show func"); +define('_AD_BASE_LANG_SIDE', "side"); +define('_AD_BASE_LANG_SIDE_BLOCK_LEFT', "Side block left"); +define('_AD_BASE_LANG_SIDE_BLOCK_RIGHT', "Side block right"); define('_AD_BASE_LANG_SMILE_URL', "Images"); define('_AD_BASE_LANG_SMILES_DELETE', "Delete smiley"); define('_AD_BASE_LANG_SMILES_EDIT', "Edit smiley"); define('_AD_BASE_LANG_SMILES_NEW', "add a smiley"); define('_AD_BASE_LANG_SUBMIT', "Submit"); +define('_AD_BASE_LANG_TARGET_GROUPS', "Target groups"); +define('_AD_BASE_LANG_TARGET_MODULES', "Target modules"); +define('_AD_BASE_LANG_TEMPLATE', "template"); +define('_AD_BASE_LANG_TITLE', "title"); +define('_AD_BASE_LANG_VISIBLE', "visible"); +define('_AD_BASE_LANG_WEIGHT', "weight"); define('_AD_BASE_MESSAGE_CHILDREN_DELETED_TOGETHER', "Children deleted together"); define('_AD_BASE_MESSAGE_CONFIRM_DELETE', "Confirm to delete"); +define('_AD_BASE_TIPS_BLOCK_UNINSTALL', "block uninstall"); +define('_AD_BASE_TIPS_INSTALL_BLOCK', "Let's customize your site with installing your favorite blocks. You can edit the block's options when you install the block."); define('_MB_A_BASE_LANG_ACTIONSEARCH', "Action Search"); define('_MB_A_BASE_LANG_ACTIONSEARCH_INFO', "what's Action Search...."); define('_MB_A_BASE_LANG_MENU', "Menu"); From minahito @ users.sourceforge.jp Wed Apr 5 19:59:49 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 5 Apr 2006 19:59:49 +0900 Subject: [xoops-cvslog 2641] CVS update: xoops2jp/html/modules/base/language/english Message-ID: <20060405105949.AF3802AC02D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/language/english/main.php diff -u xoops2jp/html/modules/base/language/english/main.php:1.1.2.10 xoops2jp/html/modules/base/language/english/main.php:1.1.2.11 --- xoops2jp/html/modules/base/language/english/main.php:1.1.2.10 Sat Feb 4 16:50:14 2006 +++ xoops2jp/html/modules/base/language/english/main.php Wed Apr 5 19:59:49 2006 @@ -1,75 +1,95 @@ ->"); -define('_SR_NOMATCH', "No entries found that match your query."); -define('_SR_PLZENTER', "Please enter all required data!"); -define('_SR_PREVIOUS', "<< Previous"); -define('_SR_SEARCH', "Search"); -define('_SR_SEARCHIN', "Search in"); -define('_SR_SEARCHRESULTS', "Search Results"); -define('_SR_SEARCHRULE', "Seach Rule"); -define('_SR_SHOWALLR', "Show all results"); -define('_SR_SHOWING', "(Showing %d - %d)"); -define('_SR_TYPE', "Type"); - -?> +>"); +define('_SR_NOMATCH', "No entries found that match your query."); +define('_SR_PLZENTER', "Please enter all required data!"); +define('_SR_PREVIOUS', "<< Previous"); +define('_SR_SEARCH', "Search"); +define('_SR_SEARCHIN', "Search in"); +define('_SR_SEARCHRESULTS', "Search Results"); +define('_SR_SEARCHRULE', "Seach Rule"); +define('_SR_SHOWALLR', "Show all results"); +define('_SR_SHOWING', "(Showing %d - %d)"); +define('_SR_TYPE', "Type"); + +?> From minahito @ users.sourceforge.jp Wed Apr 5 20:00:38 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 5 Apr 2006 20:00:38 +0900 Subject: [xoops-cvslog 2642] CVS update: xoops2jp/html/kernel Message-ID: <20060405110038.1C72B2AC054@users.sourceforge.jp> Index: xoops2jp/html/kernel/XCube_Controller.class.php diff -u xoops2jp/html/kernel/XCube_Controller.class.php:1.1.2.7 xoops2jp/html/kernel/XCube_Controller.class.php:1.1.2.8 --- xoops2jp/html/kernel/XCube_Controller.class.php:1.1.2.7 Sun Apr 2 22:06:01 2006 +++ xoops2jp/html/kernel/XCube_Controller.class.php Wed Apr 5 20:00:37 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/base/class/newblocks.php diff -u xoops2jp/html/modules/base/class/newblocks.php:1.1.2.1 xoops2jp/html/modules/base/class/newblocks.php:1.1.2.2 --- xoops2jp/html/modules/base/class/newblocks.php:1.1.2.1 Wed Apr 5 19:58:39 2006 +++ xoops2jp/html/modules/base/class/newblocks.php Thu Apr 6 12:37:37 2006 @@ -6,6 +6,12 @@ { var $mModule = null; + /** + * Array of group objects who can access this object. + * It need lazy loading to access. + */ + var $mGroup = null; + function BaseNewblocksObject() { $this->initVar('bid', XOBJ_DTYPE_INT, '', true); @@ -35,6 +41,27 @@ $handler =& xoops_gethandler('module'); $this->mModule =& $handler->get($this->get('mid')); } + + /** + * Load group objects who can access this object. And, set the objects to mGroup. + * + * TODO Need lock double loading. + */ + function loadGroup() + { + $handler =& xoops_gethandler('groupperm'); + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('gperm_modid', 1)); + $criteria->add(new Criteria('gperm_itemid', $this->get('bid'))); + $criteria->add(new Criteria('gperm_name', 'block_read')); + + $gpermArr =& $handler->getObjects($criteria); + + $handler =& xoops_gethandler('group'); + foreach ($gpermArr as $gperm) { + $this->mGroup[] =& $handler->get($gperm->get('gperm_groupid')); + } + } } class BaseNewblocksHandler extends XoopsObjectGenericHandler From minahito @ users.sourceforge.jp Thu Apr 6 12:37:57 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 12:37:57 +0900 Subject: [xoops-cvslog 2644] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20060406033757.CD93A2AC0A3@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/block_edit.html diff -u xoops2jp/html/modules/base/admin/templates/block_edit.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/block_edit.html:1.1.2.2 --- xoops2jp/html/modules/base/admin/templates/block_edit.html:1.1.2.1 Wed Apr 5 19:58:23 2006 +++ xoops2jp/html/modules/base/admin/templates/block_edit.html Thu Apr 6 12:37:57 2006 @@ -25,9 +25,7 @@
    <{$smarty.const._AD_BASE_LANG_SIDE}> ">
    <{$smarty.const._AD_BASE_LANG_TARGET_MODULES}> ">
    <{$smarty.const._AD_BASE_LANG_TARGET_GROUPS}> ">
    <{$smarty.const._AD_BASE_LANG_SIDE}>"><{$object->getVar('side')}>"> + <{if $object->mColumn}><{$object->mColumn->getVar('name')}><{/if}> +
    <{$smarty.const._AD_BASE_LANG_WEIGHT}>
    <{$smarty.const._AD_BASE_LANG_BCACHETIME}>"><{$object->getVar('bcachetime')}>"> + <{if $object->mCachetime}><{$object->mCachetime->getVar('label')}><{/if}> +
    <{$smarty.const._AD_BASE_LANG_LAST_MODIFIED}>"><{$object->getVar('last_modified')}>"><{$object->getVar('last_modified')|xoops_formattimestamp:l}>

    From minahito @ users.sourceforge.jp Thu Apr 6 15:01:02 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 15:01:02 +0900 Subject: [xoops-cvslog 2653] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20060406060102.C01FA2AC04F@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/block_list.html diff -u xoops2jp/html/modules/base/admin/templates/block_list.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/block_list.html:1.1.2.2 --- xoops2jp/html/modules/base/admin/templates/block_list.html:1.1.2.1 Wed Apr 5 19:58:23 2006 +++ xoops2jp/html/modules/base/admin/templates/block_list.html Thu Apr 6 15:01:02 2006 @@ -20,9 +20,6 @@
    <{$smarty.const._AD_BASE_LANG_WEIGHT}>
    " alt="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_VISIBLE}>
    - " alt="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_BLOCK_TYPE}>
    " alt="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" />
    <{$obj->getVar('bid')}><{$obj->getVar('mid')}><{$obj->mModule->getVar('name')}> <{$obj->getVar('name')}> <{$obj->getVar('title')}><{$obj->getVar('side')}><{if $obj->mColumn}><{$obj->mColumn->getVar('name')}><{/if}> <{$obj->getVar('weight')}><{$obj->getVar('visible')}> <{$obj->getVar('block_type')}> <{$obj->getVar('c_type')}><{$obj->getVar('bcachetime')}><{$obj->getVar('last_modified')}><{if $obj->mCachetime}><{$obj->mCachetime->getVar('label')}><{/if}><{$obj->getVar('last_modified')|xoops_formattimestamp:l}> " alt="<{$smarty.const._EDIT}>" /> " alt="<{$smarty.const._DELETE}>" /> Index: xoops2jp/html/modules/base/admin/templates/block_edit.html diff -u xoops2jp/html/modules/base/admin/templates/block_edit.html:1.1.2.2 xoops2jp/html/modules/base/admin/templates/block_edit.html:1.1.2.3 --- xoops2jp/html/modules/base/admin/templates/block_edit.html:1.1.2.2 Thu Apr 6 12:37:57 2006 +++ xoops2jp/html/modules/base/admin/templates/block_edit.html Thu Apr 6 15:01:02 2006 @@ -38,14 +38,16 @@
    <{$smarty.const._AD_BASE_LANG_BCACHETIME}> "> - <{xoops_input type=text name=bcachetime value=$actionForm->getVar('bcachetime')}> +
    <{$smarty.const._AD_BASE_LANG_TARGET_MODULES}> ">
    <{$smarty.const._AD_BASE_LANG_TARGET_GROUPS}> ">
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    <{$smarty.const._AD_BASE_LANG_TITLE}>"> + <{xoops_input type=text name=title value=$actionForm->getVar('title') size=15 maxlength=255}> +
    <{$smarty.const._AD_BASE_LANG_SIDE}>"> + +
    <{$smarty.const._AD_BASE_LANG_WEIGHT}>"> + <{xoops_input type=text name=weight value=$actionForm->getVar('weight')}> +
    <{$smarty.const._AD_BASE_LANG_CONTENT}>"> + <{xoops_dhtmltarea type=text name=content value=$actionForm->getVar('content')}> +
    <{$smarty.const._AD_BASE_LANG_CTYPE}>"> + +
    <{$smarty.const._AD_BASE_LANG_BCACHETIME}>"> + +
    <{$smarty.const._AD_BASE_LANG_TARGET_MODULES}>"> + +
    <{$smarty.const._AD_BASE_LANG_TARGET_GROUPS}>"> + +
    + +
    + From minahito @ users.sourceforge.jp Thu Apr 6 16:54:38 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 16:54:38 +0900 Subject: [xoops-cvslog 2670] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20060406075438.31B8C2AC015@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/block_uninstall.html diff -u xoops2jp/html/modules/base/admin/templates/block_uninstall.html:1.1.2.2 xoops2jp/html/modules/base/admin/templates/block_uninstall.html:1.1.2.3 --- xoops2jp/html/modules/base/admin/templates/block_uninstall.html:1.1.2.2 Thu Apr 6 15:00:56 2006 +++ xoops2jp/html/modules/base/admin/templates/block_uninstall.html Thu Apr 6 16:54:38 2006 @@ -1,7 +1,11 @@

    <{$smarty.const._AD_BASE_MESSAGE_CONFIRM_DELETE}>

    - <{$smarty.const._AD_BASE_TIPS_BLOCK_UNINSTALL}> + <{if $object->get('block_type') == 'C'}> + <{$smarty.const._AD_BASE_TIPS_CUSTOM_BLOCK_UNINSTALL}> + <{else}> + <{$smarty.const._AD_BASE_TIPS_BLOCK_UNINSTALL}> + <{/if}>
    Index: xoops2jp/html/modules/base/admin/templates/blockinstall_edit.html diff -u xoops2jp/html/modules/base/admin/templates/blockinstall_edit.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/blockinstall_edit.html:1.1.2.2 --- xoops2jp/html/modules/base/admin/templates/blockinstall_edit.html:1.1.2.1 Wed Apr 5 19:58:23 2006 +++ xoops2jp/html/modules/base/admin/templates/blockinstall_edit.html Thu Apr 6 16:54:38 2006 @@ -10,12 +10,6 @@ <{xoops_input type=hidden name=bid value=$actionForm->getVar('bid')}>
    - - - - Index: xoops2jp/html/modules/base/admin/templates/block_list.html diff -u xoops2jp/html/modules/base/admin/templates/block_list.html:1.1.2.2 xoops2jp/html/modules/base/admin/templates/block_list.html:1.1.2.3 --- xoops2jp/html/modules/base/admin/templates/block_list.html:1.1.2.2 Thu Apr 6 15:01:02 2006 +++ xoops2jp/html/modules/base/admin/templates/block_list.html Thu Apr 6 16:54:38 2006 @@ -1,4 +1,11 @@ -
    [ <{$smarty.const._AD_BASE_LANG_BLOCK_INSTALL}> ]
    +
    + <{$smarty.const._AD_BASE_TIPS_ADD_CUSTOM_BLOCK}> +
    + +
    + [ <{$smarty.const._AD_BASE_LANG_BLOCK_INSTALL}> ] + [ <{$smarty.const._AD_BASE_LANG_ADD_CUSTOM_BLOCK}> ] +

    <{$smarty.const._AD_BASE_LANG_NAME}>"> - <{xoops_input type=text name=name value=$actionForm->getVar('name') size=15 maxlength=150}> -
    <{$smarty.const._AD_BASE_LANG_TITLE}> "> <{xoops_input type=text name=title value=$actionForm->getVar('title') size=15 maxlength=255}> @@ -40,7 +34,9 @@
    <{$smarty.const._AD_BASE_LANG_BCACHETIME}> "> - <{xoops_input type=text name=bcachetime value=$actionForm->getVar('bcachetime')}> +
    @@ -37,7 +44,13 @@ <{foreach item=obj from=$objects}> - + @@ -47,7 +60,11 @@ Index: xoops2jp/html/modules/base/admin/templates/blockinstall_list.html diff -u xoops2jp/html/modules/base/admin/templates/blockinstall_list.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/blockinstall_list.html:1.1.2.2 --- xoops2jp/html/modules/base/admin/templates/blockinstall_list.html:1.1.2.1 Wed Apr 5 19:58:23 2006 +++ xoops2jp/html/modules/base/admin/templates/blockinstall_list.html Thu Apr 6 16:54:38 2006 @@ -1,7 +1,10 @@
    <{$smarty.const._AD_BASE_TIPS_INSTALL_BLOCK}>
    - +
    + [ <{$smarty.const._AD_BASE_LANG_ADD_CUSTOM_BLOCK}> ] +
    +
    <{$obj->getVar('bid')}><{$obj->mModule->getVar('name')}> + <{if $obj->mModule}> + <{$obj->mModule->getVar('name')}> + <{else}> +   + <{/if}> + <{$obj->getVar('name')}> <{$obj->getVar('title')}> <{if $obj->mColumn}><{$obj->mColumn->getVar('name')}><{/if}><{if $obj->mCachetime}><{$obj->mCachetime->getVar('label')}><{/if}> <{$obj->getVar('last_modified')|xoops_formattimestamp:l}> - " alt="<{$smarty.const._EDIT}>" /> + <{if $obj->get('block_type') == 'C'}> + " alt="<{$smarty.const._EDIT}>" /> + <{else}> + " alt="<{$smarty.const._EDIT}>" /> + <{/if}> " alt="<{$smarty.const._DELETE}>" />
    - + @@ -38,6 +47,9 @@ <{/foreach}> Index: xoops2jp/html/modules/base/admin/templates/block_edit.html diff -u xoops2jp/html/modules/base/admin/templates/block_edit.html:1.1.2.3 xoops2jp/html/modules/base/admin/templates/block_edit.html:1.1.2.4 --- xoops2jp/html/modules/base/admin/templates/block_edit.html:1.1.2.3 Thu Apr 6 15:01:02 2006 +++ xoops2jp/html/modules/base/admin/templates/block_edit.html Thu Apr 6 16:54:38 2006 @@ -10,12 +10,6 @@ <{xoops_input type=hidden name=bid value=$actionForm->getVar('bid')}>
    <{$smarty.const._AD_BASE_LANG_BID}>
    @@ -30,7 +33,13 @@ <{foreach item=obj from=$objects}>
    <{$obj->getVar('bid')}><{$obj->mModule->getVar('name')}> + <{if $obj->mModule}> + <{$obj->mModule->getVar('name')}> + <{else}> +   + <{/if}> + <{$obj->getVar('name')}> <{$obj->getVar('title')}> <{$obj->getVar('block_type')}><{$obj->getVar('template')}> " alt="<{$smarty.const._MD_A_BASE_LANG_INSTALL}>" /> + <{if $obj->get('block_type') == 'C'}> + " alt="<{$smarty.const._DELETE}>" /> + <{/if}>
    - - - -
    <{$smarty.const._AD_BASE_LANG_NAME}>"> - <{xoops_input type=text name=name value=$actionForm->getVar('name') size=15 maxlength=150}> -
    <{$smarty.const._AD_BASE_LANG_TITLE}> "> <{xoops_input type=text name=title value=$actionForm->getVar('title') size=15 maxlength=255}> From minahito @ users.sourceforge.jp Thu Apr 6 16:55:08 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 16:55:08 +0900 Subject: [xoops-cvslog 2671] CVS update: xoops2jp/html/modules/base/class Message-ID: <20060406075508.BD4272AC015@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/blockctype.php diff -u /dev/null xoops2jp/html/modules/base/class/blockctype.php:1.1.2.1 --- /dev/null Thu Apr 6 16:55:08 2006 +++ xoops2jp/html/modules/base/class/blockctype.php Thu Apr 6 16:55:08 2006 @@ -0,0 +1,77 @@ +initVar('type', XOBJ_DTYPE_STRING, '', true); + $this->initVar('label', XOBJ_DTYPE_STRING, '', true, 255); + } +} + +class BaseBlockctypeHandler extends XoopsObjectHandler +{ + var $_mResults = array(); + + function BaseBlockctypeHandler(&$db) + { + $t_arr = array ( + 'H' => _AM_HTML, + 'P' => _AM_PHP, + 'S' => _AM_AFWSMILE, + 'T' => _AM_AFNOSMILE + ); + + foreach ($t_arr as $id => $name) { + $this->_mResults[$id] =& $this->create(); + $this->_mResults[$id]->setVar('type', $id); + $this->_mResults[$id]->setVar('label', $name); + } + } + + function &create() + { + $ret =& new BaseBlockctypeObject(); + return $ret; + } + + function get($id) + { + if (isset($this->_mResults[$id])) { + return $this->_mResults[$id]; + } + + $ret = null; + return $ret; + } + + function &getObjects($criteria = null, $id_as_key = false) + { + if ($id_as_key) { + return $this->_mResults; + } + else { + $ret = array(); + + foreach (array_keys($this->_mResults) as $key) { + $ret[] =& $this->_mResults[$key]; + } + + return $ret; + } + } + + function insert(&$obj) + { + return false; + } + + function delete(&$obj) + { + return false; + } +} + +?> From minahito @ users.sourceforge.jp Thu Apr 6 16:55:41 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 16:55:41 +0900 Subject: [xoops-cvslog 2672] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20060406075541.031DA2AC015@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.24 xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.25 --- xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.24 Thu Apr 6 14:58:41 2006 +++ xoops2jp/html/modules/base/language/japanese/admin.php Thu Apr 6 16:55:40 2006 @@ -8,6 +8,7 @@ define('_AD_BASE_ERROR_PLEASE_AGREE', "ライセンスに同意してください"); define('_AD_BASE_ERROR_REQUIRED', "{0}は必ず入力して下さい"); define('_AD_BASE_ERROR_SMILE_URL_REQUIRED', "顔アイコンをアップロードして下さい"); +define('_AD_BASE_LANG_ADD_CUSTOM_BLOCK', "カスタムブロック追加"); define('_AD_BASE_LANG_ALL_MODULES', "すべてのモジュール"); define('_AD_BASE_LANG_ALL_STATUS', "すべてのステータス"); define('_AD_BASE_LANG_BCACHETIME', "bcachetime"); @@ -41,6 +42,10 @@ define('_AD_BASE_LANG_CONTENT', "content"); define('_AD_BASE_LANG_CONTROL', "コントロール"); define('_AD_BASE_LANG_CREATE_NEW', "新規作成"); +define('_AD_BASE_LANG_CUSTOM_HTML', "カスタム(HTML)"); +define('_AD_BASE_LANG_CUSTOM_PHP', "カスタム(PHP)"); +define('_AD_BASE_LANG_CUSTOM_WITH_SMILIES', "カスタム(顔アイコン有効)"); +define('_AD_BASE_LANG_CUSTOM_WITHOUT_SMILIES', "カスタム(顔アイコン無効)"); define('_AD_BASE_LANG_DIRNAME', "dirname"); define('_AD_BASE_LANG_DISPLAY', "表示"); define('_AD_BASE_LANG_DOBR', "改行を自動挿入する"); @@ -82,8 +87,10 @@ define('_AD_BASE_LANG_WEIGHT', "weight"); define('_AD_BASE_MESSAGE_CHILDREN_DELETED_TOGETHER', "一緒に削除されるデータ"); define('_AD_BASE_MESSAGE_CONFIRM_DELETE', "削除確認"); +define('_AD_BASE_TIPS_ADD_CUSTOM_BLOCK', "新しいブロックをインストールして、サイトをカスタマイズしましょう。
    モジュール付属のブロック以外にも、カスタムブロックを追加して、自由なメッセージをブロックカラムに追加できます。"); define('_AD_BASE_TIPS_BLOCK_UNINSTALL', "Q:ブロックをアンインストールすると?
    A:すべての設定を記録したまま、表示やリストから消えます。設定を記録してますので、簡単に再インストールすることができます。"); -define('_AD_BASE_TIPS_INSTALL_BLOCK', "ブロックをインストールしてサイトをカスタマイズしましょう。インストール時に表示オプションなどを調整できます。"); +define('_AD_BASE_TIPS_CUSTOM_BLOCK_UNINSTALL', "Q:カスタムブロックをアンインストールすると?
    A:削除されずに、すべての設定を記録したまま、未インストールブロックリストへ移動します。未インストールリストから削除できるほか、再インストール操作で簡単に復活させることができます。"); +define('_AD_BASE_TIPS_INSTALL_BLOCK', "ブロックをインストールしてサイトをカスタマイズしましょう。インストール時に表示オプションなどを調整できます。
    ウェルカムメッセージなど、文章を表示したい場合は、カスタムブロックを追加しましょう。"); define('_MB_A_BASE_LANG_ACTIONSEARCH', "アクションサーチ"); define('_MB_A_BASE_LANG_ACTIONSEARCH_INFO', "管理メニューやヘルプから入力されたキーワードを検索します。
    管理メニューの位置を忘れたときに使いましょう (例)利用許諾文"); define('_MB_A_BASE_LANG_MENU', "メニュー"); From minahito @ users.sourceforge.jp Thu Apr 6 16:55:41 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 6 Apr 2006 16:55:41 +0900 Subject: [xoops-cvslog 2673] CVS update: xoops2jp/html/modules/base/language/english Message-ID: <20060406075541.284762AC01F@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.20 xoops2jp/html/modules/base/language/english/admin.php:1.1.2.21 --- xoops2jp/html/modules/base/language/english/admin.php:1.1.2.20 Thu Apr 6 14:58:31 2006 +++ xoops2jp/html/modules/base/language/english/admin.php Thu Apr 6 16:55:41 2006 @@ -8,6 +8,7 @@ define('_AD_BASE_ERROR_PLEASE_AGREE', "Please agree the following licence."); define('_AD_BASE_ERROR_REQUIRED', "{0} is required."); define('_AD_BASE_ERROR_SMILE_URL_REQUIRED', "Upload the image file of smilies."); +define('_AD_BASE_LANG_ADD_CUSTOM_BLOCK', "Add custom block"); define('_AD_BASE_LANG_ALL_MODULES', "All modules"); define('_AD_BASE_LANG_ALL_STATUS', "All status"); define('_AD_BASE_LANG_BCACHETIME', "bcachetime"); @@ -41,6 +42,10 @@ define('_AD_BASE_LANG_CONTENT', "content"); define('_AD_BASE_LANG_CONTROL', "Control"); define('_AD_BASE_LANG_CREATE_NEW', "Add a new"); +define('_AD_BASE_LANG_CUSTOM_HTML', "Custom HTML"); +define('_AD_BASE_LANG_CUSTOM_PHP', "Custom PHP"); +define('_AD_BASE_LANG_CUSTOM_WITH_SMILIES', "Custom with Smilies"); +define('_AD_BASE_LANG_CUSTOM_WITHOUT_SMILIES', "Custom without Smilies"); define('_AD_BASE_LANG_DIRNAME', "dirname"); define('_AD_BASE_LANG_DISPLAY', "Display"); define('_AD_BASE_LANG_DOBR', "Insert line-break automaticall"); @@ -82,7 +87,9 @@ define('_AD_BASE_LANG_WEIGHT', "weight"); define('_AD_BASE_MESSAGE_CHILDREN_DELETED_TOGETHER', "Children deleted together"); define('_AD_BASE_MESSAGE_CONFIRM_DELETE', "Confirm to delete"); +define('_AD_BASE_TIPS_ADD_CUSTOM_BLOCK', "Add custom block"); define('_AD_BASE_TIPS_BLOCK_UNINSTALL', "block uninstall"); +define('_AD_BASE_TIPS_CUSTOM_BLOCK_UNINSTALL', "Custom block uninstall"); define('_AD_BASE_TIPS_INSTALL_BLOCK', "Let's customize your site with installing your favorite blocks. You can edit the block's options when you install the block."); define('_MB_A_BASE_LANG_ACTIONSEARCH', "Action Search"); define('_MB_A_BASE_LANG_ACTIONSEARCH_INFO', "what's Action Search...."); From minahito @ users.sourceforge.jp Fri Apr 7 13:47:10 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 7 Apr 2006 13:47:10 +0900 Subject: [xoops-cvslog 2674] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20060407044710.61B2A2AC018@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/CustomBlockDeleteAction.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/actions/CustomBlockDeleteAction.class.php:1.1.2.1 --- /dev/null Fri Apr 7 13:47:10 2006 +++ xoops2jp/html/modules/base/admin/actions/CustomBlockDeleteAction.class.php Fri Apr 7 13:47:10 2006 @@ -0,0 +1,53 @@ +mActionForm =& new Legacy_CustomBlockDeleteForm(); + $this->mActionForm->prepare(); + } + + function executeViewInput(&$controller, &$xoopsUser, &$render) + { + $render->setTemplateName("customblock_delete.html"); + $render->setAttribute('actionForm', $this->mActionForm); + + // + // lazy loading + // + $this->mObject->loadModule(); + $this->mObject->loadColumn(); + $this->mObject->loadCachetime(); + + $render->setAttribute('object', $this->mObject); + } + + function executeViewSuccess(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward("./index.php?action=BlockInstallList"); + } + + function executeViewError(&$controller, &$xoopsUser, &$render) + { + redirect_header("./index.php?action=BlockInstallList", 1, _AD_BASE_ERROR_DBUPDATE_FAILED); + } +} + +?> From minahito @ users.sourceforge.jp Fri Apr 7 13:47:24 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 7 Apr 2006 13:47:24 +0900 Subject: [xoops-cvslog 2675] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20060407044724.AB2022AC018@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/forms/CustomBlockDeleteForm.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/forms/CustomBlockDeleteForm.class.php:1.1.2.1 --- /dev/null Fri Apr 7 13:47:24 2006 +++ xoops2jp/html/modules/base/admin/forms/CustomBlockDeleteForm.class.php Fri Apr 7 13:47:24 2006 @@ -0,0 +1,41 @@ +get('bid'); + } + + function prepare() + { + // + // Set form properties + // + $this->mFormProperties['bid'] =& new XCube_IntProperty('bid'); + + // + // Set field properties + // + + $this->mFieldProperties['bid'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['bid']->setDependsByArray(array('required')); + $this->mFieldProperties['bid']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_BID); + } + + function load(&$obj) + { + $this->set('bid', $obj->get('bid')); + } + + function update(&$obj) + { + } +} + +?> From minahito @ users.sourceforge.jp Fri Apr 7 13:47:35 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 7 Apr 2006 13:47:35 +0900 Subject: [xoops-cvslog 2676] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20060407044735.890E32AC018@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/forms/BlockUninstallForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/BlockUninstallForm.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/forms/BlockUninstallForm.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/forms/BlockUninstallForm.class.php:1.1.2.1 Wed Apr 5 19:58:07 2006 +++ xoops2jp/html/modules/base/admin/forms/BlockUninstallForm.class.php Fri Apr 7 13:47:35 2006 @@ -2,40 +2,18 @@ if (!defined('XOOPS_ROOT_PATH')) exit(); -require_once XOOPS_ROOT_PATH . "/class/XCube_ActionForm.class.php"; -require_once XOOPS_MODULE_PATH . "/base/class/Legacy_Validator.class.php"; +require_once XOOPS_MODULE_PATH . "/base/admin/forms/CustomBlockDeleteForm.class.php"; -class Legacy_BlockUninstallForm extends XCube_ActionForm +class Legacy_BlockUninstallForm extends Legacy_CustomBlockDeleteForm { function getTokenName() { return "module.base.BlockUninstallForm.TOKEN" . $this->get('bid'); } - function prepare() - { - // - // Set form properties - // - $this->mFormProperties['bid'] =& new XCube_IntProperty('bid'); - - // - // Set field properties - // - - $this->mFieldProperties['bid'] =& new XCube_FieldProperty($this); - $this->mFieldProperties['bid']->setDependsByArray(array('required')); - $this->mFieldProperties['bid']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_BID); - } - - function load(&$obj) - { - $this->set('bid', $obj->get('bid')); - } - function update(&$obj) { - $obj->set('bid', $this->get('bid')); + parent::update($obj); $obj->set('last_modified', time()); $obj->set('visible', false); } From minahito @ users.sourceforge.jp Fri Apr 7 13:47:50 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 7 Apr 2006 13:47:50 +0900 Subject: [xoops-cvslog 2677] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20060407044750.305262AC018@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/customblock_delete.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/customblock_delete.html:1.1.2.1 --- /dev/null Fri Apr 7 13:47:50 2006 +++ xoops2jp/html/modules/base/admin/templates/customblock_delete.html Fri Apr 7 13:47:50 2006 @@ -0,0 +1,97 @@ +

    <{$smarty.const._AD_BASE_MESSAGE_CONFIRM_DELETE}>

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    <{$smarty.const._AD_BASE_LANG_BID}>"><{$object->getVar('bid')}>
    <{$smarty.const._AD_BASE_LANG_MID}>"><{$object->getVar('mid')}>
    <{$smarty.const._AD_BASE_LANG_FUNC_NUM}>"><{$object->getVar('func_num')}>
    <{$smarty.const._AD_BASE_LANG_OPTIONS}>"><{$object->getVar('options')}>
    <{$smarty.const._AD_BASE_LANG_NAME}>"><{$object->getVar('name')}>
    <{$smarty.const._AD_BASE_LANG_TITLE}>"><{$object->getVar('title')}>
    <{$smarty.const._AD_BASE_LANG_CONTENT}>"><{$object->getVar('content')}>
    <{$smarty.const._AD_BASE_LANG_SIDE}>"> + <{if $object->mColumn}><{$object->mColumn->getVar('name')}><{/if}> +
    <{$smarty.const._AD_BASE_LANG_WEIGHT}>"><{$object->getVar('weight')}>
    <{$smarty.const._AD_BASE_LANG_VISIBLE}>"><{$object->getVar('visible')}>
    <{$smarty.const._AD_BASE_LANG_BLOCK_TYPE}>"><{$object->getVar('block_type')}>
    <{$smarty.const._AD_BASE_LANG_C_TYPE}>"><{$object->getVar('c_type')}>
    <{$smarty.const._AD_BASE_LANG_ISACTIVE}>"><{$object->getVar('isactive')}>
    <{$smarty.const._AD_BASE_LANG_DIRNAME}>"><{$object->getVar('dirname')}>
    <{$smarty.const._AD_BASE_LANG_FUNC_FILE}>"><{$object->getVar('func_file')}>
    <{$smarty.const._AD_BASE_LANG_SHOW_FUNC}>"><{$object->getVar('show_func')}>
    <{$smarty.const._AD_BASE_LANG_EDIT_FUNC}>"><{$object->getVar('edit_func')}>
    <{$smarty.const._AD_BASE_LANG_TEMPLATE}>"><{$object->getVar('template')}>
    <{$smarty.const._AD_BASE_LANG_BCACHETIME}>"> + <{if $object->mCachetime}><{$object->mCachetime->getVar('label')}><{/if}> +
    <{$smarty.const._AD_BASE_LANG_LAST_MODIFIED}>"><{$object->getVar('last_modified')|xoops_formattimestamp:l}>

    +
    + <{xoops_token form=$actionForm}> + <{xoops_input type=hidden name=bid value=$actionForm->get('bid')}> + +
    +
    From minahito @ users.sourceforge.jp Fri Apr 7 17:44:28 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 7 Apr 2006 17:44:28 +0900 Subject: [xoops-cvslog 2678] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20060407084428.228FC2AC012@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php:1.1.2.3 xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php:1.1.2.4 --- xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php:1.1.2.3 Thu Apr 6 15:12:29 2006 +++ xoops2jp/html/modules/base/admin/actions/BlockListAction.class.php Fri Apr 7 17:44:27 2006 @@ -5,9 +5,18 @@ require_once XOOPS_MODULE_PATH . "/base/class/PageNavigator.class.php"; require_once XOOPS_MODULE_PATH . "/base/class/AbstractListAction.class.php"; require_once XOOPS_MODULE_PATH . "/base/admin/forms/BlockFilterForm.class.php"; +require_once XOOPS_MODULE_PATH . "/base/admin/forms/BlockListForm.class.php"; class Legacy_BlockListAction extends Legacy_AbstractListAction { + var $mActionForm = null; + + function prepare(&$controller, &$xoopsUser) + { + $this->mActionForm =& new Legacy_BlockListForm(); + $this->mActionForm->prepare(); + } + function &_getHandler() { $handler =& xoops_getmodulehandler('newblocks'); @@ -25,6 +34,34 @@ return "./index.php?action=BlockList"; } + function execute(&$controller, &$xoopsUser) + { + $this->mActionForm->fetch(); + $this->mActionForm->validate(); + + if ($this->mActionForm->hasError()) { + return $this->getDefaultView($controller, $xoopsUser); + } + + $weightArr = $this->mActionForm->get('weight'); + + $handler =& xoops_getmodulehandler('newblocks'); + foreach (array_keys($weightArr) as $bid) { + $block =& $handler->get($bid); + if (is_object($block) && $block->get('isactive') == 1 && $block->get('visible') == 1) { + $block->set('weight', $this->mActionForm->get('weight', $bid)); + $block->set('side', $this->mActionForm->get('side', $bid)); + $block->set('bcachetime', $this->mActionForm->get('bcachetime', $bid)); + + if (!$handler->insert($block)) { + return LEGACY_FRAME_VIEW_ERROR; + } + } + } + + return LEGACY_FRAME_VIEW_SUCCESS; + } + function executeViewIndex(&$controller, &$xoopsUser, &$render) { $render->setTemplateName("block_list.html"); @@ -37,6 +74,15 @@ $render->setAttribute("objects", $this->mObjects); $render->setAttribute("pageNavi", $this->mNavi); + + // + // Load cache-time pattern objects and set. + // + $handler =& xoops_gethandler('cachetime'); + $cachetimeArr =& $handler->getObjects(); + $render->setAttribute('cachetimeArr', $cachetimeArr); + + $render->setAttribute('actionForm', $this->mActionForm); } } From minahito @ users.sourceforge.jp Fri Apr 7 17:44:42 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 7 Apr 2006 17:44:42 +0900 Subject: [xoops-cvslog 2679] CVS update: xoops2jp/html/modules/base/admin/.xml Message-ID: <20060407084442.F237C2AC012@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/.xml/block_list.xml diff -u /dev/null xoops2jp/html/modules/base/admin/.xml/block_list.xml:1.1.2.1 --- /dev/null Fri Apr 7 17:44:42 2006 +++ xoops2jp/html/modules/base/admin/.xml/block_list.xml Fri Apr 7 17:44:42 2006 @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From minahito @ users.sourceforge.jp Fri Apr 7 17:44:55 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 7 Apr 2006 17:44:55 +0900 Subject: [xoops-cvslog 2680] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20060407084455.ECAFD2AC093@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/forms/BlockListForm.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/forms/BlockListForm.class.php:1.1.2.1 --- /dev/null Fri Apr 7 17:44:55 2006 +++ xoops2jp/html/modules/base/admin/forms/BlockListForm.class.php Fri Apr 7 17:44:55 2006 @@ -0,0 +1,50 @@ +mFormProperties['weight'] =& new XCube_IntArrayProperty('weight'); + $this->mFormProperties['side'] =& new XCube_IntArrayProperty('side'); + $this->mFormProperties['bcachetime'] =& new XCube_IntArrayProperty('bcachetime'); + + // + // Set field properties + // + + $this->mFieldProperties['weight'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['weight']->setDependsByArray(array('required','intRange')); + $this->mFieldProperties['weight']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_WEIGHT); + $this->mFieldProperties['weight']->addMessage('intRange', _AD_BASE_ERROR_INTRANGE, _AD_BASE_LANG_WEIGHT); + $this->mFieldProperties['weight']->addVar('min', '0'); + $this->mFieldProperties['weight']->addVar('max', '255'); + + $this->mFieldProperties['side'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['side']->setDependsByArray(array('required','objectExist')); + $this->mFieldProperties['side']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_SIDE); + $this->mFieldProperties['side']->addMessage('objectExist', _AD_BASE_ERROR_OBJECTEXIST, _AD_BASE_LANG_SIDE); + $this->mFieldProperties['side']->addVar('handler', 'columnside'); + $this->mFieldProperties['side']->addVar('module', 'base'); + + $this->mFieldProperties['bcachetime'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['bcachetime']->setDependsByArray(array('required','objectExist')); + $this->mFieldProperties['bcachetime']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_BCACHETIME); + $this->mFieldProperties['bcachetime']->addMessage('objectExist', _AD_BASE_ERROR_OBJECTEXIST, _AD_BASE_LANG_BCACHETIME); + $this->mFieldProperties['bcachetime']->addVar('handler', 'cachetime'); + } +} + +?> From minahito @ users.sourceforge.jp Fri Apr 7 17:45:46 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 7 Apr 2006 17:45:46 +0900 Subject: [xoops-cvslog 2681] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20060407084546.DE96F2AC012@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/block_list.html diff -u xoops2jp/html/modules/base/admin/templates/block_list.html:1.1.2.3 xoops2jp/html/modules/base/admin/templates/block_list.html:1.1.2.4 --- xoops2jp/html/modules/base/admin/templates/block_list.html:1.1.2.3 Thu Apr 6 16:54:38 2006 +++ xoops2jp/html/modules/base/admin/templates/block_list.html Fri Apr 7 17:45:46 2006 @@ -7,68 +7,95 @@ [ <{$smarty.const._AD_BASE_LANG_ADD_CUSTOM_BLOCK}> ]
    - - - - - - - - - - - - - - - <{foreach item=obj from=$objects}> - - - - - - - - - - - +<{if $actionForm->hasError()}> +
      + <{foreach item=message from=$actionForm->getErrorMessages()}> +
    • <{$message|escape}>
    • + <{/foreach}> +
    +<{/if}> + + <{xoops_token form=$actionForm}> +
    <{$smarty.const._AD_BASE_LANG_BID}>
    - " alt="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_MID}>
    - " alt="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_NAME}>
    - " alt="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_TITLE}>
    - " alt="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_SIDE}>
    - " alt="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_WEIGHT}>
    - " alt="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_BLOCK_TYPE}>
    - " alt="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_C_TYPE}>
    - " alt="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_BCACHETIME}>
    - " alt="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_LAST_MODIFIED}>
    - " alt="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_CONTROL}>
    <{$obj->getVar('bid')}> - <{if $obj->mModule}> - <{$obj->mModule->getVar('name')}> - <{else}> -   - <{/if}> - <{$obj->getVar('name')}><{$obj->getVar('title')}><{if $obj->mColumn}><{$obj->mColumn->getVar('name')}><{/if}><{$obj->getVar('weight')}><{$obj->getVar('block_type')}><{$obj->getVar('c_type')}><{if $obj->mCachetime}><{$obj->mCachetime->getVar('label')}><{/if}><{$obj->getVar('last_modified')|xoops_formattimestamp:l}>
    + + + + + + + + + + + + + + <{foreach item=obj from=$objects}> + + + + + + + + + + + + + + <{/foreach}> + - <{/foreach}> -
    <{$smarty.const._AD_BASE_LANG_BID}>
    + " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_MID}>
    + " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_NAME}>
    + " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_TITLE}>
    + " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_SIDE}>
    + " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_WEIGHT}>
    + " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_BLOCK_TYPE}>
    + " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_C_TYPE}>
    + " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_BCACHETIME}>
    + " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_LAST_MODIFIED}>
    + " alt="<{$smarty.const._ASCENDING}>" /> + " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_CONTROL}>
    <{$obj->getVar('bid')}> + <{if $obj->mModule}> + <{$obj->mModule->getVar('name')}> + <{else}> +   + <{/if}> + <{$obj->getVar('name')}><{$obj->getVar('title')}> + <{xoops_input type=radio name=side key=$obj->get('bid') value=0 default=$obj->get('side')}>- + <{xoops_input type=radio name=side key=$obj->get('bid') value=1 default=$obj->get('side')}> + <{xoops_input type=radio name=side key=$obj->get('bid') value=3 default=$obj->get('side')}> + <{xoops_input type=radio name=side key=$obj->get('bid') value=4 default=$obj->get('side')}>- + <{xoops_input type=radio name=side key=$obj->get('bid') value=5 default=$obj->get('side')}> + + <{xoops_input type=text name=weight size=4 key=$obj->get('bid') value=$obj->get('weight')}> + <{$obj->getVar('block_type')}><{$obj->getVar('c_type')}> + + <{$obj->getVar('last_modified')|xoops_formattimestamp:l}> + <{if $obj->get('block_type') == 'C'}> + " alt="<{$smarty.const._EDIT}>" /> + <{else}> + " alt="<{$smarty.const._EDIT}>" /> + <{/if}> + " alt="<{$smarty.const._DELETE}>" /> +
    - <{if $obj->get('block_type') == 'C'}> - " alt="<{$smarty.const._EDIT}>" /> - <{else}> - " alt="<{$smarty.const._EDIT}>" /> - <{/if}> - " alt="<{$smarty.const._DELETE}>" /> +
    +
    +
    <{xoops_pagenavi pagenavi=$pageNavi}>
    From minahito @ users.sourceforge.jp Fri Apr 7 18:02:36 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 7 Apr 2006 18:02:36 +0900 Subject: [xoops-cvslog 2682] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20060407090236.761462AC012@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.3 xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.4 --- xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php:1.1.2.3 Thu Apr 6 15:01:47 2006 +++ xoops2jp/html/modules/base/admin/actions/BlockEditAction.class.php Fri Apr 7 18:02:36 2006 @@ -36,6 +36,64 @@ $this->mActionForm->prepare(); } + function execute(&$controller, &$xoopsUser) + { + $ret = parent::execute($controller, $xoopsUser); + + if ($ret == LEGACY_FRAME_VIEW_SUCCESS) { + // + // Reset block_module_link. + // + $handler =& xoops_getmodulehandler('block_module_link', 'base'); + $handler->deleteAll(new Criteria('block_id', $this->mObject->get('bid'))); + foreach ($this->mObject->mBmodule as $bmodule) { + $handler->insert($bmodule); + } + + // + // Insert group permissions. + // + $currentGroupid = array(); + foreach ($this->mObject->mGroup as $group) { + $currentGroupid[] = $group->get('groupid'); + } + + $permHandler =& xoops_gethandler('groupperm'); + $criteria =& new CriteriaCompo(); + $criteria->add(new Criteria('gperm_modid', 1)); + $criteria->add(new Criteria('gperm_itemid', $this->mObject->get('bid'))); + $criteria->add(new Criteria('gperm_name', 'block_read')); + + $gpermArr =& $permHandler->getObjects($criteria); + foreach ($gpermArr as $gperm) { + if (!in_array($gperm->get('gperm_groupid', $currentGroupid))) { + $permHandler->delete($gperm, $force); + } + } + + foreach ($this->mObject->mGroup as $group) { + $insertFlag = true; + foreach ($gpermArr as $gperm) { + if ($gperm->get('gperm_groupid') == $group->get('group_id')) { + $insertFlag = false; + } + } + + if ($insertFlag) { + $gperm =& $permHandler->create(); + $gperm->set('gperm_modid', 1); + $gperm->set('gperm_groupid', $group->get('groupid')); + $gperm->set('gperm_itemid', $this->mObject->get('bid')); + $gperm->set('gperm_name', 'block_read'); + + $permHandler->insert($gperm, $force); + } + } + } + + return $ret; + } + function executeViewInput(&$controller, &$xoopsUser, &$render) { $render->setTemplateName("block_edit.html"); From minahito @ users.sourceforge.jp Fri Apr 7 18:03:01 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 7 Apr 2006 18:03:01 +0900 Subject: [xoops-cvslog 2683] CVS update: xoops2jp/html/modules/base/class Message-ID: <20060407090301.75EA02AC012@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/newblocks.php diff -u xoops2jp/html/modules/base/class/newblocks.php:1.1.2.3 xoops2jp/html/modules/base/class/newblocks.php:1.1.2.4 --- xoops2jp/html/modules/base/class/newblocks.php:1.1.2.3 Thu Apr 6 15:00:25 2006 +++ xoops2jp/html/modules/base/class/newblocks.php Fri Apr 7 18:03:01 2006 @@ -95,61 +95,6 @@ var $mTable = "newblocks"; var $mPrimary = "bid"; var $mClass = "BaseNewblocksObject"; - - function insert(&$obj, $force=false) - { - if (parent::insert($obj, $force)) { - $handler =& xoops_getmodulehandler('block_module_link', 'base'); - $handler->deleteAll(new Criteria('block_id', $obj->get('bid'))); - foreach ($obj->mBmodule as $bmodule) { - $handler->insert($bmodule); - } - - // - // Insert group permissions. - // - $currentGroupid = array(); - foreach ($obj->mGroup as $group) { - $currentGroupid[] = $group->get('groupid'); - } - - $permHandler =& xoops_gethandler('groupperm'); - $criteria =& new CriteriaCompo(); - $criteria->add(new Criteria('gperm_modid', 1)); - $criteria->add(new Criteria('gperm_itemid', $obj->get('bid'))); - $criteria->add(new Criteria('gperm_name', 'block_read')); - - $gpermArr =& $permHandler->getObjects($criteria); - foreach ($gpermArr as $gperm) { - if (!in_array($gperm->get('gperm_groupid', $currentGroupid))) { - $permHandler->delete($gperm, $force); - } - } - - foreach ($obj->mGroup as $group) { - $insertFlag = true; - foreach ($gpermArr as $gperm) { - if ($gperm->get('gperm_groupid') == $group->get('group_id')) { - $insertFlag = false; - } - } - - if ($insertFlag) { - $gperm =& $permHandler->create(); - $gperm->set('gperm_modid', 1); - $gperm->set('gperm_groupid', $group->get('groupid')); - $gperm->set('gperm_itemid', $obj->get('bid')); - $gperm->set('gperm_name', 'block_read'); - - $permHandler->insert($gperm, $force); - } - } - - return true; - } - - return false; - } } ?> From minahito @ users.sourceforge.jp Fri Apr 7 18:03:23 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 7 Apr 2006 18:03:23 +0900 Subject: [xoops-cvslog 2684] CVS update: xoops2jp/html/modules/base/language/english Message-ID: <20060407090323.91B552AC012@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.21 xoops2jp/html/modules/base/language/english/admin.php:1.1.2.22 --- xoops2jp/html/modules/base/language/english/admin.php:1.1.2.21 Thu Apr 6 16:55:41 2006 +++ xoops2jp/html/modules/base/language/english/admin.php Fri Apr 7 18:03:23 2006 @@ -4,6 +4,7 @@ define('_AD_BASE_ERROR_EXTENSION', "Uploaded file's extension does not match any entry in the allowed list."); define('_AD_BASE_ERROR_INTRANGE', "{0} is wrong."); define('_AD_BASE_ERROR_MAXLENGTH', "Input {0} with {1} or less characters."); +define('_AD_BASE_ERROR_OBJECTEXIST', "Objectexist"); define('_AD_BASE_ERROR_OPTIONS', "options"); define('_AD_BASE_ERROR_PLEASE_AGREE', "Please agree the following licence."); define('_AD_BASE_ERROR_REQUIRED', "{0} is required."); From minahito @ users.sourceforge.jp Fri Apr 7 18:03:29 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Fri, 7 Apr 2006 18:03:29 +0900 Subject: [xoops-cvslog 2685] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20060407090329.51EEA2AC012@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.25 xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.26 --- xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.25 Thu Apr 6 16:55:40 2006 +++ xoops2jp/html/modules/base/language/japanese/admin.php Fri Apr 7 18:03:29 2006 @@ -4,6 +4,7 @@ define('_AD_BASE_ERROR_EXTENSION', "許可されたファイル形式ではありません"); define('_AD_BASE_ERROR_INTRANGE', "{0}の値が不正です"); define('_AD_BASE_ERROR_MAXLENGTH', "{0}は半角{1}文字以下で入力して下さい"); +define('_AD_BASE_ERROR_OBJECTEXIST', "Objectexist"); define('_AD_BASE_ERROR_OPTIONS', "オプションの値が不正です"); define('_AD_BASE_ERROR_PLEASE_AGREE', "ライセンスに同意してください"); define('_AD_BASE_ERROR_REQUIRED', "{0}は必ず入力して下さい"); From onokazu @ users.sourceforge.jp Sat Apr 8 14:10:37 2006 From: onokazu @ users.sourceforge.jp (onokazu) Date: Sat, 8 Apr 2006 14:10:37 +0900 Subject: [xoops-cvslog 2686] CVS update: xoops2jp/html/include Message-ID: <20060408051037.C5F5A2AC02C@users.sourceforge.jp> Index: xoops2jp/html/include/checklogin.php diff -u xoops2jp/html/include/checklogin.php:1.4 xoops2jp/html/include/checklogin.php:1.4.6.1 --- xoops2jp/html/include/checklogin.php:1.4 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/include/checklogin.php Sat Apr 8 14:10:37 2006 @@ -1,99 +1,99 @@ - // -// ------------------------------------------------------------------------ // -// This program is free software; you can redistribute it and/or modify // -// it under the terms of the GNU General Public License as published by // -// the Free Software Foundation; either version 2 of the License, or // -// (at your option) any later version. // -// // -// You may not change or alter any portion of this comment or credits // -// of supporting developers from this source code or any supporting // -// source code which is considered copyrighted (c) material of the // -// original comment or credit authors. // -// // -// This program is distributed in the hope that it will be useful, // -// but WITHOUT ANY WARRANTY; without even the implied warranty of // -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // -// GNU General Public License for more details. // -// // -// You should have received a copy of the GNU General Public License // -// along with this program; if not, write to the Free Software // -// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // -// ------------------------------------------------------------------------ // -// Author: Kazumi Ono (AKA onokazu) // -// URL: http://www.xoops.org/ http://jp.xoops.org/ http://www.myweb.ne.jp/ // -// Project: The XOOPS Project (http://www.xoops.org/) // -// ------------------------------------------------------------------------- // - -if (!defined('XOOPS_ROOT_PATH')) { - exit(); -} -include_once XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/user.php'; -$uname = !isset($_POST['uname']) ? '' : trim($_POST['uname']); -$pass = !isset($_POST['pass']) ? '' : trim($_POST['pass']); -if ($uname == '' || $pass == '') { - redirect_header(XOOPS_URL.'/user.php', 1, _US_INCORRECTLOGIN); - exit(); -} -$member_handler =& xoops_gethandler('member'); -$myts =& MyTextsanitizer::getInstance(); -$user =& $member_handler->loginUser(addslashes($myts->stripSlashesGPC($uname)), addslashes($myts->stripSlashesGPC($pass))); -if (false != $user) { - if (0 == $user->getVar('level')) { - redirect_header(XOOPS_URL.'/index.php', 5, _US_NOACTTPADM); - exit(); - } - if ($xoopsConfig['closesite'] == 1) { - $allowed = false; - foreach ($user->getGroups() as $group) { - if (in_array($group, $xoopsConfig['closesite_okgrp']) || XOOPS_GROUP_ADMIN == $group) { - $allowed = true; - break; - } - } - if (!$allowed) { - redirect_header(XOOPS_URL.'/index.php', 1, _NOPERM); - exit(); - } - } - $user->setVar('last_login', time()); - if (!$member_handler->insertUser($user)) { - } - $_SESSION = array(); - $_SESSION['xoopsUserId'] = $user->getVar('uid'); - $_SESSION['xoopsUserGroups'] = $user->getGroups(); - if ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '') { - setcookie($xoopsConfig['session_name'], session_id(), time()+(60 * $xoopsConfig['session_expire']), '/', '', 0); - } - $user_theme = $user->getVar('theme'); - if (in_array($user_theme, $xoopsConfig['theme_set_allowed'])) { - $_SESSION['xoopsUserTheme'] = $user_theme; - } - if (!empty($_POST['xoops_redirect']) && !strpos($_POST['xoops_redirect'], 'register')) { - $parsed = parse_url(XOOPS_URL); - $url = isset($parsed['scheme']) ? $parsed['scheme'].'://' : 'http://'; - if (isset($parsed['host'])) { - $url .= isset($parsed['port']) ?$parsed['host'].':'.$parsed['port'].trim($_POST['xoops_redirect']): $parsed['host'].trim($_POST['xoops_redirect']); - } else { - $url .= xoops_getenv('HTTP_HOST').trim($_POST['xoops_redirect']); - } - } else { - $url = XOOPS_URL.'/index.php'; - } - - // RMV-NOTIFY - // Perform some maintenance of notification records - $notification_handler =& xoops_gethandler('notification'); - $notification_handler->doLoginMaintenance($user->getVar('uid')); - - redirect_header($url, 1, sprintf(_US_LOGGINGU, $user->getVar('uname'))); -} else { - - redirect_header(XOOPS_URL.'/user.php',1,_US_INCORRECTLOGIN); -} -exit(); -?> + // +// ------------------------------------------------------------------------ // +// This program is free software; you can redistribute it and/or modify // +// it under the terms of the GNU General Public License as published by // +// the Free Software Foundation; either version 2 of the License, or // +// (at your option) any later version. // +// // +// You may not change or alter any portion of this comment or credits // +// of supporting developers from this source code or any supporting // +// source code which is considered copyrighted (c) material of the // +// original comment or credit authors. // +// // +// This program is distributed in the hope that it will be useful, // +// but WITHOUT ANY WARRANTY; without even the implied warranty of // +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // +// GNU General Public License for more details. // +// // +// You should have received a copy of the GNU General Public License // +// along with this program; if not, write to the Free Software // +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // +// ------------------------------------------------------------------------ // +// Author: Kazumi Ono (AKA onokazu) // +// URL: http://www.xoops.org/ http://jp.xoops.org/ http://www.myweb.ne.jp/ // +// Project: The XOOPS Project (http://www.xoops.org/) // +// ------------------------------------------------------------------------- // + +if (!defined('XOOPS_ROOT_PATH')) { + exit(); +} +include_once XOOPS_ROOT_PATH.'/language/'.$xoopsConfig['language'].'/user.php'; +$uname = !isset($_POST['uname']) ? '' : trim($_POST['uname']); +$pass = !isset($_POST['pass']) ? '' : trim($_POST['pass']); +if ($uname == '' || $pass == '') { + redirect_header(XOOPS_URL.'/user.php', 1, _US_INCORRECTLOGIN); + exit(); +} +$member_handler =& xoops_gethandler('member'); +$myts =& MyTextsanitizer::getInstance(); +$user =& $member_handler->loginUser(addslashes($myts->stripSlashesGPC($uname)), $myts->stripSlashesGPC($pass)); +if (false != $user) { + if (0 == $user->getVar('level')) { + redirect_header(XOOPS_URL.'/index.php', 5, _US_NOACTTPADM); + exit(); + } + if ($xoopsConfig['closesite'] == 1) { + $allowed = false; + foreach ($user->getGroups() as $group) { + if (in_array($group, $xoopsConfig['closesite_okgrp']) || XOOPS_GROUP_ADMIN == $group) { + $allowed = true; + break; + } + } + if (!$allowed) { + redirect_header(XOOPS_URL.'/index.php', 1, _NOPERM); + exit(); + } + } + $user->setVar('last_login', time()); + if (!$member_handler->insertUser($user)) { + } + $_SESSION = array(); + $_SESSION['xoopsUserId'] = $user->getVar('uid'); + $_SESSION['xoopsUserGroups'] = $user->getGroups(); + if ($xoopsConfig['use_mysession'] && $xoopsConfig['session_name'] != '') { + setcookie($xoopsConfig['session_name'], session_id(), time()+(60 * $xoopsConfig['session_expire']), '/', '', 0); + } + $user_theme = $user->getVar('theme'); + if (in_array($user_theme, $xoopsConfig['theme_set_allowed'])) { + $_SESSION['xoopsUserTheme'] = $user_theme; + } + if (!empty($_POST['xoops_redirect']) && !strpos($_POST['xoops_redirect'], 'register')) { + $parsed = parse_url(XOOPS_URL); + $url = isset($parsed['scheme']) ? $parsed['scheme'].'://' : 'http://'; + if (isset($parsed['host'])) { + $url .= isset($parsed['port']) ?$parsed['host'].':'.$parsed['port'].trim($_POST['xoops_redirect']): $parsed['host'].trim($_POST['xoops_redirect']); + } else { + $url .= xoops_getenv('HTTP_HOST').trim($_POST['xoops_redirect']); + } + } else { + $url = XOOPS_URL.'/index.php'; + } + + // RMV-NOTIFY + // Perform some maintenance of notification records + $notification_handler =& xoops_gethandler('notification'); + $notification_handler->doLoginMaintenance($user->getVar('uid')); + + redirect_header($url, 1, sprintf(_US_LOGGINGU, $user->getVar('uname'))); +} else { + + redirect_header(XOOPS_URL.'/user.php',1,_US_INCORRECTLOGIN); +} +exit(); +?> From onokazu @ users.sourceforge.jp Sat Apr 8 14:10:38 2006 From: onokazu @ users.sourceforge.jp (onokazu) Date: Sat, 8 Apr 2006 14:10:38 +0900 Subject: [xoops-cvslog 2687] CVS update: xoops2jp/html/kernel Message-ID: <20060408051038.1A72F2AC039@users.sourceforge.jp> Index: xoops2jp/html/kernel/member.php diff -u xoops2jp/html/kernel/member.php:1.4.6.1 xoops2jp/html/kernel/member.php:1.4.6.2 --- xoops2jp/html/kernel/member.php:1.4.6.1 Sun Feb 5 14:19:52 2006 +++ xoops2jp/html/kernel/member.php Sat Apr 8 14:10:37 2006 @@ -1,5 +1,5 @@ add(new Criteria('pass', md5($pwd))); - $user =& $this->_uHandler->getObjects($criteria, false); - if (!$user || count($user) != 1) { - $ret = false; - return $ret; - } - return $user[0]; + $user =& $this->loginUserMd5($uname, md5($pwd)); + return $user; } /** - * logs in a user with an nd5 encrypted password + * logs in a user with an md5 encrypted password * * @param string $uname username * @param string $md5pwd password encrypted with md5 - * @return object XoopsUser reference to the logged in user. FALSE if failed to log in + * @return mixed XoopsUser reference to the logged in user. FALSE if failed to log in */ function &loginUserMd5($uname, $md5pwd) { From onokazu @ users.sourceforge.jp Sun Apr 9 03:32:51 2006 From: onokazu @ users.sourceforge.jp (onokazu) Date: Sun, 9 Apr 2006 03:32:51 +0900 Subject: [xoops-cvslog 2688] CVS update: xoops2jp/extras Message-ID: <20060408183251.3D6792AC090@users.sourceforge.jp> Index: xoops2jp/extras/login.php diff -u xoops2jp/extras/login.php:1.3 xoops2jp/extras/login.php:1.3.6.1 --- xoops2jp/extras/login.php:1.3 Sat Jun 11 11:32:37 2005 +++ xoops2jp/extras/login.php Sun Apr 9 03:32:51 2006 @@ -40,7 +40,7 @@ if ($op == 'dologin') { $member_handler =& xoops_gethandler('member'); $myts =& MyTextsanitizer::getInstance(); - $user =& $member_handler->loginUser(addslashes($myts->stripSlashesGPC($username)), addslashes($myts->stripSlashesGPC($password))); + $user =& $member_handler->loginUser(addslashes($myts->stripSlashesGPC($username)), $myts->stripSlashesGPC($password)); if (is_object($user)) { if (0 == $user->getVar('level')) { redirect_header(XOOPS_URL.'/index.php', 5, _US_NOACTTPADM); From onokazu @ users.sourceforge.jp Sun Apr 9 03:32:51 2006 From: onokazu @ users.sourceforge.jp (onokazu) Date: Sun, 9 Apr 2006 03:32:51 +0900 Subject: [xoops-cvslog 2689] CVS update: xoops2jp/html/class/xml/rpc Message-ID: <20060408183251.6228C2AC094@users.sourceforge.jp> Index: xoops2jp/html/class/xml/rpc/xmlrpcapi.php diff -u xoops2jp/html/class/xml/rpc/xmlrpcapi.php:1.5 xoops2jp/html/class/xml/rpc/xmlrpcapi.php:1.5.6.1 --- xoops2jp/html/class/xml/rpc/xmlrpcapi.php:1.5 Wed Aug 3 21:39:11 2005 +++ xoops2jp/html/class/xml/rpc/xmlrpcapi.php Sun Apr 9 03:32:51 2006 @@ -1,5 +1,5 @@ user =& $member_handler->loginUser(addslashes($username), addslashes($password)); + $this->user =& $member_handler->loginUser(addslashes($username), trim($password)); if (!is_object($this->user)) { unset($this->user); return false; From onokazu @ users.sourceforge.jp Sun Apr 9 03:32:51 2006 From: onokazu @ users.sourceforge.jp (onokazu) Date: Sun, 9 Apr 2006 03:32:51 +0900 Subject: [xoops-cvslog 2690] CVS update: xoops2jp/html/modules/system/admin/users Message-ID: <20060408183251.8F9D12AC090@users.sourceforge.jp> Index: xoops2jp/html/modules/system/admin/users/main.php diff -u xoops2jp/html/modules/system/admin/users/main.php:1.6 xoops2jp/html/modules/system/admin/users/main.php:1.6.4.1 --- xoops2jp/html/modules/system/admin/users/main.php:1.6 Mon Sep 5 05:46:11 2005 +++ xoops2jp/html/modules/system/admin/users/main.php Sun Apr 9 03:32:51 2006 @@ -1,5 +1,5 @@ setVar("pass", md5($_POST['pass'])); + $edituser->setVar("pass", md5($myts->stripSlashesGPC(trim($_POST['pass'])))); } if (!$member_handler->insertUser($edituser)) { xoops_cp_header(); @@ -264,7 +264,7 @@ xoops_cp_footer(); exit(); } - $newuser->setVar("pass", md5($_POST['pass'])); + $newuser->setVar("pass", md5($myts->stripSlashesGPC(trim($_POST['pass'])))); } $newuser->setVar("timezone_offset", $_POST['timezone_offset']); $newuser->setVar("uorder", $_POST['uorder']); From nobunobu @ users.sourceforge.jp Sun Apr 9 10:24:04 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 9 Apr 2006 10:24:04 +0900 Subject: [xoops-cvslog 2691] CVS update: xoops2jp/html/settings Message-ID: <20060409012404.24A172AC03D@users.sourceforge.jp> Index: xoops2jp/html/settings/site_default.ini.php diff -u xoops2jp/html/settings/site_default.ini.php:1.1.2.8 xoops2jp/html/settings/site_default.ini.php:1.1.2.9 --- xoops2jp/html/settings/site_default.ini.php:1.1.2.8 Sun Apr 2 22:07:48 2006 +++ xoops2jp/html/settings/site_default.ini.php Sun Apr 9 10:24:04 2006 @@ -30,6 +30,8 @@ [Legacy_RenderSystem] path=/modules/legacyRender/kernel class=Legacy_RenderSystem +SystemTemplate=system_comment.html, system_comments_flat.html, system_comments_thread.html, system_comments_nest.html, system_notification_select.html +SystemTemplatePrefix=legacy [Legacy_AdminRenderSystem] path=/modules/base/kernel From nobunobu @ users.sourceforge.jp Sun Apr 9 10:24:03 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 9 Apr 2006 10:24:03 +0900 Subject: [xoops-cvslog 2692] CVS update: xoops2jp/html/class/smarty/plugins Message-ID: <20060409012403.F316C2AC010@users.sourceforge.jp> Index: xoops2jp/html/class/smarty/plugins/resource.db.php diff -u xoops2jp/html/class/smarty/plugins/resource.db.php:1.1 xoops2jp/html/class/smarty/plugins/resource.db.php:1.1.8.1 --- xoops2jp/html/class/smarty/plugins/resource.db.php:1.1 Thu Sep 9 14:14:50 2004 +++ xoops2jp/html/class/smarty/plugins/resource.db.php Sun Apr 9 10:24:03 2006 @@ -8,8 +8,28 @@ * Purpose: Fetches templates from a database * ------------------------------------------------------------- */ + +function smarty_resource_db_systemTpl($tpl_name) +{ + // Replace Legacy System Template name to Legacy Module Template name + static $patterns = null; + static $replacements = null; + if (!$patterns) { + $root=&XCube_Root::getSingleton(); + $systemTemplates = explode(',',$root->getSiteConfig('Legacy_RenderSystem','SystemTemplate','')); + $prefix = $root->getSiteConfig('Legacy_RenderSystem','SystemTemplatePrefix','legacy'); + $patterns = preg_replace('/^\s*([^\s]*)\s*$/e', '"/".preg_quote("\1","/")."/"', $systemTemplates); + $replacements = preg_replace('/^\s*system_([^\s]*)\s*/', $prefix.'_\1', $systemTemplates); + } + if ($patterns) { + $tpl_name = preg_replace($patterns, $replacements,$tpl_name); + } + return $tpl_name; +} + function smarty_resource_db_source($tpl_name, &$tpl_source, &$smarty) { + $tpl_name = smarty_resource_db_systemTpl($tpl_name); $tplfile_handler =& xoops_gethandler('tplfile'); $tplobj =& $tplfile_handler->find($GLOBALS['xoopsConfig']['template_set'], null, null, null, $tpl_name, true); if (count($tplobj) > 0) { @@ -65,6 +85,7 @@ function smarty_resource_db_timestamp($tpl_name, &$tpl_timestamp, &$smarty) { + $tpl_name = smarty_resource_db_systemTpl($tpl_name); $tplfile_handler =& xoops_gethandler('tplfile'); $tplobj =& $tplfile_handler->find($GLOBALS['xoopsConfig']['template_set'], null, null, null, $tpl_name, false); if (count($tplobj) > 0) { From nobunobu @ users.sourceforge.jp Sun Apr 9 10:24:04 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 9 Apr 2006 10:24:04 +0900 Subject: [xoops-cvslog 2693] CVS update: xoops2jp/html/modules/base/templates Message-ID: <20060409012404.503E12AC0D7@users.sourceforge.jp> Index: xoops2jp/html/modules/base/templates/legacy_comment.html diff -u /dev/null xoops2jp/html/modules/base/templates/legacy_comment.html:1.1.2.1 --- /dev/null Sun Apr 9 10:24:04 2006 +++ xoops2jp/html/modules/base/templates/legacy_comment.html Sun Apr 9 10:24:04 2006 @@ -0,0 +1,50 @@ + + + <{$comment.poster.uname}> +
    <{$lang_posted}>: <{$comment.date_posted}>  <{$lang_updated}>: <{$comment.date_modified}>
    + + + + <{if $comment.poster.id != 0}> + +
    <{$comment.poster.rank_title}>
    <{$lang_joined}>: <{$comment.poster.regdate}>
    <{$lang_from}>: <{$comment.poster.from}>
    <{$lang_posts}>: <{$comment.poster.postnum}>
    <{$comment.poster.status}>
    + + <{else}> + + + + <{/if}> + + +
    <{$comment.image}><{$comment.title}>
    <{$comment.text}>
    + + + + + + <{if $xoops_iscommentadmin == true}> + + + <{$lang_edit}><{$lang_delete}><{$lang_reply}> + + + <{elseif $xoops_isuser == true && $xoops_userid == $comment.poster.id}> + + + <{$lang_edit}><{$lang_reply}> + + + <{elseif $xoops_isuser == true || $anon_canpost == true}> + + + <{$lang_reply}> + + + <{else}> + + + + <{/if}> + + + \ No newline at end of file Index: xoops2jp/html/modules/base/templates/legacy_comments_flat.html diff -u /dev/null xoops2jp/html/modules/base/templates/legacy_comments_flat.html:1.1.2.1 --- /dev/null Sun Apr 9 10:24:04 2006 +++ xoops2jp/html/modules/base/templates/legacy_comments_flat.html Sun Apr 9 10:24:04 2006 @@ -0,0 +1,9 @@ + + + + + + <{foreach item=comment from=$comments}> + <{include file="db:legacy_comment.html" comment=$comment}> + <{/foreach}> +
    <{$lang_poster}><{$lang_thread}>
    \ No newline at end of file Index: xoops2jp/html/modules/base/templates/legacy_comments_nest.html diff -u /dev/null xoops2jp/html/modules/base/templates/legacy_comments_nest.html:1.1.2.1 --- /dev/null Sun Apr 9 10:24:04 2006 +++ xoops2jp/html/modules/base/templates/legacy_comments_nest.html Sun Apr 9 10:24:04 2006 @@ -0,0 +1,30 @@ +<{section name=i loop=$comments}> +
    + + + + + + <{include file="db:legacy_comment.html" comment=$comments[i]}> +
    <{$lang_poster}><{$lang_thread}>
    + + +<{foreach item=reply from=$comments[i].replies}> +
    + + + + + +
    + + + + + + <{include file="db:system_comment.html" comment=$reply}> +
    <{$lang_poster}><{$lang_thread}>
    +
    +<{/foreach}> + +<{/section}> \ No newline at end of file Index: xoops2jp/html/modules/base/templates/legacy_comments_thread.html diff -u /dev/null xoops2jp/html/modules/base/templates/legacy_comments_thread.html:1.1.2.1 --- /dev/null Sun Apr 9 10:24:04 2006 +++ xoops2jp/html/modules/base/templates/legacy_comments_thread.html Sun Apr 9 10:24:04 2006 @@ -0,0 +1,37 @@ +<{section name=i loop=$comments}> +
    + + + + + + <{include file="db:legacy_comment.html" comment=$comments[i]}> +
    <{$lang_poster}><{$lang_thread}>
    + +<{if $show_threadnav == true}> +
    +<{$lang_top}> | <{$lang_parent}> +
    +<{/if}> + +<{if $comments[i].show_replies == true}> + +
    + + + + + + + <{foreach item=reply from=$comments[i].replies}> + + + + + + <{/foreach}> +
    <{$lang_subject}><{$lang_poster}><{$lang_posted}>
    <{$reply.prefix}> <{$reply.title}><{$reply.poster.uname}><{$reply.date_posted}>
    + +<{/if}> + +<{/section}> \ No newline at end of file Index: xoops2jp/html/modules/base/templates/legacy_notification_select.html diff -u /dev/null xoops2jp/html/modules/base/templates/legacy_notification_select.html:1.1.2.1 --- /dev/null Sun Apr 9 10:24:04 2006 +++ xoops2jp/html/modules/base/templates/legacy_notification_select.html Sun Apr 9 10:24:04 2006 @@ -0,0 +1,35 @@ +<{if $xoops_notification.show}> +
    +

    <{$lang_activenotifications}>

    + + + + + + + + + <{foreach name=outer item=category from=$xoops_notification.categories}> + <{foreach name=inner item=event from=$category.events}> + + <{if $smarty.foreach.inner.first}> + + <{/if}> + + + + <{/foreach}> + <{/foreach}> + + + +
    <{$lang_notificationoptions}>
    <{$lang_category}><{$lang_events}>
    <{$category.title}> + <{counter assign=index}> + + checked="checked"<{/if}> /> + <{$event.caption}>
    +
    +<{$lang_notificationmethodis}>: <{$user_method}>  [<{$lang_change}>] +
    +
    +<{/if}> \ No newline at end of file From nobunobu @ users.sourceforge.jp Sun Apr 9 10:26:43 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 9 Apr 2006 10:26:43 +0900 Subject: [xoops-cvslog 2694] CVS update: xoops2jp/html/modules/base Message-ID: <20060409012643.92D382AC010@users.sourceforge.jp> Index: xoops2jp/html/modules/base/xoops_version.php diff -u xoops2jp/html/modules/base/xoops_version.php:1.1.2.18 xoops2jp/html/modules/base/xoops_version.php:1.1.2.19 --- xoops2jp/html/modules/base/xoops_version.php:1.1.2.18 Wed Mar 29 22:52:01 2006 +++ xoops2jp/html/modules/base/xoops_version.php Sun Apr 9 10:26:43 2006 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/base/language/japanese/admin.php diff -u xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.26 xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.27 --- xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.26 Fri Apr 7 18:03:29 2006 +++ xoops2jp/html/modules/base/language/japanese/admin.php Sun Apr 9 23:47:16 2006 @@ -12,11 +12,13 @@ define('_AD_BASE_LANG_ADD_CUSTOM_BLOCK', "カスタムブロック追加"); define('_AD_BASE_LANG_ALL_MODULES', "すべてのモジュール"); define('_AD_BASE_LANG_ALL_STATUS', "すべてのステータス"); -define('_AD_BASE_LANG_BCACHETIME', "bcachetime"); -define('_AD_BASE_LANG_BID', "bid"); +define('_AD_BASE_LANG_BCACHETIME', "キャッシュ"); +define('_AD_BASE_LANG_BID', "BID"); +define('_AD_BASE_LANG_BLOCK_EDIT', "ブロック編集"); define('_AD_BASE_LANG_BLOCK_INSTALL', "ブロックのインストール"); define('_AD_BASE_LANG_BLOCK_TYPE', "block type"); -define('_AD_BASE_LANG_C_TYPE', "c type"); +define('_AD_BASE_LANG_BLOCK_UNINSTALL', "ブロックのアンインストール"); +define('_AD_BASE_LANG_C_TYPE', "タイプ"); define('_AD_BASE_LANG_CENTER_BLOCK_CENTER', "Center block center"); define('_AD_BASE_LANG_CENTER_BLOCK_LEFT', "Center block left"); define('_AD_BASE_LANG_CENTER_BLOCK_RIGHT', "Center block right"); @@ -40,13 +42,15 @@ define('_AD_BASE_LANG_COMMENT_EDIT', "コメント編集"); define('_AD_BASE_LANG_COMMENT_NEW', "コメント新規追加"); define('_AD_BASE_LANG_COMMENT_VIEW', "コメント閲覧"); -define('_AD_BASE_LANG_CONTENT', "content"); -define('_AD_BASE_LANG_CONTROL', "コントロール"); +define('_AD_BASE_LANG_CONTENT', "コンテンツ"); +define('_AD_BASE_LANG_CONTROL', "操作"); define('_AD_BASE_LANG_CREATE_NEW', "新規作成"); define('_AD_BASE_LANG_CUSTOM_HTML', "カスタム(HTML)"); define('_AD_BASE_LANG_CUSTOM_PHP', "カスタム(PHP)"); define('_AD_BASE_LANG_CUSTOM_WITH_SMILIES', "カスタム(顔アイコン有効)"); define('_AD_BASE_LANG_CUSTOM_WITHOUT_SMILIES', "カスタム(顔アイコン無効)"); +define('_AD_BASE_LANG_CUSTOMBLOCK_DELETE', "カスタムブロック削除"); +define('_AD_BASE_LANG_CUSTOMBLOCK_EDIT', "カスタムブロック編集"); define('_AD_BASE_LANG_DIRNAME', "dirname"); define('_AD_BASE_LANG_DISPLAY', "表示"); define('_AD_BASE_LANG_DOBR', "改行を自動挿入する"); @@ -60,8 +64,9 @@ define('_AD_BASE_LANG_FUNC_NUM', "func num"); define('_AD_BASE_LANG_ID', "ID"); define('_AD_BASE_LANG_ISACTIVE', "isactive"); -define('_AD_BASE_LANG_LAST_MODIFIED', "last modified"); -define('_AD_BASE_LANG_MID', "mid"); +define('_AD_BASE_LANG_LAST_MODIFIED', "最終更新日時"); +define('_AD_BASE_LANG_LCR', "右-中央-左"); +define('_AD_BASE_LANG_MID', "モジュール"); define('_AD_BASE_LANG_NAME', "name"); define('_AD_BASE_LANG_ONLINE_IP', "online ip"); define('_AD_BASE_LANG_ONLINE_MODULE', "online module"); @@ -71,7 +76,7 @@ define('_AD_BASE_LANG_OPTIONS', "options"); define('_AD_BASE_LANG_RES_FOR_COMMENT', "このコメントへのレスポンス"); define('_AD_BASE_LANG_SHOW_FUNC', "show func"); -define('_AD_BASE_LANG_SIDE', "side"); +define('_AD_BASE_LANG_SIDE', "表示サイド"); define('_AD_BASE_LANG_SIDE_BLOCK_LEFT', "Side block left"); define('_AD_BASE_LANG_SIDE_BLOCK_RIGHT', "Side block right"); define('_AD_BASE_LANG_SMILE_URL', "画像"); @@ -81,11 +86,11 @@ define('_AD_BASE_LANG_SUBMIT', "送信"); define('_AD_BASE_LANG_TARGET_GROUPS', "Target groups"); define('_AD_BASE_LANG_TARGET_MODULES', "Target modules"); -define('_AD_BASE_LANG_TEMPLATE', "template"); -define('_AD_BASE_LANG_TITLE', "title"); +define('_AD_BASE_LANG_TEMPLATE', "テンプレート"); +define('_AD_BASE_LANG_TITLE', "タイトル"); define('_AD_BASE_LANG_TOPPAGE', "トップページ"); define('_AD_BASE_LANG_VISIBLE', "visible"); -define('_AD_BASE_LANG_WEIGHT', "weight"); +define('_AD_BASE_LANG_WEIGHT', "並び順"); define('_AD_BASE_MESSAGE_CHILDREN_DELETED_TOGETHER', "一緒に削除されるデータ"); define('_AD_BASE_MESSAGE_CONFIRM_DELETE', "削除確認"); define('_AD_BASE_TIPS_ADD_CUSTOM_BLOCK', "新しいブロックをインストールして、サイトをカスタマイズしましょう。
    モジュール付属のブロック以外にも、カスタムブロックを追加して、自由なメッセージをブロックカラムに追加できます。"); From tom_g3x @ users.sourceforge.jp Sun Apr 9 23:47:29 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Sun, 9 Apr 2006 23:47:29 +0900 Subject: [xoops-cvslog 2696] CVS update: xoops2jp/html/modules/base/language/english Message-ID: <20060409144729.4A2302AC043@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.22 xoops2jp/html/modules/base/language/english/admin.php:1.1.2.23 --- xoops2jp/html/modules/base/language/english/admin.php:1.1.2.22 Fri Apr 7 18:03:23 2006 +++ xoops2jp/html/modules/base/language/english/admin.php Sun Apr 9 23:47:29 2006 @@ -15,7 +15,9 @@ define('_AD_BASE_LANG_BCACHETIME', "bcachetime"); define('_AD_BASE_LANG_BID', "bid"); define('_AD_BASE_LANG_BLOCK_INSTALL', "block install"); +define('_AD_BASE_LANG_BLOCK_EDIT', "block edit"); define('_AD_BASE_LANG_BLOCK_TYPE', "block type"); +define('_AD_BASE_LANG_BLOCK_UNINSTALL', "block uninstall"); define('_AD_BASE_LANG_C_TYPE', "c type"); define('_AD_BASE_LANG_CENTER_BLOCK_CENTER', "Center block center"); define('_AD_BASE_LANG_CENTER_BLOCK_LEFT', "Center block left"); @@ -47,6 +49,8 @@ define('_AD_BASE_LANG_CUSTOM_PHP', "Custom PHP"); define('_AD_BASE_LANG_CUSTOM_WITH_SMILIES', "Custom with Smilies"); define('_AD_BASE_LANG_CUSTOM_WITHOUT_SMILIES', "Custom without Smilies"); +define('_AD_BASE_LANG_CUSTOMBLOCK_DELETE', "custom block delete"); +define('_AD_BASE_LANG_CUSTOMBLOCK_EDIT', "custom block edit"); define('_AD_BASE_LANG_DIRNAME', "dirname"); define('_AD_BASE_LANG_DISPLAY', "Display"); define('_AD_BASE_LANG_DOBR', "Insert line-break automaticall"); @@ -61,6 +65,7 @@ define('_AD_BASE_LANG_ID', "ID"); define('_AD_BASE_LANG_ISACTIVE', "isactive"); define('_AD_BASE_LANG_LAST_MODIFIED', "last modified"); +define('_AD_BASE_LANG_LCR', "L-CTR-R"); define('_AD_BASE_LANG_MID', "mid"); define('_AD_BASE_LANG_NAME', "name"); define('_AD_BASE_LANG_ONLINE_IP', "online ip"); From tom_g3x @ users.sourceforge.jp Sun Apr 9 23:48:01 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Sun, 9 Apr 2006 23:48:01 +0900 Subject: [xoops-cvslog 2697] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20060409144801.6DDB12AC043@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/customblock_delete.html diff -u xoops2jp/html/modules/base/admin/templates/customblock_delete.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/customblock_delete.html:1.1.2.2 --- xoops2jp/html/modules/base/admin/templates/customblock_delete.html:1.1.2.1 Fri Apr 7 13:47:50 2006 +++ xoops2jp/html/modules/base/admin/templates/customblock_delete.html Sun Apr 9 23:48:01 2006 @@ -1,97 +1,111 @@ -

    <{$smarty.const._AD_BASE_MESSAGE_CONFIRM_DELETE}>

    +
    + <{$smarty.const._MI_BASE_NAME}> + »» <{$smarty.const._MI_BASE_MENU_BLOCKLIST}> + »» <{$smarty.const._AD_BASE_LANG_CUSTOMBLOCK_DELETE}> +
    - +

    <{$smarty.const._AD_BASE_LANG_CUSTOMBLOCK_DELETE}>

    + + + + + <{xoops_token form=$actionForm}> + <{xoops_input type=hidden name=bid value=$actionForm->get('bid')}> +
    + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - -
    <{$smarty.const._AD_BASE_LANG_CUSTOMBLOCK_DELETE}>
    <{$smarty.const._AD_BASE_LANG_BID}><{$smarty.const._AD_BASE_LANG_BID}> "><{$object->getVar('bid')}>
    <{$smarty.const._AD_BASE_LANG_MID}><{$smarty.const._AD_BASE_LANG_MID}> "><{$object->getVar('mid')}>
    <{$smarty.const._AD_BASE_LANG_FUNC_NUM}><{$smarty.const._AD_BASE_LANG_FUNC_NUM}> "><{$object->getVar('func_num')}>
    <{$smarty.const._AD_BASE_LANG_OPTIONS}><{$smarty.const._AD_BASE_LANG_OPTIONS}> "><{$object->getVar('options')}>
    <{$smarty.const._AD_BASE_LANG_NAME}><{$smarty.const._AD_BASE_LANG_NAME}> "><{$object->getVar('name')}>
    <{$smarty.const._AD_BASE_LANG_TITLE}><{$smarty.const._AD_BASE_LANG_TITLE}> "><{$object->getVar('title')}>
    <{$smarty.const._AD_BASE_LANG_CONTENT}><{$smarty.const._AD_BASE_LANG_CONTENT}> "><{$object->getVar('content')}>
    <{$smarty.const._AD_BASE_LANG_SIDE}><{$smarty.const._AD_BASE_LANG_SIDE}> "> <{if $object->mColumn}><{$object->mColumn->getVar('name')}><{/if}>
    <{$smarty.const._AD_BASE_LANG_WEIGHT}><{$smarty.const._AD_BASE_LANG_WEIGHT}> "><{$object->getVar('weight')}>
    <{$smarty.const._AD_BASE_LANG_VISIBLE}><{$smarty.const._AD_BASE_LANG_VISIBLE}> "><{$object->getVar('visible')}>
    <{$smarty.const._AD_BASE_LANG_BLOCK_TYPE}><{$smarty.const._AD_BASE_LANG_BLOCK_TYPE}> "><{$object->getVar('block_type')}>
    <{$smarty.const._AD_BASE_LANG_C_TYPE}><{$smarty.const._AD_BASE_LANG_C_TYPE}> "><{$object->getVar('c_type')}>
    <{$smarty.const._AD_BASE_LANG_ISACTIVE}><{$smarty.const._AD_BASE_LANG_ISACTIVE}> "><{$object->getVar('isactive')}>
    <{$smarty.const._AD_BASE_LANG_DIRNAME}><{$smarty.const._AD_BASE_LANG_DIRNAME}> "><{$object->getVar('dirname')}>
    <{$smarty.const._AD_BASE_LANG_FUNC_FILE}><{$smarty.const._AD_BASE_LANG_FUNC_FILE}> "><{$object->getVar('func_file')}>
    <{$smarty.const._AD_BASE_LANG_SHOW_FUNC}><{$smarty.const._AD_BASE_LANG_SHOW_FUNC}> "><{$object->getVar('show_func')}>
    <{$smarty.const._AD_BASE_LANG_EDIT_FUNC}><{$smarty.const._AD_BASE_LANG_EDIT_FUNC}> "><{$object->getVar('edit_func')}>
    <{$smarty.const._AD_BASE_LANG_TEMPLATE}><{$smarty.const._AD_BASE_LANG_TEMPLATE}> "><{$object->getVar('template')}>
    <{$smarty.const._AD_BASE_LANG_BCACHETIME}><{$smarty.const._AD_BASE_LANG_BCACHETIME}> "> <{if $object->mCachetime}><{$object->mCachetime->getVar('label')}><{/if}>
    <{$smarty.const._AD_BASE_LANG_LAST_MODIFIED}><{$smarty.const._AD_BASE_LANG_LAST_MODIFIED}> "><{$object->getVar('last_modified')|xoops_formattimestamp:l}>

    - - <{xoops_token form=$actionForm}> - <{xoops_input type=hidden name=bid value=$actionForm->get('bid')}> - - +
    + +
    + + Index: xoops2jp/html/modules/base/admin/templates/block_uninstall.html diff -u xoops2jp/html/modules/base/admin/templates/block_uninstall.html:1.1.2.3 xoops2jp/html/modules/base/admin/templates/block_uninstall.html:1.1.2.4 --- xoops2jp/html/modules/base/admin/templates/block_uninstall.html:1.1.2.3 Thu Apr 6 16:54:38 2006 +++ xoops2jp/html/modules/base/admin/templates/block_uninstall.html Sun Apr 9 23:48:01 2006 @@ -1,4 +1,14 @@ -

    <{$smarty.const._AD_BASE_MESSAGE_CONFIRM_DELETE}>

    +
    + <{$smarty.const._MI_BASE_NAME}> + »» <{$smarty.const._MI_BASE_MENU_BLOCKLIST}> + »» <{$smarty.const._AD_BASE_LANG_BLOCK_UNINSTALL}> +
    + +

    <{$smarty.const._AD_BASE_LANG_BLOCK_UNINSTALL}>

    + +
    <{if $object->get('block_type') == 'C'}> @@ -8,98 +18,102 @@ <{/if}>
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +<{xoops_token form=$actionForm}> +<{xoops_input type=hidden name=bid value=$actionForm->get('bid')}> +
    <{$smarty.const._AD_BASE_LANG_BID}>"><{$object->getVar('bid')}>
    <{$smarty.const._AD_BASE_LANG_MID}>"><{$object->getVar('mid')}>
    <{$smarty.const._AD_BASE_LANG_FUNC_NUM}>"><{$object->getVar('func_num')}>
    <{$smarty.const._AD_BASE_LANG_OPTIONS}>"><{$object->getVar('options')}>
    <{$smarty.const._AD_BASE_LANG_NAME}>"><{$object->getVar('name')}>
    <{$smarty.const._AD_BASE_LANG_TITLE}>"><{$object->getVar('title')}>
    <{$smarty.const._AD_BASE_LANG_CONTENT}>"><{$object->getVar('content')}>
    <{$smarty.const._AD_BASE_LANG_SIDE}>"> - <{if $object->mColumn}><{$object->mColumn->getVar('name')}><{/if}> -
    <{$smarty.const._AD_BASE_LANG_WEIGHT}>"><{$object->getVar('weight')}>
    <{$smarty.const._AD_BASE_LANG_VISIBLE}>"><{$object->getVar('visible')}>
    <{$smarty.const._AD_BASE_LANG_BLOCK_TYPE}>"><{$object->getVar('block_type')}>
    <{$smarty.const._AD_BASE_LANG_C_TYPE}>"><{$object->getVar('c_type')}>
    <{$smarty.const._AD_BASE_LANG_ISACTIVE}>"><{$object->getVar('isactive')}>
    <{$smarty.const._AD_BASE_LANG_DIRNAME}>"><{$object->getVar('dirname')}>
    <{$smarty.const._AD_BASE_LANG_FUNC_FILE}>"><{$object->getVar('func_file')}>
    <{$smarty.const._AD_BASE_LANG_SHOW_FUNC}>"><{$object->getVar('show_func')}>
    <{$smarty.const._AD_BASE_LANG_EDIT_FUNC}>"><{$object->getVar('edit_func')}>
    <{$smarty.const._AD_BASE_LANG_TEMPLATE}>"><{$object->getVar('template')}>
    <{$smarty.const._AD_BASE_LANG_BCACHETIME}>"> - <{if $object->mCachetime}><{$object->mCachetime->getVar('label')}><{/if}> -
    <{$smarty.const._AD_BASE_LANG_LAST_MODIFIED}>"><{$object->getVar('last_modified')|xoops_formattimestamp:l}>

    -
    - <{xoops_token form=$actionForm}> - <{xoops_input type=hidden name=bid value=$actionForm->get('bid')}> - -
    -
    + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
    <{$smarty.const._AD_BASE_LANG_BLOCK_UNINSTALL}>
    <{$smarty.const._AD_BASE_LANG_BID}>"><{$object->getVar('bid')}>
    <{$smarty.const._AD_BASE_LANG_MID}>"><{$object->getVar('mid')}>
    <{$smarty.const._AD_BASE_LANG_FUNC_NUM}>"><{$object->getVar('func_num')}>
    <{$smarty.const._AD_BASE_LANG_OPTIONS}>"><{$object->getVar('options')}>
    <{$smarty.const._AD_BASE_LANG_NAME}>"><{$object->getVar('name')}>
    <{$smarty.const._AD_BASE_LANG_TITLE}>"><{$object->getVar('title')}>
    <{$smarty.const._AD_BASE_LANG_CONTENT}>"><{$object->getVar('content')}>
    <{$smarty.const._AD_BASE_LANG_SIDE}>"> + <{if $object->mColumn}><{$object->mColumn->getVar('name')}><{/if}> +
    <{$smarty.const._AD_BASE_LANG_WEIGHT}>"><{$object->getVar('weight')}>
    <{$smarty.const._AD_BASE_LANG_VISIBLE}>"><{$object->getVar('visible')}>
    <{$smarty.const._AD_BASE_LANG_BLOCK_TYPE}>"><{$object->getVar('block_type')}>
    <{$smarty.const._AD_BASE_LANG_C_TYPE}>"><{$object->getVar('c_type')}>
    <{$smarty.const._AD_BASE_LANG_ISACTIVE}>"><{$object->getVar('isactive')}>
    <{$smarty.const._AD_BASE_LANG_DIRNAME}>"><{$object->getVar('dirname')}>
    <{$smarty.const._AD_BASE_LANG_FUNC_FILE}>"><{$object->getVar('func_file')}>
    <{$smarty.const._AD_BASE_LANG_SHOW_FUNC}>"><{$object->getVar('show_func')}>
    <{$smarty.const._AD_BASE_LANG_EDIT_FUNC}>"><{$object->getVar('edit_func')}>
    <{$smarty.const._AD_BASE_LANG_TEMPLATE}>"><{$object->getVar('template')}>
    <{$smarty.const._AD_BASE_LANG_BCACHETIME}> + "> + <{if $object->mCachetime}><{$object->mCachetime->getVar('label')}><{/if}> +
    <{$smarty.const._AD_BASE_LANG_LAST_MODIFIED}> + "><{$object->getVar('last_modified')|xoops_formattimestamp:l}>
    + + +
    + Index: xoops2jp/html/modules/base/admin/templates/block_list.html diff -u xoops2jp/html/modules/base/admin/templates/block_list.html:1.1.2.4 xoops2jp/html/modules/base/admin/templates/block_list.html:1.1.2.5 --- xoops2jp/html/modules/base/admin/templates/block_list.html:1.1.2.4 Fri Apr 7 17:45:46 2006 +++ xoops2jp/html/modules/base/admin/templates/block_list.html Sun Apr 9 23:48:01 2006 @@ -1,3 +1,10 @@ + + +

    <{$smarty.const._MI_BASE_MENU_BLOCKLIST}>

    +
    <{$smarty.const._AD_BASE_TIPS_ADD_CUSTOM_BLOCK}>
    @@ -16,7 +23,7 @@ <{/if}>
    <{xoops_token form=$actionForm}> - +
    +<{* +*}> - + " alt="<{$smarty.const._DESCENDING}>" />
    + <{$smarty.const._AD_BASE_LANG_LCR}> - @@ -51,35 +58,32 @@ <{foreach item=obj from=$objects}> - + - +<{* - - + - - + <{/foreach}> -
    <{$smarty.const._AD_BASE_LANG_BID}>
    " alt="<{$smarty.const._ASCENDING}>" /> @@ -24,21 +31,21 @@
    <{$smarty.const._AD_BASE_LANG_MID}>
    " alt="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_NAME}>
    " alt="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_TITLE}>
    " alt="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_SIDE}>
    +
    <{$smarty.const._AD_BASE_LANG_SIDE}> " alt="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" /> <{$smarty.const._AD_BASE_LANG_WEIGHT}>
    " alt="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_BLOCK_TYPE}>
    - " alt="<{$smarty.const._ASCENDING}>" /> - " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_C_TYPE}>
    " alt="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" />
    <{$smarty.const._AD_BASE_LANG_CONTROL}>
    <{$obj->getVar('bid')}> + <{if $obj->mModule}> <{$obj->mModule->getVar('name')}> <{else}>   <{/if}> <{$obj->getVar('name')}><{$obj->getVar('title')}> - <{xoops_input type=radio name=side key=$obj->get('bid') value=0 default=$obj->get('side')}>- - <{xoops_input type=radio name=side key=$obj->get('bid') value=1 default=$obj->get('side')}> - <{xoops_input type=radio name=side key=$obj->get('bid') value=3 default=$obj->get('side')}> - <{xoops_input type=radio name=side key=$obj->get('bid') value=4 default=$obj->get('side')}>- - <{xoops_input type=radio name=side key=$obj->get('bid') value=5 default=$obj->get('side')}> +*}> + <{$obj->getVar('title')}> + <{xoops_input type=radio name=side key=$obj->get('bid') value=0 default=$obj->get('side')}>-<{xoops_input type=radio name=side key=$obj->get('bid') value=1 default=$obj->get('side')}><{xoops_input type=radio name=side key=$obj->get('bid') value=3 default=$obj->get('side')}><{xoops_input type=radio name=side key=$obj->get('bid') value=4 default=$obj->get('side')}>-<{xoops_input type=radio name=side key=$obj->get('bid') value=5 default=$obj->get('side')}> <{xoops_input type=text name=weight size=4 key=$obj->get('bid') value=$obj->get('weight')}> <{$obj->getVar('block_type')}> <{$obj->getVar('c_type')}> <{$obj->getVar('last_modified')|xoops_formattimestamp:l}><{$obj->getVar('last_modified')|xoops_formattimestamp:l}> <{if $obj->get('block_type') == 'C'}> " alt="<{$smarty.const._EDIT}>" /> @@ -91,11 +95,11 @@
    - + +
    -
    +
    <{xoops_pagenavi pagenavi=$pageNavi}>
    Index: xoops2jp/html/modules/base/admin/templates/block_edit.html diff -u xoops2jp/html/modules/base/admin/templates/block_edit.html:1.1.2.4 xoops2jp/html/modules/base/admin/templates/block_edit.html:1.1.2.5 --- xoops2jp/html/modules/base/admin/templates/block_edit.html:1.1.2.4 Thu Apr 6 16:54:38 2006 +++ xoops2jp/html/modules/base/admin/templates/block_edit.html Sun Apr 9 23:48:01 2006 @@ -1,3 +1,11 @@ +
    + <{$smarty.const._MI_BASE_NAME}> + »» <{$smarty.const._MI_BASE_MENU_BLOCKLIST}> + »» <{$smarty.const._AD_BASE_LANG_BLOCK_EDIT}> +
    + +

    <{$smarty.const._AD_BASE_LANG_BLOCK_EDIT}>

    + <{if $actionForm->hasError()}>