- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
<?php
session_start();
if (empty($_SESSION['login']) or empty($_SESSION['session_id'])) {
$DATA = array('login' => $_POST['login'], 'password' => $_POST['password']);
include "classes/data_base_class.php";
$auth_result = DataBase::StartAuth($DATA['login'], $DATA['password']);
if ($auth_result == 1) {
echo '<meta http-equiv="refresh" content="0;URL=../error.php?mod=auth">';
exit();
}
else
{
$_SESSION['login'] = $auth_result['user_login'];
$_SESSION['user_name'] = $auth_result['user_name'];
$_SESSION['session_id'] = $auth_result['reg_data'];
echo '<meta http-equiv="refresh" content="0;URL=../index.php">';
exit();
}
}
else
{
echo '<meta http-equiv="refresh" content="0;URL=../index.php">';
exit();
}
?>
guest 07.05.2013 22:25 # −9
Govnisti_Diavol 08.05.2013 01:31 # +1
А по существу?
tirinox 08.05.2013 01:43 # +1