alpha_full/admin/adminInclude/req/reqSelectAuthFromAdmin.php
2026-04-06 22:58:51 +02:00

19 lines
674 B
PHP
Executable File

<?php
$auth=false;
// -----------------------------------------------------
// On est en Prod,
// -----------------------------------------------------
$trouve=false;
include ($includePathConf. "/prod.dbConnect.php");
// -----------------------------------------------------
// On verifie si le site est publiable
// -----------------------------------------------------
$result = dynRequete_select('SELECT', 'authTable', ['auth'], [], '', 'reqSelectAuthFromAdmin.php', 0, $debug[2], '');
if ($result) {
$auth=$result[0]['auth'];
}
if (isset($debug[1]) && $debug[1] == '1' ) { $debugMsg .= monDebug(1, ['auth' => $auth], '');}
$_SESSION['auth']=$auth;
?>