コード例 #1
0
ファイル: toolbar.menus.php プロジェクト: jwest00724/mambo
            } 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();
        }
        break;
}