Parašė FuturesF1re· 2008 Bal. 12 21:04:53
#271
Postas perkeltas: 2008-04-12 22:07:17 Kaip padaryt kad pinigu sitemoj 468x60 banneriai keistusi
va kodas jei gali padarykit uz pagalba ACIU
<?
include INFUSIONS."pinigu_468_panel/lang.php";
opentable($lang468panel[0]);
if(dbcount("(*)", "money_banners", "tipas='0'") > 0){
$sql = dbquery("SELECT * FROM ".$db_prefix."money_banners WHERE `parodymai` = `kiekis` and tipas='0'");
while ($baneris = dbarray($sql)){
unlink(INFUSIONS."pinigu_sistema/banners/468x60/".$baneris[imgas]);
dbquery("DELETE FROM ".$db_prefix."money_banners WHERE id = '".$baneris[id]."' and tipas='0'");
}
$sql = dbquery("SELECT * FROM ".$db_prefix."money_banners WHERE tipas='0' LIMIT 2");
while ($baneris = dbarray($sql)){
echo "<center><a href='".stripinput(htmlspecialchars($baneris[adresas]))."'><img src='".INFUSIONS."pinigu_sistema/banners/468x60/".$baneris[imgas]."' border='0'></a></center>";
$result = dbquery("UPDATE ".$db_prefix."money_banners SET `parodymai` = `parodymai`+ 1 WHERE id=".$baneris[id]."");
}
}else{
echo "<center><a href='".INFUSIONS."pinigu_sistema/banners468.php'><img src='".INFUSIONS."pinigu_sistema/banners/reklama468.gif' border='0'></a></center>";
}
closetable();
?>
Redagavo ozzWANTED· 2008 Bal. 12 22:04:17