{dede:php}
require_once(DEDEMEMBER."/config.php");
$uid = $cfg_ml->M_LoginID;
if(!$uid){
echo '<div><a class="login-button" href="login.php">登录</a>
|<a class="join-button" href="add.php">加入</a></div>
';
}else{
echo ' <div><a class="login-button" href="#">'.$uid.'</a>
|<a class="join-button" href="<php echo $cfg_memberurl; >/index_do.phpfmdo=login&dopost=exit">登出</a></div>
';
}
{/dede:php}
热门源码