/media/shnoulle/data/www/master/application/controllers/admin/Tokens.php(2299)
2287 case 'semicolon': 2288 $sSeparator = ';'; 2289 break; 2290 default: 2291 $comma = substr_count((string) $buffer, ','); 2292 $semicolon = substr_count((string) $buffer, ';'); 2293 if ($semicolon > $comma) { 2294 $sSeparator = ';'; 2295 } else { 2296 $sSeparator = ','; 2297 } 2298 } 2299 $aFirstLine = str_getcsv((string) $buffer, $sSeparator, '"'); 2300 $aFirstLine = array_map('trim', $aFirstLine); 2301 $aIgnoredColumns = array(); 2302 // Now check the first line for invalid fields 2303 foreach ($aFirstLine as $index => $sFieldname) { 2304 $aFirstLine[$index] = preg_replace("/(.*) <[^,]*>$/", "$1", $sFieldname); 2305 $sFieldname = $aFirstLine[$index]; 2306 if (!in_array($sFieldname, $aAllowedFieldNames)) { 2307 $aIgnoredColumns[] = $sFieldname; 2308 } 2309 if (array_key_exists($sFieldname, $aReplacedFields)) { 2310 $aFirstLine[$index] = $aReplacedFields[$sFieldname]; 2311 }
| #0 |
+
–
/media/shnoulle/data/www/master/application/controllers/admin/Tokens.php(2299): str_getcsv("firstname,lastname,email,token,attribute_1,attribute_2
", ",", """) 2294 $sSeparator = ';'; 2295 } else { 2296 $sSeparator = ','; 2297 } 2298 } 2299 $aFirstLine = str_getcsv((string) $buffer, $sSeparator, '"'); 2300 $aFirstLine = array_map('trim', $aFirstLine); 2301 $aIgnoredColumns = array(); 2302 // Now check the first line for invalid fields 2303 foreach ($aFirstLine as $index => $sFieldname) { 2304 $aFirstLine[$index] = preg_replace("/(.*) <[^,]*>$/", "$1", $sFieldname); |
| #1 |
unknown(0): Tokens->import(278647)
|
| #2 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/actions/CAction.php(114): ReflectionMethod->invokeArgs(Tokens, array(278647)) 109 elseif($param->isDefaultValueAvailable()) 110 $ps[]=$param->getDefaultValue(); 111 else 112 return false; 113 } 114 $method->invokeArgs($object,$ps); 115 return true; 116 } 117 } |
| #3 |
+
–
/media/shnoulle/data/www/master/application/core/SurveyCommonAction.php(86): CAction->runWithParamsInternal(Tokens,
ReflectionMethod, array("r" =>
"admin/tokens/sa/import/surveyid/278647", "sa" => "import",
"surveyid" => 278647, "iSurveyId" => 278647, ...)) 81 $oMethod = new ReflectionMethod($this, $sDefault); 82 } 83 84 // We're all good to go, let's execute it 85 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 86 return parent::runWithParamsInternal($this, $oMethod, $params); 87 } 88 89 /** 90 * Some functions have different parameters, which are just an alias of the 91 * usual parameters we're getting in the url. This function just populates |
| #4 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/CController.php(308): SurveyCommonAction->runWithParams(array("r"
=> "admin/tokens/sa/import/surveyid/278647", "sa" => "import",
"surveyid" => 278647, "iSurveyId" => 278647, ...)) 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; |
| #5 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(Tokens) 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(); |
| #6 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(Tokens, 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); |
| #7 |
+
–
/media/shnoulle/data/www/master/application/controllers/AdminController.php(204): CController->run("tokens") 199 $this->runModuleController($action); 200 // this will redirect the default action to the new controller previously "admin/index" or "admin" to "dashboard/view" 201 if (empty($action) || $action === 'index') { 202 $this->redirect($this->createUrl('dashboard/view')); 203 } 204 return parent::run($action); 205 } 206 207 /** 208 * Starting with LS4, 3rd party developer can extends any of the LimeSurve controllers. 209 * |
| #8 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): AdminController->run("tokens") 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))); |
| #9 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/tokens/sa/import/surveyid/278647") 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. |
| #10 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/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 /** |
| #11 |
+
–
/media/shnoulle/data/www/master/index.php(161): CApplication->run() 156 require_once APPPATH . 'core/LSYii_Application' . EXT; 157 158 $config = require_once(APPPATH . 'config/internal' . EXT); 159 160 Yii::$enableIncludePath = false; 161 Yii::createApplication('LSYii_Application', $config)->run(); 162 163 /* End of file index.php */ 164 /* Location: ./index.php */ |