Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Siuntiniu kategorijos matomos visiems o ...

Parašė Hardrock· 2008 Sau. 29 23:01:25
#8

susirandi faile downloads.php


if (isset($download_id)) {
   $res = 0;
   if ($data = dbarray(dbquery("SELECT download_url,download_cat FROM ".$db_prefix."downloads WHERE download_id='$download_id'"))) {
      $cdata = dbarray(dbquery("SELECT * FROM ".$db_prefix."download_cats WHERE download_cat_id='".$data['download_cat']."'"));
      if (checkgroup($cdata['download_cat_access'])) {
         $res = 1;
         $result = dbquery("UPDATE ".$db_prefix."downloads SET download_count=download_count+1 WHERE download_id='$download_id'");
         redirect($data['download_url']);
      }
   }
   if ($res == 0) redirect("downloads.php");
}




ir keiti į


if (isset($download_id)) {
   $res = 0;
   if ($data = dbarray(dbquery("SELECT download_url,download_cat FROM ".$db_prefix."downloads WHERE download_id='$download_id' AND download_cat='5' OR download_cat='3' OR download_cat='2'"))) {
      $cdata = dbarray(dbquery("SELECT * FROM ".$db_prefix."download_cats WHERE download_cat_id='".$data['download_cat']."'"));
      if (checkgroup($cdata['download_cat_access'])) {
         $res = 1;
         $result = dbquery("UPDATE ".$db_prefix."downloads SET download_count=download_count+1 WHERE download_id='$download_id'");
         redirect($data['download_url']);
      }
   }

      if ($data = dbarray(dbquery("SELECT download_url,download_cat FROM ".$db_prefix."downloads WHERE download_id='$download_id' AND download_cat='6' OR download_cat='1' OR download_cat='4'"))) {
         while ($data = dbarray($result)) {
         $res = 1;
         
         redirect("puslapio adresas skirtas svečiams, kuriame bus parašyta kad rėgintusi, nes kitaip nematys info.php");
}
      
   }



   if ($res == 0) redirect("downloads.php");
}






Išmėginęs pasakyk ar veikia (galiu būt palikęs klaidų).

Redagavo Hardrock· 2008 Sau. 30 00:01:03