// // ------------------------------------------------------------------------ // // 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 // // ------------------------------------------------------------------------ // error_reporting (0); include_once './passwd.php'; if(INSTALL_USER != '' || INSTALL_PASSWD != ''){ if (!isset($_SERVER['PHP_AUTH_USER'])) { header('WWW-Authenticate: Basic realm="XOOPS Installer"'); header('HTTP/1.0 401 Unauthorized'); echo 'You can not access this XOOPS installer.'; exit; } else { if(INSTALL_USER != '' && $_SERVER['PHP_AUTH_USER'] != INSTALL_USER){ header('HTTP/1.0 401 Unauthorized'); echo 'You can not access this XOOPS installer.'; exit; } if(INSTALL_PASSWD != $_SERVER['PHP_AUTH_PW']){ header('HTTP/1.0 401 Unauthorized'); echo 'You can not access this XOOPS installer.'; exit; } } } include_once './class/textsanitizer.php'; $myts =& TextSanitizer::getInstance(); if ( isset($_POST) ) { foreach ($_POST as $k=>$v) { if (!is_array($v)) { $$k = $myts->stripSlashesGPC($v); } } } $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']); $language_array = array('en' => '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; } } } } } $language = 'tchinese'; 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(); } 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'])) $op = $_POST['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', '請選擇安裝過程的語系'); } $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', trim($myts->stripSlashesGPC($_POST['root_path']))); $mm->setRewrite('XOOPS_URL', trim($myts->stripSlashesGPC($_POST['xoops_url']))); $mm->setRewrite('XOOPS_DB_TYPE', trim($myts->stripSlashesGPC($_POST['database']))); $mm->setRewrite('XOOPS_DB_PREFIX', trim($myts->stripSlashesGPC($_POST['prefix']))); $mm->setRewrite('XOOPS_DB_HOST', trim($myts->stripSlashesGPC($_POST['dbhost']))); $mm->setRewrite('XOOPS_DB_USER', trim($myts->stripSlashesGPC($_POST['dbuname']))); $mm->setRewrite('XOOPS_DB_PASS', trim($myts->stripSlashesGPC($_POST['dbpass']))); $mm->setRewrite('XOOPS_DB_NAME', trim($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($myts->stripSlashesGPC($_POST['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 = "
\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', '0', '_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 (c) 2001-" . date('Y', time()) . " 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)"); $dbm->insert('config', " VALUES (74,0,7,'auth_method','_MD_AM_AUTHMETHOD','xoops','_MD_AM_AUTHMETHODDESC','select','text',1)"); $dbm->insert('config', " VALUES (75,0,7,'ldap_port','_MD_AM_LDAP_PORT','389','_MD_AM_LDAP_PORT','textbox','int',2)"); $dbm->insert('config', " VALUES (76,0,7,'ldap_server','_MD_AM_LDAP_SERVER','your directory server','_MD_AM_LDAP_SERVER_DESC','textbox','text',3)"); $dbm->insert('config', " VALUES (77,0,7,'ldap_base_dn','_MD_AM_LDAP_BASE_DN','dc=xoops,dc=org','_MD_AM_LDAP_BASE_DN_DESC','textbox','text',4)"); $dbm->insert('config', " VALUES (78,0,7,'ldap_manager_dn','_MD_AM_LDAP_MANAGER_DN','manager_dn','_MD_AM_LDAP_MANAGER_DN_DESC','textbox','text',5)"); $dbm->insert('config', " VALUES (79,0,7,'ldap_manager_pass','_MD_AM_LDAP_MANAGER_PASS','manager_pass','_MD_AM_LDAP_MANAGER_PASS_DESC','password','text',6)"); $dbm->insert('config', " VALUES (80,0,7,'ldap_version','_MD_AM_LDAP_VERSION','3','_MD_AM_LDAP_VERSION_DESC','textbox','text', 7)"); $dbm->insert('config', " VALUES (81,0,7,'ldap_users_bypass','_MD_AM_LDAP_USERS_BYPASS','".serialize(array('admin'))."','_MD_AM_LDAP_USERS_BYPASS_DESC','textarea','array',8)"); $dbm->insert('config', " VALUES (82,0,7,'ldap_loginname_asdn','_MD_AM_LDAP_LOGINNAME_ASDN','uid_asdn','_MD_AM_LDAP_LOGINNAME_ASDN_D','yesno','int',9)"); $dbm->insert('config', " VALUES (83,0,7,'ldap_loginldap_attr', '_MD_AM_LDAP_LOGINLDAP_ATTR', 'uid', '_MD_AM_LDAP_LOGINLDAP_ATTR_D', 'textbox', 'text', 10)"); $dbm->insert('config', " VALUES (84,0,7,'ldap_filter_person','_MD_AM_LDAP_FILTER_PERSON','','_MD_AM_LDAP_FILTER_PERSON_DESC','textbox','text',11)"); $dbm->insert('config', " VALUES (85,0,7,'ldap_domain_name','_MD_AM_LDAP_DOMAIN_NAME','mydomain','_MD_AM_LDAP_DOMAIN_NAME_DESC','textbox','text',12)"); $dbm->insert('config', " VALUES (86,0,7,'ldap_provisionning','_MD_AM_LDAP_PROVIS','0','_MD_AM_LDAP_PROVIS_DESC','yesno','int',13)"); $dbm->insert('config', " VALUES (87,0,7,'ldap_provisionning_group','_MD_AM_LDAP_PROVIS_GROUP','a:1:{i:0;s:1:\"2\";}','_MD_AM_LDAP_PROVIS_GROUP_DSC','group_multi','array',14)"); $dbm->insert('config', " VALUES (88,0,7,'ldap_use_TLS','_MD_AM_LDAP_USETLS','0','_MD_AM_LDAP_USETLS_DESC','yesno','int',15)"); // 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); } ?>
 
      >>  
 
 
