Вход Регистрация
Файл: my/versia.php
Строк: 34
<?
require'../config.php';
$align='left';
$title='Выбор версии';
if (empty(
$_GET['act']))
include 
'../style/head.php';
aut();
who_add(0,'lk');
$act $_GET['act'];
if (empty(
$act))
    {
     echo 
'
     Размер шрифта:<br />
     <form method="post" action="versia?act=vers&amp;'
.SID.'" name="auth">
     <select name="fsize">
     <option value="medium">Нормальный</option>
     <option value="small">Мелкий</option>
     <option value="big">Большой</option>
     </select><br/>
     <input class="ibutton" type="submit" class="ibutton" value="Сменить"/></form>
     <br />Цветная версия:<br/>
     <form method="post" action="versia?act=style&amp;'
.SID.'" name="auth">
     <select name="style">
     <option value="'
.$set['style'].'">'.$set['style'].'</option>';
     
$d=opendir(H."style");
     while((
$e=readdir($d))!==false)
         {
         if (
$e=='.'||$e=='..'||$e==".htaccess"||$e==".php"||$e==".Thumbs.db"||$e=="Thumbs.db") continue;
         
$la $la 1;
         if(
$la>$c-and $la<$c+1000)
             {
             
$e1 strtr($e, array ('.css' => ''));
             if (
substr_count($e'.css')!=0)
                 {
                  echo 
'<option value="'.$e1.'">'.$e1.'</option>';
                }

            }
        }
     
closedir($d);
     echo 
'</select>
     <br /><input type="submit" class="ibutton" value="Выбрать">
     <br />'
;
    }
else
if (
$act=='vers')
    {
     
$vers check($_POST['vers']);
     
$fsize check($_POST['fsize']);
     
$db->sql_query ("Update users set fsize='".$fsize."' where id ='".$user['id']."'");
     
header ('Location: versia?'.SID);
     exit;
    }
else
if (
$act=='style')
    {
     
$style check($_POST['style']);
     
$db->sql_query ("Update users set style='".$style."' where id ='".$user['id']."'");
     
header ('Location: versia?'.SID);
     exit;
    }
echo 
'<br />';
echo 
gb.'<a href="'.H.'my/index">Личный кабинет</a>'.div;
include 
'../style/foot.php';
?>
Онлайн: 0
Реклама