public function demo() { $this->cache->append("<html><head></head><body>"); $pg = new system_base_Paginator("http://localhost:8888/?front/demo/", 200, 5); $pg->generate_links(_hx_anonymous(array("separator" => " ", "sideband_width" => 6))); haxe_Log::trace($pg->get_current_links(), _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 38, "className" => "system.application.controllers.Front", "methodName" => "demo"))); $this->cache->append("<img src='http://localhost:8888/?_load/sxy.jpg'> </img>"); $this->route = system_application_controllers_Front_0($this, $pg); haxe_Log::trace("src=\"" . "http://localhost:8888/" . "?_load/" . "sxy.jpg" . "\"", _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 43, "className" => "system.application.controllers.Front", "methodName" => "demo"))); $rb = new system_base_Attributes("red bold", "test", null, null, null, null, null, null, null, null, null); haxe_Log::trace($rb->insert_attributes(), _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 46, "className" => "system.application.controllers.Front", "methodName" => "demo"))); haxe_Log::trace("<a href=\"" . Std::string("http://" . "www.google.com") . "\"" . $rb->insert_attributes() . ">" . system_application_controllers_Front_1($this, $pg, $rb) . "</a>", _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 48, "className" => "system.application.controllers.Front", "methodName" => "demo"))); haxe_Log::trace(system_base_Wet_base::$cache_path, _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 49, "className" => "system.application.controllers.Front", "methodName" => "demo"))); haxe_Log::trace($_SERVER['SERVER_NAME'], _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 50, "className" => "system.application.controllers.Front", "methodName" => "demo"))); haxe_Log::trace(system_base_Wet_base::get_file_etag(system_base_Wet_base::$views_path . "simple_view.wtv"), _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 52, "className" => "system.application.controllers.Front", "methodName" => "demo"))); haxe_Log::trace(system_base_Wet_base::get_file_etag(system_base_Wet_base::$views_path . "simple_view2.wtv"), _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 53, "className" => "system.application.controllers.Front", "methodName" => "demo"))); haxe_Log::trace(system_application_controllers_Front_2($this, $pg, $rb), _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 54, "className" => "system.application.controllers.Front", "methodName" => "demo"))); haxe_Log::trace(system_application_controllers_Front_3($this, $pg, $rb), _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 55, "className" => "system.application.controllers.Front", "methodName" => "demo"))); system_base_Wet_base::set_file_etag(system_base_Wet_base::$views_path . "simple_view2.wtv"); haxe_Log::trace(haxe_Timer::stamp(), _hx_anonymous(array("fileName" => "Front.hx", "lineNumber" => 57, "className" => "system.application.controllers.Front", "methodName" => "demo"))); $this->cache->inject_style(".red {color:red}", null); $this->cache->inject_style(".bold", "font-weight: bold;"); $this->cache->append("<span class='bold red'>This is a test run...</span>"); $this->cache->append("This is a working copy" . Std::string($this->params)); $this->cache->append("</body></html>"); }
static function set_file_etag($fullpath) { $filename = null; $pathname = null; if (file_exists($fullpath)) { haxe_Log::trace(system_base_Wet_base::parse_file_path($fullpath)->filename, _hx_anonymous(array("fileName" => "Base.hx", "lineNumber" => 217, "className" => "system.base.Wet_base", "methodName" => "set_file_etag"))); haxe_Log::trace(_hx_string_or_null(system_base_Wet_base::parse_file_path($fullpath)->pathname) . "/" . _hx_string_or_null(system_base_Wet_base_0($filename, $fullpath, $pathname)), _hx_anonymous(array("fileName" => "Base.hx", "lineNumber" => 218, "className" => "system.base.Wet_base", "methodName" => "set_file_etag"))); } }
static function main() { $user_method = null; $params = null; $route = null; $user_class = null; $base = system_base_Wet_base::get_instance(); $cache = system_base_Cache::get_instance(); $profiler = system_base_Profiler::get_instance(); $cl = null; try { if (system_base_Router::$instance === null) { system_base_Router::$instance = new system_base_Router(); } $route = system_base_Router::$instance; if (!$route->decode_route()) { if ($route->controller === "_load") { system_base_Cache::load_asset($route->method); } return; } if (Index_0($base, $cache, $cl, $params, $profiler, $route, $user_class, $user_method)) { return; } $cl = Type::resolveClass("system.application.controllers." . _hx_string_or_null($route->controller)); if ($cl === null) { throw new HException(new system_base_Http_exception(_hx_string_or_null($route->controller) . " " . "Not found", 404, _hx_anonymous(array("fileName" => "Index.hx", "lineNumber" => 81, "className" => "Index", "methodName" => "main")))); } else { $user_class = Type::createInstance($cl, new _hx_array(array())); $user_method = Reflect::field($user_class, $route->method); if ($user_method === null) { throw new HException(new system_base_Http_exception(_hx_string_or_null($route->method) . " " . "Not found", 404, _hx_anonymous(array("fileName" => "Index.hx", "lineNumber" => 89, "className" => "Index", "methodName" => "main")))); } else { $user_class->set_params($route->params); Reflect::callMethod($user_class, $user_method, new _hx_array(array())); Reflect::callMethod($user_class, Reflect::field($user_class, "flush"), new _hx_array(array())); } } } catch (Exception $__hx__e) { $_ex_ = $__hx__e instanceof HException ? $__hx__e->e : $__hx__e; if (($e = $_ex_) instanceof system_base_Error) { } else { throw $__hx__e; } } system_base_Database::close(); }
public function __construct($message, $Http_Code, $info = null) { if (!php_Boot::$skip_constructor) { parent::__construct(null, _hx_anonymous(array("fileName" => "Error.hx", "lineNumber" => 50, "className" => "system.base.Http_exception", "methodName" => "new"))); while (!system_base_Cache::$cookie_buffer->isEmpty()) { system_base_Wet_base::send_cookie(system_base_Cache::$cookie_buffer->pop()); } header("X-Powered-By" . ": " . "Webrathea/0.4 (PHP)"); $value = DateTools::format(Date::now(), "%a, %d %b %Y %X %Z"); header("Date" . ": " . _hx_string_or_null($value)); header("X-Frame-Options" . ": " . "sameorigin"); header("X-XSS-Protection" . ": " . "1; mode=block"); php_Web::setReturnCode($Http_Code); $message1 = null; $message1 = Std::string($message); haxe_Log::trace("DEPRECATED FUNCTION: " . _hx_string_or_null($message1), _hx_anonymous(array("fileName" => "Base.hx", "lineNumber" => 449, "className" => "system.base.Wet_base", "methodName" => "echo"))); } }
static function send_basic_headers($return_code) { while (!system_base_Cache::$cookie_buffer->isEmpty()) { system_base_Wet_base::send_cookie(system_base_Cache::$cookie_buffer->pop()); } header("X-Powered-By" . ": " . "Webrathea/0.4 (PHP)"); $value = DateTools::format(Date::now(), "%a, %d %b %Y %X %Z"); header("Date" . ": " . _hx_string_or_null($value)); header("X-Frame-Options" . ": " . "sameorigin"); header("X-XSS-Protection" . ": " . "1; mode=block"); php_Web::setReturnCode($return_code); }