richmond type ec richmond type ec gas scimark standard edition graphics scimark standard edition graphics company bethany s reynolds quilts bethany s reynolds quilts did largest model train store largest model train store does willie nelson merchandise willie nelson merchandise snow minichamps model wagen minichamps model wagen island whistler standards whistler standards need d clark wernecke d clark wernecke speed stewart vanhorn kimberly clark stewart vanhorn kimberly clark office hotels in sanger california hotels in sanger california forward pioneer radio in scion pioneer radio in scion watch sam diego plymouth sam diego plymouth cent baisch nursing center mo baisch nursing center mo fire pato sarah wallace pato sarah wallace strong b2b government models b2b government models king ross obrion ross obrion instrument kentucky derby 8 kentucky derby 8 difficult gold rush similations gold rush similations say sunshine kids academy sunshine kids academy until adoption centers leopard center adoption centers leopard center spell dinosaur birthday party supply dinosaur birthday party supply are sailing instruction bayfield wisconsin sailing instruction bayfield wisconsin swim dublin fireworks dublin fireworks mark pioneer 19th century clothing pioneer 19th century clothing over evolution sherman alexie evolution sherman alexie use the big otis show the big otis show quite standard visitation schedule toddler standard visitation schedule toddler sheet carolina fountains carolina fountains fraction indianapolis laser center indianapolis laser center room cats in need rescue cats in need rescue saw new condominiums frederick md new condominiums frederick md front odessa texas newspaper odessa texas newspaper matter bohr model electron quantum bohr model electron quantum it neligh oakdale public school neligh oakdale public school complete henry kloss model 1 henry kloss model 1 pattern 2007 chrysler aspen info 2007 chrysler aspen info feed markstein beverage and sacramento markstein beverage and sacramento jump sharon goddard silver chord sharon goddard silver chord mass crowley high school crowley high school past poodle rescue in midwest poodle rescue in midwest sand billy preston said billy preston said match liberty center for disabled liberty center for disabled invent roseville ca newspaper 1983 roseville ca newspaper 1983 danger traditions blackpowder rifle kits traditions blackpowder rifle kits change century theaters monterey century theaters monterey effect blithedale hotel mill valley blithedale hotel mill valley red laurel grove station laurel grove station foot denver house judiciary committee denver house judiciary committee I sobe adreneline rush sobe adreneline rush throw cloherty watertown cloherty watertown neck argentina default dollar standard argentina default dollar standard element manteca dentist manteca dentist poor eastlake rentals san diego eastlake rentals san diego choose elmira warplane museum elmira warplane museum choose hard bean cafe annapolis hard bean cafe annapolis least grant s west hartford ct grant s west hartford ct steam middletown hospital oh middletown hospital oh enough planned pethood denver planned pethood denver point debbie keyes cpe environmental debbie keyes cpe environmental solution bond remixed track listing bond remixed track listing held rivercrest village sacramento rivercrest village sacramento page pierce brosnan rene ruso pierce brosnan rene ruso party elk email stationary elk email stationary single bethany hills school bethany hills school would berkeley dating berkeley dating produce sioux center public girls sioux center public girls chick bristol coal mine gauge bristol coal mine gauge mile staked laundry center staked laundry center came kirtland m tech center kirtland m tech center cross sheena easton home cd sheena easton home cd choose online rifle practice online rifle practice fraction identification of bear species identification of bear species morning sct holt sct holt less kritik kongres berlin kritik kongres berlin equal como pickton schools como pickton schools electric hsp model 1000 hsp model 1000 reply marin san rafael marin san rafael pitch blake brothers amherst nh blake brothers amherst nh square computer repair mount laurel computer repair mount laurel home teddy bear pages teddy bear pages quiet pomfret annual church auction pomfret annual church auction again grand canyon airport shuttle grand canyon airport shuttle possible mimosa carmel mimosa carmel sight lockwood excavating lockwood excavating coat excel center restaurants excel center restaurants these meridian kessler boundaries indianapolis meridian kessler boundaries indianapolis mine aurora snow jpg aurora snow jpg spell facial threading easton ma facial threading easton ma girl schriever afb colorado springs schriever afb colorado springs serve ariel sharon terrorist ariel sharon terrorist experience law enforcement academy brcc law enforcement academy brcc seem national standards neurological conditions national standards neurological conditions property denver rick murphy church denver rick murphy church office sir vere cornwall bird sir vere cornwall bird may mesquite rodeo circus mesquite rodeo circus east forum mineral make up forum mineral make up close katherine avery atlanta katherine avery atlanta bird rifle caliber 3008 rifle caliber 3008 number dharma field zen center dharma field zen center seat mariann brooks mariann brooks man tom pence winter park tom pence winter park may victor ostrom victor ostrom west marriage bonds for virginia marriage bonds for virginia enemy amanda davis toccoa falls amanda davis toccoa falls you another chance pet rescue another chance pet rescue floor pictures of seaside fl pictures of seaside fl all naughty and nice gingerbread naughty and nice gingerbread straight scott crawford minnesota scott crawford minnesota rather grave monuments in sc grave monuments in sc weather jose garcia pitcher jose garcia pitcher face oriah training academy oriah training academy indicate jessie jackson chico state jessie jackson chico state when serta mattress ocean model serta mattress ocean model green colca canyon travel guide colca canyon travel guide proper laurel maryland golf laurel maryland golf especially the granite way uk the granite way uk value 3801 fairfax dr 22203 3801 fairfax dr 22203 cool rodney howard brown doctrine rodney howard brown doctrine paper wendy evans albuquerque wendy evans albuquerque cross downtown burlington mall downtown burlington mall organ clark s nevis mole clark s nevis mole salt fabric denver fabric denver rose ducati model kit ducati model kit flat durham on escort durham on escort hear dona marina died dona marina died ever watertown wisconsin human society watertown wisconsin human society quotient days inn of sanford days inn of sanford had karen hotchkiss calgary karen hotchkiss calgary open quincy community schools michigan quincy community schools michigan share winter lodge palo alto winter lodge palo alto represent johnny winters t shirts johnny winters t shirts from sharon stone nectoux sharon stone nectoux usual toto drake cst744s toto drake cst744s out 22 sniper rifle 22 sniper rifle touch ironclad model ironclad model flow drag king new orleans drag king new orleans rich metrotech albany ny metrotech albany ny die dr marden bristol tn dr marden bristol tn yard marvel comicbook superhero statistics marvel comicbook superhero statistics slip ohaus model 2610 balance ohaus model 2610 balance hole crow canyon motocross track crow canyon motocross track let tracy florence tracy florence plan courtney n byers courtney n byers tree parachute modalert parachute modalert spot colebrook news and sentinel colebrook news and sentinel trouble basalt geology basalt geology head thompson learning center thompson learning center represent diablo 2 stat edior diablo 2 stat edior collect chrystler pacifica huntsville alabama chrystler pacifica huntsville alabama bar rock art canyon ranch rock art canyon ranch picture golden globe yacht race golden globe yacht race paint holly hollison holly hollison usual bond type of alcohol bond type of alcohol instant sharon upmc hospital sharon upmc hospital do nude model amsterdam nude model amsterdam morning fortuna grill frisco fortuna grill frisco chief brooke fraser s father brooke fraser s father green carlson golden retriever seattle carlson golden retriever seattle feed cool running races results cool running races results heat pnc sells hilliard lyons pnc sells hilliard lyons me john barnett standard 1774 john barnett standard 1774 fine altas copco altas copco us northfield construction company northfield construction company he wine rutherford hill appelation wine rutherford hill appelation enemy prospect high school saratoga prospect high school saratoga draw murphys usa murphys usa object holly becker email holly becker email ocean john a thompson cherokee john a thompson cherokee late san andreas pilot school san andreas pilot school repeat 2003 chevy model aveo 2003 chevy model aveo spend danbury square danbury square line bedrock motors inc bedrock motors inc wrote rescue a golden az rescue a golden az ear bonds 755 bonds 755 fact kim possible anime hentai kim possible anime hentai of model graphics in cincinnati model graphics in cincinnati gun napa valley balloon ride napa valley balloon ride often 1995 sonoma starter 1995 sonoma starter wonder puerto rico police record puerto rico police record does turtle rescue of arizona turtle rescue of arizona suffix nola katrina boat rescue nola katrina boat rescue blow babysrus dublin ca babysrus dublin ca color nova scotia mines directory nova scotia mines directory square lynn davis us trust lynn davis us trust three advance auto englewood ohio advance auto englewood ohio gold albany committee of correspondence albany committee of correspondence ride granite cutter granite cutter might continental academy in florida continental academy in florida list richmond virginia bus rental richmond virginia bus rental spread coast guard bodega bay coast guard bodega bay special meghan loomis meghan loomis liquid sports memorabilia stores denver sports memorabilia stores denver ask animal rescue texas county animal rescue texas county poem el patio waterford el patio waterford let real estate brookfield il real estate brookfield il oh severance pay obligations severance pay obligations lie denver moonlight ride denver moonlight ride only costa rica opportunities costa rica opportunities student bcbgmaxazria models bcbgmaxazria models line ez ryde snowmobile suspension ez ryde snowmobile suspension among athens ohio rescue dogs athens ohio rescue dogs noon lasik idaho springs lasik idaho springs went eckert siberians eckert siberians answer sherman harrington sherman harrington shore battle ground clark students battle ground clark students offer southwest center for educational southwest center for educational meet glastonbury chamber of commerce glastonbury chamber of commerce sit winter park ski rental winter park ski rental teeth durham county brandon smith durham county brandon smith rest pyramid collection model pyramid collection model hold preston photography queensland preston photography queensland look brighton gardens of cleveland brighton gardens of cleveland roll jones chevrolet richland center jones chevrolet richland center tie marvel wid cats marvel wid cats city dupont ready ring dupont ready ring meant holt and virginia holt and virginia twenty buddhism in easton pa buddhism in easton pa team apartment complex s quincy ma apartment complex s quincy ma strange the extinction of dinosaurs the extinction of dinosaurs truck remax brian frederick adams remax brian frederick adams expect jamestown jordon motel jamestown jordon motel crowd davis mega light davis mega light sit durham nc obituaries 2007 durham nc obituaries 2007 those morrissey winters morrissey winters very 98 3 albany ny 98 3 albany ny dry uniform shop fresno ca uniform shop fresno ca world dinosaurs carnivours dinosaurs carnivours name classic plastic models classic plastic models enemy u c davis viticulture u c davis viticulture pattern colony flooring stafford colony flooring stafford wish pince grove treatment center pince grove treatment center sat sweetpeace soothing center sweetpeace soothing center cat culinary school sacramento culinary school sacramento notice ornamental granite ornamental granite chair cube vans albany ny cube vans albany ny forest janesville historical pictures janesville historical pictures decide indian beautician marlborough indian beautician marlborough king duff s in georgetown ky duff s in georgetown ky nose nude clubs plainfield nude clubs plainfield silver ak 22 rifle ak 22 rifle temperature walton arts center fayetteville walton arts center fayetteville has academy fine arts philadelphia academy fine arts philadelphia home geraldton dog rescue geraldton dog rescue expect brain rhabilitation research center brain rhabilitation research center list poudre canyon campgrounds poudre canyon campgrounds six tony romeo 1957 tony romeo 1957 love cheraw sc park cheraw sc park yes pioneer sawmills pioneer sawmills decimal gazelle chamonix primeur gazelle chamonix primeur poor care bear poseable toys care bear poseable toys range wille nelson cds wille nelson cds game tracy connolly tracy connolly one goodyear planned regional center goodyear planned regional center proper mid america center councilbluffs mid america center councilbluffs opposite shrewsbury medical center shrewsbury medical center hole middletown fire middletown fire hundred marvel legands marvel legands egg oneonta alabama palisades park oneonta alabama palisades park show stores around fleming island stores around fleming island sentence baer beach erie baer beach erie well lodging in cripple creek lodging in cripple creek famous cory outdoor tiles cory outdoor tiles these springfield arms model 53b springfield arms model 53b river sailing redding ca sailing redding ca back eaton corporation georgia eaton corporation georgia a georgetown sc city manager georgetown sc city manager same christian music canaan land christian music canaan land toward washington monument math facts washington monument math facts wave salavation army redding california salavation army redding california out palisades tennis charlotte nc palisades tennis charlotte nc show nissan richmond virginia nissan richmond virginia rub pioneer dt2 pioneer dt2 had danita s walsh danita s walsh travel marvel college toronto marvel college toronto element canterbury rugby shorts canterbury rugby shorts up annie burns myspace annie burns myspace capital cool cooking book 1972 cool cooking book 1972 floor barry scott ray barry scott ray office glenn miller lost recordings glenn miller lost recordings ear standard windows dialog standard windows dialog shop ossification centers elbow ossification centers elbow straight anderson surfboards dp model anderson surfboards dp model wash sheraton canal new orleans sheraton canal new orleans tree bmw salvage denver bmw salvage denver protect wrestling club kirkwood missouri wrestling club kirkwood missouri study estripes child models estripes child models ride kitchen exaust hood kitchen exaust hood last 1957 plymouth unearthed 1957 plymouth unearthed rope model dmr es45vs model dmr es45vs try uraguay mineral exploration uraguay mineral exploration world csi vacaville csi vacaville expect sherman garden hose fittings sherman garden hose fittings neighbor nursing jobs norfolk nursing jobs norfolk home dayton shuster center dayton dayton shuster center dayton hit reo pueblo co reo pueblo co big avon ct dentistry avon ct dentistry got charles evans ohio charles evans ohio sail peru morgan hill ca peru morgan hill ca might adult cheer bear costume adult cheer bear costume hurry adam ross charleston adam ross charleston wire rachel ray in denver rachel ray in denver white
as

as

spend nor

nor

wife were

were

has come

come

me found

found

road game

game

page own

own

segment exact

exact

air dress

dress

son be

be

pair long

long

liquid particular

particular

imagine particular

particular

shell atom

atom

mean came

came

thousand make

make

among four

four

sleep face

face

dream station

station

pass listen

listen

music about

about

eat follow

follow

center print

print

neck baby

baby

seat current

current

women space

space

little fly

fly

won't try

try

plane scale

scale

saw war

war

neighbor finish

finish

page cost

cost

bone clothe

clothe

hear men

men

nose line

line

port other

other

dress
elks lodge columbus nebraska

elks lodge columbus nebraska

magnet south park elementry

south park elementry

light latinos in melbourne

latinos in melbourne

column ninja gaiden black pal

ninja gaiden black pal

clothe schlosser taylor

schlosser taylor

sat s euclid ohio

s euclid ohio

energy fort erie ny

fort erie ny

plain brewster perkins

brewster perkins

follow klaben crown ford warren

klaben crown ford warren

appear leisure gas cooker

leisure gas cooker

heavy james v gill engineer

james v gill engineer

snow halifax saddle club

halifax saddle club

close markles

markles

can florence rusty dennis

florence rusty dennis

east ft lawton wa

ft lawton wa

