<script language="javascript" type="text/javascript" src="{dede:global.cfg_cmsurl/}/include/dedeajax2.js"></script> <script language="javascript" type="text/javascript"> <!-- $(function(){ $("dl.tbox dt span.label a[_for]").mouseover(function(){ $(this).parents("span.label").children("a[_for]").removeClass("thisclass").parents("dl.tbox").children("dd").hide(); $(this).addClass("thisclass").blur(); $("#"+$(this).attr("_for")).show(); }); $("a[_for=uc_member]").mouseover(); }); function CheckLogin(){ var taget_obj = document.getElementById('_userlogin'); myajax = new DedeAjax(taget_obj,false,false,'','',''); myajax.SendGet2("{dede:global.cfg_cmspath/}/member/ajax_loginsta.php"); DedeXHTTP = null; } --> </script> <div id="_userlogin" style="float:right; font-size:14px; "> <span class="right" id="_userlogin"><a href="/member/index_do.php?fmdo=user&dopost=regnew">注册会员</a> | <a href="/member/login.php">会员登录</a> | <a href="/member/resetpassword.php">忘记密码?</a></span> <!-- /userlogin --> <script language="javascript" type="text/javascript">CheckLogin();</script>注意,默认模板请不要修改<div id="_userlogin" 这个,不然自能登陆会员系统,前台页面还是显示登录框 member/ajax_loginsta.php替换该文件。 以下为引用的内容:
<?php require_once(dirname(__FILE__)."/config.php"); AjaxHead(); if($myurl == '') { exit(''); } $uid = $cfg_ml->M_LoginID; $face = $cfg_ml->fields['face'] == '' ? $GLOBALS['cfg_memberurl'].'/images/nopic.gif' : $cfg_ml->fields['face']; ?> <div style="float:left; font-size:14px; color: #666666"> 你好: <b><?php echo $cfg_ml->M_UserName; ?></b> <a href="<?php echo $cfg_memberurl; ?>/index.php">会员中心</a> | <a href="<?php echo $cfg_memberurl; ?>/guestbook_admin.php">我的留言</a> | <a href="<?php echo $myurl;?>">空间</a> | <a href="<?php echo $cfg_memberurl; ?>/index_do.php?fmdo=login&dopost=exit">退出登录</a> | <a href=http://bbs.liehuo.net>访问论坛</a> </div><!-- /userinfo -->
新闻热点
疑难解答