Файл: vhod.php
Строк: 46
<? // автор -=ШАХТЕР=- http://waphp.ru
require'includes.php';
$align='center';
$title='Лучший сайт!';
$head = text($set['head']);
head();
if($set['logo']!=''){
if(file_exists($set['logo']))echo '<img src="/'.$set['logo'].'" alt="logo"/> <br />';
else echo '<img src="/img/1.gif" alt="logo"/> <br />';
}
if (isset($v_us['id']))header("Location: ".H."enter?");
if($set['foto_index'] == '1'){
$resu = mysql_fetch_assoc(query("Select * from users WHERE and photo!='' and sex = '1' order by vote_photo desc limit 1;"));
if($resu['id']){
echo ''.$resu['user'].'<br /><img src="'.H.'index_img?'.$resu['id'].'" alt="'.$resu['user'].'"/><br />';
}
} else if($set['foto_index'] == '2'){
$resu = mysql_fetch_assoc(query("Select * from users WHERE and photo!='' and sex = '0' order by vote_photo desc limit 1;"));
if($resu['id']){
echo ''.$resu['user'].'<br /><img src="'.H.'index_img?'.$resu['id'].'" alt="'.$resu['user'].'"/><br />';
}
}else if($set['foto_index'] == '3'){
$resu1 = mysql_fetch_assoc(query("Select * from users WHERE and photo!='' and sex = '1' order by vote_photo desc limit 1;"));
$resu2 = mysql_fetch_assoc(query("Select * from users WHERE and photo!='' and sex = '0' order by vote_photo desc limit 1;"));
if($resu1['id']&&!$resu2['id']){
echo ''.$resu1['user'].'<br /><img src="'.H.'index_img?'.$resu1['id'].'" alt="'.$resu1['user'].'"/>';
}
if($resu2['id']&&!$resu1['id']){
echo ''.$resu2['user'].'<br /><img src="'.H.'index_img?'.$resu2['id'].'" alt="'.$resu2['user'].'"/><br />';
}
if($resu2['id']&&$resu1['id']){
echo ''.$resu1['user'].' | '.$resu2['user'].'<br /><img src="'.H.'index_img?'.$resu1['id'].'" alt="'.$resu1['user'].'"/> | <img src="'.H.'index_img?'.$resu2['id'].'" alt="'.$resu2['user'].'"/><br />';
}
}
if ($ver=='xhtml') echo '<form method="post" action="in?" name="auth">';
echo '<br />Ваш ник или id:<br/>';
echo '<input name="id" title="nick"/><br/>';
echo 'Ваш пароль:<br/>';
echo '<input type="password" name="ps" maxlength="20" title="password"/><br/>';
if ($ver=='wml'){
echo '<br /><anchor title="go">Вход<go href="in?'.SID.'" method="post">';
echo '<postfield name="id" value="$(id)"/>';
echo '<postfield name="ps" value="$(ps)"/>';
echo '<postfield name="trun" value="$(trun)"/>';
echo '</go></anchor><br /><br />';
}else {
echo '<br /><input type="submit" class="ibutton" value="Вход" name="enter"/></form><br /><br />';
}
echo gb.'<a href="lost_pass"><font color="black">Забыли пароль?</font></a>'.div;
foot(); // автор -=ШАХТЕР=- http://waphp.ru
?>