From minahito @ users.sourceforge.jp Tue Mar 7 21:43:44 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 7 Mar 2006 21:43:44 +0900 Subject: [xoops-cvslog 2365] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20060307124344.8E5C82AC037@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.24 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.25 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.24 Tue Feb 21 20:52:21 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Tue Mar 7 21:43:44 2006 @@ -276,6 +276,12 @@ // Set instance to global variable for compatiblity with XOOPS 2.0.x $GLOBALS['xoopsUser']=&$this->mXoopsUser; $GLOBALS['xoopsUserIsAdmin'] = is_object($this->mXoopsUser) ? $this->mXoopsUser->isAdmin(1) : false; //@todo Remove '1' + + // + // Set member handler to global variables for compatibility with XOOPS 2.0.x. + // + $GLOBALS['xoopsMemberHandler'] =& xoops_gethandler('member'); + $GLOBALS['member_handler'] =& $GLOBALS['xoopsMemberHandler']; } function _setupErrorHandler() From nobunobu @ users.sourceforge.jp Tue Mar 7 22:00:17 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 7 Mar 2006 22:00:17 +0900 Subject: [xoops-cvslog 2366] CVS update: xoops2jp/html/install/custom Message-ID: <20060307130017.E04C82AC04C@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Tue Mar 7 22:00:18 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 7 Mar 2006 22:00:18 +0900 Subject: [xoops-cvslog 2367] CVS update: xoops2jp/html/install/include Message-ID: <20060307130018.189272AC069@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Tue Mar 7 22:00:18 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 7 Mar 2006 22:00:18 +0900 Subject: [xoops-cvslog 2368] CVS update: xoops2jp/html/install/templates Message-ID: <20060307130018.438EC2AC04C@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Tue Mar 7 22:00:18 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 7 Mar 2006 22:00:18 +0900 Subject: [xoops-cvslog 2369] CVS update: xoops2jp/html/install/widzards Message-ID: <20060307130018.6E8542AC069@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Tue Mar 7 22:05:59 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 7 Mar 2006 22:05:59 +0900 Subject: [xoops-cvslog 2370] CVS update: xoops2jp/html/install/img Message-ID: <20060307130559.803752AC069@users.sourceforge.jp> Index: xoops2jp/html/install/img/base.gif Index: xoops2jp/html/install/img/bg.gif Index: xoops2jp/html/install/img/cube.gif Index: xoops2jp/html/install/img/hbar.gif Index: xoops2jp/html/install/img/hbar_installer_right.gif Index: xoops2jp/html/install/img/hbar_left.gif Index: xoops2jp/html/install/img/hbar_right.gif Index: xoops2jp/html/install/img/logo.gif Index: xoops2jp/html/install/img/nav.gif From nobunobu @ users.sourceforge.jp Tue Mar 7 22:05:59 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 7 Mar 2006 22:05:59 +0900 Subject: [xoops-cvslog 2371] CVS update: xoops2jp/html/install Message-ID: <20060307130559.AF9222AC06F@users.sourceforge.jp> Index: xoops2jp/html/install/install_tpl.php diff -u xoops2jp/html/install/install_tpl.php:1.1.8.1 xoops2jp/html/install/install_tpl.php:1.1.8.2 --- xoops2jp/html/install/install_tpl.php:1.1.8.1 Wed Oct 19 02:20:37 2005 +++ xoops2jp/html/install/install_tpl.php Tue Mar 7 22:05:59 2006 @@ -1,97 +1,57 @@ - XOOPS Custom Installation + XOOPS Cube Install Widzard -
- - - - - - - - - - - - - - - - + +
 
 
 
+ + + +
 
- - +
- - - + + + +
 '.$title.''; echo '
'.$content.'
'; ?>
    
+ - - - - - + + + + + + + + + +
    + +

+ +
+ +
+
 
  
 
- - +
- - - + + +
   
- "; - }else{ - $content .= " "; - } - if(isset($option[1]) && $option[1] != ''){ - $content .= "<< " - .htmlspecialchars($option[1])." "; - } - return $content; -} - -function b_reload($option=''){ - if(empty($option)) return ''; - if (!defined('_INSTALL_L200')) { - define('_INSTALL_L200', 'Reload'); - } - return " "; -} - -function b_next($option=null){ - if(!isset($option) || !is_array($option)) return ''; - $content = ''; - if(isset($option[1]) && $option[1] != ''){ - $content .= "" - .htmlspecialchars($option[1])." >>"; - } - $content .= "\n"; - $content .= "\n"; - return $content; -} -?> \ No newline at end of file Index: xoops2jp/html/install/style.css diff -u xoops2jp/html/install/style.css:1.1 xoops2jp/html/install/style.css:1.1.8.1 --- xoops2jp/html/install/style.css:1.1 Thu Sep 9 14:15:04 2004 +++ xoops2jp/html/install/style.css Tue Mar 7 22:05:59 2006 @@ -1,4 +1,4 @@ -body { +body { font-family : tahoma, osaka,taipei,verdana, arial, helvetica, sans-serif; color;#000000; font-size: 12px; @@ -6,20 +6,20 @@ padding: 0; } -a { +a { text-decoration: none; color: #666666;font-weight: bold; background-color: transparent; } -a:hover { +a:hover { text-decoration: none; color: #ff9966; font-weight: bold; background-color: transparent; } -td { +td { font-family : tahoma, osaka,taipei,verdana, arial, helvetica, sans-serif; color: #000000; font-size: 12px; @@ -29,17 +29,43 @@ border-left-width : 1px; } -img { border:0; } -div { text-align: center; } -.bg1 { background-color: #f7f7f7; color: #000000; } -.bg2 { background-color: #000000; color: #ffffff; } -.bg3 { background-color: #2f5376; color: #f9b743; } -.bg4 { background-color: #f5f5f5; color: #000000; } -.bg5 { background-color: #f5f5f5; color: #000000; } -.fg1 { color: #f9b743; } -.fg2 { color: #000000; } +img { + border:0; +} + +div { + text-align: center; +} + +.bg1 { + background-color: #f7f7f7; color: #000000; +} -input { +.bg2 { + background-color: #000000; color: #ffffff; +} + +.bg3 { + background-color: #2f5376; color: #f9b743; +} + +.bg4 { + background-color: #f5f5f5; color: #000000; +} + +.bg5 { + background-color: #f5f5f5; color: #000000; +} + +.fg1 { + color: #f9b743; +} + +.fg2 { + color: #000000; +} + +input { border-right: #000000 1px solid; border-top: #000000 1px solid; font: 8pt verdana, arial, helvetica; @@ -59,4 +85,62 @@ } table { border : 0; -} \ No newline at end of file +} + +.headertable { + width:778px; + align: center; +} + +.bodytable { + background: url(img/bg.gif) repeat; + width:778px; + align: center; +} + +.bar_middle { + background: url(img/hbar.gif) repeat; + width:478px;height:23px; + align: center; +} + +.bar_left { + background: url(img/hbar_left.gif) repeat; + width:150px;height:23px; + align: center; +} + +.bar_right { + background: url(img/hbar_right.gif) repeat; + width:150px;height:23px; + align: center; +} +.footer_right { + background: url(img/hbar_installer_right.gif) repeat; + width:150px;height:23px; + align: center; +} + +.headerlogo { + background: url(img/base.gif) left no-repeat #000080; + width: 200px; + height: 100px; + margin: 0; + padding: 0; +} + +.headerbanner { + background: url(img/cube.gif) right no-repeat #000080; + width: 100%; + text-align: center; + vertical-align: middle; +} + +.headerbar { + background: url(img/nav.gif) repeat-x; + font-size: 10pt; + text-align: right; + margin: 0; + padding: 3px 5px; + border-bottom: solid 1px #dddddd; +} From nobunobu @ users.sourceforge.jp Tue Mar 7 22:06:49 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 7 Mar 2006 22:06:49 +0900 Subject: [xoops-cvslog 2372] CVS update: xoops2jp/html/install/img Message-ID: <20060307130649.2D7482AC04C@users.sourceforge.jp> Index: xoops2jp/html/install/img/no.gif Index: xoops2jp/html/install/img/yes.gif From nobunobu @ users.sourceforge.jp Tue Mar 7 22:11:39 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 7 Mar 2006 22:11:39 +0900 Subject: [xoops-cvslog 2373] CVS update: xoops2jp/html/install/class Message-ID: <20060307131139.720122AC037@users.sourceforge.jp> Index: xoops2jp/html/install/class/cachemanager.php diff -u xoops2jp/html/install/class/cachemanager.php:1.2 xoops2jp/html/install/class/cachemanager.php:1.2.8.1 --- xoops2jp/html/install/class/cachemanager.php:1.2 Fri Mar 18 21:52:14 2005 +++ xoops2jp/html/install/class/cachemanager.php Tue Mar 7 22:11:39 2006 @@ -28,7 +28,7 @@ * cache_manager for XOOPS installer * * @author Haruki Setoyama -* @version $Id: cachemanager.php,v 1.2 2005/03/18 12:52:14 onokazu Exp $ +* @version $Id: cachemanager.php,v 1.2.8.1 2006/03/07 13:11:39 nobunobu Exp $ * @access public **/ class cache_manager { @@ -47,15 +47,14 @@ } function report(){ - $content = "
\n"; + $reports = array(); foreach($this->s_files as $val){ - $content .= _OKIMG.sprintf(_INSTALL_L123, "$val")."
\n"; + $reports[]= _OKIMG.sprintf(_INSTALL_L123, "$val"); } foreach($this->f_files as $val){ - $content .= _NGIMG.sprintf(_INSTALL_L124, "$val")."
\n"; + $reports[] = _NGIMG.sprintf(_INSTALL_L124, "$val"); } - $content .= "
\n"; - return $content; + return $reports; } } Index: xoops2jp/html/install/class/dbmanager.php diff -u xoops2jp/html/install/class/dbmanager.php:1.2.8.1 xoops2jp/html/install/class/dbmanager.php:1.2.8.2 --- xoops2jp/html/install/class/dbmanager.php:1.2.8.1 Tue Dec 27 00:48:44 2005 +++ xoops2jp/html/install/class/dbmanager.php Tue Mar 7 22:11:39 2006 @@ -32,7 +32,7 @@ * database manager for XOOPS installer * * @author Haruki Setoyama -* @version $Id: dbmanager.php,v 1.2.8.1 2005/12/26 15:48:44 minahito Exp $ +* @version $Id: dbmanager.php,v 1.2.8.2 2006/03/07 13:11:39 nobunobu Exp $ * @access public **/ class db_manager { @@ -132,50 +132,49 @@ } function report(){ - $content = "
\n"; + $reports = array(); if (isset($this->s_tables['create'])) { foreach($this->s_tables['create'] as $key => $val){ - $content .= _OKIMG.sprintf(_INSTALL_L45, "$key")."
\n"; + $reports[] = _OKIMG.sprintf(_INSTALL_L45, "$key"); } } if (isset($this->s_tables['insert'])) { foreach($this->s_tables['insert'] as $key => $val){ - $content .= _OKIMG.sprintf(_INSTALL_L119, $val, "$key")."
\n"; + $reports[] = _OKIMG.sprintf(_INSTALL_L119, $val, "$key"); } } if (isset($this->s_tables['alter'])) { foreach($this->s_tables['alter'] as $key => $val){ - $content .= _OKIMG.sprintf(_INSTALL_L133, "$key")."
\n"; + $reports[] = _OKIMG.sprintf(_INSTALL_L133, "$key"); } } if (isset($this->s_tables['drop'])) { foreach($this->s_tables['drop'] as $key => $val){ - $content .= _OKIMG.sprintf(_INSTALL_L163, "$key")."
\n"; + $reports[] = _OKIMG.sprintf(_INSTALL_L163, "$key"); } } $content .= "
\n"; if (isset($this->f_tables['create'])) { foreach($this->f_tables['create'] as $key => $val){ - $content .= _NGIMG.sprintf(_INSTALL_L118, "$key")."
\n"; + $reports[] = _NGIMG.sprintf(_INSTALL_L118, "$key"); } } if (isset($this->f_tables['insert'])) { foreach($this->f_tables['insert'] as $key => $val){ - $content .= _NGIMG.sprintf(_INSTALL_L120, $val, "$key")."
\n"; + $reports[] = _NGIMG.sprintf(_INSTALL_L120, $val, "$key"); } } if (isset($this->f_tables['alter'])) { foreach($this->f_tables['alter'] as $key => $val){ - $content .= _NGIMG.sprintf(_INSTALL_L134, "$key")."
\n"; + $reports[] = _NGIMG.sprintf(_INSTALL_L134, "$key"); } } if (isset($this->f_tables['drop'])) { foreach($this->f_tables['drop'] as $key => $val){ - $content .= _NGIMG.sprintf(_INSTALL_L164, "$key")."
\n"; + $reports[] = _NGIMG.sprintf(_INSTALL_L164, "$key"); } } - $content .= "
\n"; - return $content; + return $reports; } function query($sql){ Index: xoops2jp/html/install/class/mainfilemanager.php diff -u xoops2jp/html/install/class/mainfilemanager.php:1.2 xoops2jp/html/install/class/mainfilemanager.php:1.2.8.1 --- xoops2jp/html/install/class/mainfilemanager.php:1.2 Fri Mar 18 21:52:14 2005 +++ xoops2jp/html/install/class/mainfilemanager.php Tue Mar 7 22:11:39 2006 @@ -28,7 +28,7 @@ * mainfile manager for XOOPS installer * * @author Haruki Setoyama -* @version $Id: mainfilemanager.php,v 1.2 2005/03/18 12:52:14 onokazu Exp $ +* @version $Id: mainfilemanager.php,v 1.2.8.1 2006/03/07 13:11:39 nobunobu Exp $ * @access public **/ class mainfile_manager { @@ -37,7 +37,7 @@ var $distfile = '../mainfile.dist.php'; var $rewrite = array(); - var $report = ''; + var $report = array(); var $error = false; function mainfile_manager(){ @@ -50,11 +50,11 @@ function copyDistFile(){ if ( ! copy($this->distfile, $this->path) ) { - $this->report .= _NGIMG.sprintf(_INSTALL_L126, "".$this->path."")."
\n"; + $this->report[] = _NGIMG.sprintf(_INSTALL_L126, ''.$this->path.''); $this->error = true; return false; } - $this->report .= _OKIMG.sprintf(_INSTALL_L125, "".$this->path."", "".$this->distfile."")."
\n"; + $this->report[] = _OKIMG.sprintf(_INSTALL_L125, ''.$this->path.'', ''.$this->distfile.''); return true; } @@ -73,17 +73,17 @@ $content = preg_replace("/(define\()([\"'])(".$key.")\\2,\s*([0-9]+)\s*\)/" , "define('".$key."', ".$val.")" , $content); - $this->report .= _OKIMG.sprintf(_INSTALL_L121, "$key", $val)."
\n"; + $this->report[] = _OKIMG.sprintf(_INSTALL_L121, "$key", $val); } elseif(preg_match("/(define\()([\"'])(".$key.")\\2,\s*([\"'])(.*?)\\4\s*\)/",$content)){ $content = preg_replace("/(define\()([\"'])(".$key.")\\2,\s*([\"'])(.*?)\\4\s*\)/" , "define('".$key."', '".addslashes($val)."')" , $content); - $this->report .= _OKIMG.sprintf(_INSTALL_L121, "$key", $val)."
\n"; + $this->report[] = _OKIMG.sprintf(_INSTALL_L121, ''.$key.'', $val); }else{ $this->error = true; - $this->report .= _NGIMG.sprintf(_INSTALL_L122, "$val")."
\n"; + $this->report[] = _NGIMG.sprintf(_INSTALL_L122, ''.$val.''); } } @@ -104,10 +104,7 @@ } function report(){ - $content = "
\n"; - $content .= $this->report; - $content .= "
\n"; - return $content; + return $this->report; } function error(){ Index: xoops2jp/html/install/class/settingmanager.php diff -u xoops2jp/html/install/class/settingmanager.php:1.2 xoops2jp/html/install/class/settingmanager.php:1.2.8.1 --- xoops2jp/html/install/class/settingmanager.php:1.2 Fri Mar 18 21:52:14 2005 +++ xoops2jp/html/install/class/settingmanager.php Tue Mar 7 22:11:39 2006 @@ -29,7 +29,7 @@ * setting manager for XOOPS installer * * @author Haruki Setoyama -* @version $Id: settingmanager.php,v 1.2 2005/03/18 12:52:14 onokazu Exp $ +* @version $Id: settingmanager.php,v 1.2.8.1 2006/03/07 13:11:39 nobunobu Exp $ * @access public **/ class setting_manager { @@ -57,23 +57,23 @@ $this->prefix = 'xoops'; $this->db_pconnect = 0; - $this->root_path = str_replace("\\","/",getcwd()); // " - $this->root_path = str_replace("/install", "", $this->root_path); + $this->root_path = str_replace('\\','/',getcwd()); // " + $this->root_path = str_replace('/install', '', $this->root_path); $filepath = (! empty($_SERVER['REQUEST_URI'])) ? dirname($_SERVER['REQUEST_URI']) : dirname($_SERVER['SCRIPT_NAME']); - $filepath = str_replace("\\", "/", $filepath); // " - $filepath = str_replace("/install", "", $filepath); - if ( substr($filepath, 0, 1) == "/" ) { + $filepath = str_replace('\\', '/', $filepath); // " + $filepath = str_replace('/install', '', $filepath); + if ( substr($filepath, 0, 1) == '/' ) { $filepath = substr($filepath,1); } - if ( substr($filepath, -1) == "/" ) { + if ( substr($filepath, -1) == '/' ) { $filepath = substr($filepath, 0, -1); } $protocol = ($_SERVER['HTTPS'] == 'on') ? 'https://' : 'http://'; - $this->xoops_url = (!empty($filepath)) ? $protocol.$_SERVER['HTTP_HOST']."/".$filepath : $protocol.$_SERVER['HTTP_HOST']; + $this->xoops_url = (!empty($filepath)) ? $protocol.$_SERVER['HTTP_HOST'].'/'.$filepath : $protocol.$_SERVER['HTTP_HOST']; } } @@ -141,7 +141,7 @@ if (!empty($error)) { foreach ( $error as $err ) { - $ret .= "

".$err."

\n"; + $ret .= '

'.$err.'

'."\n"; } } @@ -150,44 +150,44 @@ function editform(){ $ret = - " + '
- + - - + - - "; + '; $ret .= $this->editform_sub(_INSTALL_L27, _INSTALL_L67, 'dbhost', $this->sanitizer->htmlSpecialChars($this->dbhost)); $ret .= $this->editform_sub(_INSTALL_L28, _INSTALL_L65, 'dbuname', $this->sanitizer->htmlSpecialChars($this->dbuname)); $ret .= $this->editform_sub(_INSTALL_L52, _INSTALL_L68, 'dbpass', $this->sanitizer->htmlSpecialChars($this->dbpass)); $ret .= $this->editform_sub(_INSTALL_L29, _INSTALL_L64, 'dbname', $this->sanitizer->htmlSpecialChars($this->dbname)); $ret .= $this->editform_sub(_INSTALL_L30, _INSTALL_L63, 'prefix', $this->sanitizer->htmlSpecialChars($this->prefix)); - $ret .= " - + - - "; + '; $ret .= $this->editform_sub(_INSTALL_L55, _INSTALL_L59, 'root_path', $this->sanitizer->htmlSpecialChars($this->root_path)); $ret .= $this->editform_sub(_INSTALL_L56, _INSTALL_L58, 'xoops_url', $this->sanitizer->htmlSpecialChars($this->xoops_url)); @@ -197,71 +197,71 @@ } function editform_sub($title, $desc, $name, $value){ - return " - + - - "; + '; } function confirmForm(){ $yesno = empty($this->db_pconnect) ? _INSTALL_L24 : _INSTALL_L23; $ret = - "
- "._INSTALL_L51."
- "._INSTALL_L66." +
+ '._INSTALL_L51.'
+ '._INSTALL_L66.'
- + + $ret .= '
- "._INSTALL_L54."
- "._INSTALL_L69." + $ret .= '
+ '._INSTALL_L54.'
+ '._INSTALL_L69.'
- db_pconnect == 1 ? " checked='checked'" : "" )." />"._INSTALL_L23." - db_pconnect != 1 ? " checked='checked'" : "" )." />"._INSTALL_L24." + + db_pconnect == 1 ? ' checked="checked"' : '' ).' />'._INSTALL_L23.' + db_pconnect != 1 ? ' checked="checked"' : '' ).' />'._INSTALL_L24.'
- ".$title."
- ".$desc." + return '
+ '.$title.'
+ '.$desc.'
- + +
- + '
+ - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + +
"._INSTALL_L51."".$this->sanitizer->htmlSpecialChars($this->database)."'._INSTALL_L51.''.$this->sanitizer->htmlSpecialChars($this->database).'
"._INSTALL_L27."".$this->sanitizer->htmlSpecialChars($this->dbhost)."'._INSTALL_L27.''.$this->sanitizer->htmlSpecialChars($this->dbhost).'
"._INSTALL_L28."".$this->sanitizer->htmlSpecialChars($this->dbuname)."'._INSTALL_L28.''.$this->sanitizer->htmlSpecialChars($this->dbuname).'
"._INSTALL_L52."".$this->sanitizer->htmlSpecialChars($this->dbpass)."'._INSTALL_L52.''.$this->sanitizer->htmlSpecialChars($this->dbpass).'
"._INSTALL_L29."".$this->sanitizer->htmlSpecialChars($this->dbname)."'._INSTALL_L29.''.$this->sanitizer->htmlSpecialChars($this->dbname).'
"._INSTALL_L30."".$this->sanitizer->htmlSpecialChars($this->prefix)."'._INSTALL_L30.''.$this->sanitizer->htmlSpecialChars($this->prefix).'
"._INSTALL_L54."".$yesno."'._INSTALL_L54.''.$yesno.'
"._INSTALL_L55."".$this->sanitizer->htmlSpecialChars($this->root_path)."'._INSTALL_L55.''.$this->sanitizer->htmlSpecialChars($this->root_path).'
"._INSTALL_L56."".$this->sanitizer->htmlSpecialChars($this->xoops_url)."'._INSTALL_L56.''.$this->sanitizer->htmlSpecialChars($this->xoops_url).'
- - - - - - - - - - "; + + + + + + + + + + '; return $ret; } Index: xoops2jp/html/install/class/simplewidzard.php diff -u /dev/null xoops2jp/html/install/class/simplewidzard.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:39 2006 +++ xoops2jp/html/install/class/simplewidzard.php Tue Mar 7 22:11:39 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['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 Tue Mar 7 22:11:39 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 7 Mar 2006 22:11:39 +0900 Subject: [xoops-cvslog 2374] CVS update: xoops2jp/html/install/custom Message-ID: <20060307131139.DC2572AC037@users.sourceforge.jp> Index: xoops2jp/html/install/custom/custom.inc.dist.php diff -u /dev/null xoops2jp/html/install/custom/custom.inc.dist.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:39 2006 +++ xoops2jp/html/install/custom/custom.inc.dist.php Tue Mar 7 22:11:39 2006 @@ -0,0 +1,3 @@ +insertAfter('start', 'envcheck', 'Enviromment Check'); +?> Index: xoops2jp/html/install/custom/install_envcheck.inc.php diff -u /dev/null xoops2jp/html/install/custom/install_envcheck.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:39 2006 +++ xoops2jp/html/install/custom/install_envcheck.inc.php Tue Mar 7 22:11:39 2006 @@ -0,0 +1,4 @@ +setTemplatePath(dirname(__FILE__)); + $widzard->render('install_envcheck.tpl.php'); +?> \ No newline at end of file Index: xoops2jp/html/install/custom/install_envcheck.tpl.php diff -u /dev/null xoops2jp/html/install/custom/install_envcheck.tpl.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:39 2006 +++ xoops2jp/html/install/custom/install_envcheck.tpl.php Tue Mar 7 22:11:39 2006 @@ -0,0 +1 @@ +
Test
From nobunobu @ users.sourceforge.jp Tue Mar 7 22:11:39 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 7 Mar 2006 22:11:39 +0900 Subject: [xoops-cvslog 2375] CVS update: xoops2jp/html/install Message-ID: <20060307131139.B08272AC04C@users.sourceforge.jp> Index: xoops2jp/html/install/index.php diff -u xoops2jp/html/install/index.php:1.2.8.2 xoops2jp/html/install/index.php:1.2.8.3 --- xoops2jp/html/install/index.php:1.2.8.2 Sat Feb 4 03:20:59 2006 +++ xoops2jp/html/install/index.php Tue Mar 7 22:11:39 2006 @@ -1,5 +1,5 @@ 'english', 'ja' => 'japanese', 'fr' => 'french', 'de' => 'german', 'nl' => 'dutch', 'es' => 'spanish', 'tw' => 'tchinese', 'cn' => 'schinese', 'ro' => 'romanian'); - foreach ($accept_langs as $al) { - $al = strtolower($al); - $al_len = strlen($al); - if ($al_len > 2) { - if (preg_match("/([a-z]{2});q=[0-9.]+$/", $al, $al_match)) { - $al = $al_match[1]; - } else { - continue; - } - } - if (isset($language_array[$al])) { - $language = $language_array[$al]; - break; - } - } - } - } -} +include_once './include/functions.php'; +$language = getLanguage(); +include_once './language/'.$language.'/install.php'; +define('_OKIMG', 'OK '); +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); -if ( file_exists("./language/".$language."/install.php") ) { - include_once "./language/".$language."/install.php"; -} elseif ( file_exists("./language/english/install.php") ) { - include_once "./language/english/install.php"; - $language = 'english'; -} else { - echo 'no language file.'; - exit(); +if (file_exists('./custom/custom.inc.php')) { + include './custom/custom.inc.php'; } -setcookie("install_lang", $language); - -//include './include/viewerrors.php'; -//include './include/functions.php'; - -define('_OKIMG'," "); -define('_NGIMG'," "); - -$b_back = ''; -$b_reload = ''; -$b_next = ''; // options for mainfile.php $xoopsOption['nocommon'] = true; define('XOOPS_INSTALL', 1); -if(!empty($_POST['op'])) +if(!empty($_POST['op'])) { $op = $_POST['op']; -elseif(!empty($_GET['op'])) +} elseif(!empty($_GET['op'])) { $op = $_GET['op']; -else - $op = ''; - -///// main - -switch ($op) { - -default: -case "langselect": - $title = _INSTALL_L0; - if (!defined('_INSTALL_L128')) { - define('_INSTALL_L128', 'Choose language to be used for the installation process'); - } - $content = "

"._INSTALL_L128."

" - .""; - - $b_next = array('start', _INSTALL_L80 ); - include 'install_tpl.php'; - break; - -case "start": - $title = _INSTALL_L0; - $content = "
\n"; - include './language/'.$language.'/welcome.php'; - $content .= "
\n"; - $b_next = array('modcheck', _INSTALL_L81 ); - include 'install_tpl.php'; - break; - -case "modcheck": - $writeok = array("uploads/", "cache/", "templates_c/", "mainfile.php"); - $title = _INSTALL_L82; - $content = "
\n"; - $error = false; - foreach ($writeok as $wok) { - if (!is_dir("../".$wok)) { - if ( file_exists("../".$wok) ) { - @chmod("../".$wok, 0666); - if (! is_writeable("../".$wok)) { - $content .= _NGIMG.sprintf(_INSTALL_L83, $wok)."
"; - $error = true; - }else{ - $content .= _OKIMG.sprintf(_INSTALL_L84, $wok)."
"; - } - } - } else { - @chmod("../".$wok, 0777); - if (! is_writeable("../".$wok)) { - $content .= _NGIMG.sprintf(_INSTALL_L85, $wok)."
"; - $error = true; - }else{ - $content .= _OKIMG.sprintf(_INSTALL_L86, $wok)."
"; - } - } - } - $content .= "
\n"; - - if(! $error) { - $content .= "

"._INSTALL_L87."

"; - $b_next = array('dbform', _INSTALL_L89 ); - }else{ - $content .= "

"._INSTALL_L46."

"; - $b_reload = true; - } - - include 'install_tpl.php'; - break; - -case "dbform": - include_once '../mainfile.php'; - include_once 'class/settingmanager.php'; - $sm = new setting_manager(); - $sm->readConstant(); - $content = $sm->editform(); - $title = _INSTALL_L90; - $b_next = array('dbconfirm',_INSTALL_L91); - include 'install_tpl.php'; - break; - -case "dbconfirm": - include_once 'class/settingmanager.php'; - $sm = new setting_manager(true); - - $content = $sm->checkData(); - if (!empty($content)) { - $content .= $sm->editform(); - $b_next = array('dbconfirm',_INSTALL_L91); - include 'install_tpl.php'; - break; - } - - $title = _INSTALL_L53; - $content = $sm->confirmForm(); - $b_next = array('dbsave',_INSTALL_L92 ); - $b_back = array('', _INSTALL_L93 ); - include 'install_tpl.php'; - break; - -case "dbsave": - include_once "./class/mainfilemanager.php"; - $title = _INSTALL_L88; - $mm = new mainfile_manager("../mainfile.php"); - - $ret = $mm->copyDistFile(); - if(! $ret){ - $content = _INSTALL_L60; - include 'install_tpl.php'; - 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){ - $content = _INSTALL_L60; - include 'install_tpl.php'; - exit(); - } - - $content = $mm->report(); - $content .= "

"._INSTALL_L62."

\n"; - $b_next = array('mainfile', _INSTALL_L94 ); - include 'install_tpl.php'; - break; - -case "mainfile": - // checking XOOPS_ROOT_PATH and XOOPS_URL - include_once "../mainfile.php"; - $title = _INSTALL_L94; - $content = "
\n"; - - $detected = str_replace("\\", "/", getcwd()); // " - $detected = str_replace("/install", "", $detected); - if ( substr($detected, -1) == "/" ) { - $detected = substr($detected, 0, -1); - } - - if (empty($detected)){ - $content .= _NGIMG._INSTALL_L95.'
'; - } - elseif ( XOOPS_ROOT_PATH != $detected ) { - $content .= _NGIMG.sprintf(_INSTALL_L96,$detected). '
'; - }else { - $content .= _OKIMG._INSTALL_L97.'
'; - } - - if(!is_dir(XOOPS_ROOT_PATH)){ - $content .= _NGIMG._INSTALL_L99.'
'; - } - - if(preg_match('/^http[s]?:\/\/(.*)[^\/]+$/i',XOOPS_URL)){ - $content .= _OKIMG._INSTALL_L100.'
'; - }else{ - $content .= _NGIMG._INSTALL_L101.'
'; - } - - $content .= "
\n"; - - $content .= "
\n"; - $content .= _INSTALL_L11."".XOOPS_ROOT_PATH."
"; - $content .= _INSTALL_L12."".XOOPS_URL."
"; - $content .= "
\n"; - $content .= "

"._INSTALL_L13."

\n"; - - $b_next = array('initial', _INSTALL_L102 ); - $b_back = array('start', _INSTALL_L103 ); - $b_reload = true; - - include 'install_tpl.php'; - //mainfile_settings(); - break; - -case "initial": - // confirm database setting - include_once "../mainfile.php"; - $content = "\n"; - $content .= "
"; - $content .= "\n"; - $content .= "\n"; - $content .= "\n"; - $content .= "\n"; - $content .= "\n"; - $content .= "
"._INSTALL_L27."  ".XOOPS_DB_HOST."
"._INSTALL_L28."  ".XOOPS_DB_USER."
"._INSTALL_L29."  ".XOOPS_DB_NAME."
"._INSTALL_L30."  ".XOOPS_DB_PREFIX."

\n"; - $content .= "
"; - $content .= _INSTALL_L13."

\n"; - $content .= "
\n"; - $b_next = array('checkDB', _INSTALL_L104); - $b_back = array('start', _INSTALL_L103); - $b_reload = true; - $title = _INSTALL_L102; - include 'install_tpl.php'; - break; - -case "checkDB": - include_once "../mainfile.php"; - include_once './class/dbmanager.php'; - $dbm = new db_manager; - $title = _INSTALL_L104; - $content = "
\n"; - - if (! $dbm->isConnectable()) { - $content .= _NGIMG._INSTALL_L106."
"; - $content .= "

"._INSTALL_L107; - $content .= "
\n"; - $b_back = array('start', _INSTALL_L103); - $b_reload = true; - }else{ - $content .= _OKIMG._INSTALL_L108."
"; - if (! $dbm->dbExists()) { - $content .= _NGIMG.sprintf(_INSTALL_L109, XOOPS_DB_NAME)."
"; - $content .= "
\n"; - - $content .= "

"._INSTALL_L21."
" - ."".XOOPS_DB_NAME."

" - ."

"._INSTALL_L22."

"; - - $b_next = array('createDB', _INSTALL_L105); - $b_back = array('start', _INSTALL_L103); - $b_reload = true; - }else{ - if (!$dbm->tableExists('users')) { - $content .= _OKIMG.sprintf(_INSTALL_L110, XOOPS_DB_NAME)."
"; - $content .= "\n"; - $content .= "

"._INSTALL_L111."

"; - $b_next = array('createTables', _INSTALL_L40); - } else { - $content .= _OKIMG.sprintf(_INSTALL_L110, XOOPS_DB_NAME)."
"; - if (!$dbm->tableExists('config')) { - $content .= "\n"; - $content .= "

"._INSTALL_L130."

"; - $b_next = array('updateTables', _INSTALL_L14); - } else { - $content .= _NGIMG._INSTALL_L131."
"; - $content .= "\n"; - } - } - } - } - - include 'install_tpl.php'; - break; - -case "createDB": - include_once "../mainfile.php"; - include_once './class/dbmanager.php'; - $dbm = new db_manager; - - if(! $dbm->createDB()){ - $content = "

"._INSTALL_L31."

"; - $b_next = array('checkDB', _INSTALL_L104); - $b_back = array('start', _INSTALL_L103); - }else{ - $content = "

".sprintf(_INSTALL_L43, XOOPS_DB_NAME)."

"; - $b_next = array('checkDB', _INSTALL_L104); - } - include 'install_tpl.php'; - break; - -case "createTables": - include_once "../mainfile.php"; - include_once './class/dbmanager.php'; - $dbm = new db_manager; - - //$content = " + <{foreach item=obj from=$objects}> @@ -45,6 +46,7 @@ + - + From minahito @ users.sourceforge.jp Wed Mar 29 23:40:05 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 29 Mar 2006 23:40:05 +0900 Subject: [xoops-cvslog 2575] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20060329144005.A86A82AC01D@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.19 xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.20 --- xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.19 Wed Mar 29 00:15:22 2006 +++ xoops2jp/html/modules/base/language/japanese/admin.php Wed Mar 29 23:40:05 2006 @@ -25,6 +25,7 @@ define('_AD_BASE_LANG_COMMENT_DELETE', "コメント削除"); define('_AD_BASE_LANG_COMMENT_EDIT', "コメント編集"); define('_AD_BASE_LANG_COMMENT_NEW', "コメント新規追加"); +define('_AD_BASE_LANG_COMMENT_VIEW', "コメント閲覧"); define('_AD_BASE_LANG_CONTROL', "コントロール"); define('_AD_BASE_LANG_CREATE_NEW', "新規作成"); define('_AD_BASE_LANG_DISPLAY', "表示"); @@ -40,6 +41,7 @@ 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_RES_FOR_COMMENT', "このコメントへのレスポンス"); define('_AD_BASE_LANG_SMILE_URL', "画像"); define('_AD_BASE_LANG_SMILES_DELETE', "顔アイコン削除"); define('_AD_BASE_LANG_SMILES_EDIT', "顔アイコン編集"); From minahito @ users.sourceforge.jp Wed Mar 29 23:40:05 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 29 Mar 2006 23:40:05 +0900 Subject: [xoops-cvslog 2576] CVS update: xoops2jp/html/modules/base/language/english Message-ID: <20060329144005.D311B2AC079@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.15 xoops2jp/html/modules/base/language/english/admin.php:1.1.2.16 --- xoops2jp/html/modules/base/language/english/admin.php:1.1.2.15 Wed Mar 29 00:15:23 2006 +++ xoops2jp/html/modules/base/language/english/admin.php Wed Mar 29 23:40:05 2006 @@ -25,6 +25,7 @@ define('_AD_BASE_LANG_COMMENT_DELETE', "Delete a comment"); 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_CONTROL', "Control"); define('_AD_BASE_LANG_CREATE_NEW', "Add a new"); define('_AD_BASE_LANG_DISPLAY', "Display"); @@ -40,6 +41,7 @@ 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_RES_FOR_COMMENT', "Responses for this comment"); define('_AD_BASE_LANG_SMILE_URL', "Images"); define('_AD_BASE_LANG_SMILES_DELETE', "Delete smiley"); define('_AD_BASE_LANG_SMILES_EDIT', "Edit smiley"); From tom_g3x @ users.sourceforge.jp Wed Mar 29 23:48:38 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Wed, 29 Mar 2006 23:48:38 +0900 Subject: [xoops-cvslog 2577] CVS update: xoops2jp/html/modules/base/admin/theme Message-ID: <20060329144838.8C83D2AC0A4@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/theme/style.css diff -u xoops2jp/html/modules/base/admin/theme/style.css:1.1.2.3 xoops2jp/html/modules/base/admin/theme/style.css:1.1.2.4 --- xoops2jp/html/modules/base/admin/theme/style.css:1.1.2.3 Fri Feb 3 02:24:07 2006 +++ xoops2jp/html/modules/base/admin/theme/style.css Wed Mar 29 23:48:38 2006 @@ -91,7 +91,7 @@ vertical-align: middle; } #header2 input { - background: #778899; +/* background: #778899; */ } #sidemenu { background: #e6e6e6; From tom_g3x @ users.sourceforge.jp Wed Mar 29 23:49:21 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Wed, 29 Mar 2006 23:49:21 +0900 Subject: [xoops-cvslog 2578] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20060329144921.B68CB2AC026@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/comment_edit.html diff -u xoops2jp/html/modules/base/admin/templates/comment_edit.html:1.1.2.6 xoops2jp/html/modules/base/admin/templates/comment_edit.html:1.1.2.7 --- xoops2jp/html/modules/base/admin/templates/comment_edit.html:1.1.2.6 Tue Feb 21 20:50:18 2006 +++ xoops2jp/html/modules/base/admin/templates/comment_edit.html Wed Mar 29 23:49:21 2006 @@ -29,21 +29,24 @@ <{xoops_input type=hidden name=com_id value=$actionForm->get('com_id')}>
\n"; - $tables = array(); - $result = $dbm->queryFromFile('./sql/'.XOOPS_DB_TYPE.'.structure.sql'); - $content = $dbm->report(); - if(! $result ){ - //$deleted = $dbm->deleteTables($tables); - $content .= "

"._INSTALL_L114."

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

"._INSTALL_L115."

\n"; - $b_next = array('siteInit', _INSTALL_L112); - } - - include 'install_tpl.php'; - break; - -case 'updateTables': - include_once "../mainfile.php"; - include_once './class/dbmanager.php'; - $db = new db_manager; - $sql = 'SELECT * FROM '.$db->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'; - break; - -case 'updateTables_go': - include_once "../mainfile.php"; - $error = false; - $g_webmasters = isset($g_webmasters) ? intval($g_webmasters) : 0; - $g_users = isset($g_users) ? intval($g_users) : 0; - $g_anonymous = isset($g_anonymous) ? intval($g_anonymous) : 0; - if (empty($g_webmasters) || empty($g_users) || empty($g_anonymous)) { - $error = true; - } else { - include_once "./class/mainfilemanager.php"; - $title = _INSTALL_L88; - $mm = new mainfile_manager("../mainfile.php"); - $mm->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'; - break; - -case 'updateConfig': - $b_next = array('updateConfig_go', _INSTALL_L144); - $content = "

"._INSTALL_L143."

\n"; - include 'install_tpl.php'; - break; - -case 'updateConfig_go': - include_once "../mainfile.php"; - - $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(); - } - include_once './class/dbmanager.php'; - $dbm = new db_manager; - - // default settings - $xoopsConfig['sitename'] = 'XOOPS Site'; - $xoopsConfig['slogan'] = 'Just use it!'; - $xoopsConfig['adminmail'] = ''; - $xoopsConfig['language'] = 'english'; - $xoopsConfig['anonymous'] = 'Anonymous'; - $xoopsConfig['minpass'] = 5; - $xoopsConfig['anonpost'] = 0; - $xoopsConfig['new_user_notify'] = 0; - $xoopsConfig['new_user_notify_group'] = 1; - $xoopsConfig['self_delete'] = 0; - $xoopsConfig['gzip_compression'] = 0; - $xoopsConfig['uname_test_level'] = 0; - $xoopsConfig['usercookie'] = "xoops_user"; - $xoopsConfig['sessioncookie'] = "xoops_session"; - $xoopsConfig['sessionexpire'] = 4500; - $xoopsConfig['server_TZ'] = 0; - $xoopsConfig['default_TZ'] = 0; - $xoopsConfig['banners'] = 1; - $xoopsConfig['com_mode'] = "nest"; - $xoopsConfig['com_order'] = 1; - $xoopsConfig['my_ip'] = "127.0.0.1"; - $xoopsConfig['avatar_allow_upload'] = 0; - $xoopsConfig['avatar_width'] = 120; - $xoopsConfig['avatar_height'] = 120; - $xoopsConfig['avatar_maxsize'] = 15000; - - // override deafault with 1.3.x settings if any - if (file_exists('../modules/system/cache/config.php')) { - include_once('../modules/system/cache/config.php'); - } - - $dbm->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'; - break; - -case 'updateModules': - $b_next = array('updateModules_go', _INSTALL_L137); - $content = "

"._INSTALL_L141."

\n"; - include 'install_tpl.php'; - break; - -case 'updateModules_go': - unset($xoopsOption['nocommon']); - include_once "../mainfile.php"; -?> - - - - XOOPS Custom Installation - - - - - -
- - - - - - - - - - - - - - - - -
 
 
 
- - - - - - - - - - - - - - - - -
 

-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); - } -?> -
 
    >>  
 
- - - - - - - -
 
-
- - -"._INSTALL_L149."

\n"; - $b_next = array('updateComments_go', _INSTALL_L138); - include 'install_tpl.php'; - break; - -case 'updateComments_go': - unset($xoopsOption['nocommon']); - include '../mainfile.php'; - include '../class/xoopscomments.php'; - include '../include/comment_constants.php'; - $module_handler =& xoops_gethandler('module'); - $old_commentd_mods = array('news' => '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'; - break; - -case 'updateSmilies': - $content = '

'._INSTALL_L150.'

'; - $b_next = array('updateSmilies_go', _INSTALL_L140); - include 'install_tpl.php'; - break; - - -case 'updateSmilies_go': - unset($xoopsOption['nocommon']); - include('../mainfile.php'); - $result = $xoopsDB->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'; - break; - -case 'updateAvatars': - $content = '

'._INSTALL_L151.'

'; - $b_next = array('updateAvatars_go', _INSTALL_L139); - include 'install_tpl.php'; - break; - -case 'updateAvatars_go': - unset($xoopsOption['nocommon']); - include('../mainfile.php'); - $content = ''; - $title = _INSTALL_L156; - $avatars = getImageFileList(XOOPS_ROOT_PATH.'/images/avatar/users/'); - $xoopsDB->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'; - break; - - -case "siteInit": - include_once "../mainfile.php"; - - $content = "\n"; - $content .= "\n"; - $content .= "\n"; - $content .= "\n"; - $content .= "\n"; - $content .= "\n"; - $content .= "
"._INSTALL_L36."
"._INSTALL_L37."
"._INSTALL_L38."
"._INSTALL_L39."
"._INSTALL_L74."
\n"; - $b_next = array('insertData', _INSTALL_L116); - - include 'install_tpl.php'; - break; - -case "insertData": - $adminname = $myts->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)) { - $content = "

"._INSTALL_L73."

\n"; - $b_back = array('', _INSTALL_L112 ); - include 'install_tpl.php'; - exit(); - } - if ( !isset($adminname) || !isset($adminpass) || !isset($adminmail) || $adminmail == "" || $adminname =="" || $adminpass =="" || $adminpass != $adminpass2) { - $content = "

"._INSTALL_L41."

\n"; - $b_back = array('', _INSTALL_L112 ); - include 'install_tpl.php'; - exit(); - } - - include_once "../mainfile.php"; - //include_once './include/createtables2.php'; - include_once './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); - - $content = $dbm->report(); - $content .= $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(); - $content .= $mm->report(); - - $b_next = array('finish', _INSTALL_L117); - $title = _INSTALL_L116; - setcookie('xoops_session', '', time() - 3600); - include 'install_tpl.php'; - - break; - -case 'finish': - - $title = _INSTALL_L32; - $content = "
\n"; - include './language/'.$language.'/finish.php'; - $content .= "
\n"; - include 'install_tpl.php'; - break; -} - -/* - * gets list of name of directories inside a directory - */ -function getDirList($dirname) -{ - $dirlist = array(); - if (is_dir($dirname) && $handle = opendir($dirname)) { - while (false !== ($file = readdir($handle))) { - if ( !preg_match("/^[.]{1,2}$/",$file) ) { - if (strtolower($file) != 'cvs' && is_dir($dirname.$file) ) { - $dirlist[$file]=$file; - } - } - } - closedir($handle); - asort($dirlist); - reset($dirlist); - } - return $dirlist; -} - -/* - * gets list of name of files within a directory - */ -function getImageFileList($dirname) -{ - $filelist = array(); - if (is_dir($dirname) && $handle = opendir($dirname)) { - while (false !== ($file = readdir($handle))) { - if (!preg_match("/^[.]{1,2}$/",$file) && preg_match("/[.gif|.jpg|.png]$/i",$file) ) { - $filelist[$file]=$file; - } - } - closedir($handle); - asort($filelist); - reset($filelist); - } - return $filelist; -} - -function &xoops_module_gettemplate($dirname, $template, $block=false) -{ - if ($block) { - $path = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/templates/blocks/'.$template; - } else { - $path = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/templates/'.$template; - } - if (!file_exists($path)) { - return false; - } else { - $lines = file($path); - } - if (!$lines) { - return false; - } - $ret = ''; - $count = count($lines); - for ($i = 0; $i < $count; $i++) { - $ret .= str_replace("\n", "\r\n", str_replace("\r\n", "\n", $lines[$i])); - } - return $ret; +} else { + $op = 'langselect'; } +$widzard->setOp($op); -function check_language($language){ - if ( file_exists('../modules/system/language/'.$language.'/modinfo.php') ) { - return $language; - } else { - return 'english'; - } +$op=basename($op); +$fname = './widzards/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(); } ?> \ No newline at end of file Index: xoops2jp/html/install/makedata.php diff -u xoops2jp/html/install/makedata.php:1.2.8.10 xoops2jp/html/install/makedata.php:1.5 --- xoops2jp/html/install/makedata.php:1.2.8.10 Sat Feb 4 18:46:28 2006 +++ xoops2jp/html/install/makedata.php Mon Oct 24 20:44:16 2005 @@ -1,5 +1,5 @@ insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, date) VALUES (1, 1, 0, 1, 0, '".XOOPS_URL."/images/banners/xoops_banner.gif', 'http://xoopscube.jp/', 1008813250)"); - $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, date) VALUES (2, 1, 0, 1, 0, '".XOOPS_URL."/images/banners/xoops_banner_2.gif', 'http://xoopscube.jp/', 1008813250)"); - $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, date) VALUES (3, 1, 0, 1, 0, '".XOOPS_URL."/images/banners/banner.swf', 'http://xoopscube.jp/', 1008813250)"); + $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, date) VALUES (1, 1, 0, 1, 0, '".XOOPS_URL."/images/banners/xoops_banner.gif', 'http://jp.xoops.org/', 1008813250)"); + $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, date) VALUES (2, 1, 0, 1, 0, '".XOOPS_URL."/images/banners/xoops_banner_2.gif', 'http://jp.xoops.org/', 1008813250)"); + $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, date) VALUES (3, 1, 0, 1, 0, '".XOOPS_URL."/images/banners/banner.swf', 'http://jp.xoops.org/', 1008813250)"); // default theme $time = time(); - $dbm->insert('tplset', " VALUES (1, 'default', 'XOOPS Cube Default Template Set', '', ".$time.")"); + $dbm->insert('tplset', " VALUES (1, 'default', 'XOOPS Default Template Set', '', ".$time.")"); + + // system modules + + if ( file_exists('../modules/system/language/'.$language.'/modinfo.php') ) { + include '../modules/system/language/'.$language.'/modinfo.php'; + } else { + include '../modules/system/language/english/modinfo.php'; + $language = 'english'; + } + + $modversion = array(); + include_once '../modules/system/xoops_version.php'; + $time = time(); + + // RMV-NOTIFY (updated for extra column in table) + $dbm->insert("modules", " VALUES (1, '"._MI_SYSTEM_NAME."', 100, ".$time.", 0, 1, 'system', 0, 1, 0, 0, 0, 0)"); + + foreach ($modversion['templates'] as $tplfile) { + if ($fp = fopen('../modules/system/templates/'.$tplfile['file'], 'r')) { + $newtplid = $dbm->insert('tplfile', " VALUES (0, 1, 'system', 'default', '".addslashes($tplfile['file'])."', '".addslashes($tplfile['description'])."', ".$time.", ".$time.", 'module')"); + //$newtplid = $xoopsDB->getInsertId(); + $tplsource = fread($fp, filesize('../modules/system/templates/'.$tplfile['file'])); + fclose($fp); + $dbm->insert('tplsource', " (tpl_id, tpl_source) VALUES (".$newtplid.", '".addslashes($tplsource)."')"); + } + } + + foreach ($modversion['blocks'] as $func_num => $newblock) { + if ($fp = fopen('../modules/system/templates/blocks/'.$newblock['template'], 'r')) { + if (in_array($newblock['template'], array('system_block_user.html', 'system_block_login.html', 'system_block_mainmenu.html'))) { + $visible = 1; + } else { + $visible = 0; + } + $options = !isset($newblock['options']) ? '' : trim($newblock['options']); + $edit_func = !isset($newblock['edit_func']) ? '' : trim($newblock['edit_func']); + $newbid = $dbm->insert('newblocks', " VALUES (0, 1, ".$func_num.", '".addslashes($options)."', '".addslashes($newblock['name'])."', '".addslashes($newblock['name'])."', '', 0, 0, ".$visible.", 'S', 'H', 1, 'system', '".addslashes($newblock['file'])."', '".addslashes($newblock['show_func'])."', '".addslashes($edit_func)."', '".addslashes($newblock['template'])."', 0, ".$time.")"); + //$newbid = $xoopsDB->getInsertId(); + $newtplid = $dbm->insert('tplfile', " VALUES (0, ".$newbid.", 'system', 'default', '".addslashes($newblock['template'])."', '".addslashes($newblock['description'])."', ".$time.", ".$time.", 'block')"); + //$newtplid = $xoopsDB->getInsertId(); + $tplsource = fread($fp, filesize('../modules/system/templates/blocks/'.$newblock['template'])); + fclose($fp); + $dbm->insert('tplsource', " (tpl_id, tpl_source) VALUES (".$newtplid.", '".addslashes($tplsource)."')"); + $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", ".$newbid.", 1, 'block_read')"); + //$dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", ".$newbid.", 'xoops_blockadmiin')"); + $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_USERS'].", ".$newbid.", 1, 'block_read')"); + $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ANONYMOUS'].", ".$newbid.", 1, 'block_read')"); + } + } + + // data for table 'users' + + $temp = md5($adminpass); + $regdate = time(); + //$dbadminname= addslashes($adminname); + // RMV-NOTIFY (updated for extra columns in user table) + $dbm->insert('users', " VALUES (1,'','".addslashes($adminname)."','".addslashes($adminmail)."','".XOOPS_URL."/','blank.gif','".$regdate."','','','',1,'','','','','".$temp."',0,0,7,5,'default','0.0',".time().",'thread',0,1,0,'','','',0)"); + + + // data for table 'block_module_link' + + $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)"); + } + } // data for table 'config' @@ -99,12 +170,12 @@ $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', '0', '_MD_AM_SERVERTZDSC', 'timezone', 'float', 8)"); $dbm->insert('config', " VALUES (6, 0, 1, 'default_TZ', '_MD_AM_DEFAULTTZ', '0', '_MD_AM_DEFAULTTZDSC', 'timezone', 'float', 10)"); - $dbm->insert('config', " VALUES (7, 0, 1, 'theme_set', '_MD_AM_DTHEME', 'cube_default', '_MD_AM_DTHEMEDSC', 'theme', 'other', 12)"); + $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(_INSTALL_ANON)."', '_MD_AM_ANONNAMEDSC', 'textbox', 'text', 15)"); $dbm->insert('config', " VALUES (9, 0, 1, 'gzip_compression', '_MD_AM_USEGZIP', '0', '_MD_AM_USEGZIPDSC', 'yesno', 'int', 16)"); $dbm->insert('config', " VALUES (10, 0, 1, 'usercookie', '_MD_AM_USERCOOKIE', 'xoops_user', '_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', '0', '_MD_AM_BANNERSDSC', 'yesno', 'int', 26)"); + $dbm->insert('config', " VALUES (12, 0, 1, 'banners', '_MD_AM_BANNERS', '1', '_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', '127.0.0.1', '_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)"); @@ -125,11 +196,11 @@ $dbm->insert('config', " VALUES (32, 0, 1, 'com_mode', '_MD_AM_COMMODE', 'nest', '_MD_AM_COMMODEDSC', 'select', 'text', 34)"); $dbm->insert('config', " VALUES (33, 0, 1, 'com_order', '_MD_AM_COMORDER', '0', '_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('xoopscube.org$', 'xoopscube.jp$')))."', '_MD_AM_BADEMAILSDSC', 'textarea', 'array', 26)"); + $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', '', '_MD_AM_METAKEYDSC', 'textarea', 'text', 0)"); - $dbm->insert('config', " VALUES (39, 0, 3, 'footer', '_MD_AM_FOOTER', 'Powered by XOOPS Cube 2.1 Alpha 1 © 2001-2006 The XOOPS Cube Project', '_MD_AM_FOOTERDSC', 'textarea', 'text', 20)"); + $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)"); @@ -139,9 +210,9 @@ $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', '', '_MD_AM_METAAUTHORDSC', 'textbox', 'text', 6)"); - $dbm->insert('config', " VALUES (50, 0, 3, 'meta_copyright', '_MD_AM_METACOPYR', '', '_MD_AM_METACOPYRDSC', 'textbox', 'text', 8)"); - $dbm->insert('config', " VALUES (51, 0, 3, 'meta_description', '_MD_AM_METADESC', '', '_MD_AM_METADESCDSC', 'textarea', 'text', 1)"); + $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)"); @@ -167,177 +238,10 @@ // RMV-NOTIFY... Need to specify which user is sender of notification PM $dbm->insert('config', " VALUES (73,0,6,'fromuid','_MD_AM_MAILFROMUID','1','_MD_AM_MAILFROMUIDDESC','user','int',3)"); - // install modules - installModule($dbm, 1, "system", _MI_SYSTEM_NAME, $language, $gruops); - - installModule($dbm, 2, "base", _MI_BASE_NAME, $language, $gruops, true); - $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", 2, 1, 'module_admin')"); - - installModule($dbm, 3, "legacyRender", _MI_LEGACYRENDER_NAME, $language, $gruops, true); - $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", 3, 1, 'module_admin')"); - - installModule($dbm, 4, "user", _MI_USER_NAME, $language, $gruops, true); - $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", 4, 1, 'module_admin')"); - $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", 4, 1, 'module_read')"); - $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_USERS'].", 4, 1, 'module_read')"); - $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ANONYMOUS'].", 4, 1, 'module_read')"); - - installModule($dbm, 5, "pm", _MI_PM_NAME, $language, $gruops, true); - $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", 5, 1, 'module_admin')"); - $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", 5, 1, 'module_read')"); - $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_USERS'].", 5, 1, 'module_read')"); - - installModule($dbm, 6, "stdCache", _MI_STDCACHE_NAME, $language, $gruops, true); - $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", 6, 1, 'module_admin')"); - - // data for table 'users' - - $temp = md5($adminpass); - $regdate = time(); - //$dbadminname= addslashes($adminname); - // RMV-NOTIFY (updated for extra columns in user table) - $dbm->insert('users', " VALUES (1,'','".addslashes($adminname)."','".addslashes($adminmail)."','".XOOPS_URL."/','blank.gif','".$regdate."','','','',1,'','','','','".$temp."',0,0,7,5,'default','0.0',".time().",'thread',0,1,0,'','','',0)"); - - - // data for table 'block_module_link' - - $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)"); - } - } return $gruops; } -/** - * - * Install module by module's name, language and specified mid. - * - * @param $dbm object Database manager instance - * @param $mid int module's ID - * @param $module string module's name - * @param $language string language - * @param $grops array hash map - */ -function installModule(&$dbm, $mid, $module, $module_name, $language = 'english', &$groups) { - if ( file_exists("../modules/${module}/language/${language}/modinfo.php") ) { - include "../modules/${module}/language/${language}/modinfo.php"; - } else { - include "../modules/${module}/language/english/modinfo.php"; - $language = 'english'; - } - $modversion = array(); - require_once "../modules/${module}/xoops_version.php"; - $time = time(); - - // RMV-NOTIFY (updated for extra column in table) - // - // TODO We should set hasconfig and more option values here. - // - $hasconfig = isset($modversion['config']) ? 1 : 0; - $hasmain = 0; - if (isset($modversion['hasMain']) && $modversion['hasMain'] == 1) { - $hasmain = 1; - } - $dbm->insert("modules", " VALUES (${mid}, '" . constant($module_name) . "', 100, ".$time.", 0, 1, '${module}', ${hasmain}, 1, 0, ${hasconfig}, 0, 0)"); - - // - // Database - // TODO Dependence on mysql, Now. - // - if (isset($modversion['sqlfile']['mysql'])) { - $dbm->queryFromFile("../modules/${module}/" . $modversion['sqlfile']['mysql']); - } - - if (is_array($modversion['templates']) && count($modversion['templates']) > 0) { - foreach ($modversion['templates'] as $tplfile) { - if ($fp = fopen("../modules/${module}/templates/".$tplfile['file'], 'r')) { - $newtplid = $dbm->insert('tplfile', " VALUES (0, ${mid}, '${module}', 'default', '".addslashes($tplfile['file'])."', '".addslashes($tplfile['description'])."', ".$time.", ".$time.", 'module')"); - //$newtplid = $xoopsDB->getInsertId(); - if (filesize("../modules/${module}/templates/".$tplfile['file']) > 0) { - $tplsource = fread($fp, filesize("../modules/${module}/templates/".$tplfile['file'])); - } - else { - $tplsource = ""; - } - fclose($fp); - $dbm->insert('tplsource', " (tpl_id, tpl_source) VALUES (".$newtplid.", '".addslashes($tplsource)."')"); - } - } - } - - if (is_array($modversion['blocks']) && count($modversion['blocks']) > 0) { - foreach ($modversion['blocks'] as $func_num => $newblock) { - if ($fp = fopen("../modules/${module}/templates/blocks/".$newblock['template'], 'r')) { - // - // The following checking is dependence on the structure of system module. - // - if (in_array($newblock['template'], array('system_block_user.html', 'system_block_login.html', 'system_block_mainmenu.html'))) { - $visible = 1; - } else { - $visible = 0; - } - $options = !isset($newblock['options']) ? '' : trim($newblock['options']); - $edit_func = !isset($newblock['edit_func']) ? '' : trim($newblock['edit_func']); - $newbid = $dbm->insert('newblocks', " VALUES (0, ${mid}, ".$func_num.", '".addslashes($options)."', '".addslashes($newblock['name'])."', '".addslashes($newblock['name'])."', '', 0, 0, ".$visible.", 'S', 'H', 1, '${module}', '".addslashes($newblock['file'])."', '".addslashes($newblock['show_func'])."', '".addslashes($edit_func)."', '".addslashes($newblock['template'])."', 0, ".$time.")"); - //$newbid = $xoopsDB->getInsertId(); - $newtplid = $dbm->insert('tplfile', " VALUES (0, ".$newbid.", '${module}', 'default', '".addslashes($newblock['template'])."', '".addslashes($newblock['description'])."', ".$time.", ".$time.", 'block')"); - //$newtplid = $xoopsDB->getInsertId(); - if (filesize("../modules/${module}/templates/blocks/".$newblock['template']) > 0) { - $tplsource = fread($fp, filesize("../modules/${module}/templates/blocks/".$newblock['template'])); - } - else { - $tplsource = ""; - } - fclose($fp); - $dbm->insert('tplsource', " (tpl_id, tpl_source) VALUES (".$newtplid.", '".addslashes($tplsource)."')"); - - $dbm->insert("group_permission", " VALUES (0, ".$groups['XOOPS_GROUP_ADMIN'].", ".$newbid.", 1, 'block_read')"); - //$dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", ".$newbid.", 'xoops_blockadmiin')"); - $dbm->insert("group_permission", " VALUES (0, ".$groups['XOOPS_GROUP_USERS'].", ".$newbid.", 1, 'block_read')"); - $dbm->insert("group_permission", " VALUES (0, ".$groups['XOOPS_GROUP_ANONYMOUS'].", ".$newbid.", 1, 'block_read')"); - } - } - } - - // - // Install preferences - // - if (isset($modversion['config'])) { - $count = 0; - foreach ($modversion['config'] as $configInfo) { - // - // TODO We have to sanitize. - // - $name = $configInfo['name']; - $title = $configInfo['title']; - $desc = $configInfo['description']; - $formtype = $configInfo['formtype']; - $valuetype = $configInfo['valuetype']; - $default = $configInfo['default']; - - if ($valuetype == "array") { - $default = serialize(explode('|', trim($default))); - } - - $conf_id = $dbm->insert("config", " VALUES (0, ${mid}, 0, '${name}', '${title}', '${default}', '${desc}', '${formtype}', '${valuetype}', ${count})"); - - if (isset($configInfo['options']) && is_array($configInfo['options'])) { - foreach ($configInfo['options'] as $key => $value) { - $dbm->insert("configoption", " VALUES (0, '${key}', '${value}', ${conf_id})"); - } - } - - $count++; - } - } -} ?> From nobunobu @ users.sourceforge.jp Tue Mar 7 22:11:40 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 7 Mar 2006 22:11:40 +0900 Subject: [xoops-cvslog 2376] CVS update: xoops2jp/html/install/include Message-ID: <20060307131140.109D12AC069@users.sourceforge.jp> Index: xoops2jp/html/install/include/functions.php diff -u /dev/null xoops2jp/html/install/include/functions.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/include/functions.php Tue Mar 7 22:11:39 2006 @@ -0,0 +1,157 @@ + 'english', + 'ja' => 'japanese', + 'fr' => 'french', + 'de' => 'german', + 'nl' => 'dutch', + 'es' => 'spanish', + 'tw' => 'tchinese', + 'cn' => 'schinese', + 'ro' => 'romanian' + ); + + $language = 'english'; + if ( !empty($_POST['lang']) ) { + $language = $_POST['lang']; + } else { + if (isset($_COOKIE['install_lang'])) { + $language = $_COOKIE['install_lang']; + } else { + $_SERVER['HTTP_ACCEPT_LANGUAGE'] = 'ja,en-us;q=0.7,zh-TW;q=0.6'; + if (isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) { + $accept_langs = explode(',', $_SERVER['HTTP_ACCEPT_LANGUAGE']); + foreach ($accept_langs as $al) { + $al = strtolower($al); + $al_len = strlen($al); + if ($al_len > 2) { + if (preg_match('/([a-z]{2});q=[0-9.]+$/', $al, $al_match)) { + $al = $al_match[1]; + } else { + continue; + } + } + if (isset($language_array[$al])) { + $language = $language_array[$al]; + break; + } + } + } + } + } + if ( !file_exists('./language/'.$language.'/install.php') ) { + $language = 'english'; + } + setcookie('install_lang', $language); + return $language; +} + +/* + * gets list of name of directories inside a directory + */ +function getDirList($dirname) +{ + $dirlist = array(); + if (is_dir($dirname) && $handle = opendir($dirname)) { + while (false !== ($file = readdir($handle))) { + if ( !preg_match('/^[.]{1,2}$/',$file) ) { + if (strtolower($file) != 'cvs' && is_dir($dirname.$file) ) { + $dirlist[$file]=$file; + } + } + } + closedir($handle); + asort($dirlist); + reset($dirlist); + } + return $dirlist; +} + +/* + * gets list of name of files within a directory + */ +function getImageFileList($dirname) +{ + $filelist = array(); + if (is_dir($dirname) && $handle = opendir($dirname)) { + while (false !== ($file = readdir($handle))) { + if (!preg_match('/^[.]{1,2}$/', $file) && preg_match('/[.gif|.jpg|.png]$/i', $file) ) { + $filelist[$file]=$file; + } + } + closedir($handle); + asort($filelist); + reset($filelist); + } + return $filelist; +} + +function &xoops_module_gettemplate($dirname, $template, $block=false) +{ + if ($block) { + $path = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/templates/blocks/'.$template; + } else { + $path = XOOPS_ROOT_PATH.'/modules/'.$dirname.'/templates/'.$template; + } + if (!file_exists($path)) { + return false; + } else { + $lines = file($path); + } + if (!$lines) { + return false; + } + $ret = ''; + $count = count($lines); + for ($i = 0; $i < $count; $i++) { + $ret .= str_replace("\n", "\r\n", str_replace("\r\n", "\n", $lines[$i])); + } + return $ret; +} + +function check_language($language){ + if ( file_exists('../modules/system/language/'.$language.'/modinfo.php') ) { + return $language; + } else { + return 'english'; + } +} + +function b_back($option = null) +{ + if(!isset($option) || !is_array($option)) return ''; + $content = ''; + if(isset($option[0]) && $option[0] != ''){ + $content .= ''; + }else{ + $content .= ''; + } + if(isset($option[1]) && $option[1] != ''){ + $content .= '<< '.htmlspecialchars($option[1]).''; + } + return $content; +} + +function b_reload($option=''){ + if(empty($option)) return ''; + if (!defined('_INSTALL_L200')) { + define('_INSTALL_L200', 'Reload'); + } + return ''; +} + +function b_next($option=null){ + if(!isset($option) || !is_array($option)) return ''; + $content = ''; + if(isset($option[1]) && $option[1] != ''){ + $content .= ''.htmlspecialchars($option[1]).' >>'; + } + $content .= ''; + $content .= ''; + return $content; +} + +?> Index: xoops2jp/html/install/include/makedata.php diff -u /dev/null xoops2jp/html/install/include/makedata.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/include/makedata.php Tue Mar 7 22:11:39 2006 @@ -0,0 +1,345 @@ + // +// ------------------------------------------------------------------------ // +// 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 // +// ------------------------------------------------------------------------ // + +include_once './class/dbmanager.php'; + +// RMV +// TODO: Shouldn't we insert specific field names?? That way we can use +// the defaults specified in the database...!!!! (and don't have problem +// of missing fields in install file, when add new fields to database) + +function make_groups(&$dbm){ + $gruops['XOOPS_GROUP_ADMIN'] = $dbm->insert('groups', " VALUES (0, '".addslashes(_INSTALL_WEBMASTER)."', '".addslashes(_INSTALL_WEBMASTERD)."', 'Admin')"); + $gruops['XOOPS_GROUP_USERS'] = $dbm->insert('groups', " VALUES (0, '".addslashes(_INSTALL_REGUSERS)."', '".addslashes(_INSTALL_REGUSERSD)."', 'User')"); + $gruops['XOOPS_GROUP_ANONYMOUS'] = $dbm->insert('groups', " VALUES (0, '".addslashes(_INSTALL_ANONUSERS)."', '".addslashes(_INSTALL_ANONUSERSD)."', 'Anonymous')"); + + if(!$gruops['XOOPS_GROUP_ADMIN'] || !$gruops['XOOPS_GROUP_USERS'] || !$gruops['XOOPS_GROUP_ANONYMOUS']){ + return false; + } + + return $gruops; +} +function make_data(&$dbm, &$cm, $adminname, $adminpass, $adminmail, $language, $gruops){ + + $myts =& textSanitizer::getInstance(); + //$xoopsDB =& Database::getInstance(); + //$dbm = new db_manager; + + $tables = array(); + + // data for table 'groups_users_link' + + $dbm->insert('groups_users_link', " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", 1)"); + $dbm->insert('groups_users_link', " VALUES (0, ".$gruops['XOOPS_GROUP_USERS'].", 1)"); + + // data for table 'group_permission' + + $dbm->insert("group_permission", " VALUES (0,".$gruops['XOOPS_GROUP_ADMIN'].",1,1,'module_admin')"); + $dbm->insert("group_permission", " VALUES (0,".$gruops['XOOPS_GROUP_ADMIN'].",1,1, 'module_read')"); + $dbm->insert("group_permission", " VALUES (0,".$gruops['XOOPS_GROUP_USERS'].",1,1,'module_read')"); + $dbm->insert("group_permission", " VALUES (0,".$gruops['XOOPS_GROUP_ANONYMOUS'].",1,1,'module_read')"); + + $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",1,1,'system_admin')"); + $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",2,1,'system_admin')"); + $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",3,1,'system_admin')"); + $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",4,1,'system_admin')"); + $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",5,1,'system_admin')"); + $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",6,1,'system_admin')"); + $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",7,1,'system_admin')"); + $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",8,1,'system_admin')"); + $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",9,1,'system_admin')"); + $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",10,1,'system_admin')"); + $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",11,1,'system_admin')"); + $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",12,1,'system_admin')"); + $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",13,1,'system_admin')"); + $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",14,1,'system_admin')"); + $dbm->insert("group_permission", " VALUES(0,".$gruops['XOOPS_GROUP_ADMIN'].",15,1,'system_admin')"); + + // data for table 'banner' + + $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, date) VALUES (1, 1, 0, 1, 0, '".XOOPS_URL."/images/banners/xoops_banner.gif', 'http://xoopscube.jp/', 1008813250)"); + $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, date) VALUES (2, 1, 0, 1, 0, '".XOOPS_URL."/images/banners/xoops_banner_2.gif', 'http://xoopscube.jp/', 1008813250)"); + $dbm->insert("banner", " (bid, cid, imptotal, impmade, clicks, imageurl, clickurl, date) VALUES (3, 1, 0, 1, 0, '".XOOPS_URL."/images/banners/banner.swf', 'http://xoopscube.jp/', 1008813250)"); + + // default theme + + $time = time(); + $dbm->insert('tplset', " VALUES (1, 'default', 'XOOPS Cube Default Template Set', '', ".$time.")"); + + // data for table 'config' + + $dbm->insert('config', " VALUES (1, 0, 1, 'sitename', '_MD_AM_SITENAME', 'XOOPS Cube Site', '_MD_AM_SITENAMEDSC', 'textbox', 'text', 0)"); + $dbm->insert('config', " VALUES (2, 0, 1, 'slogan', '_MD_AM_SLOGAN', 'Just Use it!', '_MD_AM_SLOGANDSC', 'textbox', 'text', 2)"); + $dbm->insert('config', " VALUES (3, 0, 1, 'language', '_MD_AM_LANGUAGE', '".addslashes($language)."', '_MD_AM_LANGUAGEDSC', 'language', 'other', 4)"); + $dbm->insert('config', " VALUES (4, 0, 1, 'startpage', '_MD_AM_STARTPAGE', '--', '_MD_AM_STARTPAGEDSC', 'startpage', 'other', 6)"); + //Get Server timezone Setting + $time_diff_val = date('O'); + $time_diff = floatval(substr($time_diff_val,0,1).(substr($time_diff_val,1,2) + substr($time_diff_val,3,2)/60)); + $dbm->insert('config', " VALUES (5, 0, 1, 'server_TZ', '_MD_AM_SERVERTZ', '".$time_diff."', '_MD_AM_SERVERTZDSC', 'timezone', 'float', 8)"); + $dbm->insert('config', " VALUES (6, 0, 1, 'default_TZ', '_MD_AM_DEFAULTTZ', '".$time_diff."', '_MD_AM_DEFAULTTZDSC', 'timezone', 'float', 10)"); + $dbm->insert('config', " VALUES (7, 0, 1, 'theme_set', '_MD_AM_DTHEME', 'cube_default', '_MD_AM_DTHEMEDSC', 'theme', 'other', 12)"); + $dbm->insert('config', " VALUES (8, 0, 1, 'anonymous', '_MD_AM_ANONNAME', '".addslashes(_INSTALL_ANON)."', '_MD_AM_ANONNAMEDSC', 'textbox', 'text', 15)"); + $dbm->insert('config', " VALUES (9, 0, 1, 'gzip_compression', '_MD_AM_USEGZIP', '0', '_MD_AM_USEGZIPDSC', 'yesno', 'int', 16)"); + $dbm->insert('config', " VALUES (10, 0, 1, 'usercookie', '_MD_AM_USERCOOKIE', 'xoops_user', '_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', '0', '_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', '127.0.0.1', '_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', '5', '_MD_AM_MINPASSDSC', 'textbox', 'int', 1)"); + $dbm->insert('config', " VALUES (18, 0, 2, 'minuname', '_MD_AM_MINUNAME', '3', '_MD_AM_MINUNAMEDSC', 'textbox', 'int', 2)"); + $dbm->insert('config', " VALUES (19, 0, 2, 'new_user_notify', '_MD_AM_NEWUNOTIFY', '1', '_MD_AM_NEWUNOTIFYDSC', 'yesno', 'int', 4)"); + $dbm->insert('config', " VALUES (20, 0, 2, 'new_user_notify_group', '_MD_AM_NOTIFYTO', ".$gruops['XOOPS_GROUP_ADMIN'].", '_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', ".$gruops['XOOPS_GROUP_ADMIN'].", '_MD_AM_ACTVGROUPDSC', 'group', 'int', 10)"); + $dbm->insert('config', " VALUES (23, 0, 2, 'uname_test_level', '_MD_AM_UNAMELVL', '0', '_MD_AM_UNAMELVLDSC', 'select', 'int', 12)"); + $dbm->insert('config', " VALUES (24, 0, 2, 'avatar_allow_upload', '_MD_AM_AVATARALLOW', '0', '_MD_AM_AVATARALWDSC', 'yesno', 'int', 14)"); + $dbm->insert('config', " VALUES (27, 0, 2, 'avatar_width', '_MD_AM_AVATARW', '80', '_MD_AM_AVATARWDSC', 'textbox', 'int', 16)"); + $dbm->insert('config', " VALUES (28, 0, 2, 'avatar_height', '_MD_AM_AVATARH', '80', '_MD_AM_AVATARHDSC', 'textbox', 'int', 18)"); + $dbm->insert('config', " VALUES (29, 0, 2, 'avatar_maxsize', '_MD_AM_AVATARMAX', '35000', '_MD_AM_AVATARMAXDSC', 'textbox', 'int', 20)"); + $dbm->insert('config', " VALUES (30, 0, 1, 'adminmail', '_MD_AM_ADMINML', '".addslashes($adminmail)."', '_MD_AM_ADMINMLDSC', 'textbox', 'text', 3)"); + $dbm->insert('config', " VALUES (31, 0, 2, 'self_delete', '_MD_AM_SELFDELETE', '0', '_MD_AM_SELFDELETEDSC', 'yesno', 'int', 22)"); + $dbm->insert('config', " VALUES (32, 0, 1, 'com_mode', '_MD_AM_COMMODE', 'nest', '_MD_AM_COMMODEDSC', 'select', 'text', 34)"); + $dbm->insert('config', " VALUES (33, 0, 1, 'com_order', '_MD_AM_COMORDER', '0', '_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('xoopscube.org$', 'xoopscube.jp$')))."', '_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', '', '_MD_AM_METAKEYDSC', 'textarea', 'text', 0)"); + $dbm->insert('config', " VALUES (39, 0, 3, 'footer', '_MD_AM_FOOTER', 'Powered by XOOPS Cube 2.1 Alpha 1 © 2001-2006 The XOOPS Cube 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', '', '_MD_AM_METAAUTHORDSC', 'textbox', 'text', 6)"); + $dbm->insert('config', " VALUES (50, 0, 3, 'meta_copyright', '_MD_AM_METACOPYR', '', '_MD_AM_METACOPYRDSC', 'textbox', 'text', 8)"); + $dbm->insert('config', " VALUES (51, 0, 3, 'meta_description', '_MD_AM_METADESC', '', '_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)"); + // RMV-NOTIFY... Need to specify which user is sender of notification PM + $dbm->insert('config', " VALUES (73,0,6,'fromuid','_MD_AM_MAILFROMUID','1','_MD_AM_MAILFROMUIDDESC','user','int',3)"); + + // install modules + installModule($dbm, 1, "system", _MI_SYSTEM_NAME, $language, $gruops); + + installModule($dbm, 2, "base", _MI_BASE_NAME, $language, $gruops, true); + $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", 2, 1, 'module_admin')"); + + installModule($dbm, 3, "legacyRender", _MI_LEGACYRENDER_NAME, $language, $gruops, true); + $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", 3, 1, 'module_admin')"); + + installModule($dbm, 4, "user", _MI_USER_NAME, $language, $gruops, true); + $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", 4, 1, 'module_admin')"); + $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", 4, 1, 'module_read')"); + $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_USERS'].", 4, 1, 'module_read')"); + $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ANONYMOUS'].", 4, 1, 'module_read')"); + + installModule($dbm, 5, "pm", _MI_PM_NAME, $language, $gruops, true); + $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", 5, 1, 'module_admin')"); + $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", 5, 1, 'module_read')"); + $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_USERS'].", 5, 1, 'module_read')"); + + installModule($dbm, 6, "stdCache", _MI_STDCACHE_NAME, $language, $gruops, true); + $dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", 6, 1, 'module_admin')"); + + // data for table 'users' + + $temp = md5($adminpass); + $regdate = time(); + //$dbadminname= addslashes($adminname); + // RMV-NOTIFY (updated for extra columns in user table) + $dbm->insert('users', " VALUES (1,'','".addslashes($adminname)."','".addslashes($adminmail)."','".XOOPS_URL."/','blank.gif','".$regdate."','','','',1,'','','','','".$temp."',0,0,7,5,'default','".$time_diff."',".time().",'thread',0,1,0,'','','',0)"); + + + // data for table 'block_module_link' + + $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)"); + } + } + + return $gruops; +} + +/** + * + * Install module by module's name, language and specified mid. + * + * @param $dbm object Database manager instance + * @param $mid int module's ID + * @param $module string module's name + * @param $language string language + * @param $grops array hash map + */ +function installModule(&$dbm, $mid, $module, $module_name, $language = 'english', &$groups) { + if ( file_exists("../modules/${module}/language/${language}/modinfo.php") ) { + include "../modules/${module}/language/${language}/modinfo.php"; + } else { + include "../modules/${module}/language/english/modinfo.php"; + $language = 'english'; + } + + $modversion = array(); + require_once "../modules/${module}/xoops_version.php"; + $time = time(); + + // RMV-NOTIFY (updated for extra column in table) + // + // TODO We should set hasconfig and more option values here. + // + $hasconfig = isset($modversion['config']) ? 1 : 0; + $hasmain = 0; + if (isset($modversion['hasMain']) && $modversion['hasMain'] == 1) { + $hasmain = 1; + } + $dbm->insert("modules", " VALUES (${mid}, '" . constant($module_name) . "', 100, ".$time.", 0, 1, '${module}', ${hasmain}, 1, 0, ${hasconfig}, 0, 0)"); + + // + // Database + // TODO Dependence on mysql, Now. + // + if (isset($modversion['sqlfile']['mysql'])) { + $dbm->queryFromFile("../modules/${module}/" . $modversion['sqlfile']['mysql']); + } + + if (is_array($modversion['templates']) && count($modversion['templates']) > 0) { + foreach ($modversion['templates'] as $tplfile) { + if ($fp = fopen("../modules/${module}/templates/".$tplfile['file'], 'r')) { + $newtplid = $dbm->insert('tplfile', " VALUES (0, ${mid}, '${module}', 'default', '".addslashes($tplfile['file'])."', '".addslashes($tplfile['description'])."', ".$time.", ".$time.", 'module')"); + //$newtplid = $xoopsDB->getInsertId(); + if (filesize("../modules/${module}/templates/".$tplfile['file']) > 0) { + $tplsource = fread($fp, filesize("../modules/${module}/templates/".$tplfile['file'])); + } + else { + $tplsource = ""; + } + fclose($fp); + $dbm->insert('tplsource', " (tpl_id, tpl_source) VALUES (".$newtplid.", '".addslashes($tplsource)."')"); + } + } + } + + if (is_array($modversion['blocks']) && count($modversion['blocks']) > 0) { + foreach ($modversion['blocks'] as $func_num => $newblock) { + if ($fp = fopen("../modules/${module}/templates/blocks/".$newblock['template'], 'r')) { + // + // The following checking is dependence on the structure of system module. + // + if (in_array($newblock['template'], array('system_block_user.html', 'system_block_login.html', 'system_block_mainmenu.html'))) { + $visible = 1; + } else { + $visible = 0; + } + $options = !isset($newblock['options']) ? '' : trim($newblock['options']); + $edit_func = !isset($newblock['edit_func']) ? '' : trim($newblock['edit_func']); + $newbid = $dbm->insert('newblocks', " VALUES (0, ${mid}, ".$func_num.", '".addslashes($options)."', '".addslashes($newblock['name'])."', '".addslashes($newblock['name'])."', '', 0, 0, ".$visible.", 'S', 'H', 1, '${module}', '".addslashes($newblock['file'])."', '".addslashes($newblock['show_func'])."', '".addslashes($edit_func)."', '".addslashes($newblock['template'])."', 0, ".$time.")"); + //$newbid = $xoopsDB->getInsertId(); + $newtplid = $dbm->insert('tplfile', " VALUES (0, ".$newbid.", '${module}', 'default', '".addslashes($newblock['template'])."', '".addslashes($newblock['description'])."', ".$time.", ".$time.", 'block')"); + //$newtplid = $xoopsDB->getInsertId(); + if (filesize("../modules/${module}/templates/blocks/".$newblock['template']) > 0) { + $tplsource = fread($fp, filesize("../modules/${module}/templates/blocks/".$newblock['template'])); + } + else { + $tplsource = ""; + } + fclose($fp); + $dbm->insert('tplsource', " (tpl_id, tpl_source) VALUES (".$newtplid.", '".addslashes($tplsource)."')"); + + $dbm->insert("group_permission", " VALUES (0, ".$groups['XOOPS_GROUP_ADMIN'].", ".$newbid.", 1, 'block_read')"); + //$dbm->insert("group_permission", " VALUES (0, ".$gruops['XOOPS_GROUP_ADMIN'].", ".$newbid.", 'xoops_blockadmiin')"); + $dbm->insert("group_permission", " VALUES (0, ".$groups['XOOPS_GROUP_USERS'].", ".$newbid.", 1, 'block_read')"); + $dbm->insert("group_permission", " VALUES (0, ".$groups['XOOPS_GROUP_ANONYMOUS'].", ".$newbid.", 1, 'block_read')"); + } + } + } + + // + // Install preferences + // + if (isset($modversion['config'])) { + $count = 0; + foreach ($modversion['config'] as $configInfo) { + // + // TODO We have to sanitize. + // + $name = $configInfo['name']; + $title = $configInfo['title']; + $desc = $configInfo['description']; + $formtype = $configInfo['formtype']; + $valuetype = $configInfo['valuetype']; + $default = $configInfo['default']; + + if ($valuetype == "array") { + $default = serialize(explode('|', trim($default))); + } + + $conf_id = $dbm->insert("config", " VALUES (0, ${mid}, 0, '${name}', '${title}', '${default}', '${desc}', '${formtype}', '${valuetype}', ${count})"); + + if (isset($configInfo['options']) && is_array($configInfo['options'])) { + foreach ($configInfo['options'] as $key => $value) { + $dbm->insert("configoption", " VALUES (0, '${key}', '${value}', ${conf_id})"); + } + } + + $count++; + } + } +} + +?> From nobunobu @ users.sourceforge.jp Tue Mar 7 22:11:40 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 7 Mar 2006 22:11:40 +0900 Subject: [xoops-cvslog 2377] CVS update: xoops2jp/html/install/templates Message-ID: <20060307131140.43B312AC037@users.sourceforge.jp> Index: xoops2jp/html/install/templates/install_checkDB.tpl.php diff -u /dev/null xoops2jp/html/install/templates/install_checkDB.tpl.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/templates/install_checkDB.tpl.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,10 @@ + + +
+v('checks') as $check) { ?> +
+ +
+v('msgs') as $msg) { ?> +

+ Index: xoops2jp/html/install/templates/install_createTables.tpl.php diff -u /dev/null xoops2jp/html/install/templates/install_createTables.tpl.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/templates/install_createTables.tpl.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,6 @@ +
+v('reports') as $report) { ?> +
+ +
+

e('message')?>

Index: xoops2jp/html/install/templates/install_dbsave.tpl.php diff -u /dev/null xoops2jp/html/install/templates/install_dbsave.tpl.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/templates/install_dbsave.tpl.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,8 @@ + + +
+v('reports') as $report) { ?> +
+ +
+

e('message')?>

Index: xoops2jp/html/install/templates/install_finish.tpl.php diff -u /dev/null xoops2jp/html/install/templates/install_finish.tpl.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/templates/install_finish.tpl.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,3 @@ +
+e('finish')?> +
Index: xoops2jp/html/install/templates/install_initial.tpl.php diff -u /dev/null xoops2jp/html/install/templates/install_initial.tpl.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/templates/install_initial.tpl.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,13 @@ + + + +
+ + + + + +
  
  
  
  

+
+

+
Index: xoops2jp/html/install/templates/install_insertData.tpl.php diff -u /dev/null xoops2jp/html/install/templates/install_insertData.tpl.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/templates/install_insertData.tpl.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,15 @@ +
+v('dbm_reports') as $report) { ?> +
+ +
+
+v('cm_reports') as $report) { ?> +
+ +
+
+v('mm_reports') as $report) { ?> +
+ +
Index: xoops2jp/html/install/templates/install_langselect.tpl.php diff -u /dev/null xoops2jp/html/install/templates/install_langselect.tpl.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/templates/install_langselect.tpl.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,6 @@ +

+ Index: xoops2jp/html/install/templates/install_mainfile.tpl.php diff -u /dev/null xoops2jp/html/install/templates/install_mainfile.tpl.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/templates/install_mainfile.tpl.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,13 @@ + + +
+v('checks') as $check) { ?> +
+ +
+
+
+
+
+
+

Index: xoops2jp/html/install/templates/install_modcheck.tpl.php diff -u /dev/null xoops2jp/html/install/templates/install_modcheck.tpl.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/templates/install_modcheck.tpl.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,6 @@ +
+v('checks') as $check) { ?> +
+ +
+

e('message') ?> Index: xoops2jp/html/install/templates/install_siteInit.tpl.php diff -u /dev/null xoops2jp/html/install/templates/install_siteInit.tpl.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/templates/install_siteInit.tpl.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,7 @@ + + + + + + +
Index: xoops2jp/html/install/templates/install_start.tpl.php diff -u /dev/null xoops2jp/html/install/templates/install_start.tpl.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/templates/install_start.tpl.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,3 @@ +
+e('welcome')?> +
From nobunobu @ users.sourceforge.jp Tue Mar 7 22:11:40 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Tue, 7 Mar 2006 22:11:40 +0900 Subject: [xoops-cvslog 2378] CVS update: xoops2jp/html/install/widzards Message-ID: <20060307131140.8ED572AC037@users.sourceforge.jp> Index: xoops2jp/html/install/widzards/install_checkDB.inc.php diff -u /dev/null xoops2jp/html/install/widzards/install_checkDB.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_checkDB.inc.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,32 @@ +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 /dev/null xoops2jp/html/install/widzards/install_createDB.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_createDB.inc.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,13 @@ +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 /dev/null xoops2jp/html/install/widzards/install_createTables.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_createTables.inc.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,16 @@ +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 /dev/null xoops2jp/html/install/widzards/install_dbconfirm.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_dbconfirm.inc.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,14 @@ +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 /dev/null xoops2jp/html/install/widzards/install_dbform.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_dbform.inc.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,8 @@ +readConstant(); + $widzard->setContent($sm->editform()); + $widzard->render(); +?> Index: xoops2jp/html/install/widzards/install_dbsave.inc.php diff -u /dev/null xoops2jp/html/install/widzards/install_dbsave.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_dbsave.inc.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,42 @@ +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 /dev/null xoops2jp/html/install/widzards/install_finish.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_finish.inc.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,5 @@ +assign('finish', $content); + $widzard->render('install_finish.tpl.php'); +?> Index: xoops2jp/html/install/widzards/install_initial.inc.php diff -u /dev/null xoops2jp/html/install/widzards/install_initial.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_initial.inc.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,5 @@ +render('install_initial.tpl.php'); +?> Index: xoops2jp/html/install/widzards/install_insertData.inc.php diff -u /dev/null xoops2jp/html/install/widzards/install_insertData.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_insertData.inc.php Tue Mar 7 22:11:40 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)) { + $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 /dev/null xoops2jp/html/install/widzards/install_langselect.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_langselect.inc.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,15 @@ +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 /dev/null xoops2jp/html/install/widzards/install_mainfile.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_mainfile.inc.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,30 @@ +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 /dev/null xoops2jp/html/install/widzards/install_modcheck.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_modcheck.inc.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,33 @@ +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 /dev/null xoops2jp/html/install/widzards/install_siteInit.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_siteInit.inc.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,4 @@ +render('install_siteInit.tpl.php'); +?> Index: xoops2jp/html/install/widzards/install_start.inc.php diff -u /dev/null xoops2jp/html/install/widzards/install_start.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_start.inc.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,5 @@ +assign('welcome', $content); + $widzard->render('install_start.tpl.php'); +?> Index: xoops2jp/html/install/widzards/install_updateAvatars.inc.php diff -u /dev/null xoops2jp/html/install/widzards/install_updateAvatars.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateAvatars.inc.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,5 @@ +'._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 /dev/null xoops2jp/html/install/widzards/install_updateAvatars_go.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateAvatars_go.inc.php Tue Mar 7 22:11:40 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/widzards/install_updateComments.inc.php diff -u /dev/null xoops2jp/html/install/widzards/install_updateComments.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateComments.inc.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,5 @@ +"._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 /dev/null xoops2jp/html/install/widzards/install_updateComments_go.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateComments_go.inc.php Tue Mar 7 22:11:40 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/widzards/install_updateConfig.inc.php diff -u /dev/null xoops2jp/html/install/widzards/install_updateConfig.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateConfig.inc.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,5 @@ +"._INSTALL_L143."

\n"; + include 'install_tpl.php'; +?> Index: xoops2jp/html/install/widzards/install_updateConfig_go.inc.php diff -u /dev/null xoops2jp/html/install/widzards/install_updateConfig_go.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateConfig_go.inc.php Tue Mar 7 22:11:40 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/widzards/install_updateModules.inc.php diff -u /dev/null xoops2jp/html/install/widzards/install_updateModules.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateModules.inc.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,5 @@ +"._INSTALL_L141."

\n"; + include 'install_tpl.php'; +?> Index: xoops2jp/html/install/widzards/install_updateModules_go.inc.php diff -u /dev/null xoops2jp/html/install/widzards/install_updateModules_go.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateModules_go.inc.php Tue Mar 7 22:11:40 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/widzards/install_updateSmilies.inc.php diff -u /dev/null xoops2jp/html/install/widzards/install_updateSmilies.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateSmilies.inc.php Tue Mar 7 22:11:40 2006 @@ -0,0 +1,5 @@ +'._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 /dev/null xoops2jp/html/install/widzards/install_updateSmilies_go.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateSmilies_go.inc.php Tue Mar 7 22:11:40 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/widzards/install_updateTables.inc.php diff -u /dev/null xoops2jp/html/install/widzards/install_updateTables.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateTables.inc.php Tue Mar 7 22:11:40 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/widzards/install_updateTables_go.inc.php diff -u /dev/null xoops2jp/html/install/widzards/install_updateTables_go.inc.php:1.1.2.1 --- /dev/null Tue Mar 7 22:11:40 2006 +++ xoops2jp/html/install/widzards/install_updateTables_go.inc.php Tue Mar 7 22:11:40 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 minahito @ users.sourceforge.jp Wed Mar 8 16:50:45 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 8 Mar 2006 16:50:45 +0900 Subject: [xoops-cvslog 2379] CVS update: xoops2jp/html/modules/user/class Message-ID: <20060308075045.BA5882AC0BD@users.sourceforge.jp> Index: xoops2jp/html/modules/user/class/avatar_user_link.php diff -u /dev/null xoops2jp/html/modules/user/class/avatar_user_link.php:1.1.2.1 --- /dev/null Wed Mar 8 16:50:45 2006 +++ xoops2jp/html/modules/user/class/avatar_user_link.php Wed Mar 8 16:50:45 2006 @@ -0,0 +1,38 @@ +initVar('avatar_id', XOBJ_DTYPE_INT, '0', true); + $this->initVar('user_id', XOBJ_DTYPE_INT, '0', true); + } +} + +class UserAvatar_user_linkHandler extends XoopsObjectGenericHandler +{ + var $mTable = "avatar_user_link"; + var $mPrimary = ""; + var $mClass = "UserAvatar_user_linkObject"; + + function &get($id) + { + $ret = null; + return $ret; + } + + function _update(&$obj) + { + return $this->_insert($obj); + } + + function delete(&$obj, $force=false) + { + $id = $this->db->quoteString($obj->get('avatar_id')); + $sql = "DELETE FROM " . $this->mTable . " WHERE avatar_id=" . $obj->get('avatar_id') . " AND user_id=" . $obj->get('user_id'); + + return $force ? $this->db->queryF($sql) : $this->db->query($sql); + } +} + +?> From minahito @ users.sourceforge.jp Wed Mar 8 16:52:45 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 8 Mar 2006 16:52:45 +0900 Subject: [xoops-cvslog 2380] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20060308075245.78E022AC0AC@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php diff -u xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php:1.1.2.1 xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php:1.1.2.2 --- xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php:1.1.2.1 Thu Jan 26 20:09:58 2006 +++ xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php Wed Mar 8 16:52:45 2006 @@ -66,6 +66,34 @@ return false; } + function _doExecute() + { + if ($this->mObjectHandler->insert($this->mObject)) { + + // + // Delete all of links about this user from avatar_user_link. + // + $linkHandler =& xoops_getmodulehandler('avatar_user_link'); + $criteria =& new Criteria('user_id', $this->mObject->get('uid')); + $linkHandler->deleteAll($criteria); + + // + // Insert new link. + // + $avatarHandler =& xoops_getmodulehandler('avatar'); + $criteria =& new Criteria('avatar_file', $this->mObject->get('user_avatar')); + $avatarArr =& $avatarHandler->getObjects($criteria); + if (is_array($avatarArr) && is_object($avatarArr[0])) { + $link =& $linkHandler->create(); + $link->set('avatar_id', $avatarArr[0]->get('avatar_id')); + $link->set('user_id', $this->mObject->get('uid')); + $linkHandler->insert($link); + } + + return true; + } + } + /** * This action always kicks out GET request. */ From minahito @ users.sourceforge.jp Wed Mar 8 19:19:20 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 8 Mar 2006 19:19:20 +0900 Subject: [xoops-cvslog 2381] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20060308101920.C18CB2AC014@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/AvatarEditAction.class.php diff -u xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.2 xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.3 --- xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.2 Sat Jan 28 03:33:54 2006 +++ xoops2jp/html/modules/user/actions/AvatarEditAction.class.php Wed Mar 8 19:19:20 2006 @@ -153,10 +153,36 @@ } if ($this->mActionForm->mOldAvatarFilename != null && $this->mActionForm->mOldAvatarFilename != "blank.gif") { - @unlink(XOOPS_UPLOAD_PATH . "/" . $this->mActionForm->mOldAvatarFilename); + $avatarHandler =& xoops_getmodulehandler('avatar'); + $criteria =& new Criteria('avatar_file', $this->mActionForm->mOldAvatarFilename); + $avatarArr =& $avatarHandler->getObjects($criteria); + if (count($avatarArr) > 0 && is_object($avatarArr[0]) && $avatarArr[0]->get('avatar_type') == 'C') { + $avatarHandler->delete($avatarArr[0]); + } } - return parent::_doExecute(); + if (parent::_doExecute()) { + $avatar =& $this->mActionForm->createAvatar(); + if ($avatar != null) { + $avatar->set('avatar_name', $this->mObject->get('uname')); + $avatarHandler =& xoops_getmodulehandler('avatar'); + $avatarHandler->insert($avatar); + + $linkHandler =& xoops_getmodulehandler('avatar_user_link'); + $linkHandler->deleteAllByUser($this->mObject); + + $link =& $linkHandler->create(); + $link->set('user_id', $this->mObject->get('uid')); + $link->set('avatar_id', $avatar->get('avatar_id')); + + $linkHandler->insert($link); + } + + return true; + } + else { + return false; + } } function executeViewInput(&$controller,&$xoopsUser,&$render) From minahito @ users.sourceforge.jp Wed Mar 8 19:20:22 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 8 Mar 2006 19:20:22 +0900 Subject: [xoops-cvslog 2382] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20060308102022.9FD922AC014@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php diff -u xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php:1.1.2.2 xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php:1.1.2.3 --- xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php:1.1.2.2 Wed Mar 8 16:52:45 2006 +++ xoops2jp/html/modules/user/actions/AvatarSelectAction.class.php Wed Mar 8 19:20:22 2006 @@ -9,6 +9,20 @@ */ class User_AvatarSelectAction extends User_AbstractEditAction { + var $mOldAvatar = null; + + function prepare(&$controller, &$xoopsUser, &$moduleConfig) + { + parent::prepare($controller, $xoopsUser, $moduleConfig); + + $handler =& xoops_getmodulehandler('avatar'); + $criteria =& new Criteria('avatar_file', $xoopsUser->get('user_avatar')); + $avatarArr =& $handler->getObjects($criteria); + if (count($avatarArr) > 0) { + $this->mOldAvatar =& $avatarArr[0]; + } + } + function _getId() { return isset($_REQUEST['uid']) ? intval($_REQUEST['uid']) : 0; @@ -69,18 +83,24 @@ function _doExecute() { if ($this->mObjectHandler->insert($this->mObject)) { + $avatarHandler =& xoops_getmodulehandler('avatar'); + + // + // If old avatar is a cutom avatar, delete it. + // + if ($this->mOldAvatar != null && $this->mOldAvatar->get('avatar_type') == 'C') { + $avatarHandler->delete($this->mOldAvatar); + } // // Delete all of links about this user from avatar_user_link. // $linkHandler =& xoops_getmodulehandler('avatar_user_link'); - $criteria =& new Criteria('user_id', $this->mObject->get('uid')); - $linkHandler->deleteAll($criteria); + $linkHandler->deleteAllByUser($this->mObject); // // Insert new link. // - $avatarHandler =& xoops_getmodulehandler('avatar'); $criteria =& new Criteria('avatar_file', $this->mObject->get('user_avatar')); $avatarArr =& $avatarHandler->getObjects($criteria); if (is_array($avatarArr) && is_object($avatarArr[0])) { From minahito @ users.sourceforge.jp Wed Mar 8 19:21:28 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 8 Mar 2006 19:21:28 +0900 Subject: [xoops-cvslog 2383] CVS update: xoops2jp/html/modules/user/admin/actions Message-ID: <20060308102128.E3A892AC063@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/actions/AvatarDeleteAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/AvatarDeleteAction.class.php:1.1.2.1 xoops2jp/html/modules/user/admin/actions/AvatarDeleteAction.class.php:1.1.2.2 --- xoops2jp/html/modules/user/admin/actions/AvatarDeleteAction.class.php:1.1.2.1 Thu Jan 19 21:05:35 2006 +++ xoops2jp/html/modules/user/admin/actions/AvatarDeleteAction.class.php Wed Mar 8 19:21:28 2006 @@ -22,6 +22,36 @@ $this->mActionForm->prepare(); } + function _doExecute() + { + $linkHandler =& xoops_getmodulehandler('avatar_user_link'); + $criteria =& new Criteria('avatar_id', $this->mObject->get('avatar_id')); + $linkArr =& $linkHandler->getObjects($criteria); + + if ($this->mObjectHandler->delete($this->mObject)) { + // + // Clear all user who set the avatar deleted with blank.gif + // + if (count($linkArr) > 0) { + $userHandler =& xoops_gethandler('user'); + foreach ($linkArr as $link) { + $user =& $userHandler->get($link->get('user_id')); + + if (is_object($user)) { + $user->set('user_avatar', 'blank.gif'); + $userHandler->insert($user); + } + unset($user); + } + } + + return true; + } + else { + return false; + } + } + function executeViewInput(&$controller, &$xoopsUser, &$render) { $render->setTemplateName("avatar_delete.html"); From minahito @ users.sourceforge.jp Wed Mar 8 19:21:50 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 8 Mar 2006 19:21:50 +0900 Subject: [xoops-cvslog 2384] CVS update: xoops2jp/html/modules/user/admin/actions Message-ID: <20060308102150.780B42AC014@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/actions/AvatarEditAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/AvatarEditAction.class.php:1.1.2.2 xoops2jp/html/modules/user/admin/actions/AvatarEditAction.class.php:1.1.2.3 --- xoops2jp/html/modules/user/admin/actions/AvatarEditAction.class.php:1.1.2.2 Thu Jan 26 20:11:18 2006 +++ xoops2jp/html/modules/user/admin/actions/AvatarEditAction.class.php Wed Mar 8 19:21:50 2006 @@ -29,10 +29,30 @@ if (!$this->mActionForm->mFormFile->saveAs(XOOPS_UPLOAD_PATH)) { return false; } - } - - if ($this->mActionForm->mOldFileName != null && $this->mActionForm->mOldFileName != "blank.gif") { + + if ($this->mActionForm->mOldFileName != null && $this->mActionForm->mOldFileName != "blank.gif") { @unlink(XOOPS_UPLOAD_PATH . "/" . $this->mActionForm->mOldFileName); + + // + // Change user_avatar of all users who are setting this avatar. + // + if (!$this->mObject->isNew()) { + $linkHandler =& xoops_getmodulehandler('avatar_user_link'); + $criteria =& new Criteria('avatar_id', $this->mObject->get('avatar_id')); + $linkArr =& $linkHandler->getObjects($criteria); + + $userHandler =& xoops_gethandler('user'); + foreach ($linkArr as $link) { + $user =& $userHandler->get($link->get('user_id')); + + if (is_object($user)) { + $user->set('user_avatar', $this->mObject->get('avatar_file')); + $userHandler->insert($user); + } + unset($user); + } + } + } } return parent::_doExecute(); From minahito @ users.sourceforge.jp Wed Mar 8 19:22:17 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 8 Mar 2006 19:22:17 +0900 Subject: [xoops-cvslog 2385] CVS update: xoops2jp/html/modules/user/admin/templates Message-ID: <20060308102217.B618C2AC014@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/templates/avatar_delete.html diff -u xoops2jp/html/modules/user/admin/templates/avatar_delete.html:1.1.2.2 xoops2jp/html/modules/user/admin/templates/avatar_delete.html:1.1.2.3 --- xoops2jp/html/modules/user/admin/templates/avatar_delete.html:1.1.2.2 Tue Jan 31 14:32:07 2006 +++ xoops2jp/html/modules/user/admin/templates/avatar_delete.html Wed Mar 8 19:22:17 2006 @@ -6,6 +6,8 @@

<{$smarty.const._AD_USER_LANG_AVATAR_DELETE}>

+
<{$smarty.const._AD_USER_TIP_DELETE_AVATAR}>
+
  • <{$smarty.const._AD_USER_MESSAGE_CONFIRM_DELETE}>
From minahito @ users.sourceforge.jp Wed Mar 8 19:23:15 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 8 Mar 2006 19:23:15 +0900 Subject: [xoops-cvslog 2386] CVS update: xoops2jp/html/modules/user/admin/templates Message-ID: <20060308102315.B2F012AC014@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/templates/avatar_list.html diff -u xoops2jp/html/modules/user/admin/templates/avatar_list.html:1.1.2.4 xoops2jp/html/modules/user/admin/templates/avatar_list.html:1.1.2.5 --- xoops2jp/html/modules/user/admin/templates/avatar_list.html:1.1.2.4 Tue Jan 31 15:44:42 2006 +++ xoops2jp/html/modules/user/admin/templates/avatar_list.html Wed Mar 8 19:23:15 2006 @@ -33,6 +33,7 @@
<{$smarty.const._AD_USER_LANG_AVATAR_TYPE}>
" alt="<{$smarty.const._ASCENDING}>" /> " alt="<{$smarty.const._DESCENDING}>" />
<{$smarty.const._AD_USER_LANG_AVATAR_USING_COUNT}> <{$smarty.const._AD_USER_LANG_CONTROL}>
<{$obj->getVar('avatar_display')}> <{$obj->getVar('avatar_weight')}> <{$obj->getVar('avatar_type')}><{$obj->getUsingCount()}> " alt="<{$smarty.const._EDIT}>" /> " alt="<{$smarty.const._DELETE}>" /> From minahito @ users.sourceforge.jp Wed Mar 8 19:23:34 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 8 Mar 2006 19:23:34 +0900 Subject: [xoops-cvslog 2387] CVS update: xoops2jp/html/modules/user/class Message-ID: <20060308102334.80F472AC014@users.sourceforge.jp> Index: xoops2jp/html/modules/user/class/avatar_user_link.php diff -u xoops2jp/html/modules/user/class/avatar_user_link.php:1.1.2.1 xoops2jp/html/modules/user/class/avatar_user_link.php:1.1.2.2 --- xoops2jp/html/modules/user/class/avatar_user_link.php:1.1.2.1 Wed Mar 8 16:50:45 2006 +++ xoops2jp/html/modules/user/class/avatar_user_link.php Wed Mar 8 19:23:34 2006 @@ -33,6 +33,19 @@ return $force ? $this->db->queryF($sql) : $this->db->query($sql); } + + /** + * Delete all of link informations about a user specified. + * + * @return bool + */ + function deleteAllByUser(&$xoopsUser) + { + if (is_object($xoopsUser)) { + $criteria =& new Criteria('user_id', $xoopsUser->get('uid')); + return $this->deleteAll($criteria); + } + } } ?> From minahito @ users.sourceforge.jp Wed Mar 8 19:24:11 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 8 Mar 2006 19:24:11 +0900 Subject: [xoops-cvslog 2388] CVS update: xoops2jp/html/modules/user/class Message-ID: <20060308102411.774492AC014@users.sourceforge.jp> Index: xoops2jp/html/modules/user/class/avatar.php diff -u xoops2jp/html/modules/user/class/avatar.php:1.1.2.1 xoops2jp/html/modules/user/class/avatar.php:1.1.2.2 --- xoops2jp/html/modules/user/class/avatar.php:1.1.2.1 Thu Jan 19 21:12:07 2006 +++ xoops2jp/html/modules/user/class/avatar.php Wed Mar 8 19:24:11 2006 @@ -13,6 +13,13 @@ $this->initVar('avatar_weight', XOBJ_DTYPE_INT, '0', true); $this->initVar('avatar_type', XOBJ_DTYPE_STRING, 'S', true, 1); } + + function getUsingCount() + { + $handler =& xoops_getmodulehandler('avatar_user_link', 'user'); + $criteria =& new Criteria('avatar_id', $this->get('avatar_id')); + return $handler->getCount($criteria); + } } class UserAvatarHandler extends XoopsObjectGenericHandler @@ -23,8 +30,17 @@ function delete(&$obj) { - @unlink(XOOPS_UPLOAD_PATH . "/" . $obj->get('avatar_name')); - return parent::delete($obj); + @unlink(XOOPS_UPLOAD_PATH . "/" . $obj->get('avatar_file')); + if (parent::delete($obj)) { + $linkHandler =& xoops_getmodulehandler('avatar_user_link'); + $criteria =& new Criteria('avatar_id', $obj->get('avatar_id')); + $linkHandler->deleteAll($criteria); + + return true; + } + else { + return false; + } } } From minahito @ users.sourceforge.jp Wed Mar 8 19:24:30 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 8 Mar 2006 19:24:30 +0900 Subject: [xoops-cvslog 2389] CVS update: xoops2jp/html/modules/user/forms Message-ID: <20060308102430.0D34B2AC014@users.sourceforge.jp> Index: xoops2jp/html/modules/user/forms/AvatarEditForm.class.php diff -u xoops2jp/html/modules/user/forms/AvatarEditForm.class.php:1.1.2.2 xoops2jp/html/modules/user/forms/AvatarEditForm.class.php:1.1.2.3 --- xoops2jp/html/modules/user/forms/AvatarEditForm.class.php:1.1.2.2 Thu Feb 2 17:50:01 2006 +++ xoops2jp/html/modules/user/forms/AvatarEditForm.class.php Wed Mar 8 19:24:29 2006 @@ -72,6 +72,23 @@ $obj->set('user_avatar', $this->mFormFile->getFileName()); //< TODO } + + /** + * @return UserAvatarObject + */ + function createAvatar() + { + $avatar = null; + if ($this->mFormFile != null) { + $avatarHandler =& xoops_getmodulehandler('avatar'); + $avatar =& $avatarHandler->create(); + $avatar->set('avatar_file', $this->mFormFile->getFileName()); + $avatar->set('avatar_mimetype', $this->mFormFile->getContentType()); + $avatar->set('avatar_type', 'C'); + } + + return $avatar; + } } ?> From minahito @ users.sourceforge.jp Wed Mar 8 19:24:40 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 8 Mar 2006 19:24:40 +0900 Subject: [xoops-cvslog 2390] CVS update: xoops2jp/html/modules/user/language/english Message-ID: <20060308102440.EB7162AC014@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/english/admin.php diff -u xoops2jp/html/modules/user/language/english/admin.php:1.1.2.10 xoops2jp/html/modules/user/language/english/admin.php:1.1.2.11 --- xoops2jp/html/modules/user/language/english/admin.php:1.1.2.10 Sat Feb 4 17:44:06 2006 +++ xoops2jp/html/modules/user/language/english/admin.php Wed Mar 8 19:24:40 2006 @@ -30,6 +30,7 @@ define('_AD_USER_LANG_AVATAR_NAME', "Name"); define('_AD_USER_LANG_AVATAR_NEW', "Add an avatar"); define('_AD_USER_LANG_AVATAR_TYPE', "Type"); +define('_AD_USER_LANG_AVATAR_USING_COUNT', "User"); define('_AD_USER_LANG_AVATAR_WEIGHT', "Weight"); define('_AD_USER_LANG_BIO', "Others"); define('_AD_USER_LANG_BODY', "Body"); @@ -123,5 +124,6 @@ define('_AD_USER_MESSAGE_CONFIRM_DELETE_RANK', "Do you delete the user rank?"); define('_AD_USER_MESSAGE_DELETE_RANK_SUCCESS', "The user rank has been deleted."); define('_AD_USER_MESSAGE_SAVE_RANK_SUCCESS', "The user rank has been saved."); +define('_AD_USER_TIP_DELETE_AVATAR', "Avatars of users who are using this avatar will be changed to blank.gif."); ?> From minahito @ users.sourceforge.jp Wed Mar 8 19:24:46 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 8 Mar 2006 19:24:46 +0900 Subject: [xoops-cvslog 2391] CVS update: xoops2jp/html/modules/user/language/japanese Message-ID: <20060308102446.2FC402AC014@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/japanese/admin.php diff -u xoops2jp/html/modules/user/language/japanese/admin.php:1.1.2.19 xoops2jp/html/modules/user/language/japanese/admin.php:1.1.2.20 --- xoops2jp/html/modules/user/language/japanese/admin.php:1.1.2.19 Sat Feb 4 17:44:06 2006 +++ xoops2jp/html/modules/user/language/japanese/admin.php Wed Mar 8 19:24:46 2006 @@ -1,127 +1,129 @@ -_%s_ のユーザーグループを削除します。よろしいですか?"); -define('_AD_USER_LANG_GROUP_DELETE_ADVICE2', "グループを削除してもユーザーは削除されません"); -define('_AD_USER_LANG_GROUP_DESC', "説明"); -define('_AD_USER_LANG_GROUP_EDIT', "ユーザーグループ編集"); -define('_AD_USER_LANG_GROUP_GID', "GID"); -define('_AD_USER_LANG_GROUP_LIST', "ユーザーグループ管理"); -define('_AD_USER_LANG_GROUP_NAME', "名前"); -define('_AD_USER_LANG_GROUP_NEW', "ユーザーグループ新規追加"); -define('_AD_USER_LANG_GROUP_NOASSIN_MEMBERS', "このグループに登録されていないユーザー一覧"); -define('_AD_USER_LANG_GROUP_PERMISSION', "パーミッション"); -define('_AD_USER_LANG_GROUP_PROPERTY', "プロパティ"); -define('_AD_USER_LANG_GROUP_TYPE', "タイプ"); -define('_AD_USER_LANG_GROUPID', "グループID"); -define('_AD_USER_LANG_ID', "ID"); -define('_AD_USER_LANG_LASTLOGIN', "最終ログイン"); -define('_AD_USER_LANG_LASTLOGIN_FLAG', "Last Login Flag"); -define('_AD_USER_LANG_LEVEL', "レベル"); -define('_AD_USER_LANG_MAILOK', "当サイトの新着情報などをメールで受け取る"); -define('_AD_USER_LANG_NAME', "本名"); -define('_AD_USER_LANG_NO_SPECIAL_RANK', "NO_SPECIAL_RANK"); -define('_AD_USER_LANG_NOTIFY_METHOD', "イベント更新通知メッセージの受取方法"); -define('_AD_USER_LANG_NOTIFY_MODE', "イベント通知のタイミング"); -define('_AD_USER_LANG_OFF', "オフ"); -define('_AD_USER_LANG_ON', "オン"); -define('_AD_USER_LANG_PASS', "パスワード"); -define('_AD_USER_LANG_PERM_ACCESS', "アクセス"); -define('_AD_USER_LANG_PERM_ACCESS_ADMIN', "アクセス管理権限"); -define('_AD_USER_LANG_PERM_ADMIN', "管理"); -define('_AD_USER_LANG_PERM_BLOCK_ACCESS', "ブロック アクセス権限"); -define('_AD_USER_LANG_PERM_GROUP_PERM_BLOCK', "ブロック管理"); -define('_AD_USER_LANG_PERM_GROUP_PERM_MODULE', "モジュール管理"); -define('_AD_USER_LANG_PERM_MODULE_ACCESS', "システム/モジュール管理権限"); -define('_AD_USER_LANG_PERM_SYSTEM_PERM_MODULE', "システム管理"); -define('_AD_USER_LANG_POSTS', "投稿数"); -define('_AD_USER_LANG_RANK', "ランク"); -define('_AD_USER_LANG_RANK_EDIT', "ユーザーランク編集"); -define('_AD_USER_LANG_RANK_ID', "ID"); -define('_AD_USER_LANG_RANK_IMAGE', "画像"); -define('_AD_USER_LANG_RANK_LIST', "ユーザーランク管理"); -define('_AD_USER_LANG_RANK_MAX', "最高投稿数"); -define('_AD_USER_LANG_RANK_MIN', "最低投稿数"); -define('_AD_USER_LANG_RANK_NEW', "ユーザーランク新規登録"); -define('_AD_USER_LANG_RANK_SPECIAL', "特別ランク"); -define('_AD_USER_LANG_RANK_TITLE', "ランク名"); -define('_AD_USER_LANG_REGDATE', "登録日"); -define('_AD_USER_LANG_REGISTDATE', "登録日時"); -define('_AD_USER_LANG_REGISTDATE_FLAG', "registdate_flag"); -define('_AD_USER_LANG_SENDER', "送信者"); -define('_AD_USER_LANG_SUBJECT', "件名"); -define('_AD_USER_LANG_SUBMIT', "送信"); -define('_AD_USER_LANG_SYSTEM_AVATAR', "システムアバター"); -define('_AD_USER_LANG_TIMEZONE_OFFSET', "タイムゾーン"); -define('_AD_USER_LANG_UID', "UID"); -define('_AD_USER_LANG_UMODE', "コメント表示モード"); -define('_AD_USER_LANG_UNAME', "ユーザー名"); -define('_AD_USER_LANG_UORDER', "コメントの並び順"); -define('_AD_USER_LANG_URL', "ホームページ"); -define('_AD_USER_LANG_USER_AIM', "AIM"); -define('_AD_USER_LANG_USER_DELETE', "ユーザーの削除"); -define('_AD_USER_LANG_USER_DELETE_ADVICE', "_%s_ のユーザーを削除します。よろしいですか?"); -define('_AD_USER_LANG_USER_EDIT', "ユーザーの編集"); -define('_AD_USER_LANG_USER_FROM', "居住地"); -define('_AD_USER_LANG_USER_ICQ', "ICQ"); -define('_AD_USER_LANG_USER_INTREST', "趣味"); -define('_AD_USER_LANG_USER_LIST', "ユーザー管理"); -define('_AD_USER_LANG_USER_MAILOK', "当サイトの新着情報などをメールで受け取る"); -define('_AD_USER_LANG_USER_MSNM', "MSNM"); -define('_AD_USER_LANG_USER_NEW', "ユーザー新規登録"); -define('_AD_USER_LANG_USER_OCC', "職業"); -define('_AD_USER_LANG_USER_SIG', "署名"); -define('_AD_USER_LANG_USER_VIEWEMAIL', "このメールアドレスを公開する"); -define('_AD_USER_LANG_USER_YIM', "YIM"); -define('_AD_USER_LANG_VPASS', "パスワード確認"); -define('_AD_USER_MESSAGE_CONFIRM_DELETE', "本当に削除しますか?"); -define('_AD_USER_MESSAGE_CONFIRM_DELETE_RANK', "このユーザーランクを本当に削除しますか?"); -define('_AD_USER_MESSAGE_DELETE_RANK_SUCCESS', "指定ユーザーランクを削除しました"); -define('_AD_USER_MESSAGE_SAVE_RANK_SUCCESS', "ユーザーランクを保存しました"); - -?> +_%s_ のユーザーグループを削除します。よろしいですか?"); +define('_AD_USER_LANG_GROUP_DELETE_ADVICE2', "グループを削除してもユーザーは削除されません"); +define('_AD_USER_LANG_GROUP_DESC', "説明"); +define('_AD_USER_LANG_GROUP_EDIT', "ユーザーグループ編集"); +define('_AD_USER_LANG_GROUP_GID', "GID"); +define('_AD_USER_LANG_GROUP_LIST', "ユーザーグループ管理"); +define('_AD_USER_LANG_GROUP_NAME', "名前"); +define('_AD_USER_LANG_GROUP_NEW', "ユーザーグループ新規追加"); +define('_AD_USER_LANG_GROUP_NOASSIN_MEMBERS', "このグループに登録されていないユーザー一覧"); +define('_AD_USER_LANG_GROUP_PERMISSION', "パーミッション"); +define('_AD_USER_LANG_GROUP_PROPERTY', "プロパティ"); +define('_AD_USER_LANG_GROUP_TYPE', "タイプ"); +define('_AD_USER_LANG_GROUPID', "グループID"); +define('_AD_USER_LANG_ID', "ID"); +define('_AD_USER_LANG_LASTLOGIN', "最終ログイン"); +define('_AD_USER_LANG_LASTLOGIN_FLAG', "Last Login Flag"); +define('_AD_USER_LANG_LEVEL', "レベル"); +define('_AD_USER_LANG_MAILOK', "当サイトの新着情報などをメールで受け取る"); +define('_AD_USER_LANG_NAME', "本名"); +define('_AD_USER_LANG_NO_SPECIAL_RANK', "NO_SPECIAL_RANK"); +define('_AD_USER_LANG_NOTIFY_METHOD', "イベント更新通知メッセージの受取方法"); +define('_AD_USER_LANG_NOTIFY_MODE', "イベント通知のタイミング"); +define('_AD_USER_LANG_OFF', "オフ"); +define('_AD_USER_LANG_ON', "オン"); +define('_AD_USER_LANG_PASS', "パスワード"); +define('_AD_USER_LANG_PERM_ACCESS', "アクセス"); +define('_AD_USER_LANG_PERM_ACCESS_ADMIN', "アクセス管理権限"); +define('_AD_USER_LANG_PERM_ADMIN', "管理"); +define('_AD_USER_LANG_PERM_BLOCK_ACCESS', "ブロック アクセス権限"); +define('_AD_USER_LANG_PERM_GROUP_PERM_BLOCK', "ブロック管理"); +define('_AD_USER_LANG_PERM_GROUP_PERM_MODULE', "モジュール管理"); +define('_AD_USER_LANG_PERM_MODULE_ACCESS', "システム/モジュール管理権限"); +define('_AD_USER_LANG_PERM_SYSTEM_PERM_MODULE', "システム管理"); +define('_AD_USER_LANG_POSTS', "投稿数"); +define('_AD_USER_LANG_RANK', "ランク"); +define('_AD_USER_LANG_RANK_EDIT', "ユーザーランク編集"); +define('_AD_USER_LANG_RANK_ID', "ID"); +define('_AD_USER_LANG_RANK_IMAGE', "画像"); +define('_AD_USER_LANG_RANK_LIST', "ユーザーランク管理"); +define('_AD_USER_LANG_RANK_MAX', "最高投稿数"); +define('_AD_USER_LANG_RANK_MIN', "最低投稿数"); +define('_AD_USER_LANG_RANK_NEW', "ユーザーランク新規登録"); +define('_AD_USER_LANG_RANK_SPECIAL', "特別ランク"); +define('_AD_USER_LANG_RANK_TITLE', "ランク名"); +define('_AD_USER_LANG_REGDATE', "登録日"); +define('_AD_USER_LANG_REGISTDATE', "登録日時"); +define('_AD_USER_LANG_REGISTDATE_FLAG', "registdate_flag"); +define('_AD_USER_LANG_SENDER', "送信者"); +define('_AD_USER_LANG_SUBJECT', "件名"); +define('_AD_USER_LANG_SUBMIT', "送信"); +define('_AD_USER_LANG_SYSTEM_AVATAR', "システムアバター"); +define('_AD_USER_LANG_TIMEZONE_OFFSET', "タイムゾーン"); +define('_AD_USER_LANG_UID', "UID"); +define('_AD_USER_LANG_UMODE', "コメント表示モード"); +define('_AD_USER_LANG_UNAME', "ユーザー名"); +define('_AD_USER_LANG_UORDER', "コメントの並び順"); +define('_AD_USER_LANG_URL', "ホームページ"); +define('_AD_USER_LANG_USER_AIM', "AIM"); +define('_AD_USER_LANG_USER_DELETE', "ユーザーの削除"); +define('_AD_USER_LANG_USER_DELETE_ADVICE', "_%s_ のユーザーを削除します。よろしいですか?"); +define('_AD_USER_LANG_USER_EDIT', "ユーザーの編集"); +define('_AD_USER_LANG_USER_FROM', "居住地"); +define('_AD_USER_LANG_USER_ICQ', "ICQ"); +define('_AD_USER_LANG_USER_INTREST', "趣味"); +define('_AD_USER_LANG_USER_LIST', "ユーザー管理"); +define('_AD_USER_LANG_USER_MAILOK', "当サイトの新着情報などをメールで受け取る"); +define('_AD_USER_LANG_USER_MSNM', "MSNM"); +define('_AD_USER_LANG_USER_NEW', "ユーザー新規登録"); +define('_AD_USER_LANG_USER_OCC', "職業"); +define('_AD_USER_LANG_USER_SIG', "署名"); +define('_AD_USER_LANG_USER_VIEWEMAIL', "このメールアドレスを公開する"); +define('_AD_USER_LANG_USER_YIM', "YIM"); +define('_AD_USER_LANG_VPASS', "パスワード確認"); +define('_AD_USER_MESSAGE_CONFIRM_DELETE', "本当に削除しますか?"); +define('_AD_USER_MESSAGE_CONFIRM_DELETE_RANK', "このユーザーランクを本当に削除しますか?"); +define('_AD_USER_MESSAGE_DELETE_RANK_SUCCESS', "指定ユーザーランクを削除しました"); +define('_AD_USER_MESSAGE_SAVE_RANK_SUCCESS', "ユーザーランクを保存しました"); +define('_AD_USER_TIP_DELETE_AVATAR', "このアバターを使用しているユーザーのアバターはブランクに変更されます"); + +?> From minahito @ users.sourceforge.jp Wed Mar 8 19:24:55 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 8 Mar 2006 19:24:55 +0900 Subject: [xoops-cvslog 2392] CVS update: xoops2jp/html/modules/user/templates Message-ID: <20060308102455.4ABFE2AC014@users.sourceforge.jp> Index: xoops2jp/html/modules/user/templates/user_avatar_edit.html diff -u xoops2jp/html/modules/user/templates/user_avatar_edit.html:1.1.2.3 xoops2jp/html/modules/user/templates/user_avatar_edit.html:1.1.2.4 --- xoops2jp/html/modules/user/templates/user_avatar_edit.html:1.1.2.3 Thu Feb 2 17:51:06 2006 +++ xoops2jp/html/modules/user/templates/user_avatar_edit.html Wed Mar 8 19:24:55 2006 @@ -12,7 +12,7 @@ <{/if}> -
+ <{xoops_token form=$actionForm}> <{xoops_input type=hidden name=uid value=$actionForm->get('uid')}> From tom_g3x @ users.sourceforge.jp Wed Mar 8 23:41:36 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Wed, 8 Mar 2006 23:41:36 +0900 Subject: [xoops-cvslog 2393] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20060308144136.966FA2AC0B8@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/comment_list.html diff -u xoops2jp/html/modules/base/admin/templates/comment_list.html:1.1.2.4 xoops2jp/html/modules/base/admin/templates/comment_list.html:1.1.2.5 --- xoops2jp/html/modules/base/admin/templates/comment_list.html:1.1.2.4 Tue Feb 21 20:50:28 2006 +++ xoops2jp/html/modules/base/admin/templates/comment_list.html Wed Mar 8 23:41:36 2006 @@ -36,7 +36,7 @@ <{foreach item=obj from=$objects}> - + From tom_g3x @ users.sourceforge.jp Wed Mar 8 23:41:48 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Wed, 8 Mar 2006 23:41:48 +0900 Subject: [xoops-cvslog 2394] CVS update: xoops2jp/html/modules/user/templates Message-ID: <20060308144148.DD2D32AC0B8@users.sourceforge.jp> Index: xoops2jp/html/modules/user/templates/user_userinfo.html diff -u xoops2jp/html/modules/user/templates/user_userinfo.html:1.1.2.7 xoops2jp/html/modules/user/templates/user_userinfo.html:1.1.2.8 --- xoops2jp/html/modules/user/templates/user_userinfo.html:1.1.2.7 Tue Feb 7 22:45:28 2006 +++ xoops2jp/html/modules/user/templates/user_userinfo.html Wed Mar 8 23:41:48 2006 @@ -4,7 +4,7 @@ <{elseif $xoops_isadmin == true}> <{/if}> From minahito @ users.sourceforge.jp Wed Mar 15 16:23:26 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 15 Mar 2006 16:23:26 +0900 Subject: [xoops-cvslog 2395] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20060315072326.0C6E72AC01C@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/handler.php diff -u xoops2jp/html/modules/base/kernel/handler.php:1.1.2.9 xoops2jp/html/modules/base/kernel/handler.php:1.1.2.10 --- xoops2jp/html/modules/base/kernel/handler.php:1.1.2.9 Sat Jan 14 03:24:57 2006 +++ xoops2jp/html/modules/base/kernel/handler.php Wed Mar 15 16:23:25 2006 @@ -94,7 +94,16 @@ $obj =& new $this->mClass(); $obj->assignVars($row); $obj->unsetNew(); - $ret[]=&$obj; + + if ($id_as_key) + { + $ret[$obj->get($this->mPrimary)]=&$obj; + } + else + { + $ret[]=&$obj; + } + unset($obj); } From minahito @ users.sourceforge.jp Wed Mar 15 19:00:18 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 15 Mar 2006 19:00:18 +0900 Subject: [xoops-cvslog 2396] CVS update: xoops2jp/html/class/smarty/plugins Message-ID: <20060315100018.A93922AC095@users.sourceforge.jp> Index: xoops2jp/html/class/smarty/plugins/function.xoops_input.php diff -u xoops2jp/html/class/smarty/plugins/function.xoops_input.php:1.1.2.4 xoops2jp/html/class/smarty/plugins/function.xoops_input.php:1.1.2.5 --- xoops2jp/html/class/smarty/plugins/function.xoops_input.php:1.1.2.4 Thu Dec 29 00:48:52 2005 +++ xoops2jp/html/class/smarty/plugins/function.xoops_input.php Wed Mar 15 19:00:18 2006 @@ -10,6 +10,7 @@ * Author: minahito * Purpose: input tag with sanitize. * Input: name = name of form 'name' + * key = key of the name. If this parameter is array, set it. * type = "text" or other * value = preset value * class = html class @@ -25,6 +26,7 @@ { if(isset($params['name'])) { $name = trim($params['name']); + $key = isset($params['key']) ? trim($params['name']) : null; $type = isset($params['type']) ? strtolower(trim($params['type'])) : "text"; $class = isset($params['class']) ? trim($params['class']) : null; $size = isset($params['size']) ? intval($params['size']) : null; @@ -33,19 +35,27 @@ $id = isset($params['id']) ? trim($params['id']) : null; $default = isset($params['default']) ? trim($params['default']) : null; - $string=" Index: xoops2jp/html/class/smarty/plugins/function.xoops_input.php diff -u xoops2jp/html/class/smarty/plugins/function.xoops_input.php:1.1.2.5 xoops2jp/html/class/smarty/plugins/function.xoops_input.php:1.1.2.6 --- xoops2jp/html/class/smarty/plugins/function.xoops_input.php:1.1.2.5 Wed Mar 15 19:00:18 2006 +++ xoops2jp/html/class/smarty/plugins/function.xoops_input.php Wed Mar 15 19:19:49 2006 @@ -26,7 +26,7 @@ { if(isset($params['name'])) { $name = trim($params['name']); - $key = isset($params['key']) ? trim($params['name']) : null; + $key = isset($params['key']) ? trim($params['key']) : null; $type = isset($params['type']) ? strtolower(trim($params['type'])) : "text"; $class = isset($params['class']) ? trim($params['class']) : null; $size = isset($params['size']) ? intval($params['size']) : null; From minahito @ users.sourceforge.jp Wed Mar 15 19:20:21 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 15 Mar 2006 19:20:21 +0900 Subject: [xoops-cvslog 2398] CVS update: xoops2jp/html/modules/base/class Message-ID: <20060315102021.7F0892AC01C@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/Legacy_Validator.class.php diff -u /dev/null xoops2jp/html/modules/base/class/Legacy_Validator.class.php:1.1.2.1 --- /dev/null Wed Mar 15 19:20:21 2006 +++ xoops2jp/html/modules/base/class/Legacy_Validator.class.php Wed Mar 15 19:20:21 2006 @@ -0,0 +1,24 @@ +isNull()) { + return true; + } + else { + $handleName = $vars['handler']; + $moduleName = isset($vars['module']) ? $vars['module'] : null; + + $handler =& xoops_getmodulehandler($handleName); + $obj =& $handler->get($form->getValue()); + + return is_object($obj); + } + } +} + +?> \ No newline at end of file From nobunobu @ users.sourceforge.jp Thu Mar 23 17:17:20 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Thu, 23 Mar 2006 17:17:20 +0900 Subject: [xoops-cvslog 2399] CVS update: xoops2jp/html/settings Message-ID: <20060323081720.B3ED62AC062@users.sourceforge.jp> Index: xoops2jp/html/settings/site_default.ini.php diff -u xoops2jp/html/settings/site_default.ini.php:1.1.2.6 xoops2jp/html/settings/site_default.ini.php:1.1.2.7 --- xoops2jp/html/settings/site_default.ini.php:1.1.2.6 Wed Jan 11 12:33:26 2006 +++ xoops2jp/html/settings/site_default.ini.php Thu Mar 23 17:17:20 2006 @@ -33,7 +33,7 @@ class=Legacy_RenderSystem [Legacy_AdminRenderSystem] -path=/modules/base/class +path=/modules/base/kernel class=Legacy_AdminRenderSystem From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:30 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:30 +0900 Subject: [xoops-cvslog 2400] CVS update: xoops2jp/html/modules/legacyRender/admin/class Message-ID: <20060324130230.AEB4D2AC065@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/class/index.html diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/class/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:30 2006 +++ xoops2jp/html/modules/legacyRender/admin/class/index.html Fri Mar 24 22:02:30 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:30 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:30 +0900 Subject: [xoops-cvslog 2401] CVS update: xoops2jp/html/modules/legacyRender/admin/forms Message-ID: <20060324130230.D10172AC067@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/forms/index.html diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/forms/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:30 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/index.html Fri Mar 24 22:02:30 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:30 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:30 +0900 Subject: [xoops-cvslog 2402] CVS update: xoops2jp/html/modules/legacyRender/admin/templates Message-ID: <20060324130230.F204A2AC065@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/templates/index.html diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/templates/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:30 2006 +++ xoops2jp/html/modules/legacyRender/admin/templates/index.html Fri Mar 24 22:02:30 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:31 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:31 +0900 Subject: [xoops-cvslog 2403] CVS update: xoops2jp/html/modules/legacyRender/class Message-ID: <20060324130231.1F3572AC067@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/class/index.html diff -u /dev/null xoops2jp/html/modules/legacyRender/class/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:31 2006 +++ xoops2jp/html/modules/legacyRender/class/index.html Fri Mar 24 22:02:31 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:31 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:31 +0900 Subject: [xoops-cvslog 2404] CVS update: xoops2jp/html/modules/legacyRender/images Message-ID: <20060324130231.4266D2AC065@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/images/index.html diff -u /dev/null xoops2jp/html/modules/legacyRender/images/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:31 2006 +++ xoops2jp/html/modules/legacyRender/images/index.html Fri Mar 24 22:02:31 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:31 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:31 +0900 Subject: [xoops-cvslog 2405] CVS update: xoops2jp/html/modules/legacyRender/kernel Message-ID: <20060324130231.642F62AC067@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/kernel/index.html diff -u /dev/null xoops2jp/html/modules/legacyRender/kernel/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:31 2006 +++ xoops2jp/html/modules/legacyRender/kernel/index.html Fri Mar 24 22:02:31 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:31 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:31 +0900 Subject: [xoops-cvslog 2406] CVS update: xoops2jp/html/modules/legacyRender/language/english Message-ID: <20060324130231.871B92AC065@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/language/english/index.html diff -u /dev/null xoops2jp/html/modules/legacyRender/language/english/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:31 2006 +++ xoops2jp/html/modules/legacyRender/language/english/index.html Fri Mar 24 22:02:31 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:31 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:31 +0900 Subject: [xoops-cvslog 2407] CVS update: xoops2jp/html/modules/legacyRender/language/japanese Message-ID: <20060324130231.AAD972AC067@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/language/japanese/index.html diff -u /dev/null xoops2jp/html/modules/legacyRender/language/japanese/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:31 2006 +++ xoops2jp/html/modules/legacyRender/language/japanese/index.html Fri Mar 24 22:02:31 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:31 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:31 +0900 Subject: [xoops-cvslog 2408] CVS update: xoops2jp/html/modules/legacyRender/sql Message-ID: <20060324130231.CE45B2AC065@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/sql/index.html diff -u /dev/null xoops2jp/html/modules/legacyRender/sql/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:31 2006 +++ xoops2jp/html/modules/legacyRender/sql/index.html Fri Mar 24 22:02:31 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:31 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:31 +0900 Subject: [xoops-cvslog 2409] CVS update: xoops2jp/html/modules/legacyRender/templates Message-ID: <20060324130231.F0D5B2AC06F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/templates/index.html diff -u /dev/null xoops2jp/html/modules/legacyRender/templates/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:31 2006 +++ xoops2jp/html/modules/legacyRender/templates/index.html Fri Mar 24 22:02:31 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:32 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:32 +0900 Subject: [xoops-cvslog 2410] CVS update: xoops2jp/html/modules/user/.xml Message-ID: <20060324130232.1FC6A2AC067@users.sourceforge.jp> Index: xoops2jp/html/modules/user/.xml/index.html diff -u /dev/null xoops2jp/html/modules/user/.xml/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:32 2006 +++ xoops2jp/html/modules/user/.xml/index.html Fri Mar 24 22:02:32 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:32 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:32 +0900 Subject: [xoops-cvslog 2411] CVS update: xoops2jp/html/modules/user/actions Message-ID: <20060324130232.552562AC065@users.sourceforge.jp> Index: xoops2jp/html/modules/user/actions/index.html diff -u /dev/null xoops2jp/html/modules/user/actions/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:32 2006 +++ xoops2jp/html/modules/user/actions/index.html Fri Mar 24 22:02:32 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:32 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:32 +0900 Subject: [xoops-cvslog 2412] CVS update: xoops2jp/html/modules/user/admin/.xml Message-ID: <20060324130232.809492AC067@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/.xml/index.html diff -u /dev/null xoops2jp/html/modules/user/admin/.xml/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:32 2006 +++ xoops2jp/html/modules/user/admin/.xml/index.html Fri Mar 24 22:02:32 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:32 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:32 +0900 Subject: [xoops-cvslog 2413] CVS update: xoops2jp/html/modules/user/admin/actions Message-ID: <20060324130232.AB7B42AC065@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/actions/index.html diff -u /dev/null xoops2jp/html/modules/user/admin/actions/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:32 2006 +++ xoops2jp/html/modules/user/admin/actions/index.html Fri Mar 24 22:02:32 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:32 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:32 +0900 Subject: [xoops-cvslog 2414] CVS update: xoops2jp/html/modules/user/admin/class Message-ID: <20060324130232.CED3C2AC06F@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/class/index.html diff -u /dev/null xoops2jp/html/modules/user/admin/class/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:32 2006 +++ xoops2jp/html/modules/user/admin/class/index.html Fri Mar 24 22:02:32 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:32 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:32 +0900 Subject: [xoops-cvslog 2415] CVS update: xoops2jp/html/modules/user/admin/forms Message-ID: <20060324130232.F11A72AC067@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/forms/index.html diff -u /dev/null xoops2jp/html/modules/user/admin/forms/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:32 2006 +++ xoops2jp/html/modules/user/admin/forms/index.html Fri Mar 24 22:02:32 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:33 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:33 +0900 Subject: [xoops-cvslog 2416] CVS update: xoops2jp/html/modules/user/admin/templates Message-ID: <20060324130233.26A0C2AC065@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/templates/index.html diff -u /dev/null xoops2jp/html/modules/user/admin/templates/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:33 2006 +++ xoops2jp/html/modules/user/admin/templates/index.html Fri Mar 24 22:02:33 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:33 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:33 +0900 Subject: [xoops-cvslog 2417] CVS update: xoops2jp/html/modules/user/class Message-ID: <20060324130233.4BA992AC067@users.sourceforge.jp> Index: xoops2jp/html/modules/user/class/index.html diff -u /dev/null xoops2jp/html/modules/user/class/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:33 2006 +++ xoops2jp/html/modules/user/class/index.html Fri Mar 24 22:02:33 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:30 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:30 +0900 Subject: [xoops-cvslog 2418] CVS update: xoops2jp/html/modules/legacyRender/admin/.xml Message-ID: <20060324130230.6A4572AC00E@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/.xml/index.html diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/.xml/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:30 2006 +++ xoops2jp/html/modules/legacyRender/admin/.xml/index.html Fri Mar 24 22:02:30 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:33 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:33 +0900 Subject: [xoops-cvslog 2419] CVS update: xoops2jp/html/modules/user/forms Message-ID: <20060324130233.770F22AC070@users.sourceforge.jp> Index: xoops2jp/html/modules/user/forms/index.html diff -u /dev/null xoops2jp/html/modules/user/forms/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:33 2006 +++ xoops2jp/html/modules/user/forms/index.html Fri Mar 24 22:02:33 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:30 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:30 +0900 Subject: [xoops-cvslog 2420] CVS update: xoops2jp/html/modules/legacyRender/admin/actions Message-ID: <20060324130230.8DB692AC05D@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/admin/actions/index.html diff -u /dev/null xoops2jp/html/modules/legacyRender/admin/actions/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:30 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/index.html Fri Mar 24 22:02:30 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:33 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:33 +0900 Subject: [xoops-cvslog 2421] CVS update: xoops2jp/html/modules/user/images Message-ID: <20060324130233.A2FD52AC065@users.sourceforge.jp> Index: xoops2jp/html/modules/user/images/index.html diff -u /dev/null xoops2jp/html/modules/user/images/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:33 2006 +++ xoops2jp/html/modules/user/images/index.html Fri Mar 24 22:02:33 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:33 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:33 +0900 Subject: [xoops-cvslog 2422] CVS update: xoops2jp/html/modules/user/kernel Message-ID: <20060324130233.D03862AC00E@users.sourceforge.jp> Index: xoops2jp/html/modules/user/kernel/index.html diff -u /dev/null xoops2jp/html/modules/user/kernel/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:33 2006 +++ xoops2jp/html/modules/user/kernel/index.html Fri Mar 24 22:02:33 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:34 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:34 +0900 Subject: [xoops-cvslog 2423] CVS update: xoops2jp/html/modules/user/language/english Message-ID: <20060324130234.095702AC05D@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/english/index.html diff -u /dev/null xoops2jp/html/modules/user/language/english/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:33 2006 +++ xoops2jp/html/modules/user/language/english/index.html Fri Mar 24 22:02:33 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:34 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:34 +0900 Subject: [xoops-cvslog 2424] CVS update: xoops2jp/html/modules/user/language/english/mail_template Message-ID: <20060324130234.319302AC065@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/english/mail_template/index.html diff -u /dev/null xoops2jp/html/modules/user/language/english/mail_template/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:34 2006 +++ xoops2jp/html/modules/user/language/english/mail_template/index.html Fri Mar 24 22:02:34 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:34 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:34 +0900 Subject: [xoops-cvslog 2425] CVS update: xoops2jp/html/modules/user/language/japanese Message-ID: <20060324130234.57C9F2AC00E@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/japanese/index.html diff -u /dev/null xoops2jp/html/modules/user/language/japanese/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:34 2006 +++ xoops2jp/html/modules/user/language/japanese/index.html Fri Mar 24 22:02:34 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:02:34 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:02:34 +0900 Subject: [xoops-cvslog 2426] CVS update: xoops2jp/html/modules/user/templates Message-ID: <20060324130234.7ABBF2AC05D@users.sourceforge.jp> Index: xoops2jp/html/modules/user/templates/index.html diff -u /dev/null xoops2jp/html/modules/user/templates/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:02:34 2006 +++ xoops2jp/html/modules/user/templates/index.html Fri Mar 24 22:02:34 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:03:31 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:03:31 +0900 Subject: [xoops-cvslog 2427] CVS update: xoops2jp/html/modules/user/blocks Message-ID: <20060324130331.219CA2AC00E@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Fri Mar 24 22:03:38 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:03:38 +0900 Subject: [xoops-cvslog 2428] CVS update: xoops2jp/html/modules/user/templates/blocks Message-ID: <20060324130338.B9E822AC00E@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Fri Mar 24 22:04:24 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:04:24 +0900 Subject: [xoops-cvslog 2429] CVS update: xoops2jp/html/modules/user/language/english Message-ID: <20060324130424.BABD42AC05D@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/english/modinfo.php diff -u xoops2jp/html/modules/user/language/english/modinfo.php:1.1.2.7 xoops2jp/html/modules/user/language/english/modinfo.php:1.1.2.8 --- xoops2jp/html/modules/user/language/english/modinfo.php:1.1.2.7 Sat Feb 4 16:26:45 2006 +++ xoops2jp/html/modules/user/language/english/modinfo.php Fri Mar 24 22:04:24 2006 @@ -54,4 +54,12 @@ define('_MI_USER_NAME', "User module"); define('_MI_USER_NAME_DESC', "This module manages user account."); +define('_MI_USER_BLOCK_LOGIN_NAME', "Login"); +define('_MI_USER_BLOCK_LOGIN_DESC', "Shows login form"); +define('_MI_USER_BLOCK_ONLINE_NAME', "Who's Online); +define('_MI_USER_BLOCK_ONLINE_DESC', "Displays users/guests currently online"); +define('_MI_USER_BLOCK_NEWUSERS_NAME', "New Members"); +define('_MI_USER_BLOCK_NEWUSERS_DESC', "Shows most recent users"); +define('_MI_USER_BLOCK_TOPUSERS_NAME', "Top Posters"); +define('_MI_USER_BLOCK_TOPUSERS_DESC', "Top posters"); ?> Index: xoops2jp/html/modules/user/language/english/blocks.php diff -u /dev/null xoops2jp/html/modules/user/language/english/blocks.php:1.1.2.1 --- /dev/null Fri Mar 24 22:04:24 2006 +++ xoops2jp/html/modules/user/language/english/blocks.php Fri Mar 24 22:04:24 2006 @@ -0,0 +1,18 @@ +%s user(s) are browsing %s"); +define('_MB_USER_MEMBERS',"Members"); +define('_MB_USER_GUESTS',"Guests"); +define('_MB_USER_MORE',"more..."); + +define('_MB_USER_DISPLAY',"Display %s members"); +define('_MB_USER_DISPLAYA',"Display member avatars"); +define('_MB_USER_NODISPGR',"Do not display users whose rank is:"); +?> From nobunobu @ users.sourceforge.jp Fri Mar 24 22:04:24 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:04:24 +0900 Subject: [xoops-cvslog 2430] CVS update: xoops2jp/html/modules/user/language/japanese Message-ID: <20060324130424.DE7AA2AC065@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/japanese/modinfo.php diff -u xoops2jp/html/modules/user/language/japanese/modinfo.php:1.1.2.11 xoops2jp/html/modules/user/language/japanese/modinfo.php:1.1.2.12 --- xoops2jp/html/modules/user/language/japanese/modinfo.php:1.1.2.11 Sun Feb 5 19:33:39 2006 +++ xoops2jp/html/modules/user/language/japanese/modinfo.php Fri Mar 24 22:04:24 2006 @@ -54,4 +54,12 @@ define('_MI_USER_NAME', "ユーザーモジュール"); define('_MI_USER_NAME_DESC', "ユーザーアカウントに関する処理を行う基盤モジュール"); +define('_MI_USER_BLOCK_LOGIN_NAME', "ログイン"); +define('_MI_USER_BLOCK_LOGIN_DESC', "ログインフォームを表示します"); +define('_MI_USER_BLOCK_ONLINE_NAME', "オンライン状況"); +define('_MI_USER_BLOCK_ONLINE_DESC', "オンライン状況を表示します"); +define('_MI_USER_BLOCK_NEWUSERS_NAME', "新しい登録ユーザ"); +define('_MI_USER_BLOCK_NEWUSERS_DESC', "新しい登録ユーザの一覧を表示します"); +define('_MI_USER_BLOCK_TOPUSERS_NAME', "投稿数ランキング"); +define('_MI_USER_BLOCK_TOPUSERS_DESC', "投稿数のランキングを表示します"); ?> Index: xoops2jp/html/modules/user/language/japanese/blocks.php diff -u /dev/null xoops2jp/html/modules/user/language/japanese/blocks.php:1.1.2.1 --- /dev/null Fri Mar 24 22:04:24 2006 +++ xoops2jp/html/modules/user/language/japanese/blocks.php Fri Mar 24 22:04:24 2006 @@ -0,0 +1,18 @@ +%s 人のユーザが現在オンラインです。"); +define('_MB_USER_MEMBERS',"登録ユーザ"); +define('_MB_USER_GUESTS',"ゲスト"); +define('_MB_USER_MORE',"もっと..."); + +define('_MB_USER_DISPLAY',"%s 人を表示"); +define('_MB_USER_DISPLAYA',"ユーザのアバターを表示"); +define('_MB_USER_NODISPGR',"以下の特別ランクのユーザは除外する:"); +?> From nobunobu @ users.sourceforge.jp Fri Mar 24 22:04:25 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:04:25 +0900 Subject: [xoops-cvslog 2431] CVS update: xoops2jp/html/modules/user Message-ID: <20060324130425.0C99F2AC05D@users.sourceforge.jp> Index: xoops2jp/html/modules/user/xoops_version.php diff -u xoops2jp/html/modules/user/xoops_version.php:1.1.2.14 xoops2jp/html/modules/user/xoops_version.php:1.1.2.15 --- xoops2jp/html/modules/user/xoops_version.php:1.1.2.14 Sun Feb 5 19:33:39 2006 +++ xoops2jp/html/modules/user/xoops_version.php Fri Mar 24 22:04:24 2006 @@ -1,5 +1,5 @@ From nobunobu @ users.sourceforge.jp Fri Mar 24 22:04:25 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:04:25 +0900 Subject: [xoops-cvslog 2432] CVS update: xoops2jp/html/modules/user/blocks Message-ID: <20060324130425.3778D2AC065@users.sourceforge.jp> Index: xoops2jp/html/modules/user/blocks/index.html diff -u /dev/null xoops2jp/html/modules/user/blocks/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:04:25 2006 +++ xoops2jp/html/modules/user/blocks/index.html Fri Mar 24 22:04:25 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/user/blocks/user_login.php diff -u /dev/null xoops2jp/html/modules/user/blocks/user_login.php:1.1.2.1 --- /dev/null Fri Mar 24 22:04:25 2006 +++ xoops2jp/html/modules/user/blocks/user_login.php Fri Mar 24 22:04:25 2006 @@ -0,0 +1,28 @@ +getConfigsByCat(XOOPS_CONF_USER); + $block['allow_register'] = $xoopsConfigUser['allow_register']; + + $block['use_ssl'] = $xoopsConfig['use_ssl']; + if ($xoopsConfig['use_ssl'] == 1 && $xoopsConfig['sslloginlink'] != '') { + $block['sslloginlink'] = $xoopsConfig['sslloginlink']; + } else { + $block['use_ssl'] = 0; + $block['sslloginlink'] = ''; + } + return $block; + } + return false; +} +?> Index: xoops2jp/html/modules/user/blocks/user_newusers.php diff -u /dev/null xoops2jp/html/modules/user/blocks/user_newusers.php:1.1.2.1 --- /dev/null Fri Mar 24 22:04:25 2006 +++ xoops2jp/html/modules/user/blocks/user_newusers.php Fri Mar 24 22:04:25 2006 @@ -0,0 +1,41 @@ +')); + $limit = (!empty($options[0])) ? $options[0] : 10; + $criteria->setOrder('DESC'); + $criteria->setSort('user_regdate'); + $criteria->setLimit($limit); + $member_handler =& xoops_gethandler('member'); + $newmembers =& $member_handler->getUsers($criteria); + $count = count($newmembers); + for ($i = 0; $i < $count; $i++) { + if ( $options[1] == 1 ) { + $block['users'][$i]['avatar'] = $newmembers[$i]->getVar('user_avatar') != 'blank.gif' ? XOOPS_UPLOAD_URL.'/'.$newmembers[$i]->getVar('user_avatar') : ''; + } else { + $block['users'][$i]['avatar'] = ''; + } + $block['users'][$i]['id'] = $newmembers[$i]->getVar('uid'); + $block['users'][$i]['name'] = $newmembers[$i]->getVar('uname'); + $block['users'][$i]['joindate'] = formatTimestamp($newmembers[$i]->getVar('user_regdate'), 's'); + } + return $block; +} + +function b_user_newusers_edit($options) +{ + $inputtag = ''; + $form = sprintf(_MB_USER_DISPLAY,$inputtag); + $form .= '
'._MB_USER_DISPLAYA.'  Index: xoops2jp/html/modules/user/blocks/user_online.php diff -u /dev/null xoops2jp/html/modules/user/blocks/user_online.php:1.1.2.1 --- /dev/null Fri Mar 24 22:04:25 2006 +++ xoops2jp/html/modules/user/blocks/user_online.php Fri Mar 24 22:04:25 2006 @@ -0,0 +1,56 @@ +gc(300); + } + if (is_object($xoopsUser)) { + $uid = $xoopsUser->getVar('uid'); + $uname = $xoopsUser->getVar('uname'); + } else { + $uid = 0; + $uname = ''; + } + if (is_object($xoopsModule)) { + $online_handler->write($uid, $uname, time(), $xoopsModule->get('mid'), $_SERVER['REMOTE_ADDR']); + } else { + // + // TODO We have to find the best method. + // + if (strpos(xoops_getenv('REQUEST_URI'),'misc.php') === false) { + $online_handler->write($uid, $uname, time(), 0, $_SERVER['REMOTE_ADDR']); + } + } + $onlines =& $online_handler->getAll(); + if (false != $onlines) { + $total = count($onlines); + $block = array(); + $guests = 0; + $members = ''; + for ($i = 0; $i < $total; $i++) { + if ($onlines[$i]['online_uid'] > 0) { + $member['uid'] = $onlines[$i]['online_uid']; + $member['uname'] = $onlines[$i]['online_uname']; + $member_list[] = $member; + } else { + $guests++; + } + } + $block['online_total'] = sprintf(_ONLINEPHRASE, $total); + if (is_object($xoopsModule)) { + $mytotal = $online_handler->getCount(new Criteria('online_module', $xoopsModule->getVar('mid'))); + $block['online_total'] .= ' ('.sprintf(_MB_USER_ONLINEPHRASEX, $mytotal, $xoopsModule->getVar('name')).')'; + } + $block['online_members'] = $total - $guests; + $block['online_member_list'] = $member_list; + $block['online_guests'] = $guests; + return $block; + } else { + return false; + } +} +?> Index: xoops2jp/html/modules/user/blocks/user_topusers.php diff -u /dev/null xoops2jp/html/modules/user/blocks/user_topusers.php:1.1.2.1 --- /dev/null Fri Mar 24 22:04:25 2006 +++ xoops2jp/html/modules/user/blocks/user_topusers.php Fri Mar 24 22:04:25 2006 @@ -0,0 +1,60 @@ +')); + $limit = (!empty($options[0])) ? $options[0] : 10; + $size = count($options); + for ( $i = 2; $i < $size; $i++) { + $criteria->add(new Criteria('rank', $options[$i], '<>')); + } + $criteria->setOrder('DESC'); + $criteria->setSort('posts'); + $criteria->setLimit($limit); + $member_handler =& xoops_gethandler('member'); + $topposters =& $member_handler->getUsers($criteria); + $count = count($topposters); + for ($i = 0; $i < $count; $i++) { + $block['users'][$i]['rank'] = $i+1; + if ( $options[1] == 1 ) { + $block['users'][$i]['avatar'] = $topposters[$i]->getVar('user_avatar') != 'blank.gif' ? XOOPS_UPLOAD_URL.'/'.$topposters[$i]->getVar('user_avatar') : ''; + } else { + $block['users'][$i]['avatar'] = ''; + } + $block['users'][$i]['id'] = $topposters[$i]->getVar('uid'); + $block['users'][$i]['name'] = $topposters[$i]->getVar('uname'); + $block['users'][$i]['posts'] = $topposters[$i]->getVar('posts'); + } + return $block; +} + +function b_user_topusers_edit($options) +{ + include_once XOOPS_ROOT_PATH.'/class/xoopslists.php'; + $inputtag = ''; + $form = sprintf(_MB_USER_DISPLAY,$inputtag); + $form .= '
'._MB_USER_DISPLAYA.' '; + return $form; +} +?> From nobunobu @ users.sourceforge.jp Fri Mar 24 22:04:25 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:04:25 +0900 Subject: [xoops-cvslog 2433] CVS update: xoops2jp/html/modules/user/templates/blocks Message-ID: <20060324130425.651212AC05D@users.sourceforge.jp> Index: xoops2jp/html/modules/user/templates/blocks/index.html diff -u /dev/null xoops2jp/html/modules/user/templates/blocks/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:04:25 2006 +++ xoops2jp/html/modules/user/templates/blocks/index.html Fri Mar 24 22:04:25 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/user/templates/blocks/user_block_login.html diff -u /dev/null xoops2jp/html/modules/user/templates/blocks/user_block_login.html:1.1.2.1 --- /dev/null Fri Mar 24 22:04:25 2006 +++ xoops2jp/html/modules/user/templates/blocks/user_block_login.html Fri Mar 24 22:04:25 2006 @@ -0,0 +1,18 @@ + + <{$smarty.const._MB_USER_USERNAME}>
+ <{xoops_input type=text name=uname size=12 value=$block.unamevalue maxlength=25}>
+ <{$smarty.const._MB_USER_PASSWORD}>
+ <{xoops_input type=password name=pass size=12 maxlength=32 }>
+ + <{xoops_input type=hidden name=xoops_redirect value=$xoops_requesturi}> + <{xoops_input type=hidden name=op value=login}> + <{xoops_input type=submit name=submit value=$smarty.const._MB_USER_LOGIN}>
+ +<{if $block.use_ssl == '1'}> +<{$smarty.const._MB_USER_SECURE}> +<{/if}> +<{$smarty.const._MB_USER_LOSTPASS}> +

+<{if $block.allow_register == '1'}> +<{$smarty.const._MB_USER_USERREG}> +<{/if}> Index: xoops2jp/html/modules/user/templates/blocks/user_block_newusers.html diff -u /dev/null xoops2jp/html/modules/user/templates/blocks/user_block_newusers.html:1.1.2.1 --- /dev/null Fri Mar 24 22:04:25 2006 +++ xoops2jp/html/modules/user/templates/blocks/user_block_newusers.html Fri Mar 24 22:04:25 2006 @@ -0,0 +1,13 @@ +
<{$obj->getVar('com_id')}><{$obj->mModule->getVar('name')}><{$obj->getVar('name')}> <{$obj->getVar('com_title')}> <{$obj->getVar('com_created')|xoops_formattimestamp:l}> <{$obj->getVar('com_modified')|xoops_formattimestamp:l}>
+ <{foreach item=user from=$block.users}> + " valign="middle"> + + + + <{/foreach}> +
+ <{if $user.avatar != ""}> +
+ <{/if}> + <{$user.name}> +
<{$user.joindate}>
Index: xoops2jp/html/modules/user/templates/blocks/user_block_online.html diff -u /dev/null xoops2jp/html/modules/user/templates/blocks/user_block_online.html:1.1.2.1 --- /dev/null Fri Mar 24 22:04:25 2006 +++ xoops2jp/html/modules/user/templates/blocks/user_block_online.html Fri Mar 24 22:04:25 2006 @@ -0,0 +1,7 @@ +<{$block.online_total}>

+<{$smarty.const._MB_USER_MEMBERS}>: <{$block.online_members}>
+<{$smarty.const._MB_USER_GUESTS}>: <{$block.online_guests}>

+<{foreach item=member from=$block.online_member_list}> +<{$member.uname}> +<{/foreach}> +<{$smarty.const._MB_USER_MORE}> Index: xoops2jp/html/modules/user/templates/blocks/user_block_topusers.html diff -u /dev/null xoops2jp/html/modules/user/templates/blocks/user_block_topusers.html:1.1.2.1 --- /dev/null Fri Mar 24 22:04:25 2006 +++ xoops2jp/html/modules/user/templates/blocks/user_block_topusers.html Fri Mar 24 22:04:25 2006 @@ -0,0 +1,14 @@ + + <{foreach item=user from=$block.users}> + " valign="middle"> + + + + + <{/foreach}> +
<{$user.rank}> + <{if $user.avatar != ""}> +
+ <{/if}> + <{$user.name}> +
<{$user.posts}>
From nobunobu @ users.sourceforge.jp Fri Mar 24 22:04:48 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:04:48 +0900 Subject: [xoops-cvslog 2434] CVS update: xoops2jp/html/modules/user/language/japanese/mail_template Message-ID: <20060324130448.3832C2AC05D@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/japanese/mail_template/index.html diff -u /dev/null xoops2jp/html/modules/user/language/japanese/mail_template/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:04:48 2006 +++ xoops2jp/html/modules/user/language/japanese/mail_template/index.html Fri Mar 24 22:04:48 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Fri Mar 24 22:05:09 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:05:09 +0900 Subject: [xoops-cvslog 2435] CVS update: xoops2jp/html/modules/legacyRender/blocks Message-ID: <20060324130509.79E732AC00E@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Fri Mar 24 22:05:16 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:05:16 +0900 Subject: [xoops-cvslog 2436] CVS update: xoops2jp/html/modules/legacyRender/templates/blocks Message-ID: <20060324130516.BD1AE2AC00E@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Fri Mar 24 22:05:45 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:05:45 +0900 Subject: [xoops-cvslog 2437] CVS update: xoops2jp/html/modules/legacyRender/language/english Message-ID: <20060324130545.CA3892AC00E@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/language/english/modinfo.php diff -u xoops2jp/html/modules/legacyRender/language/english/modinfo.php:1.1.2.6 xoops2jp/html/modules/legacyRender/language/english/modinfo.php:1.1.2.7 --- xoops2jp/html/modules/legacyRender/language/english/modinfo.php:1.1.2.6 Sat Feb 4 15:55:50 2006 +++ xoops2jp/html/modules/legacyRender/language/english/modinfo.php Fri Mar 24 22:05:45 2006 @@ -15,4 +15,7 @@ define('_MI_LEGACYRENDER_NAME', "Legacy renderer"); define('_MI_LEGACYRENDER_NAME_DESC', "This rendering engine (renderer) has compatibility with XOOPS 2.0.9 and XOOPS JP 2.0.x. You can use XOOPS2 Theme on this system."); +define('_MI_LEGACYRENDER_BLOCK_THEME_NAME', "Themes"); +define('_MI_LEGACYRENDER_BLOCK_THEME_DESC', "Shows theme selection box"); + ?> Index: xoops2jp/html/modules/legacyRender/language/english/blocks.php diff -u /dev/null xoops2jp/html/modules/legacyRender/language/english/blocks.php:1.1.2.1 --- /dev/null Fri Mar 24 22:05:45 2006 +++ xoops2jp/html/modules/legacyRender/language/english/blocks.php Fri Mar 24 22:05:45 2006 @@ -0,0 +1,6 @@ + From nobunobu @ users.sourceforge.jp Fri Mar 24 22:05:45 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:05:45 +0900 Subject: [xoops-cvslog 2438] CVS update: xoops2jp/html/modules/legacyRender/language/japanese Message-ID: <20060324130545.EE3F62AC05D@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/language/japanese/modinfo.php diff -u xoops2jp/html/modules/legacyRender/language/japanese/modinfo.php:1.1.2.5 xoops2jp/html/modules/legacyRender/language/japanese/modinfo.php:1.1.2.6 --- xoops2jp/html/modules/legacyRender/language/japanese/modinfo.php:1.1.2.5 Sun Jan 29 16:15:09 2006 +++ xoops2jp/html/modules/legacyRender/language/japanese/modinfo.php Fri Mar 24 22:05:45 2006 @@ -15,4 +15,7 @@ define('_MI_LEGACYRENDER_NAME', "互換レンダーシステム"); define('_MI_LEGACYRENDER_NAME_DESC', "XOOPS 2.0.9/XOOPS JP 2.0.x のテーマエンジンと互換性のあるレンダーシステムです。XOOPS2テーマを使用可能です。"); +define('_MI_LEGACYRENDER_BLOCK_THEME_NAME', "テーマ選択"); +define('_MI_LEGACYRENDER_BLOCK_THEME_DESC', "テーマ選択フォームを表示します"); + ?> Index: xoops2jp/html/modules/legacyRender/language/japanese/blocks.php diff -u /dev/null xoops2jp/html/modules/legacyRender/language/japanese/blocks.php:1.1.2.1 --- /dev/null Fri Mar 24 22:05:45 2006 +++ xoops2jp/html/modules/legacyRender/language/japanese/blocks.php Fri Mar 24 22:05:45 2006 @@ -0,0 +1,6 @@ + From nobunobu @ users.sourceforge.jp Fri Mar 24 22:05:46 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:05:46 +0900 Subject: [xoops-cvslog 2439] CVS update: xoops2jp/html/modules/legacyRender Message-ID: <20060324130546.20AFD2AC00E@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/xoops_version.php diff -u xoops2jp/html/modules/legacyRender/xoops_version.php:1.1.2.5 xoops2jp/html/modules/legacyRender/xoops_version.php:1.1.2.6 --- xoops2jp/html/modules/legacyRender/xoops_version.php:1.1.2.5 Sat Jan 14 02:34:43 2006 +++ xoops2jp/html/modules/legacyRender/xoops_version.php Fri Mar 24 22:05:45 2006 @@ -1,6 +1,6 @@ From nobunobu @ users.sourceforge.jp Fri Mar 24 22:05:46 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:05:46 +0900 Subject: [xoops-cvslog 2440] CVS update: xoops2jp/html/modules/legacyRender/blocks Message-ID: <20060324130546.483132AC05D@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/blocks/index.html diff -u /dev/null xoops2jp/html/modules/legacyRender/blocks/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:05:46 2006 +++ xoops2jp/html/modules/legacyRender/blocks/index.html Fri Mar 24 22:05:46 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacyRender/blocks/legacyRender_themes.php diff -u /dev/null xoops2jp/html/modules/legacyRender/blocks/legacyRender_themes.php:1.1.2.1 --- /dev/null Fri Mar 24 22:05:46 2006 +++ xoops2jp/html/modules/legacyRender/blocks/legacyRender_themes.php Fri Mar 24 22:05:46 2006 @@ -0,0 +1,41 @@ + '._YES; + $chk = ""; + if ( $options[0] == 0 ) { + $chk = ' checked="checked"'; + } + $form .= ' '._NO; + $form .= '
'._MB_LEGACYRENDER_THWIDTH.' '; + $form .= ''; + return $form; +} +?> From nobunobu @ users.sourceforge.jp Fri Mar 24 22:05:46 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Fri, 24 Mar 2006 22:05:46 +0900 Subject: [xoops-cvslog 2441] CVS update: xoops2jp/html/modules/legacyRender/templates/blocks Message-ID: <20060324130546.6CCE12AC00E@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/templates/blocks/index.html diff -u /dev/null xoops2jp/html/modules/legacyRender/templates/blocks/index.html:1.1.2.1 --- /dev/null Fri Mar 24 22:05:46 2006 +++ xoops2jp/html/modules/legacyRender/templates/blocks/index.html Fri Mar 24 22:05:46 2006 @@ -0,0 +1 @@ + \ No newline at end of file Index: xoops2jp/html/modules/legacyRender/templates/blocks/legacyRender_block_themes.html diff -u /dev/null xoops2jp/html/modules/legacyRender/templates/blocks/legacyRender_block_themes.html:1.1.2.1 --- /dev/null Fri Mar 24 22:05:46 2006 +++ xoops2jp/html/modules/legacyRender/templates/blocks/legacyRender_block_themes.html Fri Mar 24 22:05:46 2006 @@ -0,0 +1,18 @@ +
+
+<{if $block.mode==1}> + screenshot
+ +<{/if}> +<{foreach item=theme_option from=$block.theme_options}> + +<{/foreach}> + +<{if $block.mode==1}> + +<{/if}> +
(<{""|cat:$block.count|cat:""|string_format:$smarty.const._MB_LEGACYRENDER_NUMTHEME}>)
+
+
From nobunobu @ users.sourceforge.jp Sat Mar 25 23:26:11 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sat, 25 Mar 2006 23:26:11 +0900 Subject: [xoops-cvslog 2442] CVS update: xoops2jp/html/modules/user/language/english Message-ID: <20060325142611.7267B2AC00E@users.sourceforge.jp> Index: xoops2jp/html/modules/user/language/english/modinfo.php diff -u xoops2jp/html/modules/user/language/english/modinfo.php:1.1.2.8 xoops2jp/html/modules/user/language/english/modinfo.php:1.1.2.9 --- xoops2jp/html/modules/user/language/english/modinfo.php:1.1.2.8 Fri Mar 24 22:04:24 2006 +++ xoops2jp/html/modules/user/language/english/modinfo.php Sat Mar 25 23:26:11 2006 @@ -56,7 +56,7 @@ define('_MI_USER_BLOCK_LOGIN_NAME', "Login"); define('_MI_USER_BLOCK_LOGIN_DESC', "Shows login form"); -define('_MI_USER_BLOCK_ONLINE_NAME', "Who's Online); +define('_MI_USER_BLOCK_ONLINE_NAME', "Who's Online"); define('_MI_USER_BLOCK_ONLINE_DESC', "Displays users/guests currently online"); define('_MI_USER_BLOCK_NEWUSERS_NAME', "New Members"); define('_MI_USER_BLOCK_NEWUSERS_DESC', "Shows most recent users"); From nobunobu @ users.sourceforge.jp Sun Mar 26 15:06:59 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 26 Mar 2006 15:06:59 +0900 Subject: [xoops-cvslog 2443] CVS update: xoops2jp/html/modules/base/blocks Message-ID: <20060326060659.A8A202AC02D@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Sun Mar 26 15:07:07 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 26 Mar 2006 15:07:07 +0900 Subject: [xoops-cvslog 2444] CVS update: xoops2jp/html/modules/base/templates/blocks Message-ID: <20060326060707.924482AC02D@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Sun Mar 26 15:07:43 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 26 Mar 2006 15:07:43 +0900 Subject: [xoops-cvslog 2445] CVS update: xoops2jp/html/modules/base/language/english Message-ID: <20060326060743.ACB5D2AC02D@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.10 xoops2jp/html/modules/base/language/english/modinfo.php:1.1.2.11 --- xoops2jp/html/modules/base/language/english/modinfo.php:1.1.2.10 Tue Feb 21 20:53:16 2006 +++ xoops2jp/html/modules/base/language/english/modinfo.php Sun Mar 26 15:07:43 2006 @@ -15,4 +15,18 @@ define('_MI_PROFILE_BASE_CONTROLLER', "This system attaches great importance to the compatibility with XOOPS 2.0.x.
Pre-road mechanism of this module is very flexible, but it is low speed.
"); define('_MI_PROFILE_BASE_LEGACY_RENDER_SYSTEM', "This system depends on Smarty engine for rendering and cache.
This system can use themes of Xoops2.0.x rightly."); +define('_MI_BASE_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/blocks.php diff -u /dev/null xoops2jp/html/modules/base/language/english/blocks.php:1.1.2.1 --- /dev/null Sun Mar 26 15:07:43 2006 +++ xoops2jp/html/modules/base/language/english/blocks.php Sun Mar 26 15:07:43 2006 @@ -0,0 +1,29 @@ + From nobunobu @ users.sourceforge.jp Sun Mar 26 15:07:43 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 26 Mar 2006 15:07:43 +0900 Subject: [xoops-cvslog 2446] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20060326060743.D33862AC055@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.10 xoops2jp/html/modules/base/language/japanese/modinfo.php:1.1.2.11 --- xoops2jp/html/modules/base/language/japanese/modinfo.php:1.1.2.10 Tue Feb 21 20:53:16 2006 +++ xoops2jp/html/modules/base/language/japanese/modinfo.php Sun Mar 26 15:07:43 2006 @@ -13,4 +13,18 @@ define('_MI_BASE_NAME', "互換モジュール"); define('_MI_BASE_NAME_DESC', "XOOPS Cube にXOOPS 2.0.x シリーズの互換性を与えます"); +define('_MI_BASE_BLOCK_MAINMENU_NAME', "メインメニュー"); +define('_MI_BASE_BLOCK_MAINMENU_DESC', "メインメニューを表示します"); +define('_MI_BASE_BLOCK_USERMENU_NAME', "ユーザメニュー"); +define('_MI_BASE_BLOCK_USERMENU_DESC', "ユーザメニューを表示します"); +define('_MI_BASE_BLOCK_SEARCH_NAME', "検索"); +define('_MI_BASE_BLOCK_SEARCH_DESC', "検索フォームを表示します"); +define('_MI_BASE_BLOCK_WAITING_NAME', "承認待ちコンテンツ"); +define('_MI_BASE_BLOCK_WAITING_DESC', "承認待ちのコンテンツの存在を通知します"); +define('_MI_BASE_BLOCK_SITEINFO_NAME', "サイト情報"); +define('_MI_BASE_BLOCK_SITEINFO_DESC', "サイトの情報を表示します"); +define('_MI_BASE_BLOCK_COMMENTS_NAME',"最近のコメント"); +define('_MI_BASE_BLOCK_COMMENTS_DESC',"最近のコメント一覧を表示します"); +define('_MI_BASE_BLOCK_NOTIFICATION_NAME', "イベント通知設定"); +define('_MI_BASE_BLOCK_NOTIFICATION_DESC', "イベント通知の設定フォームを表示します"); ?> Index: xoops2jp/html/modules/base/language/japanese/blocks.php diff -u /dev/null xoops2jp/html/modules/base/language/japanese/blocks.php:1.1.2.1 --- /dev/null Sun Mar 26 15:07:43 2006 +++ xoops2jp/html/modules/base/language/japanese/blocks.php Sun Mar 26 15:07:43 2006 @@ -0,0 +1,29 @@ + From nobunobu @ users.sourceforge.jp Sun Mar 26 15:07:44 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 26 Mar 2006 15:07:44 +0900 Subject: [xoops-cvslog 2447] CVS update: xoops2jp/html/modules/base Message-ID: <20060326060744.02F872AC02D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/xoops_version.php diff -u xoops2jp/html/modules/base/xoops_version.php:1.1.2.16 xoops2jp/html/modules/base/xoops_version.php:1.1.2.17 --- xoops2jp/html/modules/base/xoops_version.php:1.1.2.16 Wed Jan 25 16:13:42 2006 +++ xoops2jp/html/modules/base/xoops_version.php Sun Mar 26 15:07:43 2006 @@ -1,5 +1,5 @@ From nobunobu @ users.sourceforge.jp Sun Mar 26 15:07:46 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 26 Mar 2006 15:07:46 +0900 Subject: [xoops-cvslog 2448] CVS update: xoops2jp/html/modules/base/blocks Message-ID: <20060326060746.B7B4B2AC02D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/blocks/legacy_comments.php diff -u /dev/null xoops2jp/html/modules/base/blocks/legacy_comments.php:1.1.2.1 --- /dev/null Sun Mar 26 15:07:46 2006 +++ xoops2jp/html/modules/base/blocks/legacy_comments.php Sun Mar 26 15:07:46 2006 @@ -0,0 +1,47 @@ +setLimit(intval($options[0])); + $criteria->setSort('com_created'); + $criteria->setOrder('DESC'); + $comments =& $comment_handler->getObjects($criteria, true); + $member_handler =& xoops_gethandler('member'); + $module_handler =& xoops_gethandler('module'); + $modules =& $module_handler->getObjects(new Criteria('hascomments', 1), true); + $comment_config = array(); + foreach (array_keys($comments) as $i) { + $mid = $comments[$i]->getVar('com_modid'); + $com['module'] = ''.$modules[$mid]->getVar('name').''; + if (!isset($comment_config[$mid])) { + $comment_config[$mid] = $modules[$mid]->getInfo('comments'); + } + $com['id'] = $i; + $com['title'] = ''.$comments[$i]->getVar('com_title').''; + $com['icon'] = $comments[$i]->getVar('com_icon'); + $com['icon'] = ($com['icon'] != '') ? $com['icon'] : 'icon1.gif'; + $com['time'] = formatTimestamp($comments[$i]->getVar('com_created'),'m'); + if ($comments[$i]->getVar('com_uid') > 0) { + $poster =& $member_handler->getUser($comments[$i]->getVar('com_uid')); + if (is_object($poster)) { + $com['poster'] = ''.$poster->getVar('uname').''; + } else { + $com['poster'] = $GLOBALS['xoopsConfig']['anonymous']; + } + } else { + $com['poster'] = $GLOBALS['xoopsConfig']['anonymous']; + } + $block['comments'][] =& $com; + unset($com); + } + return $block; +} + +function b_legacy_comments_edit($options) { + $inputtag = ""; + $form = sprintf(_MB_BASE_DISPLAYC, $inputtag); + return $form; +} +?> Index: xoops2jp/html/modules/base/blocks/legacy_mainmenu.php diff -u /dev/null xoops2jp/html/modules/base/blocks/legacy_mainmenu.php:1.1.2.1 --- /dev/null Sun Mar 26 15:07:46 2006 +++ xoops2jp/html/modules/base/blocks/legacy_mainmenu.php Sun Mar 26 15:07:46 2006 @@ -0,0 +1,29 @@ +add(new Criteria('isactive', 1)); + $criteria->add(new Criteria('weight', 0, '>')); + $modules =& $module_handler->getObjects($criteria, true); + $moduleperm_handler =& xoops_gethandler('groupperm'); + $groups = is_object($xoopsUser) ? $xoopsUser->getGroups() : XOOPS_GROUP_ANONYMOUS; + $read_allowed = $moduleperm_handler->getItemIds('module_read', $groups); + foreach (array_keys($modules) as $i) { + if (in_array($i, $read_allowed)) { + $block['modules'][$i]['name'] = $modules[$i]->getVar('name'); + $block['modules'][$i]['directory'] = $modules[$i]->getVar('dirname'); + $sublinks =& $modules[$i]->subLink(); + if ((count($sublinks) > 0) && (!empty($xoopsModule)) && ($i == $xoopsModule->getVar('mid'))) { + foreach($sublinks as $sublink){ + $block['modules'][$i]['sublinks'][] = array('name' => $sublink['name'], 'url' => XOOPS_URL.'/modules/'.$modules[$i]->getVar('dirname').'/'.$sublink['url']); + } + } else { + $block['modules'][$i]['sublinks'] = array(); + } + } + } + return $block; +} +?> Index: xoops2jp/html/modules/base/blocks/legacy_notification.php diff -u /dev/null xoops2jp/html/modules/base/blocks/legacy_notification.php:1.1.2.1 --- /dev/null Sun Mar 26 15:07:46 2006 +++ xoops2jp/html/modules/base/blocks/legacy_notification.php Sun Mar 26 15:07:46 2006 @@ -0,0 +1,44 @@ +getSubscribedEvents ($category['name'], $category['item_id'], $xoopsModule->getVar('mid'), $xoopsUser->getVar('uid')); + foreach (notificationEvents($category['name'], true) as $event) { + if (!empty($event['admin_only']) && !$xoopsUser->isAdmin($xoopsModule->getVar('mid'))) { + continue; + } + $subscribed = in_array($event['name'], $subscribed_events) ? 1 : 0; + $section['events'][$event['name']] = array ('name'=>$event['name'], 'title'=>$event['title'], 'caption'=>$event['caption'], 'description'=>$event['description'], 'subscribed'=>$subscribed); + } + $block['categories'][$category['name']] = $section; + } + // Additional form data + $block['target_page'] = "notification_update.php"; + // FIXME: better or more standardized way to do this? + $script_url = explode('/', xoops_getenv('PHP_SELF')); + $script_name = $script_url[count($script_url)-1]; + $block['redirect_script'] = $script_name; + $block['submit_button'] = _NOT_UPDATENOW; + return $block; +} +?> Index: xoops2jp/html/modules/base/blocks/legacy_search.php diff -u /dev/null xoops2jp/html/modules/base/blocks/legacy_search.php:1.1.2.1 --- /dev/null Sun Mar 26 15:07:46 2006 +++ xoops2jp/html/modules/base/blocks/legacy_search.php Sun Mar 26 15:07:46 2006 @@ -0,0 +1,7 @@ + Index: xoops2jp/html/modules/base/blocks/legacy_siteinfo.php diff -u /dev/null xoops2jp/html/modules/base/blocks/legacy_siteinfo.php:1.1.2.1 --- /dev/null Sun Mar 26 15:07:46 2006 +++ xoops2jp/html/modules/base/blocks/legacy_siteinfo.php Sun Mar 26 15:07:46 2006 @@ -0,0 +1,64 @@ +query("SELECT u.uid, u.uname, u.email, u.user_viewemail, u.user_avatar, g.name AS groupname FROM ".$xoopsDB->prefix("groups_users_link")." l LEFT JOIN ".$xoopsDB->prefix("users")." u ON l.uid=u.uid LEFT JOIN ".$xoopsDB->prefix("groups")." g ON l.groupid=g.groupid WHERE g.group_type='Admin' ORDER BY l.groupid, u.uid"); + if ($xoopsDB->getRowsNum($result) > 0) { + $prev_caption = ""; + $i = 0; + while ($userinfo = $xoopsDB->fetchArray($result)) { + if ($prev_caption != $userinfo['groupname']) { + $prev_caption = $userinfo['groupname']; + $block['groups'][$i]['name'] = $myts->htmlSpecialChars($userinfo['groupname']); + } + if ($xoopsUser != '') { + $block['groups'][$i]['users'][] = array('id' => $userinfo['uid'], 'name' => $myts->htmlspecialchars($userinfo['uname']), 'msglink' => "\"\"", 'avatar' => XOOPS_UPLOAD_URL.'/'.$userinfo['user_avatar']); + } else { + if ($userinfo['user_viewemail']) { + $block['groups'][$i]['users'][] = array('id' => $userinfo['uid'], 'name' => $myts->htmlspecialchars($userinfo['uname']), 'msglink' => '', 'avatar' => XOOPS_UPLOAD_URL.'/'.$userinfo['user_avatar']); + } else { + $block['groups'][$i]['users'][] = array('id' => $userinfo['uid'], 'name' => $myts->htmlspecialchars($userinfo['uname']), 'msglink' => ' ', 'avatar' => XOOPS_UPLOAD_URL.'/'.$userinfo['user_avatar']); + } + } + $i++; + } + } + } else { + $block['showgroups'] = false; + } + $block['logourl'] = XOOPS_URL.'/images/'.$options[2]; + if (is_object($xoopsUser)) { + $block['recoomendtime'] = time(); + } else { + $block['recoomendtime'] = 0; + } + $block['popup_width'] = $options[0]; + $block['popup_height'] = $options[1]; + return $block; +} + +function b_legacy_siteinfo_edit($options) { + $form = _MB_BASE_PWWIDTH." "; + $form .= ""; + $form .= "
"._MB_BASE_PWHEIGHT." "; + $form .= ""; + $form .= "
".sprintf(_MB_BASE_LOGO,XOOPS_URL."/images/")." "; + $form .= ""; + $chk = ""; + $form .= "
"._MB_BASE_SADMIN." "; + if ( $options[3] == 1 ) { + $chk = " checked='checked'"; + } + $form .= " "._YES.""; + $chk = ""; + if ( $options[3] == 0 ) { + $chk = " checked=\"checked\""; + } + $form .= " "._NO.""; + return $form; +} +?> Index: xoops2jp/html/modules/base/blocks/legacy_usermenu.php diff -u /dev/null xoops2jp/html/modules/base/blocks/legacy_usermenu.php:1.1.2.1 --- /dev/null Sun Mar 26 15:07:46 2006 +++ xoops2jp/html/modules/base/blocks/legacy_usermenu.php Sun Mar 26 15:07:46 2006 @@ -0,0 +1,25 @@ +getVar('uid'); + $block['flagShowInbox']=false; + + // Check does this system have PrivateMessage feature. + $root=&XCube_Root::getSingleton(); + $service=&$root->mServiceManager->searchXCubeService("PrivateMessage"); + if($service) { + $client=new XCube_ServiceClient($service); + $parameters=array("uid"=>$xoopsUser->getVar('uid')); + $block['new_messages'] = $client->call("getCountUnread",$parameters); + $block['flagShowInbox']=true; + } + return $block; + } + return false; +} +?> Index: xoops2jp/html/modules/base/blocks/legacy_waiting.php diff -u /dev/null xoops2jp/html/modules/base/blocks/legacy_waiting.php:1.1.2.1 --- /dev/null Sun Mar 26 15:07:46 2006 +++ xoops2jp/html/modules/base/blocks/legacy_waiting.php Sun Mar 26 15:07:46 2006 @@ -0,0 +1,63 @@ +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; + } + return $block; +} +?> From nobunobu @ users.sourceforge.jp Sun Mar 26 15:07:49 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 26 Mar 2006 15:07:49 +0900 Subject: [xoops-cvslog 2449] CVS update: xoops2jp/html/modules/base/templates/blocks Message-ID: <20060326060749.C94FC2AC02D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/templates/blocks/legacy_block_comments.html diff -u /dev/null xoops2jp/html/modules/base/templates/blocks/legacy_block_comments.html:1.1.2.1 --- /dev/null Sun Mar 26 15:07:49 2006 +++ xoops2jp/html/modules/base/templates/blocks/legacy_block_comments.html Sun Mar 26 15:07:49 2006 @@ -0,0 +1,11 @@ + +<{foreach item=comment from=$block.comments}> + "> + + + + + + +<{/foreach}> +
<{$comment.title}><{$comment.module}><{$comment.poster}><{$comment.time}>
Index: xoops2jp/html/modules/base/templates/blocks/legacy_block_mainmenu.html diff -u /dev/null xoops2jp/html/modules/base/templates/blocks/legacy_block_mainmenu.html:1.1.2.1 --- /dev/null Sun Mar 26 15:07:49 2006 +++ xoops2jp/html/modules/base/templates/blocks/legacy_block_mainmenu.html Sun Mar 26 15:07:49 2006 @@ -0,0 +1,13 @@ + + + + +
Index: xoops2jp/html/modules/base/templates/blocks/legacy_block_notification.html diff -u /dev/null xoops2jp/html/modules/base/templates/blocks/legacy_block_notification.html:1.1.2.1 --- /dev/null Sun Mar 26 15:07:49 2006 +++ xoops2jp/html/modules/base/templates/blocks/legacy_block_notification.html Sun Mar 26 15:07:49 2006 @@ -0,0 +1,31 @@ +
+ +<{foreach item=category from=$block.categories}> +<{foreach name=inner item=event from=$category.events}> +<{if $smarty.foreach.inner.first}> + + + +<{/if}> + + + + +<{/foreach}> +<{/foreach}> + + + +
+ <{$category.title}> +
+ <{counter assign=index}> + + checked="checked"<{/if}> /> + + <{$event.caption}> +
+ + +
+
Index: xoops2jp/html/modules/base/templates/blocks/legacy_block_search.html diff -u /dev/null xoops2jp/html/modules/base/templates/blocks/legacy_block_search.html:1.1.2.1 --- /dev/null Sun Mar 26 15:07:49 2006 +++ xoops2jp/html/modules/base/templates/blocks/legacy_block_search.html Sun Mar 26 15:07:49 2006 @@ -0,0 +1,6 @@ +
+ +
+ +
+<{$smarty.const._MB_BASE_ADVS}> Index: xoops2jp/html/modules/base/templates/blocks/legacy_block_siteinfo.html diff -u /dev/null xoops2jp/html/modules/base/templates/blocks/legacy_block_siteinfo.html:1.1.2.1 --- /dev/null Sun Mar 26 15:07:49 2006 +++ xoops2jp/html/modules/base/templates/blocks/legacy_block_siteinfo.html Sun Mar 26 15:07:49 2006 @@ -0,0 +1,27 @@ + +<{if $block.showgroups == true}> +<{foreach item=group from=$block.groups}> + + + +<{foreach item=user from=$group.users}> + + + + +<{/foreach}> +<{/foreach}> +<{/if}> +
<{$group.name}>
+
+ <{$user.name}> +
+ <{$user.msglink}> +
+
+
+
+<{if $block.recoomendtime != 0}> + <{$smarty.const._MB_BASE_RECO}> +<{/if}> +
Index: xoops2jp/html/modules/base/templates/blocks/legacy_block_usermenu.html diff -u /dev/null xoops2jp/html/modules/base/templates/blocks/legacy_block_usermenu.html:1.1.2.1 --- /dev/null Sun Mar 26 15:07:49 2006 +++ xoops2jp/html/modules/base/templates/blocks/legacy_block_usermenu.html Sun Mar 26 15:07:49 2006 @@ -0,0 +1,20 @@ + + + + +
+ <{$smarty.const._MB_BASE_VACNT}> + <{$smarty.const._MB_BASE_EACNT}> + <{$smarty.const._MB_BASE_NOTIF}> + <{$smarty.const._MB_BASE_LOUT}> +<{if $block.flagShowInbox}> +<{if $block.new_messages > 0}> + <{$smarty.const.lang_inbox}> (<{$block.new_messages}>) +<{else}> + <{$smarty.const._MB_BASE_INBOX}> +<{/if}> +<{/if}> +<{if $xoops_isadmin}> + <{$smarty.const._MB_BASE_ADMENU}> +<{/if}> +
Index: xoops2jp/html/modules/base/templates/blocks/legacy_block_waiting.html diff -u /dev/null xoops2jp/html/modules/base/templates/blocks/legacy_block_waiting.html:1.1.2.1 --- /dev/null Sun Mar 26 15:07:49 2006 +++ xoops2jp/html/modules/base/templates/blocks/legacy_block_waiting.html Sun Mar 26 15:07:49 2006 @@ -0,0 +1,5 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Sun Mar 26 15:08:12 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Sun, 26 Mar 2006 15:08:12 +0900 Subject: [xoops-cvslog 2450] CVS update: xoops2jp/html/modules/base/preload/ThemeSelect Message-ID: <20060326060812.973042AC02D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php diff -u xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php:1.1.2.3 xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php:1.1.2.4 --- xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php:1.1.2.3 Thu Jan 5 17:29:53 2006 +++ xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php Sun Mar 26 15:08:12 2006 @@ -1,5 +1,5 @@ mController->mXoopsConfig['theme_set_allowed'])) { - $this->mController->mXoopsConfig['theme_set'] = $_POST['xoops_theme_select']; + if (!empty($_POST['xoops_theme_select']) && in_array($_POST['xoops_theme_select'], $this->mController->mConfig['theme_set_allowed'])) { + $this->mController->mConfig['theme_set'] = $_POST['xoops_theme_select']; $_SESSION['xoopsUserTheme'] = $_POST['xoops_theme_select']; - } elseif (!empty($_SESSION['xoopsUserTheme']) && in_array($_SESSION['xoopsUserTheme'], $this->mController->mXoopsConfig['theme_set_allowed'])) { - $this->mController->mXoopsConfig['theme_set'] = $_SESSION['xoopsUserTheme']; + } elseif (!empty($_SESSION['xoopsUserTheme']) && in_array($_SESSION['xoopsUserTheme'], $this->mController->mConfig['theme_set_allowed'])) { + $this->mController->mConfig['theme_set'] = $_SESSION['xoopsUserTheme']; } $delegate=new XCube_Delegate("ThemeSelect_Filter","callbackCheckLoginSuccess"); From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:46 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:46 +0900 Subject: [xoops-cvslog 2451] CVS update: /xoops2jp/html/modules/pm/language/english Message-ID: <20060327024146.521112AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:46 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:46 +0900 Subject: [xoops-cvslog 2452] CVS update: /xoops2jp/html/modules/stdCache/images Message-ID: <20060327024146.824E22AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:46 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:46 +0900 Subject: [xoops-cvslog 2453] CVS update: /xoops2jp/html/modules/base/kernel Message-ID: <20060327024146.B72F12AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:46 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:46 +0900 Subject: [xoops-cvslog 2454] CVS update: /xoops2jp/html/modules/base/templates Message-ID: <20060327024146.E3FD72AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:47 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:47 +0900 Subject: [xoops-cvslog 2455] CVS update: /xoops2jp/html/modules/base/preload Message-ID: <20060327024147.196EF2AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:47 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:47 +0900 Subject: [xoops-cvslog 2456] CVS update: /xoops2jp/html/preload Message-ID: <20060327024147.434622AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:47 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:47 +0900 Subject: [xoops-cvslog 2457] CVS update: /xoops2jp/html/class/smarty Message-ID: <20060327024147.70C202AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:47 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:47 +0900 Subject: [xoops-cvslog 2458] CVS update: /xoops2jp/html/class/smarty/plugins Message-ID: <20060327024147.9CA252AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:47 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:47 +0900 Subject: [xoops-cvslog 2459] CVS update: /xoops2jp/html/modules/pm/class Message-ID: <20060327024147.C6A842AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:47 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:47 +0900 Subject: [xoops-cvslog 2460] CVS update: /xoops2jp/html/install/img Message-ID: <20060327024147.F00982AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:48 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:48 +0900 Subject: [xoops-cvslog 2461] CVS update: /xoops2jp/html/modules/base/images Message-ID: <20060327024148.257A72AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:48 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:48 +0900 Subject: [xoops-cvslog 2462] CVS update: /xoops2jp/html/modules/base/service Message-ID: <20060327024148.51BFB2AC0A5@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:48 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:48 +0900 Subject: [xoops-cvslog 2463] CVS update: /xoops2jp/html/modules/base/admin/forms Message-ID: <20060327024148.8901C2AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:48 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:48 +0900 Subject: [xoops-cvslog 2464] CVS update: /xoops2jp/html/modules/base/admin/.xml Message-ID: <20060327024148.B67F92AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:48 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:48 +0900 Subject: [xoops-cvslog 2465] CVS update: /xoops2jp/html/modules/base/.xml Message-ID: <20060327024148.E26662AC0A5@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:49 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:49 +0900 Subject: [xoops-cvslog 2466] CVS update: xoops2jp/html/modules/base/blocks Message-ID: <20060327024149.202B92AC0A2@users.sourceforge.jp> Index: xoops2jp/html/modules/base/blocks/index.html diff -u /dev/null xoops2jp/html/modules/base/blocks/index.html:1.1.2.1 --- /dev/null Mon Mar 27 11:41:49 2006 +++ xoops2jp/html/modules/base/blocks/index.html Mon Mar 27 11:41:48 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:49 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:49 +0900 Subject: [xoops-cvslog 2467] CVS update: /xoops2jp/html/install/sql Message-ID: <20060327024149.4D6E42AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:49 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:49 +0900 Subject: [xoops-cvslog 2468] CVS update: /xoops2jp/html/kernel Message-ID: <20060327024149.79AC92AC0A5@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:49 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:49 +0900 Subject: [xoops-cvslog 2469] CVS update: /xoops2jp/html/modules/base/admin/templates/blocks Message-ID: <20060327024149.A55822AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:49 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:49 +0900 Subject: [xoops-cvslog 2470] CVS update: /xoops2jp/html/modules/base/admin/theme Message-ID: <20060327024149.D10522AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:50 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:50 +0900 Subject: [xoops-cvslog 2471] CVS update: /xoops2jp/html/install/language/japanese Message-ID: <20060327024150.0818B2AC0A5@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:50 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:50 +0900 Subject: [xoops-cvslog 2472] CVS update: /xoops2jp/html/modules/pm/kernel Message-ID: <20060327024150.35CD92AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:50 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:50 +0900 Subject: [xoops-cvslog 2473] CVS update: /xoops2jp/html/modules/base/admin/actions Message-ID: <20060327024150.635692AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:50 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:50 +0900 Subject: [xoops-cvslog 2474] CVS update: /xoops2jp/html/install/templates Message-ID: <20060327024150.98C952AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:50 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:50 +0900 Subject: [xoops-cvslog 2475] CVS update: /xoops2jp/html/modules/pm/actions Message-ID: <20060327024150.C56EA2AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:50 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:50 +0900 Subject: [xoops-cvslog 2476] CVS update: /xoops2jp/html/modules/base/class/debug Message-ID: <20060327024150.F263E2AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:51 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:51 +0900 Subject: [xoops-cvslog 2477] CVS update: /xoops2jp/html/modules/stdCache/language/japanese Message-ID: <20060327024151.333132AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:51 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:51 +0900 Subject: [xoops-cvslog 2478] CVS update: /xoops2jp/html/class/mail/phpmailer Message-ID: <20060327024151.89E9C2AC0A5@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:51 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:51 +0900 Subject: [xoops-cvslog 2479] CVS update: /xoops2jp/html/modules/base/class Message-ID: <20060327024151.B65CD2AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:51 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:51 +0900 Subject: [xoops-cvslog 2480] CVS update: /xoops2jp/html/install/include Message-ID: <20060327024151.EC3D42AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:51 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:51 +0900 Subject: [xoops-cvslog 2484] CVS update: /xoops2jp/html/modules/stdCache/language/english Message-ID: <20060327024151.5E75B2AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:52 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:52 +0900 Subject: [xoops-cvslog 2481] CVS update: /xoops2jp/html/modules/base/actions Message-ID: <20060327024152.2467B2AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:52 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:52 +0900 Subject: [xoops-cvslog 2482] CVS update: /xoops2jp/html/install/sql/upgrade Message-ID: <20060327024152.4FFFE2AC0A5@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:52 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:52 +0900 Subject: [xoops-cvslog 2483] CVS update: /xoops2jp/html/modules/base/preload/protectorLE Message-ID: <20060327024152.7DA8E2AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:52 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:52 +0900 Subject: [xoops-cvslog 2485] CVS update: /xoops2jp/html/install/widzards Message-ID: <20060327024152.A7FD82AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:52 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:52 +0900 Subject: [xoops-cvslog 2486] CVS update: /xoops2jp/html/modules/base/language/english Message-ID: <20060327024152.D1C8E2AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:53 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:53 +0900 Subject: [xoops-cvslog 2487] CVS update: /xoops2jp/html/modules/base/admin/blocks Message-ID: <20060327024153.074762AC0A5@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:53 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:53 +0900 Subject: [xoops-cvslog 2488] CVS update: /xoops2jp/html/modules/base/admin/theme/icons Message-ID: <20060327024153.324462AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:53 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:53 +0900 Subject: [xoops-cvslog 2489] CVS update: /xoops2jp/html/class/mail Message-ID: <20060327024153.5F4882AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:53 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:53 +0900 Subject: [xoops-cvslog 2490] CVS update: /xoops2jp/html/modules/stdCache/templates/blocks Message-ID: <20060327024153.9936A2AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:53 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:53 +0900 Subject: [xoops-cvslog 2491] CVS update: /xoops2jp/html/modules/stdCache/blocks Message-ID: <20060327024153.C58A32AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:53 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:53 +0900 Subject: [xoops-cvslog 2492] CVS update: /xoops2jp/html/modules/pm/templates Message-ID: <20060327024153.F090B2AC0A5@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:54 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:54 +0900 Subject: [xoops-cvslog 2493] CVS update: /xoops2jp/html/language/english/mail_template Message-ID: <20060327024154.26C452AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:54 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:54 +0900 Subject: [xoops-cvslog 2494] CVS update: /xoops2jp/html/modules/base/admin/templates Message-ID: <20060327024154.56F3E2AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:54 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:54 +0900 Subject: [xoops-cvslog 2495] CVS update: /xoops2jp/html/modules/stdCache/templates Message-ID: <20060327024154.828B92AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:54 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:54 +0900 Subject: [xoops-cvslog 2496] CVS update: /xoops2jp/html/modules/base/admin/class Message-ID: <20060327024154.B0EF32AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:54 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:54 +0900 Subject: [xoops-cvslog 2497] CVS update: /xoops2jp/html/modules/stdCache/language Message-ID: <20060327024154.D90962AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:55 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:55 +0900 Subject: [xoops-cvslog 2498] CVS update: /xoops2jp/html/modules/base/preload/SiteClose Message-ID: <20060327024155.0F8072AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:55 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:55 +0900 Subject: [xoops-cvslog 2499] CVS update: /xoops2jp/html/modules/base/forms Message-ID: <20060327024155.38AA32AC0A5@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:55 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:55 +0900 Subject: [xoops-cvslog 2500] CVS update: /xoops2jp/html/modules/base/language Message-ID: <20060327024155.63FC12AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:55 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:55 +0900 Subject: [xoops-cvslog 2501] CVS update: xoops2jp/html/modules/base/templates/blocks Message-ID: <20060327024155.90A232AC0A4@users.sourceforge.jp> Index: xoops2jp/html/modules/base/templates/blocks/index.html diff -u /dev/null xoops2jp/html/modules/base/templates/blocks/index.html:1.1.2.1 --- /dev/null Mon Mar 27 11:41:55 2006 +++ xoops2jp/html/modules/base/templates/blocks/index.html Mon Mar 27 11:41:55 2006 @@ -0,0 +1 @@ + \ No newline at end of file From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:55 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:55 +0900 Subject: [xoops-cvslog 2502] CVS update: /xoops2jp/html/modules/base/preload/ThemeSelect Message-ID: <20060327024155.B3EF82AC0A5@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:55 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:55 +0900 Subject: [xoops-cvslog 2503] CVS update: /xoops2jp/html/modules/base/language/japanese Message-ID: <20060327024155.DE1492AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:56 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:56 +0900 Subject: [xoops-cvslog 2504] CVS update: /xoops2jp/html/modules/pm/forms Message-ID: <20060327024156.162B82AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:56 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:56 +0900 Subject: [xoops-cvslog 2505] CVS update: /xoops2jp/html/modules/pm/service Message-ID: <20060327024156.99C452AC0A6@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:56 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:56 +0900 Subject: [xoops-cvslog 2506] CVS update: /xoops2jp/html/modules/pm/images Message-ID: <20060327024156.416EE2AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:57 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:57 +0900 Subject: [xoops-cvslog 2507] CVS update: /xoops2jp/html/class/smarty/core Message-ID: <20060327024157.25B442AC0A9@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:57 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:57 +0900 Subject: [xoops-cvslog 2508] CVS update: /xoops2jp/html/install/class Message-ID: <20060327024157.50BE22AC0AE@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:56 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:56 +0900 Subject: [xoops-cvslog 2509] CVS update: /xoops2jp/html/modules/base/preload/IPbanning Message-ID: <20060327024156.EF1EE2AC0A8@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:56 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:56 +0900 Subject: [xoops-cvslog 2510] CVS update: /xoops2jp/html/modules/base/admin/theme/design Message-ID: <20060327024156.6DD342AC0A5@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:56 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:56 +0900 Subject: [xoops-cvslog 2511] CVS update: /xoops2jp/html/install/language Message-ID: <20060327024156.C322D2AC0A7@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:57 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:57 +0900 Subject: [xoops-cvslog 2512] CVS update: /xoops2jp/html/modules/base/sql Message-ID: <20060327024157.821D32AC0B0@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:57 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:57 +0900 Subject: [xoops-cvslog 2513] CVS update: /xoops2jp/html/modules/pm/language/japanese Message-ID: <20060327024157.D927C2AC0B1@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:57 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:57 +0900 Subject: [xoops-cvslog 2514] CVS update: /xoops2jp/html/install/language/english Message-ID: <20060327024157.AEE352AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:58 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:58 +0900 Subject: [xoops-cvslog 2515] CVS update: /xoops2jp/html/modules/pm/language Message-ID: <20060327024158.102762AC0A2@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:58 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:58 +0900 Subject: [xoops-cvslog 2516] CVS update: /xoops2jp/html/modules/stdCache/kernel Message-ID: <20060327024158.3CA3B2AC0A4@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:58 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:58 +0900 Subject: [xoops-cvslog 2517] CVS update: /xoops2jp/html/modules/stdCache Message-ID: <20060327024158.66C6D2AC0A5@users.sourceforge.jp> From nobunobu @ users.sourceforge.jp Mon Mar 27 11:41:58 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Mon, 27 Mar 2006 11:41:58 +0900 Subject: [xoops-cvslog 2518] CVS update: /xoops2jp/html/install/custom Message-ID: <20060327024158.932CB2AC0A2@users.sourceforge.jp> From minahito @ users.sourceforge.jp Tue Mar 28 13:16:41 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 28 Mar 2006 13:16:41 +0900 Subject: [xoops-cvslog 2519] CVS update: xoops2jp/html/modules/user/admin/actions Message-ID: <20060328041641.AC96E2AC022@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/actions/UserRankDeleteAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/UserRankDeleteAction.class.php:1.1.2.2 xoops2jp/html/modules/user/admin/actions/UserRankDeleteAction.class.php:removed --- xoops2jp/html/modules/user/admin/actions/UserRankDeleteAction.class.php:1.1.2.2 Thu Dec 22 20:25:49 2005 +++ xoops2jp/html/modules/user/admin/actions/UserRankDeleteAction.class.php Tue Mar 28 13:16:41 2006 @@ -1,40 +0,0 @@ -mController->getDB(); - - $handler =& new UserRankObjectHandler($db); - - return $handler; - } - - function getId() - { - return isset($_REQUEST['rank_id']) ? intval($_REQUEST['rank_id']) : 0; - } - - function executeViewInput(&$controller,&$xoopsUser,&$renderSystem) - { - $renderSystem->setTemplateName("user_admin_rankdelete_input.html"); - $renderSystem->setAttribute("rank",$this->mObject); - } - - function executeViewSuccess(&$controller,&$xoopsUser,&$renderSystem) - { - XCube_Utils::redirectHeader("?action=RankList",1,_MD_A_USER_MESSAGE_DELETE_RANK_SUCCESS); - } - - function executeViewError(&$controller,&$xoopsUser,&$renderSystem) - { - XCube_Utils::redirectHeader("?action=RankList",1,_MD_A_USER_ERROR_RAISE_ERROR); - } -} - -?> \ No newline at end of file Index: xoops2jp/html/modules/user/admin/actions/UserRankEditAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/UserRankEditAction.class.php:1.1.2.3 xoops2jp/html/modules/user/admin/actions/UserRankEditAction.class.php:removed --- xoops2jp/html/modules/user/admin/actions/UserRankEditAction.class.php:1.1.2.3 Sun Jan 8 23:02:10 2006 +++ xoops2jp/html/modules/user/admin/actions/UserRankEditAction.class.php Tue Mar 28 13:16:41 2006 @@ -1,42 +0,0 @@ -mActionForm=new RankEditForm(); - $this->mActionForm->prepare(); - } - - function executeViewSuccess(&$controller,&$xoopsUser,&$renderSystem) - { - XCube_Utils::redirectHeader("?action=RankList",1,_MD_A_USER_MESSAGE_SAVE_RANK_SUCCESS); - } - - function executeViewError(&$controller,&$xoopsUser,&$renderSystem) - { - XCube_Utils::redirectHeader("?action=RankList",1,_MD_A_USER_ERROR_RAISE_ERROR); - } - - function executeViewInput(&$controller,&$xoopsUser,&$renderSystem) - { - $renderSystem->setTemplateName("user_admin_rankedit_input.html"); - $renderSystem->setAttribute("actionForm",$this->mActionForm); - } -} - -?> \ No newline at end of file Index: xoops2jp/html/modules/user/admin/actions/UserRankListAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/UserRankListAction.class.php:1.1.2.2 xoops2jp/html/modules/user/admin/actions/UserRankListAction.class.php:removed --- xoops2jp/html/modules/user/admin/actions/UserRankListAction.class.php:1.1.2.2 Tue Nov 22 12:57:09 2005 +++ xoops2jp/html/modules/user/admin/actions/UserRankListAction.class.php Tue Mar 28 13:16:41 2006 @@ -1,48 +0,0 @@ -mFilter=new RankActionFilterForm(); - $this->mFilter->fetch(); - - $rankHandler = new UserRankObjectHandler($controller->mDB); - $total=$rankHandler->countAll($this->mFilter->mSpecial); - - $this->mPageNavi=new XCube_PageNavigator("./index.php?action=RankList",$total,XCUBE_PAGENAVI_START | XCUBE_PAGENAVI_PERPAGE); // TODO get controller->getUrl() ? - $this->mPageNavi->fetch(); - - $this->mRankObjects=$rankHandler->enumAll( - $this->mFilter->mSpecial, - $this->mFilter->getSort(), - $this->mFilter->getOrder(), - $this->mPageNavi->getStart(), - $this->mPageNavi->getPerPage() - ); - - return USER_FRAME_VIEW_INDEX; - } - - function executeViewIndex(&$controller,&$xoopsUser,&$renderSystem) - { - $renderSystem->setTemplateName("user_admin_ranklist_index.html"); - $renderSystem->setAttribute("ranks",$this->mRankObjects); - $renderSystem->setAttribute("pageNavi",$this->mPageNavi); - } -} - -?> \ No newline at end of file From minahito @ users.sourceforge.jp Tue Mar 28 13:17:31 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 28 Mar 2006 13:17:31 +0900 Subject: [xoops-cvslog 2520] CVS update: xoops2jp/html/modules/user/admin/actions Message-ID: <20060328041731.CEA1E2AC022@users.sourceforge.jp> Index: xoops2jp/html/modules/user/admin/actions/UserGroupDeleteAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/UserGroupDeleteAction.class.php:1.1.2.2 xoops2jp/html/modules/user/admin/actions/UserGroupDeleteAction.class.php:removed --- xoops2jp/html/modules/user/admin/actions/UserGroupDeleteAction.class.php:1.1.2.2 Sun Dec 25 00:00:14 2005 +++ xoops2jp/html/modules/user/admin/actions/UserGroupDeleteAction.class.php Tue Mar 28 13:17:31 2006 @@ -1,48 +0,0 @@ -setTemplateName("group_delete_confirm.html"); - $renderSystem->setAttribute("group", $this->mObject); - } - - function executeViewSuccess(&$controller,&$xoopsUser,&$renderSystem) - { - XCube_Utils::redirectHeader("?action=GroupList",1,"*SUCCESS*"); - } - - function executeViewError(&$controller, &$xoopsUser, &$renderSystem) - { - XCube_Utils::redirectHeader("?action=GroupList", 1, "*DELETE ERROR*"); - } - -} - -?> \ No newline at end of file From minahito @ users.sourceforge.jp Tue Mar 28 22:28:16 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 28 Mar 2006 22:28:16 +0900 Subject: [xoops-cvslog 2521] CVS update: xoops2jp/html/class Message-ID: <20060328132816.BC2B22AC055@users.sourceforge.jp> Index: xoops2jp/html/class/XCube_ActionForm.class.php diff -u xoops2jp/html/class/XCube_ActionForm.class.php:1.1.2.29 xoops2jp/html/class/XCube_ActionForm.class.php:1.1.2.30 --- xoops2jp/html/class/XCube_ActionForm.class.php:1.1.2.29 Fri Feb 3 16:32:00 2006 +++ xoops2jp/html/class/XCube_ActionForm.class.php Tue Mar 28 22:28:16 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/base/actions/SmiliesAction.class.php diff -u xoops2jp/html/modules/base/actions/SmiliesAction.class.php:1.1.2.2 xoops2jp/html/modules/base/actions/SmiliesAction.class.php:1.1.2.3 --- xoops2jp/html/modules/base/actions/SmiliesAction.class.php:1.1.2.2 Fri Feb 3 13:26:39 2006 +++ xoops2jp/html/modules/base/actions/SmiliesAction.class.php Tue Mar 28 22:28:25 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/base/admin/actions/ModuleInstallAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/ModuleInstallAction.class.php:1.1.2.5 xoops2jp/html/modules/base/admin/actions/ModuleInstallAction.class.php:1.1.2.6 --- xoops2jp/html/modules/base/admin/actions/ModuleInstallAction.class.php:1.1.2.5 Tue Feb 7 19:03:08 2006 +++ xoops2jp/html/modules/base/admin/actions/ModuleInstallAction.class.php Tue Mar 28 22:28:35 2006 @@ -1,8 +1,10 @@ Index: xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php diff -u xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.6 xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.7 --- xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php:1.1.2.6 Fri Feb 3 17:15:05 2006 +++ xoops2jp/html/modules/base/admin/blocks/AdminSideMenu.class.php Tue Mar 28 22:28:48 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php diff -u xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php:1.1.2.7 xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php:1.1.2.8 --- xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php:1.1.2.7 Sat Feb 4 12:47:49 2006 +++ xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php Tue Mar 28 22:28:56 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/base/admin/forms/CommentAdminDeleteForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/CommentAdminDeleteForm.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/forms/CommentAdminDeleteForm.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/forms/CommentAdminDeleteForm.class.php:1.1.2.1 Thu Jan 26 01:17:45 2006 +++ xoops2jp/html/modules/base/admin/forms/CommentAdminDeleteForm.class.php Tue Mar 28 22:29:05 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/base/class/Legacy_AdminModuleController.class.php diff -u xoops2jp/html/modules/base/class/Legacy_AdminModuleController.class.php:1.1.2.11 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.11 Fri Feb 3 15:03:24 2006 +++ xoops2jp/html/modules/base/class/Legacy_AdminModuleController.class.php Tue Mar 28 22:29:21 2006 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/base/class/PageNavigator.class.php diff -u xoops2jp/html/modules/base/class/PageNavigator.class.php:1.1.2.1 xoops2jp/html/modules/base/class/PageNavigator.class.php:1.1.2.2 --- xoops2jp/html/modules/base/class/PageNavigator.class.php:1.1.2.1 Thu Jan 26 01:18:11 2006 +++ xoops2jp/html/modules/base/class/PageNavigator.class.php Tue Mar 28 22:29:44 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/base/class/debug/XoopsDebugManager.class.php diff -u xoops2jp/html/modules/base/class/debug/XoopsDebugManager.class.php:1.1.4.4 xoops2jp/html/modules/base/class/debug/XoopsDebugManager.class.php:1.1.4.5 --- xoops2jp/html/modules/base/class/debug/XoopsDebugManager.class.php:1.1.4.4 Sun Nov 6 15:27:15 2005 +++ xoops2jp/html/modules/base/class/debug/XoopsDebugManager.class.php Tue Mar 28 22:29:54 2006 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/base/forms/CommentEditForm.class.php diff -u xoops2jp/html/modules/base/forms/CommentEditForm.class.php:1.1.2.2 xoops2jp/html/modules/base/forms/CommentEditForm.class.php:1.1.2.3 --- xoops2jp/html/modules/base/forms/CommentEditForm.class.php:1.1.2.2 Tue Jan 24 23:22:18 2006 +++ xoops2jp/html/modules/base/forms/CommentEditForm.class.php Tue Mar 28 22:30:03 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/base/kernel/handler.php diff -u xoops2jp/html/modules/base/kernel/handler.php:1.1.2.10 xoops2jp/html/modules/base/kernel/handler.php:1.1.2.11 --- xoops2jp/html/modules/base/kernel/handler.php:1.1.2.10 Wed Mar 15 16:23:25 2006 +++ xoops2jp/html/modules/base/kernel/handler.php Tue Mar 28 22:30:15 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/base/preload/protectorLE/protectorLE.class.php diff -u xoops2jp/html/modules/base/preload/protectorLE/protectorLE.class.php:1.1.2.1 xoops2jp/html/modules/base/preload/protectorLE/protectorLE.class.php:1.1.2.2 --- xoops2jp/html/modules/base/preload/protectorLE/protectorLE.class.php:1.1.2.1 Wed Oct 26 21:13:46 2005 +++ xoops2jp/html/modules/base/preload/protectorLE/protectorLE.class.php Tue Mar 28 22:30:25 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/base/preload/IPbanning/IPbanning.class.php diff -u xoops2jp/html/modules/base/preload/IPbanning/IPbanning.class.php:1.1.2.2 xoops2jp/html/modules/base/preload/IPbanning/IPbanning.class.php:1.1.2.3 --- xoops2jp/html/modules/base/preload/IPbanning/IPbanning.class.php:1.1.2.2 Thu Oct 27 19:57:03 2005 +++ xoops2jp/html/modules/base/preload/IPbanning/IPbanning.class.php Tue Mar 28 22:30:25 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/base/preload/SiteClose/SiteClose.class.php diff -u xoops2jp/html/modules/base/preload/SiteClose/SiteClose.class.php:1.1.2.4 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.4 Mon Feb 6 14:21:08 2006 +++ xoops2jp/html/modules/base/preload/SiteClose/SiteClose.class.php Tue Mar 28 22:30:25 2006 @@ -1,73 +1,75 @@ -mController->mConfig['closesite']==1) { - $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")); - } - } - - function callbackSiteLogin() - { - $accessAllowFlag = false; - if(!empty($_POST['xoops_login'])) { - // Check! - require_once XOOPS_ROOT_PATH.'/include/checklogin.php'; - return; - }elseif(is_object($this->mController->mXoopsUser)) { - foreach ($this->mController->mXoopsUser->getGroups() as $group) { - if (in_array($group, $this->mController->mConfig['closesite_okgrp']) || XOOPS_GROUP_ADMIN == $group) { - $accessAllowFlag = true; - break; - } - } - } - - if (!$accessAllowFlag) { - require_once XOOPS_ROOT_PATH.'/class/template.php'; - $xoopsTpl = new XoopsTpl(); - $xoopsTpl->assign( array('xoops_sitename' => htmlspecialchars($this->mController->mConfig['sitename']), - 'xoops_themecss' => xoops_getcss(), - 'xoops_imageurl' => XOOPS_THEME_URL.'/'.$this->mController->mConfig['theme_set'].'/', - 'lang_login' => _LOGIN, - 'lang_username' => _USERNAME, - 'lang_password' => _PASSWORD, - 'lang_siteclosemsg' => $this->mController->mConfig['closesite_text'])); - $xoopsTpl->xoops_setCaching(1); - $xoopsTpl->display('db:system_siteclosed.html'); ///< @todo depends schema - exit(); - } - } - - function callbackCheckLoginSuccess(&$controller,&$eventArgs) - { - // - // This check is not needed. :) - // - if(!is_object($eventArgs['xoopsUser'])) - return; - - $user=&$eventArgs['xoopsUser']; - - // Site close - if($controller->getConfig('closesite')) { - $accessAllowed=false; - - foreach($user->getGroups() as $group) { - if(in_array($group,$controller->getConfig('closesite_okgrp')) || ($group==XOOPS_GROUP_ADMIN)) { - $accessAllowed=true; - break; - } - } - - if(!$accessAllowed) { - XCube_Utils::redirectHeader(XOOPS_URL,1,_NOPERM); - } - } - } -} - +mController->mConfig['closesite']==1) { + $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")); + } + } + + function callbackSiteLogin() + { + $accessAllowFlag = false; + if(!empty($_POST['xoops_login'])) { + // Check! + require_once XOOPS_ROOT_PATH.'/include/checklogin.php'; + return; + }elseif(is_object($this->mController->mXoopsUser)) { + foreach ($this->mController->mXoopsUser->getGroups() as $group) { + if (in_array($group, $this->mController->mConfig['closesite_okgrp']) || XOOPS_GROUP_ADMIN == $group) { + $accessAllowFlag = true; + break; + } + } + } + + if (!$accessAllowFlag) { + require_once XOOPS_ROOT_PATH.'/class/template.php'; + $xoopsTpl = new XoopsTpl(); + $xoopsTpl->assign( array('xoops_sitename' => htmlspecialchars($this->mController->mConfig['sitename']), + 'xoops_themecss' => xoops_getcss(), + 'xoops_imageurl' => XOOPS_THEME_URL.'/'.$this->mController->mConfig['theme_set'].'/', + 'lang_login' => _LOGIN, + 'lang_username' => _USERNAME, + 'lang_password' => _PASSWORD, + 'lang_siteclosemsg' => $this->mController->mConfig['closesite_text'])); + $xoopsTpl->xoops_setCaching(1); + $xoopsTpl->display('db:system_siteclosed.html'); ///< @todo depends schema + exit(); + } + } + + function callbackCheckLoginSuccess(&$controller,&$eventArgs) + { + // + // This check is not needed. :) + // + if(!is_object($eventArgs['xoopsUser'])) + return; + + $user=&$eventArgs['xoopsUser']; + + // Site close + if($controller->getConfig('closesite')) { + $accessAllowed=false; + + foreach($user->getGroups() as $group) { + if(in_array($group,$controller->getConfig('closesite_okgrp')) || ($group==XOOPS_GROUP_ADMIN)) { + $accessAllowed=true; + break; + } + } + + if(!$accessAllowed) { + XCube_Utils::redirectHeader(XOOPS_URL,1,_NOPERM); + } + } + } +} + ?> \ No newline at end of file From minahito @ users.sourceforge.jp Tue Mar 28 22:30:34 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 28 Mar 2006 22:30:34 +0900 Subject: [xoops-cvslog 2535] CVS update: xoops2jp/html/modules/base/service Message-ID: <20060328133034.C977D2AC085@users.sourceforge.jp> Index: xoops2jp/html/modules/base/service/LegacySearchService.class.php diff -u xoops2jp/html/modules/base/service/LegacySearchService.class.php:1.1.2.2 xoops2jp/html/modules/base/service/LegacySearchService.class.php:1.1.2.3 --- xoops2jp/html/modules/base/service/LegacySearchService.class.php:1.1.2.2 Tue Feb 7 15:54:26 2006 +++ xoops2jp/html/modules/base/service/LegacySearchService.class.php Tue Mar 28 22:30:34 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php diff -u xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php:1.1.2.4 xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php:1.1.2.5 --- xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php:1.1.2.4 Sun Mar 26 15:08:12 2006 +++ xoops2jp/html/modules/base/preload/ThemeSelect/ThemeSelect.class.php Tue Mar 28 22:30:34 2006 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php diff -u xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php:1.1.2.2 xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php:1.1.2.3 --- xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php:1.1.2.2 Tue Jan 17 19:30:30 2006 +++ xoops2jp/html/modules/legacyRender/admin/class/PageNavigator.class.php Tue Mar 28 22:30:48 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/pm/forms/DeletePmsgForm.class.php diff -u xoops2jp/html/modules/pm/forms/DeletePmsgForm.class.php:1.1.2.1 xoops2jp/html/modules/pm/forms/DeletePmsgForm.class.php:1.1.2.2 --- xoops2jp/html/modules/pm/forms/DeletePmsgForm.class.php:1.1.2.1 Wed Nov 2 20:22:46 2005 +++ xoops2jp/html/modules/pm/forms/DeletePmsgForm.class.php Tue Mar 28 22:30:48 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/legacyRender/admin/forms/ThemeSelectForm.class.php diff -u xoops2jp/html/modules/legacyRender/admin/forms/ThemeSelectForm.class.php:1.1.2.1 xoops2jp/html/modules/legacyRender/admin/forms/ThemeSelectForm.class.php:1.1.2.2 --- xoops2jp/html/modules/legacyRender/admin/forms/ThemeSelectForm.class.php:1.1.2.1 Sat Jan 14 14:31:53 2006 +++ xoops2jp/html/modules/legacyRender/admin/forms/ThemeSelectForm.class.php Tue Mar 28 22:30:48 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/legacyRender/class/tplset.php diff -u xoops2jp/html/modules/legacyRender/class/tplset.php:1.1.2.7 xoops2jp/html/modules/legacyRender/class/tplset.php:1.1.2.8 --- xoops2jp/html/modules/legacyRender/class/tplset.php:1.1.2.7 Sun Jan 15 04:00:34 2006 +++ xoops2jp/html/modules/legacyRender/class/tplset.php Tue Mar 28 22:30:48 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/pm/actions/PmPmliteAction.class.php diff -u xoops2jp/html/modules/pm/actions/PmPmliteAction.class.php:1.1.2.5 xoops2jp/html/modules/pm/actions/PmPmliteAction.class.php:1.1.2.6 --- xoops2jp/html/modules/pm/actions/PmPmliteAction.class.php:1.1.2.5 Tue Jan 17 16:00:08 2006 +++ xoops2jp/html/modules/pm/actions/PmPmliteAction.class.php Tue Mar 28 22:30:49 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/legacyRender/admin/actions/TplsetCloneAction.class.php diff -u xoops2jp/html/modules/legacyRender/admin/actions/TplsetCloneAction.class.php:1.1.2.3 xoops2jp/html/modules/legacyRender/admin/actions/TplsetCloneAction.class.php:1.1.2.4 --- xoops2jp/html/modules/legacyRender/admin/actions/TplsetCloneAction.class.php:1.1.2.3 Sat Jan 14 22:18:37 2006 +++ xoops2jp/html/modules/legacyRender/admin/actions/TplsetCloneAction.class.php Tue Mar 28 22:30:49 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/pm/kernel/PrivateMessage.class.php diff -u xoops2jp/html/modules/pm/kernel/PrivateMessage.class.php:1.1.2.1 xoops2jp/html/modules/pm/kernel/PrivateMessage.class.php:1.1.2.2 --- xoops2jp/html/modules/pm/kernel/PrivateMessage.class.php:1.1.2.1 Wed Nov 2 20:23:44 2005 +++ xoops2jp/html/modules/pm/kernel/PrivateMessage.class.php Tue Mar 28 22:30:49 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/pm/service/LegacyPmService.class.php diff -u xoops2jp/html/modules/pm/service/LegacyPmService.class.php:1.1.2.1 xoops2jp/html/modules/pm/service/LegacyPmService.class.php:1.1.2.2 --- xoops2jp/html/modules/pm/service/LegacyPmService.class.php:1.1.2.1 Mon Nov 7 19:51:41 2005 +++ xoops2jp/html/modules/pm/service/LegacyPmService.class.php Tue Mar 28 22:30:49 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/pm/class/PmActionFrame.class.php diff -u xoops2jp/html/modules/pm/class/PmActionFrame.class.php:1.1.2.3 xoops2jp/html/modules/pm/class/PmActionFrame.class.php:1.1.2.4 --- xoops2jp/html/modules/pm/class/PmActionFrame.class.php:1.1.2.3 Wed Nov 16 19:12:01 2005 +++ xoops2jp/html/modules/pm/class/PmActionFrame.class.php Tue Mar 28 22:30:49 2006 @@ -25,6 +25,8 @@ // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA // // ------------------------------------------------------------------------ // +if (!defined('XOOPS_ROOT_PATH')) exit(); + require_once XOOPS_ROOT_PATH."/class/XCube_ActionStrategy.class.php"; define ("PM_FRAME_PERFORM_SUCCESS",1); From minahito @ users.sourceforge.jp Tue Mar 28 22:30:50 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Tue, 28 Mar 2006 22:30:50 +0900 Subject: [xoops-cvslog 2546] CVS update: xoops2jp/html/modules/legacyRender/kernel Message-ID: <20060328133050.3A6BC2AC09F@users.sourceforge.jp> Index: xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderTarget.class.php diff -u xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderTarget.class.php:1.1.2.2 xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderTarget.class.php:1.1.2.3 --- xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderTarget.class.php:1.1.2.2 Tue Nov 29 16:16:40 2005 +++ xoops2jp/html/modules/legacyRender/kernel/Legacy_RenderTarget.class.php Tue Mar 28 22:30:50 2006 @@ -1,8 +1,10 @@ Index: xoops2jp/html/modules/user/actions/UserRegisterAction.class.php diff -u xoops2jp/html/modules/user/actions/UserRegisterAction.class.php:1.1.2.6 xoops2jp/html/modules/user/actions/UserRegisterAction.class.php:1.1.2.7 --- xoops2jp/html/modules/user/actions/UserRegisterAction.class.php:1.1.2.6 Sun Feb 5 19:33:39 2006 +++ xoops2jp/html/modules/user/actions/UserRegisterAction.class.php Tue Mar 28 22:31:02 2006 @@ -1,72 +1,74 @@ -mConfig=&$moduleConfig; - - if(is_object($xoopsUser)) { - // If user is registered, kick to his information page. - $controller->executeForward(XOOPS_URL."/user.php"); - } - if (empty($this->mConfig['allow_register'])) { - redirect_header(XOOPS_URL.'/', 6, _US_NOREGISTER); - exit(); - } - } - - function execute(&$controller,&$xoopsUser) - { - $this->_processActionForm(); - $this->mActionForm->fetch(); - $this->mActionForm->validate(); - - if($this->mActionForm->hasError()) { - return USER_FRAME_VIEW_INPUT; - } else { - $_SESSION['user_register_actionform']=serialize(&$this->mActionForm); - $controller->executeForward('./index.php?action=UserRegister_confirm'); - } - } - - function getDefaultView(&$controller,&$xoopsUser) - { - $this->_processActionForm(); - return USER_FRAME_VIEW_INPUT; - } - - function _processActionForm() - { - if($this->mConfig['reg_dispdsclmr']!=0 && $this->mConfig['reg_disclaimer']!=null) { - $this->mEnableAgreeFlag=true; - $this->mActionForm=new UserRegisterAgreeEditForm(); - } else { - $this->mActionForm=new UserRegisterEditForm(); - } - - $this->mActionForm->prepare($this->mConfig); - } - - function executeViewInput(&$controller,&$xoopsUser,&$renderSystem) - { - $renderSystem->setTemplateName("user_register_form.html"); - // Get some objects for input form. - $tzoneHandler =& xoops_gethandler('timezone'); - $timezones =& $tzoneHandler->getObjects(); - $renderSystem->setAttribute('timezones', $timezones); - $renderSystem->setAttribute("actionForm",$this->mActionForm); - $renderSystem->setAttribute("enableAgree",$this->mEnableAgreeFlag); - if($this->mEnableAgreeFlag) { - $renderSystem->setAttribute("disclaimer",$this->mConfig['reg_disclaimer']); - } - } -} - +mConfig=&$moduleConfig; + + if(is_object($xoopsUser)) { + // If user is registered, kick to his information page. + $controller->executeForward(XOOPS_URL."/user.php"); + } + if (empty($this->mConfig['allow_register'])) { + redirect_header(XOOPS_URL.'/', 6, _US_NOREGISTER); + exit(); + } + } + + function execute(&$controller,&$xoopsUser) + { + $this->_processActionForm(); + $this->mActionForm->fetch(); + $this->mActionForm->validate(); + + if($this->mActionForm->hasError()) { + return USER_FRAME_VIEW_INPUT; + } else { + $_SESSION['user_register_actionform']=serialize(&$this->mActionForm); + $controller->executeForward('./index.php?action=UserRegister_confirm'); + } + } + + function getDefaultView(&$controller,&$xoopsUser) + { + $this->_processActionForm(); + return USER_FRAME_VIEW_INPUT; + } + + function _processActionForm() + { + if($this->mConfig['reg_dispdsclmr']!=0 && $this->mConfig['reg_disclaimer']!=null) { + $this->mEnableAgreeFlag=true; + $this->mActionForm=new UserRegisterAgreeEditForm(); + } else { + $this->mActionForm=new UserRegisterEditForm(); + } + + $this->mActionForm->prepare($this->mConfig); + } + + function executeViewInput(&$controller,&$xoopsUser,&$renderSystem) + { + $renderSystem->setTemplateName("user_register_form.html"); + // Get some objects for input form. + $tzoneHandler =& xoops_gethandler('timezone'); + $timezones =& $tzoneHandler->getObjects(); + $renderSystem->setAttribute('timezones', $timezones); + $renderSystem->setAttribute("actionForm",$this->mActionForm); + $renderSystem->setAttribute("enableAgree",$this->mEnableAgreeFlag); + if($this->mEnableAgreeFlag) { + $renderSystem->setAttribute("disclaimer",$this->mConfig['reg_disclaimer']); + } + } +} + ?> \ No newline at end of file Index: xoops2jp/html/modules/user/actions/AvatarEditAction.class.php diff -u xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.3 xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.4 --- xoops2jp/html/modules/user/actions/AvatarEditAction.class.php:1.1.2.3 Wed Mar 8 19:19:20 2006 +++ xoops2jp/html/modules/user/actions/AvatarEditAction.class.php Tue Mar 28 22:31:02 2006 @@ -1,5 +1,7 @@ mObject)) { + { + if ((!isset($_REQUEST['actkey'])) || (!$this->mObject)) { $controller->executeForward(XOOPS_URL.'/'); - exit(); - } - if ($this->mObject->get('actkey') != $_REQUEST['actkey']) { + exit(); + } + if ($this->mObject->get('actkey') != $_REQUEST['actkey']) { redirect_header(XOOPS_URL, 3, _US_ACTKEYNOT); - exit(); - } - if ($this->mObject->get('level') > 1) { + exit(); + } + if ($this->mObject->get('level') > 1) { redirect_header(XOOPS_URL.'/user.php', 3, _US_ACONTACT); - exit(); - } - - $this->mObject->setVar('level','1'); - // Force update with GET request - $this->mObjectHandler->insert($this->mObject,true); - - if ($this->mConfig['activation_type'] == 2) { - $builder = new RegistAdminCommitMailBuilder(); - $director=new UserRegistMailDirector($this->mObject,$controller->getConfig(),$this->mConfig); - $director->contruct($builder); - $mailer=&$builder->getResult(); - if ($mailer->send()) { - redirect_header(XOOPS_URL.'/' ,5, sprintf(_US_ACTVMAILOK, $this->mObject->getVar('uname'))); - } else { - redirect_header(XOOPS_URL.'/' ,5, sprintf(_US_ACTVMAILNG, $this->mObject->getVar('uname'))); - } - } else { - redirect_header(XOOPS_URL.'/user.php' ,5,_US_ACTLOGIN); - } - } -} + exit(); + } + + $this->mObject->setVar('level','1'); + // Force update with GET request + $this->mObjectHandler->insert($this->mObject,true); + + if ($this->mConfig['activation_type'] == 2) { + $builder = new RegistAdminCommitMailBuilder(); + $director=new UserRegistMailDirector($this->mObject,$controller->getConfig(),$this->mConfig); + $director->contruct($builder); + $mailer=&$builder->getResult(); + if ($mailer->send()) { + redirect_header(XOOPS_URL.'/' ,5, sprintf(_US_ACTVMAILOK, $this->mObject->getVar('uname'))); + } else { + redirect_header(XOOPS_URL.'/' ,5, sprintf(_US_ACTVMAILNG, $this->mObject->getVar('uname'))); + } + } else { + redirect_header(XOOPS_URL.'/user.php' ,5,_US_ACTLOGIN); + } + } +} ?> Index: xoops2jp/html/modules/user/actions/EditUserAction.class.php diff -u xoops2jp/html/modules/user/actions/EditUserAction.class.php:1.1.2.6 xoops2jp/html/modules/user/actions/EditUserAction.class.php:1.1.2.7 --- xoops2jp/html/modules/user/actions/EditUserAction.class.php:1.1.2.6 Sat Feb 4 03:13:10 2006 +++ xoops2jp/html/modules/user/actions/EditUserAction.class.php Tue Mar 28 22:31:02 2006 @@ -1,5 +1,7 @@ mConfig=&$moduleConfig; - - $controller->mRoot->mEventManager->add("Module.User.Regist.Success", - new XCube_InstanceDelegate($this,"eventNotifyMail")); - } - - function execute(&$controller,&$xoopsUser) - { - // confirmForm - $this->_getRegistForm($controller); - $this->_processActionForm($controller); - - $memberHandler=&xoops_gethandler('member'); - $this->mNewUser=&$memberHandler->createUser(); - $this->mRegistForm->update($this->mNewUser); - $this->mNewUser->setVar('uorder',$controller->getConfig('com_order'),true); - $this->mNewUser->setVar('umode',$controller->getConfig('com_mode'),true); - if($this->mConfig['activation_type'] == 1) { - $this->mNewUser->setVar('level',1,true); - } - - if(!$memberHandler->insertUser($this->mNewUser)) { - $this->mRedirectMessage=_US_REGISTERNG; - return USER_FRAME_VIEW_ERROR; - } - - if(!$memberHandler->addUserToGroup(XOOPS_GROUP_USERS,$this->mNewUser->getVar('uid'))) { - $this->mRedirectMessage=_US_REGISTERNG; - return USER_FRAME_VIEW_ERROR; - } - - $this->_clearRegistForm($controller); - - $this->_processMail($controller); - $eventArgs = array(); - $controller->mRoot->mEventManager->raiseEvent("Module.User.Regist.Success",$controller,$eventArgs); - - return USER_FRAME_VIEW_SUCCESS; - } - - function getDefaultView(&$controller,&$xoopsUser) - { - $this->_getRegistForm($controller); - $this->_processActionForm($controller); - - return USER_FRAME_VIEW_INPUT; - } - - /** - * Get regist actionform from Session and set it to the member property. - */ - function _getRegistForm(&$controller) - { - $this->mRegistForm=& unserialize($_SESSION['user_register_actionform']); - if(!is_object($this->mRegistForm)) { - $controller->executeForward('./index.php?action=UserRegister'); - } - } - - /** - * clear session - */ - function _clearRegistForm(&$controller) - { - unset($_SESSION['user_register_actionform']); - } - - function _processMail(&$controller) - { - $activationType=$this->mConfig['activation_type']; - - if($activationType==1) - return; - - // Wmm.. - $builder = ($activationType==0) ? new RegistUserActivateMailBuilder() - : new RegistUserAdminActivateMailBuilder(); - - $director=new UserRegistMailDirector($this->mNewUser,$controller->getConfig(),$this->mConfig); - $director->contruct($builder); - $mailer=&$builder->getResult(); - - $mailer->send(); // CHECKS - } - - function eventNotifyMail(&$controller,&$eventArgs) - { - if($this->mConfig['new_user_notify'] == 1 && !empty($this->mConfig['new_user_notify_group'])) { - $director=new UserRegistMailDirector($this->mNewUser,$controller->getConfig(),$this->mConfig); - $builder = new RegistUserNotifyMailBuilder(); - $director->contruct($builder); - $mailer=&$builder->getResult(); - $mailer->send(); - } - } - - function _processActionForm(&$controller) - { - $this->mActionForm=new UserConfirmForm(); - } - - function executeViewError(&$controller,&$xoopsUser,&$renderSystem) - { - XCube_Utils::redirectHeader(XOOPS_URL,1,$this->mRedirectMessage); - } - - function executeViewInput(&$controller,&$xoopsUser,&$renderSystem) - { - $renderSystem->setTemplateName("user_register_confirm.html"); - $renderSystem->setAttribute("actionForm",$this->mActionForm); - $renderSystem->setAttribute("registForm",$this->mRegistForm); - } - function executeViewSuccess(&$controller,&$xoopsUser,&$renderSystem) - { - $activationType=$this->mConfig['activation_type']; - - if($activationType==0) { - $renderSystem->setTemplateName("user_register_finish.html"); - $renderSystem->setAttribute("complete_message",_US_YOURREGISTERED); - } else if($activationType==1) { - XCube_Utils::redirectHeader(XOOPS_URL,4,_US_ACTLOGIN); - } else if($activationType==2) { - $renderSystem->setTemplateName("user_register_finish.html"); - $renderSystem->setAttribute("complete_message",_US_YOURREGISTERED2); - } - } -} +mConfig=&$moduleConfig; + + $controller->mRoot->mEventManager->add("Module.User.Regist.Success", + new XCube_InstanceDelegate($this,"eventNotifyMail")); + } + + function execute(&$controller,&$xoopsUser) + { + // confirmForm + $this->_getRegistForm($controller); + $this->_processActionForm($controller); + + $memberHandler=&xoops_gethandler('member'); + $this->mNewUser=&$memberHandler->createUser(); + $this->mRegistForm->update($this->mNewUser); + $this->mNewUser->setVar('uorder',$controller->getConfig('com_order'),true); + $this->mNewUser->setVar('umode',$controller->getConfig('com_mode'),true); + if($this->mConfig['activation_type'] == 1) { + $this->mNewUser->setVar('level',1,true); + } + + if(!$memberHandler->insertUser($this->mNewUser)) { + $this->mRedirectMessage=_US_REGISTERNG; + return USER_FRAME_VIEW_ERROR; + } + + if(!$memberHandler->addUserToGroup(XOOPS_GROUP_USERS,$this->mNewUser->getVar('uid'))) { + $this->mRedirectMessage=_US_REGISTERNG; + return USER_FRAME_VIEW_ERROR; + } + + $this->_clearRegistForm($controller); + + $this->_processMail($controller); + $eventArgs = array(); + $controller->mRoot->mEventManager->raiseEvent("Module.User.Regist.Success",$controller,$eventArgs); + + return USER_FRAME_VIEW_SUCCESS; + } + + function getDefaultView(&$controller,&$xoopsUser) + { + $this->_getRegistForm($controller); + $this->_processActionForm($controller); + + return USER_FRAME_VIEW_INPUT; + } + + /** + * Get regist actionform from Session and set it to the member property. + */ + function _getRegistForm(&$controller) + { + $this->mRegistForm=& unserialize($_SESSION['user_register_actionform']); + if(!is_object($this->mRegistForm)) { + $controller->executeForward('./index.php?action=UserRegister'); + } + } + + /** + * clear session + */ + function _clearRegistForm(&$controller) + { + unset($_SESSION['user_register_actionform']); + } + + function _processMail(&$controller) + { + $activationType=$this->mConfig['activation_type']; + + if($activationType==1) + return; + + // Wmm.. + $builder = ($activationType==0) ? new RegistUserActivateMailBuilder() + : new RegistUserAdminActivateMailBuilder(); + + $director=new UserRegistMailDirector($this->mNewUser,$controller->getConfig(),$this->mConfig); + $director->contruct($builder); + $mailer=&$builder->getResult(); + + $mailer->send(); // CHECKS + } + + function eventNotifyMail(&$controller,&$eventArgs) + { + if($this->mConfig['new_user_notify'] == 1 && !empty($this->mConfig['new_user_notify_group'])) { + $director=new UserRegistMailDirector($this->mNewUser,$controller->getConfig(),$this->mConfig); + $builder = new RegistUserNotifyMailBuilder(); + $director->contruct($builder); + $mailer=&$builder->getResult(); + $mailer->send(); + } + } + + function _processActionForm(&$controller) + { + $this->mActionForm=new UserConfirmForm(); + } + + function executeViewError(&$controller,&$xoopsUser,&$renderSystem) + { + XCube_Utils::redirectHeader(XOOPS_URL,1,$this->mRedirectMessage); + } + + function executeViewInput(&$controller,&$xoopsUser,&$renderSystem) + { + $renderSystem->setTemplateName("user_register_confirm.html"); + $renderSystem->setAttribute("actionForm",$this->mActionForm); + $renderSystem->setAttribute("registForm",$this->mRegistForm); + } + function executeViewSuccess(&$controller,&$xoopsUser,&$renderSystem) + { + $activationType=$this->mConfig['activation_type']; + + if($activationType==0) { + $renderSystem->setTemplateName("user_register_finish.html"); + $renderSystem->setAttribute("complete_message",_US_YOURREGISTERED); + } else if($activationType==1) { + XCube_Utils::redirectHeader(XOOPS_URL,4,_US_ACTLOGIN); + } else if($activationType==2) { + $renderSystem->setTemplateName("user_register_finish.html"); + $renderSystem->setAttribute("complete_message",_US_YOURREGISTERED2); + } + } +} ?> \ No newline at end of file Index: xoops2jp/html/modules/user/actions/LostPassAction.class.php diff -u xoops2jp/html/modules/user/actions/LostPassAction.class.php:1.1.2.1 xoops2jp/html/modules/user/actions/LostPassAction.class.php:1.1.2.2 --- xoops2jp/html/modules/user/actions/LostPassAction.class.php:1.1.2.1 Sun Feb 5 22:14:25 2006 +++ xoops2jp/html/modules/user/actions/LostPassAction.class.php Tue Mar 28 22:31:02 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/user/admin/actions/GroupPropertyAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/GroupPropertyAction.class.php:1.1.2.2 xoops2jp/html/modules/user/admin/actions/GroupPropertyAction.class.php:1.1.2.3 --- xoops2jp/html/modules/user/admin/actions/GroupPropertyAction.class.php:1.1.2.2 Sat Feb 4 17:37:06 2006 +++ xoops2jp/html/modules/user/admin/actions/GroupPropertyAction.class.php Tue Mar 28 22:31:14 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/user/admin/actions/UserListAction.class.php diff -u xoops2jp/html/modules/user/admin/actions/UserListAction.class.php:1.1.2.1 xoops2jp/html/modules/user/admin/actions/UserListAction.class.php:1.1.2.2 --- xoops2jp/html/modules/user/admin/actions/UserListAction.class.php:1.1.2.1 Thu Jan 19 21:06:54 2006 +++ xoops2jp/html/modules/user/admin/actions/UserListAction.class.php Tue Mar 28 22:31:45 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/user/admin/class/Permission.class.php diff -u xoops2jp/html/modules/user/admin/class/Permission.class.php:1.1.2.5 xoops2jp/html/modules/user/admin/class/Permission.class.php:1.1.2.6 --- xoops2jp/html/modules/user/admin/class/Permission.class.php:1.1.2.5 Sat Feb 4 17:39:24 2006 +++ xoops2jp/html/modules/user/admin/class/Permission.class.php Tue Mar 28 22:32:03 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/user/class/AbstractListAction.class.php diff -u xoops2jp/html/modules/user/class/AbstractListAction.class.php:1.1.2.1 xoops2jp/html/modules/user/class/AbstractListAction.class.php:1.1.2.2 --- xoops2jp/html/modules/user/class/AbstractListAction.class.php:1.1.2.1 Thu Jan 19 21:12:42 2006 +++ xoops2jp/html/modules/user/class/AbstractListAction.class.php Tue Mar 28 22:32:03 2006 @@ -1,5 +1,7 @@ mUser=&$user; - $this->mXoopsConfig=$xoopsConfig; - $this->mUserConfig=$userConfig; - } - - function contruct(&$builder) - { - $builder->setTemplate(); - $builder->setToUsers($this->mUser,$this->mUserConfig); - $builder->setFromEmail($this->mXoopsConfig); - $builder->setSubject($this->mUser,$this->mXoopsConfig); - $builder->setBody($this->mUser,$this->mXoopsConfig); - } -} - -class RegistUserActivateMailBuilder -{ - var $mMailer; - - function RegistUserActivateMailBuilder() - { - $this->mMailer=&getMailer(); - $this->mMailer->useMail(); - } - - function setTemplate() - { - $root=&XCube_Root::getSingleton(); - $language = $root->mController->getConfig('language'); - $this->mMailer->setTemplateDir(XOOPS_ROOT_PATH.'/modules/user/language/'.$language.'/mail_template/'); - $this->mMailer->setTemplate('register.tpl'); - } - - function setToUsers($user,$userConfig) - { - $this->mMailer->setToUsers($user); - } - - function setFromEmail($xoopsConfig) - { - $this->mMailer->setFromEmail($xoopsConfig['adminmail']); - $this->mMailer->setFromName($xoopsConfig['sitename']); - } - - function setSubject($user,$xoopsConfig) - { - $this->mMailer->setSubject(@sprintf(_US_USERKEYFOR,$user->getVar('uname'))); - } - - function setBody($user,$xoopsConfig) - { - $this->mMailer->assign('SITENAME',$xoopsConfig['sitename']); - $this->mMailer->assign('ADMINMAIL',$xoopsConfig['adminmail']); - $this->mMailer->assign('SITEURL',XOOPS_URL.'/'); - $this->mMailer->assign('USERACTLINK', XOOPS_URL.'/modules/user/index.php?action=UserActivate&uid='.$user->getVar('uid').'&actkey='.$user->getVar('actkey')); - } - - function &getResult() - { - return $this->mMailer; - } -} - -class RegistUserAdminActivateMailBuilder extends RegistUserActivateMailBuilder -{ - function setTemplate() - { - $root=&XCube_Root::getSingleton(); - $language = $root->mController->getConfig('language'); - $this->mMailer->setTemplateDir(XOOPS_ROOT_PATH.'/modules/user/language/'.$language.'/mail_template/'); - $this->mMailer->setTemplate('adminactivate.tpl'); - } - - function setToUsers($user,$userConfig) - { - $memberHandler=&xoops_gethandler('member'); - $this->mMailer->setToGroups($memberHandler->getGroup($userConfig['activation_group'])); - $this->mMailer->setToUsers($user); - } - - function setFromUser($xoopsConfig) - { - $this->mMailer->setFromEmail($xoopsConfig['adminmail']); - $this->mMailer->setFromName($xoopsConfig['sitename']); - } - - function setSubject($user,$xoopsConfig) - { - $this->mMailer->setSubject(@sprintf(_US_USERKEYFOR,$user->getVar('uname'))); - } - - function setBody($user,$xoopsConfig) - { - parent::setBody($user,$xoopsConfig); - $this->mMailer->assign('USERNAME', $user->getVar('uname')); - $this->mMailer->assign('USEREMAIL', $user->getVar('email')); - $this->mMailer->assign('USERACTLINK', XOOPS_URL.'/modules/user/index.php?action=UserActivate&uid='.$user->getVar('uid').'&actkey='.$user->getVar('actkey')); - } -} - -class RegistUserNotifyMailBuilder extends RegistUserActivateMailBuilder -{ - function setTemplate() - { - } - - function setToUsers($user,$userConfig) - { - $memberHandler=&xoops_gethandler('member'); - $this->mMailer->setToGroups($memberHandler->getGroup($userConfig['new_user_notify_group'])); - } - - function setSubject($user,$xoopsConfig) - { - $this->mMailer->setSubject(@sprintf(_US_NEWUSERREGAT,$xoopsConfig['sitename'])); - } - - function setBody($user,$xoopsConfig) - { - $this->mMailer->setBody(@sprintf(_US_HASJUSTREG, $user->getVar('uname'))); - } -} - -class RegistAdminCommitMailBuilder extends RegistUserActivateMailBuilder -{ - function setTemplate() - { - $root=&XCube_Root::getSingleton(); - $language = $root->mController->getConfig('language'); - $this->mMailer->setTemplateDir(XOOPS_ROOT_PATH.'/modules/user/language/'.$language.'/mail_template/'); - $this->mMailer->setTemplate('activated.tpl'); - } - - function setSubject($user,$xoopsConfig) - { - $this->mMailer->setSubject(@sprintf(_US_YOURACCOUNT,$xoopsConfig['sitename'])); - } -} - +mUser=&$user; + $this->mXoopsConfig=$xoopsConfig; + $this->mUserConfig=$userConfig; + } + + function contruct(&$builder) + { + $builder->setTemplate(); + $builder->setToUsers($this->mUser,$this->mUserConfig); + $builder->setFromEmail($this->mXoopsConfig); + $builder->setSubject($this->mUser,$this->mXoopsConfig); + $builder->setBody($this->mUser,$this->mXoopsConfig); + } +} + +class RegistUserActivateMailBuilder +{ + var $mMailer; + + function RegistUserActivateMailBuilder() + { + $this->mMailer=&getMailer(); + $this->mMailer->useMail(); + } + + function setTemplate() + { + $root=&XCube_Root::getSingleton(); + $language = $root->mController->getConfig('language'); + $this->mMailer->setTemplateDir(XOOPS_ROOT_PATH.'/modules/user/language/'.$language.'/mail_template/'); + $this->mMailer->setTemplate('register.tpl'); + } + + function setToUsers($user,$userConfig) + { + $this->mMailer->setToUsers($user); + } + + function setFromEmail($xoopsConfig) + { + $this->mMailer->setFromEmail($xoopsConfig['adminmail']); + $this->mMailer->setFromName($xoopsConfig['sitename']); + } + + function setSubject($user,$xoopsConfig) + { + $this->mMailer->setSubject(@sprintf(_US_USERKEYFOR,$user->getVar('uname'))); + } + + function setBody($user,$xoopsConfig) + { + $this->mMailer->assign('SITENAME',$xoopsConfig['sitename']); + $this->mMailer->assign('ADMINMAIL',$xoopsConfig['adminmail']); + $this->mMailer->assign('SITEURL',XOOPS_URL.'/'); + $this->mMailer->assign('USERACTLINK', XOOPS_URL.'/modules/user/index.php?action=UserActivate&uid='.$user->getVar('uid').'&actkey='.$user->getVar('actkey')); + } + + function &getResult() + { + return $this->mMailer; + } +} + +class RegistUserAdminActivateMailBuilder extends RegistUserActivateMailBuilder +{ + function setTemplate() + { + $root=&XCube_Root::getSingleton(); + $language = $root->mController->getConfig('language'); + $this->mMailer->setTemplateDir(XOOPS_ROOT_PATH.'/modules/user/language/'.$language.'/mail_template/'); + $this->mMailer->setTemplate('adminactivate.tpl'); + } + + function setToUsers($user,$userConfig) + { + $memberHandler=&xoops_gethandler('member'); + $this->mMailer->setToGroups($memberHandler->getGroup($userConfig['activation_group'])); + $this->mMailer->setToUsers($user); + } + + function setFromUser($xoopsConfig) + { + $this->mMailer->setFromEmail($xoopsConfig['adminmail']); + $this->mMailer->setFromName($xoopsConfig['sitename']); + } + + function setSubject($user,$xoopsConfig) + { + $this->mMailer->setSubject(@sprintf(_US_USERKEYFOR,$user->getVar('uname'))); + } + + function setBody($user,$xoopsConfig) + { + parent::setBody($user,$xoopsConfig); + $this->mMailer->assign('USERNAME', $user->getVar('uname')); + $this->mMailer->assign('USEREMAIL', $user->getVar('email')); + $this->mMailer->assign('USERACTLINK', XOOPS_URL.'/modules/user/index.php?action=UserActivate&uid='.$user->getVar('uid').'&actkey='.$user->getVar('actkey')); + } +} + +class RegistUserNotifyMailBuilder extends RegistUserActivateMailBuilder +{ + function setTemplate() + { + } + + function setToUsers($user,$userConfig) + { + $memberHandler=&xoops_gethandler('member'); + $this->mMailer->setToGroups($memberHandler->getGroup($userConfig['new_user_notify_group'])); + } + + function setSubject($user,$xoopsConfig) + { + $this->mMailer->setSubject(@sprintf(_US_NEWUSERREGAT,$xoopsConfig['sitename'])); + } + + function setBody($user,$xoopsConfig) + { + $this->mMailer->setBody(@sprintf(_US_HASJUSTREG, $user->getVar('uname'))); + } +} + +class RegistAdminCommitMailBuilder extends RegistUserActivateMailBuilder +{ + function setTemplate() + { + $root=&XCube_Root::getSingleton(); + $language = $root->mController->getConfig('language'); + $this->mMailer->setTemplateDir(XOOPS_ROOT_PATH.'/modules/user/language/'.$language.'/mail_template/'); + $this->mMailer->setTemplate('activated.tpl'); + } + + function setSubject($user,$xoopsConfig) + { + $this->mMailer->setSubject(@sprintf(_US_YOURACCOUNT,$xoopsConfig['sitename'])); + } +} + ?> \ No newline at end of file Index: xoops2jp/html/modules/user/class/AbstractDeleteAction.class.php diff -u xoops2jp/html/modules/user/class/AbstractDeleteAction.class.php:1.1.2.4 xoops2jp/html/modules/user/class/AbstractDeleteAction.class.php:1.1.2.5 --- xoops2jp/html/modules/user/class/AbstractDeleteAction.class.php:1.1.2.4 Thu Jan 26 20:12:10 2006 +++ xoops2jp/html/modules/user/class/AbstractDeleteAction.class.php Tue Mar 28 22:32:03 2006 @@ -1,5 +1,7 @@ mController->getConfig('language'); - $this->mMailer->setTemplateDir(XOOPS_ROOT_PATH.'/modules/user/language/'.$language.'/mail_template/'); + $root=&XCube_Root::getSingleton(); + $language = $root->mController->getConfig('language'); + $this->mMailer->setTemplateDir(XOOPS_ROOT_PATH.'/modules/user/language/'.$language.'/mail_template/'); $this->mMailer->setTemplate("lostpass1.tpl"); } @@ -76,9 +78,9 @@ { function setTemplate() { - $root=&XCube_Root::getSingleton(); - $language = $root->mController->getConfig('language'); - $this->mMailer->setTemplateDir(XOOPS_ROOT_PATH.'/modules/user/language/'.$language.'/mail_template/'); + $root=&XCube_Root::getSingleton(); + $language = $root->mController->getConfig('language'); + $this->mMailer->setTemplateDir(XOOPS_ROOT_PATH.'/modules/user/language/'.$language.'/mail_template/'); $this->mMailer->setTemplate("lostpass2.tpl"); } Index: xoops2jp/html/modules/user/class/ActionFrame.class.php diff -u xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.3 xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.4 --- xoops2jp/html/modules/user/class/ActionFrame.class.php:1.1.2.3 Sat Feb 4 03:14:33 2006 +++ xoops2jp/html/modules/user/class/ActionFrame.class.php Tue Mar 28 22:32:03 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/user/admin/forms/RanksAdminDeleteForm.class.php diff -u xoops2jp/html/modules/user/admin/forms/RanksAdminDeleteForm.class.php:1.1.2.2 xoops2jp/html/modules/user/admin/forms/RanksAdminDeleteForm.class.php:1.1.2.3 --- xoops2jp/html/modules/user/admin/forms/RanksAdminDeleteForm.class.php:1.1.2.2 Thu Feb 2 17:35:02 2006 +++ xoops2jp/html/modules/user/admin/forms/RanksAdminDeleteForm.class.php Tue Mar 28 22:32:04 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/user/kernel/UserEventFunction.class.php diff -u xoops2jp/html/modules/user/kernel/UserEventFunction.class.php:1.1.2.8 xoops2jp/html/modules/user/kernel/UserEventFunction.class.php:1.1.2.9 --- xoops2jp/html/modules/user/kernel/UserEventFunction.class.php:1.1.2.8 Sat Feb 4 16:52:47 2006 +++ xoops2jp/html/modules/user/kernel/UserEventFunction.class.php Tue Mar 28 22:32:19 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/user/forms/AvatarEditForm.class.php diff -u xoops2jp/html/modules/user/forms/AvatarEditForm.class.php:1.1.2.3 xoops2jp/html/modules/user/forms/AvatarEditForm.class.php:1.1.2.4 --- xoops2jp/html/modules/user/forms/AvatarEditForm.class.php:1.1.2.3 Wed Mar 8 19:24:29 2006 +++ xoops2jp/html/modules/user/forms/AvatarEditForm.class.php Tue Mar 28 22:32:19 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/preload/IndexRedirector.class.php diff -u xoops2jp/html/preload/IndexRedirector.class.php:1.1.2.1 xoops2jp/html/preload/IndexRedirector.class.php:1.1.2.2 --- xoops2jp/html/preload/IndexRedirector.class.php:1.1.2.1 Fri Dec 30 17:31:40 2005 +++ xoops2jp/html/preload/IndexRedirector.class.php Tue Mar 28 22:32:19 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php:1.1.2.3 xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php:1.1.2.4 --- xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php:1.1.2.3 Tue Mar 28 22:28:35 2006 +++ xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php Wed Mar 29 00:13:49 2006 @@ -35,9 +35,24 @@ $this->mObjects[$key]->loadUser(); } + $moduleArr = array(); + $handler =& xoops_getmodulehandler('comment'); + $modIds =& $handler->getModuleIds(); + + $moduleHandler =& xoops_gethandler('module'); + foreach ($modIds as $mid) { + print $mid; + $module =& $moduleHandler->get($mid); + if (is_object($module)) { + $moduleArr[] =& $module; + } + unset ($module); + } + $render->setTemplateName("comment_list.html"); $render->setAttribute("objects", $this->mObjects); $render->setAttribute("pageNavi", $this->mNavi); + $render->setAttribute("moduleArr", $moduleArr); } } From minahito @ users.sourceforge.jp Wed Mar 29 00:14:06 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 29 Mar 2006 00:14:06 +0900 Subject: [xoops-cvslog 2557] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20060328151406.02B062AC035@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/forms/CommentFilterForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/CommentFilterForm.class.php:1.1.2.3 xoops2jp/html/modules/base/admin/forms/CommentFilterForm.class.php:1.1.2.4 --- xoops2jp/html/modules/base/admin/forms/CommentFilterForm.class.php:1.1.2.3 Tue Mar 28 22:29:05 2006 +++ xoops2jp/html/modules/base/admin/forms/CommentFilterForm.class.php Wed Mar 29 00:14:05 2006 @@ -63,18 +63,13 @@ $this->mSort = COMMENT_SORT_KEY_DEFAULT; } - if (isset($_REQUEST['com_pid'])) { - $this->_mCriteria->add(new Criteria('com_pid', array(XOBJ_DTYPE_INT, xoops_getrequest('com_pid')))); - } - - if (isset($_REQUEST['com_rootid'])) { - $this->_mCriteria->add(new Criteria('com_rootid', array(XOBJ_DTYPE_INT, xoops_getrequest('com_rootid')))); - } - - if (isset($_REQUEST['com_modid'])) { + if (isset($_REQUEST['com_modid']) && intval(xoops_getrequest('com_modid')) > 0) { + $this->_mNavi->addExtra('com_modid', xoops_getrequest('com_modid')); $this->_mCriteria->add(new Criteria('com_modid', array(XOBJ_DTYPE_INT, xoops_getrequest('com_modid')))); } elseif (isset($_REQUEST['dirname'])) { + $this->_mNavi->addExtra('dirname', xoops_getrequest('dirname')); + $handler =& xoops_gethandler('module'); $module =& $handler->getByDirname(xoops_getrequest('dirname')); if (is_object($module)) { @@ -82,27 +77,23 @@ } } - if (isset($_REQUEST['com_itemid'])) { - $this->_mCriteria->add(new Criteria('com_itemid', array(XOBJ_DTYPE_INT, xoops_getrequest('com_itemid')))); - } - if (isset($_REQUEST['com_icon'])) { + $this->_mNavi->addExtra('com_icon', xoops_getrequest('com_icon')); $this->_mCriteria->add(new Criteria('com_icon', array(XOBJ_DTYPE_STRING, xoops_getrequest('com_icon')))); } if (isset($_REQUEST['com_uid'])) { + $this->_mNavi->addExtra('com_uid', xoops_getrequest('com_uid')); $this->_mCriteria->add(new Criteria('com_uid', array(XOBJ_DTYPE_INT, xoops_getrequest('com_uid')))); } if (isset($_REQUEST['com_ip'])) { + $this->_mNavi->addExtra('com_ip', xoops_getrequest('com_ip')); $this->_mCriteria->add(new Criteria('com_ip', array(XOBJ_DTYPE_STRING, xoops_getrequest('com_ip')))); } - if (isset($_REQUEST['com_title'])) { - $this->_mCriteria->add(new Criteria('com_title', array(XOBJ_DTYPE_STRING, "%" . xoops_getrequest('com_title') . "%", 'LIKE'))); - } - if (isset($_REQUEST['com_status'])) { + $this->_mNavi->addExtra('com_status', xoops_getrequest('com_status')); $this->_mCriteria->add(new Criteria('com_status', array(XOBJ_DTYPE_BOOL, xoops_getrequest('com_status')))); } } From minahito @ users.sourceforge.jp Wed Mar 29 00:14:20 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 29 Mar 2006 00:14:20 +0900 Subject: [xoops-cvslog 2558] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20060328151420.DDB2B2AC035@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/comment_list.html diff -u xoops2jp/html/modules/base/admin/templates/comment_list.html:1.1.2.5 xoops2jp/html/modules/base/admin/templates/comment_list.html:1.1.2.6 --- xoops2jp/html/modules/base/admin/templates/comment_list.html:1.1.2.5 Wed Mar 8 23:41:36 2006 +++ xoops2jp/html/modules/base/admin/templates/comment_list.html Wed Mar 29 00:14:20 2006 @@ -5,6 +5,22 @@

<{$smarty.const._MI_BASE_MENU_COMMENT_MANAGE}>

+
+ + + +
+ - + From minahito @ users.sourceforge.jp Wed Mar 29 00:14:41 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 29 Mar 2006 00:14:41 +0900 Subject: [xoops-cvslog 2559] CVS update: xoops2jp/html/modules/base/class Message-ID: <20060328151441.2DD9C2AC072@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/AbstractFilterForm.class.php diff -u xoops2jp/html/modules/base/class/AbstractFilterForm.class.php:1.1.2.2 xoops2jp/html/modules/base/class/AbstractFilterForm.class.php:1.1.2.3 --- xoops2jp/html/modules/base/class/AbstractFilterForm.class.php:1.1.2.2 Fri Feb 3 01:59:12 2006 +++ xoops2jp/html/modules/base/class/AbstractFilterForm.class.php Wed Mar 29 00:14:41 2006 @@ -9,7 +9,7 @@ function Legacy_AbstractFilterForm(&$navi) { - $this->mNavi =& $navi; + $this->_mNavi =& $navi; $this->_mCriteria =& new CriteriaCompo(); } From minahito @ users.sourceforge.jp Wed Mar 29 00:15:07 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 29 Mar 2006 00:15:07 +0900 Subject: [xoops-cvslog 2560] CVS update: xoops2jp/html/modules/base/class Message-ID: <20060328151507.9ADAE2AC085@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/comment.php diff -u xoops2jp/html/modules/base/class/comment.php:1.1.2.3 xoops2jp/html/modules/base/class/comment.php:1.1.2.4 --- xoops2jp/html/modules/base/class/comment.php:1.1.2.3 Tue Mar 28 22:29:21 2006 +++ xoops2jp/html/modules/base/class/comment.php Wed Mar 29 00:15:07 2006 @@ -66,6 +66,27 @@ return parent::delete($comment); } + + /** + * + * Return array of module id that comments are written. + * + * @return array + */ + function getModuleIds() + { + $ret = array(); + + $sql = "SELECT DISTINCT com_modid FROM " . $this->mTable; + $res = $this->db->query($sql); + if ($res) { + while ($row = $this->db->fetchArray($res)) { + $ret[] = $row['com_modid']; + } + } + + return $ret; + } } ?> From minahito @ users.sourceforge.jp Wed Mar 29 00:15:23 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 29 Mar 2006 00:15:23 +0900 Subject: [xoops-cvslog 2561] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20060328151523.145742AC062@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.18 xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.19 --- xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.18 Tue Feb 21 20:53:16 2006 +++ xoops2jp/html/modules/base/language/japanese/admin.php Wed Mar 29 00:15:22 2006 @@ -67,6 +67,7 @@ define('_MD_A_BASE_LANG_ADMINMENU_NAME', "管理画面名"); define('_MD_A_BASE_LANG_ADMINMENU_URL', "管理画面URL"); define('_MD_A_BASE_LANG_AGREE', "同意する"); +define('_MD_A_BASE_LANG_ALL_MODULE', "すべてのモジュール"); define('_MD_A_BASE_LANG_BLOCK_KEY', "キー"); define('_MD_A_BASE_LANG_BLOCK_VAL', "値"); define('_MD_A_BASE_LANG_BLOCKS_INFO', "ブロック情報"); From minahito @ users.sourceforge.jp Wed Mar 29 00:15:23 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 29 Mar 2006 00:15:23 +0900 Subject: [xoops-cvslog 2562] CVS update: xoops2jp/html/modules/base/language/english Message-ID: <20060328151523.4C3BD2AC072@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.14 xoops2jp/html/modules/base/language/english/admin.php:1.1.2.15 --- xoops2jp/html/modules/base/language/english/admin.php:1.1.2.14 Tue Feb 21 20:53:16 2006 +++ xoops2jp/html/modules/base/language/english/admin.php Wed Mar 29 00:15:23 2006 @@ -67,6 +67,7 @@ define('_MD_A_BASE_LANG_ADMINMENU_NAME', "Name of Administration Menu name"); define('_MD_A_BASE_LANG_ADMINMENU_URL', "URL of Administration Menu"); define('_MD_A_BASE_LANG_AGREE', "Agree"); +define('_MD_A_BASE_LANG_ALL_MODULE', "All modules"); define('_MD_A_BASE_LANG_BLOCK_KEY', "Key"); define('_MD_A_BASE_LANG_BLOCK_VAL', "Value"); define('_MD_A_BASE_LANG_BLOCKS_INFO', "Block information"); From minahito @ users.sourceforge.jp Wed Mar 29 18:43:47 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 29 Mar 2006 18:43:47 +0900 Subject: [xoops-cvslog 2563] CVS update: xoops2jp/html/class/smarty/plugins Message-ID: <20060329094347.EEB162AC014@users.sourceforge.jp> Index: xoops2jp/html/class/smarty/plugins/function.xoops_input.php diff -u xoops2jp/html/class/smarty/plugins/function.xoops_input.php:1.1.2.6 xoops2jp/html/class/smarty/plugins/function.xoops_input.php:1.1.2.7 --- xoops2jp/html/class/smarty/plugins/function.xoops_input.php:1.1.2.6 Wed Mar 15 19:19:49 2006 +++ xoops2jp/html/class/smarty/plugins/function.xoops_input.php Wed Mar 29 18:43:47 2006 @@ -34,6 +34,8 @@ $value = isset($params['value']) ? htmlspecialchars($params['value'],ENT_QUOTES) : null; $id = isset($params['id']) ? trim($params['id']) : null; $default = isset($params['default']) ? trim($params['default']) : null; + + $disabled = (isset($params['disabled']) && $params['disabled'] != false) ? true : false; if ($key != null) { @@ -56,7 +58,7 @@ $string.=" value=\"${value}\""; if($id) $string.=" id=\"${id}\""; - + if (isset($params['default'])) { $default = trim($params['default']); if ($value==$default) { @@ -65,6 +67,10 @@ } } } + + if ($disabled) { + $string .=" disabled"; + } $string.=" />"; From nobunobu @ users.sourceforge.jp Wed Mar 29 22:49:23 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Wed, 29 Mar 2006 22:49:23 +0900 Subject: [xoops-cvslog 2564] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20060329134923.4AB942AC029@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.26 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.27 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.26 Tue Mar 28 22:30:15 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Wed Mar 29 22:49:23 2006 @@ -349,6 +349,33 @@ $GLOBALS['xoopsDebugger']=&$this->mDebugger; } + function _processPreBlockFilter() + { + // + // Auto pre-loading for Module. + // + if($this->mRoot->getSiteConfig('Legacy','AutoPreload')==1) { + $moduleHandler =& xoops_gethandler('module'); + $moduleObjects =& $moduleHandler->getObjects(); + foreach($moduleObjects as $moduleObject) { + $mod_dir = $moduleObject->getVar('dirname'); + $dir = XOOPS_ROOT_PATH.'/modules/'.$mod_dir.'/class/'; + if(is_dir($dir)) { + $files = glob($dir.'modulePreload*.class.php'); + foreach($files as $file) { + require_once $file; + $className=preg_replace('/^modulePreload(\w*)\.class\.php/', $mod_dir.'ModulePreload\1', basename($file)); + if(class_exists($className)) { + $instance =& new $className($this); + $this->addActionFilter($instance); + } + } + } + } + } + parent::_processPreBlockFilter(); + } + function _setupSession() { global $xoopsDB; From nobunobu @ users.sourceforge.jp Wed Mar 29 22:52:01 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Wed, 29 Mar 2006 22:52:01 +0900 Subject: [xoops-cvslog 2565] CVS update: xoops2jp/html/modules/base/admin/class Message-ID: <20060329135201.5AE8D2AC043@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.8 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.8 Tue Mar 28 22:28:56 2006 +++ xoops2jp/html/modules/base/admin/class/ModuleInstaller.class.php Wed Mar 29 22:52:01 2006 @@ -52,22 +52,38 @@ // // Add a permission which administrators can manage. // - $adminPerm =& $this->_createPermission(); + $adminPerm =& $this->_createPermission(XOOPS_GROUP_ADMIN); $adminPerm->setVar('gperm_name', 'module_admin'); if (!$gpermHandler->insert($adminPerm)) { $log->addError("Could not set admin permission " . $this->mModule->getVar('mid')); } - - // - // Add a permission which administrators can read. - // - $readPerm =& $this->_createPermission(); - $readPerm->setVar('gperm_name', 'module_read'); - - if (!$gpermHandler->insert($readPerm)) { - $log->addError("Could not set read permission " . $this->mModule->getVar('mid')); - } + $read_any = $this->mModule->getInfo('read_any'); + if ($read_any) { + $memberHandler =& xoops_gethandler('member'); + $groupObjects =& $memberHandler->getGroups(); + // + // Add a permission all group members and guest can read. + // + foreach($groupObjects as $group) { + $readPerm =& $this->_createPermission($group->getVar('groupid')); + $readPerm->setVar('gperm_name', 'module_read'); + + if (!$gpermHandler->insert($readPerm)) { + $log->addError("Could not set read permission " . $this->mModule->getVar('mid')); + } + } + } else { + // + // 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')); + } + } } } @@ -75,14 +91,15 @@ * Create a permission object which has been initialized for admin. * For flexibility, creation only and not save it. * @access private + * @param $group */ - function &_createPermission() + function &_createPermission($group) { $gpermHandler =& xoops_gethandler('groupperm'); $perm =& $gpermHandler->create(); - $perm->setVar('gperm_groupid', XOOPS_GROUP_ADMIN); + $perm->setVar('gperm_groupid', $group); $perm->setVar('gperm_itemid', $this->mModule->getVar('mid')); $perm->setVar('gperm_modid', 1); @@ -118,7 +135,7 @@ $newBlock =& Legacy_ModuleUtils::createBlockByInfo($this->mModule, $block); $newBlock->setVar('func_num', $func_num); - Legacy_ModuleUtils::installBlock($this->mModule, $newBlock, $this->mLog); + Legacy_ModuleUtils::installBlock($this->mModule, $newBlock, $block, $this->mLog); } } Index: xoops2jp/html/modules/base/admin/class/ModuleUpdater.class.php diff -u xoops2jp/html/modules/base/admin/class/ModuleUpdater.class.php:1.1.2.4 xoops2jp/html/modules/base/admin/class/ModuleUpdater.class.php:1.1.2.5 --- xoops2jp/html/modules/base/admin/class/ModuleUpdater.class.php:1.1.2.4 Tue Mar 28 22:28:56 2006 +++ xoops2jp/html/modules/base/admin/class/ModuleUpdater.class.php Wed Mar 29 22:52:01 2006 @@ -114,30 +114,23 @@ // if (count($installedBlocks) == 0) { $newBlock->setVar('func_num', $func_num); - $installedBlocks[] =& $newBlock; + $installBlocks[] = array($newBlock, $block); unset($newBlock); continue; } - $oldBlock =& $installedBlocks[0]; - - // - // Check update - // $changedFlag = false; - $changedFlag |= ($newBlock->getVar('name') != $oldBlock->getVar('name')); - $changedFlag |= ($newBlock->getVar('func_file') != $oldBlock->getVar('func_file')); - $changedFlag |= ($newBlock->getVar('show_func') != $oldBlock->getVar('show_func')); - $changedFlag |= ($newBlock->getVar('edit_func') != $oldBlock->getVar('edit_func')); - $changedFlag |= ($newBlock->getVar('template') != $oldBlock->getVar('template')); + + $oldBlock =& $installedBlocks[0]; + $newBlock =& Legacy_ModuleUtils::mergeBlockObject($oldBlock, $newBlock, $changedFlag); if ($changedFlag) { - $installedBlocks[] =& $newBlock; + $installBlocks[] = array($newBlock, $block); } else { - if (!Legacy_ModuleUtils::installBlockTemplate($this->mModule, $block)) { - $this->mLog->addError("ERROR : Could not update block template ".$block->getVar('name')); + if (!Legacy_ModuleUtils::installBlockTemplate($this->mModule, $oldBlock)) { + $this->mLog->addError("ERROR : Could not update block template ".$oldBlock->getVar('name')); } } @@ -148,21 +141,21 @@ $criteria = new CriteriaCompo(); $criteria->add(new Criteria('mid', $this->mModule->getVar('mid'))); $installedBlocks =& $blockHandler->getObjectsDirectly($criteria); - foreach ($installedBlocks as $block) { - $name = $block->getVar('name'); + foreach ($installedBlocks as $blockObj) { + $name = $blockObj->getVar('name'); $findFlag = false; foreach ($definedBlocks as $definedBlock) { - $findFlag |= ($definedBlock['name'] == $block->getVar('name')); + $findFlag |= ($definedBlock['name'] == $blockObj->getVar('name')); } if (!$findFlag) { - $unInstallBlocks[] =& $block; - unset($block); + $unInstallBlocks[] =& $blockObj; + unset($blockObj); } } foreach ($installBlocks as $block) { - Legacy_ModuleUtils::installBlock($this->mModule, $block, $this->mLog); + Legacy_ModuleUtils::installBlock($this->mModule, $block[0], $block[1], $this->mLog); } /* Index: xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php diff -u xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php:1.1.2.11 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.11 Tue Mar 28 22:28:56 2006 +++ xoops2jp/html/modules/base/admin/class/ModuleUtils.class.php Wed Mar 29 22:52:01 2006 @@ -183,7 +183,8 @@ { $options = isset($block['options']) ? $block['options'] : null; $edit_func = isset($block['edit_func']) ? $block['edit_func'] : null; - + $template = isset($block['template']) ? $block['template'] : null; + $visible = isset($block['visible']) ? $block['visible'] : (isset($block['visible_any']) ? $block['visible_any']: 0); $blockHandler =& xoops_gethandler('block'); $blockObj =& $blockHandler->create(); @@ -193,55 +194,117 @@ $blockObj->setVar('title', $block['name']); $blockObj->setVar('block_type', 'M'); $blockObj->setVar('c_type', 1); + $blockObj->setVar('isactive', 1); $blockObj->setVar('dirname', $module->getVar('dirname')); $blockObj->setVar('func_file', $block['file']); $blockObj->setVar('show_func', $block['show_func']); $blockObj->setVar('edit_func', $edit_func); - $blockObj->setVar('template', $block['template']); + $blockObj->setVar('template', $template); $blockObj->setVar('last_modified', time()); - + $blockObj->setVar('visible', $visible); + return $blockObj; } + /** + * Merge existing block XoopsBlock object and new XoopsBlock object from xoops_verion + * @param $oldBlock XoopsBlock + * @param $newBlock XoopsBlock + * @param $changedFlag bool + * @return XoopsBlock + */ + function &mergeBlockObject(&$oldBlock, &$newBlock, &$changedFlag) + { + $blockObj =& $oldBlock->xoopsClone(); + $blockObj->unsetNew(); + + $changedFlag = false; + $checkValues = array('name', 'func_file', 'show_func', 'edit_func', 'template'); + foreach($checkValues as $checkValue) { + if ($newBlock->getVar($checkValue) != $oldBlock->getVar($checkValue)) { + $blockObj->setVar($checkValue, $newBlock->getVar($checkValue)); + $changedFlag |= true; + } + } + + $old_options=explode("|",$oldBlock->getVar('options')); + $new_options=explode("|",$newBlock->getVar('options')); + if (count($new_options) > count($old_options)) { + $changedFlag |= true; + for ($i=count($old_options); $isetVar('options', implode("|", $old_options)); + } else if (count($new_options) < count($old_options)) { + $changedFlag |= true; + $blockObj->setVar('options', $newBlock->getVar('options')); + } + + return $blockObj; + } + /** * This function can receive both new and update. * @param $module XoopsModule - * @param $block XoopsBlock + * @param $blockObj XoopsBlock + * @param $block array * @return bool */ - function installBlock(&$module, &$block, &$log) + function installBlock(&$module, &$blockObj, &$block, &$log) { - $isNew = $block->isNew(); - + $isNew = $blockObj->isNew(); $blockHandler =& xoops_gethandler('block'); - $blockObj =& $blockHandler->create(); - if (!$blockHandler->insert($block, true)) { + if (!empty($block['show_all_module'])) { + $autolink = false; + } else { + $autolink = true; + } + if (!$blockHandler->insert($blockObj, $autolink)) { $log->addError("ERROR : Could not install block whose name is " . $blockObj->getVar('name')); return false; } else { - $log->addReport("block " . $block->getVar('name') . " has been installed"); + $log->addReport("block " . $blockObj->getVar('name') . " has been installed"); $tplHandler =& xoops_gethandler('tplfile'); - if (!Legacy_ModuleUtils::installBlockTemplate($module, $block)) { - $log->addError("Could not install block template " . $block->getVar('name')); + if (!Legacy_ModuleUtils::installBlockTemplate($module, $blockObj)) { + $log->addError("Could not install block template " . $blockObj->getVar('name')); } // // Process of a permission. // if ($isNew) { - $gpermHandler =& xoops_gethandler('groupperm'); - $bperm =& $gpermHandler->create(); - $bperm->setVar('gperm_groupid', XOOPS_GROUP_ADMIN); - $bperm->setVar('gperm_itemid', $block->getVar('bid')); + if (!empty($block['show_all_module'])) { + $link_sql = "INSERT INTO " . $blockHandler->db->prefix('block_module_link') . " (block_id, module_id) VALUES (".$blockObj->getVar('bid').", 0)"; + if (!$blockHandler->db->query($link_sql)) { + $log->addWarn("Could not set link with all module " . $blockObj->getVar('name')); + } + } + $gpermHandler =& xoops_gethandler('groupperm'); + $bperm =& $gpermHandler->create(); + $bperm->setVar('gperm_itemid', $blockObj->getVar('bid')); $bperm->setVar('gperm_name', 'block_read'); $bperm->setVar('gperm_modid', 1); - if (!$gpermHandler->insert($bperm)) { - $log->addWarn("Could not set block permission " . $tplfile->getVar('bid')); + + if (!empty($block['visible_any'])) { + $memberHandler =& xoops_gethandler('member'); + $groupObjects =& $memberHandler->getGroups(); + foreach($groupObjects as $group) { + $bperm->setVar('gperm_groupid', $group->getVar('groupid')); + $bperm->setNew(); + if (!$gpermHandler->insert($bperm)) { + $log->addWarn("Could not set block permission " . $blockObj->getVar('name')); + } + } + } else { + $bperm->setVar('gperm_groupid', XOOPS_GROUP_ADMIN); + if (!$gpermHandler->insert($bperm)) { + $log->addWarn("Could not set block permission " . $blockObj->getVar('name')); + } } } From nobunobu @ users.sourceforge.jp Wed Mar 29 22:52:01 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Wed, 29 Mar 2006 22:52:01 +0900 Subject: [xoops-cvslog 2566] CVS update: xoops2jp/html/modules/base Message-ID: <20060329135201.902992AC044@users.sourceforge.jp> Index: xoops2jp/html/modules/base/xoops_version.php diff -u xoops2jp/html/modules/base/xoops_version.php:1.1.2.17 xoops2jp/html/modules/base/xoops_version.php:1.1.2.18 --- xoops2jp/html/modules/base/xoops_version.php:1.1.2.17 Sun Mar 26 15:07:43 2006 +++ xoops2jp/html/modules/base/xoops_version.php Wed Mar 29 22:52:01 2006 @@ -1,5 +1,5 @@ Index: xoops2jp/html/modules/user/xoops_version.php diff -u xoops2jp/html/modules/user/xoops_version.php:1.1.2.15 xoops2jp/html/modules/user/xoops_version.php:1.1.2.16 --- xoops2jp/html/modules/user/xoops_version.php:1.1.2.15 Fri Mar 24 22:04:24 2006 +++ xoops2jp/html/modules/user/xoops_version.php Wed Mar 29 22:52:01 2006 @@ -1,5 +1,5 @@ From nobunobu @ users.sourceforge.jp Wed Mar 29 22:52:46 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Wed, 29 Mar 2006 22:52:46 +0900 Subject: [xoops-cvslog 2568] CVS update: xoops2jp/html/modules/user/blocks Message-ID: <20060329135246.60DEA2AC029@users.sourceforge.jp> Index: xoops2jp/html/modules/user/blocks/user_online.php diff -u xoops2jp/html/modules/user/blocks/user_online.php:1.1.2.1 xoops2jp/html/modules/user/blocks/user_online.php:1.1.2.2 --- xoops2jp/html/modules/user/blocks/user_online.php:1.1.2.1 Fri Mar 24 22:04:25 2006 +++ xoops2jp/html/modules/user/blocks/user_online.php Wed Mar 29 22:52:46 2006 @@ -1,6 +1,5 @@ From nobunobu @ users.sourceforge.jp Wed Mar 29 22:52:49 2006 From: nobunobu @ users.sourceforge.jp (NobuNobu) Date: Wed, 29 Mar 2006 22:52:49 +0900 Subject: [xoops-cvslog 2569] CVS update: xoops2jp/html/modules/base/templates/blocks Message-ID: <20060329135249.C5AAD2AC029@users.sourceforge.jp> Index: xoops2jp/html/modules/base/templates/blocks/legacy_block_search.html diff -u xoops2jp/html/modules/base/templates/blocks/legacy_block_search.html:1.1.2.1 xoops2jp/html/modules/base/templates/blocks/legacy_block_search.html:1.1.2.2 --- xoops2jp/html/modules/base/templates/blocks/legacy_block_search.html:1.1.2.1 Sun Mar 26 15:07:49 2006 +++ xoops2jp/html/modules/base/templates/blocks/legacy_block_search.html Wed Mar 29 22:52:49 2006 @@ -1,6 +1,6 @@
- -
- + <{xoops_input type=text name=query size=14 }> + <{xoops_input type=hidden name=action value=results }>
+ <{xoops_input type=submit name=submit value=$smarty.const._MB_BASE_SEARCH }> -<{$smarty.const._MB_BASE_ADVS}> +<{$smarty.const._MB_BASE_ADVS}> \ No newline at end of file From minahito @ users.sourceforge.jp Wed Mar 29 23:12:28 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 29 Mar 2006 23:12:28 +0900 Subject: [xoops-cvslog 2570] CVS update: xoops2jp/html/modules/base/kernel Message-ID: <20060329141228.CD8942AC05E@users.sourceforge.jp> Index: xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php diff -u xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.27 xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.28 --- xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php:1.1.2.27 Wed Mar 29 22:49:23 2006 +++ xoops2jp/html/modules/base/kernel/Legacy_Controller.class.php Wed Mar 29 23:12:28 2006 @@ -362,13 +362,15 @@ $dir = XOOPS_ROOT_PATH.'/modules/'.$mod_dir.'/class/'; if(is_dir($dir)) { $files = glob($dir.'modulePreload*.class.php'); - foreach($files as $file) { - require_once $file; - $className=preg_replace('/^modulePreload(\w*)\.class\.php/', $mod_dir.'ModulePreload\1', basename($file)); - if(class_exists($className)) { - $instance =& new $className($this); - $this->addActionFilter($instance); - } + if (is_array($files)) { + foreach($files as $file) { + require_once $file; + $className=preg_replace('/^modulePreload(\w*)\.class\.php/', $mod_dir.'ModulePreload\1', basename($file)); + if(class_exists($className)) { + $instance =& new $className($this); + $this->addActionFilter($instance); + } + } } } } From minahito @ users.sourceforge.jp Wed Mar 29 23:16:13 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 29 Mar 2006 23:16:13 +0900 Subject: [xoops-cvslog 2571] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20060329141613.834362AC029@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php:1.1.2.3 xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php:1.1.2.4 --- xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php:1.1.2.3 Tue Mar 28 22:28:35 2006 +++ xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php Wed Mar 29 23:16:13 2006 @@ -34,6 +34,11 @@ $render->setTemplateName("comment_edit.html"); $render->setAttribute('actionForm', $this->mActionForm); $render->setAttribute('object', $this->mObject); + + $handler =& xoops_gethandler('subjecticon'); + $subjectIconArr =& $handler->getObjects(); + + $render->setAttribute('subjectIconArr', $subjectIconArr); } function executeViewSuccess(&$controller, &$xoopsUser, &$render) From minahito @ users.sourceforge.jp Wed Mar 29 23:38:21 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 29 Mar 2006 23:38:21 +0900 Subject: [xoops-cvslog 2572] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20060329143821.2963E2AC01D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/CommentViewAction.class.php diff -u /dev/null xoops2jp/html/modules/base/admin/actions/CommentViewAction.class.php:1.1.2.1 --- /dev/null Wed Mar 29 23:38:21 2006 +++ xoops2jp/html/modules/base/admin/actions/CommentViewAction.class.php Wed Mar 29 23:38:21 2006 @@ -0,0 +1,58 @@ +mObject =& $handler->get(xoops_getrequest('com_id')); + + if ($this->mObject == null) { + return LEGACY_FRAME_VIEW_ERROR; + } + + return LEGACY_FRAME_VIEW_SUCCESS; + } + + function executeViewSuccess(&$controller, &$xoopsUser, &$render) + { + // + // Lazy load + // + $this->mObject->loadModule(); + $this->mObject->loadUser(); + + $render->setTemplateName("comment_view.html"); + $render->setAttribute('object', $this->mObject); + + // + // Load children of specified comment and assign those. + // + $handler =& xoops_getmodulehandler('comment'); + $criteria =& new Criteria('com_pid', $this->mObject->get('com_id')); + $children =& $handler->getObjects($criteria); + + if (count($children) > 0) { + foreach (array_keys($children) as $key) { + $children[$key]->loadModule(); + $children[$key]->loadUser(); + } + } + $render->setAttribute('children', $children); + } + + function executeViewError(&$controller, &$xoopsUser, &$render) + { + $controller->executeForward('./index.php'); + } +} + +?> From minahito @ users.sourceforge.jp Wed Mar 29 23:38:31 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 29 Mar 2006 23:38:31 +0900 Subject: [xoops-cvslog 2573] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20060329143831.A2FB82AC01D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/comment_view.html diff -u /dev/null xoops2jp/html/modules/base/admin/templates/comment_view.html:1.1.2.1 --- /dev/null Wed Mar 29 23:38:31 2006 +++ xoops2jp/html/modules/base/admin/templates/comment_view.html Wed Mar 29 23:38:31 2006 @@ -0,0 +1,124 @@ +
+ <{$smarty.const._MI_BASE_NAME}> + »» <{$smarty.const._MI_BASE_MENU_COMMENTMANAGE}> + »» <{$smarty.const._AD_BASE_LANG_COMMENT_VIEW}> +
+ +

<{$smarty.const._AD_BASE_LANG_COMMENT_VIEW}>

+ +
<{$smarty.const._AD_BASE_LANG_COM_ID}>
@@ -36,7 +52,7 @@ <{foreach item=obj from=$objects}>
<{$obj->getVar('com_id')}><{$obj->getVar('name')}><{$obj->mModule->getVar('name')}> <{$obj->getVar('com_title')}> <{$obj->getVar('com_created')|xoops_formattimestamp:l}> <{$obj->getVar('com_modified')|xoops_formattimestamp:l}>
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Please decide the message which we should display here
<{$smarty.const._AD_BASE_LANG_COM_ID}>"><{$object->getVar('com_id')}>
<{$smarty.const._AD_BASE_LANG_COM_PID}>"><{$object->getVar('com_pid')}>
<{$smarty.const._AD_BASE_LANG_COM_ROOTID}>"><{$object->getVar('com_rootid')}>
<{$smarty.const._AD_BASE_LANG_COM_MODID}>"><{$object->getVar('com_modid')}>
<{$smarty.const._AD_BASE_LANG_COM_ITEMID}>"><{$object->getVar('com_itemid')}>
<{$smarty.const._AD_BASE_LANG_COM_ICON}>"><{$object->getVar('com_icon')}>
<{$smarty.const._AD_BASE_LANG_COM_CREATED}>"><{$object->getVar('com_created')}>
<{$smarty.const._AD_BASE_LANG_COM_MODIFIED}>"><{$object->getVar('com_modified')}>
<{$smarty.const._AD_BASE_LANG_COM_UID}>"><{$object->getVar('com_uid')}>
<{$smarty.const._AD_BASE_LANG_COM_IP}>"><{$object->getVar('com_ip')}>
<{$smarty.const._AD_BASE_LANG_COM_TITLE}>"><{$object->getVar('com_title')}>
<{$smarty.const._AD_BASE_LANG_COM_TEXT}>"><{$object->getVar('com_text')}>
<{$smarty.const._AD_BASE_LANG_COM_SIG}>"><{$object->getVar('com_sig')}>
<{$smarty.const._AD_BASE_LANG_COM_STATUS}>"><{$object->getVar('com_status')}>
<{$smarty.const._AD_BASE_LANG_COM_EXPARAMS}>"><{$object->getVar('com_exparams')}>
<{$smarty.const._AD_BASE_LANG_DOHTML}>"><{$object->getVar('dohtml')}>
<{$smarty.const._AD_BASE_LANG_DOSMILEY}>"><{$object->getVar('dosmiley')}>
<{$smarty.const._AD_BASE_LANG_DOXCODE}>"><{$object->getVar('doxcode')}>
<{$smarty.const._AD_BASE_LANG_DOIMAGE}>"><{$object->getVar('doimage')}>
<{$smarty.const._AD_BASE_LANG_DOBR}>"><{$object->getVar('dobr')}>
+ +

<{$smarty.const._AD_BASE_LANG_RES_FOR_COMMENT}>

+ + + + + <{foreach item=obj from=$children}> + + + + + + + + + + + <{/foreach}> +
<{$smarty.const._AD_BASE_LANG_COM_ID}>
+
<{$smarty.const._AD_BASE_LANG_COM_MODID}>
+
<{$smarty.const._AD_BASE_LANG_COM_TITLE}>
+
<{$smarty.const._AD_BASE_LANG_COM_CREATED}>
+
<{$smarty.const._AD_BASE_LANG_COM_MODIFIED}>
+
<{$smarty.const._AD_BASE_LANG_COM_UID}>
+
<{$smarty.const._AD_BASE_LANG_COM_IP}>
+
<{$smarty.const._AD_BASE_LANG_COM_STATUS}>
+
<{$obj->getVar('com_id')}><{$obj->mModule->getVar('name')}><{$obj->getVar('com_title')}><{$obj->getVar('com_created')|xoops_formattimestamp:l}><{$obj->getVar('com_modified')|xoops_formattimestamp:l}><{if $obj->mUser}><{$obj->mUser->getVar('uname')}><{else}><{$smarty.const._GUESTS}><{/if}><{$obj->getVar('com_ip')}> + <{if $obj->getVar('com_status') == 1 }> + " /> + <{/if}> +
From minahito @ users.sourceforge.jp Wed Mar 29 23:39:36 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Wed, 29 Mar 2006 23:39:36 +0900 Subject: [xoops-cvslog 2574] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20060329143936.0ACAA2AC01D@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/comment_list.html diff -u xoops2jp/html/modules/base/admin/templates/comment_list.html:1.1.2.6 xoops2jp/html/modules/base/admin/templates/comment_list.html:1.1.2.7 --- xoops2jp/html/modules/base/admin/templates/comment_list.html:1.1.2.6 Wed Mar 29 00:14:20 2006 +++ xoops2jp/html/modules/base/admin/templates/comment_list.html Wed Mar 29 23:39:35 2006 @@ -53,7 +53,7 @@
<{$obj->getVar('com_id')}> <{$obj->mModule->getVar('name')}><{$obj->getVar('com_title')}><{$obj->getVar('com_title')}> <{$obj->getVar('com_created')|xoops_formattimestamp:l}> <{$obj->getVar('com_modified')|xoops_formattimestamp:l}> <{if $obj->mUser}><{$obj->mUser->getVar('uname')}><{else}><{$smarty.const._GUESTS}><{/if}>
- + - + @@ -56,7 +59,8 @@ Index: xoops2jp/html/modules/base/admin/templates/comment_delete.html diff -u xoops2jp/html/modules/base/admin/templates/comment_delete.html:1.1.2.4 xoops2jp/html/modules/base/admin/templates/comment_delete.html:1.1.2.5 --- xoops2jp/html/modules/base/admin/templates/comment_delete.html:1.1.2.4 Tue Feb 21 20:50:09 2006 +++ xoops2jp/html/modules/base/admin/templates/comment_delete.html Wed Mar 29 23:49:21 2006 @@ -1,6 +1,6 @@ @@ -36,19 +36,19 @@ - + - + - + - + @@ -64,35 +64,41 @@ - + - + - - - - - - - - - - - - - - - - - - + + - + @@ -32,19 +32,19 @@ - + - + - + - + @@ -60,35 +60,36 @@ - + - + - - - - - - - - - - - - - - - - - - + +
<{$smarty.const._AD_BASE_LANG_COM_ICON}><{$smarty.const._AD_BASE_LANG_COM_TITLE}> "> - <{xoops_input type=text name=com_icon value=$actionForm->get('com_icon') size=15 maxlength=25}> + <{xoops_input type=text name=com_title value=$actionForm->get('com_title') size=60 maxlength=255}>
<{$smarty.const._AD_BASE_LANG_COM_TITLE}><{$smarty.const._AD_BASE_LANG_COM_ICON}> "> - <{xoops_input type=text name=com_title value=$actionForm->get('com_title') size=60 maxlength=255}> + <{foreach item=icon from=$subjectIconArr}> + <{xoops_input type=radio name=com_icon value=$icon->get('filename') default=$actionForm->get('com_icon')}> + <{/foreach}> +
<{$smarty.const._AD_BASE_LANG_COM_TEXT}> "> - <{xoops_dhtmltarea type=text name=com_text value=$actionForm->get('com_text')}> + <{xoops_dhtmltarea type=text rows=15 cols=60 name=com_text value=$actionForm->get('com_text')}>
<{$smarty.const._AD_BASE_LANG_COM_STATUS}> "> - <{xoops_input type=checkbox name=com_status value=1 default=$actionForm->get('com_status')}> + <{xoops_input type=radio name=com_status value=1 default=$actionForm->get('com_status')}><{$smarty.const._YES}> + <{xoops_input type=radio name=com_status value=0 default=$actionForm->get('com_status')}><{$smarty.const._NO}>
<{$smarty.const._AD_BASE_LANG_COM_ICON}>"><{$object->getVar('com_icon')}>">
<{$smarty.const._AD_BASE_LANG_COM_CREATED}>"><{$object->getVar('com_created')}>"><{$object->getVar('com_created')|xoops_formattimestamp:l}>
<{$smarty.const._AD_BASE_LANG_COM_MODIFIED}>"><{$object->getVar('com_modified')}>"><{$object->getVar('com_modified')|xoops_formattimestamp:l}>
<{$smarty.const._AD_BASE_LANG_COM_UID}>"><{$object->getVar('com_uid')}>"><{$object->getVar('com_uid')|xoops_user:uname}>
<{$smarty.const._AD_BASE_LANG_COM_IP}>
<{$smarty.const._AD_BASE_LANG_COM_SIG}>"><{$object->getVar('com_sig')}>"> + <{xoops_input type=radio name=com_sig value=1 default=$object->getVar('com_sig') disabled=true}><{$smarty.const._YES}> + <{xoops_input type=radio name=com_sig value=0 default=$object->getVar('com_sig') disabled=true}><{$smarty.const._NO}> +
<{$smarty.const._AD_BASE_LANG_COM_STATUS}>"><{$object->getVar('com_status')}>"> + <{xoops_input type=radio name=com_status value=1 default=$object->getVar('com_status') disabled=true}><{$smarty.const._YES}> + <{xoops_input type=radio name=com_status value=0 default=$object->getVar('com_status') disabled=true}><{$smarty.const._NO}> +<{* + <{if $object->getVar('com_status') == 1 }> + " /> + <{/if}> +*}> +
<{$smarty.const._AD_BASE_LANG_COM_EXPARAMS}> "><{$object->getVar('com_exparams')}>
<{$smarty.const._AD_BASE_LANG_DOHTML}>"><{$object->getVar('dohtml')}>
<{$smarty.const._AD_BASE_LANG_DOSMILEY}>"><{$object->getVar('dosmiley')}>
<{$smarty.const._AD_BASE_LANG_DOXCODE}>"><{$object->getVar('doxcode')}>
<{$smarty.const._AD_BASE_LANG_DOIMAGE}>"><{$object->getVar('doimage')}>
<{$smarty.const._AD_BASE_LANG_DOBR}>"><{$object->getVar('dobr')}><{$smarty.const._AD_BASE_LANG_CONTROL}>"> + <{xoops_input type=checkbox name=dohtml value=1 default=$object->getVar('dohtml') disabled=true}> + <{$smarty.const._AD_BASE_LANG_DOHTML}>
+ <{xoops_input type=checkbox name=dosmiley value=1 default=$object->getVar('dosmiley') disabled=true}> + <{$smarty.const._AD_BASE_LANG_DOSMILEY}>
+ <{xoops_input type=checkbox name=doxcode value=1 default=$object->getVar('doxcode') disabled=true}> + <{$smarty.const._AD_BASE_LANG_DOXCODE}>
+ <{xoops_input type=checkbox name=doimage value=1 default=$object->getVar('doimage') disabled=true}> + <{$smarty.const._AD_BASE_LANG_DOIMAGE}>
+ <{xoops_input type=checkbox name=dobr value=1 default=$object->getVar('dobr') disabled=true}> + <{$smarty.const._AD_BASE_LANG_DOBR}> +
From tom_g3x @ users.sourceforge.jp Thu Mar 30 00:39:53 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Thu, 30 Mar 2006 00:39:53 +0900 Subject: [xoops-cvslog 2579] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20060329153953.EF2302AC026@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/comment_view.html diff -u xoops2jp/html/modules/base/admin/templates/comment_view.html:1.1.2.1 xoops2jp/html/modules/base/admin/templates/comment_view.html:1.1.2.2 --- xoops2jp/html/modules/base/admin/templates/comment_view.html:1.1.2.1 Wed Mar 29 23:38:31 2006 +++ xoops2jp/html/modules/base/admin/templates/comment_view.html Thu Mar 30 00:39:53 2006 @@ -1,6 +1,6 @@ @@ -24,7 +24,7 @@
<{$smarty.const._AD_BASE_LANG_COM_MODID}>"><{$object->getVar('com_modid')}>"><{$object->mModule->getVar('name')}>
<{$smarty.const._AD_BASE_LANG_COM_ITEMID}>
<{$smarty.const._AD_BASE_LANG_COM_ICON}>"><{$object->getVar('com_icon')}>">
<{$smarty.const._AD_BASE_LANG_COM_CREATED}>"><{$object->getVar('com_created')}>"><{$object->getVar('com_created')|xoops_formattimestamp:l}>
<{$smarty.const._AD_BASE_LANG_COM_MODIFIED}>"><{$object->getVar('com_modified')}>"><{$object->getVar('com_modified')|xoops_formattimestamp:l}>
<{$smarty.const._AD_BASE_LANG_COM_UID}>"><{$object->getVar('com_uid')}>"><{$object->mUser->getVar('uname')}>
<{$smarty.const._AD_BASE_LANG_COM_IP}>
<{$smarty.const._AD_BASE_LANG_COM_SIG}>"><{$object->getVar('com_sig')}>"> + <{xoops_input type=radio name=com_sig value=1 default=$object->getVar('com_sig') disabled=true}><{$smarty.const._YES}> + <{xoops_input type=radio name=com_sig value=0 default=$object->getVar('com_sig') disabled=true}><{$smarty.const._NO}> +
<{$smarty.const._AD_BASE_LANG_COM_STATUS}>"><{$object->getVar('com_status')}>"> + <{xoops_input type=radio name=com_status value=1 default=$object->getVar('com_status') disabled=true}><{$smarty.const._YES}> + <{xoops_input type=radio name=com_status value=0 default=$object->getVar('com_status') disabled=true}><{$smarty.const._NO}> +
<{$smarty.const._AD_BASE_LANG_COM_EXPARAMS}> "><{$object->getVar('com_exparams')}>
<{$smarty.const._AD_BASE_LANG_DOHTML}>"><{$object->getVar('dohtml')}>
<{$smarty.const._AD_BASE_LANG_DOSMILEY}>"><{$object->getVar('dosmiley')}>
<{$smarty.const._AD_BASE_LANG_DOXCODE}>"><{$object->getVar('doxcode')}>
<{$smarty.const._AD_BASE_LANG_DOIMAGE}>"><{$object->getVar('doimage')}>
<{$smarty.const._AD_BASE_LANG_DOBR}>"><{$object->getVar('dobr')}><{$smarty.const._AD_BASE_LANG_CONTROL}>"> + <{xoops_input type=checkbox name=dohtml value=1 default=$object->getVar('dohtml') disabled=true}> + <{$smarty.const._AD_BASE_LANG_DOHTML}>
+ <{xoops_input type=checkbox name=dosmiley value=1 default=$object->getVar('dosmiley') disabled=true}> + <{$smarty.const._AD_BASE_LANG_DOSMILEY}>
+ <{xoops_input type=checkbox name=doxcode value=1 default=$object->getVar('doxcode') disabled=true}> + <{$smarty.const._AD_BASE_LANG_DOXCODE}>
+ <{xoops_input type=checkbox name=doimage value=1 default=$object->getVar('doimage') disabled=true}> + <{$smarty.const._AD_BASE_LANG_DOIMAGE}>
+ <{xoops_input type=checkbox name=dobr value=1 default=$object->getVar('dobr') disabled=true}> + <{$smarty.const._AD_BASE_LANG_DOBR}> +
Index: xoops2jp/html/modules/base/admin/templates/comment_delete.html diff -u xoops2jp/html/modules/base/admin/templates/comment_delete.html:1.1.2.5 xoops2jp/html/modules/base/admin/templates/comment_delete.html:1.1.2.6 --- xoops2jp/html/modules/base/admin/templates/comment_delete.html:1.1.2.5 Wed Mar 29 23:49:21 2006 +++ xoops2jp/html/modules/base/admin/templates/comment_delete.html Thu Mar 30 00:39:53 2006 @@ -28,7 +28,7 @@ <{$smarty.const._AD_BASE_LANG_COM_MODID}> - "><{$object->getVar('com_modid')}> + "><{$object->mModule->getVar('name')}> <{$smarty.const._AD_BASE_LANG_COM_ITEMID}> @@ -48,7 +48,7 @@ <{$smarty.const._AD_BASE_LANG_COM_UID}> - "><{$object->getVar('com_uid')|xoops_user:uname}> + "><{$object->mUser->getVar('uname')}> <{$smarty.const._AD_BASE_LANG_COM_IP}> @@ -74,11 +74,6 @@ "> <{xoops_input type=radio name=com_status value=1 default=$object->getVar('com_status') disabled=true}><{$smarty.const._YES}> <{xoops_input type=radio name=com_status value=0 default=$object->getVar('com_status') disabled=true}><{$smarty.const._NO}> -<{* - <{if $object->getVar('com_status') == 1 }> - " /> - <{/if}> -*}> From tom_g3x @ users.sourceforge.jp Thu Mar 30 00:39:54 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Thu, 30 Mar 2006 00:39:54 +0900 Subject: [xoops-cvslog 2580] CVS update: xoops2jp/html/modules/base/templates Message-ID: <20060329153954.2147C2AC060@users.sourceforge.jp> Index: xoops2jp/html/modules/base/templates/legacy_comment_edit.html diff -u xoops2jp/html/modules/base/templates/legacy_comment_edit.html:1.1.2.3 xoops2jp/html/modules/base/templates/legacy_comment_edit.html:1.1.2.4 --- xoops2jp/html/modules/base/templates/legacy_comment_edit.html:1.1.2.3 Mon Feb 20 18:17:33 2006 +++ xoops2jp/html/modules/base/templates/legacy_comment_edit.html Thu Mar 30 00:39:53 2006 @@ -15,7 +15,10 @@ <{xoops_input type=hidden name=com_exparams value=$actionForm->get('com_exparams')}> - + + + + - + - + - + - <{if $xoops_isadmin}> - + - - <{/if}> - - - - - - - - - - -
<{$smarty.const._MD_BASE_LANG_COMMENT_RULE}>*投稿する*
<{$smarty.const._MD_BASE_LANG_COMMENT_RULE}> "> <{if $xoopsModuleConfig.com_rule == XOOPS_COMMENT_APPROVEALL}> <{$smarty.const._CM_COMAPPROVEALL}> @@ -27,55 +30,45 @@
<{$smarty.const._MD_BASE_LANG_COM_ICON}><{$smarty.const._MD_BASE_LANG_COM_TITLE}> "> - <{foreach item=icon from=$subjectIcons}> - <{xoops_input type=radio name=com_icon value=$icon->get('filename') default=$actionForm->get('filename')}> - <{/foreach}> + <{xoops_input type=text name=com_title value=$actionForm->get('com_title') size=50 maxlength=255}>
<{$smarty.const._MD_BASE_LANG_COM_TITLE}><{$smarty.const._MD_BASE_LANG_COM_ICON}> "> - <{xoops_input type=text name=com_title value=$actionForm->get('com_title') size=15 maxlength=255}> + <{foreach item=icon from=$subjectIcons}> + <{xoops_input type=radio name=com_icon value=$icon->get('filename') default=$actionForm->get('filename')}> + <{/foreach}>
<{$smarty.const._MD_BASE_LANG_COM_TEXT}><{$smarty.const._MD_BASE_LANG_COM_TEXT}> "> - <{xoops_dhtmltarea type=text name=com_text value=$actionForm->get('com_text')}> + <{xoops_dhtmltarea type=text rows=15 cols=60 name=com_text value=$actionForm->get('com_text')}>
<{$smarty.const._MD_BASE_LANG_DOHTML}>*OPTION* "> - <{xoops_input type=checkbox name=dohtml value=1 default=$actionForm->get('dohtml')}> -
<{$smarty.const._MD_BASE_LANG_DOSMILEY}>"> + <{if $xoops_isadmin}> + <{xoops_input type=checkbox name=dohtml value=1 default=$actionForm->get('dohtml')}> + <{$smarty.const._MD_BASE_LANG_DOHTML}>
+ <{/if}> <{xoops_input type=checkbox name=dosmiley value=1 default=$actionForm->get('dosmiley')}> -
<{$smarty.const._MD_BASE_LANG_DOXCODE}>"> + <{$smarty.const._MD_BASE_LANG_DOSMILEY}>
<{xoops_input type=checkbox name=doxcode value=1 default=$actionForm->get('doxcode')}> -
<{$smarty.const._MD_BASE_LANG_DOBR}>"> + <{$smarty.const._MD_BASE_LANG_DOXCODE}>
<{xoops_input type=checkbox name=dobr value=1 default=$actionForm->get('dobr')}> + <{$smarty.const._MD_BASE_LANG_DOBR}>
+
- + \ No newline at end of file From minahito @ users.sourceforge.jp Thu Mar 30 12:53:25 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 12:53:25 +0900 Subject: [xoops-cvslog 2581] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20060330035325.DC8AA2AC035@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php:1.1.2.4 xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php:1.1.2.5 --- xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php:1.1.2.4 Wed Mar 29 00:13:49 2006 +++ xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php Thu Mar 30 12:53:25 2006 @@ -48,11 +48,16 @@ } unset ($module); } - + + $statusArr = array(); + $statusHandler =& xoops_getmodulehandler('commentstatus'); + $statusArr =& $statusHandler->getObjects(); + $render->setTemplateName("comment_list.html"); $render->setAttribute("objects", $this->mObjects); $render->setAttribute("pageNavi", $this->mNavi); $render->setAttribute("moduleArr", $moduleArr); + $render->setAttribute("statusArr", $statusArr); } } From minahito @ users.sourceforge.jp Thu Mar 30 12:53:58 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 12:53:58 +0900 Subject: [xoops-cvslog 2582] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20060330035358.25AB72AC035@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/comment_list.html diff -u xoops2jp/html/modules/base/admin/templates/comment_list.html:1.1.2.7 xoops2jp/html/modules/base/admin/templates/comment_list.html:1.1.2.8 --- xoops2jp/html/modules/base/admin/templates/comment_list.html:1.1.2.7 Wed Mar 29 23:39:35 2006 +++ xoops2jp/html/modules/base/admin/templates/comment_list.html Thu Mar 30 12:53:58 2006 @@ -18,6 +18,18 @@ <{/if}> <{/foreach}> + + + From minahito @ users.sourceforge.jp Thu Mar 30 12:54:17 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 12:54:17 +0900 Subject: [xoops-cvslog 2583] CVS update: xoops2jp/html/modules/base/class Message-ID: <20060330035417.E530E2AC035@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/commentstatus.php diff -u /dev/null xoops2jp/html/modules/base/class/commentstatus.php:1.1.2.1 --- /dev/null Thu Mar 30 12:54:17 2006 +++ xoops2jp/html/modules/base/class/commentstatus.php Thu Mar 30 12:54:17 2006 @@ -0,0 +1,83 @@ +initVar('id', XOBJ_DTYPE_INT, '', true); + $this->initVar('name', XOBJ_DTYPE_STRING, '', true, 255); + } +} + +class BaseCommentstatusHandler extends XoopsObjectHandler +{ + var $_mResults = array(); + + function BaseCommentstatusHandler(&$db) + { + $root =& XCube_Root::getSingleton(); + $language = $root->mController->getConfig('language'); + include_once XOOPS_ROOT_PATH . '/language/' . $language . '/comment.php'; + + $this->_mResults[XOOPS_COMMENT_PENDING] =& $this->create(); + $this->_mResults[XOOPS_COMMENT_PENDING]->setVar('id', XOOPS_COMMENT_PENDING); + $this->_mResults[XOOPS_COMMENT_PENDING]->setVar('name', _CM_PENDING); + + $this->_mResults[XOOPS_COMMENT_ACTIVE] =& $this->create(); + $this->_mResults[XOOPS_COMMENT_ACTIVE]->setVar('id', XOOPS_COMMENT_ACTIVE); + $this->_mResults[XOOPS_COMMENT_ACTIVE]->setVar('name', _CM_ACTIVE); + + $this->_mResults[XOOPS_COMMENT_HIDDEN] =& $this->create(); + $this->_mResults[XOOPS_COMMENT_HIDDEN]->setVar('id', XOOPS_COMMENT_HIDDEN); + $this->_mResults[XOOPS_COMMENT_HIDDEN]->setVar('name', _CM_HIDDEN); + } + + function &create() + { + $ret =& new BaseCommentstatusObject(); + return $ret; + } + + function get($id) + { + if (isset($this->_mResults[$id])) { + return $this->_mResults[$id]; + } + + $ret = null; + return $ret; + } + + function &getObjects($criteria = null, $id_as_key = false) + { + if ($id_as_key) { + return $this->_mResults; + } + else { + $ret = array(); + + foreach (array_keys($this->_mResults) as $key) { + $ret[] =& $this->_mResults[$key]; + } + + return $ret; + } + } + + function insert(&$obj) + { + return false; + } + + function delete(&$obj) + { + return false; + } +} + +?> From minahito @ users.sourceforge.jp Thu Mar 30 12:54:35 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 12:54:35 +0900 Subject: [xoops-cvslog 2584] CVS update: xoops2jp/html/modules/base/language/english Message-ID: <20060330035435.C99B62AC035@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.16 xoops2jp/html/modules/base/language/english/admin.php:1.1.2.17 --- xoops2jp/html/modules/base/language/english/admin.php:1.1.2.16 Wed Mar 29 23:40:05 2006 +++ xoops2jp/html/modules/base/language/english/admin.php Thu Mar 30 12:54:35 2006 @@ -6,6 +6,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_STATUS', "All status"); define('_AD_BASE_LANG_CODE', "Code"); define('_AD_BASE_LANG_COM_CREATED', "Created"); define('_AD_BASE_LANG_COM_EXPARAMS', "com exparams"); From minahito @ users.sourceforge.jp Thu Mar 30 12:54:43 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 12:54:43 +0900 Subject: [xoops-cvslog 2585] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20060330035443.A7E642AC035@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.20 xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.21 --- xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.20 Wed Mar 29 23:40:05 2006 +++ xoops2jp/html/modules/base/language/japanese/admin.php Thu Mar 30 12:54:43 2006 @@ -6,6 +6,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_STATUS', "すべてのステータス"); define('_AD_BASE_LANG_CODE', "コード"); define('_AD_BASE_LANG_COM_CREATED', "作成日時"); define('_AD_BASE_LANG_COM_EXPARAMS', "com exparams"); From minahito @ users.sourceforge.jp Thu Mar 30 14:28:58 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 14:28:58 +0900 Subject: [xoops-cvslog 2586] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20060330052858.142B92AC039@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php:1.1.2.4 xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php:1.1.2.5 --- xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php:1.1.2.4 Wed Mar 29 23:16:13 2006 +++ xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php Thu Mar 30 14:28:57 2006 @@ -31,6 +31,9 @@ function executeViewInput(&$controller, &$xoopsUser, &$render) { + $this->mObject->loadUser(); + $this->mObject->loadModule(); + $render->setTemplateName("comment_edit.html"); $render->setAttribute('actionForm', $this->mActionForm); $render->setAttribute('object', $this->mObject); From minahito @ users.sourceforge.jp Thu Mar 30 14:33:44 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 14:33:44 +0900 Subject: [xoops-cvslog 2587] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20060330053344.806E82AC039@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/CommentDeleteAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/CommentDeleteAction.class.php:1.1.2.3 xoops2jp/html/modules/base/admin/actions/CommentDeleteAction.class.php:1.1.2.4 --- xoops2jp/html/modules/base/admin/actions/CommentDeleteAction.class.php:1.1.2.3 Tue Mar 28 22:28:35 2006 +++ xoops2jp/html/modules/base/admin/actions/CommentDeleteAction.class.php Thu Mar 30 14:33:44 2006 @@ -27,6 +27,12 @@ function executeViewInput(&$controller, &$xoopsUser, &$render) { // + // Lazy load + // + $this->mObject->loadUser(); + $this->mObject->loadModule(); + + // // Load children and load their module and commentater. // $handler =& xoops_getmodulehandler('comment'); From minahito @ users.sourceforge.jp Thu Mar 30 17:27:02 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 17:27:02 +0900 Subject: [xoops-cvslog 2588] CVS update: xoops2jp/html/modules/base/class Message-ID: <20060330082702.5CDDB2AC023@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/Legacy_Validator.class.php diff -u xoops2jp/html/modules/base/class/Legacy_Validator.class.php:1.1.2.1 xoops2jp/html/modules/base/class/Legacy_Validator.class.php:1.1.2.2 --- xoops2jp/html/modules/base/class/Legacy_Validator.class.php:1.1.2.1 Wed Mar 15 19:20:21 2006 +++ xoops2jp/html/modules/base/class/Legacy_Validator.class.php Thu Mar 30 17:27:02 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php:1.1.2.5 xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php:1.1.2.6 --- xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php:1.1.2.5 Thu Mar 30 12:53:25 2006 +++ xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php Thu Mar 30 17:28:05 2006 @@ -41,7 +41,6 @@ $moduleHandler =& xoops_gethandler('module'); foreach ($modIds as $mid) { - print $mid; $module =& $moduleHandler->get($mid); if (is_object($module)) { $moduleArr[] =& $module; From minahito @ users.sourceforge.jp Thu Mar 30 17:35:50 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 17:35:50 +0900 Subject: [xoops-cvslog 2590] CVS update: xoops2jp/html/modules/base/class Message-ID: <20060330083550.DA78D2AC023@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/AbstractFilterForm.class.php diff -u xoops2jp/html/modules/base/class/AbstractFilterForm.class.php:1.1.2.3 xoops2jp/html/modules/base/class/AbstractFilterForm.class.php:1.1.2.4 --- xoops2jp/html/modules/base/class/AbstractFilterForm.class.php:1.1.2.3 Wed Mar 29 00:14:41 2006 +++ xoops2jp/html/modules/base/class/AbstractFilterForm.class.php Thu Mar 30 17:35:50 2006 @@ -1,5 +1,7 @@ Index: xoops2jp/html/modules/base/.xml/comment_edit.xml diff -u xoops2jp/html/modules/base/.xml/comment_edit.xml:1.1.2.3 xoops2jp/html/modules/base/.xml/comment_edit.xml:1.1.2.4 --- xoops2jp/html/modules/base/.xml/comment_edit.xml:1.1.2.3 Tue Feb 21 20:39:07 2006 +++ xoops2jp/html/modules/base/.xml/comment_edit.xml Thu Mar 30 18:11:26 2006 @@ -6,7 +6,7 @@ - + From minahito @ users.sourceforge.jp Thu Mar 30 18:11:33 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 18:11:33 +0900 Subject: [xoops-cvslog 2592] CVS update: xoops2jp/html/modules/base/admin/.xml Message-ID: <20060330091133.3B0A92AC0AC@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/.xml/xoopscomments_edit.xml diff -u xoops2jp/html/modules/base/admin/.xml/xoopscomments_edit.xml:1.1.2.3 xoops2jp/html/modules/base/admin/.xml/xoopscomments_edit.xml:1.1.2.4 --- xoops2jp/html/modules/base/admin/.xml/xoopscomments_edit.xml:1.1.2.3 Tue Feb 21 20:44:00 2006 +++ xoops2jp/html/modules/base/admin/.xml/xoopscomments_edit.xml Thu Mar 30 18:11:33 2006 @@ -6,7 +6,7 @@ - + @@ -35,5 +35,12 @@ + + + + + + + From minahito @ users.sourceforge.jp Thu Mar 30 18:11:37 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 18:11:37 +0900 Subject: [xoops-cvslog 2593] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20060330091137.DB7502AC0AC@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/forms/CommentAdminEditForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/CommentAdminEditForm.class.php:1.1.2.3 xoops2jp/html/modules/base/admin/forms/CommentAdminEditForm.class.php:1.1.2.4 --- xoops2jp/html/modules/base/admin/forms/CommentAdminEditForm.class.php:1.1.2.3 Tue Mar 28 22:29:05 2006 +++ xoops2jp/html/modules/base/admin/forms/CommentAdminEditForm.class.php Thu Mar 30 18:11:37 2006 @@ -21,7 +21,7 @@ $this->mFormProperties['com_title'] =& new XCube_StringProperty('com_title'); $this->mFormProperties['com_text'] =& new XCube_TextProperty('com_text'); $this->mFormProperties['com_sig'] =& new XCube_BoolProperty('com_sig'); - $this->mFormProperties['com_status'] =& new XCube_BoolProperty('com_status'); + $this->mFormProperties['com_status'] =& new XCube_IntProperty('com_status'); $this->mFormProperties['dohtml'] =& new XCube_BoolProperty('dohtml'); $this->mFormProperties['dosmiley'] =& new XCube_BoolProperty('dosmiley'); $this->mFormProperties['doxcode'] =& new XCube_BoolProperty('doxcode'); @@ -50,6 +50,13 @@ $this->mFieldProperties['com_text'] =& new XCube_FieldProperty($this); $this->mFieldProperties['com_text']->setDependsByArray(array('required')); $this->mFieldProperties['com_text']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_TEXT); + + $this->mFieldProperties['com_status'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_status']->setDependsByArray(array('required','intRange')); + $this->mFieldProperties['com_status']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_STATUS); + $this->mFieldProperties['com_status']->addMessage('intRange', _AD_BASE_ERROR_INTRANGE, _AD_BASE_LANG_COM_STATUS); + $this->mFieldProperties['com_status']->addVar('min', '1'); + $this->mFieldProperties['com_status']->addVar('max', '3'); } function load(&$obj) From minahito @ users.sourceforge.jp Thu Mar 30 18:13:08 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 18:13:08 +0900 Subject: [xoops-cvslog 2594] CVS update: xoops2jp/html/modules/base/class Message-ID: <20060330091308.E4E972AC0AD@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/comment.php diff -u xoops2jp/html/modules/base/class/comment.php:1.1.2.4 xoops2jp/html/modules/base/class/comment.php:1.1.2.5 --- xoops2jp/html/modules/base/class/comment.php:1.1.2.4 Wed Mar 29 00:15:07 2006 +++ xoops2jp/html/modules/base/class/comment.php Thu Mar 30 18:13:08 2006 @@ -22,7 +22,7 @@ $this->initVar('com_title', XOBJ_DTYPE_STRING, '', true, 255); $this->initVar('com_text', XOBJ_DTYPE_TEXT, '', true); $this->initVar('com_sig', XOBJ_DTYPE_BOOL, '0', true); - $this->initVar('com_status', XOBJ_DTYPE_BOOL, '0', true); + $this->initVar('com_status', XOBJ_DTYPE_INT, '1', true); $this->initVar('com_exparams', XOBJ_DTYPE_STRING, '', true, 255); $this->initVar('dohtml', XOBJ_DTYPE_BOOL, '0', true); $this->initVar('dosmiley', XOBJ_DTYPE_BOOL, '0', true); From minahito @ users.sourceforge.jp Thu Mar 30 23:51:54 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 23:51:54 +0900 Subject: [xoops-cvslog 2595] CVS update: xoops2jp/html/modules/base/language/japanese Message-ID: <20060330145154.1400E2AC028@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.21 xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.22 --- xoops2jp/html/modules/base/language/japanese/admin.php:1.1.2.21 Thu Mar 30 12:54:43 2006 +++ xoops2jp/html/modules/base/language/japanese/admin.php Thu Mar 30 23:51:53 2006 @@ -2,6 +2,7 @@ define('_AD_BASE_ERROR_DBUPDATE_FAILED', "データベースの更新に失敗しました"); define('_AD_BASE_ERROR_EXTENSION', "許可されたファイル形式ではありません"); +define('_AD_BASE_ERROR_INTRANGE', "{0}の値が不正です"); define('_AD_BASE_ERROR_MAXLENGTH', "{0}は半角{1}文字以下で入力して下さい"); define('_AD_BASE_ERROR_PLEASE_AGREE', "ライセンスに同意してください"); define('_AD_BASE_ERROR_REQUIRED', "{0}は必ず入力して下さい"); From minahito @ users.sourceforge.jp Thu Mar 30 23:51:54 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 23:51:54 +0900 Subject: [xoops-cvslog 2596] CVS update: xoops2jp/html/modules/base/language/english Message-ID: <20060330145154.38BAD2AC043@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.17 xoops2jp/html/modules/base/language/english/admin.php:1.1.2.18 --- xoops2jp/html/modules/base/language/english/admin.php:1.1.2.17 Thu Mar 30 12:54:35 2006 +++ xoops2jp/html/modules/base/language/english/admin.php Thu Mar 30 23:51:54 2006 @@ -2,6 +2,7 @@ define('_AD_BASE_ERROR_DBUPDATE_FAILED', "Database update failed."); 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_PLEASE_AGREE', "Please agree the following licence."); define('_AD_BASE_ERROR_REQUIRED', "{0} is required."); From minahito @ users.sourceforge.jp Thu Mar 30 23:54:18 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 23:54:18 +0900 Subject: [xoops-cvslog 2597] CVS update: xoops2jp/html/modules/base/forms Message-ID: <20060330145418.7B0772AC028@users.sourceforge.jp> Index: xoops2jp/html/modules/base/forms/CommentEditForm.class.php diff -u xoops2jp/html/modules/base/forms/CommentEditForm.class.php:1.1.2.3 xoops2jp/html/modules/base/forms/CommentEditForm.class.php:1.1.2.4 --- xoops2jp/html/modules/base/forms/CommentEditForm.class.php:1.1.2.3 Tue Mar 28 22:30:03 2006 +++ xoops2jp/html/modules/base/forms/CommentEditForm.class.php Thu Mar 30 23:54:18 2006 @@ -31,7 +31,7 @@ $this->mFormProperties['com_title'] =& new XCube_StringProperty('com_title'); $this->mFormProperties['com_text'] =& new XCube_TextProperty('com_text'); $this->mFormProperties['com_sig'] =& new XCube_BoolProperty('com_sig'); - $this->mFormProperties['com_status'] =& new XCube_BoolProperty('com_status'); + $this->mFormProperties['com_status'] =& new XCube_IntProperty('com_status'); $this->mFormProperties['com_exparams'] =& new XCube_StringProperty('com_exparams'); $this->mFormProperties['dosmiley'] =& new XCube_BoolProperty('dosmiley'); $this->mFormProperties['doxcode'] =& new XCube_BoolProperty('doxcode'); From minahito @ users.sourceforge.jp Thu Mar 30 23:55:03 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 23:55:03 +0900 Subject: [xoops-cvslog 2598] CVS update: xoops2jp/html/modules/base/class Message-ID: <20060330145504.678722AC028@users.sourceforge.jp> Index: xoops2jp/html/modules/base/class/comment.php diff -u xoops2jp/html/modules/base/class/comment.php:1.1.2.5 xoops2jp/html/modules/base/class/comment.php:1.1.2.6 --- xoops2jp/html/modules/base/class/comment.php:1.1.2.5 Thu Mar 30 18:13:08 2006 +++ xoops2jp/html/modules/base/class/comment.php Thu Mar 30 23:55:02 2006 @@ -6,6 +6,7 @@ { var $mUser = null; var $mModule = null; + var $mStatus = null; function BaseCommentObject() { @@ -48,6 +49,12 @@ $handler =& xoops_gethandler('module'); $this->mModule =& $handler->get($this->get('com_modid')); } + + function loadStatus() + { + $handler =& xoops_getmodulehandler('commentstatus', 'base'); + $this->mStatus =& $handler->get($this->get('com_status')); + } } class BaseCommentHandler extends XoopsObjectGenericHandler From minahito @ users.sourceforge.jp Thu Mar 30 23:55:36 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 23:55:36 +0900 Subject: [xoops-cvslog 2599] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20060330145536.830952AC028@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/comment_edit.html diff -u xoops2jp/html/modules/base/admin/templates/comment_edit.html:1.1.2.7 xoops2jp/html/modules/base/admin/templates/comment_edit.html:1.1.2.8 --- xoops2jp/html/modules/base/admin/templates/comment_edit.html:1.1.2.7 Wed Mar 29 23:49:21 2006 +++ xoops2jp/html/modules/base/admin/templates/comment_edit.html Thu Mar 30 23:55:36 2006 @@ -59,8 +59,15 @@ <{$smarty.const._AD_BASE_LANG_COM_STATUS}> "> - <{xoops_input type=radio name=com_status value=1 default=$actionForm->get('com_status')}><{$smarty.const._YES}> - <{xoops_input type=radio name=com_status value=0 default=$actionForm->get('com_status')}><{$smarty.const._NO}> + From minahito @ users.sourceforge.jp Thu Mar 30 23:55:52 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 23:55:52 +0900 Subject: [xoops-cvslog 2600] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20060330145552.1E1592AC043@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/comment_list.html diff -u xoops2jp/html/modules/base/admin/templates/comment_list.html:1.1.2.8 xoops2jp/html/modules/base/admin/templates/comment_list.html:1.1.2.9 --- xoops2jp/html/modules/base/admin/templates/comment_list.html:1.1.2.8 Thu Mar 30 12:53:58 2006 +++ xoops2jp/html/modules/base/admin/templates/comment_list.html Thu Mar 30 23:55:51 2006 @@ -70,11 +70,7 @@ <{$obj->getVar('com_modified')|xoops_formattimestamp:l}> <{if $obj->mUser}><{$obj->mUser->getVar('uname')}><{else}><{$smarty.const._GUESTS}><{/if}> <{$obj->getVar('com_ip')}> - - <{if $obj->getVar('com_status') == 1 }> - " /> - <{/if}> - + <{$obj->mStatus->getVar('name')}> " alt="<{$smarty.const._EDIT}>" /> " alt="<{$smarty.const._DELETE}>" /> From minahito @ users.sourceforge.jp Thu Mar 30 23:56:09 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 23:56:09 +0900 Subject: [xoops-cvslog 2601] CVS update: xoops2jp/html/modules/base/admin/forms Message-ID: <20060330145609.E1FDD2AC028@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/forms/CommentAdminEditForm.class.php diff -u xoops2jp/html/modules/base/admin/forms/CommentAdminEditForm.class.php:1.1.2.4 xoops2jp/html/modules/base/admin/forms/CommentAdminEditForm.class.php:1.1.2.5 --- xoops2jp/html/modules/base/admin/forms/CommentAdminEditForm.class.php:1.1.2.4 Thu Mar 30 18:11:37 2006 +++ xoops2jp/html/modules/base/admin/forms/CommentAdminEditForm.class.php Thu Mar 30 23:56:09 2006 @@ -4,7 +4,7 @@ require_once XOOPS_ROOT_PATH . "/class/XCube_ActionForm.class.php"; -class Legacy_CommentAdminEditForm extends XCube_ActionForm +class Legacy_AbstractCommentAdminEditForm extends XCube_ActionForm { function getTokenName() { @@ -50,13 +50,6 @@ $this->mFieldProperties['com_text'] =& new XCube_FieldProperty($this); $this->mFieldProperties['com_text']->setDependsByArray(array('required')); $this->mFieldProperties['com_text']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_TEXT); - - $this->mFieldProperties['com_status'] =& new XCube_FieldProperty($this); - $this->mFieldProperties['com_status']->setDependsByArray(array('required','intRange')); - $this->mFieldProperties['com_status']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_STATUS); - $this->mFieldProperties['com_status']->addMessage('intRange', _AD_BASE_ERROR_INTRANGE, _AD_BASE_LANG_COM_STATUS); - $this->mFieldProperties['com_status']->addVar('min', '1'); - $this->mFieldProperties['com_status']->addVar('max', '3'); } function load(&$obj) @@ -90,4 +83,35 @@ } } +class Legacy_PendingCommentAdminEditForm extends Legacy_AbstractCommentAdminEditForm +{ + function prepare() + { + parent::prepare(); + + $this->mFieldProperties['com_status'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_status']->setDependsByArray(array('required','intRange')); + $this->mFieldProperties['com_status']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_STATUS); + $this->mFieldProperties['com_status']->addMessage('intRange', _AD_BASE_ERROR_INTRANGE, _AD_BASE_LANG_COM_STATUS); + $this->mFieldProperties['com_status']->addVar('min', '1'); + $this->mFieldProperties['com_status']->addVar('max', '3'); + } +} + +class Legacy_ApprovalCommentAdminEditForm extends Legacy_AbstractCommentAdminEditForm +{ + function prepare() + { + parent::prepare(); + + $this->mFieldProperties['com_status'] =& new XCube_FieldProperty($this); + $this->mFieldProperties['com_status']->setDependsByArray(array('required','intRange')); + $this->mFieldProperties['com_status']->addMessage('required', _AD_BASE_ERROR_REQUIRED, _AD_BASE_LANG_COM_STATUS); + $this->mFieldProperties['com_status']->addMessage('intRange', _AD_BASE_ERROR_INTRANGE, _AD_BASE_LANG_COM_STATUS); + $this->mFieldProperties['com_status']->addVar('min', '2'); + $this->mFieldProperties['com_status']->addVar('max', '3'); + } +} + + ?> From minahito @ users.sourceforge.jp Thu Mar 30 23:56:27 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 23:56:27 +0900 Subject: [xoops-cvslog 2602] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20060330145627.DDA4C2AC028@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/CommentDeleteAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/CommentDeleteAction.class.php:1.1.2.4 xoops2jp/html/modules/base/admin/actions/CommentDeleteAction.class.php:1.1.2.5 --- xoops2jp/html/modules/base/admin/actions/CommentDeleteAction.class.php:1.1.2.4 Thu Mar 30 14:33:44 2006 +++ xoops2jp/html/modules/base/admin/actions/CommentDeleteAction.class.php Thu Mar 30 23:56:27 2006 @@ -31,6 +31,7 @@ // $this->mObject->loadUser(); $this->mObject->loadModule(); + $this->mObject->loadStatus(); // // Load children and load their module and commentater. From minahito @ users.sourceforge.jp Thu Mar 30 23:56:35 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 23:56:35 +0900 Subject: [xoops-cvslog 2603] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20060330145635.A191A2AC028@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php:1.1.2.6 xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php:1.1.2.7 --- xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php:1.1.2.6 Thu Mar 30 17:28:05 2006 +++ xoops2jp/html/modules/base/admin/actions/CommentListAction.class.php Thu Mar 30 23:56:35 2006 @@ -33,6 +33,7 @@ foreach (array_keys($this->mObjects) as $key) { $this->mObjects[$key]->loadModule(); $this->mObjects[$key]->loadUser(); + $this->mObjects[$key]->loadStatus(); } $moduleArr = array(); Index: xoops2jp/html/modules/base/admin/actions/CommentViewAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/CommentViewAction.class.php:1.1.2.1 xoops2jp/html/modules/base/admin/actions/CommentViewAction.class.php:1.1.2.2 --- xoops2jp/html/modules/base/admin/actions/CommentViewAction.class.php:1.1.2.1 Wed Mar 29 23:38:21 2006 +++ xoops2jp/html/modules/base/admin/actions/CommentViewAction.class.php Thu Mar 30 23:56:35 2006 @@ -29,6 +29,7 @@ // $this->mObject->loadModule(); $this->mObject->loadUser(); + $this->mObject->loadStatus(); $render->setTemplateName("comment_view.html"); $render->setAttribute('object', $this->mObject); From minahito @ users.sourceforge.jp Thu Mar 30 23:56:54 2006 From: minahito @ users.sourceforge.jp (Minahito) Date: Thu, 30 Mar 2006 23:56:54 +0900 Subject: [xoops-cvslog 2604] CVS update: xoops2jp/html/modules/base/admin/actions Message-ID: <20060330145654.843432AC028@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php diff -u xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php:1.1.2.5 xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php:1.1.2.6 --- xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php:1.1.2.5 Thu Mar 30 14:28:57 2006 +++ xoops2jp/html/modules/base/admin/actions/CommentEditAction.class.php Thu Mar 30 23:56:54 2006 @@ -7,6 +7,15 @@ class Legacy_CommentEditAction extends Legacy_AbstractEditAction { + /** + * Override. At first, call _setupObject(). + */ + function prepare(&$controller, &$xoopsUser) + { + $this->_setupObject(); + $this->_setupActionForm(); + } + function _getId() { return isset($_REQUEST['com_id']) ? $_REQUEST['com_id'] : 0; @@ -23,9 +32,17 @@ return false; } + /** + * Choose appropriate ActionForm by the value of com_status. + */ function _setupActionForm() { - $this->mActionForm =& new Legacy_CommentAdminEditForm(); + if ($this->mObject->get('com_status') == 1) { + $this->mActionForm =& new Legacy_PendingCommentAdminEditForm(); + } + else { + $this->mActionForm =& new Legacy_ApprovalCommentAdminEditForm(); + } $this->mActionForm->prepare(); } @@ -33,15 +50,28 @@ { $this->mObject->loadUser(); $this->mObject->loadModule(); + $this->mObject->loadStatus(); $render->setTemplateName("comment_edit.html"); $render->setAttribute('actionForm', $this->mActionForm); $render->setAttribute('object', $this->mObject); - $handler =& xoops_gethandler('subjecticon'); - $subjectIconArr =& $handler->getObjects(); + $subjectHandler =& xoops_gethandler('subjecticon'); + $subjectIconArr =& $subjectHandler->getObjects(); $render->setAttribute('subjectIconArr', $subjectIconArr); + + $statusHandler =& xoops_getmodulehandler('commentstatus'); + if ($this->mObject->get('com_status') == XOOPS_COMMENT_PENDING) { + $statusArr =& $statusHandler->getObjects(); + } + else { + $statusArr = array(); + $statusArr[0] =& $statusHandler->get(XOOPS_COMMENT_ACTIVE); + $statusArr[1] =& $statusHandler->get(XOOPS_COMMENT_HIDDEN); + } + + $render->setAttribute('statusArr', $statusArr); } function executeViewSuccess(&$controller, &$xoopsUser, &$render) From tom_g3x @ users.sourceforge.jp Fri Mar 31 00:14:01 2006 From: tom_g3x @ users.sourceforge.jp (Tom Hayakawa) Date: Fri, 31 Mar 2006 00:14:01 +0900 Subject: [xoops-cvslog 2605] CVS update: xoops2jp/html/modules/base/admin/templates Message-ID: <20060330151401.67EF22AC028@users.sourceforge.jp> Index: xoops2jp/html/modules/base/admin/templates/comment_view.html diff -u xoops2jp/html/modules/base/admin/templates/comment_view.html:1.1.2.2 xoops2jp/html/modules/base/admin/templates/comment_view.html:1.1.2.3 --- xoops2jp/html/modules/base/admin/templates/comment_view.html:1.1.2.2 Thu Mar 30 00:39:53 2006 +++ xoops2jp/html/modules/base/admin/templates/comment_view.html Fri Mar 31 00:14:01 2006 @@ -67,10 +67,7 @@ <{$smarty.const._AD_BASE_LANG_COM_STATUS}> - "> - <{xoops_input type=radio name=com_status value=1 default=$object->getVar('com_status') disabled=true}><{$smarty.const._YES}> - <{xoops_input type=radio name=com_status value=0 default=$object->getVar('com_status') disabled=true}><{$smarty.const._NO}> - + "><{$object->mStatus->getVar('name')}> <{$smarty.const._AD_BASE_LANG_COM_EXPARAMS}> Index: xoops2jp/html/modules/base/admin/templates/comment_delete.html diff -u xoops2jp/html/modules/base/admin/templates/comment_delete.html:1.1.2.6 xoops2jp/html/modules/base/admin/templates/comment_delete.html:1.1.2.7 --- xoops2jp/html/modules/base/admin/templates/comment_delete.html:1.1.2.6 Thu Mar 30 00:39:53 2006 +++ xoops2jp/html/modules/base/admin/templates/comment_delete.html Fri Mar 31 00:14:01 2006 @@ -71,10 +71,7 @@ <{$smarty.const._AD_BASE_LANG_COM_STATUS}> - "> - <{xoops_input type=radio name=com_status value=1 default=$object->getVar('com_status') disabled=true}><{$smarty.const._YES}> - <{xoops_input type=radio name=com_status value=0 default=$object->getVar('com_status') disabled=true}><{$smarty.const._NO}> - + "><{$object->mStatus->getVar('name')}> <{$smarty.const._AD_BASE_LANG_COM_EXPARAMS}>