VideoHome.Web/admin/Film/Control/Footer.ascx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using myfilm.Vod;
using myfilm.Config;
namespace myfilm.Web.Control
{
public partial class Footer : System.Web.UI.UserControl
{
public string flag = "0";
protected internal GeneralConfigInfo config;
protected void Page_Load(object sender, EventArgs e)
{
config = GeneralConfigs.GetConfig();
if (!IsPostBack)
{
if (ExistsUrl("guestbook.aspx"))
{
flag = "1";
}
if (ExistsUrl("newly.aspx"))
{
flag = "1";
}
if (ExistsUrl("Course/CourseList.aspx"))
{
flag = "1";
}
}
}
private string _css;
public string Copyright
{
get { return _css; }
set { _css = value; }
}
/// <summary>
/// 判断是否存在URL
/// </summary>
/// <returns></returns>
public static bool ExistsUrl(string sUrl)
{
return HttpContext.Current.Request.Url.AbsoluteUri.Contains(sUrl);
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
