Bravo List

Bravo List (http://www.bvlist.com/index.php)
-   Torrent Strike (http://www.bvlist.com/forumdisplay.php?f=21)
-   -   Problem classes of users (http://www.bvlist.com/showthread.php?t=1767)

AlfaIT 8th January 2009 22:13

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





hack346 9th January 2009 11:28

just try this:

find this line:

Code:

if ($CURUSER["uploadpos"] == 'no')
& replace with this:

Code:

if (get_user_class() <> UC_UPLOADER)
Attention...after this modification just Uploaders can make upload

AlfaIT 9th January 2009 11:37

thanks
 
Thanks , functioning but can do that, the higher classes can upload them, meaning they can upload and Administrators, Moderators and sysop

hack346 9th January 2009 16:14

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)
- just uploaders can make upload

Code:

if (get_user_class() < UC_UPLOADER)
- just uploaders & higher class (mods, admins, sysop....) can make upload

Code:

if (get_user_class() > UC_UPLOADER)
-just uploaders & lower class (vips, powerusers, members) can make upload

Tony 10th January 2009 19:49

Quote:

Originally Posted by hack346 (Post 8045)
just try this:

find this line:

Code:

if ($CURUSER["uploadpos"] == 'no')
& replace with this:

Code:

if (get_user_class() <> UC_UPLOADER)
Attention...after this modification just Uploaders can make upload

now you have totally removed the point of having the permissions mod installed .

so now the upload permission in the userdetails page is useless

AlfaIT 10th January 2009 22:58

I know but do not mind me

hack346 12th January 2009 10:26

Code:

if ($CURUSER["uploadpos"] == 'yes' && get_user_class()  < UC_UPLOADER )
after this in your admincp where u see Allow Upload For Everyone (is checked) minim level for upload is Uploader :)
Tony , is corectly?


All times are GMT +2. The time now is 09:34.

Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.