Ejemplo n.º 1
0
<?php

#OOB/N1 Framework [©2004,2005 - Nutus]
/*
* Created on 04/02/2005
 @author Pablo Micolini
 @license BSD
*/
require_once "..ngine.php";
try {
    $ari = new OOB_ari();
    if ($a = $ari->get('agent')->getLang()) {
        print $a . "<br>";
    } else {
        print "no hay var<br>";
    }
    // usleep(54200);
    $_SESSION["test"]++;
    print $_SESSION["test"];
    $ari->t->assign("Name", "Fred Irving Johnathan Bradley Peppergill");
    $ari->t->assign("FirstName", array("John", "Mary", "James", "Henry"));
    $ari->t->assign("LastName", array("Doe", "Smith", "Johnson", "Case"));
    $ari->t->assign("Class", array(array("A", "B", "C", "D"), array("E", "F", "G", "H"), array("I", "J", "K", "L"), array("M", "N", "O", "P")));
    $ari->t->assign("contacts", array(array("phone" => "1", "fax" => "2", "cell" => "3"), array("phone" => "555-4444", "fax" => "555-3333", "cell" => "760-1234")));
    $ari->t->assign("option_values", array("NY", "NE", "KS", "IA", "OK", "TX"));
    $ari->t->assign("option_output", array("New York", "Nebraska", "Kansas", "Iowa", "Oklahoma", "Texas"));
    $ari->t->assign("option_selected", "NE");
    $ari->t->assign("bold", false);
    $ari->t->assign("title", "n");
    $ari->t->display('oob/librerias/smarty/test/index.tpl');
    $time = $ari->finCronometro();
Ejemplo n.º 2
0
<?php 
/**
########################################
#OOB/N1 Framework [©2004,2006]
#
#  @copyright Pablo Micolini
#  @license BSD
######################################## 
*/
//  USER SIDE INDEX
try {
    ignore_user_abort(true);
    require_once "oob" . DIRECTORY_SEPARATOR . "engine.php";
    global $ari;
    OOB_ari::initEngine();
    $ari->generateOutput();
    //	$time= $ari->finCronometro();
    //	print "<br><br><small>".$time." mS <br>Nutus OOB/n1 ".$ari->version()."<br></small>";
    //   print $ari->ExecutionMonitor();
    // ------------------------------------------------------------------------------------------------------
} catch (OOB_exception $e) {
    error_reporting(0);
    # 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;