View file admin/advertise.php

File size: 963B
<?php

/************************************

Script : Adnetwork
Website : http://facebook.com/pranto007

Script is created and provided by Pranto (http://facebook.com/pranto007)
**************************************/

include '../db.php';
include '../functions.php';

headtag("$SiteName - Ads");

if($adminlog==1){

echo '<div class="title">Advertises</div>';

$page=formget("page");

if(empty($page)){
$page=0;
}
$start=$page*10;
$end=($start+10);

$ads=mysql_query("SELECT * FROM advertises ORDER BY id DESC LIMIT $start,$end");

 while($adv=mysql_fetch_array($ads)){
  echo '<a href="advd.php?id='.$adv["id"].'"><div class="ua">Ad ID: '.$adv["id"].'<br/>Url: '.$adv["url"].'<br/>Status: '.$adv["status"].'</div></a>';
 }

echo '<div class="ad"><a href="?page='.($start+1).'">Next</a></div>';
echo '<a href="index.php"><div class="ua">HOME</div></a>';
 include '../foot.php';
}
else{
 header('Location:index.php');
}
?>