admin.aspx

来自「Bug管理系统」· ASPX 代码 · 共 90 行

ASPX
90
字号
<%@ Page language="C#"%>
<!--
Copyright 2002-2005 Corey Trager
Distributed under the terms of the GNU General Public License
-->
<!-- #include file = "inc.aspx" -->


<script language="C#" runat="server">

DbUtil dbutil;
Security security;

///////////////////////////////////////////////////////////////////////
void Page_Load(Object sender, EventArgs e)
{

	Util.do_not_cache(Response);
	dbutil = new DbUtil();
	security = new Security();
	security.check_security(dbutil, Request, Response, Security.MUST_BE_ADMIN);

	title.InnerText = Util.get_setting("AppTitle","BugTracker.NET") + " - " 
		+ "admin";
}

///////////////////////////////////////////////////////////////////////
void Page_Unload(Object sender, EventArgs e)
{
	if (dbutil != null) {dbutil.close();}
}

</script>

<html>
<head>
<title id="title" runat="server">btnet admin</title>
<link rel="StyleSheet" href="btnet.css" type="text/css">
</head>
<body>
<% security.write_menu(Response, "admin"); %>
<div class=align><table border=0><tr><td>
<ul>
<p>
<li class=listitem><a href=users.aspx>users</a>
<p>
<li class=listitem><a href=projects.aspx>projects</a>
<p>
<li class=listitem><a href=categories.aspx>categories</a>
<p>
<li class=listitem><a href=priorities.aspx>priorities</a>
<p>
<li class=listitem><a href=statuses.aspx>statuses</a>
<p>
<li class=listitem><a href=udfs.aspx>user defined attribute</a>
&nbsp;&nbsp;<span class=smallnote>(see "ShowUserDefinedBugAttribute" and "UserDefinedBugAttributeName" in Web.config)</span>
<p>
<li class=listitem><a href=customfields.aspx>custom fields</a>
&nbsp;&nbsp;<span class=smallnote>(add custom fields to the bug page)</span>
<p>
<li class=listitem><a target=_blank href=query.aspx>run ad-hoc query</a>
&nbsp;&nbsp;
<span style="border: solid red 1px; padding: 2px; margin: 3px; xbackground: yellow; color: red; font-size: 9px;">
This links to query.aspx.&nbsp;&nbsp;Query.aspx is not safe on a public web server.</span><br>
</ul>
</td></tr></table>

<p>
<table><tr><td>
	<div class="cmt" style="padding: 5px; font-size: 10pt;">
	There are other admin options in the file "Web.config".
	<br>
	<a target="_blank" href="view_web_config.aspx">View Web.config</a>
	</div>
</td></tr></table>

<p>Server Info:
<% 
Response.Write ("<br>Path=");
Response.Write (HttpContext.Current.Server.MapPath(null));
Response.Write ("<br>MachineName=");
Response.Write (HttpContext.Current.Server.MachineName);
Response.Write ("<br>ScriptTimeout=");
Response.Write (HttpContext.Current.Server.ScriptTimeout);

%>

</div>
</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?