Файл: vsime.com/settings/inc/act_panel_up.php
Строк: 95
<?
$title .= ' - Верхняя панель';
$navigation .= " / Верхняя панель";
ex_head();
if (isset($_POST['submited']))
{
if ($_POST['mdp']==$mdp)
{
$user['panel']=intval($_POST['panel']);
if (in_array($user['panel'], array(1,2,3)))$user['panel']=$user['panel']; else $user['panel']=1;
mysqli_query($dbi, "UPDATE `user` SET `panel` = '$user[panel]' WHERE `id` = '$user[id]'");
header("Location: ?");
} else hacked_by_Killer();
}
if (isset($_GET['font_size']))
{
if (hsc($_GET['mdp'])==$mdp)
{
$user['panel_font_size_up']=htmlspecialchars($_GET['font_size']);
if (in_array($user['panel_font_size_up'], array('small','medium')))$user['panel_font_size_up']=$user['panel_font_size_up']; else $user['panel_font_size_up']='medium';
mysqli_query($dbi, "UPDATE `user` SET `panel_font_size_up` = '$user[panel_font_size_up]' WHERE `id` = '$user[id]'");
header("Location: ?");
} else hacked_by_Killer();
}
echo "<div class=list><form method='POST' action=''>n";
echo "<label for='panel_1'><input type='radio' name='panel' id='panel_1' value='1'".($user['panel']==1?' checked = "checked"':NULL)."> Иконки</label><br />n";
echo "<label for='panel_2'><input type='radio' name='panel' id='panel_2' value='2'".($user['panel']==2?' checked = "checked"':NULL)."> Слова</label><br />n";
echo "<label for='panel_3'><input type='radio' name='panel' id='panel_3' value='3'".($user['panel']==3?' checked = "checked"':NULL)."> Буквы</label><br />n";
echo "<input type='hidden' name='mdp' value='$mdp'>n";
echo "<input type='submit' name='submited' value='Сохранить' />n";
echo "</form></div>n";
echo "<div class='list'>n";
echo "Выберите размер шрифта: n";
echo ($user['panel_font_size_up']=='small'?'<b>':"<a href='?act=panel_up&font_size=small&mdp=$mdp'><span>")."Маленький".($user['panel_font_size_up']=='small'?'</b>':"</span></a>")."n";
echo " | n";
echo ($user['panel_font_size_up']=='medium'?'<b>':"<a href='?act=panel_up&font_size=medium&mdp=$mdp'><span>")."Большой".($user['panel_font_size_up']=='medium'?'</b>':"</span></a>")."n";
echo "</div>n";
echo "<div class='mod_grad'>n";
echo $config['code_action']." <a href='?act=panel_style'>Стиль панелей</a>n";
echo "</div>n";
echo "<div class='foot'>n";
echo image_back()." <a href='?act=index'>Назад</a><br />n";
echo "</div>n";
ex_foot();
?>