|
#1
|
|||
|
|||
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 |
#2
|
|||
|
|||
just try this:
find this line: Code:
if ($CURUSER["uploadpos"] == 'no') Code:
if (get_user_class() <> UC_UPLOADER) |
#3
|
|||
|
|||
thanks
Thanks , functioning but can do that, the higher classes can upload them, meaning they can upload and Administrators, Moderators and sysop
Last edited by AlfaIT; 9th January 2009 at 16:02. |
#4
|
|||
|
|||
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) |
#5
|
||||
|
||||
Quote:
so now the upload permission in the userdetails page is useless |
#6
|
|||
|
|||
I know but do not mind me
|
#7
|
|||
|
|||
Code:
if ($CURUSER["uploadpos"] == 'yes' && get_user_class() < UC_UPLOADER ) Tony , is corectly? |
Tags |
classes , problem , users |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
new classes | ceausescu | Torrent Strike | 4 | 19th June 2011 15:30 |
Online users problem | mat22 | Yuna Scatari Edition (YSE) | 2 | 1st February 2010 20:50 |
Invite Problem : Users with name by numbers | Dezbracatu | Torrent Strike | 5 | 2nd January 2010 23:59 |
Swe users | alpha1969 | Community Cafe | 8 | 5th October 2009 23:14 |
User Classes | patriot forever | Yuna Scatari Edition (YSE) | 3 | 6th June 2008 19:32 |