-
Notifications
You must be signed in to change notification settings - Fork 0
/
admin_style_prefs.php
53 lines (43 loc) · 1.54 KB
/
admin_style_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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* e107plugin_template 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:/cvs/cvsrepo/e107helpers/admin_style_prefs.php,v $
* $Revision: 1.2 $
* $Date: 2006/03/07 23:30:42 $
* $Author: Neil $
* @package e107HelperAdmin
* @access private
*/
/**
* @package e107HelperAdmin
* @access private
*/
// 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
//headerx("location:".e_BASE."index.php");
e107::redirect();
exit;
}
// Include auth.php rather than header.php ensures an admin user is logged in
require_once(e_ADMIN."auth.php");
// Include the class file for this plugin, includes all other required includes
require(e_PLUGIN."e107helpers/e107Helper.php");
require_once(e_ADMIN."header.php");
$title = HELPER_LAN_01." - ".HELPER_LAN_ADMIN_PAGE_2_NAME;
$pageid = HELPER_LAN_ADMIN_PAGE_2_ID;
// Create and process a form using the helper classes
$e107HelperForm->createFormFromXML("forms/style_prefs");
$e107HelperForm->processForm(true, true);
$text .= $e107HelperForm->getFormHTML();
$ns->tablerender($title, $text);
require_once(e_ADMIN."footer.php");
?>