function GlobalHF() { global $context, $settings, $txt, $global_hf; define('GlobalHF_VERSION', '<a href="http://custom.simplemachines.org/mods/index.php?mod=351" target="_blank">Global Headers and Footers 2.0.1</a>'); define('GlobalHF_COPYRIGHT', 'Copyright <a href="http://www.smfhacks.com/" target="_blank">SMFHacks.com</a> 2012'); $context['insert_after_template'] .= '<div class="centertext smalltext">' . GlobalHF_VERSION . ' | ' . GlobalHF_COPYRIGHT . '</div>'; loadLanguage('smfhacks_languages/global-hf'); loadTemplate('smfhacks_templates/global-hf', array('smfhacks_css/global-hf')); GlobalHFCheckSaving(); $context['page_title'] = $txt['global_hf']['title']; $context['sub_template'] = 'global_hf_admin'; }
function GlobalHF() { global $context, $settings, $txt, $global_hf; isAllowedTo('admin_forum'); adminIndex('globalhf'); define('GlobalHF_VERSION', '<a href="http://custom.simplemachines.org/mods/index.php?mod=351" target="_blank">Global Headers and Footers 2.0.1</a>'); define('GlobalHF_COPYRIGHT', 'Copyright <a href="http://www.smfhacks.com/" target="_blank">SMFHacks.com</a> 2012'); loadLanguage('smfhacks_languages/global-hf'); loadTemplate('smfhacks_templates/global-hf'); GlobalHFCheckSaving(); $context['template_layers'][] = 'global_hf_copyright'; $context['html_headers'] .= "\n" . '<link rel="stylesheet" type="text/css" href="' . $settings['default_theme_url'] . '/smfhacks_css/global-hf.css" />'; $context['page_title'] = $txt['global_hf']['title']; $context['sub_template'] = 'global_hf_admin'; }