XOOPS 2.5.6
Final
Main Page
Related Pages
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Pages
menu.php
Go to the documentation of this file.
1
<?php
20
defined(
"XOOPS_ROOT_PATH"
) or die("XOOPS root path not defined");
21
22
$path
= dirname(dirname(dirname(dirname(__FILE__))));
23
include_once
$path
. '/mainfile.php';
24
25
$dirname
= basename(dirname(dirname(__FILE__)));
26
$module_handler
=
xoops_gethandler
('module');
27
$module
=
$module_handler
->getByDirname(
$dirname
);
28
$pathIcon32
=
$module
->getInfo('icons32');
29
$pathModuleAdmin
=
$module
->getInfo('dirmoduleadmin');
30
$pathLanguage
=
$path
.
$pathModuleAdmin
;
31
32
33
if
(!file_exists($fileinc =
$pathLanguage
. '/language/' .
$GLOBALS
['xoopsConfig']['language'] . '/' . 'main.php')) {
34
$fileinc =
$pathLanguage
.
'/language/english/main.php'
;
35
}
36
37
include_once $fileinc;
38
39
$adminmenu
= array();
40
41
$i
= 1;
42
$adminmenu
[
$i
][
'title'
] =
_PM_MI_INDEX
;
43
$adminmenu
[
$i
][
'link'
] =
"admin/admin.php"
;
44
$adminmenu
[
$i
][
'icon'
] =
$pathIcon32
.
'/home.png'
;
45
$i
++;
46
$adminmenu
[
$i
][
'title'
] =
_PM_MI_PRUNE
;
47
$adminmenu
[
$i
][
'link'
] =
"admin/prune.php"
;
48
$adminmenu
[
$i
][
'icon'
] =
$pathIcon32
.
'/prune.png'
;
49
$i
++;
50
$adminmenu
[
$i
][
'title'
] =
_PM_MI_ABOUT
;
51
$adminmenu
[
$i
][
'link'
] =
'admin/about.php'
;
52
$adminmenu
[
$i
][
'icon'
] =
$pathIcon32
.
'/about.png'
;
L:
0xoops
xoops-2.5.6
htdocs
modules
pm
admin
menu.php
Generated on Fri May 10 2013 01:04:28 for XOOPS 2.5.6 by
1.8.3.1