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)
0
string(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 11
string(56) "SELECT * FROM `reservaprouni` ORDER BY `id` DESC LIMIT 1"
2
bool FALSE3
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/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)
0
string(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)
0
string(90) "/home/central14/public_html/portal/agendamento/application/views/agendamento/candidato.php"
1
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/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 67
SYSPATH/classes/Kohana/View.php [ 61 ] » include(arguments)
0
string(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)
0
string(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 } 49
SYSPATH/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.php
APPPATH/bootstrap.php
SYSPATH/classes/Kohana/Core.php
SYSPATH/classes/Kohana.php
SYSPATH/classes/I18n.php
SYSPATH/classes/Kohana/I18n.php
SYSPATH/classes/Cookie.php
SYSPATH/classes/Kohana/Cookie.php
SYSPATH/classes/HTTP.php
SYSPATH/classes/Kohana/HTTP.php
SYSPATH/classes/Kohana/Exception.php
SYSPATH/classes/Kohana/Kohana/Exception.php
SYSPATH/classes/Log.php
SYSPATH/classes/Kohana/Log.php
SYSPATH/classes/Config.php
SYSPATH/classes/Kohana/Config.php
SYSPATH/classes/Log/File.php
SYSPATH/classes/Kohana/Log/File.php
SYSPATH/classes/Log/Writer.php
SYSPATH/classes/Kohana/Log/Writer.php
SYSPATH/classes/Config/File.php
SYSPATH/classes/Kohana/Config/File.php
SYSPATH/classes/Kohana/Config/File/Reader.php
SYSPATH/classes/Kohana/Config/Reader.php
SYSPATH/classes/Kohana/Config/Source.php
SYSPATH/classes/Route.php
SYSPATH/classes/Kohana/Route.php
SYSPATH/classes/Request.php
SYSPATH/classes/Kohana/Request.php
SYSPATH/classes/HTTP/Request.php
SYSPATH/classes/Kohana/HTTP/Request.php
SYSPATH/classes/HTTP/Message.php
SYSPATH/classes/Kohana/HTTP/Message.php
SYSPATH/classes/HTTP/Header.php
SYSPATH/classes/Kohana/HTTP/Header.php
SYSPATH/classes/Request/Client/Internal.php
SYSPATH/classes/Kohana/Request/Client/Internal.php
SYSPATH/classes/Request/Client.php
SYSPATH/classes/Kohana/Request/Client.php
SYSPATH/classes/Arr.php
SYSPATH/classes/Kohana/Arr.php
SYSPATH/classes/Response.php
SYSPATH/classes/Kohana/Response.php
SYSPATH/classes/HTTP/Response.php
SYSPATH/classes/Kohana/HTTP/Response.php
SYSPATH/classes/Profiler.php
SYSPATH/classes/Kohana/Profiler.php
APPPATH/classes/Controller/Agendamento.php
SYSPATH/classes/Controller/Template.php
SYSPATH/classes/Kohana/Controller/Template.php
SYSPATH/classes/Controller.php
SYSPATH/classes/Kohana/Controller.php
SYSPATH/classes/View.php
SYSPATH/classes/Kohana/View.php
APPPATH/views/Index.php
SYSPATH/classes/URL.php
SYSPATH/classes/Kohana/URL.php
APPPATH/views/agendamento/candidato.php
MODPATH/database/classes/DB.php
MODPATH/database/classes/Kohana/DB.php
MODPATH/database/classes/Database/Query/Builder/Select.php
MODPATH/database/classes/Kohana/Database/Query/Builder/Select.php
MODPATH/database/classes/Database/Query/Builder/Where.php
MODPATH/database/classes/Kohana/Database/Query/Builder/Where.php
MODPATH/database/classes/Database/Query/Builder.php
MODPATH/database/classes/Kohana/Database/Query/Builder.php
MODPATH/database/classes/Database/Query.php
MODPATH/database/classes/Kohana/Database/Query.php
MODPATH/database/classes/Database.php
MODPATH/database/classes/Kohana/Database.php
MODPATH/database/config/database.php
APPPATH/config/database.php
SYSPATH/classes/Config/Group.php
SYSPATH/classes/Kohana/Config/Group.php
MODPATH/database/classes/Database/MySQL.php
MODPATH/database/classes/Kohana/Database/MySQL.php
MODPATH/database/classes/Database/Exception.php
MODPATH/database/classes/Kohana/Database/Exception.php
SYSPATH/classes/Debug.php
SYSPATH/classes/Kohana/Debug.php
SYSPATH/classes/Date.php
SYSPATH/classes/Kohana/Date.php
SYSPATH/views/kohana/error.php
SYSPATH/classes/UTF8.php
SYSPATH/classes/Kohana/UTF8.php
Loaded extensions (62)
Core
date
ereg
libxml
openssl
pcre
zlib
filter
hash
json
Reflection
SPL
session
standard
apache2handler
bcmath
bz2
calendar
ctype
curl
dba
dom
mbstring
fileinfo
ftp
gd
gettext
iconv
imap
interbase
ldap
exif
mcrypt
mssql
mysql
mysqli
odbc
PDO
pdo_dblib
PDO_Firebird
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
pgsql
Phar
pspell
SimpleXML
soap
sockets
sybase_ct
tidy
timezonedb
tokenizer
xml
wddx
xmlreader
xmlrpc
xmlwriter
xsl
zip
mhash
$_GET
filial
string(4) "0003"
$_SERVER
SCRIPT_URL
string(30) "/portal/agendamento/index.php/"
SCRIPT_URI
string(58) "http://central.unisep.com.br/portal/agendamento/index.php/"
LOG_SUBDIR
string(9) "central14"
HTTP_ACCEPT
string(3) "*/*"
HTTP_USER_AGENT
string(103) "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)"
HTTP_ACCEPT_ENCODING
string(23) "gzip, br, zstd, deflate"
HTTP_HOST
string(21) "central.unisep.com.br"
PATH
string(29) "/sbin:/usr/sbin:/bin:/usr/bin"
SERVER_SIGNATURE
string(0) ""
SERVER_SOFTWARE
string(6) "Apache"
SERVER_NAME
string(21) "central.unisep.com.br"
SERVER_ADDR
string(15) "186.202.132.176"
SERVER_PORT
string(2) "80"
REMOTE_ADDR
string(12) "3.137.210.16"
DOCUMENT_ROOT
string(27) "/home/central14/public_html"
SERVER_ADMIN
string(31) "webmaster@central.unisep.com.br"
SCRIPT_FILENAME
string(56) "/home/central14/public_html/portal/agendamento/index.php"
REMOTE_PORT
string(5) "30302"
GATEWAY_INTERFACE
string(7) "CGI/1.1"
SERVER_PROTOCOL
string(8) "HTTP/1.1"
REQUEST_METHOD
string(3) "GET"
QUERY_STRING
string(11) "filial=0003"
REQUEST_URI
string(42) "/portal/agendamento/index.php/?filial=0003"
SCRIPT_NAME
string(29) "/portal/agendamento/index.php"
PATH_INFO
string(1) "/"
PATH_TRANSLATED
string(37) "/home/central14/public_html/index.php"
PHP_SELF
string(30) "/portal/agendamento/index.php/"
REQUEST_TIME_FLOAT
float 1731682258.194REQUEST_TIME
integer 1731682258