add auth
This commit is contained in:
9
app/views/blocks/auth.phtml
Normal file
9
app/views/blocks/auth.phtml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?$checklogin = check_login_kuri()?>
|
||||
<div id="auth">
|
||||
<?if ($checklogin == 'error'):?>
|
||||
<a href="login">Войти</a>
|
||||
<?else:?>
|
||||
<a href="mybooks">Моя библиотека</a> /
|
||||
<a href="out">Выйти</a>
|
||||
<?endif?>
|
||||
</div>
|
||||
Reference in New Issue
Block a user