From be4fc45011bc6b6f1b2d34bdf8fcb816ae1eddcd Mon Sep 17 00:00:00 2001 From: Divarion-D Date: Tue, 6 Jan 2026 22:17:32 +0300 Subject: [PATCH] Revieved mag.php --- src/admin/mag.php | 625 +++++++++++++++++++++++++++++++--------------- 1 file changed, 417 insertions(+), 208 deletions(-) diff --git a/src/admin/mag.php b/src/admin/mag.php index f119891..752ef79 100644 --- a/src/admin/mag.php +++ b/src/admin/mag.php @@ -9,20 +9,20 @@ if (!checkPermissions()) { if (isset(CoreUtilities::$rRequest['id'])) { $rDevice = getMag(CoreUtilities::$rRequest['id']); + if (!$rDevice['user_id']) { exit(); } } -if (!isset($rDevice) || isset($rDevice['user'])) { +if (isset($rDevice) && !isset($rDevice['user'])) { $rDevice['user'] = array('bouquet' => array()); } $_TITLE = 'MAG Device'; include 'header.php'; ?> -