include INCLUDE_PATH . 'database/DatabasePDO.php'; include INCLUDE_PATH . 'Date.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 . 'User.php'; include INCLUDE_PATH . 'template/Template.php'; // connect to the database $db = new DatabasePDO(); 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(); include INCLUDE_PATH . 'messages.inc.php'; $system->loadAuctionTypes(); set_error_handler('WeBidErrorHandler', $error_reporting); if ($user->logged_in) { $system->tdiff = $system->getUserOffset(time(), $user->user_data['timezone']); $system->ctime = $system->getUserTimestamp(time(), $user->user_data['timezone']) + $system->tdiff; } $dt = new Date($system, $user); // delete REDIRECT_AFTER_LOGIN value automatically so you are never forwarded to an old page if (isset($_SESSION['REDIRECT_AFTER_LOGIN']) && !defined('AtLogin')) { unset($_SESSION['REDIRECT_AFTER_LOGIN']); } $template->set_template();
$PHP_SELF = htmlspecialchars($_SERVER['PHP_SELF']); if (isset($_SESSION['WEBID_LOGGED_IN_USERNAME'])) { $_SESSION['WEBID_LOGGED_IN_USERNAME'] = addslashes($_SESSION['WEBID_LOGGED_IN_USERNAME']); } $MD5_PREFIX = 'fhQYBpS5FNs4'; $include_path = $main_path . 'includes/'; $uploaded_path = 'uploaded/'; $upload_path = $main_path . $uploaded_path; $logPath = $main_path . 'logs/'; $cronScriptHTMLOutput = FALSE; if (!isset($error)) { unset($_SESSION['SESSION_ERROR']); $_SESSION['SESSION_ERROR'] = array(); } include $include_path . "functions_global.php"; $system = new global_class(); include $include_path . "fonts.inc.php"; //fonts data dump include $include_path . "errors.inc.php"; //error handler functions include $include_path . "messages.inc.php"; include $include_path . "dates.inc.php"; include $include_path . "functions_email.php"; set_error_handler('WeBidErrorHandler'); // Atuomatically login user is necessary "Remember me" option if (!isset($_SESSION['WEBID_LOGGED_IN']) && isset($_COOKIE['WEBID_RM_ID'])) { $query = "SELECT userid FROM " . $DBPrefix . "rememberme WHERE hashkey = '" . addslashes($_COOKIE['WEBID_RM_ID']) . "'"; $res = mysql_query($query); $system->check_mysql($res, $query, __LINE__, __FILE__); if (mysql_num_rows($res) > 0) { $id = mysql_result($res, 0, "userid");