View file public_html/vipadz/sblock.php

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

if($adminlog==1){

$sid=formget("id");

 $doit=mysql_query("UPDATE sites SET status='<font color=\'red\'>Blocked</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 Blocked.</div>';

 }
 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');
 }
 ?>