diff --git a/app/routes/auth.php b/app/routes/auth.php index dbe26ca..3f707dd 100644 --- a/app/routes/auth.php +++ b/app/routes/auth.php @@ -30,10 +30,10 @@ function login_kuri(){ function out_kuri(){ unset($_COOKIE['user']); - setcookie('user', null, -1); + setcookie('user', null, -1,'/', $_SERVER['HTTP_HOST']); unset($_COOKIE['pwd']); - setcookie('pwd', null, -1); + setcookie('pwd', null, -1, '/', $_SERVER['HTTP_HOST']); header('Location: '.SITE.'login'); diff --git a/app/routes/client.php b/app/routes/client.php index c4d6fd5..0e4ad96 100644 --- a/app/routes/client.php +++ b/app/routes/client.php @@ -85,8 +85,8 @@ function mybooks_kuri($page = 1){ $login = check_login_kuri(); if (!isset($login['data']['clienthash'])){ - // header('Location: '.SITE.'login'); - // exit; + header('Location: '.SITE.'login'); + exit; } $limit = 25; diff --git a/app/views/blocks/auth.phtml b/app/views/blocks/auth.phtml index 4d37e06..868f912 100644 --- a/app/views/blocks/auth.phtml +++ b/app/views/blocks/auth.phtml @@ -1,6 +1,6 @@ - +
- + Войти Моя библиотека /