Поставил движок и там Технические работы! Как убрать помогите
0: <?php
1:
2: $user_id = false;
3: $user = false;
4: $arr_user = false;
5:
6: if (!empty($_POST['auth_login']) && !empty($_POST['auth_pass']))
7: {
8: $auth_login = check($_POST['auth_login']);
9: $auth_pass = md5(md5(check($_POST['auth_pass'])));
10:
11: $result1 = mysql_query("SELECT * FROM `users` WHERE `login` = '".$auth_login."' AND `pass` = '".$auth_pass."' LIMIT 1"
12: if (mysql_num_rows($result1) == true)
13: {
14: $user = mysql_fetch_array($result1);
15: $user_id = $user['id'];
16: setcookie('uid', $user_id, time()+86400*365, '/');
17: setcookie('upass', $auth_pass, time()+86400*365, '/');
18:
19: mysql_query("UPDATE `users` SET `online` = 1, `visit` = '".time()."' WHERE `id` = '".$user_id."' AND `pass` = '".$user['pass']."' LIMIT 1"
20:
21: go(URL.'/user/?id='.$user_id.'');
22: } elseif (mysql_result(mysql_query("SELECT COUNT(*) FROM `users_new` WHERE `login` = '".$auth_login."' AND `pass` = '".$auth_pass."' LIMIT 1",0) == true)
23: {
24: $q = mysql_fetch_array(mysql_query("SELECT * FROM `users_new` WHERE `login` = '".$auth_login."' AND `pass` = '".$auth_pass."' LIMIT 1");
25:
26: if (mysql_query("INSERT INTO `users` SET
27: `login` = '".$q['login']."',
28: `mail` = '".$q['mail']."',
29: `pass` = '".$q['pass']."',
30: `regtime` = '".time()."'
31: " == true)
32: {
33: mysql_query("DELETE FROM `users_new` WHERE `login` = '".$auth_login."' AND `pass` = '".$auth_pass."' LIMIT 1"
34:
35: $u = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `login` = '".$auth_login."' AND `pass` = '".$auth_pass."' LIMIT 1");
36: $user_id = $u['id'];
37: setcookie('uid', $user_id, time()+86400*365, '/');
38: setcookie('upass', $auth_pass, time()+86400*365, '/');
39:
40: mysql_query("UPDATE `users` SET `online` = 1, `visit` = '".time()."' WHERE `id` = '".$user_id."' AND `pass` = '".$auth_pass."' LIMIT 1"
41: go(URL.'/user/city.php'); exit;
42: }
43: }
44: else
45: {
46: setcookie('uid', '', time() - 86400*31);
47: setcookie('upass', '', time() - 86400*31);
48: }
49: }
50:
51: if (!empty($_COOKIE['uid']) && !empty($_COOKIE['upass']))
52: {
53: $uid = abs(intval($_COOKIE['uid']));
54: $upass = check($_COOKIE['upass']);
55: if (mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `id` = '".$uid."' AND `pass` = '".$upass."' LIMIT 1",0) == true)
56: {
57: $user = mysql_fetch_array(mysql_query("SELECT * FROM `users` WHERE `id` = '".abs(intval($_COOKIE['uid']))."' AND `pass` = '".check($_COOKIE['upass'])."' LIMIT 1");
58: $user_id = $user['id'];
59:
60: mysql_query("UPDATE `users` SET `online` = 1, `visit` = '".time()."' WHERE `id` = '".$user_id."' AND `pass` = '".$upass."' LIMIT 1"
61: }
62: else
63: {
64: setcookie('uid', '', time() - 86400*31);
65: setcookie('upass', '', time() - 86400*31);
66: }
67: }
68:
69: if (mysql_result(mysql_query("SELECT COUNT(*) FROM `users` WHERE `visit` < '".(time() - 600)."' AND `online` = '1'",0) == true)
70: {
71: mysql_query("UPDATE `users` SET `online` = 0 WHERE `visit` < '".(time() - 600)."' AND `online` = '1'"
72: }
73:
74: if ($jquery == false)
75: {
76: $stop = false;
77: if ($system['dostup'] == 2 && empty($user_id)) $stop = true;
78: else if ($system['dostup'] == 3 && $user['level'] < 1) $stop = true;
79: else if ($system['dostup'] == 4 && $user['level'] != 1) $stop = true;
80: if ($stop == true)
81: {
82: die('<!DOCTYPE html>
83: <html lang="ru">
84: <head>
85: <meta charset="utf-8">
86: <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=1">
87: <link rel="stylesheet" href="'.URL.'/design/style.css" type="text/css"/>
88: <title>Технические работы!</title>
89: </head>
90: <body>
91: <div class="content" style="margin:auto;"><div class="title">Технические работы!</div><div class="block">Упс...<br/>Зайди позже =)</div></div>
92: </body>
93: </html>');
94: }
95:
96: if ($user['ban'] == 1)
97: {
98: die('<!DOCTYPE html>
99: <html lang="ru">
100: <head>
101: <meta charset="utf-8">
102: <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=1">
103: <link rel="stylesheet" href="'.URL.'/design/style.css" type="text/css"/>
104: <title>Технические работы!</title>
105: </head>
106: <body>
107: <div class="content" style="margin:auto;"><div class="title">Бан</div><div class="block">Ваша страница заблокирована администрацієй сайта!</div></div>
108: </body>
109: </html>');
110: }
111: }
112:
113: ?>
Это весь код файла (я так понимаю index.php)?
imob, возможнл, я в код не вникал, лишь пробегал глазами.
Я в коде не нашел определение $system, поэтому
80: if ($stop == true) замените true на false