function update_modules_menu(&$menu_list) { $module_query = sqlStatement("select mod_directory,mod_name,mod_nick_name,mod_relative_link,type from modules where mod_active = 1 AND sql_run= 1 order by mod_ui_order asc"); if (sqlNumRows($module_query)) { while ($modulerow = sqlFetchArray($module_query)) { $acl_section = strtolower($modulerow['mod_directory']); if (!zh_acl_check($_SESSION['authUserID'], $acl_section)) { continue; } $modulePath = ""; $added = ""; if ($modulerow['type'] == 0) { $modulePath = $GLOBALS['customModDir']; $added = ""; } else { $added = "index"; $modulePath = $GLOBALS['zendModDir']; } $relative_link = "/interface/modules/" . $modulePath . "/" . $modulerow['mod_relative_link'] . $added; $mod_nick_name = $modulerow['mod_nick_name'] ? $modulerow['mod_nick_name'] : $modulerow['mod_name']; $newEntry = new stdClass(); $newEntry->label = xlt($mod_nick_name); $newEntry->url = $relative_link; $newEntry->requirement = 0; $newEntry->target = 'mod'; array_push($menu_list->children, $newEntry); } } }
?> </span></a> <ul> <?php genMiscLink('RTop', 'adm', '0', xl('Manage Modules'), 'modules/zend_modules/public/Installer'); ?> <?php //genTreeLink('RTop','ort',xl('Settings')); ?> <?php $module_query = sqlStatement("select mod_directory,mod_name,mod_nick_name,mod_relative_link,type from modules where mod_active = 1 AND sql_run= 1 order by mod_ui_order asc"); if (sqlNumRows($module_query)) { while ($modulerow = sqlFetchArray($module_query)) { $acl_section = strtolower($modulerow['mod_directory']); $disallowed[$acl_section] = zh_acl_check($_SESSION['authUserID'], $acl_section) ? "" : "1"; $modulePath = ""; $added = ""; if ($modulerow['type'] == 0) { $modulePath = $GLOBALS['customModDir']; $added = ""; } else { $added = "index"; $modulePath = $GLOBALS['zendModDir']; } $relative_link = "modules/" . $modulePath . "/" . $modulerow['mod_relative_link'] . $added; $mod_nick_name = $modulerow['mod_nick_name'] ? $modulerow['mod_nick_name'] : $modulerow['mod_name']; ?> <?php genMiscLink2('RTop', $acl_section, '0', xlt($mod_nick_name), $relative_link); ?>