Problem classes of users
Why all the users are entitled to upload? In upload.php if ($CURUSER["uploadpos"] == 'no')---->it is so, all classes of users are entitled to upload (users, power user, uploader, moderator, administrators, sysop) if ($CURUSER["uploadpos"] == 'yes')--->when it is absolutely no one is entitled to upload (users, power user, uploader, moderator, administrators, sysop) My question is: How to make only uploader class can have access to upload.php ,because can not have confidence in users class to let them uploading all crap. I Use :http://bvlist.com/torrent-strike/117...a.html#post145 Sorry for my English |
just try this:
find this line: Code:
if ($CURUSER["uploadpos"] == 'no') Code:
if (get_user_class() <> UC_UPLOADER) |
thanks
Thanks , functioning but can do that, the higher classes can upload them, meaning they can upload and Administrators, Moderators and sysop
|
i dont understand verry much, but if u want to upload & moderator , sysop....admins & other higher class just....is your choise:
Code:
if (get_user_class() <> UC_UPLOADER) Code:
if (get_user_class() < UC_UPLOADER) Code:
if (get_user_class() > UC_UPLOADER) |
Quote:
so now the upload permission in the userdetails page is useless |
I know but do not mind me |
Code:
if ($CURUSER["uploadpos"] == 'yes' && get_user_class() < UC_UPLOADER ) Tony , is corectly? |
All times are GMT +2. The time now is 23:52. |
Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.