| 1 | <?php
|
|---|
| 2 | /**
|
|---|
| 3 | * Theme name: admin_default
|
|---|
| 4 | * Template name: maintenance.php
|
|---|
| 5 | * Template author: Nick Ramsay
|
|---|
| 6 | *
|
|---|
| 7 | * PHP version 5
|
|---|
| 8 | *
|
|---|
| 9 | * LICENSE: Hotaru CMS is free software: you can redistribute it and/or
|
|---|
| 10 | * modify it under the terms of the GNU General Public License as
|
|---|
| 11 | * published by the Free Software Foundation, either version 3 of
|
|---|
| 12 | * the License, or (at your option) any later version.
|
|---|
| 13 | *
|
|---|
| 14 | * Hotaru CMS is distributed in the hope that it will be useful, but WITHOUT
|
|---|
| 15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|---|
| 16 | * FITNESS FOR A PARTICULAR PURPOSE.
|
|---|
| 17 | *
|
|---|
| 18 | * You should have received a copy of the GNU General Public License along
|
|---|
| 19 | * with Hotaru CMS. If not, see http://www.gnu.org/licenses/.
|
|---|
| 20 | *
|
|---|
| 21 | * @category Content Management System
|
|---|
| 22 | * @package HotaruCMS
|
|---|
| 23 | * @author Nick Ramsay <admin@hotarucms.org>
|
|---|
| 24 | * @copyright Copyright (c) 2009, Hotaru CMS
|
|---|
| 25 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
|
|---|
| 26 | * @link http://www.hotarucms.org/
|
|---|
| 27 | */
|
|---|
| 28 |
|
|---|
| 29 | $plugin_settings = $h->vars['admin_plugin_settings'];
|
|---|
| 30 | $db_tables = $h->vars['admin_plugin_tables'];
|
|---|
| 31 | ?>
|
|---|
| 32 |
|
|---|
| 33 | <h2><?php echo $h->lang["admin_theme_maintenance_title"]; ?></h2>
|
|---|
| 34 |
|
|---|
| 35 | <?php $h->showMessage(); ?>
|
|---|
| 36 |
|
|---|
| 37 | <?php $h->pluginHook('admin_maintenance_top'); ?>
|
|---|
| 38 |
|
|---|
| 39 | <h2><?php echo $h->lang["admin_theme_maintenance_site"]; ?></h2>
|
|---|
| 40 | <ul>
|
|---|
| 41 | <?php if (SITE_OPEN == "true") { ?>
|
|---|
| 42 | <li><a href="<?php echo BASEURL; ?>admin_index.php?page=maintenance&action=close">
|
|---|
| 43 | <?php echo $h->lang["admin_theme_maintenance_close_site"]; ?></a> - <?php echo $h->lang["admin_theme_maintenance_close_site_desc"]; ?></li>
|
|---|
| 44 | <?php } else { ?>
|
|---|
| 45 | <li><a href="<?php echo BASEURL; ?>admin_index.php?page=maintenance&action=open">
|
|---|
| 46 | <?php echo $h->lang["admin_theme_maintenance_open_site"]; ?></a> - <?php echo $h->lang["admin_theme_maintenance_open_site_desc"]; ?></li>
|
|---|
| 47 | <?php } ?>
|
|---|
| 48 |
|
|---|
| 49 | <br />
|
|---|
| 50 | <?php echo $h->lang["admin_theme_maintenance_announcement"]; ?>
|
|---|
| 51 |
|
|---|
| 52 | <form name='maintenance_announcement' action='<?php echo BASEURL; ?>admin_index.php' method='get'>
|
|---|
| 53 | <table>
|
|---|
| 54 | <tr>
|
|---|
| 55 | <td colspan=2><textarea name='announcement_text' cols=80 rows=3><?php echo $h->vars['admin_announcement']; ?></textarea><br />
|
|---|
| 56 | <?php echo $h->lang["admin_theme_maintenance_announcement_tags"]; ?>
|
|---|
| 57 | </td>
|
|---|
| 58 | </tr>
|
|---|
| 59 | <tr>
|
|---|
| 60 | <td><input type='checkbox' name='announcement_enabled' value='announcement_enabled' <?php echo $h->vars['admin_announcement_enabled']; ?>>
|
|---|
| 61 | <?php echo $h->lang["admin_theme_maintenance_announcement_enable"]; ?></td>
|
|---|
| 62 | <td style='text-align:right;'><input type='submit' value='<?php echo $h->lang['main_form_submit']; ?>' /></td>
|
|---|
| 63 | </tr>
|
|---|
| 64 | </table>
|
|---|
| 65 | <input type='hidden' name='action' value='announcement'>
|
|---|
| 66 | <input type='hidden' name='page' value='maintenance'>
|
|---|
| 67 | <input type='hidden' name='csrf' value='<?php echo $h->csrfToken; ?>' />
|
|---|
| 68 | </form>
|
|---|
| 69 |
|
|---|
| 70 | </ul>
|
|---|
| 71 |
|
|---|
| 72 | <h2><?php echo $h->lang["admin_theme_maintenance_cache"]; ?></h2>
|
|---|
| 73 | <ul>
|
|---|
| 74 | <li style="margin-bottom: 1em;"><a href="<?php echo BASEURL; ?>admin_index.php?page=maintenance&action=clear_all_cache">
|
|---|
| 75 | <?php echo $h->lang["admin_theme_maintenance_all_cache"]; ?></a> - <?php echo $h->lang["admin_theme_maintenance_all_cache_desc"]; ?></li>
|
|---|
| 76 | <li><a href="<?php echo BASEURL; ?>admin_index.php?page=maintenance&action=clear_db_cache">
|
|---|
| 77 | <?php echo $h->lang["admin_theme_maintenance_db_cache"]; ?></a> - <?php echo $h->lang["admin_theme_maintenance_db_cache_desc"]; ?></li>
|
|---|
| 78 | <li><a href="<?php echo BASEURL; ?>admin_index.php?page=maintenance&action=clear_css_js_cache">
|
|---|
| 79 | <?php echo $h->lang["admin_theme_maintenance_css_js_cache"]; ?></a> - <?php echo $h->lang["admin_theme_maintenance_css_js_cache_desc"]; ?></li>
|
|---|
| 80 | <li><a href="<?php echo BASEURL; ?>admin_index.php?page=maintenance&action=clear_html_cache">
|
|---|
| 81 | <?php echo $h->lang["admin_theme_maintenance_html_cache"]; ?></a> - <?php echo $h->lang["admin_theme_maintenance_html_cache_desc"]; ?></li>
|
|---|
| 82 | <li><a href="<?php echo BASEURL; ?>admin_index.php?page=maintenance&action=clear_rss_cache">
|
|---|
| 83 | <?php echo $h->lang["admin_theme_maintenance_rss_cache"]; ?></a> - <?php echo $h->lang["admin_theme_maintenance_rss_cache_desc"]; ?></li>
|
|---|
| 84 | </ul>
|
|---|
| 85 |
|
|---|
| 86 | <br />
|
|---|
| 87 |
|
|---|
| 88 | <h2><?php echo $h->lang["admin_theme_maintenance_debug"]; ?></h2>
|
|---|
| 89 | <ul>
|
|---|
| 90 | <li><a href="<?php echo BASEURL; ?>admin_index.php?page=maintenance&action=delete_debugs">
|
|---|
| 91 | <?php echo $h->lang["admin_theme_maintenance_debug_delete"]; ?></a></li>
|
|---|
| 92 | <li style="margin-bottom: 1em;"><a href="<?php echo BASEURL; ?>admin_index.php?page=maintenance&action=system_report">
|
|---|
| 93 | <?php echo $h->lang["admin_theme_maintenance_system_report"]; ?></a></li>
|
|---|
| 94 | <li style="margin-bottom: 1em;"><a href="<?php echo BASEURL; ?>admin_index.php?page=maintenance&action=email_report">
|
|---|
| 95 | <?php echo $h->lang["admin_theme_maintenance_email_system_report"]; ?></a>
|
|---|
| 96 | <?php echo $h->lang["admin_theme_maintenance_email_system_report_note"]; ?></li>
|
|---|
| 97 | </ul>
|
|---|
| 98 |
|
|---|
| 99 | <?php if ($h->vars['debug_files']) {
|
|---|
| 100 | echo $h->lang["admin_theme_maintenance_debug_view"] . "<br />";
|
|---|
| 101 | foreach ($h->vars['debug_files'] as $file) {
|
|---|
| 102 | echo "<a href='" . BASEURL . "admin_index.php?page=maintenance&debug=" . $file . "'>" . $file . "</a><br />";
|
|---|
| 103 | }
|
|---|
| 104 | } else {
|
|---|
| 105 | echo $h->lang["admin_theme_maintenance_debug_no_files"];
|
|---|
| 106 | }
|
|---|
| 107 | ?>
|
|---|
| 108 | <br />
|
|---|
| 109 |
|
|---|
| 110 | <h2><?php echo $h->lang["admin_theme_maintenance_optimize"]; ?></h2>
|
|---|
| 111 | <ul>
|
|---|
| 112 | <li><a href="<?php echo BASEURL; ?>admin_index.php?page=maintenance&action=optimize">
|
|---|
| 113 | <?php echo $h->lang["admin_theme_maintenance_optimize_database"]; ?></a> - <?php echo $h->lang["admin_theme_maintenance_optimize_desc"]; ?></li>
|
|---|
| 114 | <?php $h->pluginHook('admin_maintenance_database'); ?>
|
|---|
| 115 | </ul>
|
|---|
| 116 |
|
|---|
| 117 | <?php $h->pluginHook('admin_maintenance_middle'); ?>
|
|---|
| 118 |
|
|---|
| 119 | <br />
|
|---|
| 120 | <h2><?php echo $h->lang["admin_theme_maintenance_plugin_settings"]; ?></h2>
|
|---|
| 121 | <?php echo $h->lang["admin_theme_maintenance_plugin_settings_explanation"]; ?><br /><br />
|
|---|
| 122 | <ul>
|
|---|
| 123 | <?php if ($plugin_settings) { ?>
|
|---|
| 124 | <?php foreach ($plugin_settings as $settings) { ?>
|
|---|
| 125 | <li><a href="<?php echo BASEURL; ?>admin_index.php?page=maintenance&action=remove_settings&settings=<?php echo $settings; ?>">
|
|---|
| 126 | <?php echo $h->lang["admin_theme_maintenance_remove"] . " " . make_name($settings) . " " . $h->lang["admin_theme_maintenance_settings"]; ?> </a></li>
|
|---|
| 127 | <?php } ?>
|
|---|
| 128 | <?php } else { ?>
|
|---|
| 129 | <i><?php echo $h->lang["admin_theme_maintenance_no_plugin_settings_to_delete"]; ?></i>
|
|---|
| 130 | <?php } ?>
|
|---|
| 131 | </ul>
|
|---|
| 132 |
|
|---|
| 133 | <br />
|
|---|
| 134 | <h2><?php echo $h->lang["admin_theme_maintenance_db_tables"]; ?></h2>
|
|---|
| 135 | <span style='color: red;'><?php echo $h->lang["admin_theme_maintenance_db_table_warning"]; ?></span><br /><br />
|
|---|
| 136 | <?php echo $h->lang["admin_theme_maintenance_empty_explanation"]; ?><br /><br />
|
|---|
| 137 | <ul>
|
|---|
| 138 | <?php if($db_tables) { ?>
|
|---|
| 139 | <?php foreach ($db_tables as $table) { ?>
|
|---|
| 140 | <li><a href="<?php echo BASEURL; ?>admin_index.php?page=maintenance&action=empty&table=<?php echo $table; ?>">
|
|---|
| 141 | <?php echo $h->lang["admin_theme_maintenance_empty"] . " " . $table; ?> </a></li>
|
|---|
| 142 | <?php } ?>
|
|---|
| 143 | <?php } else { ?>
|
|---|
| 144 | <i><?php echo $h->lang["admin_theme_maintenance_no_db_tables_to_empty"]; ?></i>
|
|---|
| 145 | <?php } ?>
|
|---|
| 146 | </ul>
|
|---|
| 147 |
|
|---|
| 148 | <?php $h->pluginHook('admin_maintenance_bottom'); ?>
|
|---|