Обучение/Помощь новичкам | Ошибка [И]
Где здесь ошибка [на криншоте ]
А вот что мне пишет на стр...
Parse error: syntax error, unexpected end of file in /home/usr/data/skynett/public_html/sys/inc/thead.php on line 124
А вот что мне пишет на стр...
Parse error: syntax error, unexpected end of file in /home/usr/data/skynett/public_html/sys/inc/thead.php on line 124
DELETED
29 января 2016, в 22:07
Delete
RUSFAK17 (29.01.2016 в 22:01)
Где здесь ошибка [на криншоте ]
А вот что мне пишет на стр...
Parse error: syntax error, unexpected end of file in /home/usr/data/skynett/public_html/sys/inc/thead.php on line 124
Где здесь ошибка [на криншоте ]
А вот что мне пишет на стр...
Parse error: syntax error, unexpected end of file in /home/usr/data/skynett/public_html/sys/inc/thead.php on line 124
Ошибка unexpected end of file в основном обозначает, что где-то нет скобки }
DELETED
29 января 2016, в 22:08
Delete
Но его так и не закрываешь в конце
DELETED
29 января 2016, в 22:10
Delete
RezzidenT (29.01.2016 в 22:08)
RUSFAK17 , со строки 123 убери ?> и вставь его в строку 125
RUSFAK17 , со строки 123 убери ?> и вставь его в строку 125
у него тогда html тег в php код заскочит
DELETED
29 января 2016, в 22:12
Delete
RUSFAK17 (29.01.2016 в 22:01)
Где здесь ошибка [на криншоте ]
А вот что мне пишет на стр...
Parse error: syntax error, unexpected end of file in /home/usr/data/skynett/public_html/sys/inc/thead.php on line 124
Где здесь ошибка [на криншоте ]
А вот что мне пишет на стр...
Parse error: syntax error, unexpected end of file in /home/usr/data/skynett/public_html/sys/inc/thead.php on line 124
закрой }
________
посл. ред. 29.01.2016 в 22:13; всего 1 раз(а); by Вилы_Выкидные
Вилы_Выкидные , ага, протупил. Показалось что у него только в начале <? и в конце страницы...
RezzidenT , вот что пишет Parse error: syntax error, unexpected
DELETED
29 января 2016, в 22:15
Delete
RezzidenT (29.01.2016 в 22:13)
Вилы_Выкидные , ага, протупил. Показалось что у него только в начале <? и в конце страницы...
Вилы_Выкидные , ага, протупил. Показалось что у него только в начале <? и в конце страницы...
у него открыто два условия на рандом но закрыто одно нужна ещё одна }
unexpected end of file обычно на это и указывает
RUSFAK17 , верни как было, я не правильно написал
Вилы_Выкидные , где
_once H.'sys/inc/shif.php';
80 if (mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `id` = '".intval($_GET['id_users'])."' AND `pass` = '".shif($_GET['password'])."' LIMIT 1"), 0)==1){
81 $user = get_user($_GET['id_users']);
82 $_SESSION['id_user'] = $user['id'];
83 mysql_query("UPDATE `user` SET `date_aut` = ".time()." WHERE `id` = '$user[id]' LIMIT 1");
84 mysql_query("UPDATE `user` SET `date_last` = ".time()." WHERE `id` = '$user[id]' LIMIT 1");
85 mysql_query("INSERT INTO `user_log` (`id_user`, `time`, `ua`, `ip`, `method`) values('$user[id]', '$time', '$user[ua]' , '$user[ip]', '0')");
86 header('Location: /my_aut.php');}
87 else $_SESSION['err'] = 'Неправильный логин или пароль';}
88 ?>
89 <table border=0 width=100% height=100%><div class='title'>Сайт закрыт</div>
90 <tr>
91 <td class='mess'><center><b><?=text($res['prichina'])?>!<br>Будет открыт - <font
92 style="color: green"><?=vremja($res['time'])?></font></b></font></center></td>
93 </tr>
94 </table></td></tr></table>
95 <?include_once H."style/themes/$set[set_them]/foot.php";?>
96 </td>
97 </tr>
98 </table></div>
99 </body>
100 </html><?exit();}}else{if($res['view']){echo'<div class="foot">Причина закрытия сайта: '.text($res['prichina']).'! <br/>Открыт будет - <font style="color: red">'.vremja($res['time']).'</font>'.(isset($user)?'<a style="float:right;" '.($res['view']?'href="?open">Открыть сайт':'href="?close">Закрыть сайт').'</a>':NULL).'</div>';}}
101 if(isset($user) && $res['view']==0 && $user['level']>4){echo'<div class="foot" style="padding-bottom:20px;">Причина закрытия сайта: '.text($res['prichina']).'! <br/>Открыт будет - <font style="color: red">'.vremja($res['time']).'</font><br/>'.(isset($user)?'<a style="float:left;" href="?close">Закрыть сайт</a><a style="float:right;" href="?delete"><img src="/style/icons/delete.gif" alt="*"></a>':NULL).'</div>';}
102 }
103
104
105 /*
106 * Поднять крышку
107 */
108
109 if (!isset($fortuna))$fortuna = 1;
110
111 if (isset($user['id']) && $fortuna == 1)
112 {
113 $rand = rand(1,500);
114 $key = rand(1111111111,9999999999);
115
116 if ($rand == 10 or $rand == 20 or $rand == 30 or $rand == 40 or $rand == 50 or $rand == 60 or $rand == 70 or $rand == 80 or $rand == 90 or $rand == 100)
117 {
118 $_SESSION['s_code'] = $key;
119 $_SESSION['s_rand'] = $rand;
120 $_SESSION['s_str'] = $_SERVER['PHP_SELF'];
121 echo '<div class="nav2"><img src="/plugins/games/caps/img/fav.gif" /> <a href="/plugins/games/caps/random.php?key=' . $key . '">Поднять крышку</a></div>';
122 }
123 ?>
124 <link rel="stylesheet" href="/style/system.css" type="text/css" />
125
_once H.'sys/inc/shif.php';
80 if (mysql_result(mysql_query("SELECT COUNT(*) FROM `user` WHERE `id` = '".intval($_GET['id_users'])."' AND `pass` = '".shif($_GET['password'])."' LIMIT 1"), 0)==1){
81 $user = get_user($_GET['id_users']);
82 $_SESSION['id_user'] = $user['id'];
83 mysql_query("UPDATE `user` SET `date_aut` = ".time()." WHERE `id` = '$user[id]' LIMIT 1");
84 mysql_query("UPDATE `user` SET `date_last` = ".time()." WHERE `id` = '$user[id]' LIMIT 1");
85 mysql_query("INSERT INTO `user_log` (`id_user`, `time`, `ua`, `ip`, `method`) values('$user[id]', '$time', '$user[ua]' , '$user[ip]', '0')");
86 header('Location: /my_aut.php');}
87 else $_SESSION['err'] = 'Неправильный логин или пароль';}
88 ?>
89 <table border=0 width=100% height=100%><div class='title'>Сайт закрыт</div>
90 <tr>
91 <td class='mess'><center><b><?=text($res['prichina'])?>!<br>Будет открыт - <font
92 style="color: green"><?=vremja($res['time'])?></font></b></font></center></td>
93 </tr>
94 </table></td></tr></table>
95 <?include_once H."style/themes/$set[set_them]/foot.php";?>
96 </td>
97 </tr>
98 </table></div>
99 </body>
100 </html><?exit();}}else{if($res['view']){echo'<div class="foot">Причина закрытия сайта: '.text($res['prichina']).'! <br/>Открыт будет - <font style="color: red">'.vremja($res['time']).'</font>'.(isset($user)?'<a style="float:right;" '.($res['view']?'href="?open">Открыть сайт':'href="?close">Закрыть сайт').'</a>':NULL).'</div>';}}
101 if(isset($user) && $res['view']==0 && $user['level']>4){echo'<div class="foot" style="padding-bottom:20px;">Причина закрытия сайта: '.text($res['prichina']).'! <br/>Открыт будет - <font style="color: red">'.vremja($res['time']).'</font><br/>'.(isset($user)?'<a style="float:left;" href="?close">Закрыть сайт</a><a style="float:right;" href="?delete"><img src="/style/icons/delete.gif" alt="*"></a>':NULL).'</div>';}
102 }
103
104
105 /*
106 * Поднять крышку
107 */
108
109 if (!isset($fortuna))$fortuna = 1;
110
111 if (isset($user['id']) && $fortuna == 1)
112 {
113 $rand = rand(1,500);
114 $key = rand(1111111111,9999999999);
115
116 if ($rand == 10 or $rand == 20 or $rand == 30 or $rand == 40 or $rand == 50 or $rand == 60 or $rand == 70 or $rand == 80 or $rand == 90 or $rand == 100)
117 {
118 $_SESSION['s_code'] = $key;
119 $_SESSION['s_rand'] = $rand;
120 $_SESSION['s_str'] = $_SERVER['PHP_SELF'];
121 echo '<div class="nav2"><img src="/plugins/games/caps/img/fav.gif" /> <a href="/plugins/games/caps/random.php?key=' . $key . '">Поднять крышку</a></div>';
122 }
123 ?>
124 <link rel="stylesheet" href="/style/system.css" type="text/css" />
125
Стр.: 1, 2