Файл: vsime.com/settings/inc/act_panel_style.php
Строк: 61
<?
$title .= ' - Стиль панелей';
$navigation .= " / Стиль панелей";
ex_head();
if (isset($_GET['cat']) && in_array(my_esc($_GET['cat']), array('panel_fon','panel_link','panel_newevent','panel_focus_link','panel_focus_fon','panel_border')))
{
$cat = my_esc($_GET['cat']);
if(isset($_GET['select']) && mysqli_result("SELECT COUNT(*) FROM `colors_list` WHERE `id` = '".intval($_GET['select'])."'"))
{
if (hsc($_GET['mdp'])==$mdp)
{
$color = mysqli_fetch_array(mysqli_query($dbi, "SELECT * FROM `colors_list` WHERE `id` = '".intval($_GET['select'])."'"));
mysqli_query($dbi, "UPDATE `user` SET `$cat` = '$color[color]' WHERE `id` = '$user[id]' LIMIT 1");
header("Location: ?act=panel_style");
exit();
} else hacked_by_Killer();
}
echo "<div class='grand_h'>Выберите цвет</div>n";
$query = mysqli_query($dbi, "SELECT * FROM `colors_list`");
while($post = mysqli_fetch_array($query))
{
echo "<div class=list><div style='background-color:#$post[color];padding:2px'><a href='?act=panel_style&cat=$cat&select=$post[id]&mdp=$mdp' style='display:block; padding-left:10px;'><span><i style='color:black;'>".hsc($post['name'])."</i></span></a></div></div>n";
}
echo "<div class='foot'>n";
echo image_back()." <a href='?act=panel_style'>Назад</a>n";
echo "</div>n";
ex_foot();
}
?>
<div class=menu><table border="0" cellpadding="1" cellspacing="1" style="width: 40%">
<tr bgcolor="white">
<td bgcolor="white"><a href="?act=panel_style&cat=panel_fon">Фон:</a></td>
<td bgcolor="#<? echo $user['panel_fon'];?>" style="border: black solid 1px;"> </td>
</tr>
<tr bgcolor="white">
<td bgcolor="white"><a href="?act=panel_style&cat=panel_newevent">Уведомл.:</a></td>
<td bgcolor="#<? echo $user['panel_newevent'];?>" style="border: black solid 1px;"> </td>
</tr>
<tr bgcolor="white">
<td bgcolor="white"><a href="?act=panel_style&cat=panel_focus_fon">Градиент.:</a></td>
<td bgcolor="#<? echo $user['panel_focus_fon'];?>" style="border: black solid 1px;"> </td>
</tr>
</table></div>
<?
echo "<div class='foot'>n";
echo image_back()." <a href='?act=index'>Назад</a>n";
echo "</div>n";
ex_foot();
?>