| 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 SITEURL; ?>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 |
|
|---|
| 58 | $sql = "SELECT miscdata_value as latest_version FROM " . TABLE_MISCDATA ." WHERE miscdata_key = %s";
|
|---|
| 59 | $query = $h->db->get_row($h->db->prepare($sql, 'hotaru_latest_version'));
|
|---|
| 60 | if ($query) {
|
|---|
| 61 | $hotaru_latest_version = $query->latest_version;
|
|---|
| 62 | if (version_compare($hotaru_latest_version, $h->version) > 0) {
|
|---|
| 63 | 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>";
|
|---|
| 64 | }
|
|---|
| 65 | }
|
|---|
| 66 | ?>
|
|---|
| 67 |
|
|---|
| 68 | <?php $h->pluginHook('admin_theme_main_stats_post_version'); ?>
|
|---|
| 69 | <?php $h->pluginHook('admin_theme_main_stats', 'users', array('Summary' => array('total_users', 'admin', 'supermod', 'moderator'))); ?>
|
|---|
| 70 | <?php $h->pluginHook('admin_theme_main_stats', 'users', array('Users' => array('approved_users', 'undermod', 'pending', 'banned', 'killspammed'))); ?>
|
|---|
| 71 | <?php $h->pluginHook('admin_theme_main_stats', 'post_manager', array('Posts' => array('total_posts', 'approved', 'pending', 'buried', 'archived'))); ?>
|
|---|
| 72 | <?php $h->pluginHook('admin_theme_main_stats', 'comments', array('Comments' => array('total_comments', 'approved_comments', 'pending_comments', 'archived_comments'))); ?>
|
|---|
| 73 | </ul>
|
|---|
| 74 | </td>
|
|---|
| 75 |
|
|---|
| 76 | </tr>
|
|---|
| 77 | </table>
|
|---|