FetchRow(); $stg_SessionName=$usrow['stg_value']; if ($surveyid) { if (isset($_GET['preview']) && $_GET['preview'] == 1) { @session_name($stg_SessionName); } else { @session_name($stg_SessionName.'-runtime-'.$surveyid); } } else { @session_name($stg_SessionName.'-runtime-publicportal'); } } else { session_name("LimeSurveyRuntime-$surveyid"); } session_set_cookie_params(0,$relativeurl.'/'); @session_start(); if (empty($_SESSION) || !isset($_SESSION['fieldname'])) { die("You don't have a valid session !"); } $meta = ''; $meta .=' '; $baselang = GetBaseLanguageFromSurveyID($surveyid); $clang = new limesurvey_lang($baselang); $header = getHeader($meta); echo $header; echo "\n"; $fn = $_GET['fieldname']; $qid = $_GET['qid']; $qidattributes=getQuestionAttributes($qid); $body = '
'.sprintf($clang->gT("You can upload %s under %s KB each.",'js'),$qidattributes['allowed_filetypes'],$qidattributes['max_filesize']).'