/home/quatangkie/domains/quatangkienlong.com/public_html/protected/views/user/tintucquatang/simple_html_dom.php(75)
63 define('DEFAULT_BR_TEXT', "\r\n"); 64 define('DEFAULT_SPAN_TEXT', " "); 65 define('MAX_FILE_SIZE', 600000); 66 // helper functions 67 // ----------------------------------------------------------------------------- 68 // get html dom from file 69 // $maxlen is defined in the code as PHP_STREAM_COPY_ALL which is defined as -1. 70 function file_get_html($url, $use_include_path = false, $context=null, $offset = -1, $maxLen=-1, $lowercase = true, $forceTagsClosed=true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN=true, $defaultBRText=DEFAULT_BR_TEXT, $defaultSpanText=DEFAULT_SPAN_TEXT) 71 { 72 // We DO force the tags to be terminated. 73 $dom = new simple_html_dom(null, $lowercase, $forceTagsClosed, $target_charset, $stripRN, $defaultBRText, $defaultSpanText); 74 // For sourceforge users: uncomment the next line and comment the retreive_url_contents line 2 lines down if it is not already done. 75 $contents = file_get_contents($url, $use_include_path, $context, $offset); 76 // Paperg - use our own mechanism for getting the contents as we want to control the timeout. 77 //$contents = retrieve_url_contents($url); 78 if (empty($contents) || strlen($contents) > MAX_FILE_SIZE) 79 { 80 return false; 81 } 82 // The second parameter can force the selectors to all be lowercase. 83 $dom->load($contents, $lowercase, $stripRN); 84 return $dom; 85 } 86 87 // get html dom from string
#0 |
+
–
/home/quatangkie/domains/quatangkienlong.com/public_html/protected/views/user/tintucquatang/simple_html_dom.php(75): file_get_contents("https://vnexpress.net/giai-tri/lam-dep", false, null, -1) 70 function file_get_html($url, $use_include_path = false, $context=null, $offset = -1, $maxLen=-1, $lowercase = true, $forceTagsClosed=true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN=true, $defaultBRText=DEFAULT_BR_TEXT, $defaultSpanText=DEFAULT_SPAN_TEXT) 71 { 72 // We DO force the tags to be terminated. 73 $dom = new simple_html_dom(null, $lowercase, $forceTagsClosed, $target_charset, $stripRN, $defaultBRText, $defaultSpanText); 74 // For sourceforge users: uncomment the next line and comment the retreive_url_contents line 2 lines down if it is not already done. 75 $contents = file_get_contents($url, $use_include_path, $context, $offset); 76 // Paperg - use our own mechanism for getting the contents as we want to control the timeout. 77 //$contents = retrieve_url_contents($url); 78 if (empty($contents) || strlen($contents) > MAX_FILE_SIZE) 79 { 80 return false; |
#1 |
+
–
/home/quatangkie/domains/quatangkienlong.com/public_html/protected/views/user/tintucquatang/index.php(4): file_get_html("https://vnexpress.net/giai-tri/lam-dep") 1 <?php 2 include 'simple_html_dom.php'; 3 $url = 'https://vnexpress.net/giai-tri/lam-dep'; 4 $html = file_get_html($url); 5 $newfeature = $html->find('.col-left-subfolder', 0)->find('article.article-topstory', 0); 6 $new = $html->find('.col-left-subfolder', 0)->find('article.item-news-common'); 7 ?> 8 <div class="pagewrap"> 9 <div class="row"> |
#2 |
+
–
/home/quatangkie/domains/quatangkienlong.com/public_html/lib/web/CBaseController.php(126): require("/home/quatangkie/domains/quatangkienlong.com/public_html/protect...") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
#3 |
+
–
/home/quatangkie/domains/quatangkienlong.com/public_html/lib/web/CBaseController.php(95): CBaseController->renderInternal("/home/quatangkie/domains/quatangkienlong.com/public_html/protect...", null, true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
#4 |
+
–
/home/quatangkie/domains/quatangkienlong.com/public_html/lib/web/CController.php(815): CBaseController->renderFile("/home/quatangkie/domains/quatangkienlong.com/public_html/protect...", null, true) 810 * @see processOutput 811 * @see render 812 */ 813 public function renderPartial($view, $data = null, $return = false, $processOutput = false) { 814 if (($viewFile = $this->getViewFile($view)) !== false) { 815 $output = $this->renderFile($viewFile, $data, true); 816 if ($processOutput) 817 $output = $this->processOutput($output); 818 if ($return) 819 return $output; 820 else |
#5 |
+
–
/home/quatangkie/domains/quatangkienlong.com/public_html/lib/web/CController.php(732): CController->renderPartial("index", null, true) 727 * @see renderPartial 728 * @see getLayoutFile 729 */ 730 public function render($view, $data = null, $return = false) { 731 if ($this->beforeRender($view)) { 732 $output = $this->renderPartial($view, $data, true); 733 if (($layoutFile = $this->getLayoutFile($this->layout)) !== false) 734 $output = $this->renderFile($layoutFile, array('content' => $output), true); 735 736 $this->afterRender($view, $output); 737 |
#6 |
+
–
/home/quatangkie/domains/quatangkienlong.com/public_html/protected/controllers/user/TintucquatangController.php(57): CController->render("index") 52 } 53 } 54 55 public function actionIndex() { 56 if (!$this->is_mobile) { 57 $this->render('index'); 58 } else { 59 $this->render('index_mobile'); 60 } 61 } 62 } |
#7 |
+
–
/home/quatangkie/domains/quatangkienlong.com/public_html/lib/web/actions/CInlineAction.php(49): TintucquatangController->actionIndex() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
#8 |
+
–
/home/quatangkie/domains/quatangkienlong.com/public_html/lib/web/CController.php(294): CInlineAction->runWithParams(array()) 289 */ 290 public function runAction($action) { 291 $priorAction = $this->_action; 292 $this->_action = $action; 293 if ($this->beforeAction($action)) { 294 if ($action->runWithParams($this->getActionParams()) === false) 295 $this->invalidActionParams($action); 296 else 297 $this->afterAction($action); 298 } 299 $this->_action = $priorAction; |
#9 |
+
–
/home/quatangkie/domains/quatangkienlong.com/public_html/lib/web/CController.php(275): CController->runAction(CInlineAction) 270 * @see createAction 271 * @see runAction 272 */ 273 public function runActionWithFilters($action, $filters) { 274 if (empty($filters)) 275 $this->runAction($action); 276 else { 277 $priorAction = $this->_action; 278 $this->_action = $action; 279 CFilterChain::create($this, $action, $filters)->run(); 280 $this->_action = $priorAction; |
#10 |
+
–
/home/quatangkie/domains/quatangkienlong.com/public_html/lib/web/CController.php(256): CController->runActionWithFilters(CInlineAction, array()) 251 public function run($actionID) { 252 if (($action = $this->createAction($actionID)) !== null) { 253 if (($parent = $this->getModule()) === null) 254 $parent = Yii::app(); 255 if ($parent->beforeControllerAction($this, $action)) { 256 $this->runActionWithFilters($action, $this->filters()); 257 $parent->afterControllerAction($this, $action); 258 } 259 } else 260 $this->missingAction($actionID); 261 } |
#11 |
+
–
/home/quatangkie/domains/quatangkienlong.com/public_html/lib/web/CWebApplication.php(282): CController->run("index") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
#12 |
+
–
/home/quatangkie/domains/quatangkienlong.com/public_html/lib/web/CWebApplication.php(141): CWebApplication->runController("tintucquatang/index") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
#13 |
+
–
/home/quatangkie/domains/quatangkienlong.com/public_html/lib/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#14 |
+
–
/home/quatangkie/domains/quatangkienlong.com/public_html/protected/components/WebApplication.php(18): CApplication->run() 13 14 public function runEnd($name) { 15 $this->__name = $name; 16 $this->onRunEnd = array(&$this, 'changePath'); 17 $this->onRunEnd(new CEvent($this->owner)); 18 $this->owner->run(); 19 } 20 21 public function onRunEnd(CEvent $event) { 22 $this->raiseEvent('onRunEnd', $event); 23 } |
#15 |
+
–
/home/quatangkie/domains/quatangkienlong.com/public_html/lib/base/CComponent.php(261): WebApplication->runEnd("user") 256 if($this->_m!==null) 257 { 258 foreach($this->_m as $object) 259 { 260 if($object->getEnabled() && method_exists($object,$name)) 261 return call_user_func_array(array($object,$name),$parameters); 262 } 263 } 264 if(class_exists('Closure', false) && $this->canGetProperty($name) && $this->$name instanceof Closure) 265 return call_user_func_array($this->$name, $parameters); 266 throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".', |
#16 |
+
–
/home/quatangkie/domains/quatangkienlong.com/public_html/index.php(10): CComponent->__call("runEnd", array("user")) 05 // remove the following lines when in production mode 06 defined('YII_DEBUG') or define('YII_DEBUG', true); 07 // specify how many levels of call stack should be shown in each log message 08 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3); 09 require_once($yii); 10 Yii::createWebApplication($config)->runEnd('user'); 11 |