$url_hash=self::get64BitHash($url); $q1="SELECT * FROM `page_cache_subdomain` where flag='1' and url_hash='$url_hash'"; $res = \mysqli_query($mysqli_bigarticle, $q1) or die('-DATABASE PROBLEM-->'); $results=\mysqli_fetch_assoc($res); if(!empty($results)){ $page_cache=$results; $domain_hash=$page_cache['domain_hash']; $content=$page_cache['content']; $content = gzuncompress($content); // echo '<pre>'; print_r($content); echo '</pre>'; die; $content= str_replace('<meta charset="UTF-8">','<meta charset="UTF-8"> <meta name="cache" content="cache-'.$page_cache['id'].'">', $content); $content= str_replace("<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>","<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/><meta name='cache' content='cache-{$page_cache['id']}'/>", $content); $content=self::set_login_menu($content,$domain_hash); if(!empty($content)){ echo $content; $mysqli_bigarticle->close();
$results=\mysqli_fetch_assoc($res); if(!empty($results)){ $page_cache=$results; $domain_hash=$page_cache['domain_hash']; $content=$page_cache['content']; $content = gzuncompress($content); // echo '<pre>'; print_r($content); echo '</pre>'; die; $content= str_replace('<meta charset="UTF-8">','<meta charset="UTF-8"> <meta name="cache" content="cache-'.$page_cache['id'].'">', $content); $content= str_replace("<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/>","<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'/><meta name='cache' content='cache-{$page_cache['id']}'/>", $content); $content=self::set_login_menu($content,$domain_hash);
{ $this->enableCsrfValidation = false; if($action->id!='category' && $action->id!='blog' && $action->id!='page'){} Common::show_page(); if (!parent::beforeAction($action)) { return false; }
break; } } $result = null; if ($runAction && $this->beforeAction($action)) { // run the action $result = $action->runWithParams($params); $result = $this->afterAction($action, $result); // call afterAction on modules
$parts = $this->createController($route); if (is_array($parts)) { /* @var $controller Controller */ list($controller, $actionID) = $parts; $oldController = Yii::$app->controller; Yii::$app->controller = $controller; $result = $controller->runAction($actionID, $params); if ($oldController !== null) { Yii::$app->controller = $oldController; } return $result; }
$params = $this->catchAll; unset($params[0]); } try { Yii::debug("Route requested: '$route'", __METHOD__); $this->requestedRoute = $route; $result = $this->runAction($route, $params); if ($result instanceof Response) { return $result; } $response = $this->getResponse(); if ($result !== null) {
{ try { $this->state = self::STATE_BEFORE_REQUEST; $this->trigger(self::EVENT_BEFORE_REQUEST); $this->state = self::STATE_HANDLING_REQUEST; $response = $this->handleRequest($this->getRequest()); $this->state = self::STATE_AFTER_REQUEST; $this->trigger(self::EVENT_AFTER_REQUEST); $this->state = self::STATE_SENDING_RESPONSE; $response->send();
(new yii\web\Application($config))->run();
$_GET = [ 'slug' => 'bloom-pdx', 'path' => 'dispensaries/bloom-pdx.py', ];