Skip to content
Snippets Groups Projects
Select Git revision
  • 9e10ae9c8ebe6647f4fe4aace326150476e6bb33
  • master default protected
  • simple-task/7248-eol-check-add-node-22
  • 6877_check_iml_deployment
4 results

check_mysqlserver

Blame
  • index.php 1.16 KiB
    <?php
    
    require_once("./inc_functions.php");
    require_once("./classes/page.class.php");
    
    $sPrj="";
    $sAction="overview";
    
    // ------ check parameters
    
    if (array_key_exists("prj", $aParams)) {
        $sPrj=$aParams["prj"];
    }
    if (array_key_exists("action", $aParams)) {
        if (file_exists(__DIR__ . '/act_' . $aParams["action"] . ".php")){
            $sAction=$aParams["action"];
        }
    }
    
    // ------ action 
    
    $sActionFile=__DIR__ . '/act_' . $sAction . ".php";
    include($sActionFile);
            
    // ------ Ausgabe
    $sPhpOut='
        <div id="header" style="display: none;">
            IML DEPLOYMENT GUI
        </div>
        <br>
        '. getTopArea() .'
        <div id="content">
            '.getAction().'
            '.$sPhpOut.'
        </div>
        <div id="footer">
            IML Deployment &copy; '.date("Y").' <a href="http://www.iml.unibe.ch/">Institut f&uuml;r medizinische Lehre; Universit&auml;t Bern</a>
        </div>
        ';
    
    $oPage = new Page();
    $oPage->addResponseHeader("Pragma: no-cache");
    $oPage->setOutputtype('html');
    $oPage->addJsOnReady('
        $(\'.tblOverview\').dataTable({
                "bPaginate": false,
                "bLengthChange": false
        }); 
    ');
    
    $oPage->setContent($sPhpOut);
    echo $oPage->render();
    
    ?>