Файл: mylaf.ru/group/group.act.php
Строк: 37
<?
include_once '../sys/inc/start.php';
include_once '../sys/inc/compress.php';
include_once '../sys/inc/sess.php';
include_once '../sys/inc/home.php';
include_once '../sys/inc/settings.php';
include_once '../sys/inc/db_connect.php';
include_once '../sys/inc/ipua.php';
include_once '../sys/inc/fnc.php';
include_once '../sys/inc/user.php';
if (isset($user) && isset($_GET['group'])){
$id=intval($_GET['group']);
$guser=mysql_fetch_assoc(mysql_query("SELECT * FROM `group_user` WHERE `id_user` = '$user[id]' LIMIT 1"));
if (isset($_GET['ok'])){
mysql_query("INSERT INTO `group_user` (`id_group`, `id_user`, `level`) values('$id', '$user[id]', '0')");
header("Location: group.php?id=$id");
exit;
}
if (isset($user) && isset($_GET['no'])){
mysql_query("DELETE FROM `group_user` WHERE `id` = '$guser[id]'");
header("Location: index.php");
exit;
}
}
?>