发信人: shipping (小平~~~~繁华落尽), 信区: ANSI
标 题: menu.ini菜单块语句分析
发信站: 日月光华 (2002年06月03日05:18:48 星期一), 站内信件
现在我们来分析一行很典型的菜单块语句
!M_EGROUP 10, 5, 0, "EGroup", "E) 分类讨论区"
!M_EGROUP 这表示菜单的这一行是指向下一个菜单也就是分类讨论区的菜单。其实如
果我们往后面看看,就能发现有一个%M_EGROUP %的菜单块,在这里被引
用。
10,5 表示这一行菜单的标签将在屏幕的第10行第5列显示。——显示什么呢——
就是后面双引号里面的“E) 分类讨论区“。
0 , 这个0表示任何用户都能看到这个菜单。 BBS的权限在这里体现。
"EGroup", 这是这个菜单项的英文标签,并不显示出来,但是有一个很重要的用途—
—这个字符串的第一个字母将是这个菜单项的快捷键。没错,不要误以为
后面分类讨论区前面写着 E 就是设定快捷键, 真正的快捷键字母在这里
作为对照,我们来看另外一行语句
@ExecBBSNet 0, 0, PERM_POST, "OBBSNet", " O) 网路连线 "
@ExecBBSNet 这表示这个选项的功能是调用系统的一个叫做"ExecBBSNet"的功能,简
单的说,第一个字符是!的话表示指向另一个菜单,而如果是@的话表示执
行某一项功能。
0,0, 注意这并不是表示这一行将在0,0的位置显示, 而是表示将在上一行菜单
选项的位置向下平移一行显示。比如说现在这一行就是紧接着上面那个例
子那一行,那么这一行将在11,5的位置显示。这种方法非常有用,后面我
们会说到。
PERM_POST, 这在上面那个例子是0, 很容易知道, 这里就是表示并不是所有的用户都
能看到这个菜单选项, 哪些用户能够看到呢——拥有PERM_POST权限的用
户才能看到。PERM_POST是BBS系统对于用户权限的一个标志,指的是拥有
发文权限。所以我们现在可以解释为什么一个用户被封禁了全站的发表文
章权限之后,会发现同时也不可以穿梭了——因为他根本看不到这个菜单
选项了。
"OBBSNet", 类似的, 快捷键是 "O" (大小写不敏感)
#----------------------------------------------------------------------------
有了上面的理解, 普通的menu.ini你就应该能够读懂了, 怎么样, 很简单是不是。
--
◢//ハミ◣
〃へ へ”
大家好我是阿饼,右边那个是免冠近照,请点击放大 C--●-●-O
っ
◥ ~ ◤
※ 来源:·日月光华 bbs.fudan.edu.cn·[FROM: 10.83.0.81]
Sender: shipping Xiaoping bustling, letter area: ANSI
Title: Analysis of menu.ini menu block statements
Sending site: Sun and Moon Guanghua June 3, 2002 05:18:48 Monday, site mail
Now let's analyze a typical line of menu block statements
!M EGROUP 10, 5, 0, "EGroup", "E Category Discussion Forum"
!M EGROUP This means that this line of the menu points to the next menu, which is the menu of the classified discussion area. In fact, it is like this
If we look back, we can see that there is a %M EGROUP % menu block that is referenced here.
use
10,5 means that the label of this line of menu will be displayed in the 10th row and 5th column of the screen. What is displayed?
It’s the E category discussion area in the double quotes.
0, this 0 means that any user can see this menu. The permissions of BBS are reflected here.
"EGroup", this is the English label of this menu item. It is not displayed but has a very important purpose.
The first letter of this string will be the shortcut key for this menu item. That's right, don't make the mistake of thinking
The E written in front of the classified discussion area later is to set the shortcut key. The real shortcut key letter is here.
For comparison, let’s look at another line of statements
@ExecBBSNet 0, 0, PERM POST, "OBBSNet", "O network connection"
@ExecBBSNet This means that the function of this option is to call a function of the system called "ExecBBSNet". Brief
To put it simply, if the first character is !, it means pointing to another menu, and if it is @, it means executing
perform a function
0,0, note that this does not mean that this line will be displayed at the position of 0 0, but that it will be displayed at the previous line of the menu.
The position of the option is displayed one line downward. For example, the current line is immediately following the example above.
Then this line will be displayed at the position of 11,5. This method is very useful. I will
they will talk about
PERM POST, this is 0 in the above example. It is easy to know. This means that not all users
Which users can see this menu option? Users with PERM POST permissions
Only users can see PERM POST. It is a sign of user permissions in the BBS system. It refers to those who have
Posting Permissions So we can now explain why a user was banned from posting on the entire site.
After checking the permissions, you will find that you can’t travel at the same time because he can’t see this menu at all.
Option
"OBBSNet", similar shortcut key is "O" case insensitive
#
With the above understanding, you should be able to read the ordinary menu.ini. How about it? It’s very simple, right?
ハミ
へ へ
Hello everyone, my name is Abing. The one on the right is a recent photo without a hat. Please click to enlarge. C O
っ
Source: Sun and Moon Guanghua bbs.fudan.edu.cn [FROM: 10.83.0.81]