throw new RuntimeException('Unable to locate an object compatible with paginate.');
| |
}
| |
$settings += $this->paginate;
| |
| |
return $this->Paginator->paginate($table, $settings);
| |
}
| |
| |
/**
| |
* Method to check that an action is accessible from a URL.
|
object(App\Model\Table\PostsTable) { 'registryAlias' => 'Posts', 'table' => 'posts', 'alias' => 'Posts', 'entityClass' => 'App\Model\Entity\Post', 'associations' => [ (int) 0 => 'postcategories', (int) 1 => 'users', (int) 2 => 'tags', (int) 3 => 'postimages' ], 'behaviors' => [ (int) 0 => 'Timestamp' ], 'defaultConnection' => 'default', 'connectionName' => 'default' } [ 'contain' => [ 'PostCategories' => object(Closure) { }, (int) 0 => 'Users' ], 'conditions' => [ 'Posts.status' => true, 'Posts.trash' => false, 'Posts.lang' => 'vi', 'Posts.public <' => '2024-03-29 10:52:06', 'OR' => [ 'post_category_id' => (int) 49, 'category_other like' => '%-49-%' ] ], 'limit' => (int) 15, 'order' => [ 'Posts.sort' => 'ASC', 'Posts.created' => 'DESC' ], 'page' => '18' ]
'Posts.created' => 'DESC' | |
], | |
'page'=>(!empty($this->request->getParam('page'))?$this->request->getParam('page'):'1'), | |
]; | |
$posts = $this->paginate($this->Posts); | |
| |
//Danh mục tin tức | |
$post_categories = $this->Posts->PostCategories->find('threaded',['conditions' => ['PostCategories.status'=>1,'PostCategories.trash'=>0, 'PostCategories.lang'=>$this->language],'order'=>['PostCategories.lft'=>'ASC']]); | |
|
object(App\Model\Table\PostsTable) { 'registryAlias' => 'Posts', 'table' => 'posts', 'alias' => 'Posts', 'entityClass' => 'App\Model\Entity\Post', 'associations' => [ (int) 0 => 'postcategories', (int) 1 => 'users', (int) 2 => 'tags', (int) 3 => 'postimages' ], 'behaviors' => [ (int) 0 => 'Timestamp' ], 'defaultConnection' => 'default', 'connectionName' => 'default' }
// $slug = $value; | |
// } | |
// if($slug==null || empty($this->params['lang'])) throw new NotFoundException(__('Trang này không tồn tại',true)); | |
if(empty($this->request->getParam('_ext'))){ | |
$this->_list($slug); | |
$this->render('list'); | |
}else{ | |
$this->_view($slug); | |
$this->render('view'); |
'tin-tuc'
}
| |
/* @var callable $callable */
| |
$callable = [$this, $request->getParam('action')];
| |
| |
$result = $callable(...array_values($request->getParam('pass')));
| |
if ($result instanceof Response) {
| |
$this->response = $result;
| |
}
| |
|
'tin-tuc'
if ($result instanceof Response) {
| |
return $result;
| |
}
| |
| |
$response = $controller->invokeAction();
| |
if ($response !== null && !($response instanceof Response)) {
| |
throw new LogicException('Controller actions can only return Cake\Http\Response or null.');
| |
}
| |
|
No arguments
} else {
| |
$controller = $this->factory->create($request, $response);
| |
}
| |
| |
$response = $this->_invoke($controller);
| |
if ($request->getParam('return')) {
| |
return $response;
| |
}
| |
|
object(App\Controller\PostsController) { language => 'vi' currency_default => 'đ' currency => object(App\Model\Entity\Currency) { 'id' => (int) 1, 'name' => 'VNĐ', 'currency_default' => true, 'unit' => 'đ', 'position' => 'last', 'exchange_rate' => (float) 1, 'number_decimal' => (int) 0, 'sep1' => ',', 'sep2' => '.', 'status' => true, 'trash' => false, '[new]' => false, '[accessible]' => [ [maximum depth reached] ], '[dirty]' => [[maximum depth reached]], '[original]' => [[maximum depth reached]], '[virtual]' => [[maximum depth reached]], '[hasErrors]' => false, '[errors]' => [[maximum depth reached]], '[invalid]' => [[maximum depth reached]], '[repository]' => 'Currencies' } admin_language => '' controller => 'Posts' config => [ 'enable' => true, 'category_other' => true, 'child_post' => false, 'tag' => false, 'comment_facebook' => false, 'comment' => false, 'last_new' => false, 'viewest' => false, 'many_image' => true, 'duplicate' => true, 'image' => [ 'type_resize' => 'resizemax', 'dimensions' => [ [maximum depth reached] ], 'output' => 'jpg', 'quality' => (int) 80 ], 'position' => [] ] configs_info => object(App\Model\Entity\Config) { 'id' => (int) 1, 'lang' => 'vi', 'name' => 'Công ty cổ phần thương mại Phương Lan', 'address' => 'Giang Liễu, Phương Liễu, Quế Võ, Bắc Ninh, Việt Nam', 'email' => 'phuonglantisco@gmail.com', 'phone' => '0965022743', 'fax' => '', 'hotline' => '0965022743', 'zalo' => '0965191923', 'fb_chat' => null, 'logo' => 'logosteelp0.png', 'favicon' => 'favicon.ico', 'facebook' => 'https://facebook.com', 'google' => 'https://google.com', 'twitter' => 'http://twitter.com', 'youtube' => 'https://youtube.com', 'skype' => '', 'instagram' => '', 'pinterest' => '', 'tripadvisor' => '', 'link_fanpage_facebook' => 'https://www.facebook.com/', 'copyright' => 'Mr Khuong 0972091923- thepphuonglan.com', 'img_copyright' => null, 'link_copyright' => '', 'meta_title' => 'Công ty cổ phần thương mại Phương Lan', 'meta_keyword' => '', 'meta_description' => 'Công ty cổ phần thương mại Phương Lan: Đại lý thép Bắc Ninh, chuyên cung cấp thép xây dựng, thép Thái Nguyên, thép Hòa Phát. Địa chỉ KCN Hạp Lĩnh - TP Bắc Ninh - Bắc Ninh', 'meta_robots' => 'index,follow', 'lockweb' => false, 'maintenance' => '<p>Website đang được bảo trì.</p> <p>Quý khách vui lòng trở lại sau ít phút. Xin cảm ơn!</p> <p> </p> <p> </p> ', 'currency_id' => (int) 1, 'map_latitude' => '21.157016179498036, 106.13114862206656', 'map_key' => 'AIzaSyCzVgxVNVcmZxZ197QyZXsTvAwg4CIX0UU', 'map_zoom' => (int) 18, 'smtp_transport' => 'Smtp', 'smtp_host' => '112.213.94.221', 'smtp_port' => '587', 'smtp_username' => 'no_reply@thepbacninh.com', 'smtp_email' => 'no_reply@thepbacninh.com', 'smtp_password' => 'Lx17lVKp', 'site_token' => '75b886b1e1af9c62c749cdbb05dd8597922a2ec0b87f15d8378cb34f1adcfe09', 'modified' => object(Cake\I18n\FrozenTime) {}, 'base_color' => '#0080c0', '[new]' => false, '[accessible]' => [ [maximum depth reached] ], '[dirty]' => [ [maximum depth reached] ], '[original]' => [[maximum depth reached]], '[virtual]' => [[maximum depth reached]], '[hasErrors]' => false, '[errors]' => [[maximum depth reached]], '[invalid]' => [[maximum depth reached]], '[repository]' => 'Configs' } domain => 'http://thepbacninh.com' helpers => [] request => object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ [maximum depth reached] ] [protected] data => [[maximum depth reached]] [protected] query => [[maximum depth reached]] [protected] cookies => [[maximum depth reached]] [protected] _environment => [ [maximum depth reached] ] [protected] url => 'tin-tuc/page-18' [protected] base => '' [protected] webroot => '/' [protected] here => '/tin-tuc/page-18' [protected] trustedProxies => [[maximum depth reached]] [protected] _input => null [protected] _detectors => [ [maximum depth reached] ] [protected] _detectorCache => [ [maximum depth reached] ] [protected] stream => object(Zend\Diactoros\PhpInputStream) {} [protected] uri => object(Zend\Diactoros\Uri) {} [protected] session => object(Cake\Http\Session) {} [protected] attributes => [[maximum depth reached]] [protected] emulatedAttributes => [ [maximum depth reached] ] [protected] uploadedFiles => [[maximum depth reached]] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ [maximum depth reached] ] } response => object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ [maximum depth reached] ], 'file' => null, 'fileRange' => [[maximum depth reached]], 'cookies' => object(Cake\Http\Cookie\CookieCollection) {}, 'cacheDirectives' => [[maximum depth reached]], 'body' => '' } paginate => [ 'contain' => [ 'PostCategories' => object(Closure) {}, (int) 0 => 'Users' ], 'conditions' => [ 'Posts.status' => true, 'Posts.trash' => false, 'Posts.lang' => 'vi', 'Posts.public <' => '2024-03-29 10:52:06', 'OR' => [ [maximum depth reached] ] ], 'limit' => (int) 15, 'order' => [ 'Posts.sort' => 'ASC', 'Posts.created' => 'DESC' ], 'page' => '18' ] components => [] View => null passedArgs => [ (int) 0 => 'tin-tuc' ] modelClass => 'Posts' viewClass => null viewVars => [ 'http_host' => 'http://thepbacninh.com', 'banner_top' => null, 'product_sidebars' => [ (int) 0 => object(App\Model\Entity\ProductCategory) {}, (int) 1 => object(App\Model\Entity\ProductCategory) {}, (int) 2 => object(App\Model\Entity\ProductCategory) {} ], 'list_product_Category' => [ (int) 5 => 'Thép Thái Nguyên (Tisco)', (int) 6 => 'Thép Hòa Phát', (int) 7 => 'Các loại khác' ], 'advertisement_body' => [], 'advertisement_head' => [ (int) 0 => object(App\Model\Entity\Advertisement) {} ], 'top_menus' => [], 'nav_footers' => false, 'footers' => [], 'nav_menus' => [ (int) 0 => object(App\Model\Entity\Menu) {}, (int) 1 => object(App\Model\Entity\Menu) {}, (int) 2 => object(App\Model\Entity\Menu) {}, (int) 3 => object(App\Model\Entity\Menu) {}, (int) 4 => object(App\Model\Entity\Menu) {}, (int) 5 => object(App\Model\Entity\Menu) {}, (int) 6 => object(App\Model\Entity\Menu) {} ], 'list_languages' => [ (int) 0 => object(App\Model\Entity\Language) {} ], 'currency_default' => object(App\Model\Entity\Currency) {}, 'list_currencies' => [ (int) 1 => 'VNĐ' ], 'currency' => object(App\Model\Entity\Currency) {}, 'config' => object(App\Model\Entity\Config) {}, 'lang_current' => 'vi', 'lang_default' => 'vi', 'a_language' => object(App\Model\Entity\Language) {}, 'config_c' => [ 'enable' => true, 'category_other' => true, 'child_post' => false, 'tag' => false, 'comment_facebook' => false, 'comment' => false, 'last_new' => false, 'viewest' => false, 'many_image' => true, 'duplicate' => true, 'image' => [ [maximum depth reached] ], 'position' => [[maximum depth reached]] ], 'controller' => 'Posts', 'adv_left' => [ (int) 0 => object(App\Model\Entity\Banner) {}, (int) 1 => object(App\Model\Entity\Banner) {}, (int) 2 => object(App\Model\Entity\Banner) {}, (int) 3 => object(App\Model\Entity\Banner) {} ] ] RequestHandler => object(Cake\Controller\Component\RequestHandlerComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Flash => object(Cake\Controller\Component\FlashComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } Cookie => object(Cake\Controller\Component\CookieComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } Auth => object(Cake\Controller\Component\AuthComponent) { 'components' => [ [maximum depth reached] ], 'implementedEvents' => [ [maximum depth reached] ], '_config' => [ [maximum depth reached] ] } Banners => object(App\Model\Table\BannersTable) { 'registryAlias' => 'Banners', 'table' => 'banners', 'alias' => 'Banners', 'entityClass' => 'App\Model\Entity\Banner', 'associations' => [[maximum depth reached]], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } Languages => object(App\Model\Table\LanguagesTable) { 'registryAlias' => 'Languages', 'table' => 'languages', 'alias' => 'Languages', 'entityClass' => 'App\Model\Entity\Language', 'associations' => [[maximum depth reached]], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } Configs => object(App\Model\Table\ConfigsTable) { 'registryAlias' => 'Configs', 'table' => 'configs', 'alias' => 'Configs', 'entityClass' => 'App\Model\Entity\Config', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } Currencies => object(App\Model\Table\CurrenciesTable) { 'registryAlias' => 'Currencies', 'table' => 'currencies', 'alias' => 'Currencies', 'entityClass' => 'App\Model\Entity\Currency', 'associations' => [ [maximum depth reached] ], 'behaviors' => [[maximum depth reached]], 'defaultConnection' => 'default', 'connectionName' => 'default' } Advertisements => object(App\Model\Table\AdvertisementsTable) { 'registryAlias' => 'Advertisements', 'table' => 'advertisements', 'alias' => 'Advertisements', 'entityClass' => 'App\Model\Entity\Advertisement', 'associations' => [[maximum depth reached]], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } ProductCategories => object(App\Model\Table\ProductCategoriesTable) { 'registryAlias' => 'ProductCategories', 'table' => 'product_categories', 'alias' => 'ProductCategories', 'entityClass' => 'App\Model\Entity\ProductCategory', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } Posts => object(App\Model\Table\PostsTable) { 'registryAlias' => 'Posts', 'table' => 'posts', 'alias' => 'Posts', 'entityClass' => 'App\Model\Entity\Post', 'associations' => [ [maximum depth reached] ], 'behaviors' => [ [maximum depth reached] ], 'defaultConnection' => 'default', 'connectionName' => 'default' } Paginator => object(Cake\Controller\Component\PaginatorComponent) { 'components' => [[maximum depth reached]], 'implementedEvents' => [[maximum depth reached]], '_config' => [ [maximum depth reached] ] } [protected] name => 'Posts' [protected] _responseClass => 'Cake\Http\Response' [protected] autoRender => true [protected] _components => object(Cake\Controller\ComponentRegistry) { '_Controller' => object(App\Controller\PostsController) {}, '_loaded' => [ [maximum depth reached] ], '_eventManager' => object(Cake\Event\EventManager) {}, '_eventClass' => 'Cake\Event\Event' } [protected] _validViewOptions => [ (int) 0 => 'passedArgs' ] [protected] plugin => null [protected] _eventManager => object(Cake\Event\EventManager) { '_listeners' => [ [maximum depth reached] ], '_isGlobal' => false, '_trackEvents' => false, '_generalManager' => '(object) EventManager', '_dispatchedEvents' => null } [protected] _eventClass => 'Cake\Event\Event' [protected] _tableLocator => object(Cake\ORM\Locator\TableLocator) { [protected] locations => [ [maximum depth reached] ] [protected] _config => [[maximum depth reached]] [protected] _instances => [ [maximum depth reached] ] [protected] _fallbacked => [[maximum depth reached]] [protected] _options => [ [maximum depth reached] ] } [protected] _modelFactories => [ 'Table' => [ (int) 0 => object(Cake\ORM\Locator\TableLocator) {}, (int) 1 => 'get' ] ] [protected] _modelType => 'Table' [protected] _viewBuilder => null [private] limit => (int) 15 }
* @return \Psr\Http\Message\ResponseInterface
| |
*/
| |
public function __invoke(ServerRequestInterface $request, ResponseInterface $response, $next)
| |
{
| |
return $this->getDispatcher()->dispatch($request, $response);
| |
}
| |
| |
/**
| |
* Get the ActionDispatcher.
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'slug0' => 'tin-tuc', 'page' => '18', 'pass' => [ (int) 0 => 'tin-tuc' ], 'controller' => 'Posts', 'action' => 'index', 'lang' => 'vi', 'plugin' => null, '_matchedRoute' => '/:slug0/page-:page', '_ext' => null, '_csrfToken' => 'fd00f2a7f2045118984d3d5ac247873cad90b65b5f2af75f36c7c66f8cb7bc9f382ef3a58198ebbe2716c352d19e0fb9427c9e2e489ea6b18223fd46c421fd9d' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'thepbacninh.com', 'HTTP_USER_AGENT' => 'claudebot', 'DOCUMENT_ROOT' => '/home/thepbacninh.com/public_html', 'REMOTE_ADDR' => '3.83.187.36', 'REMOTE_PORT' => '40880', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'thepbacninh.com', 'SERVER_ADMIN' => 'cuongurl@gmail.com', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/tin-tuc/page-18', 'REDIRECT_URL' => '/webroot/tin-tuc/page-18', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/thepbacninh.com/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711684326.555, 'REQUEST_TIME' => (int) 1711684326, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'tin-tuc/page-18' [protected] base => '' [protected] webroot => '/' [protected] here => '/tin-tuc/page-18' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'thepbacninh.com' [private] port => null [private] path => '/tin-tuc/page-18' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [ [maximum depth reached] ] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index);
| |
if ($next) {
| |
$this->index++;
| |
| |
return $next($request, $response, $this);
| |
}
| |
| |
// End of the queue
| |
return $response;
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'slug0' => 'tin-tuc', 'page' => '18', 'pass' => [ (int) 0 => 'tin-tuc' ], 'controller' => 'Posts', 'action' => 'index', 'lang' => 'vi', 'plugin' => null, '_matchedRoute' => '/:slug0/page-:page', '_ext' => null, '_csrfToken' => 'fd00f2a7f2045118984d3d5ac247873cad90b65b5f2af75f36c7c66f8cb7bc9f382ef3a58198ebbe2716c352d19e0fb9427c9e2e489ea6b18223fd46c421fd9d' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'thepbacninh.com', 'HTTP_USER_AGENT' => 'claudebot', 'DOCUMENT_ROOT' => '/home/thepbacninh.com/public_html', 'REMOTE_ADDR' => '3.83.187.36', 'REMOTE_PORT' => '40880', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'thepbacninh.com', 'SERVER_ADMIN' => 'cuongurl@gmail.com', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/tin-tuc/page-18', 'REDIRECT_URL' => '/webroot/tin-tuc/page-18', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/thepbacninh.com/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711684326.555, 'REQUEST_TIME' => (int) 1711684326, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'tin-tuc/page-18' [protected] base => '' [protected] webroot => '/' [protected] here => '/tin-tuc/page-18' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'thepbacninh.com' [private] port => null [private] path => '/tin-tuc/page-18' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [ [maximum depth reached] ] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 5 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
);
| |
}
| |
$matching = Router::getRouteCollection()->getMiddleware($middleware);
| |
if (!$matching) {
| |
return $next($request, $response);
| |
}
| |
$matching[] = $next;
| |
$middleware = new MiddlewareQueue($matching);
| |
$runner = new Runner();
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'slug0' => 'tin-tuc', 'page' => '18', 'pass' => [ (int) 0 => 'tin-tuc' ], 'controller' => 'Posts', 'action' => 'index', 'lang' => 'vi', 'plugin' => null, '_matchedRoute' => '/:slug0/page-:page', '_ext' => null, '_csrfToken' => 'fd00f2a7f2045118984d3d5ac247873cad90b65b5f2af75f36c7c66f8cb7bc9f382ef3a58198ebbe2716c352d19e0fb9427c9e2e489ea6b18223fd46c421fd9d' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'thepbacninh.com', 'HTTP_USER_AGENT' => 'claudebot', 'DOCUMENT_ROOT' => '/home/thepbacninh.com/public_html', 'REMOTE_ADDR' => '3.83.187.36', 'REMOTE_PORT' => '40880', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'thepbacninh.com', 'SERVER_ADMIN' => 'cuongurl@gmail.com', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/tin-tuc/page-18', 'REDIRECT_URL' => '/webroot/tin-tuc/page-18', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/thepbacninh.com/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711684326.555, 'REQUEST_TIME' => (int) 1711684326, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'tin-tuc/page-18' [protected] base => '' [protected] webroot => '/' [protected] here => '/tin-tuc/page-18' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'thepbacninh.com' [private] port => null [private] path => '/tin-tuc/page-18' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [ [maximum depth reached] ] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index);
| |
if ($next) {
| |
$this->index++;
| |
| |
return $next($request, $response, $this);
| |
}
| |
| |
// End of the queue
| |
return $response;
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'slug0' => 'tin-tuc', 'page' => '18', 'pass' => [ (int) 0 => 'tin-tuc' ], 'controller' => 'Posts', 'action' => 'index', 'lang' => 'vi', 'plugin' => null, '_matchedRoute' => '/:slug0/page-:page', '_ext' => null, '_csrfToken' => 'fd00f2a7f2045118984d3d5ac247873cad90b65b5f2af75f36c7c66f8cb7bc9f382ef3a58198ebbe2716c352d19e0fb9427c9e2e489ea6b18223fd46c421fd9d' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'thepbacninh.com', 'HTTP_USER_AGENT' => 'claudebot', 'DOCUMENT_ROOT' => '/home/thepbacninh.com/public_html', 'REMOTE_ADDR' => '3.83.187.36', 'REMOTE_PORT' => '40880', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'thepbacninh.com', 'SERVER_ADMIN' => 'cuongurl@gmail.com', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/tin-tuc/page-18', 'REDIRECT_URL' => '/webroot/tin-tuc/page-18', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/thepbacninh.com/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711684326.555, 'REQUEST_TIME' => (int) 1711684326, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'tin-tuc/page-18' [protected] base => '' [protected] webroot => '/' [protected] here => '/tin-tuc/page-18' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'thepbacninh.com' [private] port => null [private] path => '/tin-tuc/page-18' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [ [maximum depth reached] ] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 5 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
$next = $this->middleware->get($this->index);
| |
if ($next) {
| |
$this->index++;
| |
| |
return $next($request, $response, $this);
| |
}
| |
| |
// End of the queue
| |
return $response;
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'slug0' => 'tin-tuc', 'page' => '18', 'pass' => [ (int) 0 => 'tin-tuc' ], 'controller' => 'Posts', 'action' => 'index', 'lang' => 'vi', 'plugin' => null, '_matchedRoute' => '/:slug0/page-:page', '_ext' => null, '_csrfToken' => 'fd00f2a7f2045118984d3d5ac247873cad90b65b5f2af75f36c7c66f8cb7bc9f382ef3a58198ebbe2716c352d19e0fb9427c9e2e489ea6b18223fd46c421fd9d' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'thepbacninh.com', 'HTTP_USER_AGENT' => 'claudebot', 'DOCUMENT_ROOT' => '/home/thepbacninh.com/public_html', 'REMOTE_ADDR' => '3.83.187.36', 'REMOTE_PORT' => '40880', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'thepbacninh.com', 'SERVER_ADMIN' => 'cuongurl@gmail.com', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/tin-tuc/page-18', 'REDIRECT_URL' => '/webroot/tin-tuc/page-18', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/thepbacninh.com/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711684326.555, 'REQUEST_TIME' => (int) 1711684326, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'tin-tuc/page-18' [protected] base => '' [protected] webroot => '/' [protected] here => '/tin-tuc/page-18' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'thepbacninh.com' [private] port => null [private] path => '/tin-tuc/page-18' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [ [maximum depth reached] ] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 2 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
$token = $this->_createToken();
| |
$request = $this->_addTokenToRequest($token, $request);
| |
$response = $this->_addTokenCookie($token, $request, $response);
| |
| |
return $next($request, $response);
| |
}
| |
$request = $this->_validateAndUnsetTokenField($request);
| |
| |
return $next($request, $response);
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'slug0' => 'tin-tuc', 'page' => '18', 'pass' => [ (int) 0 => 'tin-tuc' ], 'controller' => 'Posts', 'action' => 'index', 'lang' => 'vi', 'plugin' => null, '_matchedRoute' => '/:slug0/page-:page', '_ext' => null, '_csrfToken' => 'fd00f2a7f2045118984d3d5ac247873cad90b65b5f2af75f36c7c66f8cb7bc9f382ef3a58198ebbe2716c352d19e0fb9427c9e2e489ea6b18223fd46c421fd9d' ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'thepbacninh.com', 'HTTP_USER_AGENT' => 'claudebot', 'DOCUMENT_ROOT' => '/home/thepbacninh.com/public_html', 'REMOTE_ADDR' => '3.83.187.36', 'REMOTE_PORT' => '40880', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'thepbacninh.com', 'SERVER_ADMIN' => 'cuongurl@gmail.com', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/tin-tuc/page-18', 'REDIRECT_URL' => '/webroot/tin-tuc/page-18', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/thepbacninh.com/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711684326.555, 'REQUEST_TIME' => (int) 1711684326, 'ORIGINAL_REQUEST_METHOD' => 'GET', 'HTTP_X_REQUESTED_WITH' => null ] [protected] url => 'tin-tuc/page-18' [protected] base => '' [protected] webroot => '/' [protected] here => '/tin-tuc/page-18' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [ 'ajax' => false, 'get' => true, 'head' => false, 'options' => false ] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'thepbacninh.com' [private] port => null [private] path => '/tin-tuc/page-18' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [ [maximum depth reached] ] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index);
| |
if ($next) {
| |
$this->index++;
| |
| |
return $next($request, $response, $this);
| |
}
| |
| |
// End of the queue
| |
return $response;
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'slug0' => 'tin-tuc', 'page' => '18', 'pass' => [ (int) 0 => 'tin-tuc' ], 'controller' => 'Posts', 'action' => 'index', 'lang' => 'vi', 'plugin' => null, '_matchedRoute' => '/:slug0/page-:page', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'thepbacninh.com', 'HTTP_USER_AGENT' => 'claudebot', 'DOCUMENT_ROOT' => '/home/thepbacninh.com/public_html', 'REMOTE_ADDR' => '3.83.187.36', 'REMOTE_PORT' => '40880', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'thepbacninh.com', 'SERVER_ADMIN' => 'cuongurl@gmail.com', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/tin-tuc/page-18', 'REDIRECT_URL' => '/webroot/tin-tuc/page-18', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/thepbacninh.com/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711684326.555, 'REQUEST_TIME' => (int) 1711684326, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'tin-tuc/page-18' [protected] base => '' [protected] webroot => '/' [protected] here => '/tin-tuc/page-18' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'thepbacninh.com' [private] port => null [private] path => '/tin-tuc/page-18' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 2 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
{
| |
$this->middleware = $middleware;
| |
$this->index = 0;
| |
| |
return $this->__invoke($request, $response);
| |
}
| |
| |
/**
| |
* @param \Psr\Http\Message\ServerRequestInterface $request The server request
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'slug0' => 'tin-tuc', 'page' => '18', 'pass' => [ (int) 0 => 'tin-tuc' ], 'controller' => 'Posts', 'action' => 'index', 'lang' => 'vi', 'plugin' => null, '_matchedRoute' => '/:slug0/page-:page', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'thepbacninh.com', 'HTTP_USER_AGENT' => 'claudebot', 'DOCUMENT_ROOT' => '/home/thepbacninh.com/public_html', 'REMOTE_ADDR' => '3.83.187.36', 'REMOTE_PORT' => '40880', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'thepbacninh.com', 'SERVER_ADMIN' => 'cuongurl@gmail.com', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/tin-tuc/page-18', 'REDIRECT_URL' => '/webroot/tin-tuc/page-18', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/thepbacninh.com/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711684326.555, 'REQUEST_TIME' => (int) 1711684326, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'tin-tuc/page-18' [protected] base => '' [protected] webroot => '/' [protected] here => '/tin-tuc/page-18' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'thepbacninh.com' [private] port => null [private] path => '/tin-tuc/page-18' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$matching[] = $next;
| |
$middleware = new MiddlewareQueue($matching);
| |
$runner = new Runner();
| |
| |
return $runner->run($middleware, $request, $response);
| |
}
| |
}
| |
|
object(Cake\Http\MiddlewareQueue) { [protected] queue => [ (int) 0 => object(Cake\Http\Middleware\CsrfProtectionMiddleware) {}, (int) 1 => object(Cake\Http\Runner) {} ] [protected] callables => [ (int) 0 => object(Cake\Http\Middleware\CsrfProtectionMiddleware) {}, (int) 1 => object(Cake\Http\Runner) {} ] } object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'slug0' => 'tin-tuc', 'page' => '18', 'pass' => [ (int) 0 => 'tin-tuc' ], 'controller' => 'Posts', 'action' => 'index', 'lang' => 'vi', 'plugin' => null, '_matchedRoute' => '/:slug0/page-:page', '_ext' => null ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'thepbacninh.com', 'HTTP_USER_AGENT' => 'claudebot', 'DOCUMENT_ROOT' => '/home/thepbacninh.com/public_html', 'REMOTE_ADDR' => '3.83.187.36', 'REMOTE_PORT' => '40880', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'thepbacninh.com', 'SERVER_ADMIN' => 'cuongurl@gmail.com', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/tin-tuc/page-18', 'REDIRECT_URL' => '/webroot/tin-tuc/page-18', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/thepbacninh.com/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711684326.555, 'REQUEST_TIME' => (int) 1711684326, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'tin-tuc/page-18' [protected] base => '' [protected] webroot => '/' [protected] here => '/tin-tuc/page-18' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'thepbacninh.com' [private] port => null [private] path => '/tin-tuc/page-18' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index);
| |
if ($next) {
| |
$this->index++;
| |
| |
return $next($request, $response, $this);
| |
}
| |
| |
// End of the queue
| |
return $response;
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'thepbacninh.com', 'HTTP_USER_AGENT' => 'claudebot', 'DOCUMENT_ROOT' => '/home/thepbacninh.com/public_html', 'REMOTE_ADDR' => '3.83.187.36', 'REMOTE_PORT' => '40880', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'thepbacninh.com', 'SERVER_ADMIN' => 'cuongurl@gmail.com', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/tin-tuc/page-18', 'REDIRECT_URL' => '/webroot/tin-tuc/page-18', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/thepbacninh.com/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711684326.555, 'REQUEST_TIME' => (int) 1711684326, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'tin-tuc/page-18' [protected] base => '' [protected] webroot => '/' [protected] here => '/tin-tuc/page-18' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'thepbacninh.com' [private] port => null [private] path => '/tin-tuc/page-18' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 5 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
public function __invoke($request, $response, $next)
| |
{
| |
$url = $request->getUri()->getPath();
| |
if (strpos($url, '..') !== false || strpos($url, '.') === false) {
| |
return $next($request, $response);
| |
}
| |
| |
if (strpos($url, '/.') !== false) {
| |
return $next($request, $response);
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'thepbacninh.com', 'HTTP_USER_AGENT' => 'claudebot', 'DOCUMENT_ROOT' => '/home/thepbacninh.com/public_html', 'REMOTE_ADDR' => '3.83.187.36', 'REMOTE_PORT' => '40880', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'thepbacninh.com', 'SERVER_ADMIN' => 'cuongurl@gmail.com', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/tin-tuc/page-18', 'REDIRECT_URL' => '/webroot/tin-tuc/page-18', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/thepbacninh.com/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711684326.555, 'REQUEST_TIME' => (int) 1711684326, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'tin-tuc/page-18' [protected] base => '' [protected] webroot => '/' [protected] here => '/tin-tuc/page-18' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'thepbacninh.com' [private] port => null [private] path => '/tin-tuc/page-18' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index);
| |
if ($next) {
| |
$this->index++;
| |
| |
return $next($request, $response, $this);
| |
}
| |
| |
// End of the queue
| |
return $response;
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'thepbacninh.com', 'HTTP_USER_AGENT' => 'claudebot', 'DOCUMENT_ROOT' => '/home/thepbacninh.com/public_html', 'REMOTE_ADDR' => '3.83.187.36', 'REMOTE_PORT' => '40880', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'thepbacninh.com', 'SERVER_ADMIN' => 'cuongurl@gmail.com', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/tin-tuc/page-18', 'REDIRECT_URL' => '/webroot/tin-tuc/page-18', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/thepbacninh.com/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711684326.555, 'REQUEST_TIME' => (int) 1711684326, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'tin-tuc/page-18' [protected] base => '' [protected] webroot => '/' [protected] here => '/tin-tuc/page-18' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'thepbacninh.com' [private] port => null [private] path => '/tin-tuc/page-18' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 5 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
*/
| |
public function __invoke($request, $response, $next)
| |
{
| |
try {
| |
return $next($request, $response);
| |
} catch (Throwable $exception) {
| |
return $this->handleException($exception, $request, $response);
| |
} catch (Exception $exception) {
| |
return $this->handleException($exception, $request, $response);
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'thepbacninh.com', 'HTTP_USER_AGENT' => 'claudebot', 'DOCUMENT_ROOT' => '/home/thepbacninh.com/public_html', 'REMOTE_ADDR' => '3.83.187.36', 'REMOTE_PORT' => '40880', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'thepbacninh.com', 'SERVER_ADMIN' => 'cuongurl@gmail.com', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/tin-tuc/page-18', 'REDIRECT_URL' => '/webroot/tin-tuc/page-18', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/thepbacninh.com/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711684326.555, 'REQUEST_TIME' => (int) 1711684326, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'tin-tuc/page-18' [protected] base => '' [protected] webroot => '/' [protected] here => '/tin-tuc/page-18' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'thepbacninh.com' [private] port => null [private] path => '/tin-tuc/page-18' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
$next = $this->middleware->get($this->index);
| |
if ($next) {
| |
$this->index++;
| |
| |
return $next($request, $response, $this);
| |
}
| |
| |
// End of the queue
| |
return $response;
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'thepbacninh.com', 'HTTP_USER_AGENT' => 'claudebot', 'DOCUMENT_ROOT' => '/home/thepbacninh.com/public_html', 'REMOTE_ADDR' => '3.83.187.36', 'REMOTE_PORT' => '40880', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'thepbacninh.com', 'SERVER_ADMIN' => 'cuongurl@gmail.com', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/tin-tuc/page-18', 'REDIRECT_URL' => '/webroot/tin-tuc/page-18', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/thepbacninh.com/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711684326.555, 'REQUEST_TIME' => (int) 1711684326, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'tin-tuc/page-18' [protected] base => '' [protected] webroot => '/' [protected] here => '/tin-tuc/page-18' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'thepbacninh.com' [private] port => null [private] path => '/tin-tuc/page-18' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' } object(Cake\Http\Runner) { [protected] index => (int) 5 [protected] middleware => object(Cake\Http\MiddlewareQueue) { [protected] queue => [ [maximum depth reached] ] [protected] callables => [ [maximum depth reached] ] } }
{
| |
$this->middleware = $middleware;
| |
$this->index = 0;
| |
| |
return $this->__invoke($request, $response);
| |
}
| |
| |
/**
| |
* @param \Psr\Http\Message\ServerRequestInterface $request The server request
|
object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'thepbacninh.com', 'HTTP_USER_AGENT' => 'claudebot', 'DOCUMENT_ROOT' => '/home/thepbacninh.com/public_html', 'REMOTE_ADDR' => '3.83.187.36', 'REMOTE_PORT' => '40880', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'thepbacninh.com', 'SERVER_ADMIN' => 'cuongurl@gmail.com', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/tin-tuc/page-18', 'REDIRECT_URL' => '/webroot/tin-tuc/page-18', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/thepbacninh.com/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711684326.555, 'REQUEST_TIME' => (int) 1711684326, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'tin-tuc/page-18' [protected] base => '' [protected] webroot => '/' [protected] here => '/tin-tuc/page-18' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'thepbacninh.com' [private] port => null [private] path => '/tin-tuc/page-18' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
}
| |
$this->dispatchEvent('Server.buildMiddleware', ['middleware' => $middleware]);
| |
$middleware->add($this->app);
| |
| |
$response = $this->runner->run($middleware, $request, $response);
| |
| |
if (!($response instanceof ResponseInterface)) {
| |
throw new RuntimeException(sprintf(
| |
'Application did not create a response. Got "%s" instead.',
|
object(Cake\Http\MiddlewareQueue) { [protected] queue => [ (int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 3 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 4 => object(App\Application) {} ] [protected] callables => [ (int) 0 => object(Cake\Error\Middleware\ErrorHandlerMiddleware) {}, (int) 1 => object(Cake\Routing\Middleware\AssetMiddleware) {}, (int) 2 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 3 => object(Cake\Routing\Middleware\RoutingMiddleware) {}, (int) 4 => object(App\Application) {} ] } object(Cake\Http\ServerRequest) { trustProxy => false [protected] params => [ 'plugin' => null, 'controller' => null, 'action' => null, '_ext' => null, 'pass' => [] ] [protected] data => [] [protected] query => [] [protected] cookies => [] [protected] _environment => [ 'PATH' => '/bin:/usr/bin', 'HTTP_ACCEPT' => '*/*', 'HTTP_HOST' => 'thepbacninh.com', 'HTTP_USER_AGENT' => 'claudebot', 'DOCUMENT_ROOT' => '/home/thepbacninh.com/public_html', 'REMOTE_ADDR' => '3.83.187.36', 'REMOTE_PORT' => '40880', 'SERVER_ADDR' => '103.7.40.17', 'SERVER_NAME' => 'thepbacninh.com', 'SERVER_ADMIN' => 'cuongurl@gmail.com', 'SERVER_PORT' => '80', 'REQUEST_URI' => '/tin-tuc/page-18', 'REDIRECT_URL' => '/webroot/tin-tuc/page-18', 'REDIRECT_STATUS' => '200', 'LSWS_EDITION' => 'Openlitespeed 1.7.14', 'X-LSCACHE' => 'on,crawler', 'SCRIPT_FILENAME' => '/home/thepbacninh.com/public_html/webroot/index.php', 'QUERY_STRING' => '', 'SCRIPT_NAME' => '/webroot/index.php', 'SERVER_PROTOCOL' => 'HTTP/1.1', 'SERVER_SOFTWARE' => 'LiteSpeed', 'REQUEST_METHOD' => 'GET', 'PHP_SELF' => '/webroot/index.php', 'REQUEST_TIME_FLOAT' => (float) 1711684326.555, 'REQUEST_TIME' => (int) 1711684326, 'ORIGINAL_REQUEST_METHOD' => 'GET' ] [protected] url => 'tin-tuc/page-18' [protected] base => '' [protected] webroot => '/' [protected] here => '/tin-tuc/page-18' [protected] trustedProxies => [] [protected] _input => null [protected] _detectors => [ 'get' => [ 'env' => 'REQUEST_METHOD', 'value' => 'GET' ], 'post' => [ 'env' => 'REQUEST_METHOD', 'value' => 'POST' ], 'put' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PUT' ], 'patch' => [ 'env' => 'REQUEST_METHOD', 'value' => 'PATCH' ], 'delete' => [ 'env' => 'REQUEST_METHOD', 'value' => 'DELETE' ], 'head' => [ 'env' => 'REQUEST_METHOD', 'value' => 'HEAD' ], 'options' => [ 'env' => 'REQUEST_METHOD', 'value' => 'OPTIONS' ], 'ssl' => [ 'env' => 'HTTPS', 'options' => [ [maximum depth reached] ] ], 'ajax' => [ 'env' => 'HTTP_X_REQUESTED_WITH', 'value' => 'XMLHttpRequest' ], 'flash' => [ 'env' => 'HTTP_USER_AGENT', 'pattern' => '/^(Shockwave|Adobe) Flash/' ], 'requested' => [ 'param' => 'requested', 'value' => (int) 1 ], 'json' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'json' ], 'xml' => [ 'accept' => [ [maximum depth reached] ], 'param' => '_ext', 'value' => 'xml' ], 'mobile' => object(Closure) {}, 'tablet' => object(Closure) {} ] [protected] _detectorCache => [] [protected] stream => object(Zend\Diactoros\PhpInputStream) { [protected] resource => resource [protected] stream => 'php://input' [private] cache => '' [private] reachedEof => false } [protected] uri => object(Zend\Diactoros\Uri) { base => '' webroot => '/' [protected] allowedSchemes => [ [maximum depth reached] ] [private] scheme => 'http' [private] userInfo => '' [private] host => 'thepbacninh.com' [private] port => null [private] path => '/tin-tuc/page-18' [private] query => '' [private] fragment => '' [private] uriString => null } [protected] session => object(Cake\Http\Session) { [protected] _engine => null [protected] _started => null [protected] _lifetime => (int) 1440 [protected] _isCLI => false } [protected] attributes => [] [protected] emulatedAttributes => [ (int) 0 => 'session', (int) 1 => 'webroot', (int) 2 => 'base', (int) 3 => 'params', (int) 4 => 'here' ] [protected] uploadedFiles => [] [protected] protocol => null [protected] requestTarget => null [private] deprecatedProperties => [ 'data' => [ 'get' => 'getData()', 'set' => 'withData()' ], 'query' => [ 'get' => 'getQuery()', 'set' => 'withQueryParams()' ], 'params' => [ 'get' => 'getParam()', 'set' => 'withParam()' ], 'cookies' => [ 'get' => 'getCookie()', 'set' => 'withCookieParams()' ], 'url' => [ 'get' => 'getPath()', 'set' => 'withRequestTarget()' ], 'base' => [ 'get' => 'getAttribute("base")', 'set' => 'withAttribute("base")' ], 'webroot' => [ 'get' => 'getAttribute("webroot")', 'set' => 'withAttribute("webroot")' ], 'here' => [ 'get' => 'getAttribute("here")', 'set' => 'withAttribute("here")' ] ] } object(Cake\Http\Response) { 'status' => (int) 200, 'contentType' => 'text/html', 'headers' => [ 'Content-Type' => [ (int) 0 => 'text/html; charset=UTF-8' ] ], 'file' => null, 'fileRange' => [], 'cookies' => object(Cake\Http\Cookie\CookieCollection) { [protected] cookies => [[maximum depth reached]] }, 'cacheDirectives' => [], 'body' => '' }
// Bind your application to the server.
| |
$server = new Server(new Application(dirname(__DIR__) . '/config'));
| |
| |
// Run the request/response through the application and emit the response.
| |
$server->emit($server->run());
| |
|
No arguments
If you want to customize this error message, create src/Template/Error/error400.ctp