mirror of
https://github.com/bs-community/blessing-skin-server.git
synced 2024-12-15 06:09:58 +08:00
show button of accessing user center if logged in
This commit is contained in:
parent
3be967b672
commit
301b426a6e
@ -3,7 +3,7 @@
|
||||
* @Author: printempw
|
||||
* @Date: 2016-01-17 13:55:20
|
||||
* @Last Modified by: printempw
|
||||
* @Last Modified time: 2016-03-19 15:33:43
|
||||
* @Last Modified time: 2016-03-19 15:37:29
|
||||
*/
|
||||
session_start();
|
||||
$dir = dirname(__FILE__);
|
||||
@ -78,6 +78,8 @@ if (isset($_COOKIE['uname']) && isset($_COOKIE['token'])) {
|
||||
else: ?>
|
||||
<button id="login" class="pure-button pure-button-primary">登录</button><?php
|
||||
endif; ?>
|
||||
<?php else: ?>
|
||||
<a href="./user/" class="pure-button pure-button-primary">用户中心</a>
|
||||
<?php endif; ?>
|
||||
</p>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user