/home/mdcs/public_html/limesurvey/application/third_party/phpmailer/class.phpmailer.php(1726)
1714 * @link http://tools.ietf.org/html/rfc2047 1715 * @param string $str the text to encode 1716 * @param string $position Where the text is going to be used, see the RFC for what that means 1717 * @access public 1718 * @return string 1719 */ 1720 public function EncodeQ ($str, $position = 'text') { 1721 // There should not be any EOL in the string 1722 $encoded = preg_replace('/[\r\n]*/', '', $str); 1723 1724 switch (strtolower($position)) { 1725 case 'phrase': 1726 $encoded = preg_replace("/([^A-Za-z0-9!*+\/ -])/e", "'='.sprintf('%02X', ord('\\1'))", $encoded); 1727 break; 1728 case 'comment': 1729 $encoded = preg_replace("/([\(\)\"])/e", "'='.sprintf('%02X', ord('\\1'))", $encoded); 1730 case 'text': 1731 default: 1732 // Replace every high ascii, control =, ? and _ characters 1733 //TODO using /e (equivalent to eval()) is probably not a good idea 1734 $encoded = preg_replace('/([\000-\011\013\014\016-\037\075\077\137\177-\377])/e', 1735 "'='.sprintf('%02X', ord('\\1'))", $encoded); 1736 break; 1737 } 1738
#0 |
+
–
/home/mdcs/public_html/limesurvey/application/third_party/phpmailer/class.phpmailer.php(1726): preg_replace("/([^A-Za-z0-9!*+\/ -])/e", "'='.sprintf('%02X', ord('\1'))", "Michael Jiménez") 1721 // There should not be any EOL in the string 1722 $encoded = preg_replace('/[\r\n]*/', '', $str); 1723 1724 switch (strtolower($position)) { 1725 case 'phrase': 1726 $encoded = preg_replace("/([^A-Za-z0-9!*+\/ -])/e", "'='.sprintf('%02X', ord('\\1'))", $encoded); 1727 break; 1728 case 'comment': 1729 $encoded = preg_replace("/([\(\)\"])/e", "'='.sprintf('%02X', ord('\\1'))", $encoded); 1730 case 'text': 1731 default: |
#1 |
+
–
/home/mdcs/public_html/limesurvey/application/third_party/phpmailer/class.phpmailer.php(1565): PHPMailer->EncodeQ("Michael Jiménez", "phrase") 1560 $maxlen -= $maxlen % 4; 1561 $encoded = trim(chunk_split($encoded, $maxlen, "\n")); 1562 } 1563 } else { 1564 $encoding = 'Q'; 1565 $encoded = $this->EncodeQ($str, $position); 1566 $encoded = $this->WrapText($encoded, $maxlen, true); 1567 $encoded = str_replace('='.$this->LE, "\n", trim($encoded)); 1568 } 1569 1570 $encoded = preg_replace('/^(.*)$/m', " =?".$this->CharSet."?$encoding?\\1?=", $encoded); |
#2 |
+
–
/home/mdcs/public_html/limesurvey/application/third_party/phpmailer/class.phpmailer.php(917): PHPMailer->EncodeHeader("Michael Jiménez", "phrase") 912 */ 913 public function AddrFormat($addr) { 914 if (empty($addr[1])) { 915 return $this->SecureHeader($addr[0]); 916 } else { 917 return $this->EncodeHeader($this->SecureHeader($addr[1]), 'phrase') . " <" . $this->SecureHeader($addr[0]) . ">"; 918 } 919 } 920 921 /** 922 * Wraps message for use with mailers that do not |
#3 |
+
–
/home/mdcs/public_html/limesurvey/application/third_party/phpmailer/class.phpmailer.php(900): PHPMailer->AddrFormat(array("jimenez@una.cr", "Michael Jiménez")) 895 */ 896 public function AddrAppend($type, $addr) { 897 $addr_str = $type . ': '; 898 $addresses = array(); 899 foreach ($addr as $a) { 900 $addresses[] = $this->AddrFormat($a); 901 } 902 $addr_str .= implode(', ', $addresses); 903 $addr_str .= $this->LE; 904 905 return $addr_str; |
#4 |
+
–
/home/mdcs/public_html/limesurvey/application/third_party/phpmailer/class.phpmailer.php(1105): PHPMailer->AddrAppend("From", array(array("jimenez@una.cr", "Michael Jiménez"))) 1100 } 1101 1102 $from = array(); 1103 $from[0][0] = trim($this->From); 1104 $from[0][1] = $this->FromName; 1105 $result .= $this->AddrAppend('From', $from); 1106 1107 // sendmail and mail() extract Cc from the header before sending 1108 if(count($this->cc) > 0) { 1109 $result .= $this->AddrAppend('Cc', $this->cc); 1110 } |
#5 |
+
–
/home/mdcs/public_html/limesurvey/application/third_party/phpmailer/class.phpmailer.php(558): PHPMailer->CreateHeader() 553 $this->ContentType = 'multipart/alternative'; 554 } 555 556 $this->error_count = 0; // reset errors 557 $this->SetMessageType(); 558 $header = $this->CreateHeader(); 559 $body = $this->CreateBody(); 560 561 if (empty($this->Body)) { 562 throw new phpmailerException($this->Lang('empty_message'), self::STOP_CRITICAL); 563 } |
#6 |
+
–
/home/mdcs/public_html/limesurvey/application/helpers/common_helper.php(4112): PHPMailer->Send() 4107 4108 if (trim($subject)!='') {$mail->Subject = "=?$emailcharset?B?" . base64_encode($subject) . "?=";} 4109 if ($emailsmtpdebug>0) { 4110 ob_start(); 4111 } 4112 $sent=$mail->Send(); 4113 $maildebug=$mail->ErrorInfo; 4114 if ($emailsmtpdebug>0) { 4115 $maildebug .= '<li>'. gT('SMTP debug output:').'</li><pre>'.strip_tags(ob_get_contents()).'</pre>'; 4116 ob_end_clean(); 4117 } |
#7 |
+
–
/home/mdcs/public_html/limesurvey/application/helpers/frontend_helper.php(749): SendEmailMessage("Hola!
Una nueva respuesta ha sido concluida en su encuesta 'MDR...", "Envío de respuestas de la encuesta MDR Bloque IV - Trim III 201...", "jimenez@una.cr", "Michael Jiménez <jimenez@una.cr>", ...) 744 { 745 $sMessage=templatereplace($thissurvey['email_admin_notification'],$aReplacementVars,$redata,'frontend_helper[1398]',($thissurvey['anonymized'] == "Y"),NULL, array(), true); 746 $sSubject=templatereplace($thissurvey['email_admin_notification_subj'],$aReplacementVars,$redata,'frontend_helper[1399]',($thissurvey['anonymized'] == "Y"),NULL, array(), true); 747 foreach ($aEmailNotificationTo as $sRecipient) 748 { 749 if (!SendEmailMessage($sMessage, $sSubject, $sRecipient, $sFrom, $sitename, true, getBounceEmail($surveyid), $aRelevantAttachments)) 750 { 751 if ($debug>0) 752 { 753 echo '<br />Email could not be sent. Reason: '.$maildebug.'<br/>'; 754 } |
#8 |
+
–
/home/mdcs/public_html/limesurvey/application/helpers/SurveyRuntimeHelper.php(609): sendSubmitNotifications("251179") 604 submittokens(); 605 } 606 607 //Send notifications 608 609 sendSubmitNotifications($surveyid); 610 611 612 $content = ''; 613 614 $content .= templatereplace(file_get_contents($sTemplatePath."startpage.pstpl"), array(), $redata, 'SubmitStartpage', false, NULL, array(), true ); |
#9 |
+
–
/home/mdcs/public_html/limesurvey/application/controllers/survey/index.php(565): SurveyRuntimeHelper->run("251179", array("surveyid" => "251179", "thissurvey" => array("sid" => "251179", "owner_id" => "1", "admin" => "Michael Jiménez", "active" => "Y", ...), "thisstep" => "2", "tokensexist" => 0, ...)) 560 //Send local variables to the appropriate survey type 561 unset($redata); 562 $redata = compact(array_keys(get_defined_vars())); 563 Yii::import('application.helpers.SurveyRuntimeHelper'); 564 $tmp = new SurveyRuntimeHelper(); 565 $tmp->run($surveyid,$redata); 566 567 if (isset($_POST['saveall']) || isset($flashmessage)) 568 { 569 echo "<script type='text/javascript'> $(document).ready( function() { alert('".$clang->gT("Your responses were successfully saved.","js")."');}) </script>"; 570 } |
#10 |
+
–
/home/mdcs/public_html/limesurvey/application/controllers/survey/index.php(46): index->action() 41 App()->getClientScript()->render($buffer); 42 App()->getClientScript()->reset(); 43 return $buffer; 44 }); 45 ob_implicit_flush(false); 46 $this->action(); 47 ob_flush(); 48 } 49 50 function action() 51 { |
#11 |
+
–
/home/mdcs/public_html/limesurvey/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 else 76 return $this->run(); 77 } 78 79 /** 80 * Executes a method of an object with the supplied named parameters. 81 * This method is internally used. |
#12 |
+
–
/home/mdcs/public_html/limesurvey/framework/web/CController.php(308): CAction->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; |
#13 |
+
–
/home/mdcs/public_html/limesurvey/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(); |
#14 |
+
–
/home/mdcs/public_html/limesurvey/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); |
#15 |
+
–
/home/mdcs/public_html/limesurvey/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))); |
#16 |
+
–
/home/mdcs/public_html/limesurvey/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. |
#17 |
+
–
/home/mdcs/public_html/limesurvey/framework/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
#18 |
+
–
/home/mdcs/public_html/limesurvey/index.php(200): CApplication->run() 195 die (sprintf('%s should be writable by the webserver (755 or 775).', $runtimePath)); 196 } 197 } 198 199 200 Yii::createApplication('LSYii_Application', $config)->run(); 201 202 /* End of file index.php */ 203 /* Location: ./index.php */ |