$val) echo '$_POST["'.$key.'"]='.$val.'
'; foreach($_GET as $key => $val) echo '$_GET["'.$key.'"]='.$val.'
'; */ $i = rand(1, 9); $LOGO = 'img/logo'.$i.'.png'; $fichier = './inc/config/config.php'; if (file_exists($fichier) AND filesize($fichier ) > 0) { require_once ('inc/config/config.php'); require_once ('inc/config/fonctions.php'); require_once ('inc/config/radmin.php'); if (isset($_GET['a']) AND $_GET['a'] == 'logout') { $_SESSION = array(); session_destroy(); session_unset(); header('Location: index.php'); } session_start(); ?> OpenSimulator Manager Web
getMessage()); } $reponse = $bdd->query('SELECT * FROM users'); // On affiche chaque entrée une à une while ($data = $reponse->fetch()) { if ($data['firstname'] == $_POST['firstname'] and $data['lastname'] == $_POST['lastname'] and $data['password'] == $passwordHash) { $auth = true; $_SESSION['privilege'] = $data['privilege']; $_SESSION['osAutorise'] = $data['osAutorise']; $_SESSION['authentification']=true; $_GET['a'] ="GestSims"; break; } } if ($auth == false) { echo '
'.$osmw_erreur_acces .'
'; header('Location: index.php?erreur=login'); } else { $reponse = $bdd->query('SELECT * FROM moteurs'); while($data = $reponse->fetch()) { $_SESSION['opensim_select'] = $data['id_os']; break; } } $reponse->closeCursor(); } // ********************** // PAGE EN ACCES SECURISE // ********************** // Verification sur la session authentification if (isset($_SESSION['authentification'])) { // DISPLAY BOOTSTRAP MENU include_once './inc/config/menu.php'; // Si le moteur selectionne a change if (isset($_POST['OSSelect'])){$_SESSION['opensim_select'] = trim($_POST['OSSelect']);} if (isset($_GET['a'])) { $a = $_GET['a']; //***************************************** OpenSim Manager Web ************************************************************************** if ($a == "GestSims") {include('inc/GestSims.php'); } // # Gestion Simulator if ($a == "GestSave") {include('inc/GestSave.php');} // # Gestion backup if ($a == "Help") {include('inc/Help.php');} // # Aide if ($a == "AdminLands") {include('inc/admin/GestRegion.php');} // admin // # Gestion des Regions par moteur if ($a == "AdminUsers") {include('inc/admin/GestAdminUsers.php');} // admin // # Gestion des utilisateurs if ($a == "AdminSims") {include('inc/admin/GestSimulateur.php');} // admin // # Gestion des simulateurs if ($a == "AdminOsmw") {include('inc/admin/GestConfig.php');} // admin // # Configuration de OSMW if ($a == "AdminEdit") {include('inc/admin/GestOpensim.php');} // admin // # Edition des fichiers de config if ($a == "GestUsers") {include('inc/GestUsers.php');} // # Gestion du compte utilisateur en cours //***************************************** ******************************************************************************************* if ($a == "logout") { session_start(); $_SESSION = array(); session_unset(); header('Location: index.php'); } }else{ echo Affichage_Entete($_SESSION['opensim_select']); echo '
'; echo '×'; echo ' '; echo $osmw_message_home ; echo '
'; } } else { ?>
Logo Server
OpenSimulator Manager Web
!!! configuration file not exist, Installation !!!
'); echo ' '; }