XOOPS 2.5.6  Final
 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__)));
28 $module = $module_handler->getByDirname($dirname);
29 $pathIcon32 = $module->getInfo('icons32');
30 $pathModuleAdmin = $module->getInfo('dirmoduleadmin');
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;
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++;
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++;
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';