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

 找回密码
 立即注册
搜索

[疑难] 平湖模版顶部登录框的问题

[复制链接]
lqqk7 发表于 2009-8-18 01:52:31 | 显示全部楼层 |阅读模式
用了平湖模版,之前正常,不知什么时候开始登陆后登陆框那里显示出问题了
只显示了 用户名、退出、个人主页、管理
论坛和家用不显示了,这是啥情况啊?
Snap1.jpg


附上batch.panel.php代码帮看看
谢谢了!
  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="login_ext">');
  57.         document.write('<p>$blang[welcome], <a href="$siteurl/home/space.php?uid=$uid">$_SGLOBAL[supe_username]</a> [<a href="$siteurl/batch.login.php?action=logout">$blang[safe_logout]</a>]');
  58.         document.write('<a href="$siteurl/home/space.php?uid=$uid">$blang[my_space]</a>');
  59.         document.write('$bbshtml');
  60.         document.write('$uchhtml');
  61.         document.write(' | <a href="$siteurl/admincp.php" target="_blank">$blang[management]</a>');
  62.         document.write('$divhtml</div>');
  63. END;
  64. } else {

  65.         $formhash = formhash();
  66.         print <<<END
  67.         var noseccode = $_SCONFIG[noseccode];
  68.         document.write('<div id="login_authcode_img" style="display:none"><img src="$siteurl/do.php?action=seccode" alt="$lang[verification_code]" id="img_seccode" /></div>');
  69.         document.write('<form id="login_box" action="$siteurl/batch.login.php?action=login" method="post">');
  70.         document.write('<input type="hidden" name="formhash" value="$formhash" />');
  71.         document.write('<label>$blang[username]:</label> <input type="text"  name="username" class="input_tx" size="23" onfocus="addseccode();" />');
  72.         document.write('<label>$blang[password]:</label> <input type="password" name="password" class="input_tx" size="23" onfocus="addseccode();" />');
  73.         document.write('<p id="login_authcode_input" style="display:none"><label>$lang[verification_code]:</label> <input type="text" class="input_tx" name="seccode" size="10" onfocus="showseccode()"; /> <a href="javascript:updateseccode();">$lang[changge_verification_code]</a></p>');
  74.         document.write('<div id="login_showclose" style="display:none"><a href="javascript:hidesec();">&nbsp;</a></div>');
  75.         document.write('<input id="cookietime" type="checkbox" value="315360000" name="cookietime" class="input_remember"/>');
  76.         document.write('<label class="label_remember" for="cookietime">$blang[i_remember]</label>');
  77.         document.write('<input type="submit" name="loginsubmit" class="input_sub" value="$blang[login]" />');
  78.         document.write('<div class="login_ext">');
  79.         document.write('<a href="$siteurl/do.php?action=register">$blang[registration]</a> | <a href="$siteurl/do.php?action=lostpasswd">$blang[find_passwords]</a>');
  80.         document.write('</div>');
  81.         document.write('</form>');
  82. END;
  83. }

  84. /**
  85. * 取得用户后台模型mid
  86. * return array
  87. */
  88. function getuserspacemid() {
  89.        
  90.         $cachefile = S_ROOT.'./cache/model/model.cache.php';
  91.         $cacheinfo = '';
  92.         if(file_exists($cachefile)) {
  93.                 include_once($cachefile);
  94.         }
  95.         if(!empty($cacheinfo) && is_array($cacheinfo)) {
  96.                 return $cacheinfo;
  97.         } else {
  98.                 include_once(S_ROOT.'./function/cache.func.php');
  99.                 return updateuserspacemid();
  100.         }
  101. }

  102. ?>
复制代码
回复

使用道具 举报

五元超市 发表于 2009-8-18 12:54:32 | 显示全部楼层
家园跟论坛聚合好没有?
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-14 19:24 , Processed in 0.117402 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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