📄 access_levels.php
字号:
<?php/*** Netlands World Server is the coordinator of the VR in the Netlands Project* Copyright (C) 2002 Ricard Pillosu* * This program is free software; you can redistribute it and/or* modify it under the terms of the GNU General Public License* as published by the Free Software Foundation; either version 2* of the License, or (at your option) any later version.* * This program is distributed in the hope that it will be useful,* but WITHOUT ANY WARRANTY; without even the implied warranty of* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the* GNU General Public License for more details.* * You should have received a copy of the GNU General Public License* along with this program; if not, write to the Free Software* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.*//* vim: set expandtab tabstop=4 shiftwidth=4 */// Access levels for commands/functions// Ricard: Maybe we could convert it in an object?$ACCESS_LEVELS = array( // connection.php "version" => array( "level" => user_list::L_CONNECTED), "quit" => array( "level" => user_list::L_CONNECTED), "ping" => array( "level" => user_list::L_CONNECTED), // create_user.php "create_user" => array( "args" => array( "login" => 3, "password" => 3), "level" => user_list::L_CONNECTED), "drop_user" => array( "args" => array( "login" => 3, "password" => 3), "level" => user_list::L_CONNECTED), // login.php "login" => array( "args" => array( "user" => 3, "password" => 3), "level" => user_list::L_CONNECTED), "logout" => array( "level" => user_list::L_LOGGED), "get_user" => array( "level" => user_list::L_LOGGED), "modify_user" => array( "level" => user_list::L_LOGGED), "save_user" => array( "level" => user_list::L_LOGGED), // character.php "list_character" => array( "level" => user_list::L_LOGGED), "create_character" => array( "args" => array( "name" => 3), // more ? "level" => user_list::L_LOGGED), "drop_character" => array( "args" => array( "id" => 32), "level" => user_list::L_LOGGED), // entity.php "get_entity" => array( "args" => array( "id" => 32), "level" => user_list::L_PLAYING), "get_childs" => array( "args" => array( "id" => 32), "level" => user_list::L_PLAYING), "get_parent" => array( "args" => array( "id" => 32), "level" => user_list::L_PLAYING), // go.php "go" => array( "args" => array( "id" => 32), "level" => user_list::L_PLAYING), // say.php "say" => array( "args" => array( "phrase" => 1), "level" => user_list::L_PLAYING), // put.php "put" => array( "args" => array( "id" => 32, "parent_id" => 32), "level" => user_list::L_PLAYING), // get.php "get" => array( "args" => array( "id" => 32, "parent_id" => 32), "level" => user_list::L_PLAYING), // editor.php "create_entity" => array( "args" => array( "type" => 3), "level" => user_list::L_EDITOR), "drop_entity" => array( "args" => array( "id" => 32), "level" => user_list::L_EDITOR), "list_entity" => array( "level" => user_list::L_EDITOR), "update_entity" => array( "args" => array( "id" => 32), "level" => user_list::L_EDITOR), "move_entity" => array( "args" => array( "id" => 32, "parent_id" => 32), "level" => user_list::L_EDITOR), "save_entities" => array( "level" => user_list::L_EDITOR), // admin.php "shutdown" => array( "level" => user_list::L_ADMIN), "print_list" => array( "level" => user_list::L_ADMIN), "print_tree" => array( "level" => user_list::L_ADMIN));// Access levels for commands/functions$ACCESS_LEVELS_IA = array( "version" => array( "level" => user_list::L_CONNECTED), "quit" => array( "level" => user_list::L_CONNECTED), "ping" => array( "level" => user_list::L_CONNECTED), // ai.php "welcome" => array( "args" => array( "message" => 3), "level" => user_list::L_CONNECTED), "login" => array( "args" => array( "ok" => 1, "user" => 3, "msg" => 3), "level" => user_list::L_CONNECTED), "shutdown" => array( "level" => user_list::L_CONNECTED), // ADMIN "unknown" => array( "level" => user_list::L_CONNECTED), "access_denied" => array( "level" => user_list::L_CONNECTED), "bad_args" => array( "level" => user_list::L_CONNECTED), "list_character" => array( "level" => user_list::L_LOGGED), "logout" => array( "level" => user_list::L_LOGGED));?>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -