From 20c05ffc97274055eb6d63cae6c0ab0afff9f607 Mon Sep 17 00:00:00 2001 From: rsgrinko Date: Thu, 9 Dec 2021 14:47:10 +0300 Subject: [PATCH] [+] add js vars --- inc/header.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/inc/header.php b/inc/header.php index 8ff3e67..ede083f 100644 --- a/inc/header.php +++ b/inc/header.php @@ -6,7 +6,6 @@ * Сайт: https://it-stories.ru */ - /** * Защита от запуска файла без подключения ядра */ @@ -36,6 +35,11 @@ if(!CUser::is_user() and $_SERVER['REQUEST_URI'] !== '/login.php') { + + @@ -88,7 +92,7 @@ if(!CUser::is_user() and $_SERVER['REQUEST_URI'] !== '/login.php') { $.ajax({ url: "ajax/keepAlive.php", data: { - userId: "", + userId: userId, }, success: function (data) { if(data.status !== 'ok') {