ОБСУЖДЕНИЕ

вот проблемака з авторизац.

1 сообщений1 просмотровОткрыта
#1
всем привет, вот делаю автроизацию и что-то не так где-то прописаль посмтрите что не так?<style>
body{background: #fcfcfc;width:100%;margin:0px auto;min-width:240px;padding:0px;font-size:9pt;font-family:tahoma;color:#222222;}
.header{background:#663399;padding:10px;color:#fff}
.header img{vertical-align:middle;}
.menu{padding:10px;background:#fff}
input[type="text"], input[type="password"] {background:#ffffff;margin-bottom:5px;margin-top:5px;border:1px solid #e2e2e2;padding:7px 10px 7px 10px;color:#aeaeae;box-shadow:inset 0px 1px 1px rgba(0,0,0,0.05);-moz-box-shadow:inset 0px 1px 1px rgba(0,0,0,0.05);-webkit-box-shadow:inset 0px 1px 1px rgba(0,0,0,0.05);}
input[type="submit"]{background:#663399;cursor:pointer;color:#ffffff;display:inline-block;padding:8px 10px 8px 10px;text-decoration:none;border: 1px solid #663399;margin-top:5px}
.footer{background-color:#f2f2f2;background-image:url(img/foot.gif);background-position:0 0;background-repeat:repeat-x;border-top:1px solid #999;font-size:10px;padding:9px 5px 5px;text-align:center;}
.copy{padding:8px;color:gray}
</style>
<?
//include_once 'sys/inc/mp3.php'; 
//include_once 'sys/inc/zip.php'; 
include_once 'sys/inc/start.php'; 
include_once 'sys/inc/compress.php'; 
include_once 'sys/inc/sess.php'; 
include_once 'sys/inc/home.php'; 
include_once 'sys/inc/settings.php'; 
include_once 'sys/inc/db_connect.php'; 
include_once 'sys/inc/ipua.php'; 
include_once 'sys/inc/fnc.php'; 
$show_all=true; // показ для всех 
include_once 'sys/inc/user.php'; 
only_unreg(); 

if (isset($_GET['pass']) && $_GET['pass']='ok')
$_SESSION['message'] = 'Пароль отправлен вам на E-mail'; 
$set['title']='Авторизация';


if ((!isset($_SESSION['refer']) || $_SESSION['refer']==NULL)
&& isset($_SERVER['HTTP_REFERER']) && $_SERVER['HTTP_REFERER']!=NULL &&
!preg_match('#mail\.php#',$_SERVER['HTTP_REFERER']))
$_SESSION['refer']=str_replace('&','&',preg_replace('#^http://[^/]*/#','/', $_SERVER['HTTP_REFERER']));
?>
<div class="header"><strong><img src="img/head.png" alt="сайт">сайт.рк</strong> - Социальная сеть</div>
<div class="menu">
<form action="/login" method="post">
Ваш логин:
<br>
<input id="login" name="nick" type="text">
<br>
Пароль:
<br>
<input id="password" placeholder="******" name="pass" type="password">
<br>
<input type="submit" value="Войти">
</form>
</div>
<div class="footer"><div class="copy">© сайт 2014-2015</div></div>
<? 
include_once 'sys/inc/tfoot.php'; 
?>