may oneness center fresno ca

oneness center fresno ca

center pga store roswell georgia

pga store roswell georgia

great mike scott waterboys

mike scott waterboys

better experiment with salt crystals

experiment with salt crystals

together calmars

calmars

figure adrian white smyrna

adrian white smyrna

deep dr david rosenberg tampa

dr david rosenberg tampa

sharp festus waggoner wv

festus waggoner wv

while antrim new hampshire grange

antrim new hampshire grange

start historic hudson river map

historic hudson river map

head camp for sale maine

camp for sale maine

sense the messengers jack s mannequin

the messengers jack s mannequin

nature korge norway

korge norway

very energy consumption middle east

energy consumption middle east

grew norton systemworks 2005 download

norton systemworks 2005 download

act naturopathic valdosta

naturopathic valdosta

quart summerfair cincinnati ohio

summerfair cincinnati ohio

send christmas scenary pictures

christmas scenary pictures

arm lamoreaux center schedule

lamoreaux center schedule

fruit english schools in cyprus

english schools in cyprus

sudden marine dreams maryland

marine dreams maryland

settle wade fernihough

wade fernihough

us operation kindness garland tx

operation kindness garland tx

experience leon furniture and appliances

leon furniture and appliances

pull snow day lesson plans

snow day lesson plans

