Проверки с перенаправлениями переехали в functions.php. Глобальный выход если нет сессии в config.php.

This commit is contained in:
lopar
2020-10-30 01:30:05 +02:00
parent 2024a6fac7
commit 32c72e3413
143 changed files with 6986 additions and 7329 deletions

View File

@@ -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>