File size: 1.07Kb
<?php
/************************************
Script : Adnetwork
Website : http://facebook.com/mohd.arshadsaifi79
Script is created and provided by Arshad (http://facebook.com/mohd.arshadsaifi79)
**************************************/
include '../db.php';
include '../functions.php';
headtag("$SiteName - Change Password");
if($adminlog==1){
echo '<div class="title">Change Password</div>';
$aid=formget("id");
if(dump_adata("rank")=='1')
{
if($_POST["yes"])
{
$doit=mysql_query("DELETE FROM staff WHERE id='$aid'");
if($doit){
echo '<div class="success">Staff is Deleted.</div>';
}
else {
echo 'Error';
}
}
echo '<div class="form"><form method="post">
Do You Really Want To Delete This Staff? <br/>
<table><tr><td><input type="submit" name="yes" value="Yes"/></form></td><td><form action="admins.php" method="post"><input type="submit" value="No"/></form></td></tr></table></div>';
}
else {
echo '<div class="error">Access Denied</div>';
}
echo '<div class="page"><a href="index.php"> Go Back To Home</a></div>';
include '../foot.php';
}
else {
header('Location:/');
}
?>