Размер файла: 489B
<?php
require_once('../wu_init.php');
include('wu_checkadmin.php');
if (!wu_token()) { exit('wu-error'); }
if (!USER_LOGGED) { exit('wu-error'); }
if(isset($_POST['id'])){
if(!empty($_POST['id'])){
$id = intval($_POST['id']);
$cus = mysqli_fetch_assoc(mysqli_query($connect_db, "SELECT id,usr FROM ".DB_PREFIX."_es_c WHERE id='$id' LIMIT 1"));
mysqli_query($connect_db, "DELETE FROM `".DB_PREFIX."_es_c` WHERE id = '$id' LIMIT 1");
exit('1');
} else { exit('0'); }
} else { exit('3'); }
?>