'; // For every section that appears on the sidebar... foreach ($context['admin_areas'] as $section) { // Show the section header - and pump up the line spacing for readability. echo ' '; } // This is where the actual "main content" area for the admin section starts. echo '
', $section['title'], '
'; // For every area of this section show a link to that area (bold if it's currently selected.) foreach ($section['areas'] as $i => $area) { // Is this the current area, or just some area? if ($i == $context['admin_area']) echo ' ', $area, '
'; else echo ' ', $area, '
'; } echo '
'; // If there are any "tabs" setup, this is the place to shown them. if (!empty($context['admin_tabs'])) { echo ' '; // shall we use the tabs? if (!empty($settings['use_tabs'])) { // Find the selected tab first foreach($context['admin_tabs']['tabs'] AS $tab) if (!empty($tab['is_selected'])) $selected_tab = $tab; echo '
'; // Show a help item? if (!empty($context['admin_tabs']['help'])) echo ' ', $txt[119], ' '; echo ' ', $context['admin_tabs']['title'], '
', !empty($selected_tab['description']) ? $selected_tab['description'] : $context['admin_tabs']['description'], '
'; // The admin tabs. echo ' '; // Print out all the items in this tab. foreach ($context['admin_tabs']['tabs'] as $tab) { if (!empty($tab['is_selected'])) { echo ' '; } else echo ' '; } // the end of tabs echo '
   ', $tab['title'], '   ', $tab['title'], '  

'; } // ...if not use the old style else { echo ' '; // Print out all the items in this tab. foreach ($context['admin_tabs']['tabs'] as $tab) { if (!empty($tab['is_selected'])) { echo ' * ', $tab['title'], ''; $selected_tab = $tab; } else echo ' ', $tab['title'], ''; if (empty($tab['is_last'])) echo ' | '; } echo ' ', isset($selected_tab['description']) ? $selected_tab['description'] : $context['admin_tabs']['description'], ' '; } } } // Part of the admin layer - used with admin_above to close the table started in it. function template_admin_below() { global $context, $settings, $options; echo ' '; } // This is the administration center home. function template_admin() { global $context, $settings, $options, $scripturl, $txt, $modSettings; // Welcome message for the admin. echo '
', $txt[208], '
', $txt['hello_guest'], ' ', $context['user']['name'], '!
', $txt[644], '
'; // Is there an update available? echo ' '; echo ' '; // Display the "live news" from simplemachines.org. echo ' '; // Show the user version information from their server. echo '
', $txt[119], ' ', $txt['smf217'], '
', $txt['lfyi'], '
 
', $txt['support_title'], '
', $txt['support_versions'], ':
', $txt['support_versions_forum'], ': ', $context['forum_version'], '
', $txt['support_versions_current'], ': ??
', $context['can_admin'] ? '' . $txt['dvc_more'] . '' : '', '
'; // Have they paid to remove copyright? if (!empty($context['copyright_expires'])) { echo '
', sprintf($txt['copyright_ends_in'], $context['copyright_expires']); if ($context['copyright_expires'] < 30) echo '
', sprintf($txt['copyright_click_renew'], $context['copyright_key']), '
'; echo '
'; } // Display all the members who can administrate the forum. echo '
', $txt[684], ': ', implode(', ', $context['administrators']); // If we have lots of admins... don't show them all. if (!empty($context['more_admins_link'])) echo ' (', $context['more_admins_link'], ')'; echo '
'; echo ' '; $row = false; foreach ($context['quick_admin_tasks'] as $task) { echo ' '; if ($row && !$task['is_last']) echo ' '; $row = !$row; } echo '
', $task['link'], '
', $task['description'], '
'; // The below functions include all the scripts needed from the simplemachines.org site. The language and format are passed for internationalization. if (empty($modSettings['disable_smf_js'])) echo ' '; // This sets the announcements and current versions themselves ;). echo ' '; } // Mangage the copyright. function template_manage_copyright() { global $context, $settings, $options, $scripturl, $txt; echo '
', $txt['copyright_removal'], '
', $txt['copyright_removal_desc'], '
', $txt['copyright_code'], ':
'; } // Show some support information and credits to those who helped make this. function template_credits() { global $context, $settings, $options, $scripturl, $txt, $modSettings; // Show the user version information from their server. echo '
', $txt['support_title'], '
', $txt['support_versions'], ':
', $txt['support_versions_forum'], ': ', $context['forum_version'], '', $context['can_admin'] ? ' ' . $txt['dvc_more'] . '' : '', '
', $txt['support_versions_current'], ': ??
'; // Display all the variables we have server information for. foreach ($context['current_versions'] as $version) echo ' ', $version['title'], ': ', $version['version'], '
'; echo '
'; // Display latest support questions from simplemachines.org. echo '
', $txt[119], ' ', $txt['support_latest'], '
', $txt['support_latest_fetch'], '
'; // The most important part - the credits :P. echo '
', $txt[571], '
', $context['credits'], '
'; // This makes all the support information available to the support script... echo ' '; if (empty($modSettings['disable_smf_js'])) echo ' '; // This sets the latest support stuff. echo ' '; } // Displays information about file versions installed, and compares them to current version. function template_view_versions() { global $context, $settings, $options, $scripturl, $txt; echo '
', $txt[429], '
', $txt['dvc1'], '
'; // The current version of the core SMF package. echo ' '; // Now list all the source file versions, starting with the overall version (if all match!). echo '
', $txt[495], '', $txt['dvc_your'], '', $txt['dvc_current'], '
', $txt[496], '', $context['forum_version'], '??
', $txt['dvc_sources'], '????
'; // Loop through every source file displaying its version - using javascript. foreach ($context['file_versions'] as $filename => $version) echo ' '; // Default template files. echo '
', $filename, '', $version, '??
', $txt['dvc_default'], '????
'; foreach ($context['default_template_versions'] as $filename => $version) echo ' '; // Now the language files... echo '
', $filename, '', $version, '??
', $txt['dvc_languages'], '????
'; foreach ($context['default_language_versions'] as $language => $files) { foreach ($files as $filename => $version) echo ' '; } echo '
', $filename, '.', $language, '.php', $version, '??
'; // Finally, display the version information for the currently selected theme - if it is not the default one. if (!empty($context['template_versions'])) { echo '
', $txt['dvc_templates'], '????
'; foreach ($context['template_versions'] as $filename => $version) echo ' '; echo '
', $filename, '', $version, '??
'; } echo '
'; /* Below is the hefty javascript for this. Upon opening the page it checks the current file versions with ones held at simplemachines.org and works out if they are up to date. If they aren't it colors that files number red. It also contains the function, swapOption, that toggles showing the detailed information for each of the file catorgories. (sources, languages, and templates.) */ echo ' '; // Internet Explorer 4 is tricky, it won't set any innerHTML until after load. if ($context['browser']['is_ie4']) echo ' '; else echo ' '; } // Form for stopping people using naughty words, etc. function template_edit_censored() { global $context, $settings, $options, $scripturl, $txt, $modSettings; // First section is for adding/removing words from the censored list. echo '
', $txt[135], '
', $txt[136], '
'; // Show text boxes for censoring [bad ] => [good ]. foreach ($context['censored_words'] as $vulgar => $proper) echo '
=>
'; // Now provide a way to censor more words. echo '



'; // This table lets you test out your filters by typing in rude words and seeing what comes out. echo '
', $txt['censor_test'], '
'; } // Template for editing post settings. function template_edit_post_settings() { global $context, $settings, $options, $txt, $scripturl, $modSettings; echo '
', $txt['manageposts_settings'], '
(?):
(?):
', $txt['enableEmbeddedFlash_warning'], '
(?):
', $txt['enableSpellChecking_warning'], '

:
', $txt['max_messageLength_zero'], '
', $txt['manageposts_characters'], '
(?):
', $txt['fixLongWords_zero'], '
', $txt['manageposts_characters'], '
(?): ', $txt['manageposts_posts'], '

(?): ', $txt['manageposts_seconds'], '
(?): ', $txt['manageposts_seconds'], '
(?):
', $txt['edit_disable_time_zero'], '
', $txt['manageposts_minutes'], '
'; } // Template for editing bulletin board code settings. function template_edit_bbc_settings() { global $context, $settings, $options, $txt, $scripturl, $modSettings; echo '
', $txt['manageposts_bbc_settings_title'], '
(?):
(?):
:
:
', $txt['bbcTagsToUse_select'], ' '; foreach ($context['bbc_columns'] as $bbcColumn) { echo ' '; } echo '
'; foreach ($bbcColumn as $bbcTag) echo ' ', $bbcTag['show_help'] ? ' (?)' : '', '
'; echo '

'; if (empty($modSettings['enableBBC'])) echo ' '; } // Template for editing post settings. function template_edit_topic_settings() { global $context, $settings, $options, $txt, $scripturl, $modSettings; echo '
', $txt['manageposts_topic_settings'], '
(?):
(?):

(?):
', $txt['oldTopicDays_zero'], '
', $txt['manageposts_days'], '
: ', $txt['manageposts_topics'], '
: ', $txt['manageposts_posts'], '

(?): ', $txt['manageposts_posts'], '
(?): ', $txt['manageposts_posts'], '

(?):
', $txt['enableAllMessages_zero'], '
', $txt['manageposts_posts'], '
(?):
'; } // Template for forum maintenance page. function template_maintain() { global $context, $settings, $options, $txt, $scripturl, $modSettings; // Starts off with general maintenance procedures. echo ' '; // Backing up the database...? Good idea! echo ' '; // Pruning any older posts. echo '
', $txt[119], ' ', $txt['maintain_title'], ' - ', $txt['maintain_general'], '
', $txt['maintain_optimize'], '
', $txt['maintain_version'], '
', $txt['maintain_errors'], '
', $txt['maintain_recount'], '
', $txt['maintain_logs'], '
', $context['convert_utf8'] ? ' ' . $txt['utf8_title'] . '
' : '', $context['convert_entities'] ? ' ' . $txt['entity_convert_title'] . '
' : '', '
', $txt[119], ' ', $txt['maintain_title'], ' - ', $txt['maintain_backup'], '



', $txt[119], ' ', $txt['maintain_title'], ' - ', $txt['maintain_old'], '
'; // Bit of javascript for showing which boards to prune in an otherwise hidden list. echo ' '; // The otherwise hidden "choose which boards to prune". echo '
', $txt['maintain_old_since_days1'], '', $txt['maintain_old_since_days2'], '



'; if (!empty($modSettings['enableStickyTopics'])) echo '

'; echo '
+ ', $txt['maintain_old_all'], '
'; // Pop up a box to say function completed if the user has been redirected back here from a function they ran. if ($context['maintenance_finished']) echo ' '; } // Simple template for showing results of our optimization... function template_optimize() { global $context, $settings, $options, $txt, $scripturl; echo '
', $txt['maintain_optimize'], '
', $txt['smf282'], '
', $txt['smf283'], '
'; // List each table being optimized... foreach ($context['optimized_tables'] as $table) echo ' ', sprintf($txt['smf284'], $table['name'], $table['data_freed']), '
'; // How did we go? echo '
', $context['num_tables_optimized'] == 0 ? $txt['smf285'] : $context['num_tables_optimized'] . ' ' . $txt['smf286']; echo '

', $txt['maintain_return'], '
'; } // Maintenance is a lovely thing, isn't it? function template_not_done() { global $context, $settings, $options, $txt, $scripturl; echo '
', $txt['not_done_title'], '
', $txt['not_done_reason']; // !!! Maybe this is overdoing it? if (!empty($context['continue_percent'])) echo '
', $context['continue_percent'], '%
 
'; echo '
', $context['continue_post_data'], '
'; } // Template for showing settings (Of any kind really!) function template_show_settings() { global $context, $txt, $settings, $scripturl; echo '
'; // Have we got some custom code to insert? if (!empty($context['settings_message'])) echo ' '; // Now actually loop through all the variables. foreach ($context['config_vars'] as $config_var) { echo ' '; if (is_array($config_var)) { // Show the [?] button. if ($config_var['help']) echo ' '; else echo ' '; echo ' '; } else { // Just show a separator. if ($config_var == '') echo ' '; else echo ' '; } echo ' '; } echo '
', $context['settings_title'], '
', $context['settings_message'], '
', $txt[119], ' '; // Show a check box. if ($config_var['type'] == 'check') echo ' '; // Escape (via htmlspecialchars.) the text box. elseif ($config_var['type'] == 'password') echo '
'; // Show a selection box. elseif ($config_var['type'] == 'select') { echo ' '; } // Text area? elseif ($config_var['type'] == 'large_text') { echo ' '; } // Assume it must be a text box. else echo ' '; echo '

' . $config_var . '
'; } function template_convert_utf8() { global $context, $txt, $settings, $scripturl; echo '
', $txt['utf8_title'], '
', $txt['utf8_introduction'], '
', $txt['utf8_warning'], '
', $context['charset_about_detected'], isset($context['charset_warning']) ? ' ' . $context['charset_warning'] . '' : '', '

', $txt['utf8_source_charset'], ':
', $txt['utf8_database_charset'], ': ', $context['database_charset'], '
', $txt['utf8_target_charset'], ': ', $txt['utf8_utf8'], '

'; } function template_convert_entities() { global $context, $txt, $settings, $scripturl; echo ' '; if ($context['first_step']) { echo ' '; } else { echo ' '; } echo '
', $txt['entity_convert_title'], '
', $txt['entity_convert_introduction'], '
', $context['percent_done'], '%
 
'; } ?>