/var/www/EXTERNAL/NOWE_PODLOGILODZ/protected/modules/Main/controllers/DownloadController.php(21)
09 $file = $mysanitizer->sanitizeGet($_GET['file']); 10 $Download = new Download; 11 $file_info = $Download->Get_Article_File($file); 12 13 header_remove(); 14 header('Content-Disposition: attachment;filename="' . $file_info['name'] . $file_info['extension'].'"'); 15 header("Content-Type: ".$file_info['content_type']); 16 header('Content-Transfer-Encoding: binary'); 17 18 $path_to_file = "/var/www/NOWE_PODLOGILODZ/" . $file_info['path']; 19 //echo $path_to_file; 20 //header('Content-Length: ' . filesize($path_to_file)); 21 readfile($path_to_file); 22 die(); 23 } 24 25 26 } 27 public function actionProduct() { 28 if (isset($_GET['file'])) { 29 30 $mysanitizer = new MySanitize(NULL); 31 $file = $mysanitizer->sanitizeGet($_GET['file']); 32 $Download = new Download; 33 $file_info = $Download->Get_Article_File_Product($file);
#0 |
+
–
/var/www/EXTERNAL/NOWE_PODLOGILODZ/protected/modules/Main/controllers/DownloadController.php(21): readfile("/var/www/NOWE_PODLOGILODZ/") 16 header('Content-Transfer-Encoding: binary'); 17 18 $path_to_file = "/var/www/NOWE_PODLOGILODZ/" . $file_info['path']; 19 //echo $path_to_file; 20 //header('Content-Length: ' . filesize($path_to_file)); 21 readfile($path_to_file); 22 die(); 23 } 24 25 26 } |
#1 |
+
–
/var/www/EXTERNAL/NOWE_PODLOGILODZ/yii/framework/web/actions/CInlineAction.php(50): DownloadController->actionIndex() 45 $controller=$this->getController(); 46 $method=new ReflectionMethod($controller, $methodName); 47 if($method->getNumberOfParameters()>0) 48 return $this->runWithParamsInternal($controller, $method, $params); 49 else 50 return $controller->$methodName(); 51 } 52 53 } |
#2 |
+
–
/var/www/EXTERNAL/NOWE_PODLOGILODZ/yii/framework/web/CController.php(300): CInlineAction->runWithParams(array("file" => "listwy.mdf._1.1")) 295 { 296 $priorAction=$this->_action; 297 $this->_action=$action; 298 if($this->beforeAction($action)) 299 { 300 if($action->runWithParams($this->getActionParams())===false) 301 $this->invalidActionParams($action); 302 else 303 $this->afterAction($action); 304 } 305 $this->_action=$priorAction; |
#3 |
+
–
/var/www/EXTERNAL/NOWE_PODLOGILODZ/yii/framework/web/CController.php(278): CController->runAction(CInlineAction) 273 * @see runAction 274 */ 275 public function runActionWithFilters($action,$filters) 276 { 277 if(empty($filters)) 278 $this->runAction($action); 279 else 280 { 281 $priorAction=$this->_action; 282 $this->_action=$action; 283 CFilterChain::create($this,$action,$filters)->run(); |
#4 |
+
–
/var/www/EXTERNAL/NOWE_PODLOGILODZ/yii/framework/web/CController.php(257): CController->runActionWithFilters(CInlineAction, array()) 252 { 253 if(($parent=$this->getModule())===null) 254 $parent=Yii::app(); 255 if($parent->beforeControllerAction($this,$action)) 256 { 257 $this->runActionWithFilters($action,$this->filters()); 258 $parent->afterControllerAction($this,$action); 259 } 260 } 261 else 262 $this->missingAction($actionID); |
#5 |
+
–
/var/www/EXTERNAL/NOWE_PODLOGILODZ/yii/framework/web/CWebApplication.php(277): CController->run("Index") 272 { 273 list($controller,$actionID)=$ca; 274 $oldController=$this->_controller; 275 $this->_controller=$controller; 276 $controller->init(); 277 $controller->run($actionID); 278 $this->_controller=$oldController; 279 } 280 else 281 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 282 array('{route}'=>$route===''?$this->defaultController:$route))); |
#6 |
+
–
/var/www/EXTERNAL/NOWE_PODLOGILODZ/yii/framework/web/CWebApplication.php(136): CWebApplication->runController("Main/Download/Index") 131 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 132 $_GET[$name]=$value; 133 } 134 else 135 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 136 $this->runController($route); 137 } 138 139 /** 140 * Registers the core application components. 141 * This method overrides the parent implementation by registering additional core components. |
#7 |
+
–
/var/www/EXTERNAL/NOWE_PODLOGILODZ/yii/framework/base/CApplication.php(158): CWebApplication->processRequest() 153 */ 154 public function run() 155 { 156 if($this->hasEventHandler('onBeginRequest')) 157 $this->onBeginRequest(new CEvent($this)); 158 $this->processRequest(); 159 if($this->hasEventHandler('onEndRequest')) 160 $this->onEndRequest(new CEvent($this)); 161 } 162 163 /** |
#8 |
+
–
/var/www/EXTERNAL/NOWE_PODLOGILODZ/index.php(13): CApplication->run() 08 defined('YII_DEBUG') or define('YII_DEBUG',true); 09 // specify how many levels of call stack should be shown in each log message 10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',1); 11 12 require_once($yii); 13 Yii::createWebApplication($config)->run(); |