WDCP后台手动升级系统代码
[i=s] 本帖最后由 kingslink 于 2015-5-9 14:40 编辑 [/i]FTP连接到服务器,进入:/www/wdlinux/wdcp/templates/admin/目录,下载index.htm文件,在适合的地方加入[code]<input type="button" value="检查更新" onclick="checkup()"/>[/code]
[size=12px]然后取掉最后面的:[/size]
[code]<script type="text/javascript" src="<?=$PHP_SELF;?>?ver=c"></script>[/code]
增加:
[code] <script type="text/javascript">
function checkup()
{
loadJs("up","<?=$PHP_SELF;?>?ver=c");
}
function loadJs(sid,jsurl,callback){
var nodeHead = document.getElementsByTagName('head')[0];
var nodeScript = null;
if(document.getElementById(sid) == null){
nodeScript = document.createElement('script');
nodeScript.setAttribute('type', 'text/javascript');
nodeScript.setAttribute('src', jsurl);
nodeScript.setAttribute('id',sid);
nodeHead.appendChild(nodeScript);
}
}
</script>[/code]
页:
[1]