Esempio n. 1
0
$query[] = "INSERT INTO `" . $DBPrefix . "settings` VALUES ('smtp_security', 'str', 'none', UNIX_TIMESTAMP(), 1);";
$query[] = "INSERT INTO `" . $DBPrefix . "settings` VALUES ('smtp_username', 'str', '', UNIX_TIMESTAMP(), 1);";
$query[] = "INSERT INTO `" . $DBPrefix . "settings` VALUES ('spam_register', 'int', '1', UNIX_TIMESTAMP(), 1);";
$query[] = "INSERT INTO `" . $DBPrefix . "settings` VALUES ('spam_sendtofriend', 'int', '1', UNIX_TIMESTAMP(), 1);";
$query[] = "INSERT INTO `" . $DBPrefix . "settings` VALUES ('subtitle', 'bool', 'y', UNIX_TIMESTAMP(), 1);";
$query[] = "INSERT INTO `" . $DBPrefix . "settings` VALUES ('tax', 'bool', 'n', UNIX_TIMESTAMP(), 1);";
$query[] = "INSERT INTO `" . $DBPrefix . "settings` VALUES ('taxuser', 'bool', 'n', UNIX_TIMESTAMP(), 1);";
$query[] = "INSERT INTO `" . $DBPrefix . "settings` VALUES ('terms', 'bool', 'y', UNIX_TIMESTAMP(), 1);";
$query[] = "INSERT INTO `" . $DBPrefix . "settings` VALUES ('termstext', 'str', '', UNIX_TIMESTAMP(), 1);";
$query[] = "INSERT INTO `" . $DBPrefix . "settings` VALUES ('theme', 'str', 'classic', UNIX_TIMESTAMP(), 1);";
$query[] = "INSERT INTO `" . $DBPrefix . "settings` VALUES ('thumb_list', 'int', '120', UNIX_TIMESTAMP(), 1);";
$query[] = "INSERT INTO `" . $DBPrefix . "settings` VALUES ('thumb_show', 'int', '120', UNIX_TIMESTAMP(), 1);";
$query[] = "INSERT INTO `" . $DBPrefix . "settings` VALUES ('timecorrection', 'str', '0', UNIX_TIMESTAMP(), 1);";
$query[] = "INSERT INTO `" . $DBPrefix . "settings` VALUES ('users_email', 'bool', 'y', UNIX_TIMESTAMP(), 1);";
$query[] = "INSERT INTO `" . $DBPrefix . "settings` VALUES ('usersauth', 'bool', 'y', UNIX_TIMESTAMP(), 1);";
$query[] = "INSERT INTO `" . $DBPrefix . "settings` VALUES ('version', 'str', '" . package_version() . "', UNIX_TIMESTAMP(), 1);";
$query[] = "INSERT INTO `" . $DBPrefix . "settings` VALUES ('wordsfilter', 'bool', 'y', UNIX_TIMESTAMP(), 1);";
$query[] = "INSERT INTO `" . $DBPrefix . "settings` VALUES ('worldpay_sandbox', 'int', '0', UNIX_TIMESTAMP(), 1);";
# ############################
#
# Table structure for table `" . $DBPrefix . "statssettings`
#
$query[] = "DROP TABLE IF EXISTS `" . $DBPrefix . "statssettings`;";
$query[] = "CREATE TABLE `" . $DBPrefix . "statssettings` (\n  `activate` enum('y','n') NOT NULL default 'y',\n  `accesses` enum('y','n') NOT NULL default 'y',\n  `browsers` enum('y','n') NOT NULL default 'y',\n  `domains` enum('y','n') NOT NULL default 'y'\n) ;";
#
# Dumping data for table `" . $DBPrefix . "statssettings`
#
$query[] = "INSERT INTO `" . $DBPrefix . "statssettings` VALUES ('y', 'y', 'y', 'y');";
# ############################
#
# Table structure for table `" . $DBPrefix . "tax`
Esempio n. 2
0
        $db->direct_query($query[$i]);
        echo '<b>' . $query[$i] . '</b><br>';
    }
    if (file_exists('scripts/' . $new_version . '.php')) {
        include 'scripts/' . $new_version . '.php';
    }
    if ($installed_version == $package_version) {
        echo 'Complete, now to <b><a href="?step=3">step 3</a></b>';
    } else {
        echo '<script type="text/javascript">window.location = "?step=2";</script>';
        echo '<noscript>Javascript is disabled please <a href="?step=2">refresh the page</a></noscript>';
    }
}
if ($step == 3) {
    $check = check_installation();
    $package_version = package_version();
    $installed_version = check_version();
    if (!$check) {
        echo print_header(true);
        echo '<p>It seems you don\'t currently have a version of WeBid installed we recommend you do a <b><a href="install.php">fresh install</a></b></p>';
        exit;
    }
    include $main_path . 'common.php';
    echo print_header(true);
    include $include_path . 'functions_rebuild.inc.php';
    echo '<p>Rebuilding membertypes...</p>';
    rebuild_table_file('membertypes');
    echo '<p>Rebuilding countries...</p>';
    rebuild_html_file('countries');
    echo '<p>Rebuilding categories...</p>';
    $catscontrol = new MPTTcategories();
Esempio n. 3
0
 ***************************************************************************/
/***************************************************************************
 *   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. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
session_start();
define('InWeBid', 1);
include 'functions.php';
include '../includes/class_db_handle.php';
define('InInstaller', 1);
$db = new db_handle();
$main_path = getmainpath();
$thisversion = package_version();
echo print_header(false);
$step = isset($_GET['step']) ? $_GET['step'] : 0;
switch ($step) {
    case 2:
        $siteURL = urldecode($_GET['URL']);
        $siteEmail = $_GET['EMail'];
        include '../includes/config.inc.php';
        include 'sql/dump.inc.php';
        $queries = count($query);
        $db->connect($DbHost, $DbUser, $DbPassword, $DbDatabase, $DBPrefix);
        echo $_GET['n'] * 25 . '% Complete<br>';
        $from = isset($_GET['from']) ? $_GET['from'] : 0;
        $fourth = floor($queries / 4);
        $to = $_GET['n'] == 4 ? $queries : $fourth * $_GET['n'];
        for ($i = $from; $i < $to; $i++) {