$val) { $p_canswers[$key]= preg_replace("/[^_.a-zA-Z0-9]@/", "", $val); } } } if (isset($_POST['method'])) { if (!in_array($_POST['method'], array('<','<=','>','>=','==','!=','RX'))) { $p_method = "=="; } else { $p_method = trim ($_POST['method']); } } /** if (isset($_POST['ConditionConst'])) { $html_ConditionConst = html_escape(auto_unescape($_POST['ConditionConst'])); } if (isset($_POST['prevQuestionSGQA'])) { $html_prevQuestionSGQA = html_escape(auto_unescape($_POST['prevQuestionSGQA'])); } if (isset($_POST['tokenAttr'])) { $html_tokenAttr = html_escape(auto_unescape($_POST['tokenAttr'])); } if (isset($_POST['ConditionRegexp'])) { $html_ConditionRegexp = html_escape(auto_unescape($_POST['ConditionRegexp'])); } if (isset($_POST['csrctoken'])) { $html_csrctoken = html_escape(auto_unescape($_POST['csrctoken'])); } **/ if (isset($_POST['newscenarionum'])) { $p_newscenarionum = sanitize_int($_POST['newscenarionum']); } //END Sanitizing POSTed data include_once("login_check.php"); include_once("database.php"); $conditionsoutput = ""; // add the conditions container table $conditionsoutput .= "
| \n"; //MAKE SURE THAT THERE IS A SID if (!isset($surveyid) || !$surveyid) { $conditionsoutput .= "\t | |
| " .$clang->gT("Conditions manager").": | |
" .$clang->gT("Error")." ".$clang->gT("You have not selected a survey")." " ." | |