Файл: groups/forum/handler/theme.php
Строк: 12
<?php
if ($_GET['type'] == 'close')
{
if (in_array($user_id, explode("||", substr($arr_group['admins'], 1, -1))) || in_array($user_id, explode("||", substr($arr_group['moders'], 1, -1)))) mysql_query("UPDATE `groups_forum` SET `type` = 1 WHERE `id` = '".$id."' LIMIT 1");
$arr_theme = mysql_fetch_array(mysql_query("SELECT * FROM `groups_forum` WHERE `id` = '".$id."' LIMIT 1"));
}
else if ($_GET['type'] == 'open')
{
if (in_array($user_id, explode("||", substr($arr_group['admins'], 1, -1))) || in_array($user_id, explode("||", substr($arr_group['moders'], 1, -1)))) mysql_query("UPDATE `groups_forum` SET `type` = 0 WHERE `id` = '".$id."' LIMIT 1");
$arr_theme = mysql_fetch_array(mysql_query("SELECT * FROM `groups_forum` WHERE `id` = '".$id."' LIMIT 1"));
}
else if ($_GET['fix'] == 1 && in_array($user_id, explode("||", substr($arr_group['admins'], 1, -1))))
{
mysql_query("UPDATE `groups_forum` SET `fix` = 1 WHERE `id` = '".$id."' LIMIT 1");
$arr_theme = mysql_fetch_array(mysql_query("SELECT * FROM `groups_forum` WHERE `id` = '".$id."' LIMIT 1"));
}
else if ($_GET['fix'] == 2 && in_array($user_id, explode("||", substr($arr_group['admins'], 1, -1))))
{
mysql_query("UPDATE `groups_forum` SET `fix` = 0 WHERE `id` = '".$id."' LIMIT 1");
$arr_theme = mysql_fetch_array(mysql_query("SELECT * FROM `groups_forum` WHERE `id` = '".$id."' LIMIT 1"));
}
?>