Вход Регистрация
Файл: vsime.com/settings/inc/act_panel_style_back.php
Строк: 70
<?
    $title 
.= ' - Стиль панелей';
    
ex_head();
    
$navigation .= " / Стиль панелей";
    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();
        }
        if (isset(
$_POST['submited']))
        {
            foreach (
$_POST as $key => $value)
            {
                if (
preg_match('#^color_([0-9]*)$#'$key$postnum) && $value == 1)
                {
                    
mysqli_query($dbi"UPDATE `colors_list` SET `default` = '1' WHERE `id` = '$postnum[1]'");
                }
            }
        }
        echo 
"<div class='grand_h'>Выберите цвет</div>n";
        echo 
"<form method='POST' class='multi'>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;'><input type='checkbox' name='color_$post[id]' value='1'> ".hsc($post['name'])."</i></span></a></div></div>n";
        }
        echo 
"<input type='submit' name='submited' value='Ok'>n";
        echo 
"</form>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;">&nbsp;</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;">&nbsp;</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;">&nbsp;</td>
                </tr>
            
                
            
        </table></div>

<?
    
echo "<div class='foot'>n";
        echo 
image_back()." <a href='?act=index'>Назад</a>n";
    echo 
"</div>n";
    
ex_foot();
?>
Онлайн: 2
Реклама