Parašė WhiZz· 2014 Bir. 25 01:06:08
#3
Su download_url viskas kuo puikiausiai bet čia atrodo lyg redirect() funkcija neveiktu.
pvz: yra taip
......
if (isset($_GET['download_id']) && isnum($_GET['download_id'])) {
$res = 0;
if ($data = dbarray(dbquery("SELECT download_url,download_cat FROM ".$db_prefix."downloads WHERE download_id='".$_GET['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='".$_GET['download_id']."'");
redirect($data['download_url']);
}
}
if ($res == 0) redirect(BASEDIR."muzika");
}
.....