-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin_prefs.php
36 lines (32 loc) · 1.22 KB
/
admin_prefs.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
<?php
/*
+---------------------------------------------------------------+
| Election by bugrain (www.bugrain.plus.com)
|
| A plugin for the e107 Website System (http://e107.org)
|
| Released under the terms and conditions of the
| GNU General Public License (http://gnu.org).
|
| $Source: e:\_repository\e107_plugins/election/admin_prefs.php,v $
| $Revision: 1.1 $
| $Date: 2006/12/31 16:01:19 $
| $Author: Neil $
+---------------------------------------------------------------+
*/
// 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")) {
// No permissions set, redirect to site front page
header("location:".e_BASE."index.php");
exit;
}
// Required files
require_once(e_PLUGIN."election/handlers/election_class.php");
require_once(ELECC_HANDLERS_DIR."/election_utils.php");
// Include auth.php rather than header.php ensures an admin user is logged in
require_once(e_ADMIN."auth.php");
$adminpage = $elec->getAdminPage();
$ns->tablerender($adminpage[0], $adminpage[1]);
require_once(e_ADMIN."footer.php");