Answer the question
In order to leave comments, you need to log in
How to find out in the DLE engine if there is an authorization session or not?
So. I need to find out if there is an authorization session or not. What files should be included, and what variables should be used to check the session?
+ How is the connection to the database? Is it possible to connect directly to it using new mysqli("localhost","user","password","db_name"), or is there some kind of protection there too?
Answer the question
In order to leave comments, you need to log in
Pfft...
@session_start(); - запуск сессии
print_r($_SESSION); - вывод всего содержимого сессии
define("DBHOST", "имя хоста");
define("DBNAME", "имя базы");
define("DBUSER", "имя пользователя");
define("DBPASS", "пароль");
define("COLLATE", "кодировка");
$db = new db;
$auth = $db->super_query("SELECT id, email, login FROM admin WHERE login = '{$rem}' OR email = '{$rem}' LIMIT 0,1");
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question