[ Поиск ] - [ Пользователи ] - [ Календарь ]
Полная Версия: Не открывается сайт,пишет ошибку
aleks870
Не открывается сайт,пишет такую ошибку:
Fatal error: Call to a member function connect() on a non-object in /home/users1/w/wye-solution/domains/мой сайт/index.php on line 28
Вот сам файл:
<?php

@
ob_start();
@session_start();
error_reporting(E_ALL);
ini_set('error_reporting', E_ALL);
ini_set('display_errors', TRUE);
ini_set('html_errors', FALSE);
date_default_timezone_set('Europe/Moscow');
header('Content-Type: text/html; Charset=UTF-8');
define('DIR', dirname(__FILE__));
define('ENGINE', DIR . '/engine');
define('DATA', ENGINE . '/data');
define('CLASSES', ENGINE . '/classes');
define('MODULES', ENGINE . '/modules');
define('COMPONENTS', ENGINE . '/components');
define('SCRIN', true);
include ENGINE . '/config.php';
include CLASSES . '/mysqli.php';
include CLASSES . '/functions.php';
include DATA . '/config.php';
$func = null;
$mcache = null;
$mcache->connect('localhost', 11211);
$time = null;

if (!empty($_GET['ref'])) {
$ref_id = null;
$check_ref = null;

if (!empty($check_ref['user_id'])) {
$referer = null;
SetCookie('referer', $referer, time() + (7 * 24 * 3600));
}
}


$add_money = null;

while ($add_m = null) {
$de_id = null;
$dep_sum = $add_m['dep_sum'] * $add_m['dep_x'];
$us_id = null;

if ($add_m['dep_system'] == 'pm') {
$db->query('UPDATE `users` SET `user_money_p`=user_money_p+\'' . $dep_sum . '\' WHERE `user_id`=\'' . $us_id . '\'');
} else {
$db->query('UPDATE `users` SET `user_money_l`=user_money_l+\'' . $dep_sum . '\' WHERE `user_id`=\'' . $us_id . '\'');
}

$db->query('UPDATE `dep_us` SET `dep_end`=\'1111111111\' WHERE `de_us`=\'' . $de_id . '\'');
$db->query('UPDATE `stat` SET `info`=info-\'1\' WHERE `st_id`=\'4\'');
$db->query('UPDATE `stat` SET `info`=info+\'1\' WHERE `st_id`=\'5\'');
}

if (!empty($GLOBALS['_SESSION']['user_id'])) {
$user_info = $mcache;
$user_email = null;

if (empty($user_info['user_id'])) {
exit('Такого пользователя не существует!');
}

$user_id = null;
$user_pm = $ref_id;
$user_money_p = null;
$user_money_l = 'SELECT `user_id` FROM `users` WHERE `user_id`=\'' . $ref_id . '\'';
$user_login = $check_ref;

if ($user_id == $admin_id) {
$user_status = 536;
} else {
$user_status = 537;
}
}
else {
$user_status = 535;
}

$page = (!empty($_GET['page']) ? $_GET['page'] : 'index');
include COMPONENTS . '/page.php';
$content = $add_money;
ob_end_clean();
include DIR . '/tpl/header.php';
echo $content;
include DIR . '/tpl/footer.php';
?>

Помогите разобратся,где ошибки?
Быстрый ответ:

 Графические смайлики |  Показывать подпись
Здесь расположена полная версия этой страницы.
Invision Power Board © 2001-2024 Invision Power Services, Inc.