26 lines
995 B
PHP
Executable File
26 lines
995 B
PHP
Executable File
<?php
|
|
$nomFicAppelant = basename(__FILE__);
|
|
// ---------------------------------------------------
|
|
// Is admin ?
|
|
// ---------------------------------------------------
|
|
if (empty($_SESSION['tableLibAdmin']) || ($refresh=='Oui')) {
|
|
include ($includePath. "/req/15-init.adminMsgList.php");
|
|
}
|
|
else {
|
|
if (isset($debug[1]) && $debug[1] == '1' ) { $debugMsg .='tableLibAdmin remplie';}
|
|
$tableLibAdmin=$_SESSION['tableLibAdmin'];
|
|
$tableAdminSms=$_SESSION['tableAdminSms'];
|
|
}
|
|
|
|
if ($idMail!='') {
|
|
if (!isset($_SESSION['isAdmin'])) $_SESSION['isAdmin']='N';
|
|
for($a=0;$a<count($_SESSION['tableLibAdmin']);$a++) {
|
|
if ($idMail==$tableLibAdmin[$a]) {
|
|
$_SESSION['isAdmin']=='O';
|
|
echo '<span class="messageConnect">Vous êtes administrateur: ' .$idMail. '</span>';
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{if (isset($debug[1]) && $debug[1] == '1' ) { $debugMsg .='<br>Le mail semble vide dans isAdmin => ' .$idMail. ' | SESSION[isAdmin] => ' .$_SESSION['isAdmin'];}}
|
|
?>
|