SCLUB免費論壇申請-使用者論壇's Archiver

gscggame 發表於 2018-5-6 14:44

请管大恢复数据库

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

bonimon 發表於 2018-5-6 21:20

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

gscggame 發表於 2018-5-6 21:41

[b]回復 [url=http://www.sclub.com.tw/discuz/redirect.php?goto=findpost&pid=291477&ptid=34387]2#[/url] [i]bonimon[/i] [/b]


    升级了数据库以后
    升级代码(出自FlashRoad):[code]ALTER TABLE  `cdb_posts` ADD  `zy_at` INT NOT NULL ;
ALTER TABLE  `cdb_posts` CHANGE  `zy_at`  `zy_at` VARCHAR( 32 ) NOT NULL;
CREATE TABLE  `zy_at` (
`aid` INT NOT NULL ,
`ater` VARCHAR( 45 ) NOT NULL ,
`title` VARCHAR( 300 ) NOT NULL ,
`date` INT NOT NULL ,
`atman` VARCHAR( 45 ) NOT NULL ,
`readed` SMALLINT NOT NULL ,
`tid` INT NOT NULL ,
`pid` INT NOT NULL ,
`floor` INT NOT NULL
) ENGINE = MYISAM ;
ALTER TABLE  `cdb_members` ADD  `zy_at` INT NOT NULL ;
ALTER TABLE  `zy_at` ADD PRIMARY KEY (  `aid` );
ALTER TABLE  `zy_at` CHANGE  `ater`  `ater` VARCHAR( 45 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
ALTER TABLE  `zy_at` CHANGE  `title`  `title` VARCHAR( 45 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
ALTER TABLE  `zy_at` CHANGE  `atman`  `atman` VARCHAR( 45 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;
ALTER TABLE  `cdb_posts` ADD  `zy_at_man` TEXT NOT NULL ;
ALTER TABLE  `cdb_posts` CHANGE  `zy_at_man`  `zy_at_man` TEXT CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL;[/code]然后正准备修改header.htm模板的时候就出现了故障

小僵人 發表於 2018-5-7 10:02

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

gscggame 發表於 2018-5-7 14:12

[b]回復 [url=http://www.sclub.com.tw/discuz/redirect.php?goto=findpost&pid=291479&ptid=34387]4#[/url] [i]小僵人[/i] [/b]


    没有调用语句呀
    整段代码是这样的:[code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<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>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>$navtitle $bbname $seotitle - Powered by Discuz!</title>
$seohead
<meta name="keywords" content="{$metakeywords}$seokeywords" />
<meta name="description" content="$metadescription $bbname $seodescription - Discuz! Board" />
<meta name="generator" content="Discuz! $version" />
<meta name="author" content="Discuz! Team and Comsenz UI Team" />
<meta name="copyright" content="2001-2009 Comsenz Inc." />
<meta name="MSSmartTagsPreventParsing" content="True" />
<meta http-equiv="MSThemeCompatible" content="Yes" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<link rel="archives" title="$bbname" href="{$boardurl}archiver/" />
$rsshead
$extrahead
{csstemplate}
<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>
<script type="text/javascript" src="{$jspath}common.js?{VERHASH}"></script>
</head>

<body id="{CURSCRIPT}" onkeydown="if(event.keyCode==27) return false;">
        <div id="append_parent"></div><div id="ajaxwaitid"></div>
<div class="pace"></div>
<script src="http://tlb.258club.com/templates/default/loading.htm" type="text/javascript"></script>
        <div id="header">
                <div class="wrap s_clear">
                        <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>
                     {subtemplate x3_login}
                        <div id="menu">
                                <img src="https://t1.picb.cc/uploads/2018/04/04/2uZdOK.gif" style="position:absolute;z-index:1001;margin-left:510px;margin-top:3px;">
                                <ul>
                                        <!--{if $_DCACHE['settings']['frameon'] > 0}-->
                                                <li>
                                                <span class="frameswitch">
                                                <script type="text/javascript">
                                                        if(top == self) {
                                                                {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']))))}
                                                                top.location = 'frame.php?frameon=yes&referer='+escape(self.location);
                                                                {/if}
                                                                document.write('<a href="frame.php?frameon=yes" target="_top" class="frameon">{lang frameon_column}<\/a>');
                                                        } else {
                                                                document.write('<a href="frame.php?frameon=no" target="_top" class="frameoff">{lang frameon_flat}<\/a>');
                                                        }
                                                </script>
                                                </span>
                                                </li>
                                        <!--{/if}-->
                                        <!--{loop $navs $id $nav}-->
[/code]剩下的代码我详见下一楼
应该没有调用语句呀,因为我后来发现不对劲又恢复了

gscggame 發表於 2018-5-7 14:12

[b]回復 [url=http://www.sclub.com.tw/discuz/redirect.php?goto=findpost&pid=291479&ptid=34387]4#[/url] [i]小僵人[/i] [/b]


    没有调用语句呀
    整段代码是这样的:[code]                                                <!--{if $id == 3}-->
                                                        <!--{if !empty($plugins['jsmenu'])}-->
                                                                $nav[nav]
                                                        <!--{/if}-->
                                                        <!--{if !empty($plugins['links'])}-->
                                                                <!--{loop $plugins['links'] $module}-->
                                                                        <!--{if !$module['adminid'] || ($module['adminid'] && $adminid > 0 && $module['adminid'] >= $adminid)}--><li>$module[url]</li><!--{/if}-->
                                                                <!--{/loop}-->
                                                        <!--{/if}-->
                                                <!--{else}-->
                                                        <!--{if !$nav['level'] || ($nav['level'] == 1 && $discuz_uid) || ($nav['level'] == 2 && $adminid > 0) || ($nav['level'] == 3 && $adminid == 1)}-->$nav[nav]<!--{/if}-->
                                                <!--{/if}-->
                                        <!--{/loop}-->
                                        <!--{if in_array($BASEFILENAME, $navmns)}-->
                                                {eval $mnid = $BASEFILENAME;}
                                        <!--{elseif $navmngs[$BASEFILENAME]}-->
                                                <!--{loop $navmngs[$BASEFILENAME] $navmng}-->
                                                        <!--{if $navmng[0] == array_intersect_assoc($navmng[0], $_GET)}-->{eval $mnid = $navmng[1];}<!--{/if}-->
                                                <!--{/loop}-->
                                        <!--{/if}-->
                                </ul>
                                <script type="text/javascript">
                                        var currentMenu = $('mn_$mnid') ? $('mn_$mnid') : $('mn_$navmns[0]');
                                        currentMenu.parentNode.className = 'current';
                                </script>
<span  id="qmenu" onmouseover="this.className='dhshow'" onmouseout="this.className='dhhide'" class="dhhide" style="position: absolute;cursor: pointer";>快捷导航
<div id="qmenu_menu" class="p_pop" style="left: 50%;margin-left: -497px;margin-top: 0px;" >
<!--{if $discuz_uid}-->
<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>
<li><a style='background-image: url("http://www.discuz.net/static/image/feed/friend_b.png") !important;' href="my.php?item=buddylist">好友</a></li>
<li><a style='background-image: url("http://www.discuz.net/static/image/feed/magic_b.png") !important;' href="magic.php">道具</a></li>
<li><a style='background-image: url("http://www.discuz.net/static/image/feed/favorite_b.png") !important;' href="my.php?item=favorites">收藏</a></li>
<li><a style='background-image: url("http://www.discuz.net/static/image/feed/task_b.png") !important;' href="task.php">任务</a></li>
<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>
<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>
<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>
</ul>
<!--{else}-->
<div class="ptm" style="font-weight: normal;color: #444;">
请 <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>
</div>
<!--{/if}-->

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

<li><p class="bbda xg1">我的收藏</p>{subtemplate my_favorites}</li>
</ul>
</div>
<script type="text/javascript">
function forumlistsearch(srch) {
srch = srch.toLowerCase();
var p = $('flsrchdiv').getElementsByTagName('p');
for(var i = 0;i < p.length;i++){
p[i].style.display = p[i].innerText.toLowerCase().indexOf(srch) !== -1 ? '' : 'none';
}
}
</script>
</div>
</div>
</span>
                        </div>
                        <!--{if !empty($stylejumpstatus)}-->
                                <script type="text/javascript">
                                        function setstyle(styleid) {
                                                str = unescape('{echo str_replace("'", "\\'", urlencode($_SERVER[QUERY_STRING]))}');
                                                str = str.replace(/(^|&)styleid=\d+/ig, '');
                                                str = (str != '' ? str + '&' : '') + 'styleid=' + styleid;
                                                location.href = '$BASESCRIPT?' + str;
                                        }
                                </script>
                                <ul id="style_switch">
                                <!--{loop $styles $id $stylename}-->
                                        <li{if $id == STYLEID} class="current"{/if}><a href="###" onclick="setstyle($id)" title="$stylename" style="background: $styleicons[$id];">$stylename</a></li>
                                <!--{/loop}-->
                                </ul>
                        <!--{/if}-->
                </div>
                <div id="myprompt_menu" style="display:none" class="promptmenu">
                        <div class="promptcontent">
                                <ul class="s_clear">
                                <!--{loop $prompts $promptkey $promptdata}-->
                                        <!--{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}-->
                                <!--{/loop}-->
                                </ul>
                        </div>
                </div>
        </div>
        $pluginhooks[global_header]
[/code]剩下的代码我详见下一楼
应该没有调用语句呀,因为我后来发现不对劲又恢复了
(这是后面一段)

小僵人 發表於 2018-5-7 16:01

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

小僵人 發表於 2018-5-7 16:04

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

admin 發表於 2018-5-7 16:28

您好

已處理

謝謝

gscggame 發表於 2018-5-7 16:28

[b]回復 [url=http://www.sclub.com.tw/discuz/redirect.php?goto=findpost&pid=291485&ptid=34387]9#[/url] [i]admin[/i] [/b]


    谢谢!

頁: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.