Fourth pass at adding key files
This commit is contained in:
23
site/slowtwitch.com/www/adio/delete_X.php
Normal file
23
site/slowtwitch.com/www/adio/delete_X.php
Normal file
@ -0,0 +1,23 @@
|
||||
<?PHP
|
||||
|
||||
include("config.php");
|
||||
|
||||
if(!is_admin($user)){
|
||||
header('Location:'.$site_url.'/');
|
||||
}
|
||||
|
||||
if (!$_POST){ header('Location: '.$site_url); }
|
||||
|
||||
if (isset($_POST[account_id])) {
|
||||
$sql = "DELETE FROM io_account WHERE account_id = '$_POST[account_id]'";
|
||||
} elseif (isset($_POST[campaign_id])) {
|
||||
$sql = "DELETE FROM io_campaign WHERE campaign_id = '$_POST[campaign_id]'";
|
||||
}
|
||||
|
||||
//echo $sql;
|
||||
//exit();
|
||||
mysql_query($sql) or die(mysql_error());
|
||||
|
||||
header('Location: campaign.php');
|
||||
|
||||
?>
|
Reference in New Issue
Block a user