| 1 | <?php
|
|---|
| 2 | /**
|
|---|
| 3 | * Theme name: admin_default
|
|---|
| 4 | * Template name: main.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) 2010, Hotaru CMS
|
|---|
| 25 | * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License
|
|---|
| 26 | * @link http://www.hotarucms.org/
|
|---|
| 27 | */
|
|---|
| 28 |
|
|---|
| 29 | ?>
|
|---|
| 30 |
|
|---|
| 31 | <table id='admin-home'>
|
|---|
| 32 | <tr>
|
|---|
| 33 |
|
|---|
| 34 | <td id='left'>
|
|---|
| 35 |
|
|---|
| 36 | <!-- TITLE FOR ADMIN NEWS -->
|
|---|
| 37 | <h2>
|
|---|
| 38 | <a href="http://feeds2.feedburner.com/hotarucms"><img src="<?php echo BASEURL; ?>content/admin_themes/<?php echo ADMIN_THEME; ?>images/rss_16.png" alt="rss" /></a>
|
|---|
| 39 | <?php echo $h->lang["admin_theme_main_latest"]; ?>
|
|---|
| 40 | </h2>
|
|---|
| 41 |
|
|---|
| 42 | <h3><?php echo $h->lang["admin_theme_main_help"]; ?></h3>
|
|---|
| 43 |
|
|---|
| 44 | <!-- Feed items, number to show content for, max characters for content -->
|
|---|
| 45 | <?php echo $h->adminNews(10, 3, 300); ?>
|
|---|
| 46 |
|
|---|
| 47 | <br/>
|
|---|
| 48 | <h2><?php echo $h->lang["admin_theme_main_join_us"]; ?></h2>
|
|---|
| 49 | </td>
|
|---|
| 50 |
|
|---|
| 51 | <td id='right'>
|
|---|
| 52 | <h2><?php echo SITE_NAME . " " . $h->lang["admin_theme_main_stats"]; ?></h2>
|
|---|
| 53 | <ul id="site-stats">
|
|---|
| 54 | <li>Hotaru CMS <?php echo $h->version; ?></li>
|
|---|
| 55 |
|
|---|
| 56 | <?php
|
|---|
| 57 | $systeminfo = new SystemInfo();
|
|---|
| 58 | $systeminfo->hotaru_version($h);
|
|---|
| 59 |
|
|---|
| 60 | $sql = "SELECT miscdata_value as latest_version FROM " . TABLE_MISCDATA ." WHERE miscdata_key = %s";
|
|---|
| 61 | $query = $h->db->get_row($h->db->prepare($sql, 'hotaru_latest_version'));
|
|---|
| 62 | if ($query) {
|
|---|
| 63 | $hotaru_latest_version = $query->latest_version;
|
|---|
| 64 | if (version_compare($hotaru_latest_version, $h->version) > 0) {
|
|---|
| 65 | echo "<li><a href='http://hotarucms.org/forumdisplay.php?23-Download-Hotaru-CMS'>" . $h->lang['admin_theme_version_update_to'] . $hotaru_latest_version . "</a></li>";
|
|---|
| 66 | }
|
|---|
| 67 | }
|
|---|
| 68 | ?>
|
|---|
| 69 |
|
|---|
| 70 | <?php $h->pluginHook('admin_theme_main_stats_post_version'); ?>
|
|---|
| 71 | <?php $h->pluginHook('admin_theme_main_stats', 'users', array('Summary' => array('total_users', 'admins', 'supermods', 'moderators'))); ?>
|
|---|
| 72 | <?php $h->pluginHook('admin_theme_main_stats', 'users', array('Users' => array('approved_users', 'undermod_users', 'pending_users', 'banned_users', 'killspammed_users'))); ?>
|
|---|
| 73 | <?php $h->pluginHook('admin_theme_main_stats', 'bookmarking', array('Posts' => array('total_posts', 'approved_posts', 'pending_posts', 'buried_posts', 'archived_posts'))); ?>
|
|---|
| 74 | <?php $h->pluginHook('admin_theme_main_stats', 'comments', array('Comments' => array('total_comments', 'approved_comments', 'pending_comments', 'archived_comments'))); ?>
|
|---|
| 75 | </ul>
|
|---|
| 76 | </td>
|
|---|
| 77 |
|
|---|
| 78 | </tr>
|
|---|
| 79 | </table>
|
|---|