Temos pavadinimas: WordPress, Shopify ir PHPFusion programuotojų bendruomenė :: Bannerių panelė

Parašė iSound· 2009 Rugp. 24 23:08:13
#7

Pabandyk šita penelę:

@opentable("Reklama");
?>
<center>
<?


///Banner system///
$bresult2 = dbquery("select * from ".$db_prefix."banner WHERE status='1' ORDER BY RAND() limit 0,2");
while($banner = dbarray($bresult2)) {

$banner_display = '<center><a target="_banner" href="'.INFUSIONS.'banner_panel/click.php?bid='.$banner['bid'].'"><img src="'.$banner['imageurl'].'" border="0"></a><br></center>';


//check ownership user to client id
if($banner['cid']!=$userdata['user_id'])
{
//add the impression
dbquery("update ".$db_prefix."banner set impmade=impmade+1 where bid=$banner[bid]");
}


if($banner['impmade'] >= $banner['imptotal'] && $banner['imptotal']!='0')
{
dbquery("UPDATE ".$db_prefix."banner SET enddate=NOW( ) , status = '0' WHERE bid =$banner[bid] LIMIT 1 ;");
}

echo $banner_display;

}

@closetable();



Redagavo iSound· 2009 Rugp. 24 23:08:21