-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathminiorange_saml_idp_export_config.inc
186 lines (184 loc) · 21.8 KB
/
miniorange_saml_idp_export_config.inc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?php
function miniorange_saml_idp_export_config($form, &$form_state)
{
drupal_add_css(drupal_get_path("\x6d\157\x64\x75\x6c\x65", "\155\x69\x6e\151\157\x72\141\156\x67\x65\x5f\163\x61\x6d\x6c\x5f\x69\x64\x70") . "\x2f\x63\163\163\57\x62\x6f\157\164\x73\164\x72\x61\160\x2e\155\151\x6e\56\x63\x73\163", array("\147\162\157\x75\x70" => CSS_DEFAULT, "\145\166\x65\162\x79\137\x70\x61\147\145" => FALSE));
drupal_add_css(drupal_get_path("\155\x6f\144\x75\154\145", "\155\x69\156\151\157\162\x61\x6e\x67\145\x5f\163\x61\x6d\x6c\137\151\144\160") . "\x2f\x63\x73\x73\57\163\x74\171\x6c\145\137\163\145\164\164\x69\x6e\147\x73\56\143\x73\x73", array("\x67\162\x6f\165\160" => CSS_DEFAULT, "\145\166\145\x72\x79\x5f\x70\x61\147\145" => FALSE));
global $base_url;
global $Ij;
if (!(variable_get("\155\x69\x6e\x69\x6f\162\141\x6e\147\145\137\163\x61\x6d\x6c\137\x6c\151\x63\145\x6e\163\145\x5f\x6b\x65\x79", NULL) == NULL && variable_get("\155\151\x6e\151\x6f\162\141\x6e\147\145\x5f\163\141\155\154\137\x63\x75\163\164\x6f\x6d\145\x72\137\x61\x64\x6d\x69\156\137\x65\x6d\141\x69\154", NULL) != NULL)) {
goto rO;
}
return $form;
rO:
$form["\x68\145\141\x64\x65\162\137\164\x6f\x70\x5f\163\x74\x79\x6c\x65\x5f\61"] = array("\43\x6d\x61\x72\153\x75\x70" => "\x3c\x64\x69\166\40\143\x6c\x61\x73\163\75\x22\x6d\x6f\137\163\x61\x6d\x6c\137\164\141\x62\x6c\145\137\154\x61\171\x6f\165\164\x5f\61\42\x3e");
$form["\x68\145\x61\x64\145\x72\x5f\x74\157\160\x5f\x73\x74\171\x6c\x65\x5f\164\x6f\x70\163"] = array("\x23\x6d\x61\x72\153\x75\160" => "\x3c\144\151\166\x20\x63\154\141\163\x73\75\42\x6d\157\137\x73\141\x6d\154\137\164\x61\x62\154\x65\137\154\141\171\x6f\165\x74\x20\155\157\x5f\163\x61\155\154\137\x63\157\x6e\x74\x61\151\x6e\145\162\x22\76");
$sm = IDPUtilities::isCustomer_registered($form, $form_state);
$form["\x6d\141\162\x6b\x75\160\137\x74\157\160\137\150\145\x61\x64"] = array("\x23\x6d\x61\x72\x6b\x75\160" => "\x3c\142\76\74\x73\160\141\x6e\40\163\164\x79\x6c\x65\x3d\42\146\x6f\x6e\x74\55\x73\x69\x7a\145\x3a\40\x31\x37\160\170\73\42\x3e\111\x4d\120\x4f\x52\124\x2f\105\x58\120\117\122\124\40\x43\117\x4e\x46\x49\x47\125\122\101\124\111\117\116\x53\x3c\x2f\x73\160\141\x6e\x3e\x3c\x2f\x62\76\x3c\x62\162\x3e\x3c\x62\162\76\x3c\x68\x72\x3e\74\142\162\x2f\76");
$form["\x6d\141\162\x6b\x75\x70\x5f\61"] = array("\x23\x6d\141\162\153\x75\160" => "\74\144\151\x76\40\143\x6c\x61\163\163\x3d\x22\x6d\157\137\x73\141\x6d\154\137\150\x69\x67\150\x6c\151\147\150\164\137\142\141\x63\x6b\x67\x72\x6f\165\x6e\x64\x5f\x6e\157\164\145\x22\40\163\x74\171\154\x65\x3d\42\x77\151\144\164\150\x3a\40\71\67\x25\42\x3e\74\x70\76\74\x62\76\x4e\117\124\105\x3a\x20\x3c\x2f\x62\76\124\x68\x69\x73\x20\164\141\142\x20\x77\151\154\x6c\40\x68\145\154\160\x20\x79\x6f\165\40\164\157\40\x74\162\141\156\163\146\x65\162\x20\171\157\x75\162\x20\x6d\157\144\165\x6c\x65\40\143\157\x6e\146\x69\147\x75\x72\x61\164\151\157\156\163\40\167\x68\145\x6e\x20\x79\x6f\165\x20\x63\150\x61\156\147\145\x20\171\x6f\165\x72\x20\x44\162\165\x70\x61\154\40\151\x6e\163\x74\x61\156\143\x65\56\40\xd\12\x20\x20\40\40\x20\x20\40\40\x20\40\40\40\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\40\74\142\162\x3e\105\170\141\x6d\160\154\x65\x3a\40\x57\x68\145\x6e\40\x79\x6f\165\x20\163\167\x69\164\x63\x68\x20\146\162\x6f\x6d\x20\164\145\163\164\x20\x65\156\x76\151\x72\157\x6e\155\145\x6e\164\40\164\x6f\40\160\x72\x6f\144\x75\x63\164\x69\x6f\x6e\56\x3c\142\162\x3e\x46\x6f\x6c\154\x6f\x77\x20\x74\x68\145\163\145\x20\x33\40\163\x69\155\x70\154\145\40\x73\x74\145\x70\x73\x20\164\x6f\40\x64\x6f\40\x74\x68\x61\x74\x3a\x3c\x62\x72\76\15\xa\40\x20\40\x20\40\x20\40\40\40\40\40\x20\40\40\x20\x20\x20\40\40\x20\x20\40\x20\40\74\142\162\76\x31\x2e\x20\x44\157\x77\x6e\x6c\x6f\x61\x64\x20\155\x6f\x64\x75\x6c\x65\40\143\x6f\156\x66\x69\147\x75\162\x61\x74\x69\157\x6e\x20\146\x69\x6c\x65\x20\142\171\x20\x63\x6c\151\x63\153\x69\x6e\x67\x20\x6f\x6e\40\x74\x68\x65\40\104\x6f\167\156\x6c\x6f\141\144\40\x6d\157\144\165\x6c\145\x20\x43\x6f\x6e\x66\x69\147\x75\162\141\x74\x69\157\156\x20\x62\x75\x74\164\x6f\x6e\x20\x67\x69\x76\145\156\x20\142\x65\x6c\157\x77\x2e\xd\xa\40\x20\x20\40\40\x20\40\40\40\x20\40\x20\40\x20\x20\40\40\40\x20\40\40\x20\x20\40\x3c\142\162\76\x32\56\x20\111\x6e\163\x74\141\x6c\154\40\164\x68\145\x20\x6d\x6f\144\x75\154\145\40\x6f\x6e\40\156\145\167\40\x44\162\x75\160\x61\154\40\x69\156\x73\x74\x61\156\143\x65\56\74\x62\x72\x3e\63\x2e\40\x55\160\x6c\x6f\x61\144\40\x74\x68\x65\40\x63\157\156\146\x69\147\165\162\141\x74\x69\157\156\x20\x66\x69\x6c\145\40\x69\x6e\x20\111\x6d\x70\x6f\162\164\40\x4d\157\x64\x75\x6c\145\x20\103\157\x6e\x66\151\x67\x75\x72\141\x74\x69\157\x6e\163\40\x73\145\143\x74\x69\157\156\x2e\74\x62\x72\76\15\xa\x20\40\x20\x20\40\x20\x20\40\x20\x20\x20\40\x20\40\x20\x20\x20\x20\x20\x20\x20\x20\x20\40\x3c\x62\x72\x3e\74\x62\x3e\x43\150\x6f\x6f\163\x65\x20\x22\152\163\157\156\42\x20\x45\170\x74\145\156\145\x64\x20\155\x6f\144\x75\154\x65\40\x63\157\x6e\146\151\147\165\x72\141\164\x69\x6f\x6e\40\146\x69\x6c\x65\40\141\156\144\40\x75\160\154\157\141\x64\x20\142\x79\x20\x63\154\151\x63\153\151\156\147\x20\157\x6e\40\x74\150\x65\x20\x62\165\164\x74\157\x6e\x20\x67\x69\166\145\156\40\x62\145\x6c\157\x77\x2e\x3c\x2f\142\x3e\74\x62\162\x3e\xd\12\x20\x20\x20\x20\40\40\x20\x20\x20\40\40\x20\x20\x20\40\x20\x20\x20\x20\x20\x20\40\40\x20\x41\x6e\x64\x20\x6a\x75\x73\164\x20\154\151\153\x65\x20\x74\150\x61\x74\54\x20\x61\154\x6c\40\171\x6f\x75\x72\40\155\157\144\165\154\145\x20\x63\x6f\156\146\151\147\165\162\x61\x74\x69\x6f\156\x73\40\x77\151\x6c\x6c\x20\142\145\40\x74\162\x61\x6e\x73\x66\145\x72\162\x65\144\41\40\131\x6f\x75\40\143\x61\x6e\40\141\x6c\x73\157\x20\163\x65\156\x64\x20\x75\163\40\164\150\151\163\40\x66\x69\x6c\145\x20\x61\154\x6f\x6e\x67\40\x77\x69\x74\150\40\x79\x6f\165\162\x20\163\165\160\x70\157\162\x74\x20\161\165\145\162\171\x2e\74\x2f\x70\76\x3c\57\144\x69\166\76");
$form["\155\141\162\153\165\x70\137\144\x69\x76\137\151\155\x70\61"] = array("\x23\155\x61\x72\153\x75\x70" => "\x3c\x64\x69\x76\40\151\x64\75\x22\155\157\x73\141\x6d\154\x5f\166\x74\x5f\151\155\160\x6f\162\x74\x22\76");
$form["\x6d\x69\156\x69\157\162\141\156\x67\x65\137\151\x64\160\x5f\147\x75\x69\x64\145\137\154\x69\156\153\x5f\x63\157\156\x74\141\151\x6e\x65\162"] = array("\43\x6d\141\x72\153\165\160" => "\74\142\x72\76\x3c\x62\162\76\x3c\x64\x69\166\40\143\x6c\x61\163\x73\x3d\x22\x6d\x6f\137\x73\x61\x6d\154\137\x74\141\144\x62\x6c\x65\137\154\141\x79\157\165\164\x20\x6d\157\137\163\x61\155\x6c\137\x63\x6f\x6e\x74\x61\x69\156\x65\x72\137\x33\42\40\x73\164\x79\x6c\x65\x3d\42\164\145\x78\x74\x2d\141\154\151\x67\x6e\72\40\x63\x65\x6e\164\x65\162\x3b\146\154\157\x61\164\x3a\40\x6c\x65\146\x74\73\155\x61\x72\147\x69\156\55\x72\151\x67\150\164\72\x20\62\x30\x70\x78\x3b\x62\157\x72\144\x65\162\x3a\x20\x73\157\154\151\x64\x20\x31\x70\170\40\43\x30\x30\x30\x30\60\x30\x32\64\73\160\141\x64\144\x69\156\147\55\142\157\x74\x74\x6f\155\72\40\x35\x30\x70\170\x3b\x22\76");
$form["\155\157\137\x6d\141\x72\153\165\160\137\x64\151\166"] = array("\43\x6d\141\162\x6b\165\x70" => "\74\144\x69\166\x20\x69\144\x3d\42\155\157\163\x61\x6d\x6c\137\166\x74\137\151\155\x70\x65\170\x70\42\x3e");
$form["\155\x6f\x5f\x6d\141\162\153\x75\160\137\164\x6f\x70"] = array("\43\155\x61\162\x6b\x75\160" => "\74\142\x3e\x3c\163\x70\x61\156\40\x73\164\171\x6c\145\75\42\146\157\x6e\x74\x2d\163\151\x7a\145\x3a\x20\61\x37\x70\170\73\42\x3e\105\x58\x50\x4f\122\124\40\x43\117\x4e\106\x49\x47\x55\122\101\124\111\x4f\x4e\x3c\x2f\163\160\x61\156\76\x3c\x2f\142\x3e\x3c\x62\162\76\74\142\x72\x3e\74\x68\x72\76\x3c\x62\x72\57\x3e\x3c\142\162\76");
if (miniorange_saml_is_sp_configured()) {
goto QA;
}
$form["\x6d\x69\x6e\x69\x6f\162\x61\x6e\147\145\137\x73\141\x6d\x6c\137\x69\x64\160\137\145\x78\160\157\x72\164"] = array("\x23\x6d\141\162\x6b\x75\160" => "\74\144\x69\x76\x20\163\x74\x79\154\145\x3d\x22\x64\151\x73\160\154\x61\171\x3a\142\154\x6f\143\x6b\73\x20\155\x61\x72\147\151\x6e\x2d\164\x6f\160\x3a\61\60\x70\x78\73\40\143\157\154\157\162\x3a\162\145\144\73\x20\x62\x61\x63\x6b\x67\x72\x6f\x75\156\144\55\x63\157\154\157\162\x3a\x72\x67\142\x61\50\x32\x35\x31\x2c\x20\62\63\x32\54\40\60\x2c\40\x30\x2e\x31\x35\51\x3b\x20\x66\157\156\164\x2d\163\x69\x7a\145\x3a\40\x6d\x65\x64\x69\x75\x6d\x3b\x70\x61\x64\x64\151\156\x67\72\65\160\x78\73\x62\x6f\x72\x64\x65\162\x3a\x73\157\154\x69\144\x20\x31\160\170\x20\x72\147\x62\x61\50\x32\65\x35\x2c\40\x30\54\40\x39\x2c\x20\60\56\63\66\51\x3b\42\x3e\15\xa\11\40\x20\x20\40\40\40\x20\x20\40\40\x20\40\40\40\x20\x20\40\x20\40\x20\40\x20\40\40\40\x20\x20\40\x50\x6c\145\x61\x73\145\40\74\x61\x20\x68\162\145\146\x3d\42" . $base_url . "\57\141\144\155\x69\156\x2f\x63\157\x6e\x66\x69\x67\57\160\x65\x6f\x70\154\x65\x2f\155\x69\x6e\151\x6f\162\x61\x6e\x67\x65\x5f\163\141\155\154\137\151\144\160\57\x69\x64\x70\x5f\x73\x65\x74\165\160\42\76\x63\157\156\146\151\147\165\162\145\40\164\150\x65\40\x6d\157\x64\x75\154\145\x3c\57\x61\x3e\40\x66\151\162\x73\164\40\x74\157\x20\145\x78\160\157\x72\164\40\164\x68\145\40\143\157\x6e\x66\x69\x67\x75\162\141\164\x69\157\156\x73\x2e\15\xa\x20\40\x20\x20\x20\40\x20\40\x20\40\40\40\40\x20\x20\x20\40\40\40\40\x20\x20\40\40\x20\40\x3c\x2f\144\x69\166\x3e");
goto WG;
QA:
$form["\155\x69\x6e\151\157\162\x61\x6e\x67\x65\x5f\x73\x61\x6d\x6c\x5f\151\x64\160\x5f\145\x78\160\x6f\x72\164"] = array("\43\x74\x79\160\x65" => "\163\x75\x62\x6d\x69\164", "\43\166\x61\154\165\x65" => t("\x44\157\167\156\154\157\x61\144\40\x4d\157\x64\x75\x6c\x65\x20\x43\157\156\x66\151\147\x75\x72\x61\x74\x69\157\x6e"), "\x23\x70\x72\145\x66\x69\x78" => "\74\164\144\76", "\43\163\x75\x66\x66\x69\170" => "\x3c\57\164\x64\76", "\43\163\x75\x62\155\151\164" => array("\x6d\x69\156\x69\x6f\x72\141\156\x67\x65\137\151\x6d\160\157\162\164\137\145\x78\160\157\162\164"), "\x23\141\x74\x74\x72\151\x62\165\x74\145\x73" => array("\x69\144" => "\155\x6f\163\x61\155\154\x5f\x76\x74\137\x65\170\160\157\x72\164", "\163\x74\171\x6c\145" => "\x62\157\x72\x64\145\162\55\162\x61\x64\151\165\163\72\x34\x70\x78\73\x77\151\144\x74\x68\72\x37\67\45\73\x62\141\143\x6b\147\x72\x6f\x75\x6e\x64\x3a\40\x23\63\x33\x37\x61\x62\x37\73\143\x6f\x6c\x6f\162\72\40\43\x66\146\x66\146\146\146\73\x74\x65\x78\164\55\x73\150\141\144\157\167\x3a\40\60\40\x2d\61\160\x78\40\x31\160\170\40\43\x33\63\67\141\x62\x37\x2c\x20\x31\x70\x78\x20\60\40\61\x70\170\x20\43\63\63\67\141\142\67\x2c\40\x30\40\x31\160\170\x20\61\160\170\x20\43\x33\63\x37\141\142\67\54\40\55\x31\x70\170\x20\x30\x20\61\x70\x78\x20\x23\63\x33\x37\141\142\67\73\142\157\x78\55\163\x68\141\x64\x6f\x77\x3a\40\60\40\x31\x70\170\x20\60\40\43\x33\x33\67\141\x62\67\x3b\142\x6f\x72\x64\145\x72\x2d\143\157\x6c\157\x72\72\40\43\x33\x33\67\x61\x62\67\40\43\x33\63\x37\x61\142\x37\40\43\x33\x33\67\141\142\x37\x3b"));
WG:
$form["\155\x6f\x5f\x6d\141\x72\153\x75\160\137\164\145\x73\x74\x5f\144\151\166"] = array("\43\155\x61\x72\153\x75\160" => "\74\57\144\x69\x76\x3e\74\x2f\x64\x69\x76\76");
$form["\155\151\156\x69\x6f\x72\x61\x6e\x67\145\137\151\x64\160\137\x67\x75\151\x64\145\x5f\154\151\156\153\x5f\x63\157\x6e\164"] = array("\x23\x6d\x61\162\x6b\x75\160" => "\74\x64\x69\166\x20\x63\x6c\141\163\163\75\x22\x6d\157\137\x73\x61\155\154\x5f\164\141\144\x62\154\x65\137\x6c\x61\x79\x6f\165\164\40\x6d\157\137\163\x61\x6d\x6c\137\x63\x6f\156\164\141\x69\156\x65\x72\x5f\63\42\40\x73\164\x79\154\145\x3d\x22\146\x6c\x6f\141\x74\x3a\x20\154\145\146\x74\x3b\x74\145\170\164\55\x61\x6c\x69\x67\156\72\143\x65\156\164\145\x72\x3b\x70\x61\144\144\x69\x6e\147\55\x62\157\x74\x74\157\155\72\x20\62\x30\x70\170\73\x62\157\x72\144\145\162\72\x20\163\x6f\x6c\x69\x64\x20\x31\x70\170\40\x23\60\x30\x30\60\x30\x30\x32\x34\x3b\73\42\76");
$form["\155\x6f\137\x6d\x61\x72\x6b\165\160\x5f\151\x6d\x70\x6f\x72\x74"] = array("\x23\x6d\141\x72\153\165\x70" => "\x3c\142\x3e\x3c\163\160\x61\x6e\40\x73\x74\171\154\x65\x3d\42\146\x6f\x6e\x74\55\x73\151\x7a\x65\x3a\x20\x31\67\x70\x78\x3b\x22\x3e\111\x4d\120\x4f\x52\x54\x20\103\117\x4e\x46\x49\107\x55\x52\101\x54\111\117\x4e\40\74\x2f\163\x70\141\x6e\76\74\x2f\x62\x3e\x3c\142\162\x3e\74\142\162\x3e\x3c\x68\162\x3e\74\x62\x72\x3e");
$form["\x6d\157\x5f\151\x6d\x70\x6f\162\x74\137\x43\x6f\x6e\146\151\147\x5f\146\x69\x6c\145"] = array("\x23\x74\171\160\145" => "\x66\151\154\145", "\x23\x64\x69\163\141\142\x6c\145\x64" => $sm, "\x23\x61\164\164\162\151\x62\165\164\x65\163" => array("\x69\x64" => "\155\x6f\x73\141\x6d\154\137\x76\x74\137\151\x6d\x70\x6f\x72\164", "\163\164\171\x6c\145" => "\167\x69\144\164\150\x3a\x20\61\67\65\160\x78\x3b"));
$form["\x6d\x69\156\151\157\x72\x61\156\147\x65\137\x73\x61\155\x6c\x5f\x69\144\x70\137\x69\x6d\x70\157\162\164\x5f\x63\157\156\x66\x69\147"] = array("\43\164\171\160\145" => "\163\x75\x62\x6d\151\x74", "\43\166\x61\154\x75\145" => t("\125\160\x6c\157\141\x64"), "\43\163\x75\142\155\151\x74" => array("\x6d\x69\x6e\151\157\162\x61\156\x67\145\x5f\x69\x6d\x70\x6f\x72\164\137\103\157\156\146\x69\147"), "\43\144\151\163\141\x62\154\145\144" => $sm, "\x23\x61\x74\164\x72\151\142\165\x74\145\163" => array("\x69\144" => "\x6d\157\163\x61\155\154\x5f\x76\x74\x5f\145\x78\160\x6f\x72\x74", "\163\164\171\154\x65" => "\142\157\162\x64\x65\162\x2d\162\x61\x64\151\x75\163\x3a\x34\x70\x78\73\167\151\x64\x74\x68\72\x31\60\60\x70\170\x3b\142\x61\x63\153\x67\162\x6f\165\156\x64\72\x20\43\63\63\67\x61\142\67\73\x63\157\x6c\x6f\162\72\x20\x23\146\146\x66\x66\x66\146\73\164\145\x78\164\55\163\150\x61\x64\157\167\72\40\60\40\x2d\x31\x70\x78\40\61\160\x78\40\43\63\x33\x37\141\x62\67\x2c\x20\x31\x70\170\40\x30\x20\61\160\170\x20\x23\x33\63\67\x61\x62\x37\54\x20\60\x20\61\x70\170\x20\61\160\x78\40\x23\x33\63\67\141\142\67\54\40\x2d\x31\160\170\x20\x30\x20\x31\160\170\x20\x23\63\x33\67\141\142\67\x3b\142\157\x78\55\163\x68\141\x64\x6f\167\x3a\x20\60\40\x31\160\170\40\60\x20\43\63\x33\x37\x61\142\x37\73\142\157\x72\x64\x65\x72\55\143\157\154\x6f\162\72\40\43\x33\63\x37\x61\x62\67\x20\x23\x33\x33\x37\141\142\x37\x20\43\x33\63\x37\x61\142\x37\73\73\x6d\141\x72\x67\151\x6e\x2d\164\157\160\72\x20\55\64\x37\x70\170\73"));
$form["\x6d\x6f\137\x6d\141\x72\x6b\x75\163\160\x5f\164\145\163\164\137\x64\151\166"] = array("\43\155\x61\x72\153\165\160" => "\x3c\x2f\144\151\166\x3e");
$form["\155\157\x5f\x6d\141\x72\153\x75\x70\137\x69\144\x70\x5f\x61\164\164\x72\x5f\150\145\141\x64\145\x72\x5f\164\x6f\160\x5f\x64\151\166\x5f\x63\x6c\157\x73\145"] = array("\43\x6d\141\162\153\165\x70" => "\74\x2f\x64\x69\x76\76\74\57\x64\x69\166\76");
IDPUtilities::AddsupportTab($form, $form_state);
$form["\155\157\137\x6d\141\x72\153\x75\160\x5f\151\x64\160\137\x63\154\x6f\x73\163\145\x5f\144\x69\166"] = array("\x23\155\x61\162\x6b\x75\x70" => "\x3c\57\144\151\166\x3e");
return $form;
}
function miniorange_saml_is_sp_configured()
{
$yr = variable_get("\x6d\151\x6e\151\x6f\x72\x61\x6e\x67\x65\137\x73\141\155\x6c\137\x69\x64\x70\x5f\x61\143\x73\137\165\x72\154");
$Sr = variable_get("\155\151\x6e\x69\x6f\x72\141\156\x67\145\137\x73\x61\155\x6c\x5f\151\x64\160\x5f\163\x70\x5f\x65\x6e\x74\151\x74\x79\x5f\151\144");
if (!empty($yr) && !empty($Sr)) {
goto eB;
}
return 0;
goto F7;
eB:
return 1;
F7:
}
function miniorange_import_export()
{
$cr = array("\x49\104\x50\137\x4d\145\164\x61\144\141\164\141" => "\x6d\157\137\x6f\x70\164\x69\157\x6e\163\137\x65\x6e\x75\155\137\151\144\x65\x6e\164\151\x74\171\x5f\160\162\x6f\x76\x69\144\x65\162", "\123\145\x72\166\151\x63\x65\x5f\x50\x72\x6f\x76\151\144\145\x72" => "\155\157\137\157\x70\164\x69\157\x6e\x73\137\x65\156\165\155\137\x73\145\162\166\x69\x63\145\x5f\160\162\x6f\x76\151\x64\145\x72", "\x41\164\164\x72\x69\x62\x75\164\145\x5f\x4d\x61\x70\160\x69\x6e\147" => "\155\157\137\x6f\x70\164\151\157\x6e\x73\x5f\x61\164\164\x72\x69\x62\165\x74\x65\x5f\155\141\x70\x70\x69\156\147", "\123\151\x67\156\137\x49\x6e\137\123\x65\164\x74\151\x6e\x67\163" => "\x6d\x6f\137\157\x70\x74\151\157\156\163\x5f\163\151\147\x6e\151\156\137\163\145\164\164\x6e\x67\x73", "\x43\x75\x73\x74\x6f\x6d\x5f\x43\x65\x72\x74\x69\x66\x69\143\141\x74\145" => "\155\x6f\x5f\x6f\160\164\x69\157\x6e\x73\137\x63\165\163\164\157\155\x5f\x63\x65\162\164\x69\x66\151\143\x61\x74\x65");
$P7 = array();
foreach ($cr as $gH => $Or) {
$P7[$gH] = mo_get_configuration_array($Or);
vL:
}
Dm:
$P7["\x56\145\x72\x73\x69\x6f\156\x5f\144\x65\160\145\156\x64\145\156\143\x69\145\163"] = mo_get_version_informations();
header("\103\157\156\x74\x65\156\x74\x2d\104\x69\163\x70\157\163\151\164\x69\x6f\156\x3a\40\141\x74\164\x61\x63\x68\155\x65\156\164\73\x20\146\151\x6c\145\156\141\x6d\145\x3d\x6d\151\x6e\x69\157\162\x61\156\x67\x65\55\163\x61\155\154\55\151\x64\160\x2d\x63\x6f\156\146\x69\147\56\x6a\x73\x6f\156");
echo json_encode($P7, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);
exit;
}
function mo_get_configuration_array($LG)
{
$OP = IDPUtilities::getVariableNames($LG);
$HQ = array();
foreach ($OP as $gH => $Or) {
$Do = variable_get($Or);
if (!$Do) {
goto F8;
}
$HQ[$gH] = $Do;
F8:
HL:
}
l1:
return $HQ;
}
function miniorange_import_Config()
{
if (!empty($_FILES["\x66\x69\x6c\x65\x73"]["\x74\155\x70\137\156\x61\155\x65"]["\x6d\157\x5f\151\155\x70\x6f\162\x74\x5f\103\157\156\x66\x69\x67\137\146\x69\x6c\x65"])) {
goto jK;
}
drupal_set_message(t("\74\142\x20\163\x74\x79\x6c\x65\x3d\42\x63\157\x6c\x6f\x72\72\x20\x72\x65\x64\42\x3e\120\x6c\145\141\x73\145\40\163\145\x6c\145\x63\x74\x20\x66\x69\154\145\x20\146\151\x72\x73\164\40\164\157\x20\x75\x70\x6c\x6f\x61\x64\x20\103\x6f\156\146\151\x67\165\162\x61\x74\x69\x6f\156\41\x3c\57\x62\76"), "\x65\162\162\157\162");
goto bV;
jK:
$jF = $_FILES["\146\x69\154\145\163"]["\156\x61\x6d\x65"]["\x6d\157\x5f\x69\x6d\x70\x6f\x72\164\137\x43\157\x6e\146\151\147\137\146\x69\154\x65"];
list($nE, $G0) = explode("\x2e", $jF);
if ($G0 == "\152\163\157\x6e") {
goto fk;
}
drupal_set_message(t("\74\x62\x20\163\164\x79\154\145\75\x22\x63\157\154\x6f\x72\x3a\x20\x72\145\x64\x22\x3e\106\x69\x6c\145\x20\x74\x79\x70\x65\40\151\163\x20\x6e\x6f\164\40\x63\157\155\x70\x61\164\151\142\154\145\x3c\57\142\76\40\74\142\162\76\40\x50\154\145\x61\163\x65\40\123\145\154\145\143\164\40\74\142\40\x73\x74\x79\x6c\145\x3d\42\x63\157\154\x6f\x72\72\x20\162\145\144\42\76\x22\56\x6a\x73\x6f\x6e\42\74\x2f\142\x3e\x20\x65\170\x74\x65\x6e\x64\x65\x64\x20\x66\x69\x6c\x65\x20\x74\x6f\40\x75\x70\154\157\141\144\x20\103\x6f\156\146\x69\x67\165\162\x61\x74\151\x6f\156\41"), "\145\162\x72\x6f\x72");
goto v2;
fk:
$jF = @file_get_contents($_FILES["\x66\x69\154\x65\x73"]["\164\155\x70\x5f\156\x61\x6d\x65"]["\x6d\157\x5f\151\x6d\160\157\x72\x74\x5f\x43\x6f\x6e\x66\151\x67\x5f\x66\x69\x6c\x65"]);
$P7 = json_decode($jF, true);
mo_update_configuration_array($P7);
v2:
bV:
}
function mo_update_configuration_array($P7)
{
global $base_url;
$cr = array("\111\104\120\x5f\x4d\x65\x74\141\144\x61\164\141" => "\155\157\x5f\157\x70\x74\x69\x6f\156\163\x5f\x65\156\165\x6d\x5f\151\x64\145\156\164\151\164\171\137\x70\x72\157\x76\x69\144\x65\162", "\x53\145\x72\166\151\x63\x65\137\x50\162\x6f\x76\x69\x64\145\162" => "\x6d\157\137\x6f\x70\x74\x69\157\x6e\x73\137\145\156\165\x6d\137\x73\x65\x72\x76\151\143\145\x5f\x70\162\157\x76\151\x64\145\x72", "\101\x74\x74\x72\151\142\x75\x74\x65\137\x4d\141\x70\x70\151\156\147" => "\155\157\x5f\x6f\160\164\151\157\x6e\163\x5f\141\164\164\162\151\142\165\x74\145\x5f\x6d\141\160\160\151\156\x67", "\123\151\147\x6e\137\111\x6e\137\123\x65\x74\164\151\156\147\x73" => "\x6d\x6f\137\157\160\164\151\157\x6e\163\x5f\x73\151\147\156\x69\x6e\x5f\163\x65\164\164\x6e\147\x73", "\103\165\163\164\x6f\155\x5f\x43\x65\162\x74\x69\x66\151\143\x61\164\x65" => "\155\x6f\x5f\x6f\x70\x74\151\157\x6e\x73\137\143\x75\x73\164\x6f\x6d\x5f\x63\x65\162\x74\x69\x66\151\x63\x61\x74\x65");
foreach ($cr as $Jo => $LG) {
foreach ($P7[$Jo] as $gH => $Or) {
$pX = IDPUtilities::getVariableNames($LG);
$pX = $pX[$gH];
if (!(!empty($pX) && !empty($Or))) {
goto KY;
}
variable_set($pX, $Or);
KY:
Y3:
}
c9:
QT:
}
m3:
$ZL = "\103\117\x4e\106\111\x47\125\122\x41\x54\x49\x4f\116\137\x53\101\126\x45\x44";
variable_set("\x6d\x69\x6e\151\157\162\141\156\147\x65\x5f\143\x6f\x6e\x66\x69\x67\137\x73\x74\141\164\165\163", $ZL);
drupal_set_message(t("\131\157\x75\162\40\x43\157\x6e\x66\x69\x67\x75\x72\141\164\151\157\156\40\141\x72\145\x20\x73\165\x63\143\145\x73\163\x66\x75\154\x6c\x79\40\151\155\160\x6f\162\x74\x65\x64\56"));
drupal_goto($base_url . "\57\x61\x64\x6d\x69\x6e\x2f\x63\157\x6e\x66\151\147\x2f\x70\x65\x6f\160\x6c\x65\x2f\155\x69\156\151\x6f\x72\x61\x6e\147\x65\x5f\x73\x61\155\154\137\151\x64\x70\57\151\x64\160\137\163\145\x74\x75\x70");
}
function mo_get_version_informations()
{
$o4 = array();
$o4["\x50\x48\120\137\x76\x65\162\163\x69\x6f\x6e"] = phpversion();
$o4["\x44\x72\165\160\x61\x6c\x5f\166\x65\x72\163\x69\x6f\156"] = VERSION;
$o4["\117\x50\x45\x4e\x5f\123\123\x4c"] = mo_saml_is_openssl_installed();
$o4["\x43\125\x52\114"] = mo_saml_is_curl_installed();
$o4["\111\103\x4f\116\x56"] = mo_saml_is_iconv_installed();
$o4["\x44\117\115"] = mo_saml_is_dom_installed();
return $o4;
}
function mo_saml_is_openssl_installed()
{
if (in_array("\157\160\x65\x6e\x73\x73\154", get_loaded_extensions())) {
goto aV;
}
return 0;
goto AU;
aV:
return 1;
AU:
}
function mo_saml_is_curl_installed()
{
if (in_array("\143\165\x72\154", get_loaded_extensions())) {
goto Wi;
}
return 0;
goto u6;
Wi:
return 1;
u6:
}
function mo_saml_is_iconv_installed()
{
if (in_array("\151\143\x6f\156\166", get_loaded_extensions())) {
goto cw;
}
return 0;
goto z7;
cw:
return 1;
z7:
}
function mo_saml_is_dom_installed()
{
if (in_array("\144\157\x6d", get_loaded_extensions())) {
goto R1;
}
return 0;
goto CA;
R1:
return 1;
CA:
}