Exemple #1
0
<?php

session_start();
if ($_REQUEST['logout']) {
    unset($_SESSION['admin']);
}
if ($_SESSION['admin'] == "") {
    die;
}
include "../lib/CloudMngr/cloudmngr.core.class.php";
$CloudMngr = new CloudMngr($_GET['id']);
$module = $_POST['module'];
//{TODO input filertering
$action = $_POST['action'];
if ($module != "") {
    $mod = $CloudMngr->module($_POST['module']);
    $mod->getModulePage("cmd" . DIRECTORY_SEPARATOR . $action);
}
Exemple #2
0
    <script src="bootstrap/js/bootstrap.min.js"></script>  
  </head>
  <body id="<?php 
echo $page;
?>
">



	<?php 
if ($_SESSION['admin'] != "") {
    include $CloudMngr->class_path . DIRECTORY_SEPARATOR . "content" . DIRECTORY_SEPARATOR . "header.php";
}
//[TODO] Clean path from XSS etc.
if ($_GET['module'] != "") {
    $mod = $CloudMngr->module($_GET['module']);
    $mod->getModulePage($page);
} else {
    include $CloudMngr->class_path . DIRECTORY_SEPARATOR . "content" . DIRECTORY_SEPARATOR . $page . ".php";
}
if ($_SESSION['admin'] != "") {
    include $CloudMngr->class_path . DIRECTORY_SEPARATOR . "content" . DIRECTORY_SEPARATOR . "footer.php";
}
?>

      

    

  </body>
</html>