Location: PHPKode > projects > OOB-n1 PHP5 Framework > dev/index.php
<?php
# Nutus [©2005 - Nutus, Todos los derechos reservados]
/**
 OOB/N1 Framework [©2004, 2005 - Nutus]
 @license: BSD
 @author: Pablo Micolini / Nutus 2005
  
  USER SIDE INDEX
 */
 try {
 	ignore_user_abort ( true );
	require_once ("oob".DIRECTORY_SEPARATOR."engine.php");
	global $ari;
	
	OOB_ari::initEngine();
	$ari->generateOutput();
	
	
//
 echo "<br><small>".$ari->finCronometro()." S</small>"; // <br>OOB/N1 ".$ari->version()."<br></small>";

/// execution log
	$today = date("d/m/hide@address.com:i:s");
	$logmessage =  $today . ";" . $_SERVER['REMOTE_ADDR'] . ";" . $ari->get('url')->realURI() . ";" . $ari->finCronometro() . "\r\n";
	@error_log(  $logmessage, 3, $ari->get('filesdir') . DIRECTORY_SEPARATOR . 'ejecution.log' );
	

   print $ari->ExecutionMonitor();


// ------------------------------------------------------------------------------------------------------	
 } catch (OOB_exception $e) {

	# After all, sometimes things can go wrong!, lets be brave and handle it
	require_once ("oob".DIRECTORY_SEPARATOR."librerias".DIRECTORY_SEPARATOR."smarty".DIRECTORY_SEPARATOR."Smarty.class.php");

	// start smarty object for section template
	$extpl= new Smarty;
	$extpl->template_dir= dirname(__FILE__).DIRECTORY_SEPARATOR.'perspectives'.DIRECTORY_SEPARATOR.'default';
	$extpl->compile_dir= dirname(__FILE__).DIRECTORY_SEPARATOR.'archivos'.DIRECTORY_SEPARATOR.'cache';
	$extpl->debugging= false;
	$extpl->force_compile= false;
	$extpl->caching=0;
	$extpl->compile_check= false;
	//end smarty load

	$extpl->assign("error_numero", $e->getCode());
	$extpl->assign("error_mensaje", $e->getUserMessage());
	
	if (502 > $e->getCode() && $e->getCode() < 400)
		{		$e->logmessage();}
				else
		{		header("HTTP/1.1 {$e->getCode()} {$e->getUserMessage()}");}
	
$extpl->display("error.tpl");
} 



?>

Return current item: OOB-n1 PHP5 Framework