php forum
php mysql forum
php mysql smarty
 
Topic Options
#206822 - 12/07/00 06:55 PM Only Upload in Certain Forums Hack
poil Offline
Enthusiast

Registered: 08/14/00
Posts: 492
Loc: poilville, in the republic of ...
This will make it so that the user can only upload in certain forums. for example if your board has the keyword upload in it, the user will be able to upload in it. If it doesn't, the user won't be able to upload into it. an example of where a user can upload a file into a board is at http://www.extremeforums.org/newpost.php...lapsed&sb=5 an example of where a user can't upload into a board is at http://www.extremeforums.org/newpost.php...lapsed&sb=5<br /><br />modified files are addpost.php and newpost.php. remember to backup your files before you try this. and replace the word media with the keyword that you want to use.<br /><br />in newpost.php at line 220 it should look like this:<br /><br />if ( ($config[files]) && ($Reged == "y")) {<br /><br />change it so it looks like this:<br /><br />if ( ($config[files]) && ($Reged == "y") && (ereg("media",$Board))) {<br /><br />and in addpost.php at line 305 should look like this:<br /><br />if(($config[files]) && ($Reged == "y")) {<br /><br />change it so it looks like this:<br /><br />if(($config[files]) && ($Reged == "y") && (ereg("media",$Board))) {<br /><br />and then at line 421 it should look like this:<br /><br />if ( ($config[files]) && ($Reged == "y")) {<br /><br />change it so it looks like this:<br /><br />if ( ($config[files]) && ($Reged == "y") && (ereg("media",$Board)) ) {<br /><br />[:red]--------------</font color=red><br />http://extremeforums.org/index
_________________________
Extreme!!!

Top
#206823 - 12/09/00 02:47 PM Re: Only Upload in Certain Forums Hack [Re: vent]
poil Offline
Enthusiast

Registered: 08/14/00
Posts: 492
Loc: poilville, in the republic of ...
if you want the admin or moderators to be able to upload in any board just add:<br /><br />|| ($user['U_Status'] == "Administrator") || ($user['U_Status'] == "Moderator")<br /><br />in:<br /> if ( ($config[files]) && ($Reged == "y") && (ereg("media",$Board))) {<br /><br />so it looks like this:<br /><br />if ( ($config[files]) && ($Reged == "y") && (ereg("media",$Board)) || ($user['U_Status'] == "Administrator") || ($user['U_Status'] == "Moderator")) {<br /><br />everywhere.....<br /><br />[:red]--------------</font color=red><br />http://extremeforums.org/index
_________________________
Extreme!!!

Top
#206824 - 12/13/00 09:31 PM Re: Only Upload in Certain Forums Hack [Re: vent]
Eileen Offline
Master Hacker

Registered: 05/11/99
Posts: 3701
Loc: Los Angeles
Yesss! Great conversion - I'd like to add that to Amdragon too.<br /><br />[]http://www.amdragon.com/images/eileensig.gif[/]
_________________________
[]http://www.wopr.com/w3tuserpics/Eileen-sig.gif[/]

Top


Who's Online
0 registered (), 24 Guests and 15 Spiders online.
Key: Admin, Global Mod, Mod
Shout Box

Latest Posts
Spell Check [beta]
by Bill B
Today at 09:16 PM
PhotoPost BB Code Popup
by AllenAyres
Today at 09:41 AM
Problems reading a lot of old posts here
by AllenAyres
Today at 09:35 AM
Forum 'Trader Ratings'.
by AllenAyres
Today at 09:33 AM
Customization needed
by Gizmo
11/12/08 12:28 PM
Team UBBDev Rides Again!
by AllenAyres
11/11/08 02:16 PM
Active Topics.
by AllenAyres
11/11/08 02:13 PM
New Mods
User Authentication Class
by
01/19/07 02:59 PM
Multiple Identity Detector
by
12/30/06 06:39 PM
PhotoPost BB Code Popup
by
11/06/06 05:43 PM
Spell Check [beta]
by
10/17/06 09:24 PM
Newest Members
David DelMonte, nick1, Begbie, cenk, MATTO
13363 Registered Users
Top Posters
AllenAyres 25452
JoshPet 11330
Rick 8372
LK 7396
Lord Dexter 6503
Greg Hard 5533
Charles Capps 5438

 

 

 
fusionbb message board php hacks