XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
admin_menu.php
Go to the documentation of this file.
1 <?php
2 // start hack by Trabis
3 if (!class_exists('ProtectorRegistry')) exit('Registry not found');
4 
6 $mydirname = $registry->getEntry('mydirname');
7 $mydirpath = $registry->getEntry('mydirpath');
8 $language = $registry->getEntry('language');
9 // end hack by Trabis
10 
12 $xoopsModule =& XoopsModule::getByDirname($mydirname);
13 $moduleInfo =& $module_handler->get($xoopsModule->getVar('mid'));
14 $pathIcon32 = $moduleInfo->getInfo('icons32');
15 
16 $constpref = '_MI_' . strtoupper( $mydirname ) ;
17 
18 $adminmenu = array(
19  array(
20  'title' => constant( $constpref.'_ADMINHOME' ) ,
21  'link' => 'admin/index.php' ,
22  'icon' => '../../'.$pathIcon32.'/home.png',
23  ) ,
24  array(
25  'title' => constant( $constpref.'_ADMININDEX' ) ,
26  'link' => 'admin/center.php?page=center' ,
27  //'link' => 'admin/center.php' ,
28  'icon' => '../../'.$pathIcon32.'/firewall.png',
29  ) ,
30  array(
31  'title' => constant( $constpref.'_ADVISORY' ) ,
32  //'link' => 'admin/center.php?page=advisory' ,
33  'link' => 'admin/advisory.php' ,
34  'icon' => '../../'.$pathIcon32.'/security.png',
35  ) ,
36  array(
37  'title' => constant( $constpref.'_PREFIXMANAGER' ) ,
38  //'link' => 'admin/center.php?page=prefix_manager' ,
39  'link' => 'admin/prefix_manager.php' ,
40  'icon' => '../../'.$pathIcon32.'/manage.png',
41  ) ,
42  array(
43  'title' => constant( $constpref.'_ADMINABOUT' ) ,
44  'link' => 'admin/about.php' ,
45  'icon' => '../../'.$pathIcon32.'/about.png',
46  ) ,
47 ) ;
48 
50  array(
51  'title' => constant( $constpref.'_ADMENU_MYBLOCKSADMIN' ) ,
52  'link' => 'admin/main.php?mode=admin&lib=altsys&page=myblocksadmin' ,
53  ) ,
54  array(
55  'title' => _PREFERENCES ,
56  'link' => 'admin/main.php?mode=admin&lib=altsys&page=mypreferences' ,
57  ) ,
58 ) ;
59 
60 
61 ?>