Ejemplo n.º 1
0
    die("illegal dialog name");
}
$lang = new SpawLang(SpawVars::getGetVar("lang"));
$charset = $lang->getCharset();
if (SpawVars::getGetVar('charset') != '') {
    $charset = SpawVars::getGetVar('charset');
    $lang->setOutputCharset($charset);
}
if (SpawVars::getGetVar("scid") != '' && session_id() == '') {
    session_start();
}
$config = new SpawConfig();
$config->restoreSecureConfig(SpawVars::getGetVar("scid"));
$theme = SpawTheme::getTheme(SpawVars::getGetVar("theme"));
$htpl = $theme->getTemplateDialogHeader();
$htpl = str_replace('{SPAW DIALOG TITLE}', $lang->m('title', $dialog, $module), $htpl);
$htpl = str_replace('{SPAW DIR}', SpawConfig::getStaticConfigValue('SPAW_DIR'), $htpl);
$ftpl = $theme->getTemplateDialogFooter();
$ftpl = str_replace('{SPAW DIR}', SpawConfig::getStaticConfigValue('SPAW_DIR'), $ftpl);
ob_start();
?>

<html>
<head>
<title><?php 
echo $lang->m('title', $dialog, $module);
?>
</title>
<meta http-equiv="content-type" content="text/html;charset=<?php 
echo $charset;
?>