-
MODPATH/gallery/helpers/access.php[ 127 ]
122 */ 123 static function required($perm_name, $item) { 124 if (!access::can($perm_name, $item)) { 125 if ($perm_name == "view") { 126 // Treat as if the item didn't exist, don't leak any information. 127 throw new Kohana_404_Exception(); 128 } else { 129 access::forbidden(); 130 } 131 } 132 }
-
MODPATH/image_block/controllers/image_block.php[ 23 ] » access_Core::required( argumenten )
perm_name
string(4) "view"
item
array(36) ( "protected: children" => string(5) "items" "protected: sorting" => array(0) "data_file" => NULL "private: data_file_error" => NULL "private: model_name" => string(4) "item" "protected: has_one" => array(0) "protected: belongs_to" => array(0) "protected: has_many" => array(0) "protected: has_and_belongs_to_many" => array(0) "protected: has_many_through" => array(0) "protected: load_with" => array(0) "protected: object" => array(33) ( "id" => NULL "album_cover_item_id" => NULL "captured" => NULL "created" => integer 1711667143 "description" => NULL "height" => NULL "left_ptr" => NULL "level" => NULL "mime_type" => NULL "name" => NULL "owner_id" => string(1) "1" "parent_id" => NULL "rand_key" => float 0,17707473979195 "relative_path_cache" => NULL "relative_url_cache" => NULL "resize_dirty" => integer 1 "resize_height" => NULL "resize_width" => NULL "right_ptr" => NULL "slug" => NULL "sort_column" => string(7) "created" "sort_order" => string(3) "ASC" "thumb_dirty" => integer 1 "thumb_height" => NULL "thumb_width" => NULL "title" => NULL "type" => NULL "updated" => NULL "view_count" => NULL "weight" => NULL "width" => NULL "view_1" => NULL "view_2" => NULL ) "protected: changed" => array(7) ( "created" => string(7) "created" "rand_key" => string(8) "rand_key" "thumb_dirty" => string(11) "thumb_dirty" "resize_dirty" => string(12) "resize_dirty" "sort_column" => string(11) "sort_column" "sort_order" => string(10) "sort_order" "owner_id" => string(8) "owner_id" ) "protected: related" => array(0) "protected: _valid" => bool FALSE "protected: _loaded" => bool FALSE "protected: _saved" => bool FALSE "protected: rules" => array(0) "protected: object_relations" => array(0) "protected: changed_relations" => array(0) "protected: object_name" => string(4) "item" "protected: object_plural" => string(5) "items" "protected: table_name" => string(5) "items" "protected: table_columns" => array(33) ( "id" => array(8) ( "type" => string(3) "int" "min" => integer -2147483648 "max" => integer 2147483647 "sql_type" => string(3) "int" "length" => string(1) "9" "default" => NULL "nullable" => bool FALSE "sequenced" => bool TRUE ) "album_cover_item_id" => array(8) ( "type" => string(3) "int" "min" => integer -2147483648 "max" => integer 2147483647 "sql_type" => string(3) "int" "length" => string(1) "9" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE ) "captured" => array(8) ( "type" => string(3) "int" "min" => integer -2147483648 "max" => integer 2147483647 "sql_type" => string(3) "int" "length" => string(1) "9" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE ) "created" => array(8) ( "type" => string(3) "int" "min" => integer -2147483648 "max" => integer 2147483647 "sql_type" => string(3) "int" "length" => string(1) "9" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE ) "description" => array(5) ( "type" => string(6) "string" "sql_type" => string(4) "text" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE ) "height" => array(8) ( "type" => string(3) "int" "min" => integer -2147483648 "max" => integer 2147483647 "sql_type" => string(3) "int" "length" => string(1) "9" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE ) "left_ptr" => array(8) ( "type" => string(3) "int" "min" => integer -2147483648 "max" => integer 2147483647 "sql_type" => string(3) "int" "length" => string(1) "9" "default" => NULL "nullable" => bool FALSE "sequenced" => bool FALSE ) "level" => array(8) ( "type" => string(3) "int" "min" => integer -2147483648 "max" => integer 2147483647 "sql_type" => string(3) "int" "length" => string(1) "9" "default" => NULL "nullable" => bool FALSE "sequenced" => bool FALSE ) "mime_type" => array(6) ( "type" => string(6) "string" "sql_type" => string(7) "varchar" "length" => string(2) "64" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE ) "name" => array(6) ( "type" => string(6) "string" "sql_type" => string(7) "varchar" "length" => string(3) "255" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE ) "owner_id" => array(8) ( "type" => string(3) "int" "min" => integer -2147483648 "max" => integer 2147483647 "sql_type" => string(3) "int" "length" => string(1) "9" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE ) "parent_id" => array(8) ( "type" => string(3) "int" "min" => integer -2147483648 "max" => integer 2147483647 "sql_type" => string(3) "int" "length" => string(1) "9" "default" => NULL "nullable" => bool FALSE "sequenced" => bool FALSE ) "rand_key" => array(9) ( "type" => string(5) "float" "exact" => bool TRUE "sql_type" => string(7) "decimal" "length" => string(5) "11,10" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE "precision" => string(2) "11" "scale" => string(2) "10" ) "relative_path_cache" => array(6) ( "type" => string(6) "string" "sql_type" => string(7) "varchar" "length" => string(3) "255" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE ) "relative_url_cache" => array(6) ( "type" => string(6) "string" "sql_type" => string(7) "varchar" "length" => string(3) "255" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE ) "resize_dirty" => array(8) ( "type" => string(3) "int" "min" => integer -128 "max" => integer 127 "sql_type" => string(7) "tinyint" "length" => string(1) "1" "default" => string(1) "1" "nullable" => bool TRUE "sequenced" => bool FALSE ) "resize_height" => array(8) ( "type" => string(3) "int" "min" => integer -2147483648 "max" => integer 2147483647 "sql_type" => string(3) "int" "length" => string(1) "9" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE ) "resize_width" => array(8) ( "type" => string(3) "int" "min" => integer -2147483648 "max" => integer 2147483647 "sql_type" => string(3) "int" "length" => string(1) "9" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE ) "right_ptr" => array(8) ( "type" => string(3) "int" "min" => integer -2147483648 "max" => integer 2147483647 "sql_type" => string(3) "int" "length" => string(1) "9" "default" => NULL "nullable" => bool FALSE "sequenced" => bool FALSE ) "slug" => array(6) ( "type" => string(6) "string" "sql_type" => string(7) "varchar" "length" => string(3) "255" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE ) "sort_column" => array(6) ( "type" => string(6) "string" "sql_type" => string(7) "varchar" "length" => string(2) "64" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE ) "sort_order" => array(7) ( "type" => string(6) "string" "exact" => bool TRUE "sql_type" => string(4) "char" "length" => string(1) "4" "default" => string(3) "ASC" "nullable" => bool TRUE "sequenced" => bool FALSE ) "thumb_dirty" => array(8) ( "type" => string(3) "int" "min" => integer -128 "max" => integer 127 "sql_type" => string(7) "tinyint" "length" => string(1) "1" "default" => string(1) "1" "nullable" => bool TRUE "sequenced" => bool FALSE ) "thumb_height" => array(8) ( "type" => string(3) "int" "min" => integer -2147483648 "max" => integer 2147483647 "sql_type" => string(3) "int" "length" => string(1) "9" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE ) "thumb_width" => array(8) ( "type" => string(3) "int" "min" => integer -2147483648 "max" => integer 2147483647 "sql_type" => string(3) "int" "length" => string(1) "9" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE ) "title" => array(6) ( "type" => string(6) "string" "sql_type" => string(7) "varchar" "length" => string(3) "255" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE ) "type" => array(6) ( "type" => string(6) "string" "sql_type" => string(7) "varchar" "length" => string(2) "32" "default" => NULL "nullable" => bool FALSE "sequenced" => bool FALSE ) "updated" => array(8) ( "type" => string(3) "int" "min" => integer -2147483648 "max" => integer 2147483647 "sql_type" => string(3) "int" "length" => string(1) "9" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE ) "view_count" => array(8) ( "type" => string(3) "int" "min" => integer -2147483648 "max" => integer 2147483647 "sql_type" => string(3) "int" "length" => string(1) "9" "default" => string(1) "0" "nullable" => bool TRUE "sequenced" => bool FALSE ) "weight" => array(8) ( "type" => string(3) "int" "min" => integer -2147483648 "max" => integer 2147483647 "sql_type" => string(3) "int" "length" => string(1) "9" "default" => string(1) "0" "nullable" => bool FALSE "sequenced" => bool FALSE ) "width" => array(8) ( "type" => string(3) "int" "min" => integer -2147483648 "max" => integer 2147483647 "sql_type" => string(3) "int" "length" => string(1) "9" "default" => NULL "nullable" => bool TRUE "sequenced" => bool FALSE ) "view_1" => array(8) ( "type" => string(6) "string" "binary" => bool TRUE "exact" => bool TRUE "sql_type" => string(6) "binary" "length" => string(1) "1" "default" => string(1) "0" "nullable" => bool TRUE "sequenced" => bool FALSE ) "view_2" => array(8) ( "type" => string(6) "string" "binary" => bool TRUE "exact" => bool TRUE "sql_type" => string(6) "binary" "length" => string(1) "1" "default" => string(1) "0" "nullable" => bool TRUE "sequenced" => bool FALSE ) ) "protected: ignored_columns" => NULL "protected: updated_column" => NULL "protected: created_column" => NULL "protected: primary_key" => string(2) "id" "protected: primary_val" => string(4) "name" "protected: foreign_key" => array(0) "protected: table_names_plural" => bool TRUE "protected: reload_on_wakeup" => bool TRUE "protected: db (type: Database_Mysqli)" => string(52) "Database_Mysqli object - details omitted for display" "protected: db_applied" => array(0) "protected: db_builder (type: Database_Builder)" => array(18) ( "protected: order_directions" => array(3) ( 0 => string(3) "ASC" 1 => string(4) "DESC" 2 => string(6) "RAND()" ) "protected: db (type: Database_Mysqli)" => string(52) "Database_Mysqli object - details omitted for display" "protected: select" => array(0) "protected: from" => array(0) "protected: join" => array(0) "protected: where" => array(0) "protected: group_by" => array(0) "protected: having" => array(0) "protected: order_by" => array(0) "protected: limit" => NULL "protected: offset" => NULL "protected: set" => array(0) "protected: columns" => array(0) "protected: values" => array(0) "protected: type" => NULL "protected: distinct" => bool FALSE "protected: reset" => bool TRUE "protected: ttl" => bool FALSE ) "protected: with_applied" => array(0) )
18 * Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. 19 */ 20class Image_Block_Controller extends Controller { 21 public function random($item_id) { 22 $item = ORM::factory("item", $item_id); 23 access::required("view", $item); 24 item::set_display_context_callback("Albums_Controller::get_display_context"); 25 url::redirect($item->abs_url()); 26 } 27}
-
{PHP Interne Call} » Image_Block_Controller->random( argumenten )
item_id
string(2) "45"
-
SYSPATH/core/Kohana.php[ 331 ] » ReflectionMethod->invokeArgs( argumenten )
object
array(0)
args
array(1) ( 0 => string(2) "45" )
326 327 // Start the controller execution benchmark 328 Benchmark::start(SYSTEM_BENCHMARK.'_controller_execution'); 329 330 // Execute the controller method 331 $method->invokeArgs($controller, $arguments); 332 333 // Controller method has been executed 334 Event::run('system.post_controller'); 335 336 // Stop the controller execution benchmark
-
SYSPATH/core/Event.php[ 208 ] » Kohana_Core::instance( argumenten )
0
NULL
203 Event::$data =& $data; 204 $callbacks = Event::get($name); 205 206 foreach ($callbacks as $callback) 207 { 208 call_user_func_array($callback, array(&$data)); 209 } 210 211 // Do this to prevent data from getting 'stuck' 212 $clear_data = ''; 213 Event::$data =& $clear_data;
-
APPPATH/Bootstrap.php[ 67 ] » Event_Core::run( argumenten )
name
string(14) "system.execute"
62 63// End system_initialization 64Benchmark::stop(SYSTEM_BENCHMARK.'_system_initialization'); 65 66// Make the magic happen! 67Event::run('system.execute');
-
DOCROOT/index.php[ 116 ] » require( argumenten )
0
string(86) "/home/nico/domains/tabmetaalspuiten.nl/public_html/fotoalbum/application/Bootstrap.php"
111if (file_exists("local.php")) { 112 include("local.php"); 113} 114 115// Initialize. 116require APPPATH . "Bootstrap" . EXT;