Bravo List
Register
Go Back   > Bravo List > Source Code > Archived Trackers > Torrent Strike
Reply
  #1  
Old 8th January 2009, 22:13
AlfaIT AlfaIT is offline
Member
 
Join Date: Jan 2009
Romania
Posts: 9
Question 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




Reply With Quote
  #2  
Old 9th January 2009, 11:28
hack346 hack346 is offline
Banned
 
Join Date: Mar 2008
Turkey
Posts: 80
Default
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
Reply With Quote
  #3  
Old 9th January 2009, 11:37
AlfaIT AlfaIT is offline
Member
 
Join Date: Jan 2009
Romania
Posts: 9
Default 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.
Reply With Quote
  #4  
Old 9th January 2009, 16:14
hack346 hack346 is offline
Banned
 
Join Date: Mar 2008
Turkey
Posts: 80
Default
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
Reply With Quote
  #5  
Old 10th January 2009, 19:49
Tony's Avatar
Tony Tony is offline
Senior Member
 
Join Date: Mar 2008
P2P
Posts: 182
Default
Quote:
Originally Posted by hack346 View Post
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
Reply With Quote
  #6  
Old 10th January 2009, 22:58
AlfaIT AlfaIT is offline
Member
 
Join Date: Jan 2009
Romania
Posts: 9
Default
I know but do not mind me
Reply With Quote
  #7  
Old 12th January 2009, 10:26
hack346 hack346 is offline
Banned
 
Join Date: Mar 2008
Turkey
Posts: 80
Default
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?
Reply With Quote
Reply

Tags
classes , problem , users

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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



All times are GMT +2. The time now is 12:54. vBulletin skin by ForumMonkeys. Powered by vBulletin® Version 3.8.11 Beta 3
Copyright ©2000 - 2024, vBulletin Solutions Inc.