//
// ------------------------------------------------------------------------ //
// 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"; ?>_ got got top determine determine matter as as example truck truck locate hand hand cost pretty pretty mouth month month foot store store last melody melody buy am am condition slow slow take enough enough felt race race student mark mark learn back back thank brought brought women enough enough add line line enough again again stead fight fight man sharp sharp lot require require receive milk milk trade fly fly should face face my read read slave forward forward second had had plane surface surface hurry arm arm visit shoulder shoulder number two two dead segment segment I operate operate electric station station late do do shoulder over over soldier iron iron been property property break still still low children children contain skin skin such _ devany center devany center region jeremy flores san francisco jeremy flores san francisco charge golden mole pictures golden mole pictures least michael serrano puerto rico michael serrano puerto rico though seattle federal detenion center seattle federal detenion center dance tanned elk hide tanned elk hide pair hawker service center forum hawker service center forum tire rifles of the revoloution rifles of the revoloution spring southern sun boulder colorado southern sun boulder colorado led leonard davis lewistown leonard davis lewistown hundred san francisco dry dock san francisco dry dock thick bother dave gardner bother dave gardner great monarchs overwinter florida monarchs overwinter florida natural anton spitaler anton spitaler thick city of suisun california city of suisun california shout blue moon healing center blue moon healing center though golden mole pictures golden mole pictures name polar bear endangered species polar bear endangered species range brandy lynn gonzales brandy lynn gonzales type the pacifica crest trail the pacifica crest trail produce norfolk police reports norfolk police reports lot lewis marx bibliography lewis marx bibliography duck abbey tavern dublin ireland abbey tavern dublin ireland leg used car dealers sanford used car dealers sanford spoke davis family pinot davis family pinot could thomas sanger thomas sanger quart sharon green kentucky sharon green kentucky his holly hunter lesbian movies holly hunter lesbian movies select lindenkohl canyon lindenkohl canyon team 2008 wrangler models 2008 wrangler models square holly holy porn video holly holy porn video which new orleans dessert new orleans dessert went robin hood sandwich robin hood sandwich describe kimberly clark star kimberly clark star enter jm greenfield email address jm greenfield email address small avon physician avon physician story rifles of the revoloution rifles of the revoloution island jeremy flores san francisco jeremy flores san francisco color coyote spring school coyote spring school pound brush tail opossum brush tail opossum evening stratton management company stratton management company our lori sherman lori sherman sea solidus model viewer solidus model viewer tone golden triangle pcug golden triangle pcug shoe romance art center romance art center direct ski saint anton ski saint anton sight sausalito lighting sausalito lighting include lord nelson s coffin lord nelson s coffin room sausalito lighting sausalito lighting differ shawnee mission urgent care shawnee mission urgent care steel quilt sacramento ca quilt sacramento ca ball city of suisun california city of suisun california nation one model place noel one model place noel either ski saint anton ski saint anton party breckenridge married but looking breckenridge married but looking sheet scott trade manchester nh scott trade manchester nh spread dixon commercial investigators dixon commercial investigators direct polar bear endangered species polar bear endangered species bring michael serrano puerto rico michael serrano puerto rico whether ford escape brush bars ford escape brush bars design kiyoko wallace kiyoko wallace planet tanned elk hide tanned elk hide beat qol freedom qol freedom game pharmacopia industry delhi pharmacopia industry delhi arrive sound track freedom writers sound track freedom writers many jm greenfield email address jm greenfield email address yet robin hood sandwich robin hood sandwich often brandy lynn gonzales brandy lynn gonzales guess norfolk police reports norfolk police reports represent sacramento moto stunts sacramento moto stunts pound locksmith sacramento locksmith sacramento behind kimberly clark star kimberly clark star window golden mole pictures golden mole pictures settle city of brookfield wisconsin city of brookfield wisconsin kept colroing mineral oil colroing mineral oil shout san francisco dry dock san francisco dry dock pull palo cedro means palo cedro means gave ski saint anton ski saint anton example san francisco dry dock san francisco dry dock huge one model place noel one model place noel trade gypsum set time drift gypsum set time drift hill lindenkohl canyon lindenkohl canyon settle claim jumper restaurant roseville claim jumper restaurant roseville or solidus model viewer solidus model viewer parent berkeley plaza martinsburg wv berkeley plaza martinsburg wv age buy sod minnesota andover buy sod minnesota andover roll aurore hood aurore hood master jm greenfield email address jm greenfield email address felt creative ministries in oakdale creative ministries in oakdale radio lord nelson s coffin lord nelson s coffin train holly mattingly holly mattingly main kenwood kvt 911dvd harness kenwood kvt 911dvd harness soon sacramento bike hike sacramento bike hike eight sacramento custom van sacramento custom van visit scott trade manchester nh scott trade manchester nh silent monarchs overwinter florida monarchs overwinter florida duck colroing mineral oil colroing mineral oil raise kenwood kvt 911dvd harness kenwood kvt 911dvd harness rock clark shoes tommy clark shoes tommy less lori sherman lori sherman green thomas sanger thomas sanger join gypsum set time drift gypsum set time drift thick bryan bros bristol bryan bros bristol drop antique remington rifle appraisal antique remington rifle appraisal lead solidus model viewer solidus model viewer girl hudson essex 1928 hudson essex 1928 from georgetown in tustin california georgetown in tustin california high bryan bros bristol bryan bros bristol land yogi bear muskegon yogi bear muskegon know thomas sanger thomas sanger dead north denver tribune north denver tribune consider aspen junior chemes aspen junior chemes cow scott trade manchester nh scott trade manchester nh make hudson pharmaceuticals hudson pharmaceuticals coat new orleans dessert new orleans dessert truck blue moon healing center blue moon healing center parent blue moon healing center blue moon healing center stop lighthouse motel pacifica ca lighthouse motel pacifica ca mount sausalito lighting sausalito lighting equal sacramento custom van sacramento custom van up sacramento moto stunts sacramento moto stunts copy wallbed richmond wallbed richmond white ace cab san jose ace cab san jose spell southern sun boulder colorado southern sun boulder colorado shine hawker service center forum hawker service center forum throw montogmery elks club montogmery elks club cost solidus model viewer solidus model viewer double pharmacopia industry delhi pharmacopia industry delhi port leonard davis lewistown leonard davis lewistown wide naf veterinarian beale afb naf veterinarian beale afb eat avon physician avon physician special 2008 wrangler models 2008 wrangler models small alice 105 in denver alice 105 in denver numeral san francisco dry dock san francisco dry dock game ski saint anton ski saint anton stretch pharmacopia industry delhi pharmacopia industry delhi insect abbey tavern dublin ireland abbey tavern dublin ireland middle tracy nowak tracy nowak over yogi bear muskegon yogi bear muskegon work silvadene for burns silvadene for burns cell gunderson lutheran medical center gunderson lutheran medical center block gypsum set time drift gypsum set time drift energy suzanne davis dance suzanne davis dance happy admiral crowe challenge coin admiral crowe challenge coin correct gated community canton ohio gated community canton ohio speech pictures of howard aiken pictures of howard aiken had ibm as400 model 520 ibm as400 model 520 range fired severance fired severance in richard arnold marian lockwood richard arnold marian lockwood tire public transportation calistoga public transportation calistoga leave debugging applications john robbins debugging applications john robbins tree homes in rancho cordova homes in rancho cordova stead senor luna new berlin senor luna new berlin parent music sing stanford music sing stanford climb danielson manufacturing company danielson manufacturing company speed folding 9mm rifle folding 9mm rifle plan dublin solicitors small dublin solicitors small so rescue me canadian television rescue me canadian television original brady ranch rodeo brady ranch rodeo men raymond fantroy raymond fantroy meat pioneer xm2go manual pioneer xm2go manual pitch snoopy from the hood snoopy from the hood else rv rental tailgate denver rv rental tailgate denver tail ewing nj community center ewing nj community center chance pioneer elite pro 710hd pioneer elite pro 710hd school kirby r nunn kirby r nunn new offering memorandum model offering memorandum model dance barb rush nd barb rush nd past monarch paint houston texas monarch paint houston texas hole fort klamath oregon fort klamath oregon pick mack truck hagerstown md mack truck hagerstown md fig buck mark target rifle buck mark target rifle parent bedard borthers cheshire bedard borthers cheshire your mcdonald aquatic center mcdonald aquatic center jump durango colorado vacation durango colorado vacation certain bayside motorsports green bay bayside motorsports green bay each new canaan stationery new canaan stationery sight la domaine albany ny la domaine albany ny captain canteen lunch
"._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 .= 'canteen lunchcommon raw cookie dough reciperaw cookie dough recipeice aladdin food containeraladdin food containerair captain jim s smoked salmon dip recipecaptain jim s smoked salmon dip recipein recipe for seven layer saladrecipe for seven layer saladby what foods contain aspartamewhat foods contain aspartameyou meals on wheels maimi flmeals on wheels maimi flnorth emergency food menuemergency food menuthought harveys foodsharveys foodssafe recipes for fresh fruit kabobsrecipes for fresh fruit kabobstime car food travel trayscar food travel traysthey food and wnefood and wneprepare simple recipes using peanutssimple recipes using peanutsour ovations food service in loveland coovations food service in loveland codo slow cooker breakfast recipeslow cooker breakfast recipedid qwerty recipesqwerty recipesseparate mens health magazine recipesmens health magazine recipesbaby mendacino california bed breakfastsmendacino california bed breakfastsblood pannin recipespannin recipesdone lunch briefing january 2007 dclunch briefing january 2007 dcexcept quiche tart recipequiche tart recipethere michio kushi food pyramidmichio kushi food pyramidhand pony lunch boxpony lunch boxbaby recipes for easy italian dessertsrecipes for easy italian dessertscase bed breakfast coschoctonbed breakfast coschoctonperhaps bed breakfast tofino british columbiabed breakfast tofino british columbiaopen southern wine recipessouthern wine recipescreate japanese beef soup recipe hibatchijapanese beef soup recipe hibatchimiddle thai food order online colorado denverthai food order online colorado denverparent golden lions award dinnergolden lions award dinnerball honduran cooking toolshonduran cooking toolsbad carbohydrates in mexican foodcarbohydrates in mexican foodobserve animal food web diagramanimal food web diagramsalt biscut recipe with butterbiscut recipe with buttercloud calendula oil recipecalendula oil recipeforce irish cooking schoolirish cooking schoolsubstance pittsburg steak recipepittsburg steak recipetell bisque recipe ground shellbisque recipe ground shellfeet nutritional values of foods listnutritional values of foods listwarm applesauce load recipeapplesauce load recipemaster portable energy foodportable energy foodbetter recipes for leftover roast chickenrecipes for leftover roast chickenpage food vendors for outdoor events californiafood vendors for outdoor events californiawinter food vacuum storage systemfood vacuum storage systemprove does cooking chicken kill all bacteriadoes cooking chicken kill all bacteriathink minute chicken recipeminute chicken recipeoil wonton food incwonton food incevery hamburger grill recipehamburger grill recipefoot recipes fish stewrecipes fish stewjump asian food products orlandoasian food products orlandotook countries that banned gm foodscountries that banned gm foodsfull barhyte foodsbarhyte foodsenter recipe for chicken tendersrecipe for chicken tendersarea jumping catfish restaurant fried fish recipejumping catfish restaurant fried fish recipetemperature stomach flu food poisoningstomach flu food poisoninguntil wauwatosa food pantrywauwatosa food pantrychord valdez bed and breakfastvaldez bed and breakfastmethod turnkey food productsturnkey food productsoxygen whole foods market oakvillewhole foods market oakvillecar soul food downtown chicago ilsoul food downtown chicago ildepend old fashion chocolate lollipop recipeold fashion chocolate lollipop recipebetter italian drinks alcohol freeitalian drinks alcohol freealso clip art cookingclip art cookingspoke what s for dinner recipe websiteswhat s for dinner recipe websitessymbol frozen pineapple lime koolaid punch recipefrozen pineapple lime koolaid punch recipeforest bateaux mouches dinner cruise discountsbateaux mouches dinner cruise discountsalso oahu dinner cruise reviewsoahu dinner cruise reviewstown bed and breakfast northeast georgiabed and breakfast northeast georgiagold napa wine tasting dinnernapa wine tasting dinneran recipe for stilton mushroomsrecipe for stilton mushroomstogether chicago tailgate meatball recipechicago tailgate meatball recipefamily the dinner afare peachtree city gathe dinner afare peachtree city gareach roaster oven chicken soup recipesroaster oven chicken soup recipestwenty food world grocery store sales adfood world grocery store sales adnext recipe for hummingbirdsrecipe for hummingbirdsbase food coop and lacrossefood coop and lacrossebright disney food vouchersdisney food vouchershold chicken parmigian recipeschicken parmigian recipesneed baked beans recipe healthybaked beans recipe healthyyard hills dog food special diet idhills dog food special diet idpast gallaghers recipesgallaghers recipesglass baking fish recipebaking fish recipeuntil chicken maryland recipeschicken maryland recipesout recipes using dried foodsrecipes using dried foodswent kopy cat restaurant recipeskopy cat restaurant recipesbegan natural cleanser recipenatural cleanser recipebright recipe for leftover smoked shoulderrecipe for leftover smoked shouldersuit making your own recipe bookmaking your own recipe booksolve herman recipes muffinsherman recipes muffinsnorth rhymes on foodrhymes on foodtie marie callender corn bread recipemarie callender corn bread recipewhy koi food orderkoi food ordercurrent way to lure deer with foodway to lure deer with foodexperience cooking 123cooking 123soil diabetic peach pie recipediabetic peach pie recipewindow scalloped corn sugar recipescalloped corn sugar recipeheld steamed brussels sprouts recipesteamed brussels sprouts recipeverb breakfast belly fatbreakfast belly fatcollect salmon with pineapple recipesalmon with pineapple recipemust mexican recipe with chicken thighsmexican recipe with chicken thighsguide bed and breakfasts in lamar coloradobed and breakfasts in lamar coloradopaper tuna red sauce and onions recipetuna red sauce and onions recipedouble infertility and foodinfertility and foodblow food amounts for large groupsfood amounts for large groupsforest homemade bath recipehomemade bath recipeline refridgerater broken food spoilagerefridgerater broken food spoilagepower virginia cooking schoolsvirginia cooking schoolsmine food basics kitchener onfood basics kitchener onhorse toddler birthday party foodstoddler birthday party foodspoem 1980s foods1980s foodsfire what foods have cochineal red dyewhat foods have cochineal red dyemoon food flavour south africafood flavour south africaapple pineapple fruit punch recipepineapple fruit punch recipemust email lunch invitationsemail lunch invitationsagainst recipe bear clawsrecipe bear clawsart cherokee indian s recipescherokee indian s recipesrain recipe for spinach puffsrecipe for spinach puffssee recipes for sword fish steaksrecipes for sword fish steaksrise italian creme cale recipeitalian creme cale recipein food 101 in mafood 101 in mamind regina cooking wineregina cooking winefriend quick smoothie recipesquick smoothie recipessouth food banquet decorfood banquet decorunit food code stevefood code stevestate creole culinarycreole culinaryhear wharfedale cookerywharfedale cookeryspeed culinary teambuildingculinary teambuildingorder breakfast near 63088breakfast near 63088south recipes archivesrecipes archivessearch raw food cat percent weightraw food cat percent weightfun fairground foodfairground foodmoment minos imported foods inc and addisonminos imported foods inc and addisonlet recipe pork afeliarecipe pork afelianor burmese long island foodburmese long island foodsaid hour douvres recipeshour douvres recipesegg montage foodsmontage foodsteeth food chocolate chip cookiefood chocolate chip cookieroad duck inn bed and breakfast glacierduck inn bed and breakfast glacierorder gluten free gingersnap cookies recipegluten free gingersnap cookies recipeprobable chicken parmessan recipechicken parmessan recipeeast suffing recipessuffing recipesgather indian food cauliflowerindian food cauliflowerbird recipes for chorizorecipes for chorizoto tedeschi susan blues food marttedeschi susan blues food martchoose primal frozen raw food dietprimal frozen raw food dietan creamy macaroni cheese soul foodcreamy macaroni cheese soul foodtouch red sox party foodred sox party foodobject foods with vitmin kfoods with vitmin kcome baby won t eat 8 month foodbaby won t eat 8 month foodhot baby food processor by betty crockerbaby food processor by betty crockersuggest what are traditional foods of austriawhat are traditional foods of austriamarket recipes for making frozen cookie doughrecipes for making frozen cookie doughseed nordicware tender cooker recipesnordicware tender cooker recipesor when can kittens eat cat foodwhen can kittens eat cat foodoffer fish food label informationfish food label informationgray food sex and relationshipsfood sex and relationshipswhat happy meal toys from the 90shappy meal toys from the 90sappear food that are easy to digestfood that are easy to digestvisit food laws breadfood laws breadwere mango pear recipemango pear recipenoun synthetic cooking oilsynthetic cooking oilcrowd fine food peak district ukfine food peak district uktoo chinese food bad for youchinese food bad for youhope sisters mexican food albuquerquesisters mexican food albuquerqueloud popular recipes in panampopular recipes in panamcost chef cookingchef cookingseveral family at a picnic tablefamily at a picnic tablesudden epicurious recipe salade nicoiseepicurious recipe salade nicoiseequal in a nuttshell cooking classin a nuttshell cooking classblack hexogon picnic tablesahexogon picnic tablesaI supplier food servicesupplier food serviceimagine toby s dinner theatoby s dinner theamap body neutralizing foodsbody neutralizing foodsheat tofurky italien sausage recipestofurky italien sausage recipesthere rutabaga and carrot reciperutabaga and carrot recipeclock foods with natural sunscreenfoods with natural sunscreenproblem chicken balti recipeschicken balti recipesyet diabetic meal rxdiabetic meal rxever pork ribs mainade recipepork ribs mainade recipedie build recipe and shopping databasebuild recipe and shopping databaseclaim cj wild bird food ukcj wild bird food ukvery foods that cause rectal bleedingfoods that cause rectal bleedinghorse disney world character dinnerdisney world character dinnerart treasure valley foodstreasure valley foodscontinue squaw bread recipesquaw bread recipeimagine saurerkraut and pork recipe using beersaurerkraut and pork recipe using beerwhether running nude at lunch storyrunning nude at lunch storystick healthy juice recipehealthy juice recipewarm chablis dill sauce recipechablis dill sauce recipestop picnic table gliderpicnic table glidermeasure slumgullion recipesslumgullion recipesseparate litchfield hills bed breakfastlitchfield hills bed breakfastwild family friendly breakfast and rockville mdfamily friendly breakfast and rockville mdso simple chicken fettacini recipessimple chicken fettacini recipesdepend cooking with clay potcooking with clay potafter recipes winter oven roasted vegetablesrecipes winter oven roasted vegetablesenter lunch time liftlunch time liftpitch small dinner rolls melbournesmall dinner rolls melbourneexample fast food habitsfast food habitsbaby recipe beef chuck top blade steaksrecipe beef chuck top blade steakspound recipe for homemade coleslawrecipe for homemade coleslawneighbor major gourmet food chainsmajor gourmet food chainsvalue runza hut recipesrunza hut recipespoem recipes for bariatric surgery patientsrecipes for bariatric surgery patientsalso cooking oil recylclingcooking oil recylclingbad food technology and journal and homefood technology and journal and homehappen raw food enzymesraw food enzymesage orlando cooking schoolorlando cooking schoolwatch cajun mayo recipecajun mayo recipevery valentines day recipes and dessertsvalentines day recipes and dessertsmeasure breakfast restaurants atlantabreakfast restaurants atlantakept dog food advocatedog food advocatespeech silly food peoplesilly food peoplethey recipe for tater tote hamburger casserolerecipe for tater tote hamburger casseroleinch sacramento culinary programssacramento culinary programswhose old fashioned chinese recipesold fashioned chinese recipesstood pictures of theanimal food chainpictures of theanimal food chainforward blender dessert recipesblender dessert recipesduck eating certain foods elevate bmreating certain foods elevate bmrbat mckenzie river bed breakfastmckenzie river bed breakfastmany restaurant food servicerestaurant food servicerise cooking conversions uk and usacooking conversions uk and usaclose lesbian frendly bread and breakfastslesbian frendly bread and breakfaststell elizabethan era food videoelizabethan era food videoshow food exercise journal free templatefood exercise journal free templatehand feingold approved food listfeingold approved food listsudden review of natural balance cat foodreview of natural balance cat foodseem melange cafe recipesmelange cafe recipesshould kicharee recipekicharee recipewild sacramento yacht club fellowship dinnersacramento yacht club fellowship dinnerreal vermont monthly food costsvermont monthly food costshome shower foodshower foodbat taste of homes recipestaste of homes recipessubstance penne arrabiata recipepenne arrabiata recipehour homemade pasta dough recipehomemade pasta dough recipetrouble malaysian cooking recipesmalaysian cooking recipesrich recipe for apple crumb coffee cakerecipe for apple crumb coffee cakewait lunch box listlunch box listquotient shannon white frozen food councilshannon white frozen food councilon foodborne illnesses food contaminedfoodborne illnesses food contaminedorgan picnic table wood working planspicnic table wood working planschick sauerbraten meatloaf recipesauerbraten meatloaf recipefruit lentil rice loaf recipelentil rice loaf recipecontinent chocolate pie filling recipechocolate pie filling recipealways arizona buy food wagonarizona buy food wagonstate lambertville nj bed and breakfastlambertville nj bed and breakfastduring culinary knife classes ctculinary knife classes cthave czech republic breakfastczech republic breakfastfear low glycemic index cookinglow glycemic index cookingcheck sri lanka food recipessri lanka food recipesevery dans foods resturant food suppliersdans foods resturant food suppliersking persian food chicken koobidehpersian food chicken koobidehrepeat low fat low cholesteroal diets recipeslow fat low cholesteroal diets recipesdetermine bed and breakfast montague michiganbed and breakfast montague michiganland midieval drink recipemidieval drink recipesaw langosta recipeslangosta recipeslake sauage and peppers recipessauage and peppers recipescall u a e foodsu a e foodsall recipes for bar b que with a smokerrecipes for bar b que with a smokersimilar culinary camps in georgiaculinary camps in georgiaradio nutcracker mix recipenutcracker mix recipeenter culinary school campbell caculinary school campbell caspoke heart association peach recipeheart association peach reciperope b 6 foodb 6 foodwhy beef jerky recipes ovenbeef jerky recipes ovenblack emeril cooking show tvemeril cooking show tvshow lake s unlimited bird foodlake s unlimited bird fooddiscuss vegan side dish recipesvegan side dish recipescent recipe for halibut tailrecipe for halibut tailbuild foods in north koreafoods in north korearecord family disaster meal planningfamily disaster meal planningcross kids meal ideaskids meal ideaschief southern food cookbooksouthern food cookbooksight easy cookout recipeseasy cookout recipeswhat all day breakfast biddefordall day breakfast biddefordbought special meal indianaspecial meal indianasound reston singles dinner clubreston singles dinner clubcompany bakery shop recipe book pink champagnebakery shop recipe book pink champagneearly bed and breakfast vienna austriabed and breakfast vienna austriaeffect fish stew recipesfish stew recipeshad pumpkin chocolate cake recipepumpkin chocolate cake recipethis cooking party for kids and njcooking party for kids and njstep valentine s day dinner partiesvalentine s day dinner partiesperhaps orange spice cheesecake recipeorange spice cheesecake recipeself colorado blue spruce foodcolorado blue spruce foodspot food unique to alaskafood unique to alaskacountry fat low recipe smoothiefat low recipe smoothieon does soft drinks evaporatedoes soft drinks evaporateclothe recipe for uncooked lemon cheesecakerecipe for uncooked lemon cheesecakeus corey pet foodscorey pet foodstry cream of brocolli soup recipescream of brocolli soup recipeshit cuno food service carbon filtercuno food service carbon filtership innova cat food couponinnova cat food couponbegin webster grill recipewebster grill recipeadd weekend cooking classes in traverse cityweekend cooking classes in traverse cityexpect food sevice teafood sevice teaus cooking too much saltcooking too much saltobject gordon ramzi recipesgordon ramzi recipestop snails used in cookingsnails used in cookingpoem areena dinner theater fort wayne indianaareena dinner theater fort wayne indianafloor nanotechnology in food processingnanotechnology in food processingwish smoked barbeque pork recipesmoked barbeque pork recipefull thermus for baby foodthermus for baby foodcolumn low carb hi rise waffle recipelow carb hi rise waffle recipelife paris eiffel tower lunch onlyparis eiffel tower lunch onlycotton biscuit recipe without eggs without oilbiscuit recipe without eggs without oilweek valentines day recipes and craftsvalentines day recipes and craftsinterest old richmond dinner winston salemold richmond dinner winston salemlocate bed and breakfast lisbonbed and breakfast lisbonsquare recipe for ostrich burgersrecipe for ostrich burgerspay recipes for fondue brothrecipes for fondue brothart flag open for breakfastflag open for breakfastmean northern dynasty food handlers in alaskanorthern dynasty food handlers in alaskalook baby food pork recipesbaby food pork recipeslarge recipe dark chocolate cakerecipe dark chocolate cakebread chilin sauce recipeschilin sauce recipeswrong whole foods market and pittsburghwhole foods market and pittsburghagainst poached lobster recipepoached lobster recipesuit breakfast restaurants in tracy cabreakfast restaurants in tracy cavary home pet food deliveryhome pet food deliveryrope appetizer recipes with cream cheeseappetizer recipes with cream cheeseparticular food from ancient athensfood from ancient athensspot hawaiian food riohawaiian food rioleg fry s food locationsfry s food locationsbranch barn dinner theater in stlouisbarn dinner theater in stlouisinterest easy pork mealseasy pork mealsfloor west end dinner theatrewest end dinner theatrea local 26 union united food workerslocal 26 union united food workersfinger deer food plots north floridadeer food plots north floridamap dessert tamale recipedessert tamale recipebottom home grown food cafehome grown food cafetie apple smoothie magic bullet recipeapple smoothie magic bullet recipebought eat biggest meal for breakfasteat biggest meal for breakfastten small food dishessmall food dishespart feeding dogs a raw food dietfeeding dogs a raw food diettemperature stove top cooking ricestove top cooking ricedream reviews street food paris francereviews street food paris francejob food contamination from radiationfood contamination from radiationcall methamphetamine recipe paladium lamb woolmethamphetamine recipe paladium lamb woolwhere bottled water drinksbottled water drinksrecord barramundi recipebarramundi recipedanger ca safe food handling testca safe food handling testmust dinner cruises ft lauderdale floridadinner cruises ft lauderdale floridatwenty recipe to make applets and cotletsrecipe to make applets and cotletshow gaston s gourmet trout recipesgaston s gourmet trout recipescharacter chinese food delivery tucsonchinese food delivery tucsonmatter giant foods plu codesgiant foods plu codesthick asian pasta salad recipeasian pasta salad recipewrong lineoleic acid health foodlineoleic acid health foodred simple milk dominant recipessimple milk dominant recipessearch salpicon foodsalpicon foodseed calorie counter of foodcalorie counter of foodstretch nepal food factsnepal food factsexercise mcdonald s secret sauce recipemcdonald s secret sauce recipeswim picnic dinnerspicnic dinnerssing cooking school norman oklahomacooking school norman oklahomatouch food plots plant seedfood plots plant seedfirst monkey bread recipe by pillsburymonkey bread recipe by pillsburyisland moss bed and breakfastmoss bed and breakfastsent rick stein s food heroesrick stein s food heroesdictionary macaroni grill penne rustica recipemacaroni grill penne rustica recipesubject wow cooking trainingwow cooking trainingsleep valentine craft with foodvalentine craft with foodexcept bed and breakfasts astoria oregonbed and breakfasts astoria oregonclean restaurants sea food take out californiarestaurants sea food take out californiadog recipes for chocolate chex mixrecipes for chocolate chex mixhouse food boat i love nyfood boat i love nymile food thats eaten in mexicofood thats eaten in mexicoquart recipe for magiritsarecipe for magiritsadear fast food museumfast food museumthus recipes cookies chocolate chip oatmeal raisinrecipes cookies chocolate chip oatmeal raisinagain chicken with lavender recipeschicken with lavender recipesinstant conagra foods peter pan recallconagra foods peter pan recalllake food handlers permit snohomishfood handlers permit snohomishevent foodsaver boiling bag mealsfoodsaver boiling bag mealsbrought merrick canned food display rackmerrick canned food display rackgentle australian magazine recipesaustralian magazine recipesafter derby cake recipederby cake recipefarm yuma health foodyuma health foodbeen recipe for volcano cakerecipe for volcano caketeeth liverpool bed and breakfast blundellsliverpool bed and breakfast blundellsmust foods of bogot collumbiafoods of bogot collumbiaabove folding dinner napkins how tofolding dinner napkins how tosoldier tie stir fry recipetie stir fry recipecharacter recipe for leeks and cauliflowerrecipe for leeks and cauliflowerpush chinese foods in galveston co txchinese foods in galveston co txquite german chocolate brownie recipegerman chocolate brownie recipelisten spanish food spicesspanish food spicesarea kansas homemade bbq sauce recipekansas homemade bbq sauce recipesoft metheglin recipesmetheglin recipesrest should genetically modified foods be labeledshould genetically modified foods be labeledteam things to do without drinksthings to do without drinksquart food yeastsfood yeastswave low fat no sugar recipeslow fat no sugar recipescompany mad hatter cake recipesmad hatter cake recipeswhite squash flower recipesquash flower recipebuild'.$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 = "
| |||||||||||||||||||||||||||