Location: PHPKode > scripts > Noostr > index.php
<?php
/**
 * Codpiece for the Noostr application. This file doesn't do much,
 * but loads the configurator/bootstrapper and starts the template system.
 *
 * @package Noostr
 * @author Russ Porosky (IndyArmy Network, Inc.) <hide@address.com>
 * @copyright Copyright 2010 (C) IndyArmy Network, Inc.
 * @version 0.5
 * @link http://noostr.com
 */

/**
 * Turn error display ON during development
 */
ini_set('display_errors', 1);

/**
 * Initial contant declarations.
 */
define('SYSPATH', $_SERVER['DOCUMENT_ROOT']);

/**
 * Set the timer variable and start the site timer
 */
$timerstart = 0;
timer();

/**
 * Load the initial user defineable settings
 */
include_once(SYSPATH.'/settings.php');

/**
 * Initial constants declarations.
 */
define('CLASSES', ENGINE.'/classes');
define('INCLUDES', ENGINE.'/includes');
define('HANDLERS', ENGINE.'/handlers');

/**
 * Configure the system, the site and the templates
 */
include_once(SYSPATH.'/'.INCLUDES.'/config.php');

/**
 * Start the template engine
 */
$template->start();

/**
 * We're done! Kill the database connection
 */
$db->disconnect();

/**
 * Sets the start time and returns the end time of the page execution. Located
 * in the index.php file so it can be run before any other operation.
 * 
 * @global float $timerstart
 * @param bool $end
 * @return float
 */
function timer($end = false) {
	global $timerstart;
	$return = 0;
	$time = microtime(true);
	if ($end) {
		$return = $time - $timerstart;
	} else {
		$timerstart = $time;
		register_shutdown_function('timer', 'true');
		$return = $time;
	}
	return $return;
}

//phpinfo();
//get_nodes(0, -1, get_classid('comment'), true, 1, 8);
Return current item: Noostr