<?php
/*
 * IML CISERVER :: install check
 * 
 */
$sApproot=dirname(__DIR__);
if (file_exists($sApproot.'/config/config_custom.php') && file_exists($sApproot.'/config/inc_user2roles.php')){
    header("location: /deployment/all/login/");
}

echo '
        <h1>Welcome to the IML CISERVER!</h1>
        <p>
            It seems you just extracted the sources and try to run the web interface.<br>
            Go to app root <code>'.$sApproot.'/config/</code> and create there 2 files from
            *.dist.<br>
            Then verify <a href="check-config.php">check-config.php</a>.
        </p>
    '
;

 
    // echo '<h1>' . php_uname("n") . '</h1><hr>';
?>

<a href="http://www.iml.unibe.ch/">www.iml.unibe.ch</a> |
<a href="https://git-repo.iml.unibe.ch/iml-open-source/imldeployment/">Gitlab</a> |