/var/www/vhosts/mysurveyhosting.com/httpdocs/limeoffline/demo3/application/helpers/remotecontrol/remotecontrol_handle.php(2733)
2721 $sTempUploadDir = $tempdir.'/upload/'; 2722 if (!file_exists($sTempUploadDir)) { 2723 if (!mkdir($sTempUploadDir)) { 2724 return array('status' => 'Can not make temporary upload directory'); 2725 } 2726 } 2727 2728 $aFieldMap = createFieldMap($oSurvey, 'short', false, false, Yii::app()->getConfig('defaultlang')); 2729 if (!isset($aFieldMap[$sFieldName])) { 2730 return array('status' => 'Can not obtain field map'); 2731 } 2732 //FIXME undefined function getQuestionAttributeValues() 2733 $aAttributes = getQuestionAttributeValues($aFieldMap[$sFieldName]['qid']); 2734 2735 $iFileUploadTotalSpaceMB = Yii::app()->getConfig('iFileUploadTotalSpaceMB'); 2736 2737 $maxfilesize = (int) $aAttributes['max_filesize']; 2738 $allowed_filetypes = $aAttributes['allowed_filetypes']; 2739 $valid_extensions_array = explode(",", $allowed_filetypes); 2740 $valid_extensions_array = array_map('trim', $valid_extensions_array); 2741 2742 $pathinfo = pathinfo($sFileName); 2743 $ext = strtolower($pathinfo['extension']); 2744 2745 // check to see that this file type is allowed
#0 |
+
–
/var/www/vhosts/mysurveyhosting.com/httpdocs/limeoffline/demo3/application/libraries/LSjsonRPCServer.php(36):
remotecontrol_handle->
upload_file("JR5FvHC81nfsJJFhOUgAP3nt9zH9G7Go", 765587, "765587X44X1232", "fu_kabaka", ...)
31 'result' => null, 32 'error' => sprintf('unable to decode malformed json') 33 ); 34 } else { 35 try { 36 $result = @call_user_func_array(array($object, $request['method']), $request['params']); 37 if ($result !== false) { 38 $response = array( 39 'id' => $request['id'], 40 'result' => $result, 41 'error' => null |
#1 |
+
–
/var/www/vhosts/mysurveyhosting.com/httpdocs/limeoffline/demo3/application/controllers/admin/remotecontrol.php(60):
LSjsonRPCServer::
handle(remotecontrol_handle)
55 Yii::app()->loadLibrary('LSjsonRPCServer'); 56 if (!isset($_SERVER['CONTENT_TYPE'])) { 57 $serverContentType = explode(';', $_SERVER['HTTP_CONTENT_TYPE']); 58 $_SERVER['CONTENT_TYPE'] = reset($serverContentType); 59 } 60 LSjsonRPCServer::handle($oHandler); 61 } 62 foreach (App()->log->routes as $route) { 63 $route->enabled = $route->enabled && !($route instanceOf CWebLogRoute); 64 } 65 |
#2 |
unknown(0):
remotecontrol->
run()
|
#3 |
+
–
/var/www/vhosts/mysurveyhosting.com/httpdocs/limeoffline/demo3/framework/web/actions/CAction.php(109):
ReflectionMethod->
invokeArgs(remotecontrol, array())
104 elseif($param->isDefaultValueAvailable()) 105 $ps[]=$param->getDefaultValue(); 106 else 107 return false; 108 } 109 $method->invokeArgs($object,$ps); 110 return true; 111 } 112 } |
#4 |
+
–
/var/www/vhosts/mysurveyhosting.com/httpdocs/limeoffline/demo3/application/core/Survey_Common_Action.php(83):
CAction->
runWithParamsInternal(remotecontrol, ReflectionMethod, array())
78 $oMethod = new ReflectionMethod($this, $sDefault); 79 } 80 81 // We're all good to go, let's execute it 82 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 83 return parent::runWithParamsInternal($this, $oMethod, $params); 84 } 85 86 /** 87 * Some functions have different parameters, which are just an alias of the 88 * usual parameters we're getting in the url. This function just populates |
#5 |
+
–
/var/www/vhosts/mysurveyhosting.com/httpdocs/limeoffline/demo3/framework/web/CController.php(308):
Survey_Common_Action->
runWithParams(array())
303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
#6 |
+
–
/var/www/vhosts/mysurveyhosting.com/httpdocs/limeoffline/demo3/framework/web/CController.php(286):
CController->
runAction(remotecontrol)
281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
#7 |
+
–
/var/www/vhosts/mysurveyhosting.com/httpdocs/limeoffline/demo3/framework/web/CController.php(265):
CController->
runActionWithFilters(remotecontrol, array())
260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
#8 |
+
–
/var/www/vhosts/mysurveyhosting.com/httpdocs/limeoffline/demo3/application/controllers/AdminController.php(158):
CController->
run("remotecontrol")
153 $this->redirect(array('/admin/authentication/sa/login')); 154 } 155 } 156 } 157 158 return parent::run($action); 159 } 160 161 /** 162 * Routes all the actions to their respective places 163 * |
#9 |
+
–
/var/www/vhosts/mysurveyhosting.com/httpdocs/limeoffline/demo3/framework/web/CWebApplication.php(282):
AdminController->
run("remotecontrol")
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))); |
#10 |
+
–
/var/www/vhosts/mysurveyhosting.com/httpdocs/limeoffline/demo3/framework/web/CWebApplication.php(141):
CWebApplication->
runController("admin/remotecontrol")
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. |
#11 |
+
–
/var/www/vhosts/mysurveyhosting.com/httpdocs/limeoffline/demo3/framework/base/CApplication.php(185):
CWebApplication->
processRequest()
180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#12 |
+
–
/var/www/vhosts/mysurveyhosting.com/httpdocs/limeoffline/demo3/index.php(194):
CApplication->
run()
189 require_once APPPATH . 'core/LSYii_Application' . EXT; 190 191 $config = require_once(APPPATH . 'config/internal' . EXT); 192 193 Yii::$enableIncludePath = false; 194 Yii::createApplication('LSYii_Application', $config)->run(); 195 196 /* End of file index.php */ 197 /* Location: ./index.php */ |