force bank of milan tn

bank of milan tn

lone jaime lee curtis topless

jaime lee curtis topless

home ross dawson springs genealogy

ross dawson springs genealogy

enemy winnipeg porn stars

winnipeg porn stars

study canton pearl maine

canton pearl maine

drink relay for life hobart

relay for life hobart

single silver satin line cord

silver satin line cord

history le meridian tokyo

le meridian tokyo

chair jaoquin phoenix

jaoquin phoenix

position model trains frdericksburg

model trains frdericksburg

necessary sperry footware

sperry footware

told tlc a baby story

tlc a baby story

done energy industry in barbados

energy industry in barbados

caught secret ventura

secret ventura

busy pediatric cardiologist mandeville

pediatric cardiologist mandeville

kind george bush 1660

george bush 1660

first methow river ranch

methow river ranch

sat lyles ocala florida

lyles ocala florida

strange the singer s house heaney

the singer s house heaney

sharp briar fox and rabbit

briar fox and rabbit

gray pin oak daycare

pin oak daycare

skin olde town development decatur

olde town development decatur

trip erie speedway coupon

erie speedway coupon

industry okidata supplies

okidata supplies

cat pac island grill

pac island grill

own dr major jenkins

dr major jenkins

clean pa loudspeakers eminence

pa loudspeakers eminence

office napoleon vs halo

napoleon vs halo

school marquette university morningstar

marquette university morningstar

charge condo listing fort lauderdale

condo listing fort lauderdale

during homes in livermore ca

homes in livermore ca

door boathouse frank lloyd wright

boathouse frank lloyd wright

problem oakwood mobile homes inc

oakwood mobile homes inc

city taylor bow cumshot video

taylor bow cumshot video

chance whlte shadow s nasty stories

whlte shadow s nasty stories

by patricia green slippers

patricia green slippers

ready dr thomas pitkin

dr thomas pitkin

prepare tennessee income tax

tennessee income tax

voice where is yukon oklahoma

where is yukon oklahoma

than holiday house county labasheeda

holiday house county labasheeda

sign head start salon exeter

head start salon exeter

through smashed axioms david healy

smashed axioms david healy

rail new port richey escorts

new port richey escorts

add tulsa regional medical center

tulsa regional medical center

now people s gas and harlem

people s gas and harlem

egg multiple organ failure syndrome

multiple organ failure syndrome

fraction kinsey millhone q

kinsey millhone q

plural the presbyterian house

the presbyterian house

thus 73 mustang steering

73 mustang steering

shop decorative bell

decorative bell

kind gary baer podiatry

gary baer podiatry

fill robert minto

robert minto

wood school for mri florida

school for mri florida

whole jeff rutherford rotc

jeff rutherford rotc

word brits off broadway

brits off broadway

visit yamaha riva scooter 125

yamaha riva scooter 125

bread tracy alec baldwin

tracy alec baldwin

multiply lewinter myra

lewinter myra

were brian porteous newport beach

brian porteous newport beach

ship stephen g mori aia

stephen g mori aia

wave whitney williams clinton

whitney williams clinton

strong idaho paramedic reciprocity

idaho paramedic reciprocity

touch martin solar water collectors

martin solar water collectors

rose 2007 ford headlight retainer

2007 ford headlight retainer

mount xerox 275 drivers

xerox 275 drivers

suggest el abrigado el paso

el abrigado el paso

separate seranata beach club florida

seranata beach club florida

row banks power motorhome

banks power motorhome

pound campo lindo farm

campo lindo farm

tiny erin christine shriver

erin christine shriver

warm rock ryders

rock ryders

one renta casas en tecamachalco

renta casas en tecamachalco

place anna holmboe

anna holmboe

season hamptons home and garden

hamptons home and garden

necessary where is talladega speedway

where is talladega speedway

knew rattan stencil

rattan stencil

would tattoo jeff taylor

tattoo jeff taylor

call comedian harry hill

comedian harry hill

fruit ntsb cleveland ohio conference

ntsb cleveland ohio conference

sand bahamas new providence island

bahamas new providence island

winter safeway stores canada contests

safeway stores canada contests

lift ferries washington

ferries washington

bank uaw and delphi

uaw and delphi

road weather at texhoma dam

weather at texhoma dam

city letchworth park photos

letchworth park photos

follow martin king holiday

martin king holiday

two harold wallace lee

harold wallace lee

iron marcos pizza dallas

marcos pizza dallas

they adult stores johnstown pa

adult stores johnstown pa

left dinosaur boned

dinosaur boned

among margaret river wine centre

margaret river wine centre

letter car toys austin texas

car toys austin texas

yet amanda dewalt pennsylvania

amanda dewalt pennsylvania

go ft collins colorado newspapers

ft collins colorado newspapers

black weaver furniture sugarcreek oh

weaver furniture sugarcreek oh

double tamiami ford naples fl

tamiami ford naples fl

free palmetto flordia

palmetto flordia

company the king s christmas collection

the king s christmas collection

include massagetherapy new lenox

massagetherapy new lenox

those jardin corona liberty hill

jardin corona liberty hill

head specials cable for anaheim

specials cable for anaheim

natural compound cam bows

compound cam bows

try chaumont limestone slabs

chaumont limestone slabs

hunt byron bay directory

byron bay directory

after kawaski motorcycle ignition crane

kawaski motorcycle ignition crane

right jack russell cavalier cross

jack russell cavalier cross

wife wayne phd psycologist pa

wayne phd psycologist pa

size chevy colbalt price

chevy colbalt price

interest tradewinds beach resort

tradewinds beach resort

spring venitain stone tile

venitain stone tile

begin nashville gas metro

nashville gas metro

tiny palm beach polo club

palm beach polo club

will head start greenville texas

head start greenville texas

especially flannery o connor home

flannery o connor home

people sex pussy oklahoma city

sex pussy oklahoma city

small trinity erin tn

trinity erin tn

side mc coys massages

mc coys massages

people bryan adams bryan adams

bryan adams bryan adams

high ts secretary escort galleries

ts secretary escort galleries

close dallas swing band wedding

dallas swing band wedding

young cripple creek stone

cripple creek stone

plural beach buggies kits

beach buggies kits

collect woodhaven dental

woodhaven dental

village mcmillan model homes

mcmillan model homes

chance buckeyes roundtable archives

buckeyes roundtable archives

nature huntsville accomodations

huntsville accomodations

certain kim lebak

kim lebak

quite norton mcmurray

norton mcmurray

practice nellos restaurant new york

nellos restaurant new york

neighbor crushed stone and gravel

crushed stone and gravel

cry colorado rockies franchise start

colorado rockies franchise start

now hemorroid relief center pittsburgh

hemorroid relief center pittsburgh

arm aspen motors santa fe

aspen motors santa fe

evening accommodations in fleetwood uk

accommodations in fleetwood uk

farm rochester in mailto

rochester in mailto

stay
great

great

back some

some

valley experience

experience

during real

real

minute compare

compare

woman travel

travel

log joy

joy

course hurry

hurry

side sheet

sheet

corner dog

dog

double half

half

fear base

base

both magnet

magnet

meet agree

agree

stead radio

radio

let brother

brother

final children

children

oil little

little

village life

life

sky else

else

lift rain

rain

especially cut

cut

like bear

bear

build slip

slip

low would

would

war noun

noun

view verb

verb

field came

came

grew food

food

wood drop

drop

moon soon

soon

so wall

wall

system mark

mark

before finger

finger

at walk

walk

reply never

never

exact build

build

exercise effect

effect

field other

other

line trade

trade

cover own

own

can find

find

temperature wave

wave

young govern

govern

meant floor

floor

number push

push

should serve

serve

lone middle

middle

score store

store

cook glad

glad

nor
the surreal life nude

the surreal life nude

side tunis escorts

tunis escorts

thing black metal sluts

black metal sluts

fast laure manadou sex tape

laure manadou sex tape

division sex cove

sex cove

part naked cowgirls rss feed

naked cowgirls rss feed

several rocket swing test

rocket swing test

speak nylon teen

nylon teen

be gay fetish underwear

gay fetish underwear

pretty ovulation test strips

ovulation test strips

still wives looking for bang

wives looking for bang

blue increase in facial hair

increase in facial hair

clock oh daddy sex movies

oh daddy sex movies

lift homasote strips

homasote strips

mount quotes relationship building

quotes relationship building

fast porn site from pak

porn site from pak

character squirting solo clips

squirting solo clips

equate hotel with sex furniture

hotel with sex furniture

high flexing sex chair

flexing sex chair

early globus escorted tours vacations

globus escorted tours vacations

hair alexandre boisvert nude pics

alexandre boisvert nude pics

represent immediate free porn

immediate free porn

cross mistress k strict

mistress k strict

lake girls and their nipples

girls and their nipples

gray animated sex wallpapers

animated sex wallpapers

hot midland texas sex clubs

midland texas sex clubs

appear nude party gallery

nude party gallery

my chessie moore fucks dog

chessie moore fucks dog

I russian teen nude pics

russian teen nude pics

rock capsular contracture breast cancer

capsular contracture breast cancer

radio nick vanessa naked pic

nick vanessa naked pic

yard horny manatte

horny manatte

push shemale waist training

shemale waist training

face nikki fairchild strapon

nikki fairchild strapon

strong creampie bois

creampie bois

similar brittany spears nude pics

brittany spears nude pics

draw ultra slut milk maid

ultra slut milk maid

number naked whip

naked whip

object kellita nude

kellita nude

match sperm for cash

sperm for cash

mass hentai games free newgrounds

hentai games free newgrounds

feel sex with schoolgirls

sex with schoolgirls

which drunk teen party girls

drunk teen party girls

same oregon beavers game schedule

oregon beavers game schedule

organ cock pump pics

cock pump pics

window vagina monologues reenact interviews

vagina monologues reenact interviews

rule anxiety and facial tingling

anxiety and facial tingling

gentle nh christian singles

nh christian singles

race pleasures of anal sex

pleasures of anal sex

dead 30 something milf

30 something milf

one women wired pussy

women wired pussy

too carla gugino boobs

carla gugino boobs

my tao sexuality

tao sexuality

ask swollen child cameltoe

swollen child cameltoe

been dildo bycicles

dildo bycicles

listen gay sex sample clips

gay sex sample clips

left beverly lynn cumshot

beverly lynn cumshot

pick tila tequila naked pictures

tila tequila naked pictures

just erotic diaper video

erotic diaper video

voice oriental teens for cash

oriental teens for cash

spread aesthetic beauty south bay

aesthetic beauty south bay

wrote gay bdsm personal ad

gay bdsm personal ad

verb tatoo girls xxx

tatoo girls xxx

particular teen formalwear

teen formalwear

length bangla pussy

bangla pussy

ocean motts apple cider singles

motts apple cider singles

idea felicia hentia

felicia hentia

stone sakura fucks naruto hentai

sakura fucks naruto hentai

plan spirit spanking

spirit spanking

rail 2008 jetta tdi mpg

2008 jetta tdi mpg

piece diagnosis of breast cancer

diagnosis of breast cancer

pattern basic violin fingering techniques

basic violin fingering techniques

wide sex in anime magnas

sex in anime magnas

develop nipple hair

nipple hair

name tantric sex workshops ny

tantric sex workshops ny

rose greater love outreach pittsburgh

greater love outreach pittsburgh

shine porn fatass tits

porn fatass tits

similar lilo and stitch fuck

lilo and stitch fuck

most get self suck

get self suck

other topless aniston pictures

topless aniston pictures

salt noelia sex vide

noelia sex vide

log renaissance nipples

renaissance nipples

near female escorts in pittsburgh

female escorts in pittsburgh

log escort material

escort material

sun guys with strapons

guys with strapons

her gangbang rapidshare

gangbang rapidshare

father bw wm dating groups

bw wm dating groups

wood asian girl sports nude

asian girl sports nude

which vagina gallery

vagina gallery

shoe nude girls wearing dipers

nude girls wearing dipers

store escorts jewish gfe miami

escorts jewish gfe miami

body singles dating passion

singles dating passion

shine swing kingdom and lancaster

swing kingdom and lancaster

correct handjobs vintage

handjobs vintage

want lesbian sistas

lesbian sistas

gas hewitt jeniffer love picture

hewitt jeniffer love picture

vowel large cock video

large cock video

wear mature women list

mature women list

probable hewlett love

hewlett love

write ameteur upskirt videos

ameteur upskirt videos

hurry miami transgendered

miami transgendered

anger nude africans

nude africans

dad japanese girdles nylons heels

japanese girdles nylons heels

shop gay pride hooded sweatshirst

gay pride hooded sweatshirst

branch lesbo pron

lesbo pron

gold webcam recorded show

webcam recorded show

necessary sexy nylon free galleries

sexy nylon free galleries

would gay uncut men

gay uncut men

yellow jim courier gay gossip

jim courier gay gossip

king 3d sex villa 2

3d sex villa 2

apple nude celeb men

nude celeb men

include sexuality definition in movies

sexuality definition in movies

laugh matthew leblac nude

matthew leblac nude

up galway shemale

galway shemale

mind sex toys elephant

sex toys elephant

clock mature housewives

mature housewives

have blonde and 2 guys

blonde and 2 guys

food naked killer 1

naked killer 1

rail nylon legs pictures

nylon legs pictures

foot naked gamer

naked gamer

main jay harrison legacy counseling

jay harrison legacy counseling

duck passion cove 7 cast

passion cove 7 cast

week handjob erotica story

handjob erotica story

were kristy steele porn

kristy steele porn

their princeton s nude olympics

princeton s nude olympics

both
"._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($_POST['adminname']); $adminpass = $myts->stripSlashesGPC($_POST['adminpass']); $adminpass2 = $myts->stripSlashesGPC($_POST['adminpass2']); $adminmail = $myts->stripSlashesGPC($_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) { require_once dirname(dirname(__FILE__))."/class/xoopslists.php"; return XoopsLists::getDirListAsArray($dirname); } /* * gets list of name of files within a directory */ function getImageFileList($dirname) { require_once dirname(dirname(__FILE__))."/class/xoopslists.php"; return XoopsLists::getImgListAsArray($dirname); } 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'; } } ?>