$param_value) { $$param_key = $param_value; } } if ($FormModuleFound) { $check_result = check_form (); if ($check_result['Status'] != 'KO') { $check_result = execute_form_command (); } // Esportazione delle variabili post-elaborazione nel formato NomeModulo + NomeVariabile if (@is_array($check_result)) { foreach ($check_result as $check_key => $check_value) { ${$_POST['Module'].$check_key} = $check_value; } } } $IDSiteLanguage = $FormModule['other_param']['IDLanguage']; $IDSiteMenu = $FormModule['other_param']['IDMenu']; $IDSiteContent = $FormModule['other_param']['IDSiteContent']; } if ($IDSiteContent == '-1' && empty($ExternalPage)) { // Nel caso in cui non esistono contenuti per la richiesta viene rediretto sulla index del sito header("Location: index.php?IDLanguage=".$IDSiteLanguage); exit; } else { $DefaultScript = "index.php"; $TemplateScript = $_REQUEST ["URI"]; if (!isset ($TemplateScript)) { $TemplateScript = $DefaultScript; } $TemplatePath = "Repository/Template/" . $TemplateName . "/"; if (@file_exists($TemplatePath . $TemplateScript)) include_once ($TemplatePath . $TemplateScript); else include_once ($TemplatePath . $DefaultScript); } ?>