예제 #1
0
파일: index.php 프로젝트: neevan1e/Done
}
if (version_compare(PHP_VERSION, '5.3') >= 0) {
    //the user has the correct version
} else {
    //the user does not have the minimum php version
    echo "<body style='background-color:#F7F8FA;'>";
    echo "<div style='text-align:center; font-family:sans-serif; margin:60px auto; max-width:500px;'>";
    echo "<h2>Please upgrade your version of PHP before continuing</h2>";
    echo "<br/><p><strong>Required version</strong>: This application requires PHP 5.3 or greater. <br/>\n          <strong>Your current version</strong>: You currently have PHP " . PHP_VERSION . "</p> <br/><br/>";
    echo "<p>You will need to contact your hosting provider to upgrade your version of php.\n    This is usually free and very quick. Once you have upgraded, return this installation script to continue with\n    the installation. </p>";
    echo "</div></body>";
    exit;
}
require_once 'server/wizard.class.php';
$wizard = new Wizard();
$wizard->start();
function pre($data, $return = false)
{
    if (!$return) {
        echo "<pre>";
        print_r($data);
        echo "</pre>";
        return true;
    } else {
        return "<pre>" . print_r($data, true) . "</pre>";
    }
}
//todo: hack, I should just be able to require shared.functions.php but I'm re-using function names which causes errors
function get_config($option)
{
    global $CONFIG;