APPPATH/classes/Model/Uptime.php [ 67 ]
62 return false;
63 }
64 curl_close($curl);
65
66 $xml = simplexml_load_string($xml);
67 foreach ($xml->uptime as $uptime)
68 {
69 if (!isset($tmp['rep']) || $uptime['reported'] > $tmp['rep'])
70 {
71 $tmp['rep'] = (int)$uptime['reported'];
72 $tmp['up'] = (int)$uptime['uptime'];
-
APPPATH/classes/Model/Uptime.php [ 67 ] » Kohana_Core::error_handler()
62 return false; 63 } 64 curl_close($curl); 65 66 $xml = simplexml_load_string($xml); 67 foreach ($xml->uptime as $uptime) 68 { 69 if (!isset($tmp['rep']) || $uptime['reported'] > $tmp['rep']) 70 { 71 $tmp['rep'] = (int)$uptime['reported']; 72 $tmp['up'] = (int)$uptime['uptime'];
-
APPPATH/classes/Model/Uptime.php [ 28 ] » Model_Uptime->update()
23 24 if (count($this->dbtmp) > 0) 25 { 26 foreach ($this->dbtmp as $server) 27 { 28 $this->update($server->navn, $server->url); 29 } 30 } 31 } 32 33 public function servers()
-
APPPATH/classes/Controller/Vis.php [ 26 ] » Model_Uptime->__construct()
21 } 22 23 public function action_uptime() { 24 $this->template->title = 'dbQ.no - Oppetid'; 25 $this->template->content = new View('pages/uptime'); 26 $uptime = new Model_Uptime; 27 $this->template->content->servers = $uptime->servers(); 28 } 29 30 public function action_tools() { 31 $this->template->title = 'dbQ.no - Verktoy';
-
SYSPATH/classes/Kohana/Controller.php [ 84 ] » Controller_Vis->action_uptime()
79 array(':uri' => $this->request->uri()) 80 )->request($this->request); 81 } 82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke()
92 93 // Create a new instance of the controller 94 $controller = $class->newInstance($request, $response); 95 96 // Run the controller's execute() method 97 $response = $class->getMethod('execute')->invoke($controller); 98 99 if ( ! $response instanceof Response) 100 { 101 // Controller failed to return a Response. 102 throw new Kohana_Exception('Controller failed to return a Response');
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request()
109 $orig_response = $response = Response::factory(); 110 111 if (($cache = $this->cache()) instanceof HTTP_Cache) 112 return $cache->execute($this, $request, $response); 113 114 $response = $this->execute_request($request, $response); 115 116 // Execute response callbacks 117 foreach ($this->header_callbacks() as $header => $callback) 118 { 119 if ($response->headers($header))
-
SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute()
985 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 986 ':uri' => $this->_uri, 987 )); 988 } 989 990 return $this->_client->execute($this); 991 } 992 993 /** 994 * Returns whether this request is the initial request Kohana received. 995 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 118 ] » Kohana_Request->execute()
113 /** 114 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 115 * If no source is specified, the URI will be automatically detected. 116 */ 117 echo Request::factory(TRUE, array(), FALSE) 118 ->execute() 119 ->send_headers(TRUE) 120 ->body(); 121 }