Ejemplo n.º 1
0
    list($usec, $sec) = explode(" ", microtime());
    $ts = (double) $usec + (double) $sec;
    if (!isset($GLOBALS['gts'])) {
        $GLOBALS['gts'] = $ts;
    }
    return $ts - $GLOBALS['gts'];
}
if (!function_exists('lcfirst')) {
    function lcfirst($str)
    {
        $str[0] = strtolower($str[0]);
        return (string) $str;
    }
}
function __($key)
{
    //$translate = Zend_Registry::get('translate');
    //$rtext = $translate->_($key);
    //if ($key == $rtext) {
    //	trigger_error("untranslated: '$key' => '',", E_USER_NOTICE);
    //}
    //if (strlen($rtext) == 0) {
    return $key;
    //}
    //return $rtext;
}
calcTS();
define('APPLICATION_ENVIRONMENT', 'production');
require_once './application/library/WebVista/App.php';
WebVista::getInstance()->run();