Categories are not inserted properly?

All support enquiries for DFH go in here...

Categories are not inserted properly?

Postby Dan_y2k » Fri Aug 22, 2014 2:25 am

I'm trying to show the file's category on the download page. I've did some pretty good learning of DFH, and it seems that <?php echo $foundfile[8]; ?> should do the trick - but it don't. :|

So I looked at one of the *.db files at the /files folder, and saw that the category is just not there, sadly. I've looked more into DFH and my guess is that this code needs to be fixed/altered:

Daddy's File Host v1.2.9/upload.php, lines 90-103
Code: Select all
if(isset($categorylist)){
$validcat = 0;
foreach($categories as $cat) {
  if($_POST['category']==$cat || $_POST['category'] = ""){ $validcat = 1; }
}
if($validcat==0) {
?><center><?
   echo "$lang[icat]";
?></center></td></tr></table><p style="margin:3px;text-align:center"><?
   include("./footer.php");
   die();
}
$cat = $_POST['category'];
} else { $cat = ""; }


Thanks alot for your help! :)
Dan_y2k
Newbie Member
 
Posts: 2
Joined: Fri Aug 22, 2014 2:09 am

Re: Categories are not inserted properly?

Postby SamEA » Sat Sep 06, 2014 1:22 am

SamEA,
DaddyScripts' Admin & Developer.

Require a PHP or general IT freelancer? Don't hesitate to PM me.
User avatar
SamEA
Site Admin
 
Posts: 1165
Joined: Sat Feb 19, 2011 7:51 pm


Return to Daddy's File Host v1.X

Who is online

Users browsing this forum: No registered users and 8 guests

cron