/mnt/data/shnoulle/nginx/www/develop/application/controllers/admin/dataentry.php(1504)
1492 // First Check if the survey uses tokens and if a token has been provided 1493 if ($tokenTableExists && (!$_POST['token'])) { 1494 $errormsg = CHtml::tag('div', array('class'=>'warningheader'), gT("Error")); 1495 $errormsg .= CHtml::tag('p', array(), gT("This is a closed-access survey, so you must supply a access code. Please contact the administrator for assistance.")); 1496 } elseif ($tokenTableExists && $lastanswfortoken == 'UnknownToken') { 1497 $errormsg = CHtml::tag('div', array('class'=>'warningheader'), gT("Error")); 1498 $errormsg .= CHtml::tag('p', array(), gT("The access code have provided is not valid or has already been used.")); 1499 } elseif ($tokenTableExists && $lastanswfortoken != '') { 1500 $errormsg = CHtml::tag('div', array('class'=>'warningheader'), gT("Error")); 1501 $errormsg .= CHtml::tag('p', array(), gT("There is already a recorded answer for this access code 1502 1503 if ($lastanswfortoken != 'PrivacyProtected') { 1504 $errormsg .= "<br /><br />".gT("Follow the following link to update it").":\n"; 1505 $errormsg .= CHtml::link("[id:$lastanswfortoken]", 1506 $this->getController()->createUrl('/admin/dataentry/sa/editdata/subaction/edit/id/'.$lastanswfortoken.'/surveyid/'.$surveyid), 1507 array('title' => gT("Edit this entry"))); 1508 $errormsg .= "<br/><br/>"; 1509 } else { 1510 $errormsg .= "<br /><br />".gT("This surveys uses anonymized responses, so you can't update your response.")."\n"; 1511 } 1512 } else { 1513 1514 if (isset($_POST['save']) && $_POST['save'] == "on") { 1515 $aData['save'] = true; 1516 $saver = [];
#0 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/YiiBase.php(204): YiiBase::import("application.controllers.admin.dataentry", true) 199 } 200 else 201 throw new CException(Yii::t('yii','Object configuration must be an array containing a "class" element.')); 202 203 if(!class_exists($type,false)) 204 $type=Yii::import($type,true); 205 206 if(($n=func_num_args())>1) 207 { 208 if($n===2) 209 $object=new $type($args[1]); |
#1 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/web/CController.php(443): YiiBase::createComponent(array(), AdminController, "dataentry") 438 protected function createActionFromMap($actionMap,$actionID,$requestActionID,$config=array()) 439 { 440 if(($pos=strpos($actionID,'.'))===false && isset($actionMap[$actionID])) 441 { 442 $baseConfig=is_array($actionMap[$actionID]) ? $actionMap[$actionID] : array('class'=>$actionMap[$actionID]); 443 return Yii::createComponent(empty($config)?$baseConfig:array_merge($baseConfig,$config),$this,$requestActionID); 444 } 445 elseif($pos===false) 446 return null; 447 448 // the action is defined in a provider |
#2 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/web/CController.php(419): CController->createActionFromMap(array("assessments"
=> "application.controllers.admin.assessments", "authentication"
=> "application.controllers.admin.authentication", "checkintegrity"
=> "application.controllers.admin.checkintegrity", "conditions" =>
"application.controllers.admin.conditionsaction", ...), "dataentry",
"dataentry") 414 $actionID=$this->defaultAction; 415 if(method_exists($this,'action'.$actionID) && strcasecmp($actionID,'s')) // we have actions method 416 return new CInlineAction($this,$actionID); 417 else 418 { 419 $action=$this->createActionFromMap($this->actions(),$actionID,$actionID); 420 if($action!==null && !method_exists($action,'run')) 421 throw new CException(Yii::t('yii', 'Action class {class} must implement the "run" method.', array('{class}'=>get_class($action)))); 422 return $action; 423 } 424 } |
#3 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/web/CController.php(259): CController->createAction("dataentry") 254 * @see createAction 255 * @see runAction 256 */ 257 public function run($actionID) 258 { 259 if(($action=$this->createAction($actionID))!==null) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { |
#4 |
+
–
/mnt/data/shnoulle/nginx/www/develop/application/controllers/AdminController.php(163): CController->run("dataentry") 158 } 159 160 $this->runModuleController($action); 161 162 163 return parent::run($action); 164 } 165 166 /** 167 * Starting with LS4, 3rd party developper can extends any of the LimeSurve controllers. 168 */ |
#5 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/web/CWebApplication.php(282): AdminController->run("dataentry") 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))); |
#6 |
+
–
/mnt/data/shnoulle/nginx/www/develop/framework/web/CWebApplication.php(141): CWebApplication->runController("admin/dataentry/sa/editdata/subaction/edit/surveyid/282267/id/2/...") 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. |
#7 |
+
–
/mnt/data/shnoulle/nginx/www/develop/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 /** |
#8 |
+
–
/mnt/data/shnoulle/nginx/www/develop/index.php(195): CApplication->run() 190 require_once APPPATH . 'core/LSYii_Application' . EXT; 191 192 $config = require_once(APPPATH . 'config/internal' . EXT); 193 194 Yii::$enableIncludePath = false; 195 Yii::createApplication('LSYii_Application', $config)->run(); 196 197 /* End of file index.php */ 198 /* Location: ./index.php */ |