/media/shnoulle/data/webdev/ls5/application/models/FailedLoginAttempt.php(126)
114 $criteria = new CDbCriteria(); 115 $criteria->condition = 'number_attempts >= :attempts AND ip = :ip AND is_frontend = :is_frontend'; 116 $criteria->params = array( 117 ':attempts' => $maxLoginAttempt, 118 ':ip' => $ip, 119 ':is_frontend' => ($attemptType === FailedLoginAttempt::TYPE_TOKEN) 120 ); 121 $row = $this->find($criteria); 122 } 123 124 if ($row != null) { 125 $lastattempt = strtotime($row->last_attempt); 126 if (time() > $lastattempt + $timeOut) { 127 $this->deleteAttempts($attemptType); 128 } else { 129 $isLockedOut = true; 130 } 131 } 132 return $isLockedOut; 133 } 134 135 /** 136 * Records a failed login-attempt if IP is not already locked out 137 * 138 * @param string attempt type ('login' or 'token')
#0 |
+
–
/media/shnoulle/data/webdev/ls5/application/helpers/frontend_helper.php(1257): FailedLoginAttempt->isLockedOut("token") 1252 * @return string[] ($renderToken, $FlashError) 1253 */ 1254 function testIfTokenIsValid(array $subscenarios, array $thissurvey, array $aEnterTokenData, $clienttoken) 1255 { 1256 $FlashError = ''; 1257 if (FailedLoginAttempt::model()->isLockedOut(FailedLoginAttempt::TYPE_TOKEN)) { 1258 $FlashError = sprintf(gT('You have exceeded the number of maximum access code validation attempts. Please wait %d minutes before trying again.'), App()->getConfig('timeOutParticipants') / 60); 1259 $renderToken = 'main'; 1260 } else { 1261 if (!$subscenarios['tokenValid']) { 1262 //Check if there is a clienttoken set |
#1 |
+
–
/media/shnoulle/data/webdev/ls5/application/helpers/SurveyRuntimeHelper.php(1677): testIfTokenIsValid(array("captchaCorrect"
=> true, "tokenValid" => true), array("htmlemail" => "Y",
"format" => "G", "tokenencryptionoptions" => "{
"enabled":"Y","columns":{ "firstname":"N","lastname":"N","emai...",
"template" => "vanilla", ...), array("bNewTest" => false,
"bDirectReload" => false, "iSurveyId" => "845743", "sLangCode"
=> "fr"), "sezvaezrzer") 1672 } 1673 1674 // Scenario => Token required 1675 if ($scenarios['tokenRequired'] && !$preview) { 1676 //Test if token is valid 1677 list($renderToken, $FlashError, $aEnterTokenData) = testIfTokenIsValid($subscenarios, $this->aSurveyInfo, $aEnterTokenData, $clienttoken); 1678 } 1679 1680 if ($FlashError) { 1681 $aEnterErrors['flash'] = $FlashError; 1682 } |
#2 |
+
–
/media/shnoulle/data/webdev/ls5/application/helpers/SurveyRuntimeHelper.php(200): SurveyRuntimeHelper->showTokenOrCaptchaFormsIfNeeded() 195 extract($args); 196 197 /////////////////////////////////////////////////////////// 198 // 1: We check if token and/or captcha form shouls be shown 199 if (!isset($_SESSION[$this->LEMsessid]['step'])) { 200 $this->showTokenOrCaptchaFormsIfNeeded(); 201 } 202 if (!$this->previewgrp && !$this->previewquestion) { 203 $this->initMove(); // main methods to init session, LEM, moves, errors, etc 204 $this->checkForDataSecurityAccepted(); // must be called after initMove to allow LEM to be initialized 205 if (EmCacheHelper::useCache()) { |
#3 |
+
–
/media/shnoulle/data/webdev/ls5/application/controllers/survey/index.php(636): SurveyRuntimeHelper->run(845743,
array("surveyid" => 845743, "thissurvey" => array("htmlemail"
=> "Y", "format" => "G", "tokenencryptionoptions" => "{
"enabled":"Y","columns":{ "firstname":"N","lastname":"N","emai...",
"template" => "vanilla", ...), "thisstep" => 0, "clienttoken"
=> "sezvaezrzer", ...)) 631 unset($redata); 632 $redata = compact(array_keys(get_defined_vars())); 633 Yii::import('application.helpers.SurveyRuntimeHelper'); 634 $tmp = new SurveyRuntimeHelper(); 635 // try { 636 $tmp->run($surveyid, $redata); 637 // } catch (WrongTemplateVersionException $ex) { 638 // echo $ex->getMessage(); 639 // } 640 } 641 |
#4 |
+
–
/media/shnoulle/data/webdev/ls5/application/controllers/survey/index.php(22): Index->action() 17 public $oTemplate; 18 19 public function run() 20 { 21 useFirebug(); 22 $this->action(); 23 } 24 25 /** 26 * 27 * todo: this function is toooo long, to many things happening here. Should be refactored asap! |
#5 |
+
–
/media/shnoulle/data/webdev/ls5/vendor/yiisoft/yii/framework/web/actions/CAction.php(76): Index->run() 71 { 72 $method=new ReflectionMethod($this, 'run'); 73 if($method->getNumberOfParameters()>0) 74 return $this->runWithParamsInternal($this, $method, $params); 75 76 $this->run(); 77 return true; 78 } 79 80 /** 81 * Executes a method of an object with the supplied named parameters. |
#6 |
+
–
/media/shnoulle/data/webdev/ls5/vendor/yiisoft/yii/framework/web/CController.php(308): CAction->runWithParams(array("r" => "survey/index", "sid" => "845743", "token" => "sezvaezrzer", "newtest" => "Y")) 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; |
#7 |
+
–
/media/shnoulle/data/webdev/ls5/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(Index) 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(); |
#8 |
+
–
/media/shnoulle/data/webdev/ls5/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(Index, 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); |
#9 |
+
–
/media/shnoulle/data/webdev/ls5/vendor/yiisoft/yii/framework/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))); |
#10 |
+
–
/media/shnoulle/data/webdev/ls5/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("survey/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. |
#11 |
+
–
/media/shnoulle/data/webdev/ls5/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 /** |
#12 |
+
–
/media/shnoulle/data/webdev/ls5/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 */ |