-
Notifications
You must be signed in to change notification settings - Fork 2
/
admin_stats.php
40 lines (32 loc) · 1.39 KB
/
admin_stats.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<?php
/*
+------------------------------------------------------------------------------+
|
| This file shows information about the db itself and serves as the home page
| for admins. It gives a quick over view of the most recently added items,
| older items that should be reverified, number of entries, and Top contributors.
|
|
|
|
+------------------------------------------------------------------------------+
*/
// Ensure this program is loaded in admin theme before calling class2
// Strictly taken this is not really needed when the file name begins with admin_
$eplug_admin = true;
// class2.php is the heart of e107, always include it first to give access to e107 constants and variables
require_once('../../class2.php');
// Check to see if the current user has admin permissions for this plugin
if ( ! getperms('P')) { header('location:'.e_BASE.'index.php'); exit(); }
// Include auth.php rather than header.php ensures an admin user is logged in
require_once(e_ADMIN.'auth.php');
// Get language file (assume that the English language file is always present)
include_lan(e_PLUGIN.'EGDB/languages/'.e_LANGUAGE.'.php');
// Set the active menu option for admin_menu.php
$pageid = 'admin_menu_01';
//========================================== Begin Page ===================================================
$text='';
$title= EGDB_STATS_00;
$ns->tablerender($title,$text);
require_once(e_ADMIN.'footer.php');
?>