/media/shnoulle/data/webdev/master/application/helpers/common_helper.php(5053)
5041 * @param array|string $replacement 5042 * @param array|string $subject 5043 * @param int $limit 5044 * @param int $count If specified, this variable will be filled with the total number of replacements done (including all iterations) 5045 * @param int $recursion_limit Max number of iterations allowed 5046 * @return string|array 5047 */ 5048 function recursive_preg_replace($pattern, $replacement, $subject, $limit = -1, &$count = 0, $recursion_limit = 50) 5049 { 5050 if ($recursion_limit < 0) { 5051 return $subject; 5052 } 5053 $result = preg_replace($pattern, $replacement, $subject, $limit, $count); 5054 if ($count > 0) { 5055 $result = recursive_preg_replace($pattern, $replacement, $result, $limit, $auxCount, --$recursion_limit); 5056 $count += $auxCount; 5057 } 5058 return $result; 5059 } 5060 5061 /** 5062 * Returns the standard deviation of supplied $numbers 5063 * @param array $numbers The numbers to calculate the standard deviation for 5064 * @return float 5065 */
#0 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/common_helper.php(5053): preg_replace("~{[^}]*\K836422X286X2840(?=[^}]*?})~", "985911X41X257", null, -1, ...) 5048 function recursive_preg_replace($pattern, $replacement, $subject, $limit = -1, &$count = 0, $recursion_limit = 50) 5049 { 5050 if ($recursion_limit < 0) { 5051 return $subject; 5052 } 5053 $result = preg_replace($pattern, $replacement, $subject, $limit, $count); 5054 if ($count > 0) { 5055 $result = recursive_preg_replace($pattern, $replacement, $result, $limit, $auxCount, --$recursion_limit); 5056 $count += $auxCount; 5057 } 5058 return $result; |
#1 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/common_helper.php(3611): recursive_preg_replace("~{[^}]*\K836422X286X2840(?=[^}]*?})~", "985911X41X257", null, -1, ...) 3606 $arGroup->save(); 3607 } 3608 foreach ($arGroup->questiongroupl10ns as $arQuestionGroupLS) { 3609 foreach ($aCodeMap as $sOldCode => $sNewCode) { 3610 $sOldCode = preg_quote((string) $sOldCode, '~'); 3611 $arQuestionGroupLS->description = recursive_preg_replace("~{[^}]*\K{$sOldCode}(?=[^}]*?})~", $sNewCode, $arQuestionGroupLS->description, -1, $iCount); 3612 $bModified = $bModified || $iCount; 3613 } 3614 if ($bModified) { 3615 $arQuestionGroupLS->save(); 3616 } |
#2 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/admin/import_helper.php(2451): replaceExpressionCodes(985911, array("836422X286X2840" => "985911X41X257", "836422X286X2840Q00" => "985911X41X257Q00")) 2446 $aOldNewFieldmap = reverseTranslateFieldNames($iOldSID, $iNewSID, $aGIDReplacements, $aQIDReplacements); 2447 $results['FieldReMap'] = $aOldNewFieldmap; 2448 LimeExpressionManager::SetSurveyId($iNewSID); 2449 translateInsertansTags($iNewSID, $iOldSID, $aOldNewFieldmap); 2450 replaceExpressionCodes($iNewSID, $aQuestionCodeReplacements); 2451 replaceExpressionCodes($iNewSID, $aQuestionsMapping); // replace question codes in format "38612X105X3011" 2452 if (count($aQuestionCodeReplacements)) { 2453 array_unshift($results['importwarnings'], "<span class='warningtitle'>" . gT('Attention: Several question codes were updated. Please check these carefully as the update may not be perfect with customized expressions.') . '</span>'); 2454 } 2455 LimeExpressionManager::RevertUpgradeConditionsToRelevance($iNewSID); 2456 LimeExpressionManager::UpgradeConditionsToRelevance($iNewSID); |
#3 |
+
–
/media/shnoulle/data/webdev/master/application/helpers/admin/import_helper.php(1189): XMLImportSurvey("/media/shnoulle/data/webdev/master/tmp/ajwnbyz8cuny9dg2erg3vg59b...", "<?xml version="1.0" encoding="UTF-8"?>
<document>
<LimeSurveyDo...", null, null, ...) 1184 } else { 1185 $sExtension = ""; 1186 } 1187 switch ($sExtension) { 1188 case 'lss': 1189 $aImportResults = XMLImportSurvey($sFullFilePath, null, $sNewSurveyName, $DestSurveyID, $bTranslateLinksFields); 1190 if (!empty($aImportResults['newsid'])) { 1191 $SurveyIntegrity = new LimeSurvey\Models\Services\SurveyIntegrity(Survey::model()->findByPk($aImportResults['newsid'])); 1192 $SurveyIntegrity->fixSurveyIntegrity(); 1193 } 1194 return $aImportResults; |
#4 |
+
–
/media/shnoulle/data/webdev/master/application/controllers/SurveyAdministrationController.php(2364): importSurveyFile("/media/shnoulle/data/webdev/master/tmp/ajwnbyz8cuny9dg2erg3vg59b...", true) 2359 2360 // Now, we have the survey : start importing 2361 Yii::app()->loadHelper('admin/import'); 2362 2363 if ($action == 'importsurvey' && !$aData['bFailed']) { 2364 $aImportResults = importSurveyFile($sFullFilepath, (Yii::app()->request->getPost('translinksfields') == '1')); 2365 if (is_null($aImportResults)) { 2366 $aImportResults = array( 2367 'error' => gT("Unknown error while reading the file, no survey created.") 2368 ); 2369 } |
#5 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/actions/CInlineAction.php(49): SurveyAdministrationController->actionCopy() 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 49 $controller->$methodName(); 50 return true; 51 } 52 } |
#6 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("r" => "surveyAdministration/copy")) 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/master/vendor/yiisoft/yii/framework/web/CController.php(286): CController->runAction(CInlineAction) 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/master/vendor/yiisoft/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, 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/master/application/controllers/LSBaseController.php(145): CController->run("copy") 140 $this->redirect(array('/admin/authentication/sa/login')); 141 } 142 } 143 } 144 145 parent::run($action); 146 } 147 148 /** 149 * Load and set session vars 150 * |
#10 |
+
–
/media/shnoulle/data/webdev/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(282): LSBaseController->run("copy") 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/webdev/master/vendor/yiisoft/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("surveyAdministration/copy") 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/webdev/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/webdev/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 */ |