Beispiel #1
0
<?php

/**
 * Gate - Wiki engine and web-interface for WebTester Server
 *
 * Main menu description script
 *
 * Copyright (c) 2008-2009 Sergey I. Sharybin <*****@*****.**>
 *
 * This program can be distributed under the terms of the GNU GPL.
 * See the file COPYING.
 */
if ($PHP_SELF != '') {
    print 'HACKERS?';
    die;
}
global $DOCUMENT_ROOT;
$manage_menu = new CVCMenu();
$manage_menu->Init('ManageTopMenu', 'type=hor;colorized=true;hassubmenu=true;border=thin;');
$manage_menu->AppendItem('Управление данными', config_get('document-root') . '/admin/content', 'control');
$manage_menu->AppendItem('Пользователи и группы', config_get('document-root') . '/admin/usergroup/user', 'usergroup');
$manage_menu->AppendItem('Настройки', config_get('document-root') . '/admin/settings', 'settings');
$manage_menu->AppendItem('Разработчику', config_get('document-root') . '/admin/dev/datatype', 'to-developer');
Beispiel #2
0
<?php

/**
 * Gate - Wiki engine and web-interface for WebTester Server
 *
 * Developers' menu definition script
 *
 * Copyright (c) 2008-2009 Sergey I. Sharybin <*****@*****.**>
 *
 * This program can be distributed under the terms of the GNU GPL.
 * See the file COPYING.
 */
if ($PHP_SELF != '') {
    print 'HACKERS?';
    die;
}
// Creating the developers' specified navigate menu
$mandev_menu = new CVCMenu();
$mandev_menu->Init('andevMenu', 'type=hor;colorized=true;sublevel=1;border=thin;');
$mandev_menu->AppendItem('Типы данных', config_get('document-root') . '/admin/dev/datatype/', 'datatype');
$mandev_menu->AppendItem('Наборы данных', config_get('document-root') . '/admin/dev/dataset/', 'datasets');
$mandev_menu->AppendItem('Хранилища данных', config_get('document-root') . '/admin/dev/storages/', 'storages');
$mandev_menu->AppendItem('Шаблоны', config_get('document-root') . '/admin/dev/templates/', 'templates');
$mandev_menu->AppendItem('Браузер XPFS', config_get('document-root') . '/admin/dev/xpfs/', 'xpfs');
Beispiel #3
0
<?php

/**
 * Gate - Wiki engine and web-interface for WebTester Server
 *
 * Administration menu structure definition file
 *
 * Copyright (c) 2008-2009 Sergey I. Sharybin <*****@*****.**>
 *
 * This program can be distributed under the terms of the GNU GPL.
 * See the file COPYING.
 */
if ($PHP_SELF != '') {
    print 'HACKERS?';
    die;
}
/* Creating the developers' specified navigate menu */
$datacontrol_menu = new CVCMenu();
$datacontrol_menu->Init('dataManagmentMenu', 'type=hor;colorized=true;sublevel=1;border=thin;');
$datacontrol_menu->AppendItem('Разделы', config_get('document-root') . '/admin/content/', 'content');
$datacontrol_menu->AppendItem('Сервисы', config_get('document-root') . '/admin/service/', 'service');
Beispiel #4
0
<?php

/**
 * Gate - Wiki engine and web-interface for WebTester Server
 *
 * Menu definition for user/group administration
 *
 * Copyright (c) 2008-2009 Sergey I. Sharybin <*****@*****.**>
 *
 * This program can be distributed under the terms of the GNU GPL.
 * See the file COPYING.
 */
if ($PHP_SELF != '') {
    print 'HACKERS?';
    die;
}
// Creating the developers' specified navigate menu
$usergroup_menu = new CVCMenu();
$usergroup_menu->Init('andevMenu', 'type=hor;colorized=true;sublevel=1;border=thin;');
$usergroup_menu->AppendItem('Пользователи', config_get('document-root') . '/admin/usergroup/user/', 'user');
$usergroup_menu->AppendItem('Группы', config_get('document-root') . '/admin/usergroup/group/', 'group');
Beispiel #5
0
/**
 * Gate - Wiki engine and web-interface for WebTester Server
 *
 * Sections list generation script
 *
 * Copyright (c) 2008-2009 Sergey I. Sharybin <*****@*****.**>
 *
 * This program can be distributed under the terms of the GNU GPL.
 * See the file COPYING.
 */
if ($PHP_SELF != '') {
    print 'HACKERS?';
    die;
}
global $section;
$sectionMenu = new CVCMenu();
$sectionMenu->Init('sectionMenu', 'type=hor;colorized=true;sublevel=1;border=thin;');
$first = '';
$secArr = array();
for ($i = 0; $i < count($sections); $i++) {
    $sectionMenu->AppendItem($sections[$i], '?section=' . $sections[$i], $sections[$i]);
    $secArr[$sections[$i]] = true;
    if ($first == '') {
        $first = $sections[$i];
    }
}
if ($section == '' || !$secArr[$section]) {
    $section = $first;
}
$sectionMenu->SetActive($section);
$sectionMenu->Draw();