コード例 #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();
コード例 #2
0
ファイル: version5.php プロジェクト: vinod-co/centa
    if (!InstallUtils::configFileIsWriteable()) {
        ?>
    <h2><?php 
        echo $string['updatefromversion'] . ' ' . $configObject->get('rogo_version') . ' to ' . $version;
        ?>
</h2>
    <div><?php 
        echo $string['warning1'];
        ?>
</div>
    <div><?php 
        echo $string['warning2'];
        ?>
</div>
    <?php 
    } elseif (!InstallUtils::configPathIsWriteable()) {
        ?>
    <h2><?php 
        echo $string['updatefromversion'] . ' ' . $configObject->get('rogo_version') . ' to ' . $version;
        ?>
</h2>
    <div><?php 
        echo $string['warning3'];
        ?>
</div>
    <div><?php 
        echo $string['warning4'];
        ?>
</div>
    <?php 
    } else {
コード例 #3
0
ファイル: installutils.class.php プロジェクト: vinod-co/centa
 /**
  * Check Apache can write to the required directories
  *
  */
 static function checkDirPermissionsPost()
 {
     global $string;
     self::$rogo_path = str_ireplace('/install/index.php', '', normalise_path($_SERVER['SCRIPT_FILENAME']));
     $errors = array();
     //tmp
     if (!is_writable($_POST['tmpdir'])) {
         $errors['100'] = sprintf($string['errors3'], $_POST['tmpdir']);
     }
     if (count($errors) > 0) {
         self::displayError($errors);
     }
 }