<P> 首先找到phpcmstemplatesdefaultmembermini.html这个文件</P>
<P> 将其内容修改为</P>
<P> php if(!HTTP_REFERER || strpos(HTTP_REFERER,'&a=login')) @header("Location: ".$_GET['forward']); }
<STYLE> body,html{background:none; padding:0; margin:0} .log{line-height:25px; height:139px; width:178px; float:left; font-size:12px; padding-top:10px; padding-left:5px;} .list { float:left; width:168px; height:30px; line-height:30px; } </STYLE>
</P>
<DIV class=log>{if $_username}{L('hellow')} {get_nickname()}<BR><A href="http://www.fabang.com/editor/lib/%7BAPP_PATH%7Dindex.php?m=member&siteid={$siteid}" target=_blank>{L('member_center')}</A> <A href="http://www.fabang.com/editor/lib/%7BAPP_PATH%7Dindex.php?m=member&c=index&a=logout&forward={urlencode($_GET['forward'])}&siteid={$siteid}" target=_top>{L('logout')}</A>{else}
<FORM id=myform method=post name=myform action={APP_PATH}index.php?m=member&c=index&a=login target=_top><INPUT id=forward name=forward value="{if $_GET['forward']}{$_GET['forward']}{else}{HTTP_REFERER}{/if}" type=hidden>
<DIV class=list>账 号:<INPUT id=username class=input-text name=username size=15></DIV>
<DIV class=list>密 码:<INPUT id=password class=input-text name=password size=16 type=password></DIV>
<DIV class=list>验 证:<INPUT id=code class=input-text name=code size=4>{form::checkcode('code_img', '4', '14', 75, 24)}</DIV>
<DIV class=list><INPUT id=dosubmit name=dosubmit value="{L('login')}" type=submit> | <A href="http://www.fabang.com/editor/lib/%7BAPP_PATH%7Dindex.php?m=member&c=index&a=register&siteid={$siteid}" target=_blank>{L('register')}</A></DIV></FORM>{/if}</DIV>
<P></P>
<P> 在首页调用的方式是</P>
<P>
<SCRIPT type=text/java script>document.write('<iframe src="{APP_PATH}index.php?m=member&c=index&a=mini&forward='+encodeURIComponent(location.href)+'&siteid={get_siteid()}" allowTransparency="true" width="178" height="139" frameborder="0" scrolling="no"></iframe>')</SCRIPT>
</P> |