View file public_html/vipadz/sactivate.php

File size: 1.62Kb
<?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 - Activate Site");

if($adminlog==1){

$sid=formget("id");

 $doit=mysql_query("UPDATE sites SET status='<font color=\'green\'>Active</font>' WHERE id='$sid'");

 if($doit){
   $get_use=mysql_query("SELECT * FROM sites WHERE id='$sid'");
   $get_us=mysql_fetch_array($get_use);
   $uid=$get_us["userid"];

   $get_u=mysql_query("SELECT * FROM userdata WHERE id='$uid'");
   $get_user=mysql_fetch_array($get_u);
   $emailz=$get_user["email"];
   $mobile=$get_user["verimobile"];
   $username=$get_user["username"];
  echo '<div class="success">Site is Approved.</div>';
if($mobile!='')
{
$msg = "Hello $username ,
Congratulations your site has been approved
Enjoy unlimited earning
Thanks for using EarnBuzz.In";
Send_SMS($mobile,$msg);
}
echo"$file_contents";


        $to      = $emailz;
    $subject = 'Your Site Has Been Approved';
    $body = 'Hello '.$get_user["username"].', <br/>
Congratulations Your Site Has Been Approved. <br/>
Enjoy Unlimited Earning. <br/>
Thanks For Using EarnBuzz.In';
Send_Mail($to,$subject,$body);

mysql_query("INSERT INTO notifications (user, news , other, stat)
   VALUES ('$username', 'Congratulations Your Site Has Been Approved', 'none', 'none')");
 }
 else {
  echo 'unk';
 }

 echo '<a href="site.php?id='.$sid.'"><div class="ua">Site Details</div></a>';
 include '../foot.php';
 }
 else {
 header('Location:login.php');
 }
 ?>