温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:BugTrack51aspx汉化改造版V2.1.7
当前文件:
14RFAMJDWSL814/admin.aspx[2K,2009-6-12 11:30:42],打开代码结构图
14RFAMJDWSL814/admin.aspx[2K,2009-6-12 11:30:42],打开代码结构图1<%@ Page language="C#"%> 2
<!-- 3
Copyright 2002-2005 Corey Trager 4
刘岛 汉化于2006年2月 5
--> 6
<!-- #include file = "inc.aspx" --> 7
8
9
<script language="C#" runat="server"> 10
11
DbUtil dbutil; 12
Security security; 13
14
/////////////////////////////////////////////////////////////////////// 15
void Page_Load(Object sender, EventArgs e) 16
{ 17
18
Util.do_not_cache(Response); 19
dbutil = new DbUtil(); 20
security = new Security(); 21
security.check_security(dbutil, Request, Response, Security.MUST_BE_ADMIN); 22
23
title.InnerText = Util.get_setting("AppTitle","Bug 跟踪系统") + " - " 24
+ "管理"; 25
} 26
27
/////////////////////////////////////////////////////////////////////// 28
void Page_Unload(Object sender, EventArgs e) 29
{ 30
if (dbutil != null) {dbutil.close();} 31
} 32
33
</script> 34
35
<html> 36
<head> 37
<title id="title" runat="server">管理</title> 38
<link rel="StyleSheet" href="btnet.css" type="text/css"> 39
</head> 40
<body> 41
<% security.write_menu(Response, "管理"); %> 42
<div class=align><table border=0><tr><td> 43
<ul> 44
<p> 45
<li class=listitem><a href=users.aspx>用户管理</a> 46
<p> 47
<li class=listitem><a href=projects.aspx>项目管理</a> 48
<p> 49
<li class=listitem><a href=categories.aspx>类别管理</a> 50
<p> 51
<li class=listitem><a href=priorities.aspx>优先级设置</a> 52
<p> 53
<li class=listitem><a href=statuses.aspx>状态设置</a> 54
<p> 55
<li class=listitem><a href=udfs.aspx>自定义属性</a> 56
<span class=smallnote>(请参考Web.config文件中的“ShowUserDefinedBugAttribute”和“UserDefinedBugAttributeName”节点)</span> 57
58
<!-- 59
<p> 60
<li class=listitem><a href=customfields.aspx>自定义字段</a> 61
<span class=smallnote>(增加自定义字段到错误页面)</span> 62
<p> 63
<li class=listitem><a target=_blank href=query.aspx>运行手动查询</a> 64
65
<span style="border: solid red 1px; padding: 2px; margin: 3px; xbackground: yellow; color: red; font-size: 11px;"> 66
该链接指向Query.aspx页面。Query.aspx在公共服务器上是不安全的</span><br> 67
</ul> 68
</td></tr></table> 69
70
<p> 71
<table><tr><td> 72
<div class="cmt" style="padding: 5px; font-size: 10pt;"> 73
其他有关的管理选项,请参照 "Web.config"。 74
<br> 75
<a target="_blank" href="view_web_config.aspx">查看Web.config</a> 76
</div> 77
</td></tr></table> 78
--> 79
<p>服务器信息: 80
<div class="Sql"> 81
<% 82
Response.Write ("<br>物理路径="); 83
Response.Write (HttpContext.Current.Server.MapPath(null)); 84
Response.Write ("<br>计算机名="); 85
Response.Write (HttpContext.Current.Server.MachineName); 86
Response.Write ("<br>脚本超时="); 87
Response.Write (HttpContext.Current.Server.ScriptTimeout/1000); 88
Response.Write ("秒"); 89
%> 90
</div> 91
92
</div> 93
</body> 94
</html>







}
