Example #1
0
$include_path = $main_path . 'includes/';
$uploaded_path = 'uploaded/';
$upload_path = $main_path . $uploaded_path;
include $include_path . 'errors.inc.php';
//error handler functions
include $include_path . 'dates.inc.php';
// classes
include $include_path . 'class_db_handle.php';
include $include_path . 'functions_global.php';
include $include_path . 'class_email_handler.php';
include $include_path . 'class_MPTTcategories.php';
include $include_path . 'class_fees.php';
include $include_path . 'class_user.php';
include $include_path . 'template.php';
// connect to the database
$db = new db_handle();
if (isset($CHARSET)) {
    $db->connect($DbHost, $DbUser, $DbPassword, $DbDatabase, $DBPrefix, $CHARSET);
} else {
    $db->connect($DbHost, $DbUser, $DbPassword, $DbDatabase, $DBPrefix);
}
$system = new global_class();
$template = new template();
$user = new user();
set_error_handler('WeBidErrorHandler', $error_reporting);
include $include_path . 'messages.inc.php';
// add auction types
$system->SETTINGS['auction_types'] = array(1 => $MSG['1021'], 2 => $MSG['1020']);
// Atuomatically login user is necessary "Remember me" option
if (!$user->logged_in && isset($_COOKIE['WEBID_RM_ID'])) {
    $query = "SELECT userid FROM " . $DBPrefix . "rememberme WHERE hashkey = :RM_ID";
Example #2
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.
 ***************************************************************************/
$step = isset($_GET['step']) ? $_GET['step'] : 0;
if ($step != 3) {
    session_start();
}
define('InWeBid', 1);
include 'functions.php';
include '../includes/class_db_handle.php';
define('InInstaller', 1);
$db = new db_handle();
$main_path = getmainpath();
/*
how new updater will work
in package config.inc.php will be named config.inc.php.new so it cannot be overwritten
1. check for config.inc.php
2. if config file missing ask for details
3. with database details check theres actually an installation of webid if not show link to make fresh install
	- if there is but no config write config file
4. collect query needed to run for version in use
5. update language files
*/
if ($step == 0) {
    if (!file_exists($main_path . 'includes/config.inc.php')) {
        $thisversion = this_version();
        $myversion = check_version();
Example #3
0
 *   copyright				: (C) 2008 - 2016 WeBid
 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   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 = this_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);