discourse-legacysite-perl/site/slowtwitch.com/www/adio/delete_X.php
2024-06-17 22:30:36 +10:00

23 lines
471 B
PHP

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