Backup/Discuz.Web/admin/global/global_ftpsetting(2).aspx

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Register TagPrefix="cc1" Namespace="Discuz.Control" Assembly="Discuz.Control" %>
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="global_ftpsetting.aspx.cs" Inherits="Discuz.Web.Admin.ftpsetting" %>
<!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 runat="server">
<title>远程附件设置</title>
<link href="../styles/tab.css" type="text/css" rel="stylesheet" />
<link href="../styles/colorpicker.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../js/common.js"></script>
<link href="../styles/dntmanager.css" type="text/css" rel="stylesheet" />
<link href="../styles/modelpopup.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../js/AjaxHelper.js"></script>
<script type="text/javascript" src="../js/modalpopup.js"></script>
<script type="text/javascript">
	function ShowFtpLayout(ischecked)
	{
		document.getElementById("FtpLayout").style.display = ischecked ? "block" : "none";
	}
	function validate(thisform)
	{
		document.getElementById("success").style.display = "block";
		var remoteurl = document.getElementById("Remoteurl").value;
		var uploadpath = document.getElementById("Uploadpath").value;
		if(uploadpath.lastIndexOf("/") == uploadpath.length - 1)
		{
			resetpage();
			alert("附件保存路径非法,不能以“/”结尾");
			return false;
		}
		if(remoteurl.substring(0,7).toLowerCase() != "http://" ||
		   remoteurl.lastIndexOf("/") == remoteurl.length - 1)
		{
			resetpage();
			alert("远程访问 URL 非法!不是以“http://”开头或是以“/”结尾");
			return false;
		}
//            if(remoteurl.indexOf(uploadpath) == -1)
//            {
//                resetpage();
//                alert("远程访问 URL 未以“附件保存路径”结尾");
//                return false;
//            }
		if(document.getElementById("Allowupload_0").checked)
		{
			var result = TestFtp();
			if(result != "ok")
			{
				resetpage();
				ShowFtpLayout(false);
				document.getElementById("Allowupload_1").checked = true;
				alert("无法链接FTP,不能保存设置!");
				return false;
			}
		}
		return true;
	}
	function resetpage()
	{
		document.getElementById("success").style.display = "none";
		document.getElementById("SaveFtpInfo").disabled = false;
后面还有 154 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。