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

Parašė Lordcraft· 2008 Vas. 9 18:02:23
#1

gal gali kas nors padeti sukurti reklamos panele? vnz papostinsiu apacioj tuos paneliu scriptus ir noriu kad kas nors padetu juos sugrusti i viena, taip kad 120 reklama butu kairej 468 per viduri ir kita 120 reklama desinej pusej.

468
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' ORDER BY RAND() LIMIT 1");

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();




120
openside($lang468panel[0]);

if(dbcount("(*)", "money_banners", "tipas='1'") > 0){

$sql = dbquery("SELECT * FROM ".$db_prefix."money_banners WHERE `parodymai` = `kiekis` and tipas='1'");

while ($baneris = dbarray($sql)){

unlink(INFUSIONS."pinigu_sistema/banners/120x60/".$baneris[imgas]);

dbquery("DELETE FROM ".$db_prefix."money_banners WHERE id = '".$baneris[id]."' and tipas='1'");

}

$sql = dbquery("SELECT * FROM ".$db_prefix."money_banners WHERE tipas='1' LIMIT 5");

while ($baneris = dbarray($sql)){

echo "<center><a href='".stripinput(htmlspecialchars($baneris[adresas]))."'><img src='".INFUSIONS."pinigu_sistema/banners/120x60/".$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/banners120.php'><img src='".INFUSIONS."pinigu_sistema/banners/reklama120.gif' border='0'></a></center>";

}

closeside();