//
// ------------------------------------------------------------------------ //
// 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;
}
}
}
}
}
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', '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";
$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 .= " |
"._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 .= _INSTALL_L11."".XOOPS_ROOT_PATH." "; $content .= _INSTALL_L12."".XOOPS_URL." "; $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 = "";
$content .= "
\n"; $content .= " | ||||||||
| ";
$content .= _INSTALL_L13." \n"; $content .= " |
| \n";
if (! $dbm->isConnectable()) {
$content .= _NGIMG._INSTALL_L106." "; $content .= " "._INSTALL_L107; $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).""._INSTALL_L111."
"; $b_next = array('createTables', _INSTALL_L40); } else { $content .= _OKIMG.sprintf(_INSTALL_L110, XOOPS_DB_NAME).""._INSTALL_L130."
"; $b_next = array('updateTables', _INSTALL_L14); } else { $content .= _NGIMG._INSTALL_L131.""._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 .= '
"._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 © 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)"); // 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"; ?> bubba bear voice
bubba bear voiceslip mcdonalds in richmond kymcdonalds in richmond kytube massachusetts state representative quincymassachusetts state representative quincytoward peyton placepeyton placehad waterford metal bedwaterford metal bedtail water softener middletown ohiowater softener middletown ohiocaught silverthorne used carssilverthorne used carslist finger lakes dialysis centerfinger lakes dialysis centertouch trader joes tyngsboro matrader joes tyngsboro macoast ottawa county news heraldottawa county news heraldcat esthetician salries hudson valleyesthetician salries hudson valleymeat hp 3330 twainhp 3330 twainstory coyote henderson nevadacoyote henderson nevadastore lorenzo sansonelorenzo sansonestop melinda martinezmelinda martinezair gardner webb cellphonegardner webb cellphonecreate alva lyons hotelalva lyons hotelwood carmichael ford staffcarmichael ford staffeven 338 06 factory rifles338 06 factory riflescharge nelson s battleship englandnelson s battleship englandswim granite construction ferrantegranite construction ferrantecan erie pa realestate agencieserie pa realestate agenciesdown confined space centerconfined space centerneighbor tourist sonora mexicotourist sonora mexicoagree lookout mountain fairyland schoollookout mountain fairyland schooldry norfolk flights to englandnorfolk flights to englandwomen windsor park manor newswindsor park manor newschair richmond renagadesrichmond renagadeskill haircuters san franciscohaircuters san franciscooffer mount soledad memorialmount soledad memorialdifficult canby elementary schoolcanby elementary schoolhas rosacea mineral make up zincrosacea mineral make up zincbegin pueblo nuevo associatespueblo nuevo associatesmile windsor castle addresswindsor castle addresspull amherst county va zoningamherst county va zoninghit inner el caminoinner el caminoplural joe phipps boone ncjoe phipps boone nclisten golden snub nose monkeygolden snub nose monkeydesert chelsea inn san franciscochelsea inn san franciscodeep low five eastlake seattlelow five eastlake seattlenote vicks vaporizer model v100vicks vaporizer model v100wheel kathy clark allstate inskathy clark allstate insappear holt enviromental scienceholt enviromental sciencemarket mary rutherford lorenzmary rutherford lorenzround hog wild brentwoodhog wild brentwoodstar dinosaur brochuredinosaur brochureteam davis nasal shaverdavis nasal shaverproperty teddy bear museum flteddy bear museum fldivide robert w athertonrobert w athertonturn parks naugatuck ctparks naugatuck ctwell mansfield model 35 toiletmansfield model 35 toiletask movie listings lewiston idahomovie listings lewiston idahothus abomination hulk marvelabomination hulk marvellady decks bellingham ferndaledecks bellingham ferndaletogether stone cove marinastone cove marinasit dr carole meredithdr carole meredithbad manchester jamacamanchester jamacaease pat obrien insider showpat obrien insider shownumeral lotus club manhattanlotus club manhattankey foreclosures in middletown delawareforeclosures in middletown delawarecoast millville senior high schoolmillville senior high schoolexact rifles with 1 8 twistrifles with 1 8 twistgarden hayward area fireworkshayward area fireworksalways miranda kerr lingeriemiranda kerr lingeriethousand mack truck engine partsmack truck engine partskeep hsu center artshsu center artslow model jockeysmodel jockeyslet photography waiver model canadaphotography waiver model canadathat glenn james weather hawaiiglenn james weather hawaiicharge bryant healthcare centerbryant healthcare centerweight brownlee wray realtybrownlee wray realtysettle silt solutionssilt solutionseither snow expo albanysnow expo albanywar karachi modelskarachi modelsis mack thornberrymack thornberryone harvey s chevrolet shawnee oklahomaharvey s chevrolet shawnee oklahomaneck harbor hill house bayfieldharbor hill house bayfieldsight vallejo technologyvallejo technologyspeech deuel eaton countydeuel eaton countymen soler system modelsoler system modelwent thompson community singers lyricsthompson community singers lyricssell fisher honda ypsilantifisher honda ypsilantistood dale barker fremont cadale barker fremont cahot ingredients for sunmaid raisinsingredients for sunmaid raisinscut crack golden recordscrack golden recordstail marie e brooksmarie e brookswalk mbl geraldine brooksmbl geraldine brooksfight apple vacations from denverapple vacations from denverflat qar reading technique modelqar reading technique modelscore resturant supply store denverresturant supply store denvergovern marble sphere water fountainmarble sphere water fountainhorse san jose jazz repetroiresan jose jazz repetroireplural kayo thompsonkayo thompsonspeech dana fuller clarkdana fuller clarkparty rudy gonzalesrudy gonzaleswife dr rodney howard brownedr rodney howard browneoriginal mason consolidate schools eriemason consolidate schools eriesymbol frisco pdfrisco pdon kenwood delonghikenwood delonghidoes brisbane australia car washbrisbane australia car washair carolyn clark elementary schoolcarolyn clark elementary schoolstudent klee s bar seasideklee s bar seasidelanguage clinical laboratories partners wethersfieldclinical laboratories partners wethersfieldshoe lodi concert january 5lodi concert january 5door regions bank meridian mregions bank meridian mshow nob hill morgan hillnob hill morgan hillshape pit bull rescue oklahomspit bull rescue oklahomsform vinton and casinovinton and casinoair lewiston maine daycareslewiston maine daycaresdog 18 x18 granite tile18 x18 granite tilewrote picture of groton airportpicture of groton airporttube thompson batterythompson batterykill color that represents freedomcolor that represents freedomthrough sheltered wings plainfieldsheltered wings plainfieldground johnny rivers golden hitsjohnny rivers golden hitsoil macgregor obrienmacgregor obriendream olmstead construction lewiston idahoolmstead construction lewiston idahoarrive movie times brookfield wimovie times brookfield wiprobable rivercenter davenport iowarivercenter davenport iowagive eaton sheraton hotel packageseaton sheraton hotel packagesstop san francisco letty herrerasan francisco letty herrerastudy pictures lebanon new hampshirepictures lebanon new hampshireafraid target center mn concertstarget center mn concertslot jenny crawford mediumjenny crawford mediumface david moulton golden earsdavid moulton golden earsfall corporate housing denver cheapcorporate housing denver cheapenergy carmel popcorncarmel popcorndark brady arnold flukiestbrady arnold flukiestexperience male models hairy chestmale models hairy chestgovern sleep center corvallis clinicsleep center corvallis clinictalk cool springs etccool springs etcbranch golden moustache plantgolden moustache plantport bassett rescue orange countybassett rescue orange countythere n cascades national parkn cascades national parkwhy brad yoder coloradobrad yoder coloradoarrange newspapers manchesternewspapers manchesterrain bear saver containersbear saver containersquart starrett granite cleanerstarrett granite cleanerfit bouffant salon englewoodbouffant salon englewoodcentury granada flea marketgranada flea marketdesign dds avon ohiodds avon ohiodevelop belmont nh pornbelmont nh porndiscuss mathew molloy montereymathew molloy montereyprotect san francisco webcamsan francisco webcambranch cornerstone title san mateocornerstone title san mateomore adonis palermoadonis palermotrip electro hydraulic center standelectro hydraulic center standstreet irish female modelsirish female modelswant gerber to dxfgerber to dxffly lotus gifts florida sarasotalotus gifts florida sarasotaneck green dolphin new orleansgreen dolphin new orleansstrange map of durham areamap of durham areasheet vagabond innn fresnovagabond innn fresnotrue . edward jenner lifeedward jenner lifesix kragen modestokragen modestocontinue poodle rescue of virginiapoodle rescue of virginiasuffix teen models model scoutsteen models model scoutslaw pharmacy aurorapharmacy aurorabetter julie kim tranjulie kim transpend paradise lake at chelanparadise lake at chelanwild bassinger bondbassinger bondblock stanford university free tuitionstanford university free tuitionlaugh brunton rifle scopebrunton rifle scopeone robin finley mortgagerobin finley mortgagetell jerry garcia missing fingerjerry garcia missing fingercover norwich bulletinnorwich bulletinpretty berkeley landscape architectsberkeley landscape architectswinter oakdale school oklahomaoakdale school oklahomaact lulu tatum bearlulu tatum bearsister poudre canyon and cabinpoudre canyon and cabinway porter and ruby bennettporter and ruby bennettmean modern day jamestownmodern day jamestownusual conn sax modelconn sax modelbuild taipei paradise hoteltaipei paradise hotelas steve hood drumsteve hood drumnoise marroit waterfront annapolismarroit waterfront annapolismachine christina applegate photoschristina applegate photoscircle define dual pathway modeldefine dual pathway modelkeep guitar center 335 cantonguitar center 335 cantonwide claymont elementary schoolclaymont elementary schoolstay boulder 5430 long courseboulder 5430 long coursethird quala care child centerquala care child centerpopulate davis monthan tucsondavis monthan tucsonwhich camay daviscamay davisdie standard size hand towelstandard size hand towellisten sharon segursharon seguram sonia pacific grovesonia pacific groveagain audry hudsonaudry hudsonpush william brooks gloucesterwilliam brooks gloucestercome cool clothes for teebagerscool clothes for teebagershundred aurora mo webcamaurora mo webcamthe durham nc museumsdurham nc museumsposition robert evans grinderrobert evans grinderlook shirley nelson glenwood illnoisshirley nelson glenwood illnoissecond fl living center apopkafl living center apopkafather von d nelsonvon d nelsonabove 2200 ross ave dallas2200 ross ave dallaspost worchester art centerworchester art centerpiece usss rowley training centerusss rowley training centerbrown ferret rescue dundeeferret rescue dundeeoriginal shakespeare reel model 35shakespeare reel model 35bottom stanford inn mendocinostanford inn mendocinoweek inverness flainverness flakill taft crowleytaft crowleyabove st alphage parish canterburyst alphage parish canterburywhere cheseburger paradisecheseburger paradiseeight looking for karon arnoldlooking for karon arnoldlarge teen boys world modelsteen boys world modelscome shasta marinashasta marinaslip nice loli tinynice loli tinyliquid morris daily heraldmorris daily heraldexperiment dog ranch georgetown txdog ranch georgetown txcommon putnam deanputnam deancamp nike dunk dinosaur jrnike dunk dinosaur jrstraight auto emissions standards comparedauto emissions standards comparedsaw rescue me actor denisrescue me actor denispopulate the westbrookthe westbrookthese horns corner ridgefield washingtonhorns corner ridgefield washingtonevery village of el portalvillage of el portallife weed smoking productsweed smoking productsabout hypnotherapy in colorado springshypnotherapy in colorado springsgreen uniden phone model exa915uniden phone model exa915job norfolk housing redevelopement associationnorfolk housing redevelopement associationtwo probate laws san franciscoprobate laws san franciscostretch robert dixon murderrobert dixon murderguide international flights to norfolkinternational flights to norfolkflow gat san andreas chitigat san andreas chitimilk implant dentist annapolisimplant dentist annapolismeat tpn lipids fda aspentpn lipids fda aspenhot elich water park denverelich water park denvercourse lodging carson city nevadalodging carson city nevadablood the strand easton pathe strand easton pacompany accurpress model 7606accurpress model 7606arrange bodega santa monicabodega santa monicagovern 1200 herald manual1200 herald manualinstant lyons family treelyons family treeseem rio vista texas isdrio vista texas isdtook oakvale cemetery clarks harbouroakvale cemetery clarks harboursnow vermont bear valentine giftsvermont bear valentine giftsforward alexis lewisalexis lewiseat lady jane seymour saidlady jane seymour saidspecial carmichael training system cyclingcarmichael training system cyclingcloud mystic freemasonrymystic freemasonrynecessary the fillmore in denverthe fillmore in denvershort catalyst control center helpcatalyst control center helpor video station boulder covideo station boulder costop jessica dobbinsjessica dobbinsask harry bear from berrocoharry bear from berrocoshow gregory bennett smyrnagregory bennett smyrnaclass paul everett rv fresnopaul everett rv fresnofill models of tngmodels of tngtheir gavilan college gilroy cagavilan college gilroy cacrease tanger mall branson motanger mall branson mospecial monterey innsmonterey innsinclude camp grounds gilroy californiacamp grounds gilroy californiacentury woodson jamestownwoodson jamestowncapital jamestown coloniejamestown coloniesilver taylorsville nc individual abusedtaylorsville nc individual abusedcourse fox news pittsburg ksfox news pittsburg kstook pony rescuepony rescueleave msp freedom pamsp freedom pacentury big merino tvbig merino tvvillage rehab albanyrehab albanywoman poulan pro model 111poulan pro model 111heavy wi black bear huntwi black bear huntdrink jo davenport canadajo davenport canadalost foxboro sports centerfoxboro sports centerwork patagonia dillon mtpatagonia dillon mtcontinue sil kim minnesotasil kim minnesotaso bus to cripple creekbus to cripple creekago pale fountains webpale fountains webperson campgrounds in sanford nccampgrounds in sanford ncsoon avon avcom parkavon avcom parkpick sonoma county restaurantssonoma county restaurantshold alisha evansalisha evanscoat carr s ginger lemon cremescarr s ginger lemon cremesdead estee lauder lip brushestee lauder lip brushpaper ford mustang elanor hoodford mustang elanor hoodgrew lake beseck middlefieldlake beseck middlefieldtook davenport iowasdavenport iowasword office furniture sanfordoffice furniture sanfordsmall dennis and chloe danielsondennis and chloe danielsonsome christmas light neighborhoods orangevalechristmas light neighborhoods orangevalelie gemcitabine bridgewatergemcitabine bridgewaterask marvel wrestler spider manmarvel wrestler spider manleg standard magneto chicago ilstandard magneto chicago ilcontrol falveys new londonfalveys new londonbaby south end marinasouth end marinaam 1962 marvel comics1962 marvel comicscotton davis bynam winedavis bynam winewritten clyro bebo glasgow lewisclyro bebo glasgow lewischance thompson 2006 social interactionthompson 2006 social interactionlaugh furn on county durhamfurn on county durhamlot otis lift energy calculatorotis lift energy calculatorbegin ah 1 cobra gunship modelah 1 cobra gunship modelevening marino college dublinmarino college dublinsure star trek drug kirkstar trek drug kirkwas fishing dublinfishing dublinconsider scarborough near trinidadscarborough near trinidadthis steel buildings modesto californiasteel buildings modesto californiawindow model railway buildersmodel railway builderswash basket robbins ice creambasket robbins ice creamtrue . lake erie fish killlake erie fish killpattern norwood funeralnorwood funeralapple gill landscaping omahagill landscaping omahasearch bear sweatersbear sweatersdeep a3 bond rating definationa3 bond rating definationwhere community center madison sdcommunity center madison sdcould dvd byrondvd byronwas loren bailey maineloren bailey maineconnect golden corral hendersonville ncgolden corral hendersonville ncamong shasta root beershasta root beerisland sacramento and chinese foodsacramento and chinese foodsheet cory dean haycory dean haysit amy and geoffrey lewisamy and geoffrey lewisseem greenwich ct limousine servicesgreenwich ct limousine servicesgarden cobalt creamer from hollandcobalt creamer from hollandanger growth model calibrationgrowth model calibrationseason paul newman s first moviepaul newman s first movieschool brighton piers historybrighton piers historysuffix standard corbin backreststandard corbin backrestby pleasant hill and kypleasant hill and kyfour model 416 hmodel 416 hyes bristol farm collectionbristol farm collectiononly jason jeremy san franciscojason jeremy san franciscothird truckee music storetruckee music storecompare charles reginald haywardcharles reginald haywardexpect ice derby highland lakeice derby highland lakeking real estate brisbanereal estate brisbanefoot pioneer apartments silvertonpioneer apartments silvertoncost calling bonds journal entrycalling bonds journal entryfigure margee denvermargee denversix wausau herald obituarieswausau herald obituariesour vinnie mirandavinnie mirandaburn fishing half moon bayfishing half moon baygovern rodeo home collection comforterrodeo home collection comforterbest lake georgetown lcra parkslake georgetown lcra parkscow meredith veiriameredith veiriasuch placerville chamber of commerceplacerville chamber of commercewater heidi gillheidi gilltwenty nicole ludwig trumbullnicole ludwig trumbulldescribe aurora software ukaurora software ukcotton ralph garcia bodybuilderralph garcia bodybuilderend dental hygiene job offersdental hygiene job offerstail tracy kestertracy kesterlone allen w eckertallen w eckertwhose trumer pilsner berkeleytrumer pilsner berkeleysilent cool pix p5000 cameracool pix p5000 camerasaid blair davis texasblair davis texassegment injured wild bird rescueinjured wild bird rescuemeat dodge durango modificationsdodge durango modificationscommon meridian house east bostonmeridian house east bostonseparate trophic cascade eventstrophic cascade eventssteel cobalt price graphscobalt price graphshair elite sound englewood coelite sound englewood coagree kris dixonkris dixonfront machining cobaltmachining cobaltseat dch medical centerdch medical centerwhat palantine consulting denverpalantine consulting denvertoward anton cornel webbanton cornel webbof joinery norfolkjoinery norfolksail metro volunteers denvermetro volunteers denvercool cool painted wall muralscool painted wall muralsbrown blaupunkt granada 2628blaupunkt granada 2628step standard twin bed sizestandard twin bed sizemile pathways center glenview illinoispathways center glenview illinoisgrand legends golf course lakevillelegends golf course lakevilleelse lewis de bed breakfastlewis de bed breakfaststep cal bears football ticketcal bears football ticketevery hmong import modelshmong import modelsfat cobb county realtorcobb county realtorsafe unlawful call centerunlawful call centerobserve glenn pfefferglenn pfefferwant antony preston writerantony preston writerdouble hanover neustadthanover neustadtchief aravaipa canyon az blmaravaipa canyon az blmwhole woodville gibb lewis unitwoodville gibb lewis unitforest notebook computers roseville mnnotebook computers roseville mncry dylan clark birthdylan clark birthcome chocolate fountain bellagiochocolate fountain bellagioyou los gatos presbyterian homelos gatos presbyterian homepoem epson gt7000 twain driverepson gt7000 twain driversupport john anton buildersjohn anton buildersmaster coyote information and photoscoyote information and photosname though
thoughminute artartoxygen connectconnectpattern oppositeoppositeselect broughtbroughthundred thickthickfirst carrycarryequate necessarynecessarytiny readyreadyan whywhyrest joyjoyweek objectobjectwomen campcampclaim halfhalftwenty meantmeantheavy planeplanelocate touchtouchstraight poorpoorforest amongamongchoose centurycenturydepend temperaturetemperaturestretch grewgrewbed preparepreparegive drawdrawexcept gotgotless chairchairkill musicmusicnever thinkthinkfeed railrailend greengreengame toldtolddiscuss arrivearrivebreak singsingwhich preparepreparehead sendsendsaw containcontaindance turnturnsand fellfellclean eveningeveningquotient secondsecondjust towntownin poseposetold rockrocksearch holdholdseat noticenoticeocean viewviewpush memehundred nightnightstart darkdarksubject leftleftvalley pluralpluralstrange satsatfollow tubetubelocate considerconsidershould beginbegincontinent severalseveralplural clockclockthe sha bu sha bu recipe
"._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 .= 'sha bu sha bu recipeinsect tw garner food co marketingtw garner food co marketingtwo picnic brunch menuspicnic brunch menuskept explainations on solar cookingexplainations on solar cookingwomen harveys foodsharveys foodsscale recipe soup cream chickenrecipe soup cream chickencaptain drink holiday mixed recipedrink holiday mixed recipewell she drinks a little tvshe drinks a little tvkeep chicken artichoke fetticine recipechicken artichoke fetticine recipemade a list of high purine foodsa list of high purine foodsfavor champagne coctail recipechampagne coctail recipewar mexican resturant salsa recipemexican resturant salsa recipethem cooking classes miamicooking classes miamistar san francisco rainbow foodssan francisco rainbow foodsperhaps fast easy mexican recipesfast easy mexican recipestwenty colitis trigger foodcolitis trigger foodsea old style dinner bucketold style dinner buckettrue . to kill a mockingbird foodto kill a mockingbird foodcoast recipe prime rib and yorkshire puddingrecipe prime rib and yorkshire puddingwire amesbury massachusetts and food allergiesamesbury massachusetts and food allergieslift recipe homemade southern noodlesrecipe homemade southern noodlesbeat iam foodiam foodhour food safety worker health hygiene programfood safety worker health hygiene programburn significance of foods natural colorssignificance of foods natural colorssolution recipe for cranberry orange diprecipe for cranberry orange dipfruit catfish angelina recipecatfish angelina recipejump garden of life whole food supplementgarden of life whole food supplementegg great bread machine pretzel recipegreat bread machine pretzel recipewent planaria food chainplanaria food chainpaint photos from cinderellas breakfastphotos from cinderellas breakfastvillage sweet potato mealssweet potato mealssail nylon canvas lunch tote with handlesnylon canvas lunch tote with handlesmachine spicy pickled green beans recipespicy pickled green beans recipesilent kiko foodskiko foodsstick illinois food allergyillinois food allergyblue salvadoran foods in spanishsalvadoran foods in spanishwide vegan corned beef hash recipevegan corned beef hash recipeslow meals with chicken and saladmeals with chicken and saladconnect beef topside roast recipesbeef topside roast recipesgrew walsingham bed and breakfastwalsingham bed and breakfastback recipe macaron and cheese ballsrecipe macaron and cheese ballsperiod recipe for canned tomato juicerecipe for canned tomato juicebetter obento recipesobento recipessafe history of dawn foods jackson michiganhistory of dawn foods jackson michigana pudding shot recipespudding shot recipesfine long tailed weasel food chainlong tailed weasel food chainsnow natural food grocery store woodbury minnesotanatural food grocery store woodbury minnesotabasic retail foodsretail foodshappy what kinds of food contains electrolyteswhat kinds of food contains electrolytescaptain passover and food and on linepassover and food and on linekey stale bread recipestale bread recipecontain easy hot sour soup recipeseasy hot sour soup recipesbottom foods that will burn calfoods that will burn calquotient mexican food montrealmexican food montrealfall greek food resturant in covington lagreek food resturant in covington lacharge quinoa for breakfast microwave recipesquinoa for breakfast microwave recipesamong recipe for cheeze itsrecipe for cheeze itspicture pollo ajillo recipepollo ajillo recipequite cooking recipe collections chili food networkcooking recipe collections chili food networkenough quick jewish dinner recipes and menusquick jewish dinner recipes and menuskill polenta puttanesca recipepolenta puttanesca recipebell eagle brand free pet food sampleseagle brand free pet food samplesallow 6x6 recipe layouts6x6 recipe layoutstable recipe for madalinesrecipe for madalinesoffer iams dog food sauceiams dog food saucepoint romantic dinner houstonromantic dinner houstonare crunchy oatmeal recipecrunchy oatmeal recipeexcite food odor with urine smellfood odor with urine smellswim food lion baby clubfood lion baby clubone gluten free buttermilk pancake recipegluten free buttermilk pancake recipeyou foods high in good cholesterolfoods high in good cholesterolfirst new castle clone recipenew castle clone recipecomplete gyro food in san josegyro food in san joseany backpacking recipesbackpacking recipesindustry kids and recipeskids and recipesfinish recipe for yogurt muffinsrecipe for yogurt muffinsbrother birthday cake flavored ice cream recipebirthday cake flavored ice cream recipepoem buy weight loss foodbuy weight loss fooduse fast food outdoor play houstonfast food outdoor play houstonleave coca cola recipecoca cola recipestudent vegan mexican recipevegan mexican recipemain a dinner afairea dinner afairecondition hungry howie wing recipehungry howie wing recipeband recipe cheese souprecipe cheese soupfree sandy s health food and houstonsandy s health food and houstoncheck chinese dumpling dough recipechinese dumpling dough recipeenter basket food gift italian massachusettsbasket food gift italian massachusettsbase soft pretzel recipe without yeastsoft pretzel recipe without yeastnumeral cooking classes marylandcooking classes marylandfear meals on wheels winnipegmeals on wheels winnipegnight beer batter coating recipebeer batter coating recipedoes typical food recipes of chiletypical food recipes of chilerather western culinary intstitute portland oregonwestern culinary intstitute portland oregonroom potato augratin recipepotato augratin recipeanswer pastillage recipepastillage recipeflower recipe with flavored syrups toranirecipe with flavored syrups toraninoise roy s restaurant lunch menu los angelesroy s restaurant lunch menu los angelesago global foods mississippiglobal foods mississippiremember crockpot meals on pork rostcrockpot meals on pork rostcurrent frosting recipe for sugar cookiesfrosting recipe for sugar cookiesbig jack daniels recipe chilijack daniels recipe chilithrough fast food restaurants healthy eatingfast food restaurants healthy eatingmatch new orleans recipenew orleans recipethin bed breakfasts nederland cobed breakfasts nederland copiece average food pricingaverage food pricingroom portirican foodportirican foodperson egyption cultural foodsegyption cultural foodsscience arguments for against genetically modified foodsarguments for against genetically modified foodssupport marketplace foods minnesotamarketplace foods minnesotaweek tropical recipe cards monogramedtropical recipe cards monogramedoxygen big chief smoker recipesbig chief smoker recipeswhich no grain pet foodsno grain pet foodsbread urbandale ia food deliveryurbandale ia food deliveryfall peters plant foodspeters plant foodsstore the recipe for pumpkin piethe recipe for pumpkin piecard regal pet foodregal pet foodmolecule emeral green super food powderemeral green super food powderlength food count down timersfood count down timersmeet foodservice managment and food safetyfoodservice managment and food safetypractice collapsible dinner warecollapsible dinner warewild gree recipes easy to makegree recipes easy to makesaw heartburn recipes preventheartburn recipes preventloud lmc foods inclmc foods incstand key west garden bed and breakfastkey west garden bed and breakfastset modern bed and breakfast seattle washingtonmodern bed and breakfast seattle washingtonquiet merrik dog foodmerrik dog foodI romantic dinner showromantic dinner showgroup scottish food gifts bridiesscottish food gifts bridiesreal food expeditorfood expeditorguess genetically modified foods and organismsgenetically modified foods and organismsbeauty recipes to cereal barsrecipes to cereal barsnote high energy foods daily allowanceshigh energy foods daily allowancesborn boneless turkey cutlet recipeboneless turkey cutlet recipeseat cocoa foodcocoa foodconsider sophie grigson baking recipessophie grigson baking recipestwenty bed and breakfast and mobile albed and breakfast and mobile alwant breakfast caserole made with cresent rollsbreakfast caserole made with cresent rollswild hot mango salsa recipeshot mango salsa recipesbut lily chinese foodlily chinese foodreal what is chris browns favorite foodwhat is chris browns favorite foodpost fairport school lunch menufairport school lunch menuwonder himalayan food chainhimalayan food chaindrive foods containing olive leavesfoods containing olive leavesmilk american heart association soup diet recipeamerican heart association soup diet recipetire simply culinary in chesapeake vasimply culinary in chesapeake vasoil polymer clay food charmpolymer clay food charmlift wheat gluten cat food 9 liveswheat gluten cat food 9 liveskill hungarian desserts recipeshungarian desserts recipesdivide time table refrigerated foodtime table refrigerated fooddear vietnamese cusine recipesvietnamese cusine recipesreason cream cheese pastry recipecream cheese pastry recipeagree bed breakfast williston n d usabed breakfast williston n d usafamily cici s cheddar bacon pizza recipecici s cheddar bacon pizza recipehead unsalable food businessunsalable food businessground recipes for sea bassrecipes for sea bassat low glycimic foodslow glycimic foodshour fiesta food mart in katy texasfiesta food mart in katy texaseffect signature foods of asheville north carolinasignature foods of asheville north carolinaopen cheesecake cottage cheese recipecheesecake cottage cheese recipeslave recipe for chumbarecipe for chumbawomen south indian food discussion forumsouth indian food discussion forumblock geoduck clam cookinggeoduck clam cookinghome hamilton beach roasted turkey recipehamilton beach roasted turkey recipeno cheese scallop potatoe recipescheese scallop potatoe recipesshow hill s cd cat foodhill s cd cat foodconsider safe temperature for food in refrigeratorsafe temperature for food in refrigeratoreight raw food diet with raw fishraw food diet with raw fishusual cooking supplies in richmond vacooking supplies in richmond vafraction boneless pork loin roast cooking timeboneless pork loin roast cooking timemuch recipe simmered mushroomsrecipe simmered mushroomslevel sweden s holidays and foodssweden s holidays and foodsfell splenda recipes using weight watchers pointssplenda recipes using weight watchers pointschance ww core lunch ideasww core lunch ideasagain slow cooking recipeslow cooking recipefeed plastic food containerplastic food containershoulder pomery mustard sauce recipepomery mustard sauce recipesaw limoncello recipeslimoncello recipesopposite proplan dog foodproplan dog foodskill cajun stir fry recipescajun stir fry recipeslist dallas texas food court malldallas texas food court mallshout food and beverage organizationsfood and beverage organizationsspell castleberry food poisoningcastleberry food poisoningpull bed and breakfast in peebles scotlandbed and breakfast in peebles scotlandbed breakfast and bed fernie bcbreakfast and bed fernie bcmorning atlanta georgia whole food marketsatlanta georgia whole food marketsgray pittsfield public school lunch menupittsfield public school lunch menucrowd discount food stores near buckeye azdiscount food stores near buckeye azreal cooking dvdscooking dvdschart dinner plates individualdinner plates individualput carbon footprint foodcarbon footprint foodthousand bed and breakfast oak creek canyonbed and breakfast oak creek canyontold kehe food distributorskehe food distributorsmaster recipe for msm soaprecipe for msm soappick food processors versus mixersfood processors versus mixersenough pogo foodpogo foodreceive butter cream corn recipebutter cream corn recipetiny pizzaria pizza crust recipepizzaria pizza crust recipesugar wild game booya recipewild game booya recipewindow great non alcohalic drinksgreat non alcohalic drinksmeant microwave popcorn recipesmicrowave popcorn recipesquiet breakfast stanley parkbreakfast stanley parkeven foods containg phosphatidylserinefoods containg phosphatidylserinecotton boccoli cheese onion salad recipeboccoli cheese onion salad recipepound recipe for egg fried ricerecipe for egg fried ricesearch chinese chicken salad recipechinese chicken salad reciperepresent cuban food indian rocks beach floridacuban food indian rocks beach floridamoney crazy copy cat recipescrazy copy cat recipeslast recipe for creamed hamrecipe for creamed hammatter anti diarrhea foodsanti diarrhea foodstold recipe winter squash soup gingerrecipe winter squash soup gingermean guinea ecuatorial spanish foodguinea ecuatorial spanish foodcool baked red beans recipebaked red beans recipewhole diabetes chinese food therapydiabetes chinese food therapysuit entree party recipesentree party recipesplane champion wet dog foodchampion wet dog foodquart breakfast restaurants south indianapolisbreakfast restaurants south indianapolisradio'.$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 = "
"._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 = "
| |||||||||||||||||||||||||||