Файл: masteram_us/user/versia.php
Строк: 23
<?
require'../shaxty.php'; // waphp.ru - закрытый клуб вап мастеров!
check_login();
$title = 'Стиль сайта';
$align = 'left';
$head = 'Стиль сайта';
include_once (H.'shaxty/head.php');
if (empty($act)){
echo 'Стиль:<br/>';
echo '<form method="post" action="versia.php?act=style&'.SID.'" name="auth">';
echo '<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-1 and $la<$c+1000){
$e1 = str_replace(".css","",$e);
if (substr_count($e, '.css')!=0){
echo '<option value="'.$e1.'">'.$e1.'</option>';
}
}
}
closedir($d);
echo '</select>';
echo '<br /><input type="submit" class="ibutton" value="Выбрать"><br />';
} else {
$style = check($_POST['style']);
mysql_query ("Update users set style='".$style."' where id ='".$user['id']."'");
header ('Location: versia.php?'.SID); exit;
}
echo '<br />';
echo $div1.'<a href="'.H.'user/index.php">Личный кабинет</a>'.$div9;
include_once (H.'shaxty/foot.php');
?>