Ejemplo n.º 1
0
function displayStartupUserInfo()
{
    if (!isPhpCli() && !isAjaxRequest()) {
        @ob_start();
        $version = KOALA_VERSION;
        echo <<<END
<style type="text/css">
body
{
\ttext-align: center;
\tfont-family: "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
\tfont-size: 17px;
\tfont-weight: bold;
}

div#container
{
\tposition:relative;
\ttop:30%;
}
</style>
<div id="container">
<h1>Initializing System. Please wait ...</h1>
<small style="font-weight: normal;">koala framework v{$version}</small>
</div>
END;
        buffer_flush();
    } else {
        if (isPhpCli()) {
            echo "Initializing System. Please wait ...\n";
        }
    }
}
Ejemplo n.º 2
0
        apache_setenv("AUTOLOADER_BUILD_RUNNING", false);
    } catch (AutoloaderException $e) {
        if ($e instanceof AutoloaderException_Parser_IO) {
            die("ERROR: Check you file permissions!");
        } else {
            if ($e instanceof AutoloaderException_IndexBuildCollision) {
                if (!isAjaxRequest()) {
                    echo $e->getMessage();
                }
            } else {
                var_dump($e);
                die;
            }
        }
    }
    if (!isPhpCli() && !isAjaxRequest()) {
        echo "\n\n Trying to reload in 10 sec.<script type=\"text/javascript\">window.setTimeout('window.location.reload()', 10000);</script>";
        die;
    }
}
// start session
session_name(str_replace(".", "-", PLATFORM_ID . KOALA_VERSION));
session_start();
// style
if (!empty($_GET["style"]) && DEVELOPMENT_MODE == TRUE) {
    $STYLE = $_GET["style"];
    $_SESSION["STYLE"] = $_GET["style"];
    get_cache()->clean();
} else {
    if (!empty($_SESSION["STYLE"]) && DEVELOPMENT_MODE == TRUE) {
        $STYLE = $_SESSION["STYLE"];