APPPATH/views/widget/comments/form.php [ 17 ]
12 * @var bool $auth13 */?>14 <? if ( ! isset($errors)) $errors = array() ?>15 <? if ( ! isset($rating) OR ! in_array($rating, array(1, 2, 3, 4, 5))) $rating = 0 ?>16 <?=Form::open(NULL, array('id' => 'comment-form', 'class' => 'wrap well well-sm parent-' . $parent_id))?>17 <? if ( ! $auth): ?>18 <div class="form-group <?=Arr::get($errors, 'username') ? 'has-error' : NULL?>">19 <?=Form::label('form-username', __('Your name'), array('class' => 'control-label'))?>20 <?=Form::input('username', isset($username) ? $username : NULL, array('id' => 'form-username', 'class' => 'form-control'))?>21 <div class="help-block"><?=Arr::get($errors, 'username')?></div>22 </div>23
-
APPPATH/views/widget/comments/form.php [ 17 ] » Kohana_Core::error_handler ( arguments )
0 8 1 Undefined variable: auth 2 /var/home/adminpublic_html/application/views/widget/comments/form.php 3 17 4 array(12) { ["kohana_view_filename"] => string(84) "/var/home/adminpublic_html/application/views/widget/comments/form.php" ["kohana_view_data"] => array(6) { ["token"] => string(40) "2698c56e7740f82c3f1c77b56c46ad4bdeb27205" ["city_code"] => string(6) "ntagil" ["type"] => string(7) "profile" ["page_id"] => string(12) "'+$(this).attr("data_page_id")+'" ["page_name"] => string(14) "'+$(this).attr("data_page_name")+'" ["parent_id"] => int(0) } ["token"] => string(40) "2698c56e7740f82c3f1c77b56c46ad4bdeb27205" ["city_code"] => string(6) "ntagil" ["type"] => string(7) "profile" ["page_id"] => string(12) "'+$(this).attr("data_page_id")+'" ["page_name"] => string(14) "'+$(this).attr("data_page_name")+'" ["parent_id"] => int(0) ["city"] => &object(stdClass)#175 (28) { ["id"] => int(45) ["name"] => string(23) "Нижний Тагил" ["code"] => string(6) "ntagil" ["geo_id"] => string(16) "6333612177752066" ["country_code"] => string(2) "ru" ["language"] => string(2) "ru" ["transport_routes_count"] => int(68) ["timezone"] => string(18) "Asia/Yekaterinburg" ["actual_extent"] => string(110) "POLYGON((59.788601 58.091707,60.347887 58.078228,60.317394 57.749299,59.763185 57.762607,59.788601 58.091707))" ["road_extent"] => string(110) "POLYGON((59.788601 58.091707,60.347887 58.078228,60.317394 57.749299,59.763185 57.762607,59.788601 58.091707))" ["centroid"] => string(43) "POINT(59.97226524778727 57.907637067330796)" ["firmscount"] => int(6467) ["filialscount"] => int(8650) ["rubricscount"] => int(915) ["geoscount"] => int(21692) ["transport"] => bool(true) ["flamp"] => bool(true) ["zoomlevel"] => string(2) "11" ["min_zoomlevel"] => string(1) "9" ["max_zoomlevel"] => string(2) "18" ["grammatical_cases"] => object(stdClass)#176 (3) { ["genitive"] => string(27) "Нижнего Тагила" ["prepositional"] => string(25) "Нижнем Тагиле" ["accusative"] => string(23) "Нижний Тагил" } ["routing"] => bool(true) ["dailyImportAds"] => bool(true) ["metro"] => bool(false) ["is_3d"] => bool(true) ["timezone_as_offset"] => int(300) ["lon"] => string(17) "59.97226524778727" ["lat"] => string(18) "57.907637067330796" } ["seo_title"] => &string(67) "Добавить отзыв организации — ГИСВИД" ["errors"] => array(0) { } ["rating"] => int(0) }
12 * @var bool $auth13 */?>14 <? if ( ! isset($errors)) $errors = array() ?>15 <? if ( ! isset($rating) OR ! in_array($rating, array(1, 2, 3, 4, 5))) $rating = 0 ?>16 <?=Form::open(NULL, array('id' => 'comment-form', 'class' => 'wrap well well-sm parent-' . $parent_id))?>17 <? if ( ! $auth): ?>18 <div class="form-group <?=Arr::get($errors, 'username') ? 'has-error' : NULL?>">19 <?=Form::label('form-username', __('Your name'), array('class' => 'control-label'))?>20 <?=Form::input('username', isset($username) ? $username : NULL, array('id' => 'form-username', 'class' => 'form-control'))?>21 <div class="help-block"><?=Arr::get($errors, 'username')?></div>22 </div>23
-
SYSPATH/classes/Kohana/View.php [ 61 ] » include ( arguments )
0 /var/home/adminpublic_html/application/views/widget/comments/form.php 56 ob_start();57 58 try59 {60 // Load the view within the current scope61 include $kohana_view_filename;62 }63 catch (Exception $e)64 {65 // Delete the output buffer66 ob_end_clean();67
-
SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture ( arguments )
0 /var/home/adminpublic_html/application/views/widget/comments/form.php 1 array(6) { ["token"] => string(40) "2698c56e7740f82c3f1c77b56c46ad4bdeb27205" ["city_code"] => string(6) "ntagil" ["type"] => string(7) "profile" ["page_id"] => string(12) "'+$(this).attr("data_page_id")+'" ["page_name"] => string(14) "'+$(this).attr("data_page_name")+'" ["parent_id"] => int(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 output348 return View::capture($this->_file, $this->_data);349 }350 351 } // End View352
-
SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render ( )
223 */224 public function __toString()225 {226 try227 {228 return $this->render();229 }230 catch (Exception $e)231 {232 /**233 * Display the exception message.234 235
-
{PHP internal call} » Kohana_View->__toString ( )
-
APPPATH/views/page/gis/reviews/create.php [ 106 ] » str_replace ( arguments )
search replace subject object(View)#315 (2) { ["_file":protected] => string(84) "/var/home/adminpublic_html/application/views/widget/comments/form.php" ["_data":protected] => array(6) { ["token"] => string(40) "2698c56e7740f82c3f1c77b56c46ad4bdeb27205" ["city_code"] => string(6) "ntagil" ["type"] => string(7) "profile" ["page_id"] => string(12) "'+$(this).attr("data_page_id")+'" ["page_name"] => string(14) "'+$(this).attr("data_page_name")+'" ["parent_id"] => int(0) } }
101 'type' => Model_Comment::PROFILE,102 'page_id' => ''+$(this).attr("data_page_id")+'',103 'page_name' => ''+$(this).attr("data_page_name")+'',104 'parent_id' => 0,105 ));106 $form = str_replace("\r\n", "", $form);107 $form = str_replace(''+$(this).attr("data_page_id")+'', '\'+$(this).attr("data_page_id")+\'', $form);108 $form = str_replace(''+$(this).attr("data_page_name")+'', '\'+$(this).attr("data_page_name")+\'', $form);109 ?>110 111 <? Assets::codes('add_comment', <<<JS112
-
SYSPATH/classes/Kohana/View.php [ 61 ] » include ( arguments )
0 /var/home/adminpublic_html/application/views/page/gis/reviews/create.php 56 ob_start();57 58 try59 {60 // Load the view within the current scope61 include $kohana_view_filename;62 }63 catch (Exception $e)64 {65 // Delete the output buffer66 ob_end_clean();67
-
SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture ( arguments )
0 /var/home/adminpublic_html/application/views/page/gis/reviews/create.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 output348 return View::capture($this->_file, $this->_data);349 }350 351 } // End View352
-
SYSPATH/classes/Kohana/View.php [ 228 ] » Kohana_View->render ( )
223 */224 public function __toString()225 {226 try227 {228 return $this->render();229 }230 catch (Exception $e)231 {232 /**233 * Display the exception message.234 235
-
APPPATH/views/layout.php [ 96 ] » Kohana_View->__toString ( )
91 (adsbygoogle = window.adsbygoogle || []).push({}); 92 </script> 93 </div> 94 <? endif ?> 95 <div class="content clearfix"> 96 <?=$content?> 97 </div> 98 </div> 99 100 <div class="container">101 <footer class="clearfix">102
-
SYSPATH/classes/Kohana/View.php [ 61 ] » include ( arguments )
0 /var/home/adminpublic_html/application/views/layout.php 56 ob_start();57 58 try59 {60 // Load the view within the current scope61 include $kohana_view_filename;62 }63 catch (Exception $e)64 {65 // Delete the output buffer66 ob_end_clean();67
-
SYSPATH/classes/Kohana/View.php [ 348 ] » Kohana_View::capture ( arguments )
0 /var/home/adminpublic_html/application/views/layout.php 1 array(3) { ["head_include"] => NULL ["title"] => string(67) "Добавить отзыв организации — ГИСВИД" ["content"] => object(View)#311 (2) { ["_file":protected] => string(87) "/var/home/adminpublic_html/application/views/page/gis/reviews/create.php" ["_data":protected] => 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 output348 return View::capture($this->_file, $this->_data);349 }350 351 } // End View352
-
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 50
-
APPPATH/classes/Controller/City.php [ 57 ] » Kohana_Controller_Template->after ( )
52 53 View::bind_global('seo_title', $seo_title);54 55 try56 {57 parent::after();58 }59 catch (ErrorException $e)60 {61 throw new HTTP_Exception_500($e->getMessage());62 }63
-
APPPATH/classes/Controller/Gis.php [ 19 ] » Controller_City->after ( )
14 Assets::js('2gis', 'http://catalog.api.2gis.ru/assets/apitracker.js?version=1.3', NULL, FALSE, array('weight' => -8));15 }16 17 public function after()18 {19 parent::after();20 21 if ($this->request->action() == 'profile' AND $this->request->param('id') == '4504127908585253')22 {23 Model::factory('Stat')->cache($this->request->param('id'));24 }25
-
SYSPATH/classes/Kohana/Controller.php [ 87 ] » Controller_Gis->after ( )
82 83 // Execute the action itself84 $this->{$action}();85 86 // Execute the "after action" method87 $this->after();88 89 // Return the response90 return $this->response;91 }92 93
-
{PHP internal call} » Kohana_Controller->execute ( )
-
SYSPATH/classes/Kohana/Request/Client/Internal.php [ 97 ] » ReflectionMethod->invoke ( arguments )
0 object(Controller_Reviews)#47 (6) { ["template"] => object(View)#307 (2) { ["_file":protected] => string(70) "/var/home/adminpublic_html/application/views/layout.php" ["_data":protected] => array(3) { ["head_include"] => NULL ["title"] => string(67) "Добавить отзыв организации — ГИСВИД" ["content"] => object(View)#311 (2) { ["_file":protected] => string(87) "/var/home/adminpublic_html/application/views/page/gis/reviews/create.php" ["_data":protected] => array(0) { } } } } ["city"] => object(stdClass)#175 (28) { ["id"] => int(45) ["name"] => string(23) "Нижний Тагил" ["code"] => string(6) "ntagil" ["geo_id"] => string(16) "6333612177752066" ["country_code"] => string(2) "ru" ["language"] => string(2) "ru" ["transport_routes_count"] => int(68) ["timezone"] => string(18) "Asia/Yekaterinburg" ["actual_extent"] => string(110) "POLYGON((59.788601 58.091707,60.347887 58.078228,60.317394 57.749299,59.763185 57.762607,59.788601 58.091707))" ["road_extent"] => string(110) "POLYGON((59.788601 58.091707,60.347887 58.078228,60.317394 57.749299,59.763185 57.762607,59.788601 58.091707))" ["centroid"] => string(43) "POINT(59.97226524778727 57.907637067330796)" ["firmscount"] => int(6467) ["filialscount"] => int(8650) ["rubricscount"] => int(915) ["geoscount"] => int(21692) ["transport"] => bool(true) ["flamp"] => bool(true) ["zoomlevel"] => string(2) "11" ["min_zoomlevel"] => string(1) "9" ["max_zoomlevel"] => string(2) "18" ["grammatical_cases"] => object(stdClass)#176 (3) { ["genitive"] => string(27) "Нижнего Тагила" ["prepositional"] => string(25) "Нижнем Тагиле" ["accusative"] => string(23) "Нижний Тагил" } ["routing"] => bool(true) ["dailyImportAds"] => bool(true) ["metro"] => bool(false) ["is_3d"] => bool(true) ["timezone_as_offset"] => int(300) ["lon"] => string(17) "59.97226524778727" ["lat"] => string(18) "57.907637067330796" } ["auto_render"] => bool(true) ["_devel_auth":protected] => object(Auth_File)#306 (3) { ["_users":protected] => array(1) { ["devel"] => string(64) "fab51a3e0a5907bd4f90d0e0c4797f24cf77a8f8ae03eb96b771ce2b261f0096" } ["_session":protected] => object(Session_Native)#305 (5) { ["_name":protected] => string(7) "session" ["_lifetime":protected] => int(0) ["_encrypted":protected] => bool(false) ["_data":protected] => &array(2) { ["last_active"] => int(1431828760) ["security_token"] => string(40) "2698c56e7740f82c3f1c77b56c46ad4bdeb27205" } ["_destroyed":protected] => bool(false) } ["_config":protected] => array(7) { ["driver"] => string(4) "file" ["hash_method"] => string(6) "sha256" ["hash_key"] => string(10) "eqi87mup9q" ["lifetime"] => int(3600) ["session_type"] => string(6) "native" ["session_key"] => string(10) "auth_devel" ["users"] => array(1) { ["devel"] => string(64) "fab51a3e0a5907bd4f90d0e0c4797f24cf77a8f8ae03eb96b771ce2b261f0096" } } } ["request"] => object(Request)#41 (19) { ["_requested_with":protected] => NULL ["_method":protected] => string(3) "GET" ["_protocol":protected] => string(8) "HTTP/1.0" ["_secure":protected] => bool(false) ["_referrer":protected] => string(31) "/ntagil/reviews" ["_route":protected] => object(Route)#39 (5) { ["_filters":protected] => array(0) { } ["_uri":protected] => string(39) "<city>(/<controller>(/<action>(/<id>)))" ["_regex":protected] => array(1) { ["city"] => string(8) "[-_a-z]+" } ["_defaults":protected] => array(2) { ["controller"] => string(4) "city" ["action"] => string(5) "index" } ["_route_regex":protected] => string(114) "#^(?P<city>[-_a-z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" } ["_routes":protected] => array(0) { } ["_header":protected] => object(HTTP_Header)#42 (5) { ["_accept_content":protected] => NULL ["_accept_charset":protected] => NULL ["_accept_encoding":protected] => NULL ["_accept_language":protected] => NULL ["storage":"ArrayObject":private] => array(0) { } } ["_body":protected] => NULL ["_directory":protected] => string(0) "" ["_controller":protected] => string(7) "Reviews" ["_action":protected] => string(6) "create" ["_uri":protected] => string(21) "ntagil/reviews/create" ["_external":protected] => bool(false) ["_params":protected] => array(1) { ["city"] => string(6) "ntagil" } ["_get":protected] => array(0) { } ["_post":protected] => array(0) { } ["_cookies":protected] => array(3) { ["city"] => string(6) "ntagil" ["classifieds_view"] => string(4) "list" ["session"] => NULL } ["_client":protected] => object(Request_Client_Internal)#43 (9) { ["_previous_environment":protected] => NULL ["_cache":protected] => NULL ["_follow":protected] => bool(false) ["_follow_headers":protected] => array(1) { [0] => string(13) "Authorization" } ["_strict_redirect":protected] => bool(true) ["_header_callbacks":protected] => array(1) { ["Location"] => string(34) "Request_Client::on_header_location" } ["_max_callback_depth":protected] => int(5) ["_callback_depth":protected] => int(1) ["_callback_params":protected] => array(0) { } } } ["response"] => object(Response)#44 (5) { ["_status":protected] => int(200) ["_header":protected] => object(HTTP_Header)#45 (5) { ["_accept_content":protected] => NULL ["_accept_charset":protected] => NULL ["_accept_encoding":protected] => NULL ["_accept_language":protected] => NULL ["storage":"ArrayObject":private] => array(0) { } } ["_body":protected] => string(0) "" ["_cookies":protected] => array(0) { } ["_protocol":protected] => NULL } }
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');103
-
SYSPATH/classes/Kohana/Request/Client.php [ 114 ] » Kohana_Request_Client_Internal->execute_request ( arguments )
0 object(Request)#41 (19) { ["_requested_with":protected] => NULL ["_method":protected] => string(3) "GET" ["_protocol":protected] => string(8) "HTTP/1.0" ["_secure":protected] => bool(false) ["_referrer":protected] => string(31) "/ntagil/reviews" ["_route":protected] => object(Route)#39 (5) { ["_filters":protected] => array(0) { } ["_uri":protected] => string(39) "<city>(/<controller>(/<action>(/<id>)))" ["_regex":protected] => array(1) { ["city"] => string(8) "[-_a-z]+" } ["_defaults":protected] => array(2) { ["controller"] => string(4) "city" ["action"] => string(5) "index" } ["_route_regex":protected] => string(114) "#^(?P<city>[-_a-z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" } ["_routes":protected] => array(0) { } ["_header":protected] => object(HTTP_Header)#42 (5) { ["_accept_content":protected] => NULL ["_accept_charset":protected] => NULL ["_accept_encoding":protected] => NULL ["_accept_language":protected] => NULL ["storage":"ArrayObject":private] => array(0) { } } ["_body":protected] => NULL ["_directory":protected] => string(0) "" ["_controller":protected] => string(7) "Reviews" ["_action":protected] => string(6) "create" ["_uri":protected] => string(21) "ntagil/reviews/create" ["_external":protected] => bool(false) ["_params":protected] => array(1) { ["city"] => string(6) "ntagil" } ["_get":protected] => array(0) { } ["_post":protected] => array(0) { } ["_cookies":protected] => array(3) { ["city"] => string(6) "ntagil" ["classifieds_view"] => string(4) "list" ["session"] => NULL } ["_client":protected] => object(Request_Client_Internal)#43 (9) { ["_previous_environment":protected] => NULL ["_cache":protected] => NULL ["_follow":protected] => bool(false) ["_follow_headers":protected] => array(1) { [0] => string(13) "Authorization" } ["_strict_redirect":protected] => bool(true) ["_header_callbacks":protected] => array(1) { ["Location"] => string(34) "Request_Client::on_header_location" } ["_max_callback_depth":protected] => int(5) ["_callback_depth":protected] => int(1) ["_callback_params":protected] => array(0) { } } }
1 object(Response)#44 (5) { ["_status":protected] => int(200) ["_header":protected] => object(HTTP_Header)#45 (5) { ["_accept_content":protected] => NULL ["_accept_charset":protected] => NULL ["_accept_encoding":protected] => NULL ["_accept_language":protected] => NULL ["storage":"ArrayObject":private] => array(0) { } } ["_body":protected] => string(0) "" ["_cookies":protected] => array(0) { } ["_protocol":protected] => NULL }
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 callbacks117 foreach ($this->header_callbacks() as $header => $callback)118 {119 if ($response->headers($header))120
-
SYSPATH/classes/Kohana/Request.php [ 990 ] » Kohana_Request_Client->execute ( arguments )
0 object(Request)#41 (19) { ["_requested_with":protected] => NULL ["_method":protected] => string(3) "GET" ["_protocol":protected] => string(8) "HTTP/1.0" ["_secure":protected] => bool(false) ["_referrer":protected] => string(31) "/ntagil/reviews" ["_route":protected] => object(Route)#39 (5) { ["_filters":protected] => array(0) { } ["_uri":protected] => string(39) "<city>(/<controller>(/<action>(/<id>)))" ["_regex":protected] => array(1) { ["city"] => string(8) "[-_a-z]+" } ["_defaults":protected] => array(2) { ["controller"] => string(4) "city" ["action"] => string(5) "index" } ["_route_regex":protected] => string(114) "#^(?P<city>[-_a-z]+)(?:/(?P<controller>[^/.,;?\n]++)(?:/(?P<action>[^/.,;?\n]++)(?:/(?P<id>[^/.,;?\n]++))?)?)?$#uD" } ["_routes":protected] => array(0) { } ["_header":protected] => object(HTTP_Header)#42 (5) { ["_accept_content":protected] => NULL ["_accept_charset":protected] => NULL ["_accept_encoding":protected] => NULL ["_accept_language":protected] => NULL ["storage":"ArrayObject":private] => array(0) { } } ["_body":protected] => NULL ["_directory":protected] => string(0) "" ["_controller":protected] => string(7) "Reviews" ["_action":protected] => string(6) "create" ["_uri":protected] => string(21) "ntagil/reviews/create" ["_external":protected] => bool(false) ["_params":protected] => array(1) { ["city"] => string(6) "ntagil" } ["_get":protected] => array(0) { } ["_post":protected] => array(0) { } ["_cookies":protected] => array(3) { ["city"] => string(6) "ntagil" ["classifieds_view"] => string(4) "list" ["session"] => NULL } ["_client":protected] => object(Request_Client_Internal)#43 (9) { ["_previous_environment":protected] => NULL ["_cache":protected] => NULL ["_follow":protected] => bool(false) ["_follow_headers":protected] => array(1) { [0] => string(13) "Authorization" } ["_strict_redirect":protected] => bool(true) ["_header_callbacks":protected] => array(1) { ["Location"] => string(34) "Request_Client::on_header_location" } ["_max_callback_depth":protected] => int(5) ["_callback_depth":protected] => int(1) ["_callback_params":protected] => array(0) { } } }
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.996 997
-
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 }122