示例#1
0
文件: index.php 项目: vinod-co/centa
  </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();