Проверки с перенаправлениями переехали в functions.php. Глобальный выход если нет сессии в config.php.
This commit is contained in:
8
lab.php
8
lab.php
@@ -1,11 +1,6 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (empty($_SESSION['uid'])) {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
}
|
||||
|
||||
include "functions.php";
|
||||
require_once "functions.php";
|
||||
if ($user['lab'] == 0) {
|
||||
header("Location: index.php");
|
||||
exit;
|
||||
@@ -18,6 +13,7 @@ $u_res = mysql_fetch_array(mysql_query("select * from `lab_user` where `id_user`
|
||||
function cut() {
|
||||
document.getElementById('buy').disabled = 'disabled';
|
||||
}
|
||||
|
||||
setTimeout("document.all['b1'].disabled=false;document.all['b2'].disabled=false;document.all['b3'].disabled=false;document.all['b4'].disabled=false;", <?=(3 - $tt)?>000);
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user