File size: 1.09Kb
<?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 - Ad Reject");
if($adminlog==1){
$aid=formget("id");
$doit=mysql_query("UPDATE advertise SET status='Rejected' WHERE id='$aid'");
if($doit){
$getu = mysql_query("SELECT * FROM advertise WHERE id='$aid'");
$getu1 = mysql_fetch_array($getu);
$userid=$getu1["userid"];
$mohd = mysql_query("SELECT * FROM userdata WHERE id='$userid'");
$arshad = mysql_fetch_array($mohd);
$mobile=$arshad["verimobile"];
$user=$arshad["username"];
if($mobile!='')
{
$msg = "Hello $user Your Ad has been Rejected , Please login to earnbuzz and check details.
Thanks for using EarnBuzz.In";
Send_SMS($mobile,$msg);
}
echo '<div class="success">Advertise Rejected!</div>';
}
else {
echo 'unk.';
}
echo '<a href="advertise.php"><div class="ua">Advertises</div></a>';
include '../foot.php';
}
else {
header('Location:index.php');
}
?>