免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
返回列表 發帖

[已回答] 请管大恢复数据库

http://gscggame.66rt.com/
论坛突然出错了 恳请管理大大恢复 谢谢
最好恢复到2018年5月6日上午,谢谢!

回復 9# admin


    谢谢!

TOP

您好

已處理

謝謝

TOP

你还改了哪个模板?比如footer,faq

TOP

我看了,除了x3_login的内容看不到,其他的没问题

TOP

回復 4# 小僵人


    没有调用语句呀
    整段代码是这样的:
  1.                                                 <!--{if $id == 3}-->
  2.                                                         <!--{if !empty($plugins['jsmenu'])}-->
  3.                                                                 $nav[nav]
  4.                                                         <!--{/if}-->
  5.                                                         <!--{if !empty($plugins['links'])}-->
  6.                                                                 <!--{loop $plugins['links'] $module}-->
  7.                                                                         <!--{if !$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)}--><li>$module[url]</li><!--{/if}-->
  8.                                                                 <!--{/loop}-->
  9.                                                         <!--{/if}-->
  10.                                                 <!--{else}-->
  11.                                                         <!--{if !$nav['level'] || ($nav['level'] == 1 && $discuz_uid) || ($nav['level'] == 2 && $adminid > 0) || ($nav['level'] == 3 && $adminid == 1)}-->$nav[nav]<!--{/if}-->
  12.                                                 <!--{/if}-->
  13.                                         <!--{/loop}-->
  14.                                         <!--{if in_array($BASEFILENAME, $navmns)}-->
  15.                                                 {eval $mnid = $BASEFILENAME;}
  16.                                         <!--{elseif $navmngs[$BASEFILENAME]}-->
  17.                                                 <!--{loop $navmngs[$BASEFILENAME] $navmng}-->
  18.                                                         <!--{if $navmng[0] == array_intersect_assoc($navmng[0], $_GET)}-->{eval $mnid = $navmng[1];}<!--{/if}-->
  19.                                                 <!--{/loop}-->
  20.                                         <!--{/if}-->
  21.                                 </ul>
  22.                                 <script type="text/javascript">
  23.                                         var currentMenu = $('mn_$mnid') ? $('mn_$mnid') : $('mn_$navmns[0]');
  24.                                         currentMenu.parentNode.className = 'current';
  25.                                 </script>
  26. <span  id="qmenu" onmouseover="this.className='dhshow'" onmouseout="this.className='dhhide'" class="dhhide" style="position: absolute;cursor: pointer";>快捷导航
  27. <div id="qmenu_menu" class="p_pop" style="left: 50%;margin-left: -497px;margin-top: 0px;" >
  28. <!--{if $discuz_uid}-->
  29. <ul class="cl nav" style="margin-left: 15px;min-height: 90px;"><li><a style='background-image: url("http://www.discuz.net/static/image/feed/thread_b.png") !important;' href="my.php?item=threads">帖子</a></li>
  30. <li><a style='background-image: url("http://www.discuz.net/static/image/feed/friend_b.png") !important;' href="my.php?item=buddylist">好友</a></li>
  31. <li><a style='background-image: url("http://www.discuz.net/static/image/feed/magic_b.png") !important;' href="magic.php">道具</a></li>
  32. <li><a style='background-image: url("http://www.discuz.net/static/image/feed/favorite_b.png") !important;' href="my.php?item=favorites">收藏</a></li>
  33. <li><a style='background-image: url("http://www.discuz.net/static/image/feed/task_b.png") !important;' href="task.php">任务</a></li>
  34. <li><a style='background-image: url("http://www.discuz.net/static/image/feed/collection_b.png") !important;' href="forumdisplay.php?fid=15&filter=digest">淘帖</a></li>
  35. <li><a style='background-image: url("http://www.discuz.net/static/image/feed/medal_b.png") !important;' href="plugin.php?id=dps_medalcenter">勋章</a></li>
  36. <li><a style='background-image: url("http://www.gscggame.66rt.com/attachment.php?aid=NTk1fDk5MmU4YTRkfDE1MjM0NTY1Mzl8NTU4ZHB1NDJMQmxVZ2w1UUhIZjVRdGgwNFFWUGZ4UDF4R1N6eWNwdWoyZHFiUFE") !important;' href="plugin.php?id=dps_sign:sign">签到</a></li>
  37. </ul>
  38. <!--{else}-->
  39. <div class="ptm" style="font-weight: normal;color: #444;">
  40. 请 <a class="xi2" href="logging.php?action=login" onclick="showWindow('login', this.href);return false;"> 登录 </a> 后使用快捷导航<br>没有帐号?<a class="xi2 xw1" href="$regname" onclick="showWindow('register', this.href);return false;">立即注册</a>
  41. </div>
  42. <!--{/if}-->

  43. <div class="btda" id="fjump_menu">
  44. <div id="flsrchdiv">
  45. <div class="mbm">搜索版块: <input class="px vm" onkeyup="forumlistsearch(this.value)" type="text"></div>
  46. <ul class="jump_bdl cl">
  47. <li>
  48. <p class="bbda xg1">所有板块</p>
  49. <p class="xw1"><a href="http://www.gscggame.66rt.com/?gid=3">学术版</a></p>
  50. <p class="sub"><a href="http://www.gscggame.66rt.com/forum-27-1.html">提问交流版</a></p>
  51. <p class="sub"><a href="http://www.gscggame.66rt.com/forum-6-1.html">C版</a></p>
  52. <p class="sub"><a href="http://www.gscggame.66rt.com/forum-5-1.html">C++版</a></p>
  53. <p class="sub"><a href="http://www.gscggame.66rt.com/forum-4-1.html">Pascal版</a></p>
  54. <p class="sub"><a href="http://www.gscggame.66rt.com/forum-15-1.html">Java版</a></p>
  55. <p class="sub"><a href="http://www.gscggame.66rt.com/forum-16-1.html">Arduino版</a></p>
  56. <p class="sub"><a href="http://www.gscggame.66rt.com/forum-40-1.html">Scratch版</a></p>
  57. <p class="sub"><a href="http://www.gscggame.66rt.com/forum-25-1.html">其他版</a></p>
  58. <p class="xw1"><a href="http://www.gscggame.66rt.com/?gid=17">精品文章版</a></p>
  59. <p class="sub"><a href="http://www.gscggame.66rt.com/forum-26-1.html">精品文章版</a></p>
  60. <p class="xw1"><a href="http://www.gscggame.66rt.com/?gid=21">站务版</a></p>
  61. <p class="sub"><a href="http://www.gscggame.66rt.com/forum-22-1.html">站务版</a></p>
  62. <p class="xw1"><a href="http://www.gscggame.66rt.com/?gid=11">其他版</a></p>
  63. <p class="sub"><a href="http://www.gscggame.66rt.com/forum-12-1.html">反馈、申请专版</a></p>
  64. <p class="sub"><a href="http://www.gscggame.66rt.com/forum-14-1.html">公告专版</a></p>
  65. <p class="sub"><a href="http://www.gscggame.66rt.com/forum-18-1.html">灌水版</a></p>
  66. <p class="xw1"><a href="http://www.gscggame.66rt.com/?gid=33">资源上传&分享</a></p>
  67. <p class="sub"><a href="http://www.gscggame.66rt.com/forum-34-1.html">资源上传&分享</a></p>
  68. <p class="xw1"><a href="http://www.gscggame.66rt.com/?gid=38">进入下载中心</a></p>
  69. <p class="sub"><a href="http://www.gscggame.66rt.com/forum-39-1.html">进入下载中心</a></p>
  70. <p class="xw1"><a href="http://www.gscggame.66rt.com/?gid=28l">小黑屋</a></p>
  71. <p class="sub"><a href="http://www.gscggame.66rt.com/forum-31-1.html">小黑屋</a></p>
  72. <p class="xw1"><a href="http://www.gscggame.66rt.com/?gid=41">upload专区</a></p>
  73. <p class="sub"><a href="http://www.gscggame.66rt.com/forum-42-1.html">upload专区</a></p>

  74. <li><p class="bbda xg1">我的收藏</p>{subtemplate my_favorites}</li>
  75. </ul>
  76. </div>
  77. <script type="text/javascript">
  78. function forumlistsearch(srch) {
  79. srch = srch.toLowerCase();
  80. var p = $('flsrchdiv').getElementsByTagName('p');
  81. for(var i = 0;i < p.length;i++){
  82. p[i].style.display = p[i].innerText.toLowerCase().indexOf(srch) !== -1 ? '' : 'none';
  83. }
  84. }
  85. </script>
  86. </div>
  87. </div>
  88. </span>
  89.                         </div>
  90.                         <!--{if !empty($stylejumpstatus)}-->
  91.                                 <script type="text/javascript">
  92.                                         function setstyle(styleid) {
  93.                                                 str = unescape('{echo str_replace("'", "\\'", urlencode($_SERVER[QUERY_STRING]))}');
  94.                                                 str = str.replace(/(^|&)styleid=\d+/ig, '');
  95.                                                 str = (str != '' ? str + '&' : '') + 'styleid=' + styleid;
  96.                                                 location.href = '$BASESCRIPT?' + str;
  97.                                         }
  98.                                 </script>
  99.                                 <ul id="style_switch">
  100.                                 <!--{loop $styles $id $stylename}-->
  101.                                         <li{if $id == STYLEID} class="current"{/if}><a href="###" onclick="setstyle($id)" title="$stylename" style="background: $styleicons[$id];">$stylename</a></li>
  102.                                 <!--{/loop}-->
  103.                                 </ul>
  104.                         <!--{/if}-->
  105.                 </div>
  106.                 <div id="myprompt_menu" style="display:none" class="promptmenu">
  107.                         <div class="promptcontent">
  108.                                 <ul class="s_clear">
  109.                                 <!--{loop $prompts $promptkey $promptdata}-->
  110.                                         <!--{if $promptkey}--><li{if !$promptdata[new]} style="display:none"{/if}><a id="prompt_$promptkey" href="{if $promptdata[script]}$promptdata[script]{else}notice.php?filter=$promptkey{/if}" target="_blank">$promptdata[name] ($promptdata[new])</a></li><!--{/if}-->
  111.                                 <!--{/loop}-->
  112.                                 </ul>
  113.                         </div>
  114.                 </div>
  115.         </div>
  116.         $pluginhooks[global_header]
複製代碼
剩下的代码我详见下一楼
应该没有调用语句呀,因为我后来发现不对劲又恢复了
(这是后面一段)

TOP

回復 4# 小僵人


    没有调用语句呀
    整段代码是这样的:
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <div style="width:100%;   height:50px; border:1px #FF9900 dashed; text-align:center; line-height:50px; background-color: #FFFFFF"><strong style="color:#FF0000">Hello!</strong>欢迎您来到GSCG论坛!这是一个在线编程交流中心,欢迎大家分享资源和经验!</div>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>$navtitle $bbname $seotitle - Powered by Discuz!</title>
  7. $seohead
  8. <meta name="keywords" content="{$metakeywords}$seokeywords" />
  9. <meta name="description" content="$metadescription $bbname $seodescription - Discuz! Board" />
  10. <meta name="generator" content="Discuz! $version" />
  11. <meta name="author" content="Discuz! Team and Comsenz UI Team" />
  12. <meta name="copyright" content="2001-2009 Comsenz Inc." />
  13. <meta name="MSSmartTagsPreventParsing" content="True" />
  14. <meta http-equiv="MSThemeCompatible" content="Yes" />
  15. <meta http-equiv="x-ua-compatible" content="ie=7" />
  16. <link rel="archives" title="$bbname" href="{$boardurl}archiver/" />
  17. $rsshead
  18. $extrahead
  19. {csstemplate}
  20. <script type="text/javascript">var STYLEID = '{STYLEID}', IMGDIR = '{IMGDIR}', VERHASH = '{VERHASH}', charset = '$charset', discuz_uid = $discuz_uid, cookiedomain = '$cookiedomain', cookiepath = '$cookiepath', attackevasive = '$attackevasive', disallowfloat = '$disallowfloat', creditnotice = '{if $creditnotice}$creditnames{/if}', {if in_array(CURSCRIPT, array('viewthread', 'forumdisplay'))}gid = parseInt('$thisgid'){elseif CURSCRIPT == 'index'}gid = parseInt('$gid'){else}gid = 0{/if}, fid = parseInt('$fid'), tid = parseInt('$tid')</script>
  21. <script type="text/javascript" src="{$jspath}common.js?{VERHASH}"></script>
  22. </head>

  23. <body id="{CURSCRIPT}" onkeydown="if(event.keyCode==27) return false;">
  24.         <div id="append_parent"></div><div id="ajaxwaitid"></div>
  25. <div class="pace"></div>
  26. <script src="http://tlb.258club.com/templates/default/loading.htm" type="text/javascript"></script>
  27.         <div id="header">
  28.                 <div class="wrap s_clear">
  29.                         <h2><a href="$indexname" title="$bbname"><span id='logo_coder' onmouseover="document.getElementById('gohome_coder').style.display='inline-block'" onmouseout="document.getElementById('gohome_coder').style.display='none'">{BOARDLOGO}</span><span id='gohome_coder' style='margin-left:0px; display:none;'><img src=http://www.gscggame.66rt.com/attachment.php?aid=NjA2fGUzNzg5NDE5fDE1MjM0NjQwOTl8Y2NmMm9KcVdsRkk3R0ptUWpKWlByZUltSHB1REVGcTEzMnJuY2NoSnhjQk5lVE0></span></a></h2></a></h2>
  30.                      {subtemplate x3_login}
  31.                         <div id="menu">
  32.                                 <img src="https://t1.picb.cc/uploads/2018/04/04/2uZdOK.gif" style="position:absolute;z-index:1001;margin-left:510px;margin-top:3px;">
  33.                                 <ul>
  34.                                         <!--{if $_DCACHE['settings']['frameon'] > 0}-->
  35.                                                 <li>
  36.                                                 <span class="frameswitch">
  37.                                                 <script type="text/javascript">
  38.                                                         if(top == self) {
  39.                                                                 {if ($_DCACHE['settings']['frameon'] == 2 && !defined('CACHE_FILE') && in_array(CURSCRIPT, array('index', 'forumdisplay', 'viewthread')) && (($_DCOOKIE['frameon'] == 'yes' && $_GET['frameon'] != 'no') || (empty($_DCOOKIE['frameon']) && empty($_GET['frameon']))))}
  40.                                                                 top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
  41.                                                                 {/if}
  42.                                                                 document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">{lang frameon_column}<\/a>');
  43.                                                         } else {
  44.                                                                 document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">{lang frameon_flat}<\/a>');
  45.                                                         }
  46.                                                 </script>
  47.                                                 </span>
  48.                                                 </li>
  49.                                         <!--{/if}-->
  50.                                         <!--{loop $navs $id $nav}-->
複製代碼
剩下的代码我详见下一楼
应该没有调用语句呀,因为我后来发现不对劲又恢复了

TOP

单独升级数据库不会造成影响,只是在调用时才会容易出错,看看你的header模板的调用语句,删了就行了

TOP

回復 2# bonimon


    升级了数据库以后
    升级代码(出自FlashRoad):
  1. ALTER TABLE  `cdb_posts` ADD  `zy_at` INT NOT NULL ;
  2. ALTER TABLE  `cdb_posts` CHANGE  `zy_at`  `zy_at` VARCHAR( 32 ) NOT NULL;
  3. CREATE TABLE  `zy_at` (
  4. `aid` INT NOT NULL ,
  5. `ater` VARCHAR( 45 ) NOT NULL ,
  6. `title` VARCHAR( 300 ) NOT NULL ,
  7. `date` INT NOT NULL ,
  8. `atman` VARCHAR( 45 ) NOT NULL ,
  9. `readed` SMALLINT NOT NULL ,
  10. `tid` INT NOT NULL ,
  11. `pid` INT NOT NULL ,
  12. `floor` INT NOT NULL
  13. ) ENGINE = MYISAM ;
  14. ALTER TABLE  `cdb_members` ADD  `zy_at` INT NOT NULL ;
  15. ALTER TABLE  `zy_at` ADD PRIMARY KEY (  `aid` );
  16. ALTER TABLE  `zy_at` CHANGE  `ater`  `ater` VARCHAR( 45 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
  17. ALTER TABLE  `zy_at` CHANGE  `title`  `title` VARCHAR( 45 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
  18. ALTER TABLE  `zy_at` CHANGE  `atman`  `atman` VARCHAR( 45 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
  19. ALTER TABLE  `cdb_posts` ADD  `zy_at_man` TEXT NOT NULL ;
  20. ALTER TABLE  `cdb_posts` CHANGE  `zy_at_man`  `zy_at_man` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
複製代碼
然后正准备修改header.htm模板的时候就出现了故障

TOP

是否修改discuz.htm模板后才出现此故障?

TOP

返回列表