APPPATH/classes/controller/post.php [ 11 ]
6 }
7 function action_get() {
8 $slug = $this->request->param('param1');
9 $post=ORM::factory("post")->where('slug','=', urldecode($slug))->find();
10 if($post->id==NULL or (!$post->is_published() and !Auth::instance()->logged_in("admin"))){
11 throw new HTTP_Exception_404();
12 }else{
13 $query="update `posts` SET hits=hits+1 WHERE id=$post->id";
14 DB::query(Database::UPDATE,$query)->execute();
15 // $post->hits= $post->hits+1;
16 // $post->save();
-
{PHP internal call} » Controller_Post->action_get()
-
SYSPATH/classes/kohana/request/client/internal.php [ 116 ] » ReflectionMethod->invoke(arguments)
0
object Controller_Post(7)
{ public template => object View(2)
{ protected _file => string(122) "/var/www/vhosts/zen-30016426-168640.host4g.ru/zenon.migration/mad-ptah.com/kohana-3.2-master-1/app_blog/views/template.php" protected _data => array(8) ( "blog_title" => string(40) "Путевые заметки птаха" "blog_descr" => string(36) "сайт о путешествиях" "categories" => string(2720) "<ul class='lc'><li><a href="/category/1">Новости</a></li><li><a href="/category/3">Отчеты о путешествиях</a><ul class='lc ul-cat …" "top5" => string(849) "<ul class='lk'><li><a href="/v-strane-velikanov-zagadochnyiy-shar-ogr">В стране великанов: Загадочный Шар, Огромный Стул и стату …" "photos" => string(745) "<ul><li><a href="/gallery/get/106"><img src='/image/preview64/106' title=' (466x699, 76Kb)' alt=' (466x699, 76Kb)' /></a></li><l …" "carusel" => string(1871) "<script type="text/javascript" language="JavaScript"> $(document).ready(function() { $("#previewa0").hover( …" "archive" => object View(2)
public config => object Config_Group(9){ protected _file => string(129) "/var/www/vhosts/zen-30016426-168640.host4g.ru/zenon.migration/mad-ptah.com/kohana-3.2-master-1/app_blog/views/widgets/archive.ph …" protected _data => array(1) ( "months" => array(88) ( 0 => array(2) ( "month" => string(2) "10" "year" => string(4) "2015" ) 1 => array(2) ( "month" => string(1) "9" "year" => string(4) "2015" ) 2 => array(2) ( "month" => string(1) "6" "year" => string(4) "2015" ) 3 => array(2) ( "month" => string(1) "5" "year" => string(4) "2015" ) 4 => array(2) ( "month" => string(1) "2" "year" => string(4) "2015" ) 5 => array(2) ( "month" => string(1) "1" "year" => string(4) "2015" ) 6 => array(2) ( "month" => string(2) "12" "year" => string(4) "2014" ) 7 => array(2) ( "month" => string(2) "11" "year" => string(4) "2014" ) 8 => array(2) ( "month" => string(2) "10" "year" => string(4) "2014" ) 9 => array(2) ( "month" => string(1) "9" "year" => string(4) "2014" ) 10 => array(2) ( "month" => string(1) "7" "year" => string(4) "2014" ) 11 => array(2) ( "month" => string(1) "6" "year" => string(4) "2014" ) 12 => array(2) ( "month" => string(1) "5" "year" => string(4) "2014" ) 13 => array(2) ( "month" => string(1) "4" "year" => string(4) "2014" ) 14 => array(2) ( "month" => string(1) "2" "year" => string(4) "2014" ) 15 => array(2) ( "month" => string(1) "1" "year" => string(4) "2014" ) 16 => array(2) ( "month" => string(2) "12" "year" => string(4) "2013" ) 17 => array(2) ( "month" => string(2) "11" "year" => string(4) "2013" ) 18 => array(2) ( "month" => string(1) "7" "year" => string(4) "2013" ) 19 => array(2) ( "month" => string(1) "6" "year" => string(4) "2013" ) 20 => array(2) ( "month" => string(1) "5" "year" => string(4) "2013" ) 21 => array(2) ( "month" => string(1) "4" "year" => string(4) "2013" ) 22 => array(2) ( "month" => string(1) "3" "year" => string(4) "2013" ) 23 => array(2) ( "month" => string(1) "1" "year" => string(4) "2013" ) 24 => array(2) ( "month" => string(2) "12" "year" => string(4) "2012" ) 25 => array(2) ( "month" => string(1) "8" "year" => string(4) "2012" ) 26 => array(2) ( "month" => string(1) "7" "year" => string(4) "2012" ) 27 => array(2) ( "month" => string(1) "6" "year" => string(4) "2012" ) 28 => array(2) ( "month" => string(1) "5" "year" => string(4) "2012" ) 29 => array(2) ( "month" => string(1) "4" "year" => string(4) "2012" ) 30 => array(2) ( "month" => string(1) "3" "year" => string(4) "2012" ) 31 => array(2) ( "month" => string(1) "2" "year" => string(4) "2012" ) 32 => array(2) ( "month" => string(1) "1" "year" => string(4) "2012" ) 33 => array(2) ( "month" => string(2) "11" "year" => string(4) "2011" ) 34 => array(2) ( "month" => string(2) "10" "year" => string(4) "2011" ) 35 => array(2) ( "month" => string(1) "9" "year" => string(4) "2011" ) 36 => array(2) ( "month" => string(1) "8" "year" => string(4) "2011" ) 37 => array(2) ( "month" => string(1) "7" "year" => string(4) "2011" ) 38 => array(2) ( "month" => string(1) "5" "year" => string(4) "2011" ) 39 => array(2) ( "month" => string(1) "4" "year" => string(4) "2011" ) 40 => array(2) ( "month" => string(1) "2" "year" => string(4) "2011" ) 41 => array(2) ( "month" => string(1) "1" "year" => string(4) "2011" ) 42 => array(2) ( "month" => string(2) "12" "year" => string(4) "2010" ) 43 => array(2) ( "month" => string(2) "11" "year" => string(4) "2010" ) 44 => array(2) ( "month" => string(1) "8" "year" => string(4) "2010" ) 45 => array(2) ( "month" => string(1) "7" "year" => string(4) "2010" ) 46 => array(2) ( "month" => string(1) "5" "year" => string(4) "2010" ) 47 => array(2) ( "month" => string(1) "2" "year" => string(4) "2010" ) 48 => array(2) ( "month" => string(2) "11" "year" => string(4) "2009" ) 49 => array(2) ( "month" => string(2) "10" "year" => string(4) "2009" ) 50 => array(2) ( "month" => string(1) "9" "year" => string(4) "2009" ) 51 => array(2) ( "month" => string(1) "8" "year" => string(4) "2009" ) 52 => array(2) ( "month" => string(1) "7" "year" => string(4) "2009" ) 53 => array(2) ( "month" => string(1) "6" "year" => string(4) "2009" ) 54 => array(2) ( "month" => string(1) "5" "year" => string(4) "2009" ) 55 => array(2) ( "month" => string(1) "4" "year" => string(4) "2009" ) 56 => array(2) ( "month" => string(1) "3" "year" => string(4) "2009" ) 57 => array(2) ( "month" => string(1) "2" "year" => string(4) "2009" ) 58 => array(2) ( "month" => string(1) "1" "year" => string(4) "2009" ) 59 => array(2) ( "month" => string(2) "12" "year" => string(4) "2008" ) 60 => array(2) ( "month" => string(2) "11" "year" => string(4) "2008" ) 61 => array(2) ( "month" => string(2) "10" "year" => string(4) "2008" ) 62 => array(2) ( "month" => string(1) "9" "year" => string(4) "2008" ) 63 => array(2) ( "month" => string(1) "8" "year" => string(4) "2008" ) 64 => array(2) ( "month" => string(1) "7" "year" => string(4) "2008" ) 65 => array(2) ( "month" => string(1) "6" "year" => string(4) "2008" ) 66 => array(2) ( "month" => string(1) "5" "year" => string(4) "2008" ) 67 => array(2) ( "month" => string(1) "4" "year" => string(4) "2008" ) 68 => array(2) ( "month" => string(1) "3" "year" => string(4) "2008" ) 69 => array(2) ( "month" => string(1) "2" "year" => string(4) "2008" ) 70 => array(2) ( "month" => string(1) "1" "year" => string(4) "2008" ) 71 => array(2) ( "month" => string(2) "12" "year" => string(4) "2007" ) 72 => array(2) ( "month" => string(2) "11" "year" => string(4) "2007" ) 73 => array(2) ( "month" => string(1) "8" "year" => string(4) "2007" ) 74 => array(2) ( "month" => string(1) "7" "year" => string(4) "2007" ) 75 => array(2) ( "month" => string(1) "6" "year" => string(4) "2007" ) 76 => array(2) ( "month" => string(1) "5" "year" => string(4) "2007" ) 77 => array(2) ( "month" => string(1) "2" "year" => string(4) "2007" ) 78 => array(2) ( "month" => string(1) "1" "year" => string(4) "2007" ) 79 => array(2) ( "month" => string(2) "11" "year" => string(4) "2006" ) 80 => array(2) ( "month" => string(2) "10" "year" => string(4) "2006" ) 81 => array(2) ( "month" => string(1) "9" "year" => string(4) "2006" ) 82 => array(2) ( "month" => string(2) "11" "year" => string(4) "2005" ) 83 => array(2) ( "month" => string(2) "10" "year" => string(4) "2005" ) 84 => array(2) ( "month" => string(1) "6" "year" => string(4) "2004" ) 85 => array(2) ( "month" => string(1) "1" "year" => string(4) "2004" ) 86 => array(2) ( "month" => string(2) "12" "year" => string(4) "2003" ) 87 => array(2) ( "month" => string(1) "6" "year" => string(4) "2002" ) ) ) }
"content" => string(8) "zxczxczx" ) }{ public blog_title => string(40) "Путевые заметки птаха" public blog_descr => string(36) "сайт о путешествиях" public posts_per_page => integer 5 public admin_email => string(17) "madptah@gmail.com" public noreply_email => string(21) "no-reply@mad-ptah.com" public my_salt => string(13) "l;xcvxvsefxdf" public premoderate => bool TRUE public path_to => string(63) "/var/www/vhosts/zen-30016426-168640.host4g.ru/mad-ptah.host.ru/" public permit_install => bool FALSE }
public auth => object Auth_ORM(2){ protected _session => object Session_Native(5)
public user => bool FALSE public auto_render => bool TRUE public request => object Request(20){ protected _name => string(6) "ptahid" protected _lifetime => integer 43200 protected _encrypted => bool FALSE protected _data => array(0) protected _destroyed => bool FALSE }
protected _config => object Config_Group(7){ public driver => string(3) "ORM" public hash_method => string(6) "sha256" public hash_key => string(14) "fa9SasdXasd2xm" public lifetime => integer 1209600 public session_type => string(6) "native" public session_key => string(9) "auth_user" public users => array(0) }
}{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool TRUE protected _referrer => string(82) "http://mad-ptah.com/niderlandyi-efteling-%E2%80%93-tematicheskiy-park-razvlecheniy" protected _route => object Route(5)
public response => object Response(5){ protected _callback => NULL protected _uri => string(8) "<param1>" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "post" "action" => string(3) "get" ) protected _route_regex => string(30) "#^(?P<param1>[^/.,;?\n]++)$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "post" protected _action => string(3) "get" protected _uri => string(56) "niderlandyi-efteling-–-tematicheskiy-park-razvlecheniy" protected _external => bool FALSE protected _params => array(1) ( "param1" => string(56) "niderlandyi-efteling-–-tematicheskiy-park-razvlecheniy" ) protected _get => array(1) ( "/niderlandyi-efteling-–-tematicheskiy-park-razvlecheniy" => string(0) "" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}{ 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" }111 throw new HTTP_Exception_404('The requested URL :uri was not found on this server.', 112 array(':uri' => $request->uri())); 113 } 114 115 $method = $class->getMethod('action_'.$action); 116 $method->invoke($controller); 117 118 // Execute the "after action" method 119 $class->getMethod('after')->invoke($controller); 120 } 121 catch (Exception $e)
-
SYSPATH/classes/kohana/request/client.php [ 64 ] » Kohana_Request_Client_Internal->execute_request(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool TRUE protected _referrer => string(82) "http://mad-ptah.com/niderlandyi-efteling-%E2%80%93-tematicheskiy-park-razvlecheniy" protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(8) "<param1>" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "post" "action" => string(3) "get" ) protected _route_regex => string(30) "#^(?P<param1>[^/.,;?\n]++)$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "post" protected _action => string(3) "get" protected _uri => string(56) "niderlandyi-efteling-–-tematicheskiy-park-razvlecheniy" protected _external => bool FALSE protected _params => array(1) ( "param1" => string(56) "niderlandyi-efteling-–-tematicheskiy-park-razvlecheniy" ) protected _get => array(1) ( "/niderlandyi-efteling-–-tematicheskiy-park-razvlecheniy" => string(0) "" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}59 public function execute(Request $request) 60 { 61 if ($this->_cache instanceof HTTP_Cache) 62 return $this->_cache->execute($this, $request); 63 64 return $this->execute_request($request); 65 } 66 67 /** 68 * Processes the request passed to it and returns the response from 69 * the URI resource identified.
-
SYSPATH/classes/kohana/request.php [ 1154 ] » Kohana_Request_Client->execute(arguments)
0
object Request(20)
{ protected _requested_with => NULL protected _method => string(3) "GET" protected _protocol => string(8) "HTTP/1.0" protected _secure => bool TRUE protected _referrer => string(82) "http://mad-ptah.com/niderlandyi-efteling-%E2%80%93-tematicheskiy-park-razvlecheniy" protected _route => object Route(5)
{ protected _callback => NULL protected _uri => string(8) "<param1>" protected _regex => array(0) protected _defaults => array(2) ( "controller" => string(4) "post" "action" => string(3) "get" ) protected _route_regex => string(30) "#^(?P<param1>[^/.,;?\n]++)$#uD" }
protected _routes => array(0) protected _response => object Response(5){ protected _status => integer 200 protected _header => object HTTP_Header(0)
protected _header => object HTTP_Header(0){ }
protected _body => string(0) "" protected _cookies => array(0) protected _protocol => string(8) "HTTP/1.0" }{ }
protected _body => NULL protected _directory => string(0) "" protected _controller => string(4) "post" protected _action => string(3) "get" protected _uri => string(56) "niderlandyi-efteling-–-tematicheskiy-park-razvlecheniy" protected _external => bool FALSE protected _params => array(1) ( "param1" => string(56) "niderlandyi-efteling-–-tematicheskiy-park-razvlecheniy" ) protected _get => array(1) ( "/niderlandyi-efteling-–-tematicheskiy-park-razvlecheniy" => string(0) "" ) protected _post => array(0) protected _cookies => array(0) protected _client => object Request_Client_Internal(2){ protected _previous_environment => NULL protected _cache => NULL }
}1149 throw new Request_Exception('Unable to execute :uri without a Kohana_Request_Client', array( 1150 ':uri' => $this->_uri, 1151 )); 1152 } 1153 1154 return $this->_client->execute($this); 1155 } 1156 1157 /** 1158 * Returns whether this request is the initial request Kohana received. 1159 * Can be used to test for sub requests.
-
DOCROOT/index.php [ 110 ] » Kohana_Request->execute()
105 * Execute the main request. A source of the URI can be passed, eg: $_SERVER['PATH_INFO']. 106 * If no source is specified, the URI will be automatically detected. 107 */ 108 109 echo Request::factory() 110 ->execute() 111 ->send_headers() 112 ->body(); 113 114 if($_SERVER["REMOTE_ADDR"]=="95.78.48.15"){ 115 echo "[]:";