Discuz!官方免费开源建站系统

 找回密码
 立即注册
搜索

猪大哥的笔记-----改登陆口的办法

[复制链接]
wangsmall 发表于 2008-10-24 16:05:04 | 显示全部楼层 |阅读模式
本帖最后由 wangsmall 于 2008-10-27 11:22 编辑

1:把index.php给改掉
在include_once('./include/main.inc.php');下面
加上
getcookie(1);
$uid = $_SGLOBAL['supe_uid'];
$uname = $_SGLOBAL['supe_username'];

2:拿这段代码随便改
<div id="login">
             <!--{if !empty($uid)}-->
    <div style=" background:#BAE1F8; padding:25px;  margin-left:30px; margin-top:65px; line-height:30px; width:170px;">
您好!{$uname} 欢迎您的来访<br />
<span class="login3"><a href="$siteurl/?action-site-type-panel" target="_self">我的面板</a></span>
<span class="login3"><a href="$bbsurl/pm.php" target="_blank">我的消息</a></span>
<span class="login3"><a href="$siteurl/?$uid" target="_self">我的博客</a></span>
<span class="login3"><a href="{S_URL}/spacecp.php?action=spaceblogs&op=add&openwindow=1" target="_blank">发布日记</a></span>
<span class="login3"><a href="{B_URL}" target="_self">访问论坛</a></span>
<span class="login3"><a href="{S_URL}/batch.login.php?action=logout">安全退出</a></span>
</div>
<!--{else}-->
             <h4>登陆</h4>
<div id="login_tb">
            <form method="post" name="login" action="$siteurl/batch.login.php?action=login" target="_self">
                 <li>用户名 <input type="text" name="username" id="username"/> <a href="{B_URL}/register.php?referer={S_URL}/?action/login">注册用户</a></li>
                    <li>密 码 <input type="password" name="password" id="userpass" /> <a href="{B_URL}/member.php?action=lostpasswd" target="_blank">找回密码</a></li>
                    <li id="login1"><input name="" type="checkbox" value="" />记住我</li>
                    <li id="login2"><button type="submit" id="loginsubmit" name="loginsubmit" value="true"> </button></li>
                </form>
</div>
                <!--{/if}-->
            </div>
回复

使用道具 举报

 楼主| wangsmall 发表于 2008-10-27 09:08:59 | 显示全部楼层

看了没人顶啊
回复

使用道具 举报

食谱网 发表于 2008-10-27 09:26:39 | 显示全部楼层
帮你顶顶............
回复

使用道具 举报

liufengqq 发表于 2008-10-27 09:32:58 | 显示全部楼层
没太看明白...
回复

使用道具 举报

 楼主| wangsmall 发表于 2008-10-27 09:41:39 | 显示全部楼层
没太看明白...
liufengqq 发表于 2008-10-27 09:32


因为我很菜
不会写代码
所以只能拿人家写好的来复制复制
哈哈
回复

使用道具 举报

334763336 发表于 2008-10-27 10:24:27 | 显示全部楼层
回复

使用道具 举报

abcnic1 发表于 2008-10-27 10:57:51 | 显示全部楼层
这样也可以复制?
回复

使用道具 举报

 楼主| wangsmall 发表于 2008-10-27 11:22:43 | 显示全部楼层
为什么不可以?
回复

使用道具 举报

麻吉求求 发表于 2008-10-27 11:31:37 | 显示全部楼层
((mk06))((mk02))
回复

使用道具 举报

SuperKinglai 发表于 2008-10-27 13:17:53 | 显示全部楼层
1:把index.php给改掉
在include_once('./include/main.inc.php');下面
加上
getcookie(1);
$uid = $_SGLOBAL['supe_uid'];
$uname = $_SGLOBAL['supe_username'];

2:拿这段代码随便改

            
   ...
wangsmall 发表于 2008-10-24 16:05


貌似这个在2年前已经不是什么新闻了!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2025-10-26 15:56 , Processed in 0.099924 second(s), 14 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表