Файл: vsime.com/friends/inc/act_cancel.php
Строк: 9
<?
if_user('is_reg');
@$row = mysqli_fetch_array(mysqli_query($dbi, "SELECT * FROM `friends` WHERE `id` = '".intval($_GET['id'])."' AND `id_user` = '$user[id]' AND `ok` = '0'"));
if (!@$row) {
$title .= ' - Ошибка!';
ex_head();
$error[] = 'Заявка не найдена.';
show_errors();
ex_foot();
}
$ank = profile($row['id_ank']);
mysqli_query($dbi, "DELETE FROM `friends` WHERE `id` = '$row[id]'");
msg_sess("Заявка отменена.");
header("Location: $config[profile_page]?id=$ank[id]");
exit();
?>