/** * Sets theme/skin for the instance * @param string $theme Theme name */ function setTheme($theme) { $this->theme = SpawTheme::getTheme($theme); }
$dialog = SpawVars::getGetVar("dialog"); if (strpos($dialog, '/') || strpos($dialog, "\\")) { 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