Page 1 of 1

Categories are not inserted properly?

PostPosted: Fri Aug 22, 2014 2:25 am
by Dan_y2k
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! :)

Re: Categories are not inserted properly?

PostPosted: Sat Sep 06, 2014 1:22 am
by SamEA