|
## 將資料表 pw_threads 欄位 titlefont 資料型態改為 char(150) ****注意:先把數據備份****- ALTER TABLE pw_threads MODIFY titlefont CHAR(150);
复制代码
## mawhole.php
#find 找- $titlefont = Char_cv("$title1~$title2~$title3~$title4~$title5~$title6~");
复制代码 #replace 換- $rt=$db->get_one("SELECT fid,titlefont,author FROM pw_threads WHERE tid='$seltid'");
- $titledetail=explode("~",$rt['titlefont']);
- $titlefont = Char_cv("$title1~$title2~$title3~$title4~$title5~$title6~$titledetail[6]~$titledetail[7]~$titledetail[8]~$titledetail[9]~");
复制代码 ## admin/tpccheck.php
#find 找- $db->update("UPDATE pw_threads SET ifcheck='1' WHERE $sql AND tid IN($selid)");
复制代码 #replace 換- $rt = $db->get_one("SELECT uid FROM pw_administrators WHERE username='$admin_name'");
- $verifiuid = $rt['uid'].":".time();
- $rt = $db->get_one("SELECT titlefont FROM pw_threads WHERE tid='$tid'");
- $titledetail=explode("~",$rt['titlefont']);
- $titlefont= Char_cv("$titledetail[0]~$titledetail[1]~$titledetail[2]~$titledetail[3]~$titledetail[4]~$titledetail[5]~$titledetail[6]~$verifiuid~$titledetail[8]~$titledetail[9]~");
- $db->update("UPDATE pw_threads SET titlefont='$titlefont',ifcheck='1' WHERE $sql AND tid IN($selid)");
复制代码 ## read.php
#find 找- require_once(PrintEot('read'));footer();
复制代码 #replace 換- $rt = $db->get_one("SELECT titlefont FROM pw_threads WHERE tid='$tid'");
- $titledetail=explode("~",$rt['titlefont']);
- if($titledetail[7]){
- list($a, $b) = explode(":", $titledetail[7]);
- $rt = $db->get_one("SELECT uid,username FROM pw_administrators WHERE uid='$a'");
- $verifiadmin = $rt['username'];
- $verifiuid = $rt['uid'];
- $verifitime = date('Y-m-d, H:i',$b);
- }
-
- require_once(PrintEot('read'));footer();
复制代码 ## template/wind/read.htm
#find 找- <div class="tipad"><span style="float:right">
- <!--
- EOT;
- if($admincheck || $_G['markable']){print <<<EOT
复制代码 #replace 換- <div class="tipad"><span style="float:right">
- <!--
- EOT;
- if($verifiuid && $verifiadmin && $verifitime && $read[lou]==0){print <<<EOT
- -->
- <span class="gray">管理员:<a href="profile.php?action=show&uid="$verifiuid"">$verifiadmin</a> 在 $verifitime 审核了帖子 </span>
- <!--
- EOT;
- }if($admincheck || $_G['markable']){print <<<EOT
复制代码 |
|