西瓜分类信息域名批量替换 代码版
问题:老站使用西瓜分类信息,由于更换备案域名导致图片不显示解决方法:定制PHP程序进行域名批量转换
**** 本内容需购买可见 ****)</a><script>setTimeout(\"window.location.href ='$url_forward';\", $time);</script>";
}
show_header();
print<<<END
<table>
<tr><td>$message</td></tr>
</table>
END;
show_footer();
exit();
}
//页面头部
function show_header() {
global $config;
$nowarr = array($_GET['op'] => ' class="current"');
print<<<END
<!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>
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<title> Discuz!X3.4批量替换工具(西瓜分类信息) </title>
<style type="text/css">
* {font-size:12px; font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 1.5em; word-break: break-all; }
body { text-align:center; margin: 0; padding: 0; background: #F5FBFF; }
.bodydiv { margin: 40px auto 0; width:720px; text-align:left; border: solid #86B9D6; border-width: 5px 1px 1px; background: #FFF; }
h1 { font-size: 18px; margin: 1px 0 0; line-height: 50px; height: 50px; background: #E8F7FC; color: #5086A5; padding-left: 10px; }
#menu {width: 100%; margin: 10px auto; text-align: center; }
#menu td { height: 30px; line-height: 30px; color: #999; border-bottom: 3px solid #EEE; }
.current { font-weight: bold; color: #090 !important; border-bottom-color: #F90 !important; }
input { border: 1px solid #B2C9D3; padding: 5px; background: #F5FCFF; }
#footer { font-size: 10px; line-height: 40px; background: #E8F7FC; text-align: center; height: 38px; overflow: hidden; color: #5086A5; margin-top: 20px; }
</style>
</head>
<body>
<div class="bodydiv">
<h1>批量替换工具</h1>
<div style="width:90%;margin:0 auto;">
<table id="menu">
<tr>
<td{$nowarr}>开始</td>
<td{$nowarr}>检查</td>
<td{$nowarr}>替换</td>
<td{$nowarr}>替换完成</td>
</tr>
</table>
<br>
END;
}
//页面顶部
function show_footer() {
print<<<END
</div>
<div id="footer">© 无限星辰工作室 Inc. 2001-2021 http://www.xmspace.net</div>
</div>
<br>
</body>
</html>
END;
}
?>
页:
[1]