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

 找回密码
 立即注册
搜索

[疑难] 从7.0升级到7.5.登陆成功之后,登陆框不见了

[复制链接]
wtc930 发表于 2010-1-31 23:19:23 | 显示全部楼层 |阅读模式
SupeSite模板
语言编码: GBK简体 
风格转换者: 原创
我使用了草上蚂蚱的模版,https://discuz.dismall.com/viewth ... 5505&highlight=
从7.0升级到7.5后,登陆成功之后,登陆框那里就什么都没有了。游客状态下会出现,登录后就没.请问要如何解决
代码如下:
  1. <?php

  2. /*
  3.         [SupeSite] (C) 2007-2009 Comsenz Inc.
  4.         $Id: batch.panel.php 11538 2009-03-09 08:15:35Z zhaofei $
  5. */

  6. include_once('./common.php');
  7. include_once(S_ROOT.'./language/batch.lang.php');

  8. $uid = $_SGLOBAL['supe_uid'];
  9. $ucurl = avatar($uid);
  10. $siteurl = S_URL_ALL;
  11. if(!empty($uid)) {
  12.         if($channels['menus']['bbs']) {
  13.                 $bbshtml = ' | <a href="'.$_SC['bbsurl'].'" target="_blank">'.$blang['forum_visit'].'</a>';
  14.         }
  15.         if($channels['menus']['uchblog'] || $channels['menus']['uchimage']) {
  16.                 $uchhtml = ' | <a href="'.$_SC['uchurl'].'" target="_blank">'.$blang['home_visit'].'</a>';
  17.         }
  18.         $showpost = 0;
  19.         $showposturl = '';
  20.         $divhtml = '<div id="contribute_op" style="display:none;"><ul>';
  21.         if(!in_array('news', $_SCONFIG['closechannels']) && !empty($_SGLOBAL['group']['managespacenews'])) {
  22.                 $divhtml .= '<li><a href="'.$siteurl.'/admincp.php?action=spacenews&op=add" target="_blank" onclick="hidendivop();">'.$lang['news'].'</a></li>';
  23.                 $showpost++;
  24.                 $showposturl = $siteurl.'/admincp.php?action=spacenews&op=add';
  25.         }
  26.        
  27.         include_once(S_ROOT.'./function/model.func.php');
  28.         $midarr = getuserspacemid();
  29.         if(!empty($midarr)) {
  30.                 foreach($midarr as $tmpkey => $tmpvalue) {               
  31.                         $divhtml .= '<li><a href="'.$siteurl.'/admincp.php?action=modelmanages&mid='.$tmpvalue['mid'].'&op=add" onclick="hidendivop();" target="_blank">'.$tmpvalue['modelalias'].'</a></li>';
  32.                         $showpost++;
  33.                         $showposturl = $siteurl.'/admincp.php?action=modelmanages&mid='.$tmpvalue['mid'].'&op=add';
  34.                 }
  35.         }
  36.        
  37.         if($showpost == 1) {
  38.                 $showposturl = "document.write('<div class="user_op"> <a href="$showposturl" class="contribute_txt" target="_blank">$lang[pannel_contribution]</a> ');";
  39.         } elseif($showpost > 1) {
  40.                 $showposturl = "document.write('<div class="user_op"> <a href="javascript:contributeop();" class="contribute_txt">$lang[pannel_contribution]</a> ');";
  41.         }
  42.        
  43.         $divhtml .= '</ul></div>';
  44.        
  45.         print <<<END
  46.         function contributeop() {
  47.                 if($('contribute_op').style.display != 'block') {
  48.                         $('contribute_op').style.display = 'block';
  49.                 } else {
  50.                         $('contribute_op').style.display = 'none';
  51.                 }       
  52.         }
  53.         function hidendivop(){
  54.                 $('contribute_op').style.display = 'none';
  55.         }
  56.         document.write('<div class="box3">');
  57.         document.write('<form name="userlogin" method="post" action="$siteurl/batch.login.php?action=login">');
  58.         document.write('<input type="hidden" name="formhash" value="$formhash" />');
  59.         document.write('<div class="b3_t"><a href="$siteurl/admincp.php" target="_blank">管理网站</a>用户面板</div>');
  60.         document.write('<div class="b3_a">你好:$_SGLOBAL[supe_username],欢迎登陆网站</div>');
  61.                 document.write('<div class="mmgj">');
  62.                         document.write('<div class="zf8"></div>');     
  63.                         document.write('<div>');
  64.                                 document.write('<a href="$uchurl/network.php" target="_blank">宝宝空间</a>&nbsp;&nbsp;&nbsp;');
  65.                                 document.write('<a href="$bbsurl/" target="_blank">妈妈论坛</a>&nbsp;&nbsp;&nbsp;');
  66.                                 document.write('<a href="$uchurl/space.php?do=album" target="_blank">宝宝相册</a>');
  67.                         document.write('</div>');
  68.                         document.write('<div class="zf8"></div>');
  69.                         document.write('<div>');
  70.                                 document.write('<a href="$uchurl/space.php?do=blog" target="_blank">宝宝日记</a>&nbsp;&nbsp;&nbsp;');
  71.                                 document.write('<a href="$uchurl/space.php?do=blog" target="_blank">心情分享</a>&nbsp;&nbsp;&nbsp;');
  72.                                 document.write('<a href="$uchurl/network.php?ac=thread" target="_blank">妈妈话题</a>');
  73.                         document.write('</div>');
  74. document.write('<div class="zf8"></div>');
  75.                          document.write('<div>');
  76.                                 document.write('<a href="$uchurl/space.php?do=doing" target="_blank">点点记录</a>&nbsp;&nbsp;&nbsp;');
  77.                                 document.write('<a href="$uchurl/network.php?ac=mtag" target="_blank">热门群组</a>&nbsp;&nbsp;&nbsp;');
  78.                                 document.write('<a href="$uchurl/network.php?ac=space" target="_blank">宝宝乐园</a>');
  79.                         document.write('</div>');
  80.                
  81.                 document.write('</div>');
  82. document.write('<div class="zf8"></div>');
  83. document.write('<div class="b3_c"><a href="$siteurl/space.php?uid=$uid" target="_blank">个人主页</a>|<a href="$bbsurl/memcp.php" target="_blank">资料</a>|<a href="$bbsurl/pm.php" target="_blank">短消息</a>|<a href="$siteurl/batch.login.php?action=logout" target="_blank">安全退出</a></div>');
  84. document.write('<div class="b3_b">');
  85. document.write('<div class="zf3"></div>');
  86. document.write('<a href="$siteurl/do.php?action=register">点此注册本站,尽享育儿交流的乐趣吧!</a><br />');
  87.         document.write('</div>');
  88. document.write('</form>');
  89. document.write('</div>');
  90.        
  91. END;
  92. } else {

  93.         $formhash = formhash();
  94.         print <<<END
  95.         var noseccode = $_SCONFIG[noseccode];

  96.         document.write('<div class="box3">');
  97.         document.write('<form name="userlogin" method="post" action="$siteurl/batch.login.php?action=login">');
  98.        
  99.         document.write('<div class="b3_t"><a href="$siteurl/do.php?action=register" target="_blank">免费注册</a>用户登录</div>');
  100.         document.write('<input type="hidden" name="formhash" value="$formhash" />');
  101. document.write('<div id="_userlogin">');
  102.         document.write('<div class="b3_m">');
  103. document.write('<div class="zf5"></div>');

  104. document.write('用户名:<input type="text" name="username"/>');
  105.         document.write('<div class="zf5"></div>');
  106.         document.write('密&nbsp;&nbsp;码:<input type="password" name="password" />');
  107. document.write('<div class="zf5"></div>');
  108. document.write('</div>');
  109. document.write('<div class="b3_m2"><input type="submit" name="loginsubmit"  value=" " style="border:0;background:url(templates/$_SCONFIG[template]/images/dl.gif);width:60px;height:21px"/>&nbsp;<a href="$siteurl/do.php?action=lostpasswd" target="_blank">忘记密码?</a></div>');
  110. document.write('<div class="zf5"></div>');
  111.         document.write('</div>');
  112.         document.write('<div class="b3_b">');
  113. document.write('<div class="zf5"></div>');
  114. document.write('<a href="$siteurl/do.php?action=register">点此注册本站,尽享育儿交流的乐趣吧!</a><br />');
  115.         document.write('</div>');
  116. document.write('</form>');
  117. document.write('</div>');
  118. END;
  119. }

  120. /**
  121. * 取得用户后台模型mid
  122. * return array
  123. */
  124. function getuserspacemid() {
  125.        
  126.         $cachefile = S_ROOT.'./cache/model/model.cache.php';
  127.         $cacheinfo = '';
  128.         if(file_exists($cachefile)) {
  129.                 include_once($cachefile);
  130.         }
  131.         if(!empty($cacheinfo) && is_array($cacheinfo)) {
  132.                 return $cacheinfo;
  133.         } else {
  134.                 include_once(S_ROOT.'./function/cache.func.php');
  135.                 return updateuserspacemid();
  136.         }
  137. }

  138. ?>
复制代码
回复

使用道具 举报

SSAY 发表于 2010-1-31 23:57:42 | 显示全部楼层
因为代码输出有误
回复

使用道具 举报

abc做网站 发表于 2010-2-1 09:31:28 | 显示全部楼层
支持,顶一下看看






回复

使用道具 举报

 楼主| wtc930 发表于 2010-2-1 09:36:31 | 显示全部楼层
请高手们帮忙解决一下。谢谢。
回复

使用道具 举报

草上蚂蚱 发表于 2010-2-1 13:23:05 | 显示全部楼层
已成功解决。合作愉快。
回复

使用道具 举报

abcwangyi789 发表于 2010-2-7 20:13:47 | 显示全部楼层
回复 5# 草上蚂蚱


    怎么解决的   ??????
回复

使用道具 举报

z275504001 发表于 2010-6-28 20:47:40 | 显示全部楼层
是啊,怎么解决的啊?也不分享一下。
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-7-28 05:48 , Processed in 0.146533 second(s), 16 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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