Beispiel #1
0
<?php

ini_set('display_errors', 1);
// bootstrap the autoloader
require 'system/config.php';
require 'system/util.php';
function __autoload($autoload)
{
    if (file_exists(util::base() . '/application/' . $autoload . '.php')) {
        include util::base() . '/application/' . $autoload . '.php';
    } elseif (file_exists(util::base() . '/system/' . $autoload . '.php')) {
        include util::base() . '/system/' . $autoload . '.php';
    }
}
engine::run();
Beispiel #2
0
<?php

/**
* index.php
*
* The entry point into the Chisimba application
*
* @author Paul Scott based on methods by Sean Legassick
*
*/
// checks for configuration file, if none found loads installation page
if (!file_exists('config/config.xml')) {
    header('Location: installer/index.php');
    exit;
}
// this is a security measure, this can be checked by the included scripts and the script
// execution aborted if it is not set.
$GLOBALS['kewl_entry_point_run'] = true;
// initialise the engine object
require_once 'classes/core/engine_class_inc.php';
$_globalObjEngine = new engine();
// engine object created by core_classes_inc.php
$_globalObjEngine->run();