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