Цитата:
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at Z:\home\cms\www\admin\index.php:1) in Z:\home\cms\www\admin\auth.php on line 6
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at Z:\home\cms\www\admin\index.php:1) in Z:\home\cms\www\admin\auth.php on line 6
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at Z:\home\cms\www\admin\index.php:1) in Z:\home\cms\www\admin\auth.php on line 6
код auth.php:
PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- <?PHP
- {
- $_SESSION['login'] = $_POST['login'];
- $_SESSION['passw'] = $_POST['passw'];
- }
- $login != $_SESSION['login'] or
- $passw != $_SESSION['passw'] )
- {
- ?>
- <a href="index.php">Вернуться в администрирование сайта</a>
- <form action=index.php method=post>
- Логин <input class=input name=login value="">
- Пароль <input class=input name=passw value="">
- <input type=hidden name=enter value=yes>
- <input class=button type=submit value="Вход">
- <?PHP
- die;
- }
- ?>