login.php
PHP:
скопировать код в буфер обмена
скопировать код в буфер обмена
- function login() //функция авторизации пользователей
- {
- $res = $this->registry['users']->all($_POST['login']);
- $_SESSION = $row;
- if(!$_POST)
- {
- }
- $form = ($this->empty_form($_POST));
- if($form == true)
- {
- $this->registry['template']->show('index');
- }
- $_POST = $this->clean_space($_POST);
- $res = $this->registry['users']->login($_POST['login']);
- if (($login['login'] == $_POST['login'])&&($pwd == $login['pwd']))
- {
- if($_SESSION['privilege'] == 1)
- {
- }else{
- }
- } else {
- }
- }