帝国CMS网站$editor声明目录层次变量是如何表示的

$editor声明目录层次变量是如何表示的:

答:此变量如果没有使用printerror()等函数可以不设置。
默认$editor变量为0。
当程序文件在/e/path/目录,$editor不用设置,也就是用默认0。
当程序文件在/e/path/path2/目录,$editor=1。
当程序文件在/e/path/path2/path3/目录,$editor=2。
当程序文件在/e/path/path2/path3/path4/目录,$editor=3。

 

posted @ 2024-07-31 10:48  黄文Rex  阅读(15)  评论(0)    收藏  举报