//
function ADMIN_DO_ACTION($wht) {
- global $menuDesription, $menuTitle, $DATA;
+ global $DATA;
//* DEBUG: */ echo __LINE__."*".$wht."/".$GLOBALS['module']."/".$GLOBALS['action']."/".$GLOBALS['what']."*<br />\n";
// Remove any spaces from variable
}
//
function ADD_ADMIN_MENU($act, $wht, $return=false) {
- global $menuDesription, $menuTitle;
-
// Init variables
$SUB = false;
$OUT = "";
// Menu descriptions
- $menuDesription = array();
- $menuTitle = array();
+ $GLOBALS['menu']['description'] = array();
+ $GLOBALS['menu']['title'] = array();
// Is there a cache instance?
if ((is_object($GLOBALS['cache_instance'])) && (getConfig('cache_admin_menu') == "Y")) {
// Extract all parts
$OUT = base64_decode($data['output'][0]);
- $menuTitle = unserialize(base64_decode($data['title'][0]));
- $menuDescription = unserialize(base64_decode($data['descr'][0]));
+ $GLOBALS['menu']['title'] = unserialize(base64_decode($data['title'][0]));
+ $GLOBALS['menu']['description'] = unserialize(base64_decode($data['descr'][0]));
// Return or output content?
if ($return) {
if ($ACL === true) {
if (!$SUB) {
// Insert compiled menu title and description
- $menuTitle[$menu] = $title;
- $menuDesription[$menu] = $descr;
+ $GLOBALS['menu']['title'][$menu] = $title;
+ $GLOBALS['menu']['description'][$menu] = $descr;
}
$OUT .= "<tr>
<td class=\"admin_menu\" colspan=\"2\">
array($menu), __FILE__, __LINE__);
if ((SQL_NUMROWS($result_what) > 0) && ($act == $menu))
{
- $menuDesription = array();
- $menuTitle = array(); $SUB = true;
+ $GLOBALS['menu']['description'] = array();
+ $GLOBALS['menu']['title'] = array(); $SUB = true;
$OUT .= "<tr>
<td width=\"10\" class=\"seperator\"> </td>
<td class=\"admin_menu\">
$readable = INCLUDE_READABLE($INC);
if ($ACL === true) {
// Insert compiled title and description
- $menuTitle[$wht_sub] = $title_what;
- $menuDesription[$wht_sub] = $desc_what;
+ $GLOBALS['menu']['title'][$wht_sub] = $title_what;
+ $GLOBALS['menu']['description'][$wht_sub] = $desc_what;
$OUT .= "<tr>
<td class=\"admin_menu\" colspan=\"2\">
<NOBR> <strong>--></strong> ";
// Prepare cache data
$data = array(
'output' => base64_encode($OUT),
- 'title' => $menuTitle,
- 'descr' => $menuDesription
+ 'title' => $GLOBALS['menu']['title'],
+ 'descr' => $GLOBALS['menu']['description']
);
// Write the data away