Chris@76: 'Registering', Chris@76: 'logging_in' => 'Logging_In', Chris@76: 'profile' => 'Profile', Chris@76: 'search' => 'Search', Chris@76: 'posting' => 'Posting', Chris@76: 'bbc' => 'Bulletin_board_code', Chris@76: 'personal_messages' => 'Personal_messages', Chris@76: 'memberlist' => 'Memberlist', Chris@76: 'calendar' => 'Calendar', Chris@76: 'features' => 'Features', Chris@76: ); Chris@76: Chris@76: // Build the link tree. Chris@76: $context['linktree'][] = array( Chris@76: 'url' => $scripturl . '?action=help', Chris@76: 'name' => $txt['help'], Chris@76: ); Chris@76: Chris@76: // Lastly, some minor template stuff. Chris@76: $context['page_title'] = $txt['manual_smf_user_help']; Chris@76: $context['sub_template'] = 'manual'; Chris@76: } Chris@76: Chris@76: // Show some of the more detailed help to give the admin an idea... Chris@76: function ShowAdminHelp() Chris@76: { Chris@76: global $txt, $helptxt, $context, $scripturl; Chris@76: Chris@76: if (!isset($_GET['help']) || !is_string($_GET['help'])) Chris@76: fatal_lang_error('no_access', false); Chris@76: Chris@76: if (!isset($helptxt)) Chris@76: $helptxt = array(); Chris@76: Chris@76: // Load the admin help language file and template. Chris@76: loadLanguage('Help'); Chris@76: Chris@76: // Permission specific help? Chris@76: if (isset($_GET['help']) && substr($_GET['help'], 0, 14) == 'permissionhelp') Chris@76: loadLanguage('ManagePermissions'); Chris@76: Chris@76: loadTemplate('Help'); Chris@76: Chris@76: // Set the page title to something relevant. Chris@76: $context['page_title'] = $context['forum_name'] . ' - ' . $txt['help']; Chris@76: Chris@76: // Don't show any template layers, just the popup sub template. Chris@76: $context['template_layers'] = array(); Chris@76: $context['sub_template'] = 'popup'; Chris@76: Chris@76: // What help string should be used? Chris@76: if (isset($helptxt[$_GET['help']])) Chris@76: $context['help_text'] = $helptxt[$_GET['help']]; Chris@76: elseif (isset($txt[$_GET['help']])) Chris@76: $context['help_text'] = $txt[$_GET['help']]; Chris@76: else Chris@76: $context['help_text'] = $_GET['help']; Chris@76: Chris@76: // Does this text contain a link that we should fill in? Chris@76: if (preg_match('~%([0-9]+\$)?s\?~', $context['help_text'], $match)) Chris@76: $context['help_text'] = sprintf($context['help_text'], $scripturl, $context['session_id'], $context['session_var']); Chris@76: } Chris@76: Chris@76: ?>