Exemple #1
0
                 TOOLBAR_menus::_EDIT($type);
             }
         } else {
             echo $database->stderr();
         }
     } else {
         $type = mosGetParam($_REQUEST, 'type', null);
         $item_path = $path . $type . '/' . $type . '.menubar.php';
         if ($type) {
             if (file_exists($item_path)) {
                 require_once $item_path;
             } else {
                 TOOLBAR_menus::_EDIT($type);
             }
         } else {
             TOOLBAR_menus::_EDIT($type);
         }
     }
     break;
 default:
     $type = trim(mosGetParam($_REQUEST, 'type', null));
     $item_path = $path . $type . '/' . $type . '.menubar.php';
     if ($type) {
         if (file_exists($item_path)) {
             require_once $item_path;
         } else {
             TOOLBAR_menus::_DEFAULT();
         }
     } else {
         TOOLBAR_menus::_DEFAULT();
     }
                 TOOLBAR_menus::_EDIT();
             }
         } else {
             echo $database->stderr();
         }
     } else {
         $type = strval(mosGetParam($_REQUEST, 'type', null));
         $item_path = $path . $type . '/' . $type . '.menubar.php';
         if ($type) {
             if (file_exists($item_path)) {
                 require_once $item_path;
             } else {
                 TOOLBAR_menus::_EDIT();
             }
         } else {
             TOOLBAR_menus::_EDIT();
         }
     }
     break;
 default:
     $type = strval(mosGetParam($_REQUEST, 'type'));
     $item_path = $path . $type . '/' . $type . '.menubar.php';
     if ($type) {
         if (file_exists($item_path)) {
             require_once $item_path;
         } else {
             TOOLBAR_menus::_DEFAULT();
         }
     } else {
         TOOLBAR_menus::_DEFAULT();
     }