用户管理权限有关问题,大家帮帮忙

WBOY
Release: 2016-06-13 13:17:10
Original
798 people have browsed it

用户管理权限问题,大家帮帮忙!
在xml中有如下代码:



 



 


page 是点击的链接,authority是权限设置

用户test、admin两个用户,test的权限只有新闻管理,admin有全部的权限。

现在是想用户登录后,通过读取user.ini文件来获得用户权限,格式如下:

[News]
listNewsPage = 000001
addNewsPage = 000001

[User]
listUserPage = 000010
addUserPage = 000010 

请问各位大哥,函数应该怎么写,才能实现该功能?


------解决方案--------------------
user.ini 里面含有什么? 请描述清楚点。
------解决方案--------------------
这两个文件有什么关系? 还是没看懂啊。
------解决方案--------------------
parse_ini
domdocument

自己玩去吧。
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!