XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
admin_header.php
Go to the documentation of this file.
1
<?php
21
$path
= dirname(dirname(dirname(dirname(__FILE__))));
22
include_once
$path
.
'/mainfile.php'
;
23
include_once
$path
.
'/include/cp_functions.php'
;
24
require_once
$path
.
'/include/cp_header.php'
;
25
26
global
$xoopsModule
;
27
28
$thisModuleDir
=
$GLOBALS
[
'xoopsModule'
]->getVar(
'dirname'
);
29
30
//if functions.php file exist
31
//require_once dirname(dirname(__FILE__)) . '/include/functions.php';
32
33
// Load language files
34
xoops_loadLanguage
(
'admin'
,
$thisModuleDir
);
35
xoops_loadLanguage
(
'modinfo'
,
$thisModuleDir
);
36
xoops_loadLanguage
(
'main'
,
$thisModuleDir
);
37
38
$pathIcon16
=
'../'
.$xoopsModule->getInfo(
'icons16'
);
39
$pathIcon32
=
'../'
.$xoopsModule->getInfo(
'icons32'
);
40
$pathModuleAdmin
= $xoopsModule->getInfo(
'dirmoduleadmin'
);
41
42
include_once
$GLOBALS
[
'xoops'
]->path(
$pathModuleAdmin
.
'/moduleadmin.php'
);
43
44
if
(
$xoopsUser
) {
45
$moduleperm_handler
=&
xoops_gethandler
(
'groupperm'
);
46
if
(!
$moduleperm_handler
->checkRight(
'module_admin'
, $xoopsModule->getVar(
'mid'
),
$xoopsUser
->getGroups())) {
47
redirect_header
(XOOPS_URL, 1,
_NOPERM
);
48
exit
();
49
}
50
}
else
{
51
redirect_header
(XOOPS_URL .
"/user.php"
, 1,
_NOPERM
);
52
exit
();
53
}
54
55
if
(!isset(
$xoopsTpl
) || !is_object(
$xoopsTpl
)) {
56
include_once(XOOPS_ROOT_PATH.
"/class/template.php"
);
57
$xoopsTpl
=
new
XoopsTpl
();
58
}
59
60
//$xoopsTpl->assign('pathIcon16', $pathIcon16);
61
62
if
(!isset(
$GLOBALS
[
'xoopsTpl'
]) || !is_object(
$GLOBALS
[
'xoopsTpl'
])) {
63
include_once XOOPS_ROOT_PATH .
'/class/template.php'
;
64
$GLOBALS
[
'xoopsTpl'
] =
new
XoopsTpl
();
65
}
L:
0xoops
xoops-2.5.6
htdocs
modules
pm
admin
admin_header.php
Generated on Fri May 10 2013 01:04:27 for XOOPS 2.5.6 by
1.8.3.1