The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
![]()
Hoping someone can help me here (original dev is nowhere to be found)
I have been using PHP Easy Downloader on my forums for some time. My dev originally modified it so that only registered vB users could access the files and download them. After my upgrade from 3.0.15 to 3.6, no one can access the page anymore. Here is the relevent code from the download page: <?php // logged in? chdir('../forums/'); require('global.php'); ?><HTML> ... </head> <?php // if ($bbuserinfo["userid"]!=0){ // The user's ID # is not equal to 0, and therefore, they are not a guest #echo (" #Welcome back, ".$bbuserinfo["username"].".<br /> #You have made ".$bbuserinfo["posts"]." post(s). #"); // === LOGGED IN, SHOW CONTENT ========== chdir('../download/'); ?> Welcome <b><? echo $bbuserinfo["username"]; ?></b>,<br> Here you will find video, audio, and image files... <br> <?php include("inc_listfiles.php"); ?> <? }else{ // ==== NOT LOGGED IN ========== // The user must be a guest, since their ID # is 0 #echo "izes to keep on handNOT LOGGED IN"; ?> In order to access our Download section, you must be a member of our Message Forums.... <? } ?> <br> </BODY></HTML> Thanks for any help you can provide. |
#2
|
|||
|
|||
![]()
Try this
PHP Code:
|
#3
|
|||
|
|||
![]()
You are a genius!! Thanks Mitch!!!
![]() |
![]() |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|