@@ -27,7 +27,7 @@ |
||
27 | 27 | ?> |
28 | 28 | |
29 | 29 | <?php |
30 | -require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php"; |
|
30 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
31 | 31 | |
32 | 32 | $deco = new \web\lib\admin\PageDecoration(); |
33 | 33 | $validator = new \web\lib\common\InputValidation(); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | ?> |
30 | 30 | |
31 | 31 | <?php |
32 | -require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php"; |
|
32 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
33 | 33 | |
34 | 34 | $deco = new \web\lib\admin\PageDecoration(); |
35 | 35 | $validator = new \web\lib\common\InputValidation(); |
@@ -101,13 +101,13 @@ discard block |
||
101 | 101 | } |
102 | 102 | } |
103 | 103 | |
104 | -$newProfileName = $validator->string($_POST['new_profile'], true); |
|
104 | +$newProfileName = $validator->string($_POST['new_profile'], true); |
|
105 | 105 | $origProfileName = $validator->string($_POST['orig_profile_name'], true); |
106 | 106 | $handle = \core\DBConnection::handle("INST"); |
107 | 107 | |
108 | 108 | $result = runSelect($my_profile->identifier, $fields, 'profile', $handle); |
109 | 109 | $row = $result->fetch_assoc(); |
110 | -$row['showtime']= 0; |
|
110 | +$row['showtime'] = 0; |
|
111 | 111 | $row['preference'] = 1000; |
112 | 112 | copyRow($row, $fields, 'profile', $handle); |
113 | 113 | $newProfileId = $handle->lastID(); |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | \core\common\Entity::intoThePotatoes(); |
138 | 138 | $wizard = new \web\lib\admin\Wizard($wizardMode); |
139 | 139 | $retval = "<fieldset class='option_container_map'> |
140 | - <legend><strong>" . _("Location") . "</strong></legend>"; |
|
140 | + <legend><strong>" . _("Location")."</strong></legend>"; |
|
141 | 141 | $retval .= $wizard->displayHelp("location"); |
142 | 142 | if ($additional) { |
143 | 143 | $retval .= _("You can enter an <strong>additional</strong> location here. You can see the already defined locations in the 'General Information' field."); |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | */ |
155 | 155 | protected function htmlPostEdit($allowDirectInput) { |
156 | 156 | \core\common\Entity::intoThePotatoes(); |
157 | - $retval = "<br/>" . _("Latitude:") . " <input style='width:80px' name='geo_lat' id='geo_lat' " .($allowDirectInput ? "": "readonly"). ">" . _("Longitude:") . " <input name='geo_long' id='geo_long' style='width:80px' " .($allowDirectInput ? "": "readonly"). "></fieldset>"; |
|
157 | + $retval = "<br/>"._("Latitude:")." <input style='width:80px' name='geo_lat' id='geo_lat' ".($allowDirectInput ? "" : "readonly").">"._("Longitude:")." <input name='geo_long' id='geo_long' style='width:80px' ".($allowDirectInput ? "" : "readonly")."></fieldset>"; |
|
158 | 158 | \core\common\Entity::outOfThePotatoes(); |
159 | 159 | return $retval; |
160 | 160 | } |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * <base_url>/copyright.php after deploying the software |
20 | 20 | */ |
21 | 21 | |
22 | -require dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php"; |
|
22 | +require dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php"; |
|
23 | 23 | $colour1 = \config\Master::APPEARANCE['colour1']; |
24 | 24 | $colour2 = \config\Master::APPEARANCE['colour2']; |
25 | 25 | // we need to know if we are serving a RTL language so we can flip some heading |
@@ -34,14 +34,14 @@ discard block |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | body { |
37 | - background: <?php echo $colour1;?>; |
|
37 | + background: <?php echo $colour1; ?>; |
|
38 | 38 | color: #000000; |
39 | 39 | font-family:Verdana, Arial, Helvetica, sans-serif; |
40 | 40 | font-size:11px; |
41 | 41 | height: 100%; |
42 | 42 | margin: 0px; |
43 | 43 | padding: 0px; |
44 | - padding-<?php echo $start;?>: 0px; |
|
44 | + padding-<?php echo $start; ?>: 0px; |
|
45 | 45 | min-width: 700px; |
46 | 46 | font-size: 11px; |
47 | 47 | font-weight: normal; |
@@ -57,18 +57,18 @@ discard block |
||
57 | 57 | } |
58 | 58 | |
59 | 59 | button { |
60 | - background: <?php echo $colour2;?>; |
|
60 | + background: <?php echo $colour2; ?>; |
|
61 | 61 | color: #FFFFFF; |
62 | 62 | min-height: 23px; |
63 | - border-<?php echo $start;?>-style: outset; |
|
64 | - border-<?php echo $start;?>-width: 1px; |
|
65 | - border-<?php echo $start;?>-color: #8bbacb; |
|
63 | + border-<?php echo $start; ?>-style: outset; |
|
64 | + border-<?php echo $start; ?>-width: 1px; |
|
65 | + border-<?php echo $start; ?>-color: #8bbacb; |
|
66 | 66 | border-top-style: outset; |
67 | 67 | border-top-width: 1px; |
68 | 68 | border-top-color: #8bbacb; |
69 | - border-<?php echo $end;?>-style: outset; |
|
70 | - border-<?php echo $end;?>-width: 2px; |
|
71 | - border-<?php echo $end;?>-color: #043d52; |
|
69 | + border-<?php echo $end; ?>-style: outset; |
|
70 | + border-<?php echo $end; ?>-width: 2px; |
|
71 | + border-<?php echo $end; ?>-color: #043d52; |
|
72 | 72 | border-bottom-style: outset; |
73 | 73 | border-bottom-width: 2px; |
74 | 74 | border-bottom-color: #043d52; |
@@ -78,14 +78,14 @@ discard block |
||
78 | 78 | background:#095e80; |
79 | 79 | border-style:inset; |
80 | 80 | position: relative; |
81 | - <?php echo $start;?>: 3px; |
|
81 | + <?php echo $start; ?>: 3px; |
|
82 | 82 | } |
83 | 83 | |
84 | 84 | button.pressedDisabled { |
85 | 85 | background:#999; |
86 | 86 | border-style:inset; |
87 | 87 | position: relative; |
88 | - <?php echo $start;?>: 3px; |
|
88 | + <?php echo $start; ?>: 3px; |
|
89 | 89 | } |
90 | 90 | |
91 | 91 | button.delete { |
@@ -93,14 +93,14 @@ discard block |
||
93 | 93 | } |
94 | 94 | |
95 | 95 | .problemdescription { |
96 | - padding-<?php echo $start;?>:40px; |
|
96 | + padding-<?php echo $start; ?>:40px; |
|
97 | 97 | padding-top: 10px; |
98 | 98 | padding-bottom: 10px; |
99 | 99 | background-color: lightyellow; |
100 | 100 | } |
101 | 101 | |
102 | 102 | .problemsolution { |
103 | - padding-<?php echo $start;?>:40px; |
|
103 | + padding-<?php echo $start; ?>:40px; |
|
104 | 104 | padding-top: 10px; |
105 | 105 | padding-bottom: 10px; |
106 | 106 | background-color: lightgreen; |
@@ -109,15 +109,15 @@ discard block |
||
109 | 109 | .use_borders button.alertButton { |
110 | 110 | color: maroon; |
111 | 111 | background: #bbb; |
112 | - border-<?php echo $start;?>-style: outset; |
|
113 | - border-<?php echo $start;?>-width: 1px; |
|
114 | - border-<?php echo $start;?>-color: #eee; |
|
112 | + border-<?php echo $start; ?>-style: outset; |
|
113 | + border-<?php echo $start; ?>-width: 1px; |
|
114 | + border-<?php echo $start; ?>-color: #eee; |
|
115 | 115 | border-top-style: outset; |
116 | 116 | border-top-width: 1px; |
117 | 117 | border-top-color: #eee; |
118 | - border-<?php echo $end;?>-style: outset; |
|
119 | - border-<?php echo $end;?>-width: 2px; |
|
120 | - border-<?php echo $end;?>-color: #444; |
|
118 | + border-<?php echo $end; ?>-style: outset; |
|
119 | + border-<?php echo $end; ?>-width: 2px; |
|
120 | + border-<?php echo $end; ?>-color: #444; |
|
121 | 121 | border-bottom-style: outset; |
122 | 122 | border-bottom-width: 2px; |
123 | 123 | border-bottom-color: #444; |
@@ -127,15 +127,15 @@ discard block |
||
127 | 127 | button[disabled] { |
128 | 128 | background: #bababa; |
129 | 129 | color: #6a6a6a; |
130 | - border-<?php echo $start;?>-style: inset; |
|
131 | - border-<?php echo $start;?>-width: 1px; |
|
132 | - border-<?php echo $start;?>-color: #dadada; |
|
130 | + border-<?php echo $start; ?>-style: inset; |
|
131 | + border-<?php echo $start; ?>-width: 1px; |
|
132 | + border-<?php echo $start; ?>-color: #dadada; |
|
133 | 133 | border-top-style: inset; |
134 | 134 | border-top-width: 1px; |
135 | 135 | border-top-color: #dadada; |
136 | - border-<?php echo $end;?>-style: outset; |
|
137 | - border-<?php echo $end;?>-width: 2px; |
|
138 | - border-<?php echo $end;?>-color: #dadada; |
|
136 | + border-<?php echo $end; ?>-style: outset; |
|
137 | + border-<?php echo $end; ?>-width: 2px; |
|
138 | + border-<?php echo $end; ?>-color: #dadada; |
|
139 | 139 | border-bottom-style: outset; |
140 | 140 | border-bottom-width: 2px; |
141 | 141 | border-bottom-color: #dadada; |
@@ -167,8 +167,8 @@ discard block |
||
167 | 167 | div.profilemodulebuttons { |
168 | 168 | position: inherit; |
169 | 169 | bottom: 5px; |
170 | - <?php echo $end;?>: 5px; |
|
171 | - text-align: <?php echo $end;?>; |
|
170 | + <?php echo $end; ?>: 5px; |
|
171 | + text-align: <?php echo $end; ?>; |
|
172 | 172 | } |
173 | 173 | |
174 | 174 | div.profilebox { |
@@ -189,15 +189,15 @@ discard block |
||
189 | 189 | display: block; |
190 | 190 | position: absolute; |
191 | 191 | top:0; |
192 | - <?php echo $end;?>:0; |
|
193 | - padding-<?php echo $end;?>:20px; |
|
192 | + <?php echo $end; ?>:0; |
|
193 | + padding-<?php echo $end; ?>:20px; |
|
194 | 194 | padding-top:7px; |
195 | 195 | } |
196 | 196 | |
197 | 197 | div.sidebar { |
198 | 198 | display: inline; |
199 | - float: <?php echo $end;?>; |
|
200 | - padding-<?php echo $end;?>: 20px; |
|
199 | + float: <?php echo $end; ?>; |
|
200 | + padding-<?php echo $end; ?>: 20px; |
|
201 | 201 | } |
202 | 202 | div.sidebar a { |
203 | 203 | color: white; |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | div.header { |
207 | 207 | height: 54px; |
208 | 208 | background: #FFFFFF; |
209 | - padding-<?php echo $start;?>:30px; |
|
209 | + padding-<?php echo $start; ?>:30px; |
|
210 | 210 | padding-bottom: 10px; |
211 | 211 | color: <?php echo $colour2?>; |
212 | 212 | } |
@@ -216,8 +216,8 @@ discard block |
||
216 | 216 | top: 54px; |
217 | 217 | bottom: 50px; |
218 | 218 | padding-top: 10px; |
219 | - padding-<?php echo $start;?>: 0px; |
|
220 | - padding-<?php echo $end;?>: 0px; |
|
219 | + padding-<?php echo $start; ?>: 0px; |
|
220 | + padding-<?php echo $end; ?>: 0px; |
|
221 | 221 | width:100%; |
222 | 222 | } |
223 | 223 | |
@@ -231,18 +231,18 @@ discard block |
||
231 | 231 | color: #FFFFFF; |
232 | 232 | min-height:100px; |
233 | 233 | overflow: auto; |
234 | - padding-<?php echo $start;?>:20px |
|
234 | + padding-<?php echo $start; ?>:20px |
|
235 | 235 | } |
236 | 236 | |
237 | 237 | #thirdrow { |
238 | - padding-<?php echo $start;?>: 10px; |
|
239 | - padding-<?php echo $end;?>: 10px; |
|
238 | + padding-<?php echo $start; ?>: 10px; |
|
239 | + padding-<?php echo $end; ?>: 10px; |
|
240 | 240 | } |
241 | 241 | |
242 | 242 | #footer { |
243 | 243 | width: 100%; |
244 | - <?php echo $start;?>: 0; |
|
245 | - <?php echo $end;?>: 0; |
|
244 | + <?php echo $start; ?>: 0; |
|
245 | + <?php echo $end; ?>: 0; |
|
246 | 246 | bottom: 0; |
247 | 247 | position: absolute; |
248 | 248 | background: white; |
@@ -268,8 +268,8 @@ discard block |
||
268 | 268 | height: 100% !important; |
269 | 269 | position: relative; |
270 | 270 | min-width: 1000px; |
271 | - margin-<?php echo $start;?>: auto; |
|
272 | - margin-<?php echo $end;?>: auto; |
|
271 | + margin-<?php echo $start; ?>: auto; |
|
272 | + margin-<?php echo $end; ?>: auto; |
|
273 | 273 | } |
274 | 274 | |
275 | 275 | div.device_info { |
@@ -289,8 +289,8 @@ discard block |
||
289 | 289 | position: fixed; |
290 | 290 | top: 0; |
291 | 291 | bottom: 0; |
292 | - <?php echo $start;?>: 0; |
|
293 | - <?php echo $end;?>: 0; |
|
292 | + <?php echo $start; ?>: 0; |
|
293 | + <?php echo $end; ?>: 0; |
|
294 | 294 | background-color: #000000; |
295 | 295 | opacity: 0.5; |
296 | 296 | z-index: 90; |
@@ -316,7 +316,7 @@ discard block |
||
316 | 316 | padding: 15px; |
317 | 317 | text-align: start; |
318 | 318 | width: 850px; |
319 | - <?php echo $start;?>: 100px; |
|
319 | + <?php echo $start; ?>: 100px; |
|
320 | 320 | top: 50px; |
321 | 321 | z-index: 100; |
322 | 322 | } |
@@ -325,15 +325,15 @@ discard block |
||
325 | 325 | position: absolute; |
326 | 326 | top: 0; |
327 | 327 | bottom: 0; |
328 | - <?php echo $start;?>: 0; |
|
329 | - <?php echo $end;?>: 0; |
|
328 | + <?php echo $start; ?>: 0; |
|
329 | + <?php echo $end; ?>: 0; |
|
330 | 330 | z-index: 100; |
331 | 331 | } |
332 | 332 | |
333 | 333 | div#msgbox div { |
334 | 334 | position: fixed; |
335 | - <?php echo $start;?>: 0; |
|
336 | - <?php echo $end;?>: 0; |
|
335 | + <?php echo $start; ?>: 0; |
|
336 | + <?php echo $end; ?>: 0; |
|
337 | 337 | } |
338 | 338 | |
339 | 339 | div#msgbox div div.graybox { |
@@ -347,13 +347,13 @@ discard block |
||
347 | 347 | div.graybox img { |
348 | 348 | display: block; |
349 | 349 | cursor: pointer; |
350 | - float: <?php echo $end;?>; |
|
350 | + float: <?php echo $end; ?>; |
|
351 | 351 | margin: 0px 0px 10px 10px; |
352 | 352 | } |
353 | 353 | |
354 | 354 | img.icon { |
355 | - float: <?php echo $start;?>; |
|
356 | - margin-<?php echo $end;?>: 5px; |
|
355 | + float: <?php echo $start; ?>; |
|
356 | + margin-<?php echo $end; ?>: 5px; |
|
357 | 357 | margin-top: 3px; |
358 | 358 | } |
359 | 359 | |
@@ -417,15 +417,15 @@ discard block |
||
417 | 417 | div.ca-summary { |
418 | 418 | border: 1px dotted; |
419 | 419 | background-color: #ccccff; |
420 | - border-<?php echo $start;?>: 10px solid; |
|
421 | - border-<?php echo $start;?>-color: green; |
|
420 | + border-<?php echo $start; ?>: 10px solid; |
|
421 | + border-<?php echo $start; ?>-color: green; |
|
422 | 422 | padding: 2px; |
423 | - padding-<?php echo $start;?>: 8px; |
|
423 | + padding-<?php echo $start; ?>: 8px; |
|
424 | 424 | } |
425 | 425 | |
426 | 426 | span.edu_cat { |
427 | 427 | font-weight: bold; |
428 | - color: <?php echo $colour2;?>; |
|
428 | + color: <?php echo $colour2; ?>; |
|
429 | 429 | } |
430 | 430 | |
431 | 431 | span.tooltip { |
@@ -484,7 +484,7 @@ discard block |
||
484 | 484 | } |
485 | 485 | |
486 | 486 | table.authrecord td { |
487 | - padding-<?php echo $end;?>: 10px; |
|
487 | + padding-<?php echo $end; ?>: 10px; |
|
488 | 488 | } |
489 | 489 | |
490 | 490 | p.MOTD { |
@@ -502,15 +502,15 @@ discard block |
||
502 | 502 | } |
503 | 503 | |
504 | 504 | .use_borders button { |
505 | - border-<?php echo $start;?>-style: outset; |
|
506 | - border-<?php echo $start;?>-width: 1px; |
|
507 | - border-<?php echo $start;?>-color: #8bbacb; |
|
505 | + border-<?php echo $start; ?>-style: outset; |
|
506 | + border-<?php echo $start; ?>-width: 1px; |
|
507 | + border-<?php echo $start; ?>-color: #8bbacb; |
|
508 | 508 | border-top-style: outset; |
509 | 509 | border-top-width: 1px; |
510 | 510 | border-top-color: #8bbacb; |
511 | - border-<?php echo $end;?>-style: outset; |
|
512 | - border-<?php echo $end;?>-width: 2px; |
|
513 | - border-<?php echo $end;?>-color: #043d52; |
|
511 | + border-<?php echo $end; ?>-style: outset; |
|
512 | + border-<?php echo $end; ?>-width: 2px; |
|
513 | + border-<?php echo $end; ?>-color: #043d52; |
|
514 | 514 | border-bottom-style: outset; |
515 | 515 | border-bottom-width: 2px; |
516 | 516 | border-bottom-color: #043d52; |
@@ -533,8 +533,8 @@ discard block |
||
533 | 533 | border-bottom-style:solid; |
534 | 534 | border-top-width:5px; |
535 | 535 | border-bottom-width:5px; |
536 | - border-color: <?php echo $colour1;?>; |
|
537 | - padding-<?php echo $start;?>:30px; |
|
536 | + border-color: <?php echo $colour1; ?>; |
|
537 | + padding-<?php echo $start; ?>:30px; |
|
538 | 538 | } |
539 | 539 | |
540 | 540 | .no_borders button.disabledDevice { |
@@ -550,13 +550,13 @@ discard block |
||
550 | 550 | } |
551 | 551 | |
552 | 552 | input { |
553 | - margin-<?php echo $end;?>: 5px; |
|
553 | + margin-<?php echo $end; ?>: 5px; |
|
554 | 554 | |
555 | 555 | } |
556 | 556 | |
557 | 557 | select { |
558 | 558 | vertical-align: middle; |
559 | - margin-<?php echo $start;?>: 10px; |
|
559 | + margin-<?php echo $start; ?>: 10px; |
|
560 | 560 | } |
561 | 561 | |
562 | 562 | td.notapplicable { |
@@ -589,8 +589,8 @@ discard block |
||
589 | 589 | |
590 | 590 | .signin_large { |
591 | 591 | vertical-align: top; |
592 | - padding-<?php echo $start;?>:20px; |
|
593 | - padding-<?php echo $end;?>:20px; |
|
592 | + padding-<?php echo $start; ?>:20px; |
|
593 | + padding-<?php echo $end; ?>:20px; |
|
594 | 594 | color: #bfd5dc; |
595 | 595 | font-size: 20px; |
596 | 596 | } |
@@ -603,34 +603,34 @@ discard block |
||
603 | 603 | } |
604 | 604 | |
605 | 605 | #close_button { |
606 | - background: <?php echo $colour2;?>; |
|
606 | + background: <?php echo $colour2; ?>; |
|
607 | 607 | color: #FFFFFF; |
608 | 608 | height: 23px; |
609 | - border-<?php echo $start;?>-style: inset; |
|
610 | - border-<?php echo $start;?>-width: 1px; |
|
611 | - border-<?php echo $start;?>-color: #8bbacb; |
|
609 | + border-<?php echo $start; ?>-style: inset; |
|
610 | + border-<?php echo $start; ?>-width: 1px; |
|
611 | + border-<?php echo $start; ?>-color: #8bbacb; |
|
612 | 612 | border-top-style: inset; |
613 | 613 | border-top-width: 1px; |
614 | 614 | border-top-color: #8bbacb; |
615 | - border-<?php echo $end;?>-style: outset; |
|
616 | - border-<?php echo $end;?>-width: 2px; |
|
617 | - border-<?php echo $end;?>-color: #043d52; |
|
615 | + border-<?php echo $end; ?>-style: outset; |
|
616 | + border-<?php echo $end; ?>-width: 2px; |
|
617 | + border-<?php echo $end; ?>-color: #043d52; |
|
618 | 618 | border-bottom-style: outset; |
619 | 619 | border-bottom-width: 2px; |
620 | 620 | border-bottom-color: #043d52; |
621 | - padding-<?php echo $start;?>: 5px; |
|
622 | - padding-<?php echo $end;?>: 5px; |
|
621 | + padding-<?php echo $start; ?>: 5px; |
|
622 | + padding-<?php echo $end; ?>: 5px; |
|
623 | 623 | padding-top: 1px; |
624 | 624 | padding-bottom: 1px; |
625 | 625 | position: relative; |
626 | - <?php echo $start;?>: 640px; |
|
626 | + <?php echo $start; ?>: 640px; |
|
627 | 627 | cursor:pointer; |
628 | 628 | } |
629 | 629 | |
630 | 630 | #loading_ico { |
631 | 631 | display: none; |
632 | 632 | position: absolute; |
633 | - <?php echo $start;?>: 200px; |
|
633 | + <?php echo $start; ?>: 200px; |
|
634 | 634 | top: 220px; |
635 | 635 | z-index: 200; |
636 | 636 | text-align: center; |
@@ -644,7 +644,7 @@ discard block |
||
644 | 644 | z-index: 100; |
645 | 645 | position: absolute; |
646 | 646 | width: 700px; |
647 | - <?php echo $start;?>: 200px; |
|
647 | + <?php echo $start; ?>: 200px; |
|
648 | 648 | text-align: justify; |
649 | 649 | top: 200px; |
650 | 650 | box-shadow: 5px 5px 5px #666666; |
@@ -652,23 +652,23 @@ discard block |
||
652 | 652 | } |
653 | 653 | |
654 | 654 | #user_info { |
655 | - padding-<?php echo $start;?>: 30px; |
|
655 | + padding-<?php echo $start; ?>: 30px; |
|
656 | 656 | font-size: 11px; |
657 | 657 | font-weight: normal; |
658 | 658 | } |
659 | 659 | |
660 | 660 | #user_welcome { |
661 | 661 | background: #ffffff; |
662 | - padding-<?php echo $start;?>: 30px; |
|
662 | + padding-<?php echo $start; ?>: 30px; |
|
663 | 663 | padding-top: 20px; |
664 | - padding-<?php echo $end;?>: 180px; |
|
664 | + padding-<?php echo $end; ?>: 180px; |
|
665 | 665 | font-size: 12px; |
666 | 666 | font-weight: normal; |
667 | 667 | } |
668 | 668 | |
669 | 669 | #devices { |
670 | 670 | z-index:90; |
671 | - padding-<?php echo $start;?>: 30px; |
|
671 | + padding-<?php echo $start; ?>: 30px; |
|
672 | 672 | font-size: 11px; |
673 | 673 | font-weight: normal; |
674 | 674 | position: relative; |
@@ -676,15 +676,15 @@ discard block |
||
676 | 676 | |
677 | 677 | #profile_list { |
678 | 678 | width: 30em; |
679 | - padding-<?php echo $start;?>: 10px; |
|
680 | - padding-<?php echo $end;?>: 0px; |
|
681 | - background: <?php echo $colour2;?>; |
|
679 | + padding-<?php echo $start; ?>: 10px; |
|
680 | + padding-<?php echo $end; ?>: 0px; |
|
681 | + background: <?php echo $colour2; ?>; |
|
682 | 682 | color: white; |
683 | 683 | box-shadow: 10px 10px 5px #888888; |
684 | 684 | } |
685 | 685 | |
686 | 686 | #profile_redirect { |
687 | - padding-<?php echo $start;?>: 30px; |
|
687 | + padding-<?php echo $start; ?>: 30px; |
|
688 | 688 | padding-top: 20px; |
689 | 689 | font-size: 11px; |
690 | 690 | font-weight: normal; |
@@ -694,13 +694,13 @@ discard block |
||
694 | 694 | } |
695 | 695 | |
696 | 696 | #profiles { |
697 | - padding-<?php echo $start;?>: 30px; |
|
697 | + padding-<?php echo $start; ?>: 30px; |
|
698 | 698 | font-size: 11px; |
699 | 699 | padding-bottom: 10px |
700 | 700 | } |
701 | 701 | |
702 | 702 | #signin { |
703 | - padding-<?php echo $start;?>: 30px; |
|
703 | + padding-<?php echo $start; ?>: 30px; |
|
704 | 704 | padding-top: 10px; |
705 | 705 | } |
706 | 706 | |
@@ -724,8 +724,8 @@ discard block |
||
724 | 724 | font-size: 14px; |
725 | 725 | padding-top: 4px; |
726 | 726 | padding-bottom: 12px; |
727 | - padding-<?php echo $start;?>: 30px; |
|
728 | - background: <?php echo $colour1;?>; |
|
727 | + padding-<?php echo $start; ?>: 30px; |
|
728 | + background: <?php echo $colour1; ?>; |
|
729 | 729 | text-align: start; |
730 | 730 | text-shadow: 10px 10px 5px #888888; |
731 | 731 | } |
@@ -735,9 +735,9 @@ discard block |
||
735 | 735 | border-bottom-style:solid; |
736 | 736 | border-top-width:5px; |
737 | 737 | border-bottom-width:5px; |
738 | - border-color: <?php echo $colour1;?>; |
|
739 | - padding-<?php echo $start;?>:30px; |
|
740 | - color: <?php echo $colour2;?>; |
|
738 | + border-color: <?php echo $colour1; ?>; |
|
739 | + padding-<?php echo $start; ?>:30px; |
|
740 | + color: <?php echo $colour2; ?>; |
|
741 | 741 | } |
742 | 742 | |
743 | 743 | #heading h1 { |
@@ -752,11 +752,11 @@ discard block |
||
752 | 752 | |
753 | 753 | #welcome { |
754 | 754 | padding: 20px; |
755 | - padding-<?php echo $start;?>: 30px; |
|
755 | + padding-<?php echo $start; ?>: 30px; |
|
756 | 756 | text-align: justify; |
757 | 757 | border-bottom-style:solid; |
758 | 758 | border-bottom-width:5px; |
759 | - border-color: <?php echo $colour1;?>; |
|
759 | + border-color: <?php echo $colour1; ?>; |
|
760 | 760 | font-size: 11px; |
761 | 761 | font-weight: normal; |
762 | 762 | } |
@@ -765,14 +765,14 @@ discard block |
||
765 | 765 | #main_menu_info { |
766 | 766 | position: relative; |
767 | 767 | top: 15px; |
768 | - <?php echo $start;?>: 0px; |
|
769 | - padding:10px; padding-<?php echo $start;?>:20px; padding-<?php echo $end;?>:20px; |
|
768 | + <?php echo $start; ?>: 0px; |
|
769 | + padding:10px; padding-<?php echo $start; ?>:20px; padding-<?php echo $end; ?>:20px; |
|
770 | 770 | background: #f0f0f0; |
771 | 771 | border: 1px solid #dddddd; |
772 | - margin-<?php echo $start;?>: 25px; |
|
773 | - padding-<?php echo $start;?>: 25px; |
|
774 | - margin-<?php echo $end;?>: 25px; |
|
775 | - padding-<?php echo $end;?>: 25px; |
|
772 | + margin-<?php echo $start; ?>: 25px; |
|
773 | + padding-<?php echo $start; ?>: 25px; |
|
774 | + margin-<?php echo $end; ?>: 25px; |
|
775 | + padding-<?php echo $end; ?>: 25px; |
|
776 | 776 | padding-bottom: 10px; |
777 | 777 | vertical-align: top; |
778 | 778 | box-shadow: 5px 5px 5px #666666; |
@@ -803,7 +803,7 @@ discard block |
||
803 | 803 | |
804 | 804 | #faq { |
805 | 805 | padding: 20px; |
806 | - color: <?php echo $colour2;?>; |
|
806 | + color: <?php echo $colour2; ?>; |
|
807 | 807 | background: #ffffff; |
808 | 808 | } |
809 | 809 | |
@@ -821,7 +821,7 @@ discard block |
||
821 | 821 | #idp_logo { |
822 | 822 | display:none; |
823 | 823 | position:absolute; |
824 | - <?php echo $end;?>:30px; |
|
824 | + <?php echo $end; ?>:30px; |
|
825 | 825 | max-height:150px; |
826 | 826 | max-width:150px; |
827 | 827 | padding-top:10px; |
@@ -844,18 +844,18 @@ discard block |
||
844 | 844 | #slides img { |
845 | 845 | position: absolute; |
846 | 846 | top: 145px; |
847 | - <?php echo $end;?>: 60px; |
|
847 | + <?php echo $end; ?>: 60px; |
|
848 | 848 | } |
849 | 849 | |
850 | 850 | #slides span { |
851 | 851 | position: absolute; |
852 | - <?php echo $start;?>: 180px; |
|
852 | + <?php echo $start; ?>: 180px; |
|
853 | 853 | z-index: 20; |
854 | 854 | } |
855 | 855 | |
856 | 856 | #line1 { |
857 | 857 | top:145px; |
858 | - color: <?php echo $colour2;?>; |
|
858 | + color: <?php echo $colour2; ?>; |
|
859 | 859 | font-size:20px; |
860 | 860 | } |
861 | 861 | |
@@ -867,7 +867,7 @@ discard block |
||
867 | 867 | |
868 | 868 | #line3 { |
869 | 869 | top:245px; |
870 | - <?php echo $start;?>: 200px; |
|
870 | + <?php echo $start; ?>: 200px; |
|
871 | 871 | color: maroon; |
872 | 872 | font-size:25px; |
873 | 873 | } |
@@ -896,16 +896,16 @@ discard block |
||
896 | 896 | height:100%; |
897 | 897 | border-spacing:0; |
898 | 898 | border-collapse:collapse; |
899 | - padding-<?php echo $start;?>:200px; |
|
899 | + padding-<?php echo $start; ?>:200px; |
|
900 | 900 | padding-top:10px; |
901 | 901 | } |
902 | 902 | |
903 | 903 | #front_page_leftmenu { |
904 | - border-<?php echo $end;?>:solid; |
|
905 | - border-color: <?php echo $colour1;?>; |
|
904 | + border-<?php echo $end; ?>:solid; |
|
905 | + border-color: <?php echo $colour1; ?>; |
|
906 | 906 | border-width:5px; |
907 | 907 | min-height:400px; |
908 | - padding-<?php echo $start;?>: 10px; |
|
908 | + padding-<?php echo $start; ?>: 10px; |
|
909 | 909 | vertical-align:top; |
910 | 910 | width:110px; |
911 | 911 | padding-top:30px; |
@@ -915,8 +915,8 @@ discard block |
||
915 | 915 | vertical-align: top; |
916 | 916 | height:280px; |
917 | 917 | background: #fff; |
918 | - padding-<?php echo $start;?>: 20px; |
|
919 | - padding-<?php echo $end;?>: 20px; |
|
918 | + padding-<?php echo $start; ?>: 20px; |
|
919 | + padding-<?php echo $end; ?>: 20px; |
|
920 | 920 | } |
921 | 921 | |
922 | 922 | #user_button_td { |
@@ -927,11 +927,11 @@ discard block |
||
927 | 927 | } |
928 | 928 | |
929 | 929 | a:link { |
930 | - color:<?php echo $colour2;?>; |
|
930 | + color:<?php echo $colour2; ?>; |
|
931 | 931 | } |
932 | 932 | |
933 | 933 | a:visited { |
934 | - color:<?php echo $colour2;?>; |
|
934 | + color:<?php echo $colour2; ?>; |
|
935 | 935 | } |
936 | 936 | |
937 | 937 | a:hover { |
@@ -939,7 +939,7 @@ discard block |
||
939 | 939 | } |
940 | 940 | |
941 | 941 | a:active { |
942 | - color:<?php echo $colour2;?>; |
|
942 | + color:<?php echo $colour2; ?>; |
|
943 | 943 | } |
944 | 944 | |
945 | 945 | .comment { |
@@ -970,14 +970,14 @@ discard block |
||
970 | 970 | table.user_overview th { |
971 | 971 | text-align: start; |
972 | 972 | background: #f0f0f0; |
973 | - padding-<?php echo $start;?>: 4px; |
|
974 | - padding-<?php echo $end;?>: 4px; |
|
973 | + padding-<?php echo $start; ?>: 4px; |
|
974 | + padding-<?php echo $end; ?>: 4px; |
|
975 | 975 | } |
976 | 976 | |
977 | 977 | table.user_overview td { |
978 | 978 | border-top-style: none; |
979 | - padding-<?php echo $start;?>: 4px; |
|
980 | - padding-<?php echo $end;?>: 4px; |
|
979 | + padding-<?php echo $start; ?>: 4px; |
|
980 | + padding-<?php echo $end; ?>: 4px; |
|
981 | 981 | vertical-align: middle; |
982 | 982 | height: 28px; |
983 | 983 | } |
@@ -994,14 +994,14 @@ discard block |
||
994 | 994 | .download_button_text { |
995 | 995 | width: 380px; |
996 | 996 | position:absolute; |
997 | - <?php echo $end;?>: 5px; |
|
997 | + <?php echo $end; ?>: 5px; |
|
998 | 998 | padding-top:0px; |
999 | 999 | } |
1000 | 1000 | |
1001 | 1001 | #download_info { |
1002 | 1002 | background: #f0f0f0; |
1003 | - padding-<?php echo $start;?>: 20px; |
|
1004 | - padding-<?php echo $end;?>: 20px; |
|
1003 | + padding-<?php echo $start; ?>: 20px; |
|
1004 | + padding-<?php echo $end; ?>: 20px; |
|
1005 | 1005 | padding-top:3px; |
1006 | 1006 | padding-bottom:3px; |
1007 | 1007 | } |
@@ -1045,7 +1045,7 @@ discard block |
||
1045 | 1045 | } |
1046 | 1046 | |
1047 | 1047 | .downloads tr td { |
1048 | - text-align: <?php echo $end;?>; |
|
1048 | + text-align: <?php echo $end; ?>; |
|
1049 | 1049 | padding-left: 5px; |
1050 | 1050 | padding-right: 5px; |
1051 | 1051 | border-bottom-style: solid; |
@@ -1053,5 +1053,5 @@ discard block |
||
1053 | 1053 | } |
1054 | 1054 | |
1055 | 1055 | .downloads tr td:first-child { |
1056 | - text-align: <?php echo $start;?>; |
|
1056 | + text-align: <?php echo $start; ?>; |
|
1057 | 1057 | } |
1058 | 1058 | \ No newline at end of file |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * License: see the web/copyright.inc.php file in the file structure or |
20 | 20 | * <base_url>/copyright.php after deploying the software |
21 | 21 | */ |
22 | -require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php"; |
|
22 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
23 | 23 | $languageInstance = new \core\common\Language(); |
24 | 24 | $languageInstance->setTextDomain("diagnostics"); |
25 | 25 | $loggerInstance = new \core\common\Logging(); |
@@ -63,47 +63,47 @@ discard block |
||
63 | 63 | $select = "<div id='sp_abuse_problem'> |
64 | 64 | <select style='margin-left: 0px;' id='select_sp_problem'>"; |
65 | 65 | foreach ($sp_problem as $pname => $pdesc) { |
66 | - $select = $select . "<option value='$pname'>$pdesc</option>\n"; |
|
66 | + $select = $select."<option value='$pname'>$pdesc</option>\n"; |
|
67 | 67 | } |
68 | - $select = $select . "</select></div>"; |
|
68 | + $select = $select."</select></div>"; |
|
69 | 69 | $res = " |
70 | 70 | <input type='hidden' name='token' id='token' value=''> |
71 | 71 | <input type='hidden' name='tests_result' id='tests_result' value=''> |
72 | 72 | <table id='sp_questions'> |
73 | 73 | <tr id='sp_problem_selector'> |
74 | - <td>" . _("Select your problem") . "</td> |
|
74 | + <td>" . _("Select your problem")."</td> |
|
75 | 75 | <td>$select</td> |
76 | 76 | </tr> |
77 | 77 | <tr> |
78 | - <td>" . _("What is the realm of the IdP in question?") . "</td> |
|
78 | + <td>"._("What is the realm of the IdP in question?")."</td> |
|
79 | 79 | <td> |
80 | 80 | <input type='text' name='admin_realm' id='admin_realm' value='$realmFromURL'> |
81 | - <button class='diag_button' id='realm_in_db_admin' style='display: none;' accesskey='R' type='button'>" . |
|
82 | - _("Check this realm") . |
|
81 | + <button class='diag_button' id='realm_in_db_admin' style='display: none;' accesskey='R' type='button'>". |
|
82 | + _("Check this realm"). |
|
83 | 83 | "</button> |
84 | 84 | <div id='tests_info_area'></div> |
85 | 85 | </td> |
86 | 86 | </tr> |
87 | 87 | <tr id='outer_user_row' class='hidden_row'> |
88 | - <td>" . _("Do you prefer to use a specific outer identity for diagnostics test?") . "</td> |
|
88 | + <td>" . _("Do you prefer to use a specific outer identity for diagnostics test?")."</td> |
|
89 | 89 | <td> <input type='text' name='outer_user' id='outer_user' value=''><span id='outer_user_realm'></span> |
90 | 90 | </tr> |
91 | 91 | <tr class='hidden_row'> |
92 | - <td>" . _("What is the authentication timestamp of the user session in question?") . "</td> |
|
92 | + <td>" . _("What is the authentication timestamp of the user session in question?")."</td> |
|
93 | 93 | <td><input type='text' id='timestamp' name='timestamp'> |
94 | 94 | <div id='datepicker'></div> |
95 | 95 | </td> |
96 | 96 | </tr> |
97 | 97 | <tr class='hidden_row'> |
98 | - <td>" . _("What is the MAC address of the user session in question?") . "</td> |
|
98 | + <td>" . _("What is the MAC address of the user session in question?")."</td> |
|
99 | 99 | <td><input type='text' id='mac' name='mac'></td> |
100 | 100 | </tr> |
101 | 101 | <tr class='hidden_row'> |
102 | - <td>" . _("Additional comments") . "</td> |
|
102 | + <td>" . _("Additional comments")."</td> |
|
103 | 103 | <td><textarea id='freetext' name='freetext' cols='60' rows='5'></textarea></td> |
104 | 104 | </tr> |
105 | 105 | <tr class='hidden_row'> |
106 | - <td>" . _("Please specify an email address on which the IdP can contact you") . "</td> |
|
106 | + <td>" . _("Please specify an email address on which the IdP can contact you")."</td> |
|
107 | 107 | <td><input type='text' id='email' name='email'></td> |
108 | 108 | </tr> |
109 | 109 | <tr> |
@@ -111,82 +111,82 @@ discard block |
||
111 | 111 | <td></td> |
112 | 112 | </tr> |
113 | 113 | <tr class='hidden_row' id='send_query_to_idp'> |
114 | - <td>" . _("Now you can send your query") . "</td> |
|
115 | - <td><button type='submit' class='diag_button' id='submit_idp_query' name='go'>" . _("Send") . "</button></td> |
|
114 | + <td>" . _("Now you can send your query")."</td> |
|
115 | + <td><button type='submit' class='diag_button' id='submit_idp_query' name='go'>" . _("Send")."</button></td> |
|
116 | 116 | </tr> |
117 | 117 | </table>"; |
118 | - $res = $res . $javascript; |
|
118 | + $res = $res.$javascript; |
|
119 | 119 | } |
120 | 120 | if ($queryType == 'idp') { |
121 | 121 | $select = "<div id='idp_reported_problem' style='display:;'> |
122 | 122 | <select style='margin-left:0px;' id='select_idp_problem'>"; |
123 | 123 | foreach ($idp_problem as $pname => $pdesc) { |
124 | - $select = $select . "<option value='$pname'>$pdesc</option>\n"; |
|
124 | + $select = $select."<option value='$pname'>$pdesc</option>\n"; |
|
125 | 125 | } |
126 | - $select = $select . "</select></div>"; |
|
126 | + $select = $select."</select></div>"; |
|
127 | 127 | $res = " |
128 | 128 | <table id='idp_questions'> |
129 | 129 | <tr> |
130 | - <td>" . _("Select your problem") . "</td> |
|
130 | + <td>" . _("Select your problem")."</td> |
|
131 | 131 | <td>$select</td> |
132 | 132 | </tr> |
133 | 133 | <tr> |
134 | - <td>" . _("Identify the SP by one of following means") . "</td> |
|
134 | + <td>"._("Identify the SP by one of following means")."</td> |
|
135 | 135 | <td></td> |
136 | 136 | </tr> |
137 | 137 | <tr id='by_opname'> |
138 | - <td>" . _("SP Operator-Name attribute") . "</td> |
|
138 | + <td>" . _("SP Operator-Name attribute")."</td> |
|
139 | 139 | <td><input type='text' id='opname' name='opname' value=''></td> |
140 | 140 | </tr> |
141 | 141 | <tr id='spmanually'> |
142 | - <td>" . _("Select the SP manually:") . "</td> |
|
142 | + <td>" . _("Select the SP manually:")."</td> |
|
143 | 143 | <td> |
144 | 144 | <div id='select_asp_country'><a href='' id='asp_countries_list'> |
145 | - <span id='opnameselect'>" . _("click to select country and organisation") . "</a></span> |
|
145 | + <span id='opnameselect'>" . _("click to select country and organisation")."</a></span> |
|
146 | 146 | </div> |
147 | 147 | <div id='select_asp_area'></div> |
148 | 148 | </td> |
149 | 149 | </tr> |
150 | 150 | <tr id='asp_desc' style='display: none;'> |
151 | - <td>" . _("or") . ' ' . _("at least describe the SP location") . "</td> |
|
151 | + <td>" . _("or").' '._("at least describe the SP location")."</td> |
|
152 | 152 | <td><input type='text' id='asp_location' name='asp_location' value=''></td> |
153 | 153 | </tr> |
154 | 154 | <tr> |
155 | - <td>" . _("What is the outer ID of the user session in question?") . "</td> |
|
155 | + <td>" . _("What is the outer ID of the user session in question?")."</td> |
|
156 | 156 | <td><input type='text' id='outer_id' name='outer_id' value=''></td> |
157 | 157 | </tr> |
158 | 158 | <tr> |
159 | - <td>" . _("What is the authentication timestamp of the user session in question?") . "</td> |
|
159 | + <td>" . _("What is the authentication timestamp of the user session in question?")."</td> |
|
160 | 160 | <td> |
161 | 161 | <input type='text' id='timestamp' name='timestamp'> |
162 | 162 | <div id='datepicker'></div> |
163 | 163 | </td> |
164 | 164 | </tr> |
165 | 165 | <tr> |
166 | - <td>" . _("What is the MAC address of the user session in question?") . "</td> |
|
166 | + <td>" . _("What is the MAC address of the user session in question?")."</td> |
|
167 | 167 | <td><input type='text' id='mac' name='mac'></td> |
168 | 168 | </tr> |
169 | 169 | <tr> |
170 | - <td>" . _("Additional comments about the problem") . "</td> |
|
170 | + <td>" . _("Additional comments about the problem")."</td> |
|
171 | 171 | <td><textarea id='freetext' name='freetext' cols='60' rows='5'></textarea></td> |
172 | 172 | </tr> |
173 | 173 | <tr> |
174 | - <td>" . _("Do you have any contact details by which the user wishes to be contacted by the SP?") . "</td> |
|
174 | + <td>" . _("Do you have any contact details by which the user wishes to be contacted by the SP?")."</td> |
|
175 | 175 | <td><textarea id='c_details' name='c_details' cols='60' rows='5'></textarea></td> |
176 | 176 | </tr> |
177 | 177 | <tr> |
178 | - <td>" . _("Please specify an email address on which the SP can contact you") . "</td> |
|
178 | + <td>" . _("Please specify an email address on which the SP can contact you")."</td> |
|
179 | 179 | <td><input type='text' id='email' name='email'></td> |
180 | 180 | </tr> |
181 | 181 | <tr class='hidden_row' id='send_query_to_sp'> |
182 | - <td>" . _("Now you can send your query") . "</td> |
|
183 | - <td><button type='submit' class='diag_button' id='submit_sp_query' name='go'>" . _("Send") . "</button></td> |
|
182 | + <td>" . _("Now you can send your query")."</td> |
|
183 | + <td><button type='submit' class='diag_button' id='submit_sp_query' name='go'>" . _("Send")."</button></td> |
|
184 | 184 | </tr> |
185 | 185 | </table>"; |
186 | - $res = $res . $javascript; |
|
186 | + $res = $res.$javascript; |
|
187 | 187 | } |
188 | 188 | if ($queryType == 'idp_send' || $queryType == 'sp_send') { |
189 | - include_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php"; |
|
189 | + include_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
190 | 190 | $cat = new \core\CAT(); |
191 | 191 | $returnArray = array(); |
192 | 192 | if (count((array) $o) > 0) { |
@@ -195,8 +195,8 @@ discard block |
||
195 | 195 | switch ($key) { |
196 | 196 | case 'realm': |
197 | 197 | $pos = strpos($value, '@'); |
198 | - if ($pos !== FALSE ) { |
|
199 | - $value = substr($value, $pos+1); |
|
198 | + if ($pos !== FALSE) { |
|
199 | + $value = substr($value, $pos + 1); |
|
200 | 200 | } |
201 | 201 | case 'email': |
202 | 202 | $returnArray[$key] = filter_var($value, FILTER_VALIDATE_EMAIL); |
@@ -237,7 +237,7 @@ discard block |
||
237 | 237 | $mail = \core\common\OutsideComm::mailHandle(); |
238 | 238 | $emails = ['[email protected]']; |
239 | 239 | //$emails = explode(',', $returnArray['idpcontact']); |
240 | - $mail->FromName = \config\Master::APPEARANCE['productname'] . " Notification System"; |
|
240 | + $mail->FromName = \config\Master::APPEARANCE['productname']." Notification System"; |
|
241 | 241 | foreach ($emails as $email) { |
242 | 242 | $mail->addAddress($email); |
243 | 243 | } |
@@ -247,11 +247,11 @@ discard block |
||
247 | 247 | } else { |
248 | 248 | $link = 'http://'; |
249 | 249 | } |
250 | - $link .= $_SERVER['SERVER_NAME'] . \core\CAT::getRootUrlPath() . '/diag/show_realmcheck.php?token=' . $returnArray['token']; |
|
250 | + $link .= $_SERVER['SERVER_NAME'].\core\CAT::getRootUrlPath().'/diag/show_realmcheck.php?token='.$returnArray['token']; |
|
251 | 251 | $returnArray['testurl'] = $link; |
252 | 252 | $mail->Subject = _('Suspected a technical problem with the IdP'); |
253 | - $txt = _("We suspect a technical problem with the IdP handling the realm") . ' ' . |
|
254 | - $returnArray['realm'] . ".\n"; |
|
253 | + $txt = _("We suspect a technical problem with the IdP handling the realm").' '. |
|
254 | + $returnArray['realm'].".\n"; |
|
255 | 255 | $txt .= _("The CAT diagnostic test was run for this realm during reporting.\n"); |
256 | 256 | $txt .= _("The overall result was "); |
257 | 257 | if ($returnArray['tests_result'] == 0) { |
@@ -259,15 +259,15 @@ discard block |
||
259 | 259 | } else { |
260 | 260 | $txt .= _("failure"); |
261 | 261 | } |
262 | - $txt .= ".\n" . _("To see details go to "); |
|
262 | + $txt .= ".\n"._("To see details go to "); |
|
263 | 263 | $txt .= "$link\n\n"; |
264 | - $txt .= _("The reported problem details are as follows") . "\n"; |
|
265 | - $txt .= _("timestamp") . ": " . $returnArray['timestamp'] . "\n"; |
|
266 | - $txt .= _("client MAC address") . ": " . $returnArray['mac'] . "\n"; |
|
264 | + $txt .= _("The reported problem details are as follows")."\n"; |
|
265 | + $txt .= _("timestamp").": ".$returnArray['timestamp']."\n"; |
|
266 | + $txt .= _("client MAC address").": ".$returnArray['mac']."\n"; |
|
267 | 267 | if ($returnArray['freetext']) { |
268 | - $txt .= _("additional comments") . ': ' . $returnArray['freetext'] . "\n"; |
|
268 | + $txt .= _("additional comments").': '.$returnArray['freetext']."\n"; |
|
269 | 269 | } |
270 | - $txt .= "\n" . _("You can contact the incident reporter at") . ' ' . $returnArray['email']; |
|
270 | + $txt .= "\n"._("You can contact the incident reporter at").' '.$returnArray['email']; |
|
271 | 271 | |
272 | 272 | $mail->Body = $txt; |
273 | 273 | $sent = $mail->send(); |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | $telepath = new \core\diag\Telepath($givenRealm); |
109 | 109 | $outerUser = $telepath->getOuter(); |
110 | 110 | } |
111 | - $testsuite = new \core\diag\RADIUSTests($givenRealm, $outerUser . '@' . $givenRealm); |
|
111 | + $testsuite = new \core\diag\RADIUSTests($givenRealm, $outerUser.'@'.$givenRealm); |
|
112 | 112 | |
113 | 113 | $naptr = $rfc7585suite->relevantNAPTR(); |
114 | 114 | if ($naptr != \core\diag\RADIUSTests::RETVAL_NOTCONFIGURED && $naptr > 0) { |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | $json_data = json_encode($returnArray); |
207 | 207 | |
208 | 208 | if ($token) { |
209 | - $loggerInstance->debug(4, 'JSON data written to ' .$jsonDir.'/'.$token); |
|
209 | + $loggerInstance->debug(4, 'JSON data written to '.$jsonDir.'/'.$token); |
|
210 | 210 | file_put_contents($jsonDir.'/'.$token.'/realm', $json_data); |
211 | 211 | } |
212 | 212 | header("Content-type: application/json; utf-8"); |
@@ -332,7 +332,7 @@ discard block |
||
332 | 332 | // for now (no OpenRoaming client certs available) only run server-side tests |
333 | 333 | foreach ($listOfIPs as $oneIP) { |
334 | 334 | $connectionResult = $connectionTests->cApathCheck($oneIP); |
335 | - if ($connectionResult != \core\diag\AbstractTest::RETVAL_OK || ( isset($connectionTests->TLS_CA_checks_result['cert_oddity']) && count($connectionTests->TLS_CA_checks_result['cert_oddity']) > 0)) { |
|
335 | + if ($connectionResult != \core\diag\AbstractTest::RETVAL_OK || (isset($connectionTests->TLS_CA_checks_result['cert_oddity']) && count($connectionTests->TLS_CA_checks_result['cert_oddity']) > 0)) { |
|
336 | 336 | $allHostsOkay = FALSE; |
337 | 337 | } else { |
338 | 338 | $oneHostOkay = TRUE; |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | // which is different from the outer username we put into installers |
487 | 487 | return $this->getAttributes("internal:checkuser_value")[0]['value']."@".$realm; |
488 | 488 | } |
489 | - if (count($this->getAttributes("internal:use_anon_outer")) > 0 && $this->getAttributes("internal:anon_local_value")[0]['value'] != NULL ) { |
|
489 | + if (count($this->getAttributes("internal:use_anon_outer")) > 0 && $this->getAttributes("internal:anon_local_value")[0]['value'] != NULL) { |
|
490 | 490 | // no special check username, but there is an anon outer ID for |
491 | 491 | // installers - so let's use that one |
492 | 492 | return $this->getAttributes("internal:anon_local_value")[0]['value']."@".$realm; |
@@ -642,7 +642,7 @@ discard block |
||
642 | 642 | } |
643 | 643 | |
644 | 644 | $monthlyList = []; |
645 | - $monthly = $this->frontendHandle->exec("SELECT downloads_user,device_id FROM downloads_history WHERE profile_id=? AND stat_date=DATE_FORMAT(NOW(),'%Y-%m-01')", "i", $this->identifier); |
|
645 | + $monthly = $this->frontendHandle->exec("SELECT downloads_user,device_id FROM downloads_history WHERE profile_id=? AND stat_date=DATE_FORMAT(NOW(),'%Y-%m-01')", "i", $this->identifier); |
|
646 | 646 | while ($statsQuery = mysqli_fetch_object(/** @scrutinizer ignore-type */ $monthly)) { |
647 | 647 | $monthlyList[$statsQuery->device_id] = $statsQuery->downloads_user; |
648 | 648 | } |
@@ -654,7 +654,7 @@ discard block |
||
654 | 654 | } |
655 | 655 | |
656 | 656 | \core\common\Entity::intoThePotatoes(); |
657 | - ksort($finalarray, SORT_STRING|SORT_FLAG_CASE); |
|
657 | + ksort($finalarray, SORT_STRING | SORT_FLAG_CASE); |
|
658 | 658 | \core\common\Entity::outOfThePotatoes(); |
659 | 659 | return $finalarray; |
660 | 660 | } |
@@ -964,7 +964,7 @@ discard block |
||
964 | 964 | $profileStatus = self::CERT_STATUS_NONE; |
965 | 965 | foreach ($rows as $row) { |
966 | 966 | $encodedCert = $row[0]; |
967 | - $tm = $x509->processCertificate(base64_decode($encodedCert))['full_details']['validTo_time_t']- time(); |
|
967 | + $tm = $x509->processCertificate(base64_decode($encodedCert))['full_details']['validTo_time_t'] - time(); |
|
968 | 968 | if ($tm < \config\ConfAssistant::CERT_WARNINGS['expiry_critical']) { |
969 | 969 | $certStatus = self::CERT_STATUS_ERROR; |
970 | 970 | } elseif ($tm < \config\ConfAssistant::CERT_WARNINGS['expiry_warning']) { |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | ?> |
28 | 28 | <?php |
29 | -require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php"; |
|
29 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
30 | 30 | |
31 | 31 | $auth = new \web\lib\admin\Authentication(); |
32 | 32 | $deco = new \web\lib\admin\PageDecoration(); |
@@ -82,9 +82,9 @@ discard block |
||
82 | 82 | echo '<br/>'; |
83 | 83 | echo _("In the 'Timestamp' column we show last update time."); |
84 | 84 | echo '<p/>'; |
85 | - echo _('To check eduroam database specification see') . |
|
86 | - ' <a target="_blank" href="https://monitor.eduroam.org/eduroam-database/v2/docs/eduroam-database-ver30112021.pdf">' . |
|
87 | - _('this document') . '</a>.<p/>'; |
|
85 | + echo _('To check eduroam database specification see'). |
|
86 | + ' <a target="_blank" href="https://monitor.eduroam.org/eduroam-database/v2/docs/eduroam-database-ver30112021.pdf">'. |
|
87 | + _('this document').'</a>.<p/>'; |
|
88 | 88 | echo _('If you cannot find your institution on this list it means that this institiution is not present in your upstream data.'); |
89 | 89 | echo '<p/>'; |
90 | 90 | $allAuthorizedFeds = $user->getAttributes("user:fedadmin"); |
@@ -93,11 +93,11 @@ discard block |
||
93 | 93 | ?> |
94 | 94 | |
95 | 95 | <select name="INST-list" id="INST-list"> |
96 | - <option value=""><?php echo _('---PLEASE CHOOSE---');?></option> |
|
96 | + <option value=""><?php echo _('---PLEASE CHOOSE---'); ?></option> |
|
97 | 97 | <?php |
98 | 98 | $instdata = array(); |
99 | 99 | foreach ($extInsts as $iid => $oneInst) { |
100 | - print '<option value="' . $iid . '">' . $oneInst['name'] . '</option>'; |
|
100 | + print '<option value="'.$iid.'">'.$oneInst['name'].'</option>'; |
|
101 | 101 | $instdata[$iid] = array(); |
102 | 102 | $instdata[$iid]['name'] = $oneInst['name']; |
103 | 103 | $instdata[$iid]['type'] = _('no data'); |
@@ -111,22 +111,22 @@ discard block |
||
111 | 111 | $contactdata = ''; |
112 | 112 | foreach ($oneInst['contacts'] as $oneContact) { |
113 | 113 | if ($contactdata != '') { |
114 | - $contactdata = $contactdata . '<br>'; |
|
114 | + $contactdata = $contactdata.'<br>'; |
|
115 | 115 | } |
116 | 116 | if ($oneContact['name']) { |
117 | - $contactdata = $contactdata . $oneContact['name']; |
|
117 | + $contactdata = $contactdata.$oneContact['name']; |
|
118 | 118 | } |
119 | 119 | if ($contactdata != '') { |
120 | - $contactdata = $contactdata . '<br>'; |
|
120 | + $contactdata = $contactdata.'<br>'; |
|
121 | 121 | } |
122 | 122 | if ($oneContact['mail']) { |
123 | - $contactdata = $contactdata . $oneContact['mail']; |
|
123 | + $contactdata = $contactdata.$oneContact['mail']; |
|
124 | 124 | } |
125 | 125 | if ($contactdata != '') { |
126 | - $contactdata = $contactdata . '<br>'; |
|
126 | + $contactdata = $contactdata.'<br>'; |
|
127 | 127 | } |
128 | 128 | if ($oneContact['phone']) { |
129 | - $contactdata = $contactdata . $oneContact['phone']; |
|
129 | + $contactdata = $contactdata.$oneContact['phone']; |
|
130 | 130 | } |
131 | 131 | } |
132 | 132 | if ($contactdata == '') { |
@@ -145,11 +145,11 @@ discard block |
||
145 | 145 | var instts = []; |
146 | 146 | <?php |
147 | 147 | foreach (array_keys($instdata) as $iid) { |
148 | - echo "instservers['" . $iid . "']='" . $instdata[$iid]['servers']. "';\n"; |
|
149 | - echo "instname['" . $iid . "']='" . $instdata[$iid]['name']. "';\n"; |
|
150 | - echo "insttype['" . $iid . "']='" . $instdata[$iid]['type']. "';\n"; |
|
151 | - echo "instcontact['" . $iid . "']='" . $instdata[$iid]['contacts']. "';\n"; |
|
152 | - echo "instts['" . $iid . "']='" . $instdata[$iid]['ts']. "';\n"; |
|
148 | + echo "instservers['".$iid."']='".$instdata[$iid]['servers']."';\n"; |
|
149 | + echo "instname['".$iid."']='".$instdata[$iid]['name']."';\n"; |
|
150 | + echo "insttype['".$iid."']='".$instdata[$iid]['type']."';\n"; |
|
151 | + echo "instcontact['".$iid."']='".$instdata[$iid]['contacts']."';\n"; |
|
152 | + echo "instts['".$iid."']='".$instdata[$iid]['ts']."';\n"; |
|
153 | 153 | } |
154 | 154 | ?> |
155 | 155 | $(document).ready(function(){ |
@@ -171,18 +171,18 @@ discard block |
||
171 | 171 | <div id="instdata_area"> |
172 | 172 | <table> |
173 | 173 | <tr><th align="left" width="350"> |
174 | - <?php echo _('Name');?> |
|
174 | + <?php echo _('Name'); ?> |
|
175 | 175 | </th><th align="left" width="100"> |
176 | - <?php echo _('Type');?> |
|
176 | + <?php echo _('Type'); ?> |
|
177 | 177 | </th> |
178 | 178 | <th align="left" width="200"> |
179 | - <?php echo _('Servers');?> |
|
179 | + <?php echo _('Servers'); ?> |
|
180 | 180 | </th> |
181 | 181 | <th align="left" width="200"> |
182 | - <?php echo _('Contact data');?> |
|
182 | + <?php echo _('Contact data'); ?> |
|
183 | 183 | </th> |
184 | 184 | <th align="left" width="100"> |
185 | - <?php echo _('Timestamp');?> |
|
185 | + <?php echo _('Timestamp'); ?> |
|
186 | 186 | </th> |
187 | 187 | </tr> |
188 | 188 | <tr id="toshow"></tr> |
@@ -35,10 +35,10 @@ discard block |
||
35 | 35 | public function __construct() |
36 | 36 | { |
37 | 37 | |
38 | - if ( \config\ConfAssistant::eduPKI['testing'] === true ) { |
|
39 | - $this->locationRaCert = ROOT . "/config/SilverbulletClientCerts/edupki-test-ra.pem"; |
|
40 | - $this->locationRaKey = ROOT . "/config/SilverbulletClientCerts/edupki-test-ra.clearkey"; |
|
41 | - $this->locationWebRoot = ROOT . "/config/SilverbulletClientCerts/eduPKI-webserver-root.pem"; |
|
38 | + if (\config\ConfAssistant::eduPKI['testing'] === true) { |
|
39 | + $this->locationRaCert = ROOT."/config/SilverbulletClientCerts/edupki-test-ra.pem"; |
|
40 | + $this->locationRaKey = ROOT."/config/SilverbulletClientCerts/edupki-test-ra.clearkey"; |
|
41 | + $this->locationWebRoot = ROOT."/config/SilverbulletClientCerts/eduPKI-webserver-root.pem"; |
|
42 | 42 | $this->eduPkiRaId = 700; |
43 | 43 | $this->eduPkiCertProfileBoth = "Radius Server SOAP"; |
44 | 44 | $this->eduPkiCertProfileIdp = "Radius Server SOAP"; |
@@ -47,9 +47,9 @@ discard block |
||
47 | 47 | $this->eduPkiEndpointPublic = "https://pki.edupki.org/edupki-test-ca/cgi-bin/pub/soap?wsdl=1"; |
48 | 48 | $this->eduPkiEndpointRa = "https://ra.edupki.org/edupki-test-ca/cgi-bin/ra/soap?wsdl=1"; |
49 | 49 | } else { |
50 | - $this->locationRaCert = ROOT . "/config/SilverbulletClientCerts/edupki-prod-ra.pem"; |
|
51 | - $this->locationRaKey = ROOT . "/config/SilverbulletClientCerts/edupki-prod-ra.clearkey"; |
|
52 | - $this->locationWebRoot = ROOT . "/config/SilverbulletClientCerts/eduPKI-webserver-root.pem"; |
|
50 | + $this->locationRaCert = ROOT."/config/SilverbulletClientCerts/edupki-prod-ra.pem"; |
|
51 | + $this->locationRaKey = ROOT."/config/SilverbulletClientCerts/edupki-prod-ra.clearkey"; |
|
52 | + $this->locationWebRoot = ROOT."/config/SilverbulletClientCerts/eduPKI-webserver-root.pem"; |
|
53 | 53 | $this->eduPkiRaId = 100; |
54 | 54 | $this->eduPkiCertProfileBoth = "eduroam IdP and SP"; |
55 | 55 | $this->eduPkiCertProfileIdp = "eduroam IdP"; |
@@ -63,13 +63,13 @@ discard block |
||
63 | 63 | parent::__construct(); |
64 | 64 | |
65 | 65 | if (stat($this->locationRaCert) === FALSE) { |
66 | - throw new Exception("RA operator PEM file not found: " . $this->locationRaCert); |
|
66 | + throw new Exception("RA operator PEM file not found: ".$this->locationRaCert); |
|
67 | 67 | } |
68 | 68 | if (stat($this->locationRaKey) === FALSE) { |
69 | - throw new Exception("RA operator private key file not found: " . $this->locationRaKey); |
|
69 | + throw new Exception("RA operator private key file not found: ".$this->locationRaKey); |
|
70 | 70 | } |
71 | 71 | if (stat($this->locationWebRoot) === FALSE) { |
72 | - throw new Exception("CA website root CA file not found: " . $this->locationWebRoot); |
|
72 | + throw new Exception("CA website root CA file not found: ".$this->locationWebRoot); |
|
73 | 73 | } |
74 | 74 | } |
75 | 75 | |
@@ -136,26 +136,26 @@ discard block |
||
136 | 136 | throw new Exception("Unexpected policies requested."); |
137 | 137 | } |
138 | 138 | $altArray = [# Array mit den Subject Alternative Names |
139 | - "email:" . $csr["USERMAIL"] |
|
139 | + "email:".$csr["USERMAIL"] |
|
140 | 140 | ]; |
141 | 141 | foreach ($csr["ALTNAMES"] as $oneAltName) { |
142 | 142 | if (!empty($oneAltName) && preg_match('/(?=^.{1,254}$)(^(?:(?!\d|-)[a-z0-9\-]{1,63}(?<!-)\.)+(?:[a-z]{2,})$)/i', $oneAltName) > 0) { |
143 | - $altArray[] = "DNS:" . $oneAltName; |
|
143 | + $altArray[] = "DNS:".$oneAltName; |
|
144 | 144 | } else { |
145 | - $altArray[] = "IP:" . $oneAltName; |
|
145 | + $altArray[] = "IP:".$oneAltName; |
|
146 | 146 | } |
147 | 147 | } |
148 | 148 | $soapPub = $this->initEduPKISoapSession("PUBLIC"); |
149 | 149 | $this->loggerInstance->debug(5, "FIRST ACTUAL SOAP REQUEST (Public, newRequest)!\n"); |
150 | - $this->loggerInstance->debug(5, "PARAM_1: " . $this->eduPkiRaId . "\n"); |
|
151 | - $this->loggerInstance->debug(5, "PARAM_2: " . $csr["CSR_STRING"] . "\n"); |
|
150 | + $this->loggerInstance->debug(5, "PARAM_1: ".$this->eduPkiRaId."\n"); |
|
151 | + $this->loggerInstance->debug(5, "PARAM_2: ".$csr["CSR_STRING"]."\n"); |
|
152 | 152 | $this->loggerInstance->debug(5, "PARAM_3: "); |
153 | 153 | $this->loggerInstance->debug(5, $altArray); |
154 | - $this->loggerInstance->debug(5, "PARAM_4: " . $profile . "\n"); |
|
155 | - $this->loggerInstance->debug(5, "PARAM_5: " . sha1("notused") . "\n"); |
|
156 | - $this->loggerInstance->debug(5, "PARAM_6: " . $csr["USERNAME"] . "\n"); |
|
157 | - $this->loggerInstance->debug(5, "PARAM_7: " . $csr["USERMAIL"] . "\n"); |
|
158 | - $this->loggerInstance->debug(5, "PARAM_8: " . ProfileSilverbullet::PRODUCTNAME . "\n"); |
|
154 | + $this->loggerInstance->debug(5, "PARAM_4: ".$profile."\n"); |
|
155 | + $this->loggerInstance->debug(5, "PARAM_5: ".sha1("notused")."\n"); |
|
156 | + $this->loggerInstance->debug(5, "PARAM_6: ".$csr["USERNAME"]."\n"); |
|
157 | + $this->loggerInstance->debug(5, "PARAM_7: ".$csr["USERMAIL"]."\n"); |
|
158 | + $this->loggerInstance->debug(5, "PARAM_8: ".ProfileSilverbullet::PRODUCTNAME."\n"); |
|
159 | 159 | $this->loggerInstance->debug(5, "PARAM_9: false\n"); |
160 | 160 | $soapNewRequest = $soapPub->newRequest( |
161 | 161 | $this->eduPkiRaId, # RA-ID |
@@ -177,11 +177,11 @@ discard block |
||
177 | 177 | } catch (Exception $e) { |
178 | 178 | // PHP 7.1 can do this much better |
179 | 179 | if (is_soap_fault($e)) { |
180 | - throw new Exception("Error when sending SOAP request: " . "{$e->faultcode}: { |
|
180 | + throw new Exception("Error when sending SOAP request: "."{$e->faultcode}: { |
|
181 | 181 | $e->faultstring |
182 | 182 | }\n"); |
183 | 183 | } |
184 | - throw new Exception("Something odd happened while doing the SOAP request:" . $e->getMessage()); |
|
184 | + throw new Exception("Something odd happened while doing the SOAP request:".$e->getMessage()); |
|
185 | 185 | } |
186 | 186 | try { |
187 | 187 | $soap = $this->initEduPKISoapSession("RA"); |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | // for obnoxious reasons, we have to dump the request into a file and let pkcs7_sign read from the file |
214 | 214 | // rather than just using the string. Grr. |
215 | 215 | $tempdir = \core\common\Entity::createTemporaryDirectory("test"); |
216 | - file_put_contents($tempdir['dir'] . "/content.txt", $soapCleartext); |
|
216 | + file_put_contents($tempdir['dir']."/content.txt", $soapCleartext); |
|
217 | 217 | // retrieve our RA cert from filesystem |
218 | 218 | // the RA certificates are not needed right now because we |
219 | 219 | // have resorted to S/MIME signatures with openssl command-line |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | // sign the data, using cmdline because openssl_pkcs7_sign produces strange results |
226 | 226 | // -binary didn't help, nor switch -md to sha1 sha256 or sha512 |
227 | 227 | $this->loggerInstance->debug(2, "Actual content to be signed is this:\n $soapCleartext\n"); |
228 | - $execCmd = \config\Master::PATHS['openssl'] . " smime -sign -binary -in " . $tempdir['dir'] . "/content.txt -out " . $tempdir['dir'] . "/signature.txt -outform pem -inkey " . $this->locationRaKey . " -signer " . $this->locationRaCert; |
|
228 | + $execCmd = \config\Master::PATHS['openssl']." smime -sign -binary -in ".$tempdir['dir']."/content.txt -out ".$tempdir['dir']."/signature.txt -outform pem -inkey ".$this->locationRaKey." -signer ".$this->locationRaCert; |
|
229 | 229 | $this->loggerInstance->debug(2, "Calling openssl smime with following cmdline: $execCmd\n"); |
230 | 230 | $output = []; |
231 | 231 | $return = 999; |
@@ -234,21 +234,21 @@ discard block |
||
234 | 234 | throw new Exception("Non-zero return value from openssl smime!"); |
235 | 235 | } |
236 | 236 | // and get the signature blob back from the filesystem |
237 | - $detachedSig = trim(file_get_contents($tempdir['dir'] . "/signature.txt")); |
|
237 | + $detachedSig = trim(file_get_contents($tempdir['dir']."/signature.txt")); |
|
238 | 238 | $this->loggerInstance->debug(5, "Request for server approveRequest has parameters:\n"); |
239 | - $this->loggerInstance->debug(5, $soapReqnum . "\n"); |
|
240 | - $this->loggerInstance->debug(5, $soapCleartext . "\n"); // PHP magically encodes this as base64 while sending! |
|
241 | - $this->loggerInstance->debug(5, $detachedSig . "\n"); |
|
239 | + $this->loggerInstance->debug(5, $soapReqnum."\n"); |
|
240 | + $this->loggerInstance->debug(5, $soapCleartext."\n"); // PHP magically encodes this as base64 while sending! |
|
241 | + $this->loggerInstance->debug(5, $detachedSig."\n"); |
|
242 | 242 | $soapIssueCert = $soap->approveRequest($soapReqnum, $soapCleartext, $detachedSig); |
243 | - $this->loggerInstance->debug(5, "approveRequest Request was: \n" . $soap->__getLastRequest()); |
|
244 | - $this->loggerInstance->debug(5, "approveRequest Response was: \n" . $soap->__getLastResponse()); |
|
243 | + $this->loggerInstance->debug(5, "approveRequest Request was: \n".$soap->__getLastRequest()); |
|
244 | + $this->loggerInstance->debug(5, "approveRequest Response was: \n".$soap->__getLastResponse()); |
|
245 | 245 | if ($soapIssueCert === FALSE) { |
246 | 246 | throw new Exception("The locally approved request was NOT processed by the CA."); |
247 | 247 | } |
248 | 248 | } catch (SoapFault $e) { |
249 | - throw new Exception("SoapFault: Error when sending or receiving SOAP message: " . "{$e->faultcode}: {$e->faultname}: {$e->faultstring}: {$e->faultactor}: {$e->detail}: {$e->headerfault}\n"); |
|
249 | + throw new Exception("SoapFault: Error when sending or receiving SOAP message: "."{$e->faultcode}: {$e->faultname}: {$e->faultstring}: {$e->faultactor}: {$e->detail}: {$e->headerfault}\n"); |
|
250 | 250 | } catch (Exception $e) { |
251 | - throw new Exception("Exception: Something odd happened between the SOAP requests:" . $e->getMessage()); |
|
251 | + throw new Exception("Exception: Something odd happened between the SOAP requests:".$e->getMessage()); |
|
252 | 252 | } |
253 | 253 | return $soapReqnum; |
254 | 254 | } |
@@ -300,9 +300,9 @@ discard block |
||
300 | 300 | throw new Exception("CAInfo has no root certificate for us!"); |
301 | 301 | } |
302 | 302 | } catch (SoapFault $e) { |
303 | - throw new Exception("SoapFault: Error when sending or receiving SOAP message: " . "{$e->faultcode}: {$e->faultname}: {$e->faultstring}: {$e->faultactor}: {$e->detail}: {$e->headerfault}\n"); |
|
303 | + throw new Exception("SoapFault: Error when sending or receiving SOAP message: "."{$e->faultcode}: {$e->faultname}: {$e->faultstring}: {$e->faultactor}: {$e->detail}: {$e->headerfault}\n"); |
|
304 | 304 | } catch (Exception $e) { |
305 | - throw new Exception("Exception: Something odd happened between the SOAP requests:" . $e->getMessage()); |
|
305 | + throw new Exception("Exception: Something odd happened between the SOAP requests:".$e->getMessage()); |
|
306 | 306 | } |
307 | 307 | return [ |
308 | 308 | "CERT" => openssl_x509_read($parsedCert['pem']), |
@@ -335,12 +335,12 @@ discard block |
||
335 | 335 | // for obnoxious reasons, we have to dump the request into a file and let pkcs7_sign read from the file |
336 | 336 | // rather than just using the string. Grr. |
337 | 337 | $tempdir = \core\common\Entity::createTemporaryDirectory("test"); |
338 | - file_put_contents($tempdir['dir'] . "/content.txt", $soapRawRevRequest); |
|
338 | + file_put_contents($tempdir['dir']."/content.txt", $soapRawRevRequest); |
|
339 | 339 | // retrieve our RA cert from filesystem |
340 | 340 | // sign the data, using cmdline because openssl_pkcs7_sign produces strange results |
341 | 341 | // -binary didn't help, nor switch -md to sha1 sha256 or sha512 |
342 | 342 | $this->loggerInstance->debug(5, "Actual content to be signed is this:\n$soapRawRevRequest\n"); |
343 | - $execCmd = \config\Master::PATHS['openssl'] . " smime -sign -binary -in " . $tempdir['dir'] . "/content.txt -out " . $tempdir['dir'] . "/signature.txt -outform pem -inkey " . $this->locationRaKey . " -signer " . $this->locationRaCert; |
|
343 | + $execCmd = \config\Master::PATHS['openssl']." smime -sign -binary -in ".$tempdir['dir']."/content.txt -out ".$tempdir['dir']."/signature.txt -outform pem -inkey ".$this->locationRaKey." -signer ".$this->locationRaCert; |
|
344 | 344 | $this->loggerInstance->debug(2, "Calling openssl smime with following cmdline: $execCmd\n"); |
345 | 345 | $output = []; |
346 | 346 | $return = 999; |
@@ -349,7 +349,7 @@ discard block |
||
349 | 349 | throw new Exception("Non-zero return value from openssl smime!"); |
350 | 350 | } |
351 | 351 | // and get the signature blob back from the filesystem |
352 | - $detachedSig = trim(file_get_contents($tempdir['dir'] . "/signature.txt")); |
|
352 | + $detachedSig = trim(file_get_contents($tempdir['dir']."/signature.txt")); |
|
353 | 353 | $soapIssueRev = $soap->approveRevocationRequest($soapRevocationSerial, $soapRawRevRequest, $detachedSig); |
354 | 354 | if ($soapIssueRev === FALSE) { |
355 | 355 | throw new Exception("The locally approved revocation request was NOT processed by the CA."); |
@@ -357,9 +357,9 @@ discard block |
||
357 | 357 | } catch (Exception $e) { |
358 | 358 | // PHP 7.1 can do this much better |
359 | 359 | if (is_soap_fault($e)) { |
360 | - throw new Exception("Error when sending SOAP request: " . "{$e->faultcode}: {$e->faultstring}\n"); |
|
360 | + throw new Exception("Error when sending SOAP request: "."{$e->faultcode}: {$e->faultstring}\n"); |
|
361 | 361 | } |
362 | - throw new Exception("Something odd happened while doing the SOAP request:" . $e->getMessage()); |
|
362 | + throw new Exception("Something odd happened while doing the SOAP request:".$e->getMessage()); |
|
363 | 363 | } |
364 | 364 | } |
365 | 365 | |
@@ -459,9 +459,9 @@ discard block |
||
459 | 459 | */ |
460 | 460 | public function soapToXmlInteger($x) |
461 | 461 | { |
462 | - return '<' . $x[0] . '>' |
|
462 | + return '<'.$x[0].'>' |
|
463 | 463 | . htmlentities($x[1], ENT_NOQUOTES | ENT_XML1) |
464 | - . '</' . $x[0] . '>'; |
|
464 | + . '</'.$x[0].'>'; |
|
465 | 465 | } |
466 | 466 | |
467 | 467 | /** |
@@ -480,9 +480,9 @@ discard block |
||
480 | 480 | // dump private key into directory |
481 | 481 | $outstring = ""; |
482 | 482 | openssl_pkey_export($privateKey, $outstring); |
483 | - file_put_contents($tempdir . "/pkey.pem", $outstring); |
|
483 | + file_put_contents($tempdir."/pkey.pem", $outstring); |
|
484 | 484 | // PHP can only do one DC in the Subject. But we need three. |
485 | - $execCmd = \config\Master::PATHS['openssl'] . " req -new -sha256 -key $tempdir/pkey.pem -out $tempdir/request.csr -subj /DC=test/DC=test/DC=eduroam/C=$fed/O=" . \config\ConfAssistant::CONSORTIUM['name'] . "/OU=$fed/CN=$username/emailAddress=$username"; |
|
485 | + $execCmd = \config\Master::PATHS['openssl']." req -new -sha256 -key $tempdir/pkey.pem -out $tempdir/request.csr -subj /DC=test/DC=test/DC=eduroam/C=$fed/O=".\config\ConfAssistant::CONSORTIUM['name']."/OU=$fed/CN=$username/emailAddress=$username"; |
|
486 | 486 | $this->loggerInstance->debug(2, "Calling openssl req with following cmdline: $execCmd\n"); |
487 | 487 | $output = []; |
488 | 488 | $return = 999; |