-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathminiorange_saml_idp.module
executable file
·473 lines (471 loc) · 52.8 KB
/
miniorange_saml_idp.module
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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
<?php
function miniorange_saml_idp_menu()
{
$Fi["\x61\144\x6d\x69\x6e\x2f\143\x6f\156\146\151\147\57\160\145\157\x70\x6c\x65\57\x6d\151\x6e\x69\157\x72\141\x6e\x67\x65\137\x73\x61\x6d\154\137\x69\x64\160"] = array("\164\151\164\x6c\145" => "\x44\x72\x75\x70\141\x6c\x20\123\101\115\x4c\x20\x49\x44\x50\40\x43\x6f\156\x66\x69\147\165\x72\141\x74\x69\157\x6e", "\x64\x65\x73\x63\162\x69\x70\164\151\x6f\x6e" => "\x43\157\x6e\166\145\x72\x74\40\x79\157\x75\162\x20\x44\162\x75\x70\x61\x6c\x20\x69\156\x74\x6f\40\141\x6e\x20\x49\104\x50", "\x70\x61\147\x65\x20\x63\x61\154\x6c\142\x61\143\x6b" => "\x64\x72\165\160\x61\x6c\137\x67\145\x74\x5f\x66\x6f\x72\x6d", "\160\x61\147\x65\x20\141\162\147\165\155\145\156\164\163" => array("\155\151\x6e\x69\157\162\141\156\x67\145\x5f\x73\141\x6d\154\x5f\151\x64\160\137\143\x75\x73\164\157\x6d\145\x72\137\x73\145\164\x75\160"), "\141\x63\143\145\x73\163\40\x61\162\147\x75\155\x65\156\x74\163" => array("\141\x64\x6d\151\x6e\151\x73\164\x65\162\40\x73\x69\x74\145\40\x63\157\x6e\146\151\x67\x75\x72\x61\x74\151\157\156"), "\x66\151\154\145" => "\155\151\156\x69\x6f\162\141\x6e\x67\x65\x5f\x73\141\x6d\154\137\151\144\160\x5f\143\165\163\x74\x6f\x6d\x65\162\x5f\x73\145\x74\x75\x70\56\x69\156\x63");
$Fi["\141\x64\x6d\x69\x6e\x2f\143\157\156\x66\151\147\57\160\145\157\160\154\145\57\x6d\x69\x6e\151\157\x72\141\x6e\147\145\x5f\x73\141\155\x6c\137\151\144\160\57\143\x75\x73\164\157\155\145\162\x5f\163\145\164\165\x70"] = array("\x74\x69\164\154\145" => "\x4c\x6f\x67\x69\x6e", "\x77\x65\151\147\150\164" => -9, "\x74\x79\x70\x65" => MENU_DEFAULT_LOCAL_TASK, "\x61\x63\143\145\163\163\x20\141\x72\147\x75\155\145\x6e\164\x73" => array("\141\x64\x6d\151\x6e\x69\x73\164\145\x72\x20\163\151\x74\x65\40\143\157\x6e\146\x69\x67\165\162\141\164\x69\x6f\x6e"), "\x70\141\147\145\40\141\162\147\165\x6d\x65\156\x74\x73" => array("\155\x69\156\151\x6f\162\x61\156\x67\145\x5f\x73\x61\x6d\x6c\x5f\x69\144\x70\137\143\x75\x73\164\157\155\145\x72\137\163\145\164\165\160"), "\x66\151\x6c\x65" => "\155\151\x6e\x69\x6f\162\x61\x6e\x67\x65\137\x73\x61\x6d\154\x5f\x69\x64\160\x5f\143\x75\163\x74\157\x6d\x65\162\137\163\145\164\x75\160\x2e\x69\x6e\143");
$Fi["\141\x64\x6d\x69\x6e\57\143\157\x6e\146\x69\147\57\x70\145\157\160\154\x65\x2f\155\x69\156\x69\x6f\162\x61\x6e\x67\145\137\163\x61\x6d\154\x5f\x69\x64\160\57\151\x64\160\x5f\x73\145\x74\x75\160"] = array("\164\x69\x74\x6c\x65" => "\123\x65\x72\x76\x69\x63\145\40\120\162\157\166\151\x64\145\162", "\x77\x65\x69\x67\150\164" => -8, "\x61\143\143\145\x73\163\x20\141\x72\x67\x75\x6d\145\x6e\x74\163" => array("\x61\144\x6d\151\156\151\x73\x74\x65\162\x20\163\151\x74\145\40\x63\157\x6e\x66\x69\x67\x75\x72\141\164\151\x6f\156"), "\x70\x61\147\x65\x20\x61\162\x67\x75\155\x65\x6e\x74\x73" => array("\155\151\x6e\x69\x6f\162\141\x6e\x67\x65\x5f\x73\141\x6d\154\137\x69\144\160\137\x73\145\x74\165\x70"), "\x66\x69\x6c\145" => "\155\x69\156\x69\157\162\x61\156\x67\x65\137\x73\x61\x6d\x6c\x5f\151\144\x70\x5f\x73\145\x74\x75\160\56\151\x6e\143", "\164\x79\x70\x65" => MENU_LOCAL_TASK);
$Fi["\x61\144\155\x69\156\57\143\x6f\156\146\x69\x67\x2f\160\x65\157\x70\x6c\x65\x2f\x6d\151\x6e\151\x6f\162\x61\156\147\x65\137\163\x61\x6d\154\137\151\144\x70\57\x73\x70\x5f\163\x65\x74\x75\x70"] = array("\164\x69\164\x6c\x65" => "\x49\x64\160\40\x4d\x65\164\141\x64\x61\x74\141", "\x77\145\151\x67\x68\164" => -7, "\164\171\x70\x65" => MENU_LOCAL_TASK, "\141\x63\x63\145\x73\163\40\x61\x72\x67\x75\155\x65\156\x74\163" => array("\x61\x64\155\151\156\151\163\x74\145\x72\x20\163\151\x74\x65\40\143\157\x6e\x66\151\147\165\162\141\164\151\x6f\156"), "\x70\141\147\x65\40\x61\162\147\165\155\145\x6e\x74\x73" => array("\155\x69\x6e\151\x6f\162\x61\156\x67\x65\137\x73\x70\x5f\x69\156\x66\x6f\162\x6d\141\164\x69\157\x6e"), "\146\x69\x6c\145" => "\155\151\x6e\x69\157\162\141\x6e\x67\145\137\x73\160\x5f\x69\x6e\146\x6f\x72\x6d\x61\164\x69\x6f\156\56\151\x6e\143");
$Fi["\141\144\x6d\x69\156\x2f\143\157\x6e\146\151\x67\57\160\x65\x6f\x70\154\145\x2f\155\151\x6e\x69\157\x72\x61\x6e\147\145\x5f\x73\141\x6d\x6c\x5f\x69\x64\x70\x2f\x61\x74\164\x72\137\155\x61\x70\x70\x69\156\x67"] = array("\x74\x69\x74\154\x65" => "\101\x74\x74\162\x69\142\165\164\145\40\x4d\141\160\160\x69\156\x67", "\167\x65\x69\x67\x68\164" => -6, "\x74\171\160\x65" => MENU_LOCAL_TASK, "\141\x63\143\145\163\163\40\x61\x72\x67\x75\155\x65\156\164\163" => array("\x61\x64\x6d\151\156\x69\x73\x74\x65\x72\x20\163\x69\x74\145\40\x63\x6f\x6e\146\151\x67\x75\x72\141\164\151\x6f\x6e"), "\x70\141\147\x65\40\x61\162\147\x75\x6d\x65\156\x74\163" => array("\155\x69\x6e\x69\x6f\x72\x61\x6e\147\x65\x5f\163\x61\x6d\154\137\x69\144\160\137\141\164\164\x72\x69\142\x75\164\x65\x5f\x6d\x61\160\x70\x69\x6e\x67"), "\146\x69\x6c\x65" => "\155\151\x6e\151\157\162\141\x6e\x67\145\x5f\x73\x61\x6d\x6c\137\x69\144\x70\137\141\x74\x74\x72\x69\142\165\164\x65\137\155\141\x70\160\151\156\x67\x2e\x69\x6e\x63");
$Fi["\141\x64\x6d\x69\156\57\143\157\x6e\146\x69\147\x2f\160\x65\157\160\x6c\145\57\155\x69\x6e\x69\157\x72\141\156\x67\x65\137\163\141\x6d\154\137\x69\x64\160\x2f\x73\151\147\156\151\156\x5f\x73\x65\164\x74\151\x6e\147\163"] = array("\x74\151\164\x6c\x65" => "\123\151\x67\x6e\x20\x69\x6e\x20\x53\x65\164\164\x69\x6e\x67\x73", "\167\145\151\x67\x68\164" => -5, "\164\x79\160\x65" => MENU_LOCAL_TASK, "\141\x63\x63\145\163\163\40\x61\x72\x67\x75\x6d\145\156\x74\x73" => array("\141\144\155\151\x6e\151\163\164\x65\162\40\163\151\x74\x65\40\143\157\156\146\151\147\x75\x72\x61\x74\151\x6f\x6e"), "\x70\x61\147\x65\x20\x61\x72\x67\x75\x6d\145\x6e\164\x73" => array("\155\x69\156\151\157\x72\141\156\x67\145\x5f\163\141\x6d\154\137\151\x64\x70\x5f\x73\x69\147\156\151\x6e\137\x73\x65\164\x74\x69\x6e\147\x73"), "\146\151\154\x65" => "\x6d\151\x6e\x69\x6f\x72\141\156\x67\x65\x5f\163\x61\x6d\x6c\x5f\151\x64\160\137\163\x69\x67\156\x69\156\x5f\x73\x65\164\x74\x69\x6e\x67\163\56\x69\156\143");
$Fi["\141\144\155\x69\x6e\57\x63\x6f\156\146\151\x67\x2f\160\145\x6f\x70\x6c\x65\57\155\151\156\151\x6f\x72\141\x6e\147\145\x5f\163\x61\x6d\154\x5f\151\x64\x70\x2f\x65\x78\160\x6f\x72\164\x5f\x63\157\x6e\x66\x69\x67"] = array("\164\x69\x74\x6c\x65" => "\x49\155\160\x6f\162\164\57\105\x78\x70\x6f\x72\164", "\x77\x65\x69\147\x68\x74" => -4, "\164\171\x70\145" => MENU_LOCAL_TASK, "\x61\143\143\145\x73\163\40\x61\162\x67\165\155\145\156\x74\x73" => array("\x61\x64\x6d\151\156\151\163\x74\x65\x72\40\163\x69\164\145\x20\143\x6f\156\x66\151\x67\x75\162\x61\164\x69\157\x6e"), "\160\x61\147\x65\40\141\x72\147\x75\155\145\x6e\x74\x73" => array("\155\x69\x6e\151\x6f\x72\x61\x6e\x67\x65\x5f\163\141\x6d\x6c\137\x69\144\x70\x5f\145\170\160\157\162\x74\137\143\x6f\156\146\x69\x67"), "\146\151\x6c\x65" => "\x6d\x69\x6e\151\157\162\141\156\x67\x65\137\163\141\x6d\154\x5f\151\144\x70\137\x65\x78\160\157\x72\164\x5f\x63\x6f\156\x66\151\x67\x2e\x69\x6e\x63");
$Fi["\x61\144\x6d\151\156\x2f\x63\157\x6e\146\x69\x67\x2f\x70\x65\x6f\160\154\145\57\x6d\x69\x6e\151\157\162\x61\156\x67\x65\x5f\163\141\155\x6c\137\x69\144\x70\57\x63\x75\x73\164\157\155\137\143\145\x72\x74\x69\x66\151\143\x61\x74\145"] = array("\164\x69\x74\154\145" => "\103\165\x73\164\157\155\x20\x43\x65\x72\x74\151\146\151\x63\141\164\x65", "\167\x65\151\x67\x68\164" => -3, "\x74\x79\160\145" => MENU_LOCAL_TASK, "\x61\143\143\x65\x73\163\x20\141\162\x67\165\x6d\145\x6e\164\163" => array("\x61\x64\x6d\x69\x6e\x69\x73\164\145\162\x20\163\151\164\x65\40\143\157\x6e\x66\x69\x67\x75\162\141\164\x69\x6f\x6e"), "\160\141\x67\x65\40\x61\x72\x67\165\x6d\145\x6e\x74\x73" => array("\155\157\137\x73\x61\x6d\154\x5f\x69\x64\160\137\141\144\x64\x5f\143\165\x73\164\157\155\137\x63\145\x72\164\151\x66\x69\x63\x61\164\x65"), "\x66\151\154\x65" => "\155\157\x5f\163\141\155\x6c\137\151\144\160\137\x61\x64\x64\x5f\x63\165\163\x74\157\x6d\137\x63\145\x72\164\x69\x66\x69\143\x61\164\145\x2e\x69\x6e\143");
$Fi["\141\144\155\x69\x6e\57\143\157\156\x66\x69\147\x2f\160\145\157\x70\154\x65\57\x6d\151\156\151\157\x72\141\x6e\147\x65\x5f\x73\141\x6d\154\137\x69\x64\160\57\154\151\x63\145\x6e\x73\x69\156\147"] = array("\x74\151\x74\x6c\145" => "\125\160\147\x72\x61\144\x65\40\120\x6c\141\x6e\x73", "\x77\x65\x69\x67\x68\164" => -2, "\x74\171\160\x65" => MENU_LOCAL_TASK, "\x61\x63\143\145\x73\163\40\141\x72\x67\x75\x6d\145\x6e\164\163" => array("\x61\144\x6d\151\156\151\x73\164\145\x72\40\x73\151\164\145\40\143\157\156\x66\x69\147\x75\x72\141\x74\x69\x6f\x6e"), "\x70\141\147\x65\x20\x61\162\x67\x75\x6d\x65\156\x74\x73" => array("\x6d\151\156\x69\157\x72\x61\x6e\x67\145\x5f\x73\141\155\154\x5f\151\144\x70\137\x6c\x69\143\145\156\163\x69\x6e\x67"), "\146\151\x6c\145" => "\155\x69\156\x69\x6f\x72\x61\156\x67\x65\137\163\141\155\x6c\x5f\x69\144\160\x5f\x6c\151\143\x65\156\x73\151\156\x67\x2e\151\156\x63");
$Fi["\151\156\x69\164\x69\141\x74\x65\154\157\147\157\156"] = array("\x61\143\143\x65\x73\x73\x20\x63\x61\x6c\x6c\x62\x61\143\x6b" => TRUE, "\x70\x61\147\145\40\143\141\154\x6c\142\141\143\153" => "\155\151\x6e\x69\x6f\x72\x61\x6e\147\145\137\x73\141\155\154\137\x69\144\x70\x5f\154\157\x67\x69\156\137\162\145\161\165\145\x73\164", "\x74\171\160\145" => MENU_CALLBACK);
$Fi["\155\157\137\164\x65\163\x74\x49\x64\160\103\157\x6e\x66\x69\x67"] = array("\x61\143\x63\x65\x73\163\40\141\162\x67\x75\155\x65\156\164\163" => array("\x61\144\x6d\151\x6e\x69\x73\x74\x65\x72\x20\x73\151\x74\145\40\143\x6f\x6e\146\x69\x67\x75\x72\x61\x74\151\157\x6e"), "\160\141\147\x65\x20\x63\x61\x6c\x6c\x62\x61\143\x6b" => "\x6d\151\x6e\x69\157\x72\141\156\147\x65\x5f\x73\141\x6d\x6c\137\151\144\160\x5f\164\x65\163\164\137\x63\x6f\156\x66\x69\147\x75\162\141\164\x69\x6f\x6e\x73", "\164\171\160\145" => MENU_CALLBACK);
$Fi["\x73\x61\x6d\154\137\165\x73\x65\x72\137\x6c\157\147\x69\156"] = array("\x61\143\143\145\x73\x73\x20\x63\141\154\x6c\x62\141\143\153" => TRUE, "\160\141\147\145\40\x63\x61\154\154\x62\141\x63\x6b" => "\x6d\151\x6e\x69\x6f\162\141\156\x67\x65\137\x73\141\155\x6c\137\151\144\x70\x5f\151\x6e\151\164\x69\x61\164\145\x64\x5f\x6c\157\147\151\x6e", "\164\171\x70\x65" => MENU_CALLBACK);
$Fi["\155\x6f\x69\144\x70\137\x6d\145\164\x61\144\141\164\141"] = array("\141\143\x63\x65\x73\163\40\x63\x61\154\154\x62\x61\x63\x6b" => TRUE, "\x70\x61\147\145\40\x63\141\154\154\142\141\143\x6b" => "\x6d\x69\156\x69\157\x72\141\156\147\x65\137\x73\x61\155\154\x5f\151\144\160\x5f\155\145\x74\x61\x64\x61\x74\141", "\164\171\160\145" => MENU_CALLBACK);
$Fi["\155\157\x69\x64\x70\x5f\144\x6f\x77\x6e\154\x6f\141\144\x5f\x6d\145\x74\141\x64\141\x74\141"] = array("\141\x63\143\145\163\163\40\141\162\x67\x75\155\145\x6e\x74\x73" => array("\x61\x64\x6d\151\156\151\x73\x74\145\162\40\x73\x69\164\145\40\x63\x6f\156\146\151\147\165\x72\141\164\151\157\x6e"), "\x70\141\147\x65\x20\143\141\x6c\x6c\142\x61\143\x6b" => "\x6d\151\x6e\151\x6f\162\x61\x6e\147\145\137\163\x61\155\x6c\137\151\144\160\137\144\157\x77\x6e\x6c\x6f\141\144\x5f\x6d\x65\164\141\144\x61\164\x61", "\164\171\x70\x65" => MENU_CALLBACK);
$Fi["\163\141\155\x6c\154\157\147\x6f\x75\x74"] = array("\x61\x63\143\145\x73\163\40\x63\x61\x6c\x6c\x62\x61\x63\153" => TRUE, "\160\141\x67\x65\x20\143\141\154\x6c\x62\141\143\153" => "\x6d\x69\156\x69\157\x72\141\x6e\147\x65\137\163\x61\155\154\137\151\x64\x70\x5f\x73\x61\155\154\154\157\147\x6f\x75\x74", "\x74\x79\160\145" => MENU_CALLBACK);
return $Fi;
}
function miniorange_saml_idp_update_projects_alter(&$oV)
{
$OF = variable_get("\155\151\x6e\151\157\x72\141\156\147\145\137\x73\x61\x6d\x6c\137\165\x70\147\x72\x61\x64\x65\x5f\165\162\x6c", '');
$OF = is_null($OF) ? MiniorangeSAMLIdpConstants::BASE_URL : $OF;
if (!isset($oV["\x6d\151\156\x69\x6f\162\141\156\x67\145\x5f\163\x61\x6d\154\137\x69\144\x70"])) {
goto z2;
}
$oV["\x6d\151\x6e\x69\157\162\x61\156\x67\x65\137\163\141\x6d\x6c\137\x69\x64\160"]["\x69\156\x66\157"]["\x70\162\157\x6a\x65\143\164\x20\163\164\141\164\165\x73\40\x75\162\154"] = $OF;
z2:
}
function miniorange_saml_idp_user_login(&$Vy, $qJ)
{
if (!isset($_COOKIE["\162\145\x73\x70\157\156\x73\x65\x5f\160\141\x72\x61\x6d\x73"])) {
goto OS;
}
$YW = json_decode(stripslashes($_COOKIE["\x72\145\x73\160\x6f\156\x73\145\137\x70\141\162\x61\155\163"]), true);
if (!(strcmp($YW["\x6d\157\x49\x64\x70\163\145\x6e\144\122\145\x73\160\157\156\163\x65"], "\164\x72\x75\x65") == 0)) {
goto Ol;
}
mo_idp_send_reponse($YW["\141\x63\x73\137\x75\162\154"], $YW["\x61\165\x64\151\145\156\143\x65"], $YW["\x72\x65\154\x61\x79\123\x74\x61\164\145"], $YW["\x69\x6e\x52\x65\x73\x70\x6f\156\x73\145\x54\157"]);
Ol:
OS:
}
function miniorange_saml_idp_test_configurations()
{
$Mj = '';
$yF = variable_get("\x6d\x69\x6e\x69\x6f\x72\x61\x6e\147\x65\x5f\x73\141\155\x6c\137\151\144\x70\137\x61\x63\x73\x5f\x75\x72\x6c");
$c8 = variable_get("\x6d\x69\x6e\x69\x6f\162\x61\156\147\145\x5f\x73\x61\155\154\x5f\151\x64\160\137\x73\160\x5f\145\x6e\164\151\x74\x79\137\151\x64");
if (!($yF == '' || is_null($yF) || $c8 == '' || is_null($c8))) {
goto HC;
}
drupal_set_message(t("\x50\154\145\x61\x73\x65\40\143\x6f\156\146\x69\147\x75\162\x65\x20\171\x6f\x75\162\x20\123\120\x20\x63\x6f\x6e\x66\151\x67\165\162\x61\164\151\157\x6e\163\x20\146\151\162\163\164\40\x61\156\x64\40\x74\150\145\156\40\143\x6c\x69\x63\153\x20\x6f\156\40\x54\x65\163\164\40\x43\157\156\146\151\147\x75\162\141\164\151\157\x6e\56"));
drupal_goto();
HC:
mo_idp_authorize_user($yF, $c8, $Mj);
}
function miniorange_saml_idp_login_request()
{
if (!(array_key_exists("\123\x41\115\114\122\145\x71\165\x65\163\164", $_REQUEST) && !empty($_REQUEST["\x53\x41\x4d\114\122\x65\161\x75\x65\x73\164"]))) {
goto Lh;
}
_read_saml_request($_REQUEST, $_GET);
Lh:
}
function miniorange_saml_idp_metadata()
{
_generate_idpmetadata();
}
function miniorange_saml_idp_download_metadata()
{
_generate_idpmetadata(true);
}
function _generate_idpmetadata($jf = false)
{
global $base_url;
$VC = $base_url . "\57";
$Ze = $VC . "\77\161\75\141\x64\x6d\x69\x6e\x2f\143\x6f\156\x66\151\x67\x2f\x70\145\157\x70\x6c\145\x2f\x6d\151\156\151\157\x72\x61\156\147\145\x5f\x73\x61\x6d\154\x5f\x69\x64\x70\57";
$jS = $VC . "\77\161\x3d\151\156\151\x74\x69\141\164\145\x6c\x6f\147\x6f\156";
$yQ = $VC . "\x3f\x71\x3d\163\x61\155\x6c\x6c\157\x67\157\165\164";
$yP = variable_get("\155\x69\156\151\157\x72\x61\x6e\147\x65\x5f\163\x61\x6d\154\x5f\151\x64\x70\x5f\145\156\164\151\164\x79\137\151\x64");
$Ze = isset($yP) && !empty($yP) ? $yP : $Ze;
define("\x44\x52\x55\x50\x41\114\137\x42\x41\123\105\x5f\122\117\117\x54", dirname(__FILE__));
$PR = drupal_get_path("\155\x6f\144\165\154\145", "\x6d\151\x6e\151\157\162\141\x6e\147\145\x5f\x73\141\155\x6c\x5f\x69\x64\160");
$zo = '';
$zo = variable_get("\x6d\151\156\x69\157\x72\141\x6e\147\x65\137\163\x61\155\154\137\151\144\160\137\x70\165\x62\x6c\x5f\x63\145\162\164\x69\146\151\x63\x61\x74\145");
if ($zo != '') {
goto Uh;
}
$xY = DRUPAL_BASE_ROOT . DIRECTORY_SEPARATOR . "\162\x65\x73\x6f\165\162\143\145\x73" . DIRECTORY_SEPARATOR . "\151\x64\x70\x2d\x73\x69\x67\x6e\151\156\147\56\x63\x72\x74";
goto dH;
Uh:
$xY = DRUPAL_BASE_ROOT . DIRECTORY_SEPARATOR . "\x72\x65\x73\x6f\x75\162\143\145\x73" . DIRECTORY_SEPARATOR . "\x43\x75\163\x74\157\155\137\120\x75\x62\154\151\x63\x5f\103\145\x72\164\x69\x66\151\x63\x61\x74\x65\x2e\143\x72\x74";
dH:
$Yo = file_get_contents($xY);
$Yo = IDPUtilities::desanitize_certificate($Yo);
if ($jf) {
goto uD;
}
header("\x43\x6f\x6e\164\x65\156\164\x2d\124\x79\160\x65\72\40\x74\x65\170\164\x2f\x78\x6d\x6c");
goto M8;
uD:
header("\x43\x6f\156\x74\x65\x6e\164\55\104\x69\163\160\157\x73\151\x74\151\x6f\x6e\x3a\40\x61\164\x74\141\143\150\x6d\145\x6e\164\x3b\40\x66\x69\x6c\x65\x6e\x61\155\145\x3d\42\x4d\x65\164\x61\144\x61\164\x61\56\170\x6d\x6c\x22");
M8:
echo "\74\x3f\170\x6d\x6c\40\166\x65\162\x73\151\157\156\75\x22\x31\56\x30\42\x20\x65\x6e\143\157\x64\x69\156\x67\x3d\x22\125\124\x46\x2d\70\42\77\76\15\12\x20\40\x20\40\40\x20\40\x20\40\x20\40\40\x3c\x6d\144\x3a\x45\x6e\x74\151\x74\171\x44\145\x73\143\x72\x69\x70\x74\x6f\x72\x20\170\155\x6c\156\163\72\x6d\x64\x3d\x22\x75\x72\x6e\72\157\141\x73\x69\x73\x3a\156\x61\x6d\x65\x73\72\164\x63\x3a\123\101\115\114\72\x32\x2e\x30\72\155\145\164\141\x64\141\x74\141\42\40\x65\x6e\x74\151\164\x79\x49\104\75\42" . $Ze . "\42\x3e\xd\xa\x20\40\x20\x20\x20\x20\x20\40\40\x20\40\x20\x20\40\x20\40\x3c\x6d\x64\72\x49\x44\120\123\x53\117\x44\x65\x73\143\x72\151\160\164\157\x72\x20\127\141\x6e\x74\101\x75\164\x68\x6e\122\x65\161\x75\145\163\164\x73\x53\x69\x67\x6e\x65\144\75\42\164\162\x75\145\42\x20\x70\162\x6f\x74\x6f\143\157\154\x53\165\160\160\x6f\x72\164\x45\x6e\x75\155\x65\162\141\x74\x69\x6f\156\x3d\x22\165\x72\x6e\72\157\141\163\151\163\72\x6e\x61\x6d\x65\x73\x3a\x74\143\72\123\x41\x4d\114\72\62\x2e\x30\72\x70\x72\157\164\x6f\143\x6f\x6c\42\76\xd\xa\x20\40\40\x20\40\40\40\40\x20\x20\x20\40\x20\40\x20\40\40\x20\x20\x20\74\155\144\x3a\113\x65\171\104\x65\163\x63\x72\x69\160\164\157\162\40\x75\x73\145\x3d\x22\x73\151\x67\156\x69\156\x67\x22\x3e\15\xa\11\x9\x9\40\x20\40\x20\x20\40\x20\x20\x20\40\x20\40\x3c\144\163\72\113\x65\171\x49\x6e\146\157\x20\x78\x6d\x6c\156\x73\72\144\x73\75\x22\150\x74\x74\160\72\x2f\57\x77\167\167\x2e\167\x33\56\x6f\162\x67\57\x32\60\60\x30\x2f\x30\x39\x2f\170\155\x6c\x64\163\x69\147\x23\x22\76\xd\xa\x9\x9\11\11\40\x20\x20\x20\x20\x20\40\40\x20\40\x20\40\74\x64\x73\72\x58\x35\x30\x39\x44\x61\164\141\76\xd\12\11\x9\11\x9\11\40\x20\x20\x20\x20\40\x20\40\x20\40\40\40\74\144\x73\72\x58\x35\60\71\x43\145\x72\x74\151\x66\151\x63\141\x74\145\76" . $Yo . "\74\57\x64\x73\x3a\x58\x35\x30\x39\103\145\162\x74\x69\x66\151\143\141\164\x65\76\xd\xa\11\x9\11\11\x20\40\x20\x20\x20\40\x20\40\40\x20\40\x20\x3c\x2f\x64\163\72\x58\x35\x30\71\104\141\x74\x61\76\15\xa\11\x9\x9\x20\40\x20\40\x20\x20\40\x20\x20\x20\x20\40\x3c\x2f\144\163\x3a\x4b\x65\171\111\156\x66\157\x3e\15\12\x9\11\40\40\40\x20\40\x20\40\x20\x20\x20\40\40\x3c\57\155\x64\x3a\x4b\x65\171\104\x65\163\x63\162\151\x70\164\157\x72\76\15\xa\11\x9\40\40\x20\40\x20\40\x20\x20\x20\40\40\x20\x3c\155\x64\72\x4e\x61\155\x65\111\x44\x46\x6f\162\x6d\x61\x74\76\x75\x72\x6e\x3a\157\141\x73\x69\x73\72\156\x61\155\x65\163\x3a\x74\143\x3a\x53\101\x4d\114\72\61\x2e\x31\x3a\x6e\141\155\145\x69\144\55\146\x6f\x72\x6d\x61\164\x3a\145\x6d\x61\151\154\101\144\144\162\145\163\163\74\x2f\x6d\144\x3a\x4e\141\x6d\x65\111\x44\x46\157\162\155\x61\164\76\xd\12\x9\x9\40\x20\x20\x20\x20\x20\40\x20\x20\40\x20\x20\x3c\155\x64\72\116\141\x6d\145\111\104\106\157\x72\155\141\x74\x3e\x75\162\x6e\72\x6f\x61\x73\151\x73\72\x6e\141\x6d\145\x73\72\x74\143\72\x53\x41\x4d\x4c\72\x31\x2e\61\72\156\x61\x6d\x65\151\x64\x2d\146\157\x72\x6d\141\x74\72\165\156\163\x70\145\x63\x69\146\151\x65\144\74\57\x6d\x64\72\116\x61\x6d\145\111\x44\x46\x6f\x72\155\141\x74\76\15\12\x9\x9\x20\40\40\x20\40\40\40\x20\x20\x20\40\40\74\155\144\x3a\x53\x69\x6e\x67\x6c\145\x53\x69\x67\156\x4f\x6e\x53\x65\162\166\x69\x63\x65\x20\xd\12\x20\40\40\40\x9\11\11\40\x20\x20\x20\x42\151\156\144\151\156\x67\x3d\42\165\x72\156\72\x6f\141\163\151\163\72\x6e\x61\x6d\x65\163\72\164\143\x3a\x53\101\115\114\72\62\56\x30\x3a\x62\x69\156\x64\x69\x6e\147\x73\72\x48\x54\124\x50\55\x50\x4f\x53\124\42\40\15\12\11\x9\11\40\40\40\40\40\x20\x20\40\x4c\157\143\x61\x74\x69\x6f\156\75\42" . $jS . "\42\x2f\x3e\xd\xa\11\11\40\40\x20\x20\40\x20\40\40\40\x20\40\x20\74\x6d\144\x3a\x53\x69\156\147\154\145\123\151\147\156\117\156\123\145\x72\x76\151\x63\x65\x20\xd\xa\x9\x9\11\40\40\40\x20\40\40\40\40\x42\151\x6e\x64\x69\156\147\x3d\x22\x75\x72\x6e\72\x6f\x61\x73\151\x73\72\x6e\x61\x6d\145\163\x3a\164\x63\72\x53\x41\x4d\114\72\62\56\60\72\142\151\156\144\x69\x6e\x67\163\x3a\x48\124\x54\x50\55\x52\145\144\x69\162\x65\x63\x74\x22\40\15\xa\x9\x9\x9\x20\x20\40\x20\x20\40\40\40\114\x6f\143\x61\x74\x69\157\156\75\x22" . $jS . "\42\57\x3e\15\xa\x9\x9\x20\40\x20\40\x20\x20\40\40\40\40\40\x20\74\155\144\x3a\x53\x69\156\147\x6c\145\114\x6f\147\157\165\x74\123\145\162\166\151\143\x65\40\15\xa\x9\11\11\40\x20\40\x20\x20\x20\40\40\102\x69\x6e\x64\151\156\147\75\42\165\162\156\72\x6f\141\x73\x69\x73\x3a\x6e\x61\x6d\145\x73\72\164\x63\x3a\123\x41\x4d\114\x3a\x32\56\60\x3a\x62\x69\x6e\x64\151\156\147\x73\x3a\x48\124\124\x50\55\x52\x65\144\x69\x72\x65\x63\x74\x22\40\xd\xa\x9\x9\11\40\40\x20\40\x20\x20\x20\40\x4c\x6f\143\x61\164\x69\x6f\156\75\x22" . $yQ . "\x22\57\x3e\xd\xa\11\x9\x20\40\40\x20\x20\40\40\x20\x20\40\x20\40\74\x6d\144\72\x53\x69\156\147\154\x65\x4c\x6f\147\x6f\x75\164\x53\x65\x72\166\151\x63\x65\40\15\12\11\11\x9\40\x20\40\40\x20\40\40\40\102\x69\156\x64\151\156\x67\x3d\42\165\162\156\72\x6f\x61\163\x69\163\x3a\156\141\x6d\x65\163\x3a\x74\x63\x3a\x53\x41\115\114\72\62\x2e\x30\72\x62\x69\x6e\x64\151\x6e\x67\x73\72\x48\x54\x54\120\55\120\x4f\123\124\42\x20\xd\12\11\x9\x9\x20\x20\40\40\x20\x20\x20\40\114\157\143\x61\x74\151\157\156\75\42" . $yQ . "\42\x2f\x3e\xd\12\x9\40\x20\x20\40\x20\40\x20\x20\x20\40\x20\40\x3c\x2f\x6d\x64\72\111\x44\120\x53\x53\x4f\x44\x65\x73\143\162\x69\160\164\x6f\x72\76\xd\xa\40\x20\x20\40\x20\x20\40\40\x20\40\x20\x20\74\x2f\x6d\x64\72\105\156\x74\x69\164\x79\x44\145\163\x63\162\151\160\x74\157\162\x3e";
exit;
}
function miniorange_saml_idp_user_logout()
{
$x7 = isset($_GET["\x71"]) ? $_GET["\161"] : '';
if (!(strpos($x7, "\155\x61\x73\161\x75\145\x72\x61\x64\x65") === false)) {
goto TA;
}
global $base_url;
global $user;
$VC = $base_url . "\57";
$Q9 = $VC . "\x3f\x71\x3d\141\144\x6d\x69\156\57\x63\x6f\156\x66\x69\147\x2f\x70\x65\157\160\154\x65\x2f\x6d\151\x6e\x69\157\162\x61\x6e\x67\x65\x5f\x73\x61\x6d\154\137\x69\x64\160\x2f";
$yQ = variable_get("\155\151\156\151\157\x72\141\156\x67\x65\137\x73\x61\x6d\x6c\137\x69\144\x70\x5f\x73\x6c\157\137\x75\x72\154", '');
if (isset($_SESSION)) {
goto x7;
}
session_start();
x7:
if (!(empty($yQ) || !(isset($_SESSION["\x6c\x6f\147\147\145\144\x5f\151\x6e\x5f\167\151\164\150\137\151\x64\160"]) || isset($_COOKIE["\x6c\x6f\x67\147\145\144\x5f\x69\x6e\x5f\x77\x69\x74\150\137\x69\144\160"])))) {
goto Oo;
}
session_destroy();
drupal_goto($base_url);
exit;
Oo:
$gV = variable_get("\155\151\x6e\x69\x6f\x72\141\x6e\147\x65\137\163\x61\155\154\x5f\x69\144\160\x5f\156\141\155\x65\151\x64\137\141\x74\164\162\137\155\x61\160");
$Bg = $gV == "\x65\155\141\151\154\x41\144\144\x72\145\x73\x73" ? $user->mail : $user->name;
IDPUtilities::mo_idp_send_logout_request($Bg, $Q9, $yQ);
TA:
}
function miniorange_saml_idp_samllogout()
{
global $base_url;
$VC = $base_url . "\57";
$Q9 = $VC . "\x3f\x71\75\x61\x64\x6d\x69\156\57\143\157\156\x66\151\147\57\160\x65\x6f\160\x6c\x65\57\155\x69\156\x69\157\162\x61\156\x67\145\137\x73\x61\155\x6c\137\x69\144\160\57";
$yQ = variable_get("\x6d\151\156\x69\157\x72\x61\x6e\147\x65\137\163\x61\155\x6c\x5f\151\x64\x70\x5f\163\154\x6f\x5f\x75\162\x6c", '');
if (empty($yQ)) {
goto rg;
}
if (array_key_exists("\123\x41\115\114\x52\145\161\165\x65\x73\x74", $_REQUEST) && !empty($_REQUEST["\x53\101\115\x4c\x52\x65\x71\x75\x65\163\x74"])) {
goto Et;
}
if (!(array_key_exists("\x53\101\115\114\122\x65\x73\160\x6f\x6e\163\x65", $_REQUEST) && !empty($_REQUEST["\x53\x41\115\x4c\122\145\x73\x70\157\156\163\x65"]))) {
goto p2;
}
IDPUtilities::_read_saml_response($_REQUEST, $_GET);
p2:
goto e9;
Et:
IDPUtilities::_read_samllogout_request($_REQUEST, $_GET);
e9:
goto Vq;
rg:
session_destroy();
drupal_goto($base_url);
exit;
Vq:
}
function miniorange_saml_idp_initiated_login()
{
global $base_url;
$h_ = $_REQUEST["\x73\160"];
$Cn = variable_get("\155\x69\156\151\157\x72\141\x6e\147\145\x5f\x73\141\155\x6c\x5f\x69\x64\160\137\163\x70\137\x6e\x61\x6d\x65", '');
if (!($h_ != $Cn)) {
goto NV;
}
drupal_goto($base_url);
NV:
$I8 = variable_get("\x6d\151\156\x69\x6f\x72\141\x6e\x67\x65\137\163\x61\155\154\137\151\x64\160\x5f\x61\143\x73\137\165\x72\x6c", '');
$c8 = variable_get("\x6d\151\156\151\x6f\162\141\x6e\x67\x65\137\163\141\x6d\x6c\137\x69\144\x70\x5f\163\160\137\x65\156\x74\151\x74\171\x5f\151\x64", '');
$o5 = '';
if (!isset($_REQUEST["\122\145\154\x61\x79\x53\164\x61\164\x65"])) {
goto Dy;
}
$o5 = $_REQUEST["\x52\145\x6c\x61\171\123\164\141\x74\x65"];
Dy:
$xv = variable_get("\155\x69\156\151\157\x72\141\x6e\147\145\137\163\x61\x6d\x6c\137\x69\144\x70\x5f\x72\145\154\x61\171\x5f\163\164\141\x74\145", '');
if (!(!empty($xv) && !is_null($xv))) {
goto vW;
}
$o5 = $xv;
vW:
mo_idp_authorize_user($I8, $c8, $o5);
}
function _read_saml_request($Wb, $Dd)
{
$C0 = $Wb["\123\x41\115\x4c\x52\145\x71\x75\145\x73\x74"];
$Mj = '';
if (!array_key_exists("\122\x65\x6c\x61\171\123\164\141\x74\x65", $Wb)) {
goto jd;
}
$Mj = $Wb["\122\145\154\x61\x79\123\164\x61\x74\145"];
jd:
$C0 = base64_decode($C0);
if (!(array_key_exists("\123\x41\115\x4c\122\145\161\165\145\x73\164", $Dd) && !empty($Dd["\123\x41\x4d\x4c\x52\145\x71\165\145\163\164"]))) {
goto q0;
}
$C0 = gzinflate($C0);
q0:
$s6 = new DOMDocument();
$s6->loadXML($C0);
$CF = $s6->firstChild;
$R6 = new AuthnRequest($CF);
$errors = '';
if (!(strtotime($R6->getIssueInstant()) > time() + 60)) {
goto FB;
}
$errors .= "\x3c\x73\x74\162\157\156\147\x3e\111\116\126\x41\x4c\111\x44\137\x52\x45\x51\125\105\x53\124\72\x20\74\57\163\x74\x72\x6f\156\x67\76\122\x65\x71\x75\145\163\x74\40\164\151\155\x65\40\151\163\x20\x67\x72\x65\x61\164\x65\x72\x20\x74\150\141\x6e\40\164\150\x65\40\143\x75\x72\162\145\156\x74\40\164\151\x6d\x65\x2e\x3c\x62\x72\57\x3e";
FB:
if (!($R6->getVersion() !== "\62\x2e\60")) {
goto S2;
}
$errors .= "\x57\145\x20\x6f\156\x6c\171\40\163\165\160\x70\157\162\x74\x20\123\x41\x4d\x4c\40\x32\x2e\x30\41\40\x50\154\145\x61\163\x65\x20\163\x65\x6e\x64\40\141\40\123\x41\x4d\114\x20\x32\56\x30\40\162\x65\x71\x75\145\163\164\56\74\x62\162\x2f\x3e";
S2:
$I8 = variable_get("\155\x69\156\x69\x6f\x72\x61\x6e\147\x65\137\x73\x61\x6d\x6c\137\151\144\160\x5f\x61\143\163\137\x75\x72\x6c", '');
$c8 = variable_get("\155\151\x6e\151\x6f\x72\141\156\x67\145\137\163\141\x6d\x6c\x5f\151\x64\x70\137\x73\160\137\145\x6e\164\x69\x74\x79\x5f\x69\x64", '');
$U1 = $R6->getAssertionConsumerServiceURL();
$Ow = $R6->getIssuer();
if (empty($I8) || empty($c8)) {
goto lq;
}
if (!(!is_null($U1) && strcmp($I8, $U1) !== 0)) {
goto PN;
}
$errors .= "\x3c\163\164\162\x6f\x6e\147\76\x49\x4e\x56\x41\x4c\x49\x44\137\x41\103\123\72\40\74\57\163\x74\x72\157\x6e\x67\76\111\x6e\x76\x61\154\151\144\x20\101\103\123\40\x55\122\x4c\x21\56\x20\x50\x6c\145\141\x73\x65\40\x63\150\x65\143\153\x20\x79\157\x75\162\40\x53\145\162\166\151\x63\x65\x20\120\162\157\166\x69\x64\x65\162\x20\103\x6f\156\146\x69\147\x75\162\x61\x74\x69\x6f\156\x73\56\x3c\142\x72\57\x3e";
PN:
if (!(strcmp($c8, $Ow) !== 0)) {
goto On;
}
$errors .= "\x3c\163\x74\x72\x6f\x6e\147\x3e\x49\x4e\x56\x41\114\111\104\x5f\111\123\123\125\x45\x52\72\x20\74\57\x73\x74\162\x6f\156\x67\76\111\x6e\166\141\x6c\x69\x64\40\111\x73\x73\165\x65\x72\x21\x20\120\154\145\x61\163\145\40\x63\150\x65\143\153\x20\171\x6f\x75\x72\x20\143\157\x6e\x66\x69\x67\165\162\x61\x74\x69\157\x6e\x2e\x3c\142\x72\57\x3e";
On:
goto fG;
lq:
$errors .= "\x3c\x73\164\x72\157\x6e\147\76\x49\116\x56\x41\114\x49\104\x5f\x53\120\x3a\x20\74\x2f\163\x74\x72\157\156\x67\76\123\145\162\x76\151\x63\145\x20\x50\x72\157\166\151\x64\145\x72\x20\151\163\40\x6e\x6f\x74\x20\143\x6f\x6e\x66\151\x67\x75\x72\x65\144\x2e\x20\120\x6c\145\141\163\145\x20\143\157\156\x66\151\147\x75\162\x65\40\x79\x6f\165\162\40\123\x65\162\166\x69\x63\x65\40\x50\162\x6f\x76\151\x64\145\162\56\x3c\x62\x72\57\76";
fG:
$e3 = $R6->getRequestID();
if (!empty($errors)) {
goto bI;
}
$iY = IDPUtilities::validateElement($CF);
$Dm = variable_get("\155\151\x6e\151\157\162\141\156\147\145\x5f\x73\141\155\x6c\x5f\x69\144\160\137\143\x65\x72\164\x69\x66\151\143\x61\164\x65\137\163\151\x67\x6e\x65\144", '');
$Dm = XMLSecurityKey::getRawThumbprint($Dm);
$Dm = iconv("\x55\124\x46\55\x38", "\103\x50\61\62\x35\x32\57\57\111\x47\x4e\x4f\122\x45", $Dm);
$Dm = preg_replace("\x2f\x5c\163\53\x2f", '', $Dm);
if (!($iY !== FALSE)) {
goto MR;
}
$eZ = IDPUtilities::processRequest($Dm, $iY);
if (!($eZ === FALSE)) {
goto QN;
}
$errors .= "\74\x73\164\x72\x6f\156\x67\76\x49\116\126\x41\x4c\111\x44\x5f\123\111\107\116\x41\124\125\122\x45\72\x20\x3c\x2f\163\164\x72\x6f\x6e\147\x3e\x49\156\166\141\154\x69\x64\x20\x53\151\147\156\141\x74\165\162\x65\x21\x2e\74\x62\x72\x2f\76";
exit;
QN:
MR:
bI:
if (empty($errors)) {
goto ye;
}
echo sprintf($errors);
exit;
goto ZS;
ye:
mo_idp_authorize_user($I8, $Ow, $Mj, $e3);
ZS:
}
function mo_idp_authorize_user($I8, $hO, $Mj, $e3 = null)
{
global $user;
if (user_is_logged_in()) {
goto ZL;
}
$AY = array("\155\157\111\144\x70\x73\145\x6e\144\x52\145\163\160\157\x6e\x73\145" => "\x74\x72\x75\x65", "\141\x63\x73\137\165\162\154" => $I8, "\x61\x75\x64\x69\145\156\143\145" => $hO, "\162\145\154\141\171\123\164\141\164\x65" => $Mj, "\x69\156\x52\x65\163\160\157\156\163\145\x54\157" => $e3);
setcookie("\162\145\x73\x70\157\x6e\163\145\x5f\x70\x61\162\141\x6d\x73", json_encode($AY));
global $base_url;
$Ai = $base_url . "\x2f";
$UH = variable_get("\x6d\x69\x6e\x69\157\x72\141\156\147\145\x5f\x73\141\155\154\137\x69\144\x70\x5f\144\162\x75\x70\x61\154\137\x6c\157\147\151\156\x5f\x70\x61\147\x65\x5f\x75\x72\154", '');
$Ai = isset($UH) && !empty($UH) ? $UH : $Ai;
drupal_goto($Ai);
goto Tf;
ZL:
mo_idp_send_reponse($I8, $hO, $Mj, $e3);
Tf:
}
function mo_idp_send_reponse($I8, $hO, $Mj, $e3 = null)
{
global $user;
$current_user = $user;
$ZK = $current_user->mail;
$Zs = $current_user->name;
global $base_url;
$Q9 = $base_url . "\57\x3f\161\75\x61\144\155\x69\x6e\x2f\x63\157\156\146\151\x67\x2f\x70\145\157\160\x6c\145\57\155\151\x6e\x69\157\x72\x61\156\147\x65\x5f\163\141\155\x6c\137\x69\x64\x70\x2f";
$uQ = variable_get("\155\x69\156\151\x6f\x72\x61\156\147\145\137\x73\x61\x6d\154\137\151\x64\x70\x5f\156\141\155\145\x69\144\x5f\x61\164\164\162\x5f\x6d\x61\160");
$k8 = variable_get("\x6d\151\x6e\x69\157\x72\141\x6e\147\x65\137\163\141\x6d\x6c\137\151\144\160\x5f\162\145\163\x70\157\156\x73\x65\137\163\x69\147\x6e\145\144");
$FN = variable_get("\155\x69\x6e\151\157\162\141\x6e\147\x65\137\163\x61\155\154\137\151\x64\x70\x5f\141\x73\163\x65\162\164\151\157\156\137\163\151\147\156\x65\x64");
$NB = variable_get("\155\151\156\x69\x6f\162\141\156\147\145\137\x73\141\155\x6c\x5f\x69\144\160\x5f\145\156\143\x72\171\160\x74\145\144\x5f\x61\x73\x73\145\162\x74\x69\157\x6e");
$sR = variable_get("\x6d\x69\x6e\151\x6f\162\141\156\147\145\137\x73\141\x6d\154\137\x69\x64\x70\137\x63\x65\x72\164\x69\146\x69\x63\x61\164\x65\137\145\x6e\x63\162\171\x70\164\145\x64");
$pl = variable_get("\155\x69\x6e\x69\157\x72\x61\x6e\147\x65\x5f\163\x61\155\154\x5f\151\x64\x70\137\x6e\x61\x6d\x65\151\144\137\x66\x6f\162\x6d\x61\164");
$gX = mo_get_idp_attributes($current_user);
$HU = module_invoke_all("\155\x6f\x5f\x69\144\x70\137\x61\164\x74\141\x63\150\x5f\141\164\164\162\151\x62\165\x74\x65\163", $current_user);
$gX = array_merge($gX, $HU);
$yU = variable_get("\x6d\x69\156\157\x72\141\156\147\145\x5f\x73\141\155\x6c\137\x63\165\163\164\157\155\145\x72\137\141\x64\155\151\x6e\x5f\146\x72\141\x75\x64\x5f\x63\150\145\143\153");
$OH = variable_get("\155\151\156\x69\157\x72\141\156\147\x65\x5f\163\x61\x6d\x6c\137\x69\144\x70\137\x63\165\163\x74\x6f\x6d\145\x72\137\141\144\155\151\156\137\x74\157\x6b\145\x6e");
$un = variable_get("\155\x69\x6e\151\x6f\162\141\156\147\x65\x5f\x73\x61\155\x6c\137\151\144\160\137\143\x75\163\x74\x6f\x6d\x65\x72\137\141\x64\155\x69\156\x5f\145\x6d\x61\x69\x6c");
$Gy = variable_get("\x6d\151\x6e\x69\157\162\141\x6e\x67\x65\137\163\141\155\x6c\137\151\144\160\137\x73\x6d\154\x5f\x6c\x6b");
global $base_url;
$P2 = str_ireplace("\150\x74\164\160\x3a", "\150\x74\164\x70\x73\72", $base_url);
$Rg = $P2 . $OH;
if (($Rg == IDPUtilities::decrypt($yU, $OH) || $Rg == IDPUtilities::decrypt($yU, $OH, "\x41\105\x53\x2d\61\x32\70\x2d\105\x43\x42")) && $un != null && $un != '') {
goto AH;
}
if ($un != null && $un != '') {
goto y3;
}
if (!($un == null || $un == '')) {
goto xB;
}
echo "\x3c\144\151\166\40\163\164\x79\154\145\x3d\42\146\157\156\x74\x2d\x66\141\x6d\151\154\171\72\103\x61\x6c\151\x62\x72\151\73\x70\141\144\144\x69\x6e\147\72\60\40\63\x25\73\42\x3e";
echo "\x3c\144\x69\x76\x20\x73\x74\x79\154\x65\75\x22\x63\157\154\157\162\x3a\40\43\x61\x39\64\64\x34\x32\73\x62\x61\143\153\x67\x72\x6f\x75\x6e\x64\x2d\143\x6f\x6c\157\x72\x3a\x20\x23\x66\62\144\145\x64\x65\x3b\x70\141\144\144\x69\x6e\147\x3a\40\x31\x35\160\170\73\155\x61\162\x67\x69\x6e\x2d\142\157\164\164\x6f\155\72\x20\62\x30\x70\170\73\x74\x65\x78\x74\x2d\141\x6c\151\147\156\x3a\143\x65\x6e\164\x65\162\x3b\142\157\x72\x64\x65\162\72\61\160\170\x20\163\x6f\154\151\144\40\x23\x45\x36\102\63\x42\62\x3b\146\x6f\156\164\55\x73\151\172\x65\72\x31\x38\160\164\x3b\42\76\x20\105\x52\122\x4f\122\74\57\144\x69\x76\x3e\15\xa\x20\x20\40\40\40\x20\x20\x20\40\x20\x20\40\x20\x20\x20\x20\x20\x20\40\40\x20\40\x20\40\40\x20\40\40\x3c\x64\151\x76\x20\x73\x74\171\x6c\145\75\x22\x63\x6f\x6c\157\162\x3a\x20\43\x61\71\x34\64\64\x32\73\x66\x6f\x6e\x74\x2d\x73\x69\x7a\x65\x3a\61\64\160\164\x3b\40\155\x61\162\x67\151\x6e\x2d\142\157\164\x74\x6f\x6d\72\62\x30\160\x78\x3b\42\x3e\x3c\160\76\x3c\x73\x74\162\x6f\x6e\147\76\105\x72\162\157\162\72\x20\74\57\x73\164\x72\157\156\x67\x3e\131\x6f\x75\x20\x61\x72\145\40\156\x6f\x74\x20\154\157\147\x67\x65\144\x20\x69\156\56\74\57\x70\x3e\xd\xa\x20\40\x20\40\x20\x20\x20\x20\40\40\x20\40\x20\40\40\x20\40\x20\40\x20\x20\40\x20\x20\x20\x20\x20\40\40\40\x20\x20\74\160\x3e\120\154\145\x61\x73\145\40\154\157\147\151\156\x20\x66\151\162\163\164\40\164\157\x20\141\143\x74\x69\166\x61\x74\x65\40\163\x69\x6e\x67\154\x65\40\163\151\x67\x6e\40\x6f\x6e\56\x3c\x2f\160\76\xd\12\x20\40\x20\x20\40\x20\x20\x20\40\x20\x20\40\40\40\x20\40\40\x20\x20\x20\40\40\40\40\x20\40\x20\x20\x20\x20\x20\40\74\x70\76\x3c\163\164\x72\x6f\x6e\147\76\x50\157\163\163\151\x62\x6c\145\x20\x43\141\165\163\x65\72\40\x3c\57\163\x74\x72\157\156\147\76\115\x61\153\x65\x20\x73\165\x72\145\40\171\157\165\x20\150\141\166\145\40\154\x6f\x67\147\145\x64\x20\x69\x6e\x2f\x20\122\x65\x67\x69\163\164\x65\x72\x20\151\x6e\40\x74\x6f\40\155\157\144\165\154\145\56\x3c\57\160\x3e\15\xa\x20\x20\40\x20\x20\x20\40\x20\x20\40\40\40\x20\x20\40\40\x20\x20\40\x20\40\40\x20\x20\x20\x20\40\40\74\x2f\144\151\166\x3e\xd\12\x20\40\40\x20\x20\x20\x20\x20\40\x20\40\40\40\x20\x20\40\x20\40\x20\40\x20\x20\x20\40\40\40\40\40\x3c\x64\x69\x76\x20\x73\164\171\154\x65\75\x22\x6d\141\162\x67\x69\156\72\x33\x25\x3b\144\151\163\160\154\x61\x79\x3a\142\x6c\157\143\153\73\x74\145\x78\164\x2d\x61\154\151\x67\156\x3a\143\145\156\x74\x65\x72\x3b\x22\76\74\57\144\x69\166\x3e\15\xa\40\40\40\40\40\x20\40\40\40\x20\40\x20\40\x20\40\40\x20\40\40\40\x20\40\x20\x20\40\40\x20\x20\74\144\x69\166\40\163\x74\x79\x6c\x65\x3d\42\x6d\x61\162\x67\151\x6e\72\x33\x25\73\x64\x69\x73\x70\x6c\x61\171\x3a\x62\154\157\x63\x6b\73\x74\145\170\164\x2d\141\154\x69\147\x6e\72\143\x65\x6e\164\145\x72\73\42\x3e\xd\xa\x20\40\40\x20\40\40\x20\x20\40\40\40\40\40\x20\x20\40\40\x20\40\40\x20\x20\40\x20\x20\x20\x20\40\40\40\x20\40\74\151\156\160\x75\164\40\163\164\x79\154\145\x3d\x22\x70\141\x64\144\151\x6e\x67\x3a\61\45\x3b\x77\151\144\x74\x68\x3a\61\60\60\160\170\x3b\x62\x61\143\153\147\x72\157\165\x6e\x64\72\x20\x23\x30\60\x39\x31\103\104\40\x6e\157\156\145\x20\162\145\x70\x65\141\x74\x20\x73\143\x72\157\154\154\x20\x30\45\x20\x30\x25\73\143\x75\162\163\x6f\162\x3a\40\160\x6f\x69\x6e\164\145\x72\73\x66\x6f\156\x74\55\163\151\172\x65\72\61\65\x70\x78\73\142\157\162\x64\145\162\55\167\x69\144\164\150\x3a\x20\x31\x70\170\x3b\142\x6f\162\x64\x65\x72\55\163\164\171\x6c\145\x3a\40\x73\157\x6c\151\x64\73\142\157\x72\x64\145\x72\x2d\162\x61\x64\151\x75\x73\72\40\x33\160\x78\x3b\167\150\x69\164\145\x2d\x73\160\x61\x63\145\x3a\40\156\157\167\x72\141\160\x3b\142\157\170\55\163\x69\172\151\156\147\x3a\x20\142\x6f\162\x64\x65\x72\x2d\142\x6f\x78\73\142\x6f\162\144\145\162\55\x63\x6f\154\157\162\x3a\x20\x23\60\60\x37\x33\x41\101\x3b\142\x6f\x78\55\x73\x68\141\x64\x6f\167\x3a\x20\x30\x70\x78\40\x31\x70\170\40\x30\x70\x78\40\162\x67\x62\x61\x28\61\62\60\54\x20\x32\60\60\54\x20\62\63\60\x2c\40\x30\56\x36\x29\40\151\x6e\x73\145\164\73\143\x6f\154\157\x72\x3a\40\43\x46\x46\106\x3b\42\164\171\160\145\75\42\x62\165\x74\164\x6f\x6e\x22\40\x76\141\154\x75\x65\75\42\x44\x6f\156\145\x22\40\157\x6e\103\x6c\151\x63\x6b\75\42\x73\x65\154\146\56\x63\154\157\163\145\x28\x29\x3b\x22\x3e\15\12\x20\x20\40\40\x20\x20\40\40\x20\40\40\40\x20\x20\x20\40\x20\40\40\40\x20\x20\40\x20\40\x20\40\x20\74\x2f\x64\151\166\x3e";
exit;
xB:
goto nP;
y3:
echo "\x3c\x64\x69\166\x20\x73\x74\x79\x6c\x65\x3d\x22\x66\x6f\x6e\164\55\x66\x61\x6d\151\x6c\171\72\103\x61\x6c\x69\142\x72\x69\73\160\141\144\x64\x69\156\x67\72\60\40\63\x25\x3b\x22\x3e";
echo "\74\x64\151\x76\40\x73\x74\x79\154\145\x3d\x22\x63\157\154\157\x72\72\x20\x23\x61\71\x34\64\x34\x32\73\142\x61\x63\x6b\147\162\157\165\x6e\x64\x2d\x63\157\154\x6f\162\72\x20\43\146\x32\144\x65\x64\x65\x3b\x70\x61\144\144\x69\156\147\72\x20\61\65\160\170\x3b\155\x61\162\147\151\156\55\142\157\x74\x74\x6f\x6d\72\x20\62\60\160\170\x3b\x74\x65\x78\x74\55\141\154\151\x67\x6e\x3a\143\x65\x6e\x74\x65\x72\73\x62\x6f\162\x64\145\162\72\61\x70\x78\40\x73\x6f\x6c\151\144\x20\x23\105\x36\102\x33\x42\62\x3b\146\157\x6e\164\x2d\163\x69\x7a\x65\72\x31\x38\x70\x74\x3b\x22\x3e\40\105\122\122\117\x52\74\57\x64\x69\166\x3e\xd\xa\40\x20\x20\40\x20\x20\x20\x20\x20\40\x20\40\x20\40\40\40\x20\40\40\x20\40\40\40\40\x20\40\40\x20\x3c\144\151\x76\x20\x73\x74\171\154\x65\x3d\x22\x63\157\x6c\157\162\72\x20\43\141\x39\64\x34\64\62\x3b\146\x6f\156\164\x2d\x73\x69\x7a\145\72\x31\x34\x70\x74\x3b\40\155\141\162\x67\x69\x6e\x2d\x62\157\x74\x74\157\x6d\x3a\62\60\x70\170\73\42\x3e\74\x70\x3e\74\163\164\x72\x6f\x6e\x67\x3e\105\162\x72\x6f\162\x3a\40\74\x2f\x73\164\162\157\156\147\x3e\x4c\x69\x63\x65\x6e\163\x65\x20\x6b\x65\x79\40\171\157\165\40\x68\x61\x76\145\40\145\156\164\x65\x72\x65\144\x20\x68\141\x73\40\141\154\x72\x65\x61\144\x79\40\x62\x65\x65\156\40\x75\x73\x65\144\56\x3c\x2f\160\76\15\12\x20\x20\40\x20\x20\40\x20\40\x20\x20\x20\40\40\40\40\40\40\40\40\x20\40\40\x20\x20\x20\x20\x20\x20\x20\40\x20\x20\x3c\x70\76\x50\154\145\141\163\145\x20\x65\x6e\164\x65\x72\40\141\x20\x6b\x65\x79\40\x77\x68\151\x63\x68\x20\x68\x61\x73\40\156\157\x74\x20\x62\x65\x65\x6e\40\165\x73\x65\x64\40\x62\x65\146\x6f\162\x65\x20\x6f\156\40\x61\x6e\171\40\x6f\x74\150\145\x72\x20\151\x6e\163\164\141\156\x63\x65\40\157\162\x20\x69\146\x20\171\x6f\x75\x20\150\141\166\x65\40\x65\170\141\165\x73\164\x65\144\40\x61\154\154\40\171\157\x75\x72\x20\153\x65\171\163\40\x74\x68\x65\156\40\x62\165\x79\40\155\157\162\x65\x20\154\x69\x63\x65\x6e\x73\145\40\146\162\x6f\x6d\x20\114\x69\143\145\x6e\x73\x69\156\x67\x2e\x3c\57\x70\x3e\xd\xa\40\40\40\40\40\40\40\x20\x20\x20\x20\40\x20\40\x20\x20\x20\x20\x20\x20\40\x20\x20\40\40\40\40\x20\x3c\57\x64\x69\166\x3e\15\12\x20\x20\40\x20\40\40\40\40\x20\x20\40\40\40\40\40\x20\x20\x20\x20\40\x20\x20\40\40\x20\x20\40\40\74\x64\151\x76\x20\163\164\x79\154\145\x3d\42\155\x61\x72\147\151\156\x3a\x33\x25\x3b\144\x69\x73\160\x6c\x61\171\x3a\x62\x6c\157\x63\153\x3b\164\145\170\x74\x2d\x61\x6c\x69\x67\156\72\143\x65\x6e\x74\x65\162\73\x22\76\x3c\57\x64\x69\166\x3e\xd\xa\40\x20\40\40\x20\x20\40\x20\x20\x20\40\x20\x20\40\x20\40\40\x20\40\40\x20\40\x20\40\40\x20\40\40\x3c\144\x69\166\40\163\164\x79\x6c\145\x3d\x22\x6d\141\162\x67\x69\x6e\72\x33\x25\x3b\x64\x69\x73\160\154\x61\x79\72\x62\x6c\157\143\x6b\x3b\164\x65\170\x74\x2d\141\x6c\151\147\156\x3a\143\145\156\164\x65\162\x3b\x22\x3e\15\xa\x20\x20\x20\x20\40\x20\40\x20\x20\40\40\40\x20\40\x20\x20\40\x20\x20\40\40\x20\40\40\40\40\x20\40\x20\x20\x20\40\x3c\x69\x6e\x70\165\x74\40\163\x74\x79\x6c\x65\x3d\42\160\141\144\144\151\156\147\x3a\61\45\x3b\167\x69\x64\x74\x68\x3a\x31\x30\x30\x70\170\x3b\142\141\143\x6b\x67\162\157\x75\x6e\x64\x3a\x20\43\x30\60\71\x31\x43\x44\x20\x6e\x6f\x6e\145\x20\162\x65\160\x65\141\x74\40\x73\x63\162\157\154\x6c\x20\60\45\40\x30\45\x3b\143\x75\162\x73\x6f\162\72\40\160\x6f\151\156\x74\x65\x72\73\x66\x6f\156\164\x2d\163\x69\172\145\72\61\65\x70\x78\73\142\x6f\162\144\145\162\55\167\151\144\164\150\72\x20\x31\x70\170\73\142\157\162\144\145\x72\55\x73\x74\x79\154\x65\72\x20\x73\157\x6c\x69\144\x3b\142\x6f\162\x64\x65\162\x2d\x72\141\144\x69\x75\x73\72\x20\63\x70\170\x3b\167\x68\151\164\145\55\x73\x70\141\x63\x65\72\x20\x6e\157\167\x72\x61\160\x3b\x62\x6f\170\55\163\x69\x7a\151\x6e\147\x3a\40\142\x6f\x72\x64\x65\162\55\142\x6f\x78\x3b\x62\157\x72\x64\145\x72\x2d\143\157\x6c\157\162\x3a\x20\x23\60\x30\67\x33\x41\101\73\x62\x6f\x78\x2d\x73\150\141\144\157\167\72\40\60\x70\x78\x20\61\x70\170\40\x30\160\170\40\162\147\x62\141\50\x31\62\60\54\x20\62\60\x30\x2c\x20\x32\63\60\54\40\60\x2e\x36\x29\x20\x69\x6e\x73\145\x74\73\x63\157\x6c\x6f\162\x3a\40\x23\x46\106\106\x3b\x22\x74\171\160\x65\75\42\142\165\x74\164\x6f\156\42\x20\x76\141\x6c\165\145\75\42\x44\157\x6e\145\x22\40\x6f\156\x43\x6c\x69\x63\153\x3d\42\x73\145\x6c\x66\x2e\143\154\x6f\163\145\x28\51\73\42\x3e\xd\12\x20\40\x20\40\40\40\x20\40\x20\x20\x20\40\40\x20\40\40\40\40\x20\x20\40\x20\40\40\40\x20\x20\40\74\57\x64\151\x76\x3e";
exit;
nP:
goto jq;
AH:
if (isset($Gy)) {
goto Zs;
}
echo "\74\144\x69\x76\40\x73\164\171\x6c\145\x3d\42\146\157\x6e\x74\55\x66\x61\x6d\x69\154\171\x3a\x43\141\154\x69\142\x72\x69\73\x70\x61\144\144\151\x6e\x67\x3a\60\x20\63\45\x3b\42\x3e";
echo "\x3c\x64\151\x76\40\x73\x74\171\x6c\x65\75\42\143\x6f\154\157\162\72\40\x23\x61\x39\x34\64\64\62\73\x62\141\143\153\147\x72\x6f\165\156\x64\x2d\x63\157\x6c\x6f\x72\x3a\40\43\146\x32\144\145\144\145\x3b\160\x61\144\144\x69\156\147\72\x20\61\x35\x70\170\73\x6d\x61\162\x67\151\156\x2d\142\x6f\x74\164\157\x6d\x3a\40\x32\60\160\x78\x3b\x74\x65\x78\x74\x2d\141\154\x69\147\x6e\72\143\x65\156\x74\145\162\x3b\142\157\162\x64\x65\x72\72\x31\x70\x78\x20\x73\157\x6c\151\144\40\x23\x45\66\102\63\102\62\73\x66\x6f\156\164\55\x73\151\x7a\x65\72\61\x38\x70\x74\x3b\42\76\40\x45\122\122\x4f\x52\x3c\x2f\x64\151\166\x3e\xd\xa\40\x20\x20\40\x20\x20\x20\x20\x20\x20\40\40\40\40\x20\40\40\x20\x20\x20\x20\x20\40\40\x20\40\x20\x20\x3c\144\x69\x76\x20\163\x74\171\154\x65\x3d\42\143\x6f\x6c\x6f\162\72\x20\x23\x61\71\x34\64\64\x32\73\x66\x6f\x6e\164\x2d\163\151\x7a\x65\72\x31\x34\160\x74\x3b\40\x6d\x61\162\147\x69\x6e\x2d\x62\157\x74\164\157\155\x3a\62\60\x70\170\73\x22\76\74\160\76\74\163\x74\x72\x6f\x6e\147\x3e\x45\162\x72\157\x72\72\x20\x3c\x2f\163\x74\x72\x6f\156\x67\x3e\x59\157\x75\x20\150\141\x76\145\40\x6e\157\x74\40\141\143\164\151\x76\141\164\x65\144\40\x6d\x6f\144\165\x6c\145\x20\x79\145\164\56\x3c\57\x70\76\xd\xa\40\x20\x20\x20\x20\x20\40\x20\x20\40\x20\40\40\x20\40\40\x20\40\40\40\x20\x20\x20\40\40\x20\40\40\x20\40\x20\40\x3c\x70\x3e\x50\x6c\145\x61\163\x65\40\145\156\164\145\162\40\141\40\114\x69\x63\x65\156\x73\x65\x20\x6b\145\x79\x20\167\150\x69\143\150\40\150\141\x73\x20\156\157\x74\40\142\x65\x65\156\40\165\163\145\x64\40\142\145\146\x6f\162\145\x20\157\156\40\141\x6e\171\x20\x6f\164\x68\x65\x72\x20\x69\x6e\x73\164\x61\156\143\x65\40\x6f\x72\40\151\146\x20\x79\157\x75\x20\150\x61\x76\145\40\x65\170\141\x75\x73\x74\145\x64\40\x61\154\x6c\x20\x79\157\x75\x72\40\x6b\145\x79\x73\40\x74\x68\x65\156\40\x62\165\171\40\x6d\x6f\x72\x65\x20\x6c\151\143\145\156\163\145\x20\x66\x72\157\x6d\40\x4c\151\x63\x65\x6e\x73\151\x6e\x67\x2e\x3c\57\160\76\xd\xa\40\x20\x20\40\40\x20\x20\x20\40\40\x20\40\40\40\x20\40\40\x20\40\40\40\40\x20\x20\x20\x20\x20\40\74\x2f\144\x69\x76\x3e\15\12\40\x20\x20\x20\40\40\40\x20\40\x20\40\x20\x20\x20\x20\40\40\40\x20\40\x20\40\x20\40\x20\40\x20\40\74\x64\x69\x76\x20\163\x74\x79\154\145\x3d\42\155\141\162\x67\x69\x6e\72\x33\x25\73\144\x69\163\160\x6c\141\x79\x3a\142\x6c\157\x63\x6b\73\x74\x65\170\164\x2d\141\154\x69\147\156\x3a\x63\145\x6e\164\145\x72\x3b\42\76\x3c\57\144\151\x76\76\15\xa\x20\x20\40\40\x20\40\x20\x20\x20\x20\x20\40\40\x20\x20\x20\x20\x20\40\40\40\x20\x20\40\40\40\x20\40\x3c\x64\x69\166\x20\163\164\171\154\145\75\42\x6d\x61\162\x67\x69\x6e\x3a\63\x25\x3b\144\151\x73\x70\x6c\141\x79\72\x62\x6c\157\143\x6b\x3b\164\145\170\x74\x2d\x61\154\x69\147\x6e\72\x63\x65\156\x74\x65\162\73\x22\76\15\12\40\x20\x20\40\x20\x20\x20\40\x20\x20\40\x20\40\x20\x20\x20\40\x20\x20\x20\x20\x20\40\40\x20\40\40\40\x20\40\x20\x20\x3c\x69\x6e\x70\x75\x74\x20\163\164\171\x6c\145\75\x22\x70\x61\144\x64\x69\x6e\x67\72\x31\45\73\167\151\x64\164\x68\72\x31\60\x30\160\170\x3b\142\141\x63\x6b\x67\162\x6f\165\x6e\x64\x3a\40\43\60\60\71\61\x43\x44\40\x6e\x6f\x6e\145\x20\162\x65\160\145\x61\164\x20\163\x63\x72\157\154\154\40\x30\x25\40\60\x25\x3b\x63\x75\162\163\157\162\72\x20\160\x6f\151\156\x74\145\x72\x3b\x66\157\156\164\55\x73\x69\x7a\145\x3a\x31\65\160\x78\x3b\x62\157\162\x64\x65\162\55\x77\x69\x64\164\x68\x3a\x20\61\x70\170\73\142\157\x72\x64\x65\x72\55\x73\164\171\154\145\72\x20\x73\157\154\151\144\73\142\157\x72\x64\x65\x72\x2d\x72\141\x64\151\165\x73\x3a\x20\x33\x70\170\x3b\x77\150\151\x74\145\x2d\x73\160\141\143\145\72\40\x6e\157\x77\162\x61\x70\x3b\x62\x6f\x78\x2d\x73\151\x7a\x69\x6e\x67\x3a\40\x62\157\162\x64\x65\x72\x2d\x62\157\x78\73\142\157\162\144\145\x72\55\143\x6f\x6c\157\162\72\40\x23\60\60\x37\x33\x41\x41\x3b\142\x6f\170\x2d\x73\150\141\144\157\167\x3a\x20\x30\x70\170\40\61\160\x78\x20\60\x70\170\40\162\147\x62\x61\x28\61\x32\60\x2c\40\62\60\60\54\x20\62\x33\x30\54\x20\x30\56\66\x29\40\x69\x6e\163\x65\x74\73\x63\157\154\x6f\x72\x3a\40\43\106\106\x46\x3b\x22\164\171\160\145\75\x22\142\165\164\164\157\156\x22\x20\166\x61\x6c\165\x65\x3d\x22\x44\x6f\x6e\x65\x22\40\x6f\156\x43\x6c\151\143\153\75\42\x73\145\154\146\56\x63\x6c\x6f\163\x65\x28\x29\x3b\x22\x3e\15\xa\x20\x20\x20\40\40\40\x20\x20\x20\x20\x20\x20\40\40\40\x20\40\x20\40\40\40\40\40\x20\40\40\40\x20\x3c\x2f\x64\151\166\x3e";
exit;
goto ZU;
Zs:
$la = new GenerateResponse($ZK, $Zs, $I8, $Q9, $hO, $uQ, $k8, $FN, $NB, $sR, $gX, $pl, $e3);
ZU:
jq:
if (isset($_SESSION)) {
goto tE;
}
session_start();
tE:
$_SESSION["\154\x6f\x67\147\x65\144\x5f\x69\156\x5f\167\151\x74\x68\137\x69\144\x70"] = true;
$_COOKIE["\154\157\147\x67\145\144\137\x69\156\x5f\167\151\164\x68\137\151\144\160"] = true;
$xf = $la->createSamlResponse();
unset($_COOKIE["\162\145\163\x70\x6f\x6e\x73\145\137\x70\141\x72\141\155\x73"]);
setcookie("\x72\x65\163\160\157\x6e\163\145\x5f\160\x61\x72\141\x6d\163", '', time() - 3600);
_send_response($xf, $Mj, $I8);
}
function mo_get_idp_attributes($current_user)
{
$ZK = $current_user->mail;
$Zs = $current_user->name;
$Vl = $current_user->status;
$MA = $current_user->roles;
$s1 = $MA;
$AV = array();
$oy = variable_get("\x6d\x69\x6e\151\x6f\162\x61\x6e\x67\145\x5f\x73\x61\x6d\x6c\137\151\x64\160\137\x61\x74\x74\x72\x31\x5f\156\141\x6d\145");
$Kp = variable_get("\155\151\156\x69\157\x72\x61\156\147\x65\137\x73\141\155\154\x5f\x69\x64\160\137\x61\164\x74\x72\x31\137\x76\x61\x6c\x75\145");
if (!(!empty($oy) && !empty($Kp))) {
goto jI;
}
$Or = mo_get_attribute_value($ZK, $Zs, $Vl, $s1, $Kp);
$AV[$oy] = $Or;
jI:
$MG = variable_get("\155\151\x6e\x69\x6f\x72\141\x6e\147\145\x5f\163\141\x6d\x6c\x5f\151\144\x70\x5f\x61\164\x74\162\62\x5f\x6e\141\x6d\145");
$tm = variable_get("\155\151\156\151\x6f\162\x61\x6e\x67\145\x5f\x73\x61\x6d\154\x5f\151\x64\x70\137\141\x74\x74\162\x32\x5f\166\141\x6c\165\145");
if (!(!empty($MG) && !empty($tm))) {
goto VG;
}
$Or = mo_get_attribute_value($ZK, $Zs, $Vl, $s1, $tm);
$AV[$MG] = $Or;
VG:
$mr = variable_get("\155\x69\156\151\x6f\x72\141\156\147\145\137\163\141\x6d\x6c\137\x69\144\160\137\141\164\x74\x72\x33\x5f\x6e\141\x6d\145");
$ho = variable_get("\x6d\151\x6e\x69\x6f\x72\x61\x6e\147\x65\x5f\x73\x61\x6d\x6c\137\x69\144\x70\x5f\141\x74\x74\162\x33\137\x76\141\x6c\165\145");
if (!(!empty($mr) && !empty($ho))) {
goto hR;
}
$Or = mo_get_attribute_value($ZK, $Zs, $Vl, $s1, $ho);
$AV[$mr] = $Or;
hR:
$mg = variable_get("\155\x69\x6e\151\x6f\162\141\156\147\x65\x5f\x73\141\x6d\154\x5f\x69\144\160\137\x61\x74\164\x72\64\x5f\x6e\141\x6d\145");
$DI = variable_get("\155\151\x6e\x69\157\x72\141\x6e\x67\145\137\163\x61\155\x6c\x5f\151\x64\x70\x5f\x61\164\164\x72\x34\x5f\x76\141\154\165\145");
if (!(!empty($mg) && !empty($DI))) {
goto l0;
}
$Or = mo_get_attribute_value($ZK, $Zs, $Vl, $s1, $DI);
$AV[$mg] = $Or;
l0:
$P5 = variable_get("\x6d\151\x6e\151\157\162\141\156\x67\145\x5f\x73\x61\155\154\137\x69\144\x70\x5f\x75\163\x65\x72\x5f\x61\x74\164\x72\151\x62\165\164\145\x73", '');
if (!(isset($P5) && !empty($P5))) {
goto ZD;
}
$P5 = json_decode($P5, true);
$xZ = user_load($current_user->uid);
foreach ($P5 as $a6) {
$Hf = $a6["\141\164\x74\162\x5f\x6e\141\x6d\x65"];
$G7 = $a6["\141\x74\164\x72\x5f\166\x61\x6c\x75\x65"];
if (!isset($xZ->{$G7})) {
goto L2;
}
$mT = $xZ->{$G7};
if (!isset($mT["\165\156\x64"][0]["\166\x61\154\165\x65"])) {
goto KM;
}
$Or = $mT["\165\x6e\x64"][0]["\x76\x61\154\165\x65"];
if (empty($Or)) {
goto PT;
}
$AV[$Hf] = $Or;
PT:
KM:
L2:
sS:
}
pM:
ZD:
return $AV;
}
function mo_get_attribute_value($ZK, $Zs, $Vl, $MA, $Sn)
{
switch ($Sn) {
case "\156\x61\155\145":
return $Zs;
case "\155\141\151\x6c":
return $ZK;
case "\163\164\141\164\x75\163":
return $Vl;
case "\162\x6f\x6c\145\x73":
return $MA;
default:
return '';
}
e0:
r3:
}
function _send_response($xf, $zm, $I8)
{
$xf = base64_encode($xf);
$PR = drupal_get_path("\x6d\x6f\x64\x75\x6c\x65", "\x6d\151\x6e\x69\x6f\162\x61\x6e\x67\x65\137\163\141\x6d\x6c\x5f\151\x64\160");
echo "\74\x64\x69\x76\40\x73\x74\x79\154\145\75\x22\x76\x65\162\x74\x69\143\x61\x6c\55\141\154\151\147\156\x3a\x63\x65\x6e\164\145\x72\73\164\145\170\x74\x2d\141\154\x69\x67\156\x3a\x63\x65\156\x74\145\x72\x3b\167\x69\144\x74\x68\72\x31\x30\x30\x25\73\x66\157\156\x74\55\163\151\172\x65\72\x32\65\x70\x78\x3b\142\x61\143\x6b\147\162\x6f\165\156\x64\55\x63\x6f\x6c\157\x72\72\167\150\151\164\145\73\x22\76\xd\12\11\x20\40\x3c\x69\x6d\147\x20\163\162\143\x3d\x22" . $PR . "\57\x69\156\143\154\165\x64\145\163\57\151\x6d\x61\147\145\163\57\154\x6f\141\x64\145\162\x5f\147\151\146\56\147\x69\x66\x22\x3e\74\57\x69\x6d\x67\x3e\xd\xa\11\x20\x20\x3c\x68\63\x3e\120\122\117\103\x45\123\x53\x49\116\x47\56\56\x2e\120\x4c\105\101\x53\105\40\127\101\111\124\x21\74\x2f\150\x33\76\xd\12\11\74\57\144\x69\x76\76";
echo "\11\x3c\x66\x6f\162\155\x20\x69\x64\x3d\x22\162\x65\x73\160\157\156\x73\145\146\x6f\162\x6d\x22\40\141\143\x74\151\x6f\x6e\75\42";
echo $I8;
echo "\x22\x20\x6d\x65\164\x68\157\144\75\x22\x70\x6f\x73\x74\x22\x3e\15\12\x9\x9\74\x69\156\x70\x75\164\x20\x74\171\160\145\x3d\x22\150\151\x64\x64\145\156\x22\40\156\x61\x6d\x65\75\x22\123\101\x4d\114\x52\145\x73\x70\x6f\x6e\163\x65\x22\x20\166\141\154\165\145\75\42";
echo htmlspecialchars($xf);
echo "\x22\40\x2f\76\15\12\11\x9\74\x69\x6e\160\165\x74\40\164\x79\x70\x65\x3d\x22\150\151\144\x64\145\x6e\42\40\x6e\x61\155\145\75\x22\122\145\x6c\x61\x79\123\164\141\x74\x65\42\40\x76\x61\x6c\165\x65\x3d\x22";
echo $zm;
echo "\42\40\x2f\x3e\xd\xa\x9\x3c\x2f\146\x6f\162\155\76\xd\12\11\74\163\x63\x72\151\x70\x74\x3e\xd\xa\x9\x9\x73\145\164\x54\151\x6d\145\157\165\x74\x28\x66\x75\x6e\x63\x74\151\157\156\x28\x29\x7b\15\xa\x9\x9\x9\x64\157\x63\x75\155\145\156\x74\56\x67\x65\x74\x45\x6c\145\155\x65\x6e\164\102\171\111\x64\x28\47\162\x65\163\x70\x6f\x6e\x73\x65\x66\x6f\162\x6d\47\51\x2e\x73\x75\142\155\x69\x74\x28\51\x3b\xd\xa\11\11\175\x2c\x20\61\x30\60\x29\x3b\15\xa\x9\x3c\x2f\x73\x63\162\151\160\x74\x3e\15\xa";
exit;
}
function miniorange_saml_idp_disable()
{
$V9 = new MiniorangeSAMLIdpCustomer(NULL, NULL, NULL, NULL);
$SL = json_decode($V9->update_status(), true);
if (!(strcasecmp($SL["\163\x74\141\164\165\x73"], "\123\x55\x43\103\x45\123\x53") == 0)) {
goto oc;
}
variable_set("\x6d\x69\x6e\151\x6f\x72\141\x6e\147\145\137\163\x61\155\x6c\137\151\x64\x70\137\x73\164\141\x74\x75\x73", "\x4d\117\111\104\x50\137\126\105\122\111\106\x59\x5f\x4c\x49\x43\x45\x4e\x53\105");
variable_del("\x6d\x69\x6e\151\157\x72\141\156\x67\x65\x5f\163\141\155\154\137\151\144\x70\x5f\x73\x6d\154\137\x6c\153");
variable_del("\155\x69\x6e\151\x6f\162\141\156\147\x65\x5f\163\x61\x6d\154\x5f\151\x64\160\137\163\x70\137\156\x61\x6d\145");
variable_del("\x6d\151\x6e\x69\x6f\162\x61\156\147\x65\137\x73\x61\x6d\x6c\137\x69\144\160\x5f\x73\x70\137\x65\156\x74\151\x74\171\x5f\151\x64");
variable_del("\x6d\151\156\x69\157\162\x61\x6e\147\x65\x5f\x73\141\x6d\x6c\x5f\x69\x64\x70\137\141\143\x73\137\165\x72\x6c");
oc:
}