From 980b761c4babe1ae6ee81c695b55e9cf7462b687 Mon Sep 17 00:00:00 2001 From: RomanGolienko Date: Fri, 13 Dec 2024 17:13:04 +0300 Subject: [PATCH] =?UTF-8?q?=D0=93=D0=BB=D0=BE=D0=B1=D0=B0=D0=BB=D1=8C?= =?UTF-8?q?=D0=BD=D0=B0=D1=8F=20=D0=BF=D1=80=D0=BE=D0=B2=D0=B5=D1=80=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BD=D0=B0=20=D0=B4=D0=BE=D1=81=D1=82=D1=83=D0=BF=20?= =?UTF-8?q?=D0=BA=20=D1=81=D0=B8=D1=81=D1=82=D0=B5=D0=BC=D0=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- out.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/out.php b/out.php index 1e32576..8fe61fe 100644 --- a/out.php +++ b/out.php @@ -3,10 +3,13 @@ include_once "inc/attendancelog.php"; global $DB; if (isset($_SESSION['user']['fio'])){ -// $class = new attendancelog($DB, $_SESSION['user']['fio']); $class = new attendancelog($DB, $_SESSION['user']['fio']); - $OUT = $class->HTML(); - + $dostup = $class->currentUserInfo(); + if($dostup != 0){ + $OUT = $class->HTML(); + }else{ + $OUT = '

У вас нет доступа к модулю!

'; + } } else { }