MODPATH/database/classes/Kohana/Database/MySQL.php [ 108 ]
103 protected function _select_db($database)
104 {
105 if ( ! mysql_select_db($database, $this->_connection))
106 {
107 // Unable to select database
108 throw new Database_Exception(':error',
109 array(':error' => mysql_error($this->_connection)),
110 mysql_errno($this->_connection));
111 }
112
113 Database_MySQL::$_current_databases[$this->_connection_id] = $database;
-
MODPATH/database/classes/Kohana/Database/MySQL.php [ 75 ] » Kohana_Database_MySQL->_select_db(arguments)
0
string(12) "uchportfolio"
70 } 71 72 // \xFF is a better delimiter, but the PHP driver uses underscore 73 $this->_connection_id = sha1($hostname.'_'.$username.'_'.$password); 74 75 $this->_select_db($database); 76 77 if ( ! empty($this->_config['charset'])) 78 { 79 // Set the character set 80 $this->set_charset($this->_config['charset']);
-
MODPATH/database/classes/Kohana/Database/MySQL.php [ 171 ] » Kohana_Database_MySQL->connect()
166 } 167 168 public function query($type, $sql, $as_object = FALSE, array $params = NULL) 169 { 170 // Make sure the database is connected 171 $this->_connection or $this->connect(); 172 173 if (Kohana::$profiling) 174 { 175 // Benchmark this query for the current instance 176 $benchmark = Profiler::start("Database ({$this->_instance})", $sql);
-
MODPATH/database/classes/Kohana/Database/Query.php [ 251 ] » Kohana_Database_MySQL->query(arguments)
0
integer 4
1
string(55) "DELETE FROM guests_online WHERE exit_time<='1711667632'"
2
bool FALSE
3
array(0)
246 return new Database_Result_Cached($result, $sql, $as_object, $object_params); 247 } 248 } 249 250 // Execute the query 251 $result = $db->query($this->_type, $sql, $as_object, $object_params); 252 253 if (isset($cache_key) AND $this->_lifetime > 0) 254 { 255 // Cache the result array 256 Kohana::cache($cache_key, $result->as_array(), $this->_lifetime);
-
APPPATH/classes/Model/User.php [ 5156 ] » Kohana_Database_Query->execute()
5151 $user_agent=''; 5152 $entry_time=time(); 5153 $exit_time=time()+(15); 5154 5155 DB::query(Database::DELETE, "DELETE FROM guests_online WHERE exit_time<='$entry_time'") 5156 ->execute(); 5157 5158 5159 $query = DB::query(Database::SELECT, "SELECT count(user_ip) as total FROM guests_online WHERE user_ip='$user_ip'") 5160 ->execute() 5161 ->get("total");
-
APPPATH/classes/Controller/Common.php [ 92 ] » Model_User->register_guest()
87 View::set_global('user_role', $user_info["user_role"]); 88 } else { 89 View::set_global('user_role', '0'); 90 } 91 92 Model::factory("User")->register_guest(); 93 94 } 95 96 97
-
SYSPATH/classes/Kohana/Controller.php [ 69 ] » Controller_Common->before()
64 * @return Response 65 */ 66 public function execute() 67 { 68 // Execute the "before action" method 69 $this->before(); 70 71 // Determine the action to use 72 $action = 'action_'.$this->request->action(); 73 74 // If the action doesn't exist, it's a 404
-
{PHP internal call} » Kohana_Controller->execute()
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Show(5)
{ private _salt => string(3) "Yif" public template => object View(2)
{ protected _file => string(71) "/var/www/www-root/data/www/uchportfolio.ru/application/views/layout.php" protected _data => array(7) ( "content" => string(0) "" "styles" => string(0) "" "scripts" => string(0) "" "left_column" => string(0) "" "right_column" => object View(2)
public auto_render => bool TRUE public request => object Request(19){ protected _file => string(78) "/var/www/www-root/data/www/uchportfolio.ru/application/views/_right_column.php" protected _data => array(0) }
"main_center" => string(11) "main_center" "curr_path" => string(10) "Show/index" ) }{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
public response => object Response(5){ protected _filters => array(0) protected _uri => string(4) "<id>" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "show" "action" => string(5) "index" ) protected _route_regex => string(26) "#^(?P<id>[^/.,;?\n]++)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Show" protected _action => string(5) "index" protected _uri => string(11) "s5969179750" protected _external => bool FALSE protected _params => array(1) ( "id" => string(11) "s5969179750" ) protected _get => array(2) ( "page" => string(5) "33025" "comment_page" => string(1) "5" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}{ protected _status => integer 200 protected _header => object HTTP_Header(0)
}{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }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(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(4) "<id>" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "show" "action" => string(5) "index" ) protected _route_regex => string(26) "#^(?P<id>[^/.,;?\n]++)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Show" protected _action => string(5) "index" protected _uri => string(11) "s5969179750" protected _external => bool FALSE protected _params => array(1) ( "id" => string(11) "s5969179750" ) protected _get => array(2) ( "page" => string(5) "33025" "comment_page" => string(1) "5" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}1
object Response(5)
{ protected _status => integer 200 protected _header => object HTTP_Header(0)
{ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }109 $orig_response = $response = Response::factory(array('_protocol' => $request->protocol())); 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 [ 986 ] » Kohana_Request_Client->execute(arguments)
0
object Request(19)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool TRUE protected _referrer => NULL protected _route => object Route(5)
{ protected _filters => array(0) protected _uri => string(4) "<id>" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "show" "action" => string(5) "index" ) protected _route_regex => string(26) "#^(?P<id>[^/.,;?\n]++)$#uD" }
protected _routes => array(0) protected _header => object HTTP_Header(0){ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "Show" protected _action => string(5) "index" protected _uri => string(11) "s5969179750" protected _external => bool FALSE protected _params => array(1) ( "id" => string(11) "s5969179750" ) protected _get => array(2) ( "page" => string(5) "33025" "comment_page" => string(1) "5" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(9){ protected _previous_environment => NULL protected _cache => NULL protected _follow => bool FALSE protected _follow_headers => array(1) ( 0 => string(13) "Authorization" ) protected _strict_redirect => bool TRUE protected _header_callbacks => array(1) ( "Location" => string(34) "Request_Client::on_header_location" ) protected _max_callback_depth => integer 5 protected _callback_depth => integer 1 protected _callback_params => array(0) }
}981 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 982 ':uri' => $this->_uri, 983 )); 984 } 985 986 return $this->_client->execute($this); 987 } 988 989 /** 990 * Returns whether this request is the initial request Kohana received. 991 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 123 ] » Kohana_Request->execute()
118 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 119 * If no source is specified, the URI will be automatically detected. 120 */ 121 122 echo Request::factory(TRUE, array(), FALSE) 123 ->execute() 124 ->send_headers(TRUE) 125 ->body(); 126 }