<?php if(!empty($uid)) : ?>
	document.write('<span><a href="#" target="_self"><?php echo $nickname ?></a> | <a href="<?php echo DIR_INSTALL ?>admin/main/index.php" target="_blank">我的控制面板</a> | <a href="logout.php" target="_self">安全退出</a></span>');
<?php else : ?>
	document.write('<span><a href="login.php" target="_self">登录</a> | <a href="reg.php" target="_self">注册</a> | <a href="getpwd.php" target="_self">找回密码</a></span>');
<?php endif; ?>

