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
21
defined(
"XOOPS_ROOT_PATH"
) or die("XOOPS root path not defined");
22
23
$path
= dirname(dirname(dirname(dirname(__FILE__))));
24
include_once
$path
. '/mainfile.php';
25
26
$dirname
= basename(dirname(dirname(__FILE__)));
27
$module_handler
=
xoops_gethandler
('module');
28
$module
=
$module_handler
->getByDirname(
$dirname
);
29
$pathIcon32
=
$module
->getInfo('icons32');
30
$pathModuleAdmin
=
$module
->getInfo('dirmoduleadmin');
31
$pathLanguage
=
$path
.
$pathModuleAdmin
;
32
33
34
if
(!file_exists($fileinc =
$pathLanguage
. '/language/' .
$GLOBALS
['xoopsConfig']['language'] . '/' . 'main.php')) {
35
$fileinc =
$pathLanguage
.
'/language/english/main.php'
;
36
}
37
38
include_once $fileinc;
39
40
$adminmenu
= array();
41
42
$i
= 1;
43
$adminmenu
[
$i
][
'title'
] =
_PROFILE_MI_HOME
;
44
$adminmenu
[
$i
][
'link'
] =
"admin/index.php"
;
45
$adminmenu
[
$i
][
'icon'
] =
$pathIcon32
.
'/home.png'
;
46
$i
++;
47
$adminmenu
[
$i
][
'title'
] =
_PROFILE_MI_USERS
;
48
$adminmenu
[
$i
][
'link'
] =
"admin/user.php"
;
49
$adminmenu
[
$i
][
'icon'
] =
$pathIcon32
.
'/users.png'
;
50
$i
++;
51
$adminmenu
[
$i
][
'title'
] =
_PROFILE_MI_CATEGORIES
;
52
$adminmenu
[
$i
][
'link'
] =
"admin/category.php"
;
53
$adminmenu
[
$i
][
'icon'
] =
$pathIcon32
.
'/category.png'
;
54
$i
++;
55
$adminmenu
[
$i
][
'title'
] =
_PROFILE_MI_FIELDS
;
56
$adminmenu
[
$i
][
'link'
] =
"admin/field.php"
;
57
$adminmenu
[
$i
][
'icon'
] =
$pathIcon32
.
'/index.png'
;
58
$i
++;
59
$adminmenu
[
$i
][
'title'
] =
_PROFILE_MI_STEPS
;
60
$adminmenu
[
$i
][
'link'
] =
"admin/step.php"
;
61
$adminmenu
[
$i
][
'icon'
] =
$pathIcon32
.
'/stats.png'
;
62
$i
++;
63
$adminmenu
[
$i
][
'title'
] =
_PROFILE_MI_PERMISSIONS
;
64
$adminmenu
[
$i
][
'link'
] =
"admin/permissions.php"
;
65
$adminmenu
[
$i
][
'icon'
] =
$pathIcon32
.
'/permissions.png'
;
66
$i
++;
67
$adminmenu
[
$i
][
'title'
] =
_PROFILE_MI_ABOUT
;
68
$adminmenu
[
$i
][
'link'
] =
'admin/about.php'
;
69
$adminmenu
[
$i
][
'icon'
] =
$pathIcon32
.
'/about.png'
;
L:
0xoops
xoops-2.5.6
htdocs
modules
profile
admin
menu.php
Generated on Fri May 10 2013 01:04:28 for XOOPS 2.5.6 by
1.8.3.1