예제 #1
0
파일: index.php 프로젝트: vinod-co/centa
    <title>Error: PHP is Missing</title>
  </head>
  <body>
    <h2>Error: PHP is Missing</h2>
    <p>Rogō requires that your web server is running PHP. Your server does not have PHP installed, or PHP is turned off.</p>
  </body>
  </html>
  <?php 
    exit;
}
require '../include/path_functions.inc.php';
$cfg_web_root = get_root_path() . '/';
$cfg_root_path = ltrim(str_replace($_SERVER['DOCUMENT_ROOT'], '', $cfg_web_root), '/');
require $cfg_web_root . 'classes/installutils.class.php';
$version = '6.0.4';
set_time_limit(0);
//basic checks
InstallUtils::displayHeader();
//InstallUtils::checkHTTPS();
InstallUtils::checkSoftware();
InstallUtils::checkDirPermissionsPre();
//have we got a config file? exits if we do, as this is an install
InstallUtils::configFile();
//output form
if (isset($_POST['install'])) {
    InstallUtils::checkDirPermissionsPost();
    InstallUtils::processForm();
} else {
    InstallUtils::displayForm();
}
InstallUtils::displayfooter();