Database_Exception [ ]:
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)
0string(8) "sistemas"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 11string(56) "SELECT * FROM `reservaprouni` ORDER BY `id` DESC LIMIT 1"2 bool FALSE3array(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/views/agendamento/candidato.php [ 6 ] » Kohana_Database_Query->execute()
1 <?php 2 defined('SYSPATH') or die('Não acessivel!'); 3 if(session_status() == PHP_SESSION_NONE) { 4 session_start(); 5 } 6 $periodos = DB::select()->from('reservaprouni')->order_by('id', 'desc')->limit(1)->execute(); 7 $hoje = date('Y-m-d'); 8 if (count($periodos) > 0) { 9 foreach ($periodos as $per) { 10 $inicio = $per['dtini']; 11 $fim = $per['dtfim'];SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)
0string(90) "/home/central14/public_html/portal/agendamento/application/views/agendamento/candidato.php"56 ob_start(); 57 58 try 59 { 60 // Load the view within the current scope 61 include $kohana_view_filename; 62 } 63 catch (Exception $e) 64 { 65 // Delete the output buffer 66 ob_end_clean();SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)
0string(90) "/home/central14/public_html/portal/agendamento/application/views/agendamento/candidato.php"1array(0)343 { 344 throw new View_Exception('You must set the file to use within your view before rendering'); 345 } 346 347 // Combine local and global data and capture the output 348 return View::capture($this->_file, $this->_data); 349 } 350 351 }SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render()
223 */ 224 public function __toString() 225 { 226 try 227 { 228 return $this->render(); 229 } 230 catch (Exception $e) 231 { 232 /** 233 * Display the exception message.APPPATH/views/Index.php [ 62 ] » Kohana_View->__toString()
57 <li title="Sair do sistema"><a href="<?php echo URL::base(); ?>login/logout">Sair</a></li> 58 </ul> 59 </div> 60 <?php 61 endif; 62 echo $conteudo; 63 ?> 64 </div> 65 </blockquote> 66 67SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)
0string(74) "/home/central14/public_html/portal/agendamento/application/views/Index.php"56 ob_start(); 57 58 try 59 { 60 // Load the view within the current scope 61 include $kohana_view_filename; 62 } 63 catch (Exception $e) 64 { 65 // Delete the output buffer 66 ob_end_clean();SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture(arguments)
0string(74) "/home/central14/public_html/portal/agendamento/application/views/Index.php"1 array(1) ( "conteudo" => object View(2){ protected _file => string(90) "/home/central14/public_html/portal/agendamento/application/views/agendamento/candidato.php" protected _data => array(0) })343 { 344 throw new View_Exception('You must set the file to use within your view before rendering'); 345 } 346 347 // Combine local and global data and capture the output 348 return View::capture($this->_file, $this->_data); 349 } 350 351 }SYSPATH/classes/Kohana/Controller/Template.php [ 44 ] » Kohana_View->render()
39 */ 40 public function after() 41 { 42 if ($this->auto_render === TRUE) 43 { 44 $this->response->body($this->template->render()); 45 } 46 47 parent::after(); 48 } 49SYSPATH/classes/Kohana/Controller.php [ 87 ] » Kohana_Controller_Template->after()
82 83 // Execute the action itself 84 $this->{$action}(); 85 86 // Execute the "after action" method 87 $this->after(); 88 89 // Return the response 90 return $this->response; 91 } 92{PHP internal call} » Kohana_Controller->execute()
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke(arguments)
0 object Controller_Agendamento(4){ public template => object View(2){ protected _file => string(74) "/home/central14/public_html/portal/agendamento/application/views/Index.php" protected _data => array(1) ( "conteudo" => object View(2)public auto_render => bool TRUE public request => object Request(19){ protected _file => string(90) "/home/central14/public_html/portal/agendamento/application/views/agendamento/candidato.php" protected _data => array(0) }) }{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5)public response => object Response(5){ protected _filters => array(0) protected _uri => string(48) "(<controller>(/<action>(/<id>)(/<id1>)(/<id2>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(11) "agendamento" "action" => string(5) "index" ) protected _route_regex => string(149) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?(?:/(?P<id1>[^/.,;?\n]++))?(?:/(?P<id2>[^ …" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(11) "Agendamento" protected _action => string(5) "index" protected _uri => string(0) "" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "filial" => string(4) "0003" ) 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.1" }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.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5){ protected _filters => array(0) protected _uri => string(48) "(<controller>(/<action>(/<id>)(/<id1>)(/<id2>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(11) "agendamento" "action" => string(5) "index" ) protected _route_regex => string(149) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?(?:/(?P<id1>[^/.,;?\n]++))?(?:/(?P<id2>[^ …" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(11) "Agendamento" protected _action => string(5) "index" protected _uri => string(0) "" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "filial" => string(4) "0003" ) 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.1" }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.1" protected _secure => bool FALSE protected _referrer => NULL protected _route => object Route(5){ protected _filters => array(0) protected _uri => string(48) "(<controller>(/<action>(/<id>)(/<id1>)(/<id2>)))" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(11) "agendamento" "action" => string(5) "index" ) protected _route_regex => string(149) "#^(?:(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?(?:/(?P<id1>[^/.,;?\n]++))?(?:/(?P<id2>[^ …" }protected _routes => array(0) protected _header => object HTTP_Header(0){ }protected _body => NULL protected _directory => string(0) "" protected _controller => string(11) "Agendamento" protected _action => string(5) "index" protected _uri => string(0) "" protected _external => bool FALSE protected _params => array(0) protected _get => array(1) ( "filial" => string(4) "0003" ) 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 [ 117 ] » Kohana_Request->execute()
112 /** 113 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 114 * If no source is specified, the URI will be automatically detected. 115 */ 116 echo Request::factory(TRUE, array(), FALSE) 117 ->execute() 118 ->send_headers(TRUE) 119 ->body(); 120 }Environment
Included files (85)
DOCROOT/index.phpAPPPATH/bootstrap.phpSYSPATH/classes/Kohana/Core.phpSYSPATH/classes/Kohana.phpSYSPATH/classes/I18n.phpSYSPATH/classes/Kohana/I18n.phpSYSPATH/classes/Cookie.phpSYSPATH/classes/Kohana/Cookie.phpSYSPATH/classes/HTTP.phpSYSPATH/classes/Kohana/HTTP.phpSYSPATH/classes/Kohana/Exception.phpSYSPATH/classes/Kohana/Kohana/Exception.phpSYSPATH/classes/Log.phpSYSPATH/classes/Kohana/Log.phpSYSPATH/classes/Config.phpSYSPATH/classes/Kohana/Config.phpSYSPATH/classes/Log/File.phpSYSPATH/classes/Kohana/Log/File.phpSYSPATH/classes/Log/Writer.phpSYSPATH/classes/Kohana/Log/Writer.phpSYSPATH/classes/Config/File.phpSYSPATH/classes/Kohana/Config/File.phpSYSPATH/classes/Kohana/Config/File/Reader.phpSYSPATH/classes/Kohana/Config/Reader.phpSYSPATH/classes/Kohana/Config/Source.phpSYSPATH/classes/Route.phpSYSPATH/classes/Kohana/Route.phpSYSPATH/classes/Request.phpSYSPATH/classes/Kohana/Request.phpSYSPATH/classes/HTTP/Request.phpSYSPATH/classes/Kohana/HTTP/Request.phpSYSPATH/classes/HTTP/Message.phpSYSPATH/classes/Kohana/HTTP/Message.phpSYSPATH/classes/HTTP/Header.phpSYSPATH/classes/Kohana/HTTP/Header.phpSYSPATH/classes/Request/Client/Internal.phpSYSPATH/classes/Kohana/Request/Client/Internal.phpSYSPATH/classes/Request/Client.phpSYSPATH/classes/Kohana/Request/Client.phpSYSPATH/classes/Arr.phpSYSPATH/classes/Kohana/Arr.phpSYSPATH/classes/Response.phpSYSPATH/classes/Kohana/Response.phpSYSPATH/classes/HTTP/Response.phpSYSPATH/classes/Kohana/HTTP/Response.phpSYSPATH/classes/Profiler.phpSYSPATH/classes/Kohana/Profiler.phpAPPPATH/classes/Controller/Agendamento.phpSYSPATH/classes/Controller/Template.phpSYSPATH/classes/Kohana/Controller/Template.phpSYSPATH/classes/Controller.phpSYSPATH/classes/Kohana/Controller.phpSYSPATH/classes/View.phpSYSPATH/classes/Kohana/View.phpAPPPATH/views/Index.phpSYSPATH/classes/URL.phpSYSPATH/classes/Kohana/URL.phpAPPPATH/views/agendamento/candidato.phpMODPATH/database/classes/DB.phpMODPATH/database/classes/Kohana/DB.phpMODPATH/database/classes/Database/Query/Builder/Select.phpMODPATH/database/classes/Kohana/Database/Query/Builder/Select.phpMODPATH/database/classes/Database/Query/Builder/Where.phpMODPATH/database/classes/Kohana/Database/Query/Builder/Where.phpMODPATH/database/classes/Database/Query/Builder.phpMODPATH/database/classes/Kohana/Database/Query/Builder.phpMODPATH/database/classes/Database/Query.phpMODPATH/database/classes/Kohana/Database/Query.phpMODPATH/database/classes/Database.phpMODPATH/database/classes/Kohana/Database.phpMODPATH/database/config/database.phpAPPPATH/config/database.phpSYSPATH/classes/Config/Group.phpSYSPATH/classes/Kohana/Config/Group.phpMODPATH/database/classes/Database/MySQL.phpMODPATH/database/classes/Kohana/Database/MySQL.phpMODPATH/database/classes/Database/Exception.phpMODPATH/database/classes/Kohana/Database/Exception.phpSYSPATH/classes/Debug.phpSYSPATH/classes/Kohana/Debug.phpSYSPATH/classes/Date.phpSYSPATH/classes/Kohana/Date.phpSYSPATH/views/kohana/error.phpSYSPATH/classes/UTF8.phpSYSPATH/classes/Kohana/UTF8.phpLoaded extensions (62)
CoredateereglibxmlopensslpcrezlibfilterhashjsonReflectionSPLsessionstandardapache2handlerbcmathbz2calendarctypecurldbadommbstringfileinfoftpgdgettexticonvimapinterbaseldapexifmcryptmssqlmysqlmysqliodbcPDOpdo_dblibPDO_Firebirdpdo_mysqlPDO_ODBCpdo_pgsqlpdo_sqlitepgsqlPharpspellSimpleXMLsoapsocketssybase_cttidytimezonedbtokenizerxmlwddxxmlreaderxmlrpcxmlwriterxslzipmhash$_GET
filialstring(4) "0003"$_SERVER
SCRIPT_URLstring(30) "/portal/agendamento/index.php/"SCRIPT_URIstring(58) "http://central.unisep.com.br/portal/agendamento/index.php/"LOG_SUBDIRstring(9) "central14"HTTP_ACCEPTstring(3) "*/*"HTTP_USER_AGENTstring(103) "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"HTTP_ACCEPT_ENCODINGstring(23) "gzip, br, zstd, deflate"HTTP_HOSTstring(21) "central.unisep.com.br"HTTP_VIAstring(45) "1.1 squid-proxy-5b5d847c96-swtsz (squid/6.13)"HTTP_X_FORWARDED_FORstring(9) "10.9.60.3"HTTP_CACHE_CONTROLstring(9) "max-age=0"HTTP_CONNECTIONstring(10) "keep-alive"PATHstring(29) "/sbin:/usr/sbin:/bin:/usr/bin"SERVER_SIGNATUREstring(0) ""SERVER_SOFTWAREstring(6) "Apache"SERVER_NAMEstring(21) "central.unisep.com.br"SERVER_ADDRstring(15) "186.202.132.176"SERVER_PORTstring(2) "80"REMOTE_ADDRstring(14) "216.73.216.157"DOCUMENT_ROOTstring(27) "/home/central14/public_html"SERVER_ADMINstring(31) "webmaster@central.unisep.com.br"SCRIPT_FILENAMEstring(56) "/home/central14/public_html/portal/agendamento/index.php"REMOTE_PORTstring(5) "41204"GATEWAY_INTERFACEstring(7) "CGI/1.1"SERVER_PROTOCOLstring(8) "HTTP/1.1"REQUEST_METHODstring(3) "GET"QUERY_STRINGstring(11) "filial=0003"REQUEST_URIstring(42) "/portal/agendamento/index.php/?filial=0003"SCRIPT_NAMEstring(29) "/portal/agendamento/index.php"PATH_INFOstring(1) "/"PATH_TRANSLATEDstring(37) "/home/central14/public_html/index.php"PHP_SELFstring(30) "/portal/agendamento/index.php/"REQUEST_TIME_FLOAT float 1766121911.079REQUEST_TIME integer 1766121911