/media/shnoulle/data/www/master/application/core/LimeMailer.php(836)
824 } 825 } 826 827 /** 828 * Variables needed to resend saved emails 829 * @return array 830 */ 831 public function getResendEmailVars() 832 { 833 $resendHeader['message_type'] = $this->message_type; 834 $resendHeader['Subject'] = $this->Subject; 835 $resendHeader['uniqueid'] = $this->uniqueid; 836 $resendHeader['boundary'][1] = $this->boundary[1]; 837 $resendHeader['boundary'][2] = $this->boundary[2]; 838 $resendHeader['boundary'][3] = $this->boundary[3]; 839 $resendHeader['MIMEBody'] = $this->MIMEBody; 840 841 return $resendHeader; 842 } 843 844 /** 845 * Get the replacements for token. 846 * @return string[] 847 */ 848 public function getTokenReplacements()
| #0 |
+
–
/media/shnoulle/data/www/master/application/helpers/frontend_helper.php(675): LimeMailer->getResendEmailVars() 670 * @return bool 671 */ 672 function saveFailedEmail(?int $id, ?string $recipient, int $surveyId, int $responseId, string $emailType, ?string $language, LimeMailer $mailer): bool 673 { 674 $errorMessage = $mailer->getError(); 675 $resendVars = json_encode($mailer->getResendEmailVars()); 676 if (isset($id)) { 677 $failedEmail = FailedEmail::model()->findByPk($id); 678 if (isset($failedEmail)) { 679 $failedEmail->surveyid = $surveyId; 680 $failedEmail->error_message = $errorMessage; |
| #1 |
+
–
/media/shnoulle/data/www/master/application/helpers/frontend_helper.php(549): saveFailedEmail(null, "denis@sondages.pro", 623399, 2, ...) 544 $mailer->setTo($notificationRecipient); 545 $mailerSuccess = $mailer->SendMessage(); 546 } 547 if (!$mailerSuccess) { 548 $failedEmailCount++; 549 saveFailedEmail($failedNotificationId, $notificationRecipient, $surveyid, $responseId, 'admin_notification', $emailLanguage, $mailer); 550 if (empty($emails) && $debug > 0 && Permission::model()->hasSurveyPermission($surveyid, 'surveysettings', 'update')) { 551 /* Find a better way to show email error … */ 552 echo CHtml::tag( 553 "div", 554 ['class' => 'alert alert-danger'], |
| #2 |
+
–
/media/shnoulle/data/www/master/application/helpers/SurveyRuntimeHelper.php(1287): sendSubmitNotifications(623399) 1282 if ($surveyActive && $oSurvey->getHasTokensTable()) { 1283 submittokens(); 1284 } 1285 //Send notifications 1286 if ($surveyActive) { 1287 sendSubmitNotifications($this->iSurveyid); 1288 } 1289 // Link to Print Answer Preview ********** 1290 $this->aSurveyInfo['aCompleted']['aPrintAnswers']['show'] = false; 1291 if ($this->aSurveyInfo['printanswers'] == 'Y') { 1292 $this->aSurveyInfo['aCompleted']['aPrintAnswers']['show'] = true; |
| #3 |
+
–
/media/shnoulle/data/www/master/application/helpers/SurveyRuntimeHelper.php(240): SurveyRuntimeHelper->moveSubmitIfNeeded() 235 // TODO: move somewhere else 236 $this->setNotAnsweredAndNotValidated(); 237 } else { 238 $this->setPreview(); 239 } 240 $this->moveSubmitIfNeeded(); 241 $this->setGroup(); 242 $this->fixMaxStep(); 243 244 //****************************************************************************************************** 245 //PRESENT SURVEY |
| #4 |
+
–
/media/shnoulle/data/www/master/application/controllers/survey/SurveyIndex.php(665): SurveyRuntimeHelper->run(623399,
array("surveyid" => 623399, "thissurvey" => array("sid" =>
623399, "owner_id" => 1, "gsid" => 1, "admin" => "Denis", ...),
"thisstep" => 1, "clienttoken" => "vYDIQb2jhA6El15", ...)) 660 unset($redata); 661 $redata = compact(array_keys(get_defined_vars())); 662 Yii::import('application.helpers.SurveyRuntimeHelper'); 663 $tmp = new SurveyRuntimeHelper(); 664 // try { 665 $tmp->run($surveyid, $redata); 666 // } catch (WrongTemplateVersionException $ex) { 667 // echo $ex->getMessage(); 668 // } 669 } 670 |
| #5 |
+
–
/media/shnoulle/data/www/master/application/controllers/survey/SurveyIndex.php(22): SurveyIndex->action() 17 public $oTemplate; 18 19 public function run() 20 { 21 22 $this->action(); 23 } 24 25 /** 26 * 27 * todo: this function is toooo long, to many things happening here. Should be refactored asap! |
| #6 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/actions/CAction.php(76): SurveyIndex->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. |
| #7 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/CController.php(308): CAction->runWithParams(array("r" => "survey/index", "sid" => "623399")) 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; |
| #8 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(SurveyIndex) 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(); |
| #9 |
+
–
/media/shnoulle/data/www/master/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(SurveyIndex, 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); |
| #10 |
+
–
/media/shnoulle/data/www/master/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))); |
| #11 |
+
–
/media/shnoulle/data/www/master/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. |
| #12 |
+
–
/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 /** |
| #13 |
+
–
/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 */ |