| 119 |
ghuddy |
1 |
<%@LANGUAGE="VBSCRIPT"%>
|
|
|
2 |
<%
|
|
|
3 |
Option explicit
|
|
|
4 |
Response.Expires = 0 ' always load the page, dont store
|
|
|
5 |
%>
|
|
|
6 |
<%
|
|
|
7 |
'=====================================================
|
|
|
8 |
' System Unlock Package
|
|
|
9 |
'=====================================================
|
|
|
10 |
%>
|
|
|
11 |
<!--#include file="common/conf.asp"-->
|
|
|
12 |
<!--#include file="common/globals.asp"-->
|
|
|
13 |
<!--#include file="common/formating.asp"-->
|
|
|
14 |
<!--#include file="common/qstr.asp"-->
|
|
|
15 |
<!--#include file="common/common_subs.asp"-->
|
|
|
16 |
<!--#include file="common/common_dbedit.asp"-->
|
|
|
17 |
<%
|
|
|
18 |
'------------ ACCESS CONTROL ------------------
|
|
|
19 |
%>
|
|
|
20 |
<!--#include file="_access_control_login.asp"-->
|
|
|
21 |
<!--#include file="_access_control_general.asp"-->
|
|
|
22 |
<!--#include file="_access_control_project.asp"-->
|
|
|
23 |
<%
|
|
|
24 |
'------------ Variable Definition -------------
|
|
|
25 |
Dim parPv_id
|
|
|
26 |
'------------ Constants Declaration -----------
|
|
|
27 |
'------------ Variable Init -------------------
|
|
|
28 |
parPv_id = QStrPar("pv_id")
|
|
|
29 |
parRtag_id = QStrPar("rtag_id")
|
|
|
30 |
'----------------------------------------------
|
|
|
31 |
%>
|
|
|
32 |
<%
|
|
|
33 |
Sub UnlockPackage ()
|
|
|
34 |
Dim objWSH
|
|
|
35 |
Set objWSH = Server.CreateObject("WScript.Shell")
|
|
|
36 |
|
|
|
37 |
OraDatabase.Parameters.Add "PV_ID", Request("pv_id"), ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
38 |
OraDatabase.Parameters.Add "USER_ID", objAccessControl.UserId, ORAPARM_INPUT, ORATYPE_NUMBER
|
|
|
39 |
|
|
|
40 |
|
|
|
41 |
OraSession.BeginTrans
|
|
|
42 |
|
|
|
43 |
OraDatabase.ExecuteSQL _
|
|
|
44 |
"BEGIN Unlock_Package( :PV_ID, :USER_ID ); END;"
|
|
|
45 |
|
|
|
46 |
OraSession.CommitTrans
|
|
|
47 |
|
|
|
48 |
|
|
|
49 |
OraDatabase.Parameters.Remove "PV_ID"
|
|
|
50 |
OraDatabase.Parameters.Remove "USER_ID"
|
|
|
51 |
|
|
|
52 |
objWSH.Run "cmd.exe /c cscript.exe //B //NoLogo "& rootPath & SCRIPTS_FOLDER &"\Admin_Tools.wsf //job:onMakeUnofficial "&_
|
|
|
53 |
"/pv_id:"& Request("pv_id") , _
|
|
|
54 |
0, FALSE
|
|
|
55 |
End Sub
|
|
|
56 |
%>
|
|
|
57 |
<%
|
|
|
58 |
'Process submition
|
|
|
59 |
'---------------------------------------
|
|
|
60 |
' THIS IS FOR SYSTEM ADMIN ONLY
|
|
|
61 |
'---------------------------------------
|
|
|
62 |
If objAccessControl.IsDataActive("PROJECTS", DB_PROJ_ID, "UnlockPackage") OR objAccessControl.IsDataActive("PROJECTS", DB_PROJ_ID, "UnlockPatch") Then
|
|
|
63 |
Call UnlockPackage ()
|
|
|
64 |
Response.Redirect ("dependencies.asp?rtag_id="& parRtag_id &"&pv_id="& parPv_id)
|
|
|
65 |
End If
|
|
|
66 |
%>
|
|
|
67 |
|
|
|
68 |
<!-- DESTRUCTOR ------->
|
|
|
69 |
<!--#include file="common/destructor.asp"-->
|