Subversion Repositories DevTools

Rev

Rev 3611 | Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3610 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|                                                   |
5
'|                ADMIN Page                         |
6
'|               Build Service                       |
7
'|                                                   |
8
'=====================================================
9
%>
10
<%
11
Option explicit
12
' Good idea to set when using redirect
13
Response.Expires = 0   ' always load the page, dont store
14
%>
15
<!--#include file="common/conf.asp"-->
16
<!--#include file="common/globals.asp"-->
17
<!--#include file="common/formating.asp"-->
18
<!--#include file="common/qstr.asp"-->
19
<!--#include file="common/common_subs.asp"-->
20
<!--#include file="sec/Crypt.asp"-->
21
<!--#include file="common/_form_window_common.asp"-->
22
<!--#include file="_action_buttons.asp"-->
23
 
24
<!--#include file="class/classActionButtonControl.asp"-->
25
 
26
<%
27
'------------ ACCESS CONTROL ------------------
28
%>
29
<!--#include file="_access_control_general.asp"-->
30
<%
31
'------------ Variable Definition -------------
32
Dim objBtnControl
33
Dim Query_String
34
Dim rsTemp
35
Dim scheduled_id
36
'------------ Constants Declaration -----------
37
'------------ Variable Init -------------------
38
Set objBtnControl = New ActionButtonControl
39
'----------------------------------------------
40
%>
41
 
42
<html>
43
<head>
44
 
45
<title>Admin Test Page</title>
46
 
47
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
48
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
49
<link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
50
<link rel="stylesheet" href="images/navigation.css" type="text/css">
51
<script language="JavaScript" src="images/common.js"></script>
52
<!-- DROPDOWN MENUS -->
53
<!--#include file="_menu_def.asp"-->
54
<script language="JavaScript1.2" src="images/popup_menu.js"></script>
55
</head>
56
 
57
<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" >
58
<!-- MENU LAYERS -------------------------------------->
59
<div id="popmenu" class="menuskin" onMouseover="clearhidemenu();highlightmenu(event,'on')" onMouseout="highlightmenu(event,'off');dynamichide(event)">
60
</div>
61
<!-- TIPS LAYERS -------------------------------------->
62
<div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
63
<!-- HEADER -->
64
<!--#include file="_header.asp"-->
65
 
66
   <%
67
   '-- FROM START ---------------------------------------------------------------------------------------------------------
68
   %>
69
   <tr>
70
      <td background="images/bg_login.gif">
71
         <table width="100%"  border="0" cellspacing="0" cellpadding="0">
72
            <tr>
73
               <td><%=ProgressBar%></td>
74
               <td align="right">&nbsp;          </td>
75
            </tr>
76
         </table>
77
      </td>
78
   </tr>
79
   <tr>
80
      <td>
81
         <table width="50%"  border="0" cellpadding="0" cellspacing="2" bgcolor="#FFCC00">
82
            <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
83
            <tr>
84
               <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Test</td>
85
               <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Result</td>
86
            </tr>
87
 
88
            <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
89
            <tr>
90
               <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Package Archive Access - Map File System</td>
91
            <%
92
 
93
            Dim objWSH,rv,result
94
            Set objWSH = Server.CreateObject("WScript.Shell")
95
            rv = objWSH.Run ("cmd.exe /c cscript.exe //B //NoLogo " & rootPath & SCRIPTS_FOLDER & "\Admin_Tools.wsf //job:onTestMapArchive", 0, TRUE)
96
            Set objWSH = Nothing
97
            If rv = 0 Then
98
                result = "OK"
99
            Else
100
                result = "Error ("&rv&")"
101
            End IF
102
 
103
            %>
104
               <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col"><%=result%></td>
105
            </tr>
106
 
107
            <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
108
 
109
            <tr>
110
               <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col">Package Archive Access - Remote cmd execution</td>
111
            <%
112
 
113
            Set objWSH = Server.CreateObject("WScript.Shell")
114
            rv = objWSH.Run ("cmd.exe /c cscript.exe //B //NoLogo " & rootPath & SCRIPTS_FOLDER & "\Admin_Tools.wsf //job:onTestArchiveAccess", 0, TRUE)
115
            Set objWSH = Nothing
116
            If rv = 0 Then
117
                result = "OK"
118
            Else
119
                result = "Error ("&rv&")"
120
            End IF
121
 
122
            %>
123
               <td valign="top" nowrap background="images/bg_table_col.gif" class="body_col"><%=result%></td>
124
            </tr>
125
            <!-- +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
126
 
127
            <tr>
128
               <td valign="top" nowrap class="body_col">End of Tests</td>
129
               <td><a class="form_btn" href="admin_build_test_page.asp?rtag_id" title="Refresh Page">Refresh</a></td>
130
            </tr>
131
 
132
         </table>
133
      </td>
134
  </tr>
135
  <input type="hidden" name="action" value="true">
136
 
137
</body>
138
</html>
139
<!-- FOOTER -->
140
<!--#include file="_footer.asp"-->
141
<%
142
Call Destroy_All_Objects
143
%>