@@ -133,7 +133,7 @@ |
||
| 133 | 133 | * @return array |
| 134 | 134 | */ |
| 135 | 135 | |
| 136 | - public function listExternalEntitiesByUserEmail($userEmail){ |
|
| 136 | + public function listExternalEntitiesByUserEmail($userEmail) { |
|
| 137 | 137 | return []; |
| 138 | 138 | } |
| 139 | 139 | } |
| 140 | 140 | \ No newline at end of file |
@@ -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; |
@@ -83,14 +83,14 @@ discard block |
||
| 83 | 83 | background:#095e80; |
| 84 | 84 | border-style:inset; |
| 85 | 85 | position: relative; |
| 86 | - <?php echo $start;?>: 3px; |
|
| 86 | + <?php echo $start; ?>: 3px; |
|
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | button.pressedDisabled { |
| 90 | 90 | background:#999; |
| 91 | 91 | border-style:inset; |
| 92 | 92 | position: relative; |
| 93 | - <?php echo $start;?>: 3px; |
|
| 93 | + <?php echo $start; ?>: 3px; |
|
| 94 | 94 | } |
| 95 | 95 | |
| 96 | 96 | button.delete { |
@@ -102,14 +102,14 @@ discard block |
||
| 102 | 102 | color:#FFF; |
| 103 | 103 | } |
| 104 | 104 | .problemdescription { |
| 105 | - padding-<?php echo $start;?>:40px; |
|
| 105 | + padding-<?php echo $start; ?>:40px; |
|
| 106 | 106 | padding-top: 10px; |
| 107 | 107 | padding-bottom: 10px; |
| 108 | 108 | background-color: lightyellow; |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | .problemsolution { |
| 112 | - padding-<?php echo $start;?>:40px; |
|
| 112 | + padding-<?php echo $start; ?>:40px; |
|
| 113 | 113 | padding-top: 10px; |
| 114 | 114 | padding-bottom: 10px; |
| 115 | 115 | background-color: lightgreen; |
@@ -118,15 +118,15 @@ discard block |
||
| 118 | 118 | .use_borders button.alertButton { |
| 119 | 119 | color: maroon; |
| 120 | 120 | background: #bbb; |
| 121 | - border-<?php echo $start;?>-style: outset; |
|
| 122 | - border-<?php echo $start;?>-width: 1px; |
|
| 123 | - border-<?php echo $start;?>-color: #eee; |
|
| 121 | + border-<?php echo $start; ?>-style: outset; |
|
| 122 | + border-<?php echo $start; ?>-width: 1px; |
|
| 123 | + border-<?php echo $start; ?>-color: #eee; |
|
| 124 | 124 | border-top-style: outset; |
| 125 | 125 | border-top-width: 1px; |
| 126 | 126 | border-top-color: #eee; |
| 127 | - border-<?php echo $end;?>-style: outset; |
|
| 128 | - border-<?php echo $end;?>-width: 2px; |
|
| 129 | - border-<?php echo $end;?>-color: #444; |
|
| 127 | + border-<?php echo $end; ?>-style: outset; |
|
| 128 | + border-<?php echo $end; ?>-width: 2px; |
|
| 129 | + border-<?php echo $end; ?>-color: #444; |
|
| 130 | 130 | border-bottom-style: outset; |
| 131 | 131 | border-bottom-width: 2px; |
| 132 | 132 | border-bottom-color: #444; |
@@ -136,15 +136,15 @@ discard block |
||
| 136 | 136 | button[disabled] { |
| 137 | 137 | background: #bababa; |
| 138 | 138 | color: #6a6a6a; |
| 139 | - border-<?php echo $start;?>-style: inset; |
|
| 140 | - border-<?php echo $start;?>-width: 1px; |
|
| 141 | - border-<?php echo $start;?>-color: #dadada; |
|
| 139 | + border-<?php echo $start; ?>-style: inset; |
|
| 140 | + border-<?php echo $start; ?>-width: 1px; |
|
| 141 | + border-<?php echo $start; ?>-color: #dadada; |
|
| 142 | 142 | border-top-style: inset; |
| 143 | 143 | border-top-width: 1px; |
| 144 | 144 | border-top-color: #dadada; |
| 145 | - border-<?php echo $end;?>-style: outset; |
|
| 146 | - border-<?php echo $end;?>-width: 2px; |
|
| 147 | - border-<?php echo $end;?>-color: #dadada; |
|
| 145 | + border-<?php echo $end; ?>-style: outset; |
|
| 146 | + border-<?php echo $end; ?>-width: 2px; |
|
| 147 | + border-<?php echo $end; ?>-color: #dadada; |
|
| 148 | 148 | border-bottom-style: outset; |
| 149 | 149 | border-bottom-width: 2px; |
| 150 | 150 | border-bottom-color: #dadada; |
@@ -176,8 +176,8 @@ discard block |
||
| 176 | 176 | div.profilemodulebuttons { |
| 177 | 177 | position: inherit; |
| 178 | 178 | bottom: 5px; |
| 179 | - <?php echo $end;?>: 5px; |
|
| 180 | - text-align: <?php echo $end;?>; |
|
| 179 | + <?php echo $end; ?>: 5px; |
|
| 180 | + text-align: <?php echo $end; ?>; |
|
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | div.profilebox { |
@@ -198,15 +198,15 @@ discard block |
||
| 198 | 198 | display: block; |
| 199 | 199 | position: absolute; |
| 200 | 200 | top:0; |
| 201 | - <?php echo $end;?>:0; |
|
| 202 | - padding-<?php echo $end;?>:20px; |
|
| 201 | + <?php echo $end; ?>:0; |
|
| 202 | + padding-<?php echo $end; ?>:20px; |
|
| 203 | 203 | padding-top:7px; |
| 204 | 204 | } |
| 205 | 205 | |
| 206 | 206 | div.sidebar { |
| 207 | 207 | display: inline; |
| 208 | - float: <?php echo $end;?>; |
|
| 209 | - padding-<?php echo $end;?>: 20px; |
|
| 208 | + float: <?php echo $end; ?>; |
|
| 209 | + padding-<?php echo $end; ?>: 20px; |
|
| 210 | 210 | } |
| 211 | 211 | div.sidebar a { |
| 212 | 212 | color: white; |
@@ -215,7 +215,7 @@ discard block |
||
| 215 | 215 | div.header { |
| 216 | 216 | height: 54px; |
| 217 | 217 | background: #FFFFFF; |
| 218 | - padding-<?php echo $start;?>:30px; |
|
| 218 | + padding-<?php echo $start; ?>:30px; |
|
| 219 | 219 | padding-bottom: 10px; |
| 220 | 220 | color: <?php echo $colour2?>; |
| 221 | 221 | } |
@@ -225,8 +225,8 @@ discard block |
||
| 225 | 225 | top: 54px; |
| 226 | 226 | bottom: 50px; |
| 227 | 227 | padding-top: 10px; |
| 228 | - padding-<?php echo $start;?>: 0px; |
|
| 229 | - padding-<?php echo $end;?>: 0px; |
|
| 228 | + padding-<?php echo $start; ?>: 0px; |
|
| 229 | + padding-<?php echo $end; ?>: 0px; |
|
| 230 | 230 | width:100%; |
| 231 | 231 | } |
| 232 | 232 | |
@@ -240,18 +240,18 @@ discard block |
||
| 240 | 240 | color: #FFFFFF; |
| 241 | 241 | min-height:100px; |
| 242 | 242 | overflow: auto; |
| 243 | - padding-<?php echo $start;?>:20px |
|
| 243 | + padding-<?php echo $start; ?>:20px |
|
| 244 | 244 | } |
| 245 | 245 | |
| 246 | 246 | #thirdrow { |
| 247 | - padding-<?php echo $start;?>: 10px; |
|
| 248 | - padding-<?php echo $end;?>: 10px; |
|
| 247 | + padding-<?php echo $start; ?>: 10px; |
|
| 248 | + padding-<?php echo $end; ?>: 10px; |
|
| 249 | 249 | } |
| 250 | 250 | |
| 251 | 251 | #footer { |
| 252 | 252 | width: 100%; |
| 253 | - <?php echo $start;?>: 0; |
|
| 254 | - <?php echo $end;?>: 0; |
|
| 253 | + <?php echo $start; ?>: 0; |
|
| 254 | + <?php echo $end; ?>: 0; |
|
| 255 | 255 | bottom: 0; |
| 256 | 256 | position: absolute; |
| 257 | 257 | background: white; |
@@ -277,8 +277,8 @@ discard block |
||
| 277 | 277 | height: 100% !important; |
| 278 | 278 | position: relative; |
| 279 | 279 | min-width: 1000px; |
| 280 | - margin-<?php echo $start;?>: auto; |
|
| 281 | - margin-<?php echo $end;?>: auto; |
|
| 280 | + margin-<?php echo $start; ?>: auto; |
|
| 281 | + margin-<?php echo $end; ?>: auto; |
|
| 282 | 282 | } |
| 283 | 283 | |
| 284 | 284 | div.device_info { |
@@ -298,8 +298,8 @@ discard block |
||
| 298 | 298 | position: fixed; |
| 299 | 299 | top: 0; |
| 300 | 300 | bottom: 0; |
| 301 | - <?php echo $start;?>: 0; |
|
| 302 | - <?php echo $end;?>: 0; |
|
| 301 | + <?php echo $start; ?>: 0; |
|
| 302 | + <?php echo $end; ?>: 0; |
|
| 303 | 303 | background-color: #000000; |
| 304 | 304 | opacity: 0.5; |
| 305 | 305 | z-index: 90; |
@@ -326,7 +326,7 @@ discard block |
||
| 326 | 326 | padding: 15px; |
| 327 | 327 | text-align: start; |
| 328 | 328 | width: 850px; |
| 329 | - <?php echo $start;?>: 100px; |
|
| 329 | + <?php echo $start; ?>: 100px; |
|
| 330 | 330 | top: 50px; |
| 331 | 331 | z-index: 100; |
| 332 | 332 | } |
@@ -335,15 +335,15 @@ discard block |
||
| 335 | 335 | position: absolute; |
| 336 | 336 | top: 0; |
| 337 | 337 | bottom: 0; |
| 338 | - <?php echo $start;?>: 0; |
|
| 339 | - <?php echo $end;?>: 0; |
|
| 338 | + <?php echo $start; ?>: 0; |
|
| 339 | + <?php echo $end; ?>: 0; |
|
| 340 | 340 | z-index: 100; |
| 341 | 341 | } |
| 342 | 342 | |
| 343 | 343 | div#msgbox div { |
| 344 | 344 | position: fixed; |
| 345 | - <?php echo $start;?>: 0; |
|
| 346 | - <?php echo $end;?>: 0; |
|
| 345 | + <?php echo $start; ?>: 0; |
|
| 346 | + <?php echo $end; ?>: 0; |
|
| 347 | 347 | } |
| 348 | 348 | |
| 349 | 349 | div#msgbox div div.graybox { |
@@ -358,13 +358,13 @@ discard block |
||
| 358 | 358 | div.graybox img { |
| 359 | 359 | display: block; |
| 360 | 360 | cursor: pointer; |
| 361 | - float: <?php echo $end;?>; |
|
| 361 | + float: <?php echo $end; ?>; |
|
| 362 | 362 | margin: 0px 0px 10px 10px; |
| 363 | 363 | } |
| 364 | 364 | |
| 365 | 365 | img.icon { |
| 366 | - float: <?php echo $start;?>; |
|
| 367 | - margin-<?php echo $end;?>: 5px; |
|
| 366 | + float: <?php echo $start; ?>; |
|
| 367 | + margin-<?php echo $end; ?>: 5px; |
|
| 368 | 368 | margin-top: 3px; |
| 369 | 369 | } |
| 370 | 370 | |
@@ -428,15 +428,15 @@ discard block |
||
| 428 | 428 | div.ca-summary { |
| 429 | 429 | border: 1px dotted; |
| 430 | 430 | background-color: #ccccff; |
| 431 | - border-<?php echo $start;?>: 10px solid; |
|
| 432 | - border-<?php echo $start;?>-color: green; |
|
| 431 | + border-<?php echo $start; ?>: 10px solid; |
|
| 432 | + border-<?php echo $start; ?>-color: green; |
|
| 433 | 433 | padding: 2px; |
| 434 | - padding-<?php echo $start;?>: 8px; |
|
| 434 | + padding-<?php echo $start; ?>: 8px; |
|
| 435 | 435 | } |
| 436 | 436 | |
| 437 | 437 | span.edu_cat { |
| 438 | 438 | font-weight: bold; |
| 439 | - color: <?php echo $colour2;?>; |
|
| 439 | + color: <?php echo $colour2; ?>; |
|
| 440 | 440 | } |
| 441 | 441 | |
| 442 | 442 | span.tooltip { |
@@ -495,7 +495,7 @@ discard block |
||
| 495 | 495 | } |
| 496 | 496 | |
| 497 | 497 | table.authrecord td { |
| 498 | - padding-<?php echo $end;?>: 10px; |
|
| 498 | + padding-<?php echo $end; ?>: 10px; |
|
| 499 | 499 | } |
| 500 | 500 | |
| 501 | 501 | p.MOTD { |
@@ -513,15 +513,15 @@ discard block |
||
| 513 | 513 | } |
| 514 | 514 | |
| 515 | 515 | .use_borders button { |
| 516 | - border-<?php echo $start;?>-style: outset; |
|
| 517 | - border-<?php echo $start;?>-width: 1px; |
|
| 518 | - border-<?php echo $start;?>-color: #8bbacb; |
|
| 516 | + border-<?php echo $start; ?>-style: outset; |
|
| 517 | + border-<?php echo $start; ?>-width: 1px; |
|
| 518 | + border-<?php echo $start; ?>-color: #8bbacb; |
|
| 519 | 519 | border-top-style: outset; |
| 520 | 520 | border-top-width: 1px; |
| 521 | 521 | border-top-color: #8bbacb; |
| 522 | - border-<?php echo $end;?>-style: outset; |
|
| 523 | - border-<?php echo $end;?>-width: 2px; |
|
| 524 | - border-<?php echo $end;?>-color: #043d52; |
|
| 522 | + border-<?php echo $end; ?>-style: outset; |
|
| 523 | + border-<?php echo $end; ?>-width: 2px; |
|
| 524 | + border-<?php echo $end; ?>-color: #043d52; |
|
| 525 | 525 | border-bottom-style: outset; |
| 526 | 526 | border-bottom-width: 2px; |
| 527 | 527 | border-bottom-color: #043d52; |
@@ -544,8 +544,8 @@ discard block |
||
| 544 | 544 | border-bottom-style:solid; |
| 545 | 545 | border-top-width:5px; |
| 546 | 546 | border-bottom-width:5px; |
| 547 | - border-color: <?php echo $colour1;?>; |
|
| 548 | - padding-<?php echo $start;?>:30px; |
|
| 547 | + border-color: <?php echo $colour1; ?>; |
|
| 548 | + padding-<?php echo $start; ?>:30px; |
|
| 549 | 549 | } |
| 550 | 550 | |
| 551 | 551 | .no_borders button.disabledDevice { |
@@ -561,13 +561,13 @@ discard block |
||
| 561 | 561 | } |
| 562 | 562 | |
| 563 | 563 | input { |
| 564 | - margin-<?php echo $end;?>: 5px; |
|
| 564 | + margin-<?php echo $end; ?>: 5px; |
|
| 565 | 565 | |
| 566 | 566 | } |
| 567 | 567 | |
| 568 | 568 | select { |
| 569 | 569 | vertical-align: middle; |
| 570 | - margin-<?php echo $start;?>: 10px; |
|
| 570 | + margin-<?php echo $start; ?>: 10px; |
|
| 571 | 571 | } |
| 572 | 572 | |
| 573 | 573 | td.notapplicable { |
@@ -600,8 +600,8 @@ discard block |
||
| 600 | 600 | |
| 601 | 601 | .signin_large { |
| 602 | 602 | vertical-align: top; |
| 603 | - padding-<?php echo $start;?>:20px; |
|
| 604 | - padding-<?php echo $end;?>:20px; |
|
| 603 | + padding-<?php echo $start; ?>:20px; |
|
| 604 | + padding-<?php echo $end; ?>:20px; |
|
| 605 | 605 | color: #bfd5dc; |
| 606 | 606 | font-size: 20px; |
| 607 | 607 | } |
@@ -614,34 +614,34 @@ discard block |
||
| 614 | 614 | } |
| 615 | 615 | |
| 616 | 616 | #close_button { |
| 617 | - background: <?php echo $colour2;?>; |
|
| 617 | + background: <?php echo $colour2; ?>; |
|
| 618 | 618 | color: #FFFFFF; |
| 619 | 619 | height: 23px; |
| 620 | - border-<?php echo $start;?>-style: inset; |
|
| 621 | - border-<?php echo $start;?>-width: 1px; |
|
| 622 | - border-<?php echo $start;?>-color: #8bbacb; |
|
| 620 | + border-<?php echo $start; ?>-style: inset; |
|
| 621 | + border-<?php echo $start; ?>-width: 1px; |
|
| 622 | + border-<?php echo $start; ?>-color: #8bbacb; |
|
| 623 | 623 | border-top-style: inset; |
| 624 | 624 | border-top-width: 1px; |
| 625 | 625 | border-top-color: #8bbacb; |
| 626 | - border-<?php echo $end;?>-style: outset; |
|
| 627 | - border-<?php echo $end;?>-width: 2px; |
|
| 628 | - border-<?php echo $end;?>-color: #043d52; |
|
| 626 | + border-<?php echo $end; ?>-style: outset; |
|
| 627 | + border-<?php echo $end; ?>-width: 2px; |
|
| 628 | + border-<?php echo $end; ?>-color: #043d52; |
|
| 629 | 629 | border-bottom-style: outset; |
| 630 | 630 | border-bottom-width: 2px; |
| 631 | 631 | border-bottom-color: #043d52; |
| 632 | - padding-<?php echo $start;?>: 5px; |
|
| 633 | - padding-<?php echo $end;?>: 5px; |
|
| 632 | + padding-<?php echo $start; ?>: 5px; |
|
| 633 | + padding-<?php echo $end; ?>: 5px; |
|
| 634 | 634 | padding-top: 1px; |
| 635 | 635 | padding-bottom: 1px; |
| 636 | 636 | position: relative; |
| 637 | - <?php echo $start;?>: 640px; |
|
| 637 | + <?php echo $start; ?>: 640px; |
|
| 638 | 638 | cursor:pointer; |
| 639 | 639 | } |
| 640 | 640 | |
| 641 | 641 | #loading_ico { |
| 642 | 642 | display: none; |
| 643 | 643 | position: absolute; |
| 644 | - <?php echo $start;?>: 200px; |
|
| 644 | + <?php echo $start; ?>: 200px; |
|
| 645 | 645 | top: 220px; |
| 646 | 646 | z-index: 200; |
| 647 | 647 | text-align: center; |
@@ -655,7 +655,7 @@ discard block |
||
| 655 | 655 | z-index: 100; |
| 656 | 656 | position: absolute; |
| 657 | 657 | width: 700px; |
| 658 | - <?php echo $start;?>: 200px; |
|
| 658 | + <?php echo $start; ?>: 200px; |
|
| 659 | 659 | text-align: justify; |
| 660 | 660 | top: 200px; |
| 661 | 661 | box-shadow: 5px 5px 5px #666666; |
@@ -663,23 +663,23 @@ discard block |
||
| 663 | 663 | } |
| 664 | 664 | |
| 665 | 665 | #user_info { |
| 666 | - padding-<?php echo $start;?>: 30px; |
|
| 666 | + padding-<?php echo $start; ?>: 30px; |
|
| 667 | 667 | font-size: 11px; |
| 668 | 668 | font-weight: normal; |
| 669 | 669 | } |
| 670 | 670 | |
| 671 | 671 | #user_welcome { |
| 672 | 672 | background: #ffffff; |
| 673 | - padding-<?php echo $start;?>: 30px; |
|
| 673 | + padding-<?php echo $start; ?>: 30px; |
|
| 674 | 674 | padding-top: 20px; |
| 675 | - padding-<?php echo $end;?>: 180px; |
|
| 675 | + padding-<?php echo $end; ?>: 180px; |
|
| 676 | 676 | font-size: 12px; |
| 677 | 677 | font-weight: normal; |
| 678 | 678 | } |
| 679 | 679 | |
| 680 | 680 | #devices { |
| 681 | 681 | z-index:90; |
| 682 | - padding-<?php echo $start;?>: 30px; |
|
| 682 | + padding-<?php echo $start; ?>: 30px; |
|
| 683 | 683 | font-size: 11px; |
| 684 | 684 | font-weight: normal; |
| 685 | 685 | position: relative; |
@@ -687,15 +687,15 @@ discard block |
||
| 687 | 687 | |
| 688 | 688 | #profile_list { |
| 689 | 689 | width: 30em; |
| 690 | - padding-<?php echo $start;?>: 10px; |
|
| 691 | - padding-<?php echo $end;?>: 0px; |
|
| 692 | - background: <?php echo $colour2;?>; |
|
| 690 | + padding-<?php echo $start; ?>: 10px; |
|
| 691 | + padding-<?php echo $end; ?>: 0px; |
|
| 692 | + background: <?php echo $colour2; ?>; |
|
| 693 | 693 | color: white; |
| 694 | 694 | box-shadow: 10px 10px 5px #888888; |
| 695 | 695 | } |
| 696 | 696 | |
| 697 | 697 | #profile_redirect { |
| 698 | - padding-<?php echo $start;?>: 30px; |
|
| 698 | + padding-<?php echo $start; ?>: 30px; |
|
| 699 | 699 | padding-top: 20px; |
| 700 | 700 | font-size: 11px; |
| 701 | 701 | font-weight: normal; |
@@ -705,13 +705,13 @@ discard block |
||
| 705 | 705 | } |
| 706 | 706 | |
| 707 | 707 | #profiles { |
| 708 | - padding-<?php echo $start;?>: 30px; |
|
| 708 | + padding-<?php echo $start; ?>: 30px; |
|
| 709 | 709 | font-size: 11px; |
| 710 | 710 | padding-bottom: 10px |
| 711 | 711 | } |
| 712 | 712 | |
| 713 | 713 | #signin { |
| 714 | - padding-<?php echo $start;?>: 30px; |
|
| 714 | + padding-<?php echo $start; ?>: 30px; |
|
| 715 | 715 | padding-top: 10px; |
| 716 | 716 | } |
| 717 | 717 | |
@@ -735,8 +735,8 @@ discard block |
||
| 735 | 735 | font-size: 14px; |
| 736 | 736 | padding-top: 4px; |
| 737 | 737 | padding-bottom: 12px; |
| 738 | - padding-<?php echo $start;?>: 30px; |
|
| 739 | - background: <?php echo $colour1;?>; |
|
| 738 | + padding-<?php echo $start; ?>: 30px; |
|
| 739 | + background: <?php echo $colour1; ?>; |
|
| 740 | 740 | text-align: start; |
| 741 | 741 | text-shadow: 10px 10px 5px #888888; |
| 742 | 742 | } |
@@ -746,9 +746,9 @@ discard block |
||
| 746 | 746 | border-bottom-style:solid; |
| 747 | 747 | border-top-width:5px; |
| 748 | 748 | border-bottom-width:5px; |
| 749 | - border-color: <?php echo $colour1;?>; |
|
| 750 | - padding-<?php echo $start;?>:30px; |
|
| 751 | - color: <?php echo $colour2;?>; |
|
| 749 | + border-color: <?php echo $colour1; ?>; |
|
| 750 | + padding-<?php echo $start; ?>:30px; |
|
| 751 | + color: <?php echo $colour2; ?>; |
|
| 752 | 752 | } |
| 753 | 753 | |
| 754 | 754 | #heading h1 { |
@@ -763,11 +763,11 @@ discard block |
||
| 763 | 763 | |
| 764 | 764 | #welcome { |
| 765 | 765 | padding: 20px; |
| 766 | - padding-<?php echo $start;?>: 30px; |
|
| 766 | + padding-<?php echo $start; ?>: 30px; |
|
| 767 | 767 | text-align: justify; |
| 768 | 768 | border-bottom-style:solid; |
| 769 | 769 | border-bottom-width:5px; |
| 770 | - border-color: <?php echo $colour1;?>; |
|
| 770 | + border-color: <?php echo $colour1; ?>; |
|
| 771 | 771 | font-size: 11px; |
| 772 | 772 | font-weight: normal; |
| 773 | 773 | } |
@@ -776,14 +776,14 @@ discard block |
||
| 776 | 776 | #main_menu_info { |
| 777 | 777 | position: relative; |
| 778 | 778 | top: 15px; |
| 779 | - <?php echo $start;?>: 0px; |
|
| 780 | - padding:10px; padding-<?php echo $start;?>:20px; padding-<?php echo $end;?>:20px; |
|
| 779 | + <?php echo $start; ?>: 0px; |
|
| 780 | + padding:10px; padding-<?php echo $start; ?>:20px; padding-<?php echo $end; ?>:20px; |
|
| 781 | 781 | background: #f0f0f0; |
| 782 | 782 | border: 1px solid #dddddd; |
| 783 | - margin-<?php echo $start;?>: 25px; |
|
| 784 | - padding-<?php echo $start;?>: 25px; |
|
| 785 | - margin-<?php echo $end;?>: 25px; |
|
| 786 | - padding-<?php echo $end;?>: 25px; |
|
| 783 | + margin-<?php echo $start; ?>: 25px; |
|
| 784 | + padding-<?php echo $start; ?>: 25px; |
|
| 785 | + margin-<?php echo $end; ?>: 25px; |
|
| 786 | + padding-<?php echo $end; ?>: 25px; |
|
| 787 | 787 | padding-bottom: 10px; |
| 788 | 788 | vertical-align: top; |
| 789 | 789 | box-shadow: 5px 5px 5px #666666; |
@@ -814,7 +814,7 @@ discard block |
||
| 814 | 814 | |
| 815 | 815 | #faq { |
| 816 | 816 | padding: 20px; |
| 817 | - color: <?php echo $colour2;?>; |
|
| 817 | + color: <?php echo $colour2; ?>; |
|
| 818 | 818 | background: #ffffff; |
| 819 | 819 | } |
| 820 | 820 | |
@@ -832,7 +832,7 @@ discard block |
||
| 832 | 832 | #idp_logo { |
| 833 | 833 | display:none; |
| 834 | 834 | position:absolute; |
| 835 | - <?php echo $end;?>:30px; |
|
| 835 | + <?php echo $end; ?>:30px; |
|
| 836 | 836 | max-height:150px; |
| 837 | 837 | max-width:150px; |
| 838 | 838 | padding-top:10px; |
@@ -855,18 +855,18 @@ discard block |
||
| 855 | 855 | #slides img { |
| 856 | 856 | position: absolute; |
| 857 | 857 | top: 145px; |
| 858 | - <?php echo $end;?>: 60px; |
|
| 858 | + <?php echo $end; ?>: 60px; |
|
| 859 | 859 | } |
| 860 | 860 | |
| 861 | 861 | #slides span { |
| 862 | 862 | position: absolute; |
| 863 | - <?php echo $start;?>: 180px; |
|
| 863 | + <?php echo $start; ?>: 180px; |
|
| 864 | 864 | z-index: 20; |
| 865 | 865 | } |
| 866 | 866 | |
| 867 | 867 | #line1 { |
| 868 | 868 | top:145px; |
| 869 | - color: <?php echo $colour2;?>; |
|
| 869 | + color: <?php echo $colour2; ?>; |
|
| 870 | 870 | font-size:20px; |
| 871 | 871 | } |
| 872 | 872 | |
@@ -878,7 +878,7 @@ discard block |
||
| 878 | 878 | |
| 879 | 879 | #line3 { |
| 880 | 880 | top:245px; |
| 881 | - <?php echo $start;?>: 200px; |
|
| 881 | + <?php echo $start; ?>: 200px; |
|
| 882 | 882 | color: maroon; |
| 883 | 883 | font-size:25px; |
| 884 | 884 | } |
@@ -907,16 +907,16 @@ discard block |
||
| 907 | 907 | height:100%; |
| 908 | 908 | border-spacing:0; |
| 909 | 909 | border-collapse:collapse; |
| 910 | - padding-<?php echo $start;?>:200px; |
|
| 910 | + padding-<?php echo $start; ?>:200px; |
|
| 911 | 911 | padding-top:10px; |
| 912 | 912 | } |
| 913 | 913 | |
| 914 | 914 | #front_page_leftmenu { |
| 915 | - border-<?php echo $end;?>:solid; |
|
| 916 | - border-color: <?php echo $colour1;?>; |
|
| 915 | + border-<?php echo $end; ?>:solid; |
|
| 916 | + border-color: <?php echo $colour1; ?>; |
|
| 917 | 917 | border-width:5px; |
| 918 | 918 | min-height:400px; |
| 919 | - padding-<?php echo $start;?>: 10px; |
|
| 919 | + padding-<?php echo $start; ?>: 10px; |
|
| 920 | 920 | vertical-align:top; |
| 921 | 921 | width:110px; |
| 922 | 922 | padding-top:30px; |
@@ -926,8 +926,8 @@ discard block |
||
| 926 | 926 | vertical-align: top; |
| 927 | 927 | height:280px; |
| 928 | 928 | background: #fff; |
| 929 | - padding-<?php echo $start;?>: 20px; |
|
| 930 | - padding-<?php echo $end;?>: 20px; |
|
| 929 | + padding-<?php echo $start; ?>: 20px; |
|
| 930 | + padding-<?php echo $end; ?>: 20px; |
|
| 931 | 931 | } |
| 932 | 932 | |
| 933 | 933 | #user_button_td { |
@@ -938,11 +938,11 @@ discard block |
||
| 938 | 938 | } |
| 939 | 939 | |
| 940 | 940 | a:link { |
| 941 | - color:<?php echo $colour2;?>; |
|
| 941 | + color:<?php echo $colour2; ?>; |
|
| 942 | 942 | } |
| 943 | 943 | |
| 944 | 944 | a:visited { |
| 945 | - color:<?php echo $colour2;?>; |
|
| 945 | + color:<?php echo $colour2; ?>; |
|
| 946 | 946 | } |
| 947 | 947 | |
| 948 | 948 | a:hover { |
@@ -950,7 +950,7 @@ discard block |
||
| 950 | 950 | } |
| 951 | 951 | |
| 952 | 952 | a:active { |
| 953 | - color:<?php echo $colour2;?>; |
|
| 953 | + color:<?php echo $colour2; ?>; |
|
| 954 | 954 | } |
| 955 | 955 | |
| 956 | 956 | .comment { |
@@ -981,14 +981,14 @@ discard block |
||
| 981 | 981 | table.user_overview th { |
| 982 | 982 | text-align: start; |
| 983 | 983 | background: #f0f0f0; |
| 984 | - padding-<?php echo $start;?>: 4px; |
|
| 985 | - padding-<?php echo $end;?>: 4px; |
|
| 984 | + padding-<?php echo $start; ?>: 4px; |
|
| 985 | + padding-<?php echo $end; ?>: 4px; |
|
| 986 | 986 | } |
| 987 | 987 | |
| 988 | 988 | table.user_overview td { |
| 989 | 989 | border-top-style: none; |
| 990 | - padding-<?php echo $start;?>: 4px; |
|
| 991 | - padding-<?php echo $end;?>: 4px; |
|
| 990 | + padding-<?php echo $start; ?>: 4px; |
|
| 991 | + padding-<?php echo $end; ?>: 4px; |
|
| 992 | 992 | vertical-align: middle; |
| 993 | 993 | height: 28px; |
| 994 | 994 | } |
@@ -1005,14 +1005,14 @@ discard block |
||
| 1005 | 1005 | .download_button_text { |
| 1006 | 1006 | width: 380px; |
| 1007 | 1007 | position:absolute; |
| 1008 | - <?php echo $end;?>: 5px; |
|
| 1008 | + <?php echo $end; ?>: 5px; |
|
| 1009 | 1009 | padding-top:0px; |
| 1010 | 1010 | } |
| 1011 | 1011 | |
| 1012 | 1012 | #download_info { |
| 1013 | 1013 | background: #f0f0f0; |
| 1014 | - padding-<?php echo $start;?>: 20px; |
|
| 1015 | - padding-<?php echo $end;?>: 20px; |
|
| 1014 | + padding-<?php echo $start; ?>: 20px; |
|
| 1015 | + padding-<?php echo $end; ?>: 20px; |
|
| 1016 | 1016 | padding-top:3px; |
| 1017 | 1017 | padding-bottom:3px; |
| 1018 | 1018 | } |
@@ -1056,7 +1056,7 @@ discard block |
||
| 1056 | 1056 | } |
| 1057 | 1057 | |
| 1058 | 1058 | .downloads tr td { |
| 1059 | - text-align: <?php echo $end;?>; |
|
| 1059 | + text-align: <?php echo $end; ?>; |
|
| 1060 | 1060 | padding-left: 5px; |
| 1061 | 1061 | padding-right: 5px; |
| 1062 | 1062 | border-bottom-style: solid; |
@@ -1064,5 +1064,5 @@ discard block |
||
| 1064 | 1064 | } |
| 1065 | 1065 | |
| 1066 | 1066 | .downloads tr td:first-child { |
| 1067 | - text-align: <?php echo $start;?>; |
|
| 1067 | + text-align: <?php echo $start; ?>; |
|
| 1068 | 1068 | } |
| 1069 | 1069 | \ No newline at end of file |
@@ -257,9 +257,7 @@ discard block |
||
| 257 | 257 | </button> |
| 258 | 258 | </form> |
| 259 | 259 | </div>"; |
| 260 | - } |
|
| 261 | - |
|
| 262 | - elseif (\config\ConfAssistant::CONSORTIUM['selfservice_registration'] === 'eduGAIN') { |
|
| 260 | + } elseif (\config\ConfAssistant::CONSORTIUM['selfservice_registration'] === 'eduGAIN') { |
|
| 263 | 261 | if ($user->edugain !== false) { |
| 264 | 262 | $resyncedInst = $instMgmt->currentInstitutions['resynced']; |
| 265 | 263 | $newInst = $instMgmt->currentInstitutions['new']; |
@@ -328,8 +326,7 @@ discard block |
||
| 328 | 326 | echo "</table>"; |
| 329 | 327 | } |
| 330 | 328 | } |
| 331 | - } |
|
| 332 | - else { // self-service registration is allowed! Yay :-) |
|
| 329 | + } else { // self-service registration is allowed! Yay :-) |
|
| 333 | 330 | echo "<hr> |
| 334 | 331 | <div style='white-space: nowrap;'> |
| 335 | 332 | <form action='action_enrollment.php' method='get'><button type='submit' accept-charset='UTF-8'> |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | |
| 22 | 22 | namespace core; |
| 23 | 23 | |
| 24 | -require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php"; |
|
| 24 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
| 25 | 25 | |
| 26 | 26 | $instMgmt = new \core\UserManagement(); |
| 27 | 27 | $deco = new \web\lib\admin\PageDecoration(); |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | <?php echo $uiElements->infoblock($user->getAttributes(), "user", "User"); ?> |
| 114 | 114 | <tr> |
| 115 | 115 | <td> |
| 116 | - <?php echo "" . _("Unique Identifier") ?> |
|
| 116 | + <?php echo ""._("Unique Identifier") ?> |
|
| 117 | 117 | </td> |
| 118 | 118 | <td> |
| 119 | 119 | </td> |
@@ -128,14 +128,14 @@ discard block |
||
| 128 | 128 | |
| 129 | 129 | <?php |
| 130 | 130 | if (\config\Master::DB['USER']['readonly'] === FALSE) { |
| 131 | - echo "<a href='edit_user.php'><button>" . _("Edit User Details") . "</button></a>"; |
|
| 131 | + echo "<a href='edit_user.php'><button>"._("Edit User Details")."</button></a>"; |
|
| 132 | 132 | } |
| 133 | 133 | |
| 134 | 134 | if ($user->isFederationAdmin()) { |
| 135 | - echo "<form action='overview_federation.php' method='GET' accept-charset='UTF-8'><button type='submit'>" . sprintf(_('Click here for %s management tasks'), $uiElements->nomenclatureFed) . "</button></form>"; |
|
| 135 | + echo "<form action='overview_federation.php' method='GET' accept-charset='UTF-8'><button type='submit'>".sprintf(_('Click here for %s management tasks'), $uiElements->nomenclatureFed)."</button></form>"; |
|
| 136 | 136 | } |
| 137 | 137 | if ($user->isSuperadmin()) { |
| 138 | - echo "<form action='112365365321.php' method='GET' accept-charset='UTF-8'><button type='submit'>" . _('Click here to access the superadmin page') . "</button></form>"; |
|
| 138 | + echo "<form action='112365365321.php' method='GET' accept-charset='UTF-8'><button type='submit'>"._('Click here to access the superadmin page')."</button></form>"; |
|
| 139 | 139 | } |
| 140 | 140 | ?> |
| 141 | 141 | </div> |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | if (\config\Master::FUNCTIONALITY_LOCATIONS['CONFASSISTANT_SILVERBULLET'] == "LOCAL") { |
| 149 | 149 | $target = "https://wiki.geant.org/x/6Zg7Bw"; // Managed IdP manual |
| 150 | 150 | } |
| 151 | - $helptext = "<h3 style='display:inline;'>" . sprintf(_("(Need help? Refer to the <a href='%s'>%s administrator manual</a>)"), $target, $uiElements->nomenclatureParticipant) . "</h3>"; |
|
| 151 | + $helptext = "<h3 style='display:inline;'>".sprintf(_("(Need help? Refer to the <a href='%s'>%s administrator manual</a>)"), $target, $uiElements->nomenclatureParticipant)."</h3>"; |
|
| 152 | 152 | } else { |
| 153 | 153 | $helptext = ""; |
| 154 | 154 | } |
@@ -157,7 +157,7 @@ discard block |
||
| 157 | 157 | // we need to run the Federation constructor |
| 158 | 158 | $cat = new \core\CAT; |
| 159 | 159 | /// first parameter: number of Identity Providers; second param is the literal configured term for 'Identity Provider' (you may or may not be able to add a plural suffix for your locale) |
| 160 | - echo "<h2>" . sprintf(ngettext("You are managing the following <span style='display:none'>%d </span>%s:", "You are managing the following <strong>%d</strong> %s:", sizeof($hasInst)), sizeof($hasInst), $uiElements->nomenclatureParticipant) . "</h2>"; |
|
| 160 | + echo "<h2>".sprintf(ngettext("You are managing the following <span style='display:none'>%d </span>%s:", "You are managing the following <strong>%d</strong> %s:", sizeof($hasInst)), sizeof($hasInst), $uiElements->nomenclatureParticipant)."</h2>"; |
|
| 161 | 161 | $instlist = []; |
| 162 | 162 | $my_idps = []; |
| 163 | 163 | $myFeds = []; |
@@ -249,14 +249,14 @@ discard block |
||
| 249 | 249 | <td> |
| 250 | 250 | <?php |
| 251 | 251 | if ($blessedUser && \config\Master::DB['INST']['readonly'] === FALSE) { |
| 252 | - echo "<div style='white-space: nowrap;'><form method='post' action='inc/manageAdmins.inc.php?inst_id=" . $the_inst->identifier . "' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'><button type='submit'>" . _("Add/Remove Administrators") . "</button></form></div>"; |
|
| 252 | + echo "<div style='white-space: nowrap;'><form method='post' action='inc/manageAdmins.inc.php?inst_id=".$the_inst->identifier."' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'><button type='submit'>"._("Add/Remove Administrators")."</button></form></div>"; |
|
| 253 | 253 | } |
| 254 | 254 | ?> |
| 255 | 255 | </td> |
| 256 | 256 | <td> <!-- danger zone --> |
| 257 | 257 | |
| 258 | 258 | <form action='edit_participant_result.php?inst_id=<?php echo $the_inst->identifier; ?>' method='post' accept-charset='UTF-8'> |
| 259 | - <button class='delete' type='submit' name='submitbutton' value='<?php echo \web\lib\common\FormElements::BUTTON_DELETE; ?>' onclick="return confirm('<?php echo ( \config\ConfAssistant::CONSORTIUM['selfservice_registration'] === NULL ? sprintf(_("After deleting the %s, you can not recreate it yourself - you need a new invitation token from the %s administrator!"), $uiElements->nomenclatureParticipant, $uiElements->nomenclatureFed) . " " : "" ) . sprintf(_("Do you really want to delete your %s %s?"), $uiElements->nomenclatureParticipant, $the_inst->name); ?>')"><?php echo sprintf(_("Delete %s"), $uiElements->nomenclatureParticipant); ?></button> |
|
| 259 | + <button class='delete' type='submit' name='submitbutton' value='<?php echo \web\lib\common\FormElements::BUTTON_DELETE; ?>' onclick="return confirm('<?php echo (\config\ConfAssistant::CONSORTIUM['selfservice_registration'] === NULL ? sprintf(_("After deleting the %s, you can not recreate it yourself - you need a new invitation token from the %s administrator!"), $uiElements->nomenclatureParticipant, $uiElements->nomenclatureFed)." " : "").sprintf(_("Do you really want to delete your %s %s?"), $uiElements->nomenclatureParticipant, $the_inst->name); ?>')"><?php echo sprintf(_("Delete %s"), $uiElements->nomenclatureParticipant); ?></button> |
|
| 260 | 260 | </form> |
| 261 | 261 | <form action='edit_participant_result.php?inst_id=<?php echo $the_inst->identifier; ?>' method='post' accept-charset='UTF-8'> |
| 262 | 262 | <button class='delete' type='submit' name='submitbutton' value='<?php echo \web\lib\common\FormElements::BUTTON_FLUSH_AND_RESTART; ?>' onclick="return confirm('<?php echo sprintf(_("This action will delete all properties of the %s and start over the configuration from scratch. Do you really want to reset all settings of the %s %s?"), $uiElements->nomenclatureParticipant, $uiElements->nomenclatureParticipant, $the_inst->name); ?>')"><?php echo sprintf(_("Reset all %s settings"), $uiElements->nomenclatureParticipant); ?></button> |
@@ -271,19 +271,19 @@ discard block |
||
| 271 | 271 | </table> |
| 272 | 272 | <?php |
| 273 | 273 | } else { |
| 274 | - echo "<h2>" . sprintf(_("You are not managing any %s."), $uiElements->nomenclatureParticipant) . "</h2>"; |
|
| 274 | + echo "<h2>".sprintf(_("You are not managing any %s."), $uiElements->nomenclatureParticipant)."</h2>"; |
|
| 275 | 275 | } |
| 276 | 276 | |
| 277 | 277 | if (\config\Master::DB['INST']['readonly'] === FALSE) { |
| 278 | 278 | if (\config\ConfAssistant::CONSORTIUM['selfservice_registration'] === NULL) { |
| 279 | - echo "<p>" . sprintf(_("Please ask your %s administrator to invite you to become an %s administrator."), $uiElements->nomenclatureFed, $uiElements->nomenclatureParticipant) . "</p>"; |
|
| 279 | + echo "<p>".sprintf(_("Please ask your %s administrator to invite you to become an %s administrator."), $uiElements->nomenclatureFed, $uiElements->nomenclatureParticipant)."</p>"; |
|
| 280 | 280 | echo "<hr/> |
| 281 | 281 | <div style='white-space: nowrap;'> |
| 282 | 282 | <form action='action_enrollment.php' method='get' accept-charset='UTF-8'>" . |
| 283 | - sprintf(_("Did you receive an invitation token to manage an %s? Please paste it here:"), $uiElements->nomenclatureParticipant) . |
|
| 283 | + sprintf(_("Did you receive an invitation token to manage an %s? Please paste it here:"), $uiElements->nomenclatureParticipant). |
|
| 284 | 284 | " <input type='text' id='token' name='token'/> |
| 285 | 285 | <button type='submit'>" . |
| 286 | - _("Go!") . " |
|
| 286 | + _("Go!")." |
|
| 287 | 287 | </button> |
| 288 | 288 | </form> |
| 289 | 289 | </div>"; |
@@ -313,7 +313,7 @@ discard block |
||
| 313 | 313 | echo "<tr><td>"; |
| 314 | 314 | $idp = new \core\IdP($id); |
| 315 | 315 | $names = $idp->getAttributes('general:instname'); |
| 316 | - $i =0; |
|
| 316 | + $i = 0; |
|
| 317 | 317 | foreach ($names as $onename) { |
| 318 | 318 | if ($i > 0) { |
| 319 | 319 | echo "; "; |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | ?> |
| 325 | 325 | </td><td><div> |
| 326 | 326 | <form action='inc/sendinvite.inc.php?inst_id=<?php echo $id; ?>' method='post' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'> |
| 327 | - <input type="hidden" name="mailaddr" value="<?php echo $_SESSION['auth_email'];?>"/> |
|
| 327 | + <input type="hidden" name="mailaddr" value="<?php echo $_SESSION['auth_email']; ?>"/> |
|
| 328 | 328 | <input type="hidden" name="self_registration"/> |
| 329 | 329 | <button type='submit' name='submitbutton' class='self-service' id='submintbutton_<?php echo $id; ?>' onclick='document.getElementById("spin").style.display = "block"' value='<?php echo \web\lib\common\FormElements::BUTTON_SAVE; ?>'><?php echo _("Send token"); ?></button><span style='display: none; font-weight: bold' class='token_confirm' id='token_confirm_<?php echo $id; ?>'><?php echo _("Token sent")?></span> |
| 330 | 330 | </form> |
@@ -338,7 +338,7 @@ discard block |
||
| 338 | 338 | echo "<table class='inst-selection'>"; |
| 339 | 339 | foreach ($newInst as $inst) { |
| 340 | 340 | echo "<tr><td>"; |
| 341 | - $i =0; |
|
| 341 | + $i = 0; |
|
| 342 | 342 | foreach ($inst[1] as $lang => $name) { |
| 343 | 343 | if ($i > 0) { |
| 344 | 344 | echo "; "; |
@@ -349,7 +349,7 @@ discard block |
||
| 349 | 349 | ?> |
| 350 | 350 | </td><td><div> |
| 351 | 351 | <form action='inc/sendinvite.inc.php' method='post' accept-charset='UTF-8'> |
| 352 | - <input type="hidden" name="mailaddr" value="<?php echo $_SESSION['auth_email'];?>"/> |
|
| 352 | + <input type="hidden" name="mailaddr" value="<?php echo $_SESSION['auth_email']; ?>"/> |
|
| 353 | 353 | <input type="hidden" name="creation" value="existing"/> |
| 354 | 354 | <input type="hidden" name="self_registration"/> |
| 355 | 355 | <input type="hidden" name="country" value="<?php echo $inst[2]; ?>"/> |
@@ -367,7 +367,7 @@ discard block |
||
| 367 | 367 | $idp = new \core\IdP($entitlementInst[0]); |
| 368 | 368 | echo "<tr><th>"; |
| 369 | 369 | $names = $idp->getAttributes('general:instname'); |
| 370 | - $i =0; |
|
| 370 | + $i = 0; |
|
| 371 | 371 | foreach ($names as $onename) { |
| 372 | 372 | if ($i > 0) { |
| 373 | 373 | echo "; "; |
@@ -377,7 +377,7 @@ discard block |
||
| 377 | 377 | } |
| 378 | 378 | echo "</th><td>"; |
| 379 | 379 | echo "<form action='inc/manageAdmins.inc.php?inst_id=$idp->identifier' method='post'>"; |
| 380 | - echo "<button type='submit' class='XXX' value='" . \web\lib\common\FormElements::BUTTON_TAKECONTROL . "'>" . _("take control"). "</button><br/>"; |
|
| 380 | + echo "<button type='submit' class='XXX' value='".\web\lib\common\FormElements::BUTTON_TAKECONTROL."'>"._("take control")."</button><br/>"; |
|
| 381 | 381 | echo "</form>"; |
| 382 | 382 | echo "</td></tr>"; |
| 383 | 383 | } |
@@ -390,7 +390,7 @@ discard block |
||
| 390 | 390 | <div style='white-space: nowrap;'> |
| 391 | 391 | <form action='action_enrollment.php' method='get'><button type='submit' accept-charset='UTF-8'> |
| 392 | 392 | <input type='hidden' id='token' name='token' value='SELF-REGISTER'/>" . |
| 393 | - sprintf(_("New %s Registration"), $uiElements->nomenclatureParticipant) . " |
|
| 393 | + sprintf(_("New %s Registration"), $uiElements->nomenclatureParticipant)." |
|
| 394 | 394 | </button> |
| 395 | 395 | </form> |
| 396 | 396 | </div>"; |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * <base_url>/copyright.php after deploying the software |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -require_once dirname(dirname(__DIR__)) . "/config/_config.php"; |
|
| 22 | +require_once dirname(dirname(__DIR__))."/config/_config.php"; |
|
| 23 | 23 | |
| 24 | 24 | $deco = new \web\lib\admin\PageDecoration(); |
| 25 | 25 | $validator = new \web\lib\common\InputValidation(); |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | $downloadBoxText = '<h2 id="download_box_text">MMM</h2>'._("Click the download button to download the installer or the clipboard copy icon to save the link."); |
| 116 | 116 | |
| 117 | 117 | $downloadBoxText .= "<p><button id='download_installer'>"._("Download").'</button>'; |
| 118 | - $downloadBoxText .= ' <img id="copy_link" src="../resources/images/icons/Tabler/copy.svg" title="'. _("Copy link to clipboard").'" >'; |
|
| 118 | + $downloadBoxText .= ' <img id="copy_link" src="../resources/images/icons/Tabler/copy.svg" title="'._("Copy link to clipboard").'" >'; |
|
| 119 | 119 | |
| 120 | 120 | ?> |
| 121 | 121 | <div id="download_box"><img id="download_box_close" src="../resources/images/icons/button_cancel.png" ALT="Close"/><div><?php echo $downloadBoxText; ?></div></div> |
@@ -143,10 +143,10 @@ discard block |
||
| 143 | 143 | <?php |
| 144 | 144 | foreach ($preflist as $method) { |
| 145 | 145 | $escapedMethod = $method->getIntegerRep(); |
| 146 | - echo "<th scope='col' style='min-width:200px'>" . $method->getPrintableRep() . "<br/> |
|
| 146 | + echo "<th scope='col' style='min-width:200px'>".$method->getPrintableRep()."<br/> |
|
| 147 | 147 | <form method='post' action='inc/toggleRedirect.inc.php?inst_id=$my_inst->identifier&profile_id=$my_profile->identifier' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'> |
| 148 | 148 | <input type='hidden' name='eaptype' value='$escapedMethod'> |
| 149 | - <button class='redirect' type='submit'>" . _("EAP-Type-specific options...") . "</button> |
|
| 149 | + <button class='redirect' type='submit'>"._("EAP-Type-specific options...")."</button> |
|
| 150 | 150 | </form></th>"; |
| 151 | 151 | } |
| 152 | 152 | ?> |
@@ -166,10 +166,10 @@ discard block |
||
| 166 | 166 | continue; |
| 167 | 167 | } |
| 168 | 168 | echo "<tr>"; |
| 169 | - echo "<td align='center'><img src='../resources/images/vendorlogo/" . $description['group'] . ".png' alt='logo'></td><td>" . $description['display'] . "<br/> |
|
| 169 | + echo "<td align='center'><img src='../resources/images/vendorlogo/".$description['group'].".png' alt='logo'></td><td>".$description['display']."<br/> |
|
| 170 | 170 | <form method='post' action='inc/toggleRedirect.inc.php?inst_id=$my_inst->identifier&profile_id=$my_profile->identifier' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'> |
| 171 | 171 | <input type='hidden' name='device' value='$index'> |
| 172 | - <button class='redirect' type='submit'>" . _("Device-specific options...") . "</button> |
|
| 172 | + <button class='redirect' type='submit'>"._("Device-specific options...")."</button> |
|
| 173 | 173 | </form> |
| 174 | 174 | </td>"; |
| 175 | 175 | $defaultisset = FALSE; |
@@ -178,7 +178,7 @@ discard block |
||
| 178 | 178 | $display_footnote = FALSE; |
| 179 | 179 | $langObject = new \core\common\Language(); |
| 180 | 180 | $downloadform = "<span style='display:ruby;'>"; |
| 181 | - $formDiffs = ["" => sprintf(_("%s<br/>Installer"), config\ConfAssistant::CONSORTIUM['display_name'])]; /* eduroam */ |
|
| 181 | + $formDiffs = ["" => sprintf(_("%s<br/>Installer"), config\ConfAssistant::CONSORTIUM['display_name'])]; /* eduroam */ |
|
| 182 | 182 | if (sizeof($my_profile->getAttributes("media:openroaming")) > 0 && isset($factory->device->options['hs20']) && $factory->device->options['hs20'] == 1) { |
| 183 | 183 | $formDiffs["openroaming=1"] = sprintf(_("%s + OpenRoaming<br/>Installer"), config\ConfAssistant::CONSORTIUM['display_name']); /* eduroam + OpenRoaming */ |
| 184 | 184 | } |
@@ -187,7 +187,7 @@ discard block |
||
| 187 | 187 | $proto = "https://"; |
| 188 | 188 | } |
| 189 | 189 | |
| 190 | - $formAction = $proto . $_SERVER['SERVER_NAME'] . \config\Master::PATHS['cat_base_url']. "user/API.php?action=downloadInstaller&profile=$my_profile->identifier&lang=" . $langObject->getLang() . "&device=$index"; |
|
| 190 | + $formAction = $proto.$_SERVER['SERVER_NAME'].\config\Master::PATHS['cat_base_url']."user/API.php?action=downloadInstaller&profile=$my_profile->identifier&lang=".$langObject->getLang()."&device=$index"; |
|
| 191 | 191 | |
| 192 | 192 | foreach ($formDiffs as $extraOption => $text) { |
| 193 | 193 | if ($extraOption !== "") { |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | $distinctFootnotes[$num_footnotes] = $oneFootnote; |
| 245 | 245 | } |
| 246 | 246 | $numberToDisplay = array_keys($distinctFootnotes, $oneFootnote); |
| 247 | - echo "(" . $numberToDisplay[0] . ")"; |
|
| 247 | + echo "(".$numberToDisplay[0].")"; |
|
| 248 | 248 | } |
| 249 | 249 | } |
| 250 | 250 | echo "</td>"; |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | </table> |
| 274 | 274 | <?php |
| 275 | 275 | if (count($distinctFootnotes)) { |
| 276 | - echo "<p><strong>" . _("Footnotes:") . "</strong></p><table>"; |
|
| 276 | + echo "<p><strong>"._("Footnotes:")."</strong></p><table>"; |
|
| 277 | 277 | foreach ($distinctFootnotes as $number => $text) { |
| 278 | 278 | echo "<tr><td>($number) - </td><td>$text</td></tr>"; |
| 279 | 279 | } |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | */ |
| 29 | 29 | ?> |
| 30 | 30 | <?php |
| 31 | -require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php"; |
|
| 31 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
| 32 | 32 | |
| 33 | 33 | function displaySilverbulletPropertyWidget(&$theProfile, $readonly, &$uiElements) { |
| 34 | 34 | ?> |
@@ -45,14 +45,14 @@ discard block |
||
| 45 | 45 | <ul style='margin:1px'> |
| 46 | 46 | <?php |
| 47 | 47 | foreach ($completeness as $missing_attrib) { |
| 48 | - echo "<li>" . $uiElements->displayName($missing_attrib) . "</li>"; |
|
| 48 | + echo "<li>".$uiElements->displayName($missing_attrib)."</li>"; |
|
| 49 | 49 | } |
| 50 | 50 | ?> |
| 51 | 51 | </ul> |
| 52 | 52 | </div> |
| 53 | 53 | <?php |
| 54 | 54 | } else { |
| 55 | - echo sprintf(_("You can create up to %d users."), $maxusers[0]['value']) . "<br/>" . sprintf(_("Their credentials will carry the name <strong>%s</strong>."), $theProfile->realm); |
|
| 55 | + echo sprintf(_("You can create up to %d users."), $maxusers[0]['value'])."<br/>".sprintf(_("Their credentials will carry the name <strong>%s</strong>."), $theProfile->realm); |
|
| 56 | 56 | } |
| 57 | 57 | ?> |
| 58 | 58 | <br/> |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | if ($readonly === FALSE) { |
| 62 | 62 | ?> |
| 63 | 63 | <form action='edit_silverbullet.php?inst_id=<?php echo $theProfile->institution; ?>&profile_id=<?php echo $theProfile->identifier; ?>' method='POST'> |
| 64 | - <button <?php echo ( is_array($completeness) ? "disabled" : "" ); ?> type='submit' name='sb_action' value='sb_edit'><?php echo _("Manage User Base"); ?></button> |
|
| 64 | + <button <?php echo (is_array($completeness) ? "disabled" : ""); ?> type='submit' name='sb_action' value='sb_edit'><?php echo _("Manage User Base"); ?></button> |
|
| 65 | 65 | </form> |
| 66 | 66 | <?php |
| 67 | 67 | } |
@@ -97,21 +97,21 @@ discard block |
||
| 97 | 97 | $has_overrides = TRUE; |
| 98 | 98 | } |
| 99 | 99 | } |
| 100 | - $buffer_eaptypediv = "<div style='margin-bottom:40px; float:left;'>" . _("<strong>EAP Types</strong> (in order of preference):") . "<br/>"; |
|
| 100 | + $buffer_eaptypediv = "<div style='margin-bottom:40px; float:left;'>"._("<strong>EAP Types</strong> (in order of preference):")."<br/>"; |
|
| 101 | 101 | $typelist = $theProfile->getEapMethodsinOrderOfPreference(); |
| 102 | 102 | $allcomplete = TRUE; |
| 103 | 103 | foreach ($typelist as $eaptype) { |
| 104 | 104 | $buffer_eaptypediv .= $eaptype->getPrintableRep(); |
| 105 | 105 | $completeness = $theProfile->isEapTypeDefinitionComplete($eaptype); |
| 106 | 106 | if ($completeness === true) { |
| 107 | - $buffer_eaptypediv .= " <div class='acceptable'>" . _("OK") . "</div>"; |
|
| 107 | + $buffer_eaptypediv .= " <div class='acceptable'>"._("OK")."</div>"; |
|
| 108 | 108 | } else { |
| 109 | 109 | $buffer_eaptypediv .= " <div class='notacceptable'>"; |
| 110 | 110 | $buffer_eaptypediv .= _("Information needed!"); |
| 111 | 111 | if (is_array($completeness)) { |
| 112 | 112 | $buffer_eaptypediv .= "<ul style='margin:1px'>"; |
| 113 | 113 | foreach ($completeness as $missing_attrib) { |
| 114 | - $buffer_eaptypediv .= "<li>" . $uiElements->displayName($missing_attrib) . "</li>"; |
|
| 114 | + $buffer_eaptypediv .= "<li>".$uiElements->displayName($missing_attrib)."</li>"; |
|
| 115 | 115 | } |
| 116 | 116 | $buffer_eaptypediv .= "</ul>"; |
| 117 | 117 | } |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | foreach ($attribs as $attrib) { |
| 124 | 124 | if ($attrib['level'] == \core\Options::LEVEL_METHOD && !preg_match("/^internal:/", $attrib['name']) && !$justOnce) { |
| 125 | 125 | $justOnce = TRUE; |
| 126 | - $buffer_eaptypediv .= "<img src='../resources/images/icons/Tabler/square-rounded-letter-e-blue.svg' alt='" . _("Options on EAP Method/Device level are in effect.") . "'>"; |
|
| 126 | + $buffer_eaptypediv .= "<img src='../resources/images/icons/Tabler/square-rounded-letter-e-blue.svg' alt='"._("Options on EAP Method/Device level are in effect.")."'>"; |
|
| 127 | 127 | } |
| 128 | 128 | } |
| 129 | 129 | $buffer_eaptypediv .= "<br/>"; |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | if ($theProfile->isRedirected()) { |
| 150 | 150 | $iconData = $uiElements->iconData('PROFILES_REDIRECTED'); |
| 151 | 151 | $iconData['text'] = _("Profile redirected"); |
| 152 | - $buffer_headline .= "<br/>" . $uiElements->catIcon(($iconData)); |
|
| 152 | + $buffer_headline .= "<br/>".$uiElements->catIcon(($iconData)); |
|
| 153 | 153 | |
| 154 | 154 | } |
| 155 | 155 | |
@@ -157,15 +157,15 @@ discard block |
||
| 157 | 157 | switch ($certStatus) { |
| 158 | 158 | case core\AbstractProfile::CERT_STATUS_OK: |
| 159 | 159 | $iconData = $uiElements->iconData('CERT_STATUS_OK'); |
| 160 | - $buffer_headline .= "<br/>" . $uiElements->catIcon(($iconData)); |
|
| 160 | + $buffer_headline .= "<br/>".$uiElements->catIcon(($iconData)); |
|
| 161 | 161 | break; |
| 162 | 162 | case core\AbstractProfile::CERT_STATUS_WARN: |
| 163 | 163 | $iconData = $uiElements->iconData('CERT_STATUS_WARN'); |
| 164 | - $buffer_headline .= "<br/>" . $uiElements->catIcon(($iconData)); |
|
| 164 | + $buffer_headline .= "<br/>".$uiElements->catIcon(($iconData)); |
|
| 165 | 165 | break; |
| 166 | 166 | case core\AbstractProfile::CERT_STATUS_ERROR: |
| 167 | 167 | $iconData = $uiElements->iconData('CERT_STATUS_ERROR'); |
| 168 | - $buffer_headline .= "<br/>" . $uiElements->catIcon(($iconData)); |
|
| 168 | + $buffer_headline .= "<br/>".$uiElements->catIcon(($iconData)); |
|
| 169 | 169 | break; |
| 170 | 170 | } |
| 171 | 171 | $buffer_headline .= "</div>"; |
@@ -191,11 +191,11 @@ discard block |
||
| 191 | 191 | if (\config\Master::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS'] == "LOCAL") { |
| 192 | 192 | $diagUrl = "../diag/"; |
| 193 | 193 | } else { |
| 194 | - $diagUrl = \config\Master::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS'] . "/diag/"; |
|
| 194 | + $diagUrl = \config\Master::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS']."/diag/"; |
|
| 195 | 195 | } |
| 196 | 196 | ?> |
| 197 | - <form action='<?php echo $diagUrl . "action_realmcheck.php?inst_id=" . $theProfile->institution . "&profile_id=" . $theProfile->identifier ?>' method='post' accept-charset='UTF-8'> |
|
| 198 | - <input type='hidden' name='comefrom' value='<?php echo htmlspecialchars($link . $_SERVER['SCRIPT_NAME']); ?>'/> |
|
| 197 | + <form action='<?php echo $diagUrl."action_realmcheck.php?inst_id=".$theProfile->institution."&profile_id=".$theProfile->identifier ?>' method='post' accept-charset='UTF-8'> |
|
| 198 | + <input type='hidden' name='comefrom' value='<?php echo htmlspecialchars($link.$_SERVER['SCRIPT_NAME']); ?>'/> |
|
| 199 | 199 | <button type='submit' name='profile_action' value='check' <?php echo ($has_realm ? "" : "disabled='disabled'"); ?> title='<?php echo _("The realm can only be checked if you configure the realm!"); ?>'> |
| 200 | 200 | <?php echo _("Check realm reachability"); ?> |
| 201 | 201 | </button> |
@@ -242,9 +242,9 @@ discard block |
||
| 242 | 242 | ?> |
| 243 | 243 | <div style='display: flex;'> |
| 244 | 244 | <?php |
| 245 | - $idpLevelUrl = $link . dirname(dirname($_SERVER['SCRIPT_NAME'])) . "?idp=" . $theProfile->institution; |
|
| 246 | - $displayurl = $idpLevelUrl . "&profile=" . $theProfile->identifier; |
|
| 247 | - $QRurl = $idpLevelUrl . "&profile=" . $theProfile->identifier; |
|
| 245 | + $idpLevelUrl = $link.dirname(dirname($_SERVER['SCRIPT_NAME']))."?idp=".$theProfile->institution; |
|
| 246 | + $displayurl = $idpLevelUrl."&profile=".$theProfile->identifier; |
|
| 247 | + $QRurl = $idpLevelUrl."&profile=".$theProfile->identifier; |
|
| 248 | 248 | $qrCode = new \chillerlan\QRCode\QRCode(new \chillerlan\QRCode\QROptions([ |
| 249 | 249 | 'outputType' => \chillerlan\QRCode\QRCode::OUTPUT_IMAGE_PNG, |
| 250 | 250 | 'eccLevel' => \chillerlan\QRCode\QRCode::ECC_H, |
@@ -256,9 +256,9 @@ discard block |
||
| 256 | 256 | if (empty($rawQr)) { |
| 257 | 257 | throw new Exception("Something went seriously wrong during QR code generation!"); |
| 258 | 258 | } |
| 259 | - $uri = "data:image/png;base64," . base64_encode($uiElements->pngInjectConsortiumLogo($rawQr, web\lib\admin\UIElements::QRCODE_PIXELS_PER_SYMBOL)); |
|
| 259 | + $uri = "data:image/png;base64,".base64_encode($uiElements->pngInjectConsortiumLogo($rawQr, web\lib\admin\UIElements::QRCODE_PIXELS_PER_SYMBOL)); |
|
| 260 | 260 | $size = getimagesize($uri); |
| 261 | - echo "<img width='" . ($size[0] / 4) . "' height='" . ($size[1] / 4) . "' src='$uri' alt='QR-code'/>"; |
|
| 261 | + echo "<img width='".($size[0] / 4)."' height='".($size[1] / 4)."' src='$uri' alt='QR-code'/>"; |
|
| 262 | 262 | |
| 263 | 263 | //echo "<nobr>$displayurl</nobr></a>"; |
| 264 | 264 | echo "<p>$displayurl</p></a>"; |
@@ -423,7 +423,7 @@ discard block |
||
| 423 | 423 | } |
| 424 | 424 | ?> |
| 425 | 425 | </h2> |
| 426 | - <?php if(count($profiles_for_this_idp) > 1 && $readonly === FALSE && $editMode === 'fullaccess') { ?> |
|
| 426 | + <?php if (count($profiles_for_this_idp) > 1 && $readonly === FALSE && $editMode === 'fullaccess') { ?> |
|
| 427 | 427 | <form method='post' action='sort_profiles.php?inst_id=<?php echo $my_inst->identifier; ?>' accept-charset='UTF-8'> |
| 428 | 428 | <div> |
| 429 | 429 | <button type='submit' name='profile_sorting'> |
@@ -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(); |
@@ -79,13 +79,13 @@ discard block |
||
| 79 | 79 | ?> |
| 80 | 80 | </h1> |
| 81 | 81 | <div class='infobox'> |
| 82 | - <h2><?php $tablecaption = sprintf(_("%s Properties"),$uiElements->nomenclatureFed); echo $tablecaption?></h2> |
|
| 82 | + <h2><?php $tablecaption = sprintf(_("%s Properties"), $uiElements->nomenclatureFed); echo $tablecaption?></h2> |
|
| 83 | 83 | <table> |
| 84 | - <caption><?php echo $tablecaption;?></caption> |
|
| 84 | + <caption><?php echo $tablecaption; ?></caption> |
|
| 85 | 85 | <tr> |
| 86 | - <th class="wai-invisible" scope="col"><?php echo _("Property Type");?></th> |
|
| 87 | - <th class="wai-invisible" scope="col"><?php echo _("Language if applicable");?></th> |
|
| 88 | - <th class="wai-invisible" scope="col"><?php echo _("Property Value");?></th> |
|
| 86 | + <th class="wai-invisible" scope="col"><?php echo _("Property Type"); ?></th> |
|
| 87 | + <th class="wai-invisible" scope="col"><?php echo _("Language if applicable"); ?></th> |
|
| 88 | + <th class="wai-invisible" scope="col"><?php echo _("Property Value"); ?></th> |
|
| 89 | 89 | </tr> |
| 90 | 90 | <tr> |
| 91 | 91 | <td><?php echo _("Country:"); ?></td> |
@@ -96,11 +96,11 @@ discard block |
||
| 96 | 96 | </table> |
| 97 | 97 | </div> |
| 98 | 98 | <?php |
| 99 | - echo "<form enctype='multipart/form-data' action='edit_federation_result.php?fed_id=$my_fed->tld" . "' method='post' accept-charset='UTF-8'> |
|
| 100 | - <input type='hidden' name='MAX_FILE_SIZE' value='" . \config\Master::MAX_UPLOAD_SIZE . "'>"; |
|
| 99 | + echo "<form enctype='multipart/form-data' action='edit_federation_result.php?fed_id=$my_fed->tld"."' method='post' accept-charset='UTF-8'> |
|
| 100 | + <input type='hidden' name='MAX_FILE_SIZE' value='" . \config\Master::MAX_UPLOAD_SIZE."'>"; |
|
| 101 | 101 | ?> |
| 102 | 102 | <fieldset class="option_container"> |
| 103 | - <legend><strong><?php echo sprintf(_("%s Properties"),$uiElements->nomenclatureFed); ?></strong></legend> |
|
| 103 | + <legend><strong><?php echo sprintf(_("%s Properties"), $uiElements->nomenclatureFed); ?></strong></legend> |
|
| 104 | 104 | <?php |
| 105 | 105 | $options = [ |
| 106 | 106 | 'level' => 'fed', |
@@ -115,10 +115,10 @@ discard block |
||
| 115 | 115 | <?php |
| 116 | 116 | echo "<div>"; |
| 117 | 117 | if ($editMode === 'fullaccess') { |
| 118 | - echo "<button type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_SAVE . "'>" . _("Save data") . "</button>"; |
|
| 118 | + echo "<button type='submit' name='submitbutton' value='".web\lib\common\FormElements::BUTTON_SAVE."'>"._("Save data")."</button>"; |
|
| 119 | 119 | $discardLabel = _("Discard changes"); |
| 120 | 120 | } else { |
| 121 | 121 | $discardLabel = _("Return"); |
| 122 | 122 | } |
| 123 | - echo "<button type='button' class='delete' name='abortbutton' value='abort' onclick='javascript:window.location = \"overview_federation.php?fed_id=$fedPost\"'>" . $discardLabel . "</button></div></form>"; |
|
| 123 | + echo "<button type='button' class='delete' name='abortbutton' value='abort' onclick='javascript:window.location = \"overview_federation.php?fed_id=$fedPost\"'>".$discardLabel."</button></div></form>"; |
|
| 124 | 124 | echo $deco->footer(); |
@@ -20,11 +20,11 @@ discard block |
||
| 20 | 20 | * <base_url>/copyright.php after deploying the software |
| 21 | 21 | * */ |
| 22 | 22 | |
| 23 | - /** |
|
| 24 | - * This file is used to pack and send RADSEC credentials. |
|
| 25 | - * |
|
| 26 | - * @author Maja Gorecka-Wolniewicz <[email protected]> |
|
| 27 | - */ |
|
| 23 | + /** |
|
| 24 | + * This file is used to pack and send RADSEC credentials. |
|
| 25 | + * |
|
| 26 | + * @author Maja Gorecka-Wolniewicz <[email protected]> |
|
| 27 | + */ |
|
| 28 | 28 | ?> |
| 29 | 29 | <?php |
| 30 | 30 | |
@@ -36,26 +36,26 @@ discard block |
||
| 36 | 36 | if ($editMode == 'fullaccess') { |
| 37 | 37 | $hotspotProfiles = $my_inst->listDeployments(); |
| 38 | 38 | if (count($hotspotProfiles) > 0) { // no profiles yet. |
| 39 | - foreach ($hotspotProfiles as $counter => $deploymentObject) { |
|
| 40 | - if ($deploymentObject->institution == $_GET['inst_id'] && $deploymentObject->identifier == $_GET['dep_id']) { |
|
| 41 | - $cacert = file_get_contents(ROOT . "/config/ManagedSPCerts/eduroamSP-CA.pem"); |
|
| 42 | - $zip = new ZipArchive; |
|
| 43 | - $zip->open(ROOT . '/var/tmp/' . $deploymentObject->identifier.'.zip', ZipArchive::CREATE); |
|
| 44 | - if ($deploymentObject->radsec_priv != '') { |
|
| 39 | + foreach ($hotspotProfiles as $counter => $deploymentObject) { |
|
| 40 | + if ($deploymentObject->institution == $_GET['inst_id'] && $deploymentObject->identifier == $_GET['dep_id']) { |
|
| 41 | + $cacert = file_get_contents(ROOT . "/config/ManagedSPCerts/eduroamSP-CA.pem"); |
|
| 42 | + $zip = new ZipArchive; |
|
| 43 | + $zip->open(ROOT . '/var/tmp/' . $deploymentObject->identifier.'.zip', ZipArchive::CREATE); |
|
| 44 | + if ($deploymentObject->radsec_priv != '') { |
|
| 45 | 45 | $zip->addFromString('priv.key', $deploymentObject->radsec_priv); |
| 46 | - } |
|
| 47 | - $zip->addFromString('cert.pem', $deploymentObject->radsec_cert); |
|
| 48 | - $zip->addFromString('ca.pem', $cacert); |
|
| 49 | - $zip->close(); |
|
| 50 | - $data = file_get_contents(ROOT . '/var/tmp/' . $deploymentObject->identifier.'.zip'); |
|
| 51 | - unlink(ROOT . '/var/tmp/' . $deploymentObject->identifier.'.zip'); |
|
| 52 | - if ($data !== FALSE) { |
|
| 46 | + } |
|
| 47 | + $zip->addFromString('cert.pem', $deploymentObject->radsec_cert); |
|
| 48 | + $zip->addFromString('ca.pem', $cacert); |
|
| 49 | + $zip->close(); |
|
| 50 | + $data = file_get_contents(ROOT . '/var/tmp/' . $deploymentObject->identifier.'.zip'); |
|
| 51 | + unlink(ROOT . '/var/tmp/' . $deploymentObject->identifier.'.zip'); |
|
| 52 | + if ($data !== FALSE) { |
|
| 53 | 53 | header('Content-Type: application/zip'); |
| 54 | 54 | header("Content-Disposition: attachment; filename=\"full_".$deploymentObject->identifier.".zip\""); |
| 55 | 55 | header("Content-Transfer-Encoding: binary"); |
| 56 | 56 | echo $data; |
| 57 | - } |
|
| 58 | - } |
|
| 59 | - } |
|
| 57 | + } |
|
| 58 | + } |
|
| 59 | + } |
|
| 60 | 60 | } |
| 61 | 61 | } |
| 62 | 62 | \ No newline at end of file |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | ?> |
| 29 | 29 | <?php |
| 30 | 30 | |
| 31 | -require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php"; |
|
| 31 | +require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php"; |
|
| 32 | 32 | $auth = new \web\lib\admin\Authentication(); |
| 33 | 33 | $auth->authenticate(); |
| 34 | 34 | $validator = new \web\lib\common\InputValidation(); |
@@ -38,17 +38,17 @@ discard block |
||
| 38 | 38 | if (count($hotspotProfiles) > 0) { // no profiles yet. |
| 39 | 39 | foreach ($hotspotProfiles as $counter => $deploymentObject) { |
| 40 | 40 | if ($deploymentObject->institution == $_GET['inst_id'] && $deploymentObject->identifier == $_GET['dep_id']) { |
| 41 | - $cacert = file_get_contents(ROOT . "/config/ManagedSPCerts/eduroamSP-CA.pem"); |
|
| 41 | + $cacert = file_get_contents(ROOT."/config/ManagedSPCerts/eduroamSP-CA.pem"); |
|
| 42 | 42 | $zip = new ZipArchive; |
| 43 | - $zip->open(ROOT . '/var/tmp/' . $deploymentObject->identifier.'.zip', ZipArchive::CREATE); |
|
| 43 | + $zip->open(ROOT.'/var/tmp/'.$deploymentObject->identifier.'.zip', ZipArchive::CREATE); |
|
| 44 | 44 | if ($deploymentObject->radsec_priv != '') { |
| 45 | 45 | $zip->addFromString('priv.key', $deploymentObject->radsec_priv); |
| 46 | 46 | } |
| 47 | 47 | $zip->addFromString('cert.pem', $deploymentObject->radsec_cert); |
| 48 | 48 | $zip->addFromString('ca.pem', $cacert); |
| 49 | 49 | $zip->close(); |
| 50 | - $data = file_get_contents(ROOT . '/var/tmp/' . $deploymentObject->identifier.'.zip'); |
|
| 51 | - unlink(ROOT . '/var/tmp/' . $deploymentObject->identifier.'.zip'); |
|
| 50 | + $data = file_get_contents(ROOT.'/var/tmp/'.$deploymentObject->identifier.'.zip'); |
|
| 51 | + unlink(ROOT.'/var/tmp/'.$deploymentObject->identifier.'.zip'); |
|
| 52 | 52 | if ($data !== FALSE) { |
| 53 | 53 | header('Content-Type: application/zip'); |
| 54 | 54 | header("Content-Disposition: attachment; filename=\"full_".$deploymentObject->identifier.".zip\""); |
@@ -20,7 +20,7 @@ discard block |
||
| 20 | 20 | */ |
| 21 | 21 | ?> |
| 22 | 22 | <?php |
| 23 | -require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php"; |
|
| 23 | +require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php"; |
|
| 24 | 24 | |
| 25 | 25 | $auth = new \web\lib\admin\Authentication(); |
| 26 | 26 | $uiElements = new \web\lib\admin\UIElements(); |
@@ -57,30 +57,30 @@ discard block |
||
| 57 | 57 | <?php |
| 58 | 58 | echo sprintf(_("On this page, you can add a new %s to your %s. Please fill out the form below to send out an email invitation to the new %s administrator."), $uiElements->nomenclatureParticipant, $uiElements->nomenclatureFed, $uiElements->nomenclatureParticipant); |
| 59 | 59 | if (\config\Master::DB['enforce-external-sync']) { |
| 60 | - echo "<p>" . sprintf(_("You can either register a known %s (as defined in the %s database) or create a totally new %s."), $uiElements->nomenclatureParticipant, \config\ConfAssistant::CONSORTIUM['display_name'], $uiElements->nomenclatureParticipant) . "</p>"; |
|
| 61 | - echo "<p>" . sprintf(_("The latter one is typically for an %s which is yet in a testing phase and therefore doesn't appear in the %s database yet."), $uiElements->nomenclatureParticipant, \config\ConfAssistant::CONSORTIUM['display_name']) . "</p>"; |
|
| 60 | + echo "<p>".sprintf(_("You can either register a known %s (as defined in the %s database) or create a totally new %s."), $uiElements->nomenclatureParticipant, \config\ConfAssistant::CONSORTIUM['display_name'], $uiElements->nomenclatureParticipant)."</p>"; |
|
| 61 | + echo "<p>".sprintf(_("The latter one is typically for an %s which is yet in a testing phase and therefore doesn't appear in the %s database yet."), $uiElements->nomenclatureParticipant, \config\ConfAssistant::CONSORTIUM['display_name'])."</p>"; |
|
| 62 | 62 | } |
| 63 | 63 | ?> |
| 64 | 64 | <hr/> |
| 65 | 65 | <img alt='Loading ...' src='../resources/images/icons/loading51.gif' id='spin' style='position:absolute;left: 50%; top: 50%; transform: translate(-100px, -50px); display:none;'> |
| 66 | 66 | <form name='sendinvite' action='inc/sendinvite.inc.php' method='post' accept-charset='UTF-8'> |
| 67 | 67 | <table> |
| 68 | - <caption><?php echo _("Invitation Details");?></caption> |
|
| 68 | + <caption><?php echo _("Invitation Details"); ?></caption> |
|
| 69 | 69 | <tr> |
| 70 | - <th class="wai-invisible" scope="col"><?php echo _("From database or ad-hoc?");?></th> |
|
| 71 | - <th class="wai-invisible" scope="col"><?php echo _("Name");?></th> |
|
| 72 | - <th class="wai-invisible" scope="col"><?php echo _("Type");?></th> |
|
| 73 | - <th class="wai-invisible" scope="col"><?php echo _("Country");?></th> |
|
| 70 | + <th class="wai-invisible" scope="col"><?php echo _("From database or ad-hoc?"); ?></th> |
|
| 71 | + <th class="wai-invisible" scope="col"><?php echo _("Name"); ?></th> |
|
| 72 | + <th class="wai-invisible" scope="col"><?php echo _("Type"); ?></th> |
|
| 73 | + <th class="wai-invisible" scope="col"><?php echo _("Country"); ?></th> |
|
| 74 | 74 | </tr> |
| 75 | 75 | <?php |
| 76 | 76 | if (\config\Master::DB['enforce-external-sync']) { |
| 77 | 77 | echo "<tr><td> |
| 78 | - <input type='radio' name='creation' value='existing'>" . sprintf(_("Existing %s:"), $uiElements->nomenclatureParticipant) . "</input> |
|
| 78 | + <input type='radio' name='creation' value='existing'>" . sprintf(_("Existing %s:"), $uiElements->nomenclatureParticipant)."</input> |
|
| 79 | 79 | </td>"; |
| 80 | 80 | |
| 81 | 81 | echo "<td colspan='3'> |
| 82 | 82 | <select id='externals' name='externals' onchange='document.sendinvite.creation[0].checked=true; document.sendinvite.mailaddr.value=this.options[this.selectedIndex].id;'> |
| 83 | - <option value='FREETEXT'>" . sprintf(_("--- select %s here ---"),$uiElements->nomenclatureParticipant) . "</option>"; |
|
| 83 | + <option value='FREETEXT'>" . sprintf(_("--- select %s here ---"), $uiElements->nomenclatureParticipant)."</option>"; |
|
| 84 | 84 | |
| 85 | 85 | foreach ($feds as $fed_value) { |
| 86 | 86 | $thefed = new \core\Federation(strtoupper($fed_value['value'])); |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | $entities = $thefed->listExternalEntities(TRUE, NULL); |
| 90 | 90 | |
| 91 | 91 | foreach ($entities as $v) { |
| 92 | - echo "<option id='" . $v['contactlist'] . "' value='" . $fed_value['value']. '-' . $v['ID'] . "'>[" . $fed_value['value'] . "] " . $v['name'] . "</option>"; |
|
| 92 | + echo "<option id='".$v['contactlist']."' value='".$fed_value['value'].'-'.$v['ID']."'>[".$fed_value['value']."] ".$v['name']."</option>"; |
|
| 93 | 93 | } |
| 94 | 94 | } |
| 95 | 95 | |
@@ -98,19 +98,19 @@ discard block |
||
| 98 | 98 | ?> |
| 99 | 99 | <tr> |
| 100 | 100 | <td> |
| 101 | - <input type='radio' name='creation' value='new'><?php echo sprintf(_("New %s"),$uiElements->nomenclatureParticipant); ?></input> |
|
| 101 | + <input type='radio' name='creation' value='new'><?php echo sprintf(_("New %s"), $uiElements->nomenclatureParticipant); ?></input> |
|
| 102 | 102 | </td> |
| 103 | 103 | <td> |
| 104 | 104 | <?php echo _("Name"); ?> <input type='text' size='30' id='name' name='name' onchange='document.sendinvite.creation[1].checked = true'/> |
| 105 | 105 | </td> |
| 106 | 106 | <td> |
| 107 | - <?php if(\config\Master::FUNCTIONALITY_FLAGS['SINGLE_SERVICE'] === 'MSP') { ?> |
|
| 107 | + <?php if (\config\Master::FUNCTIONALITY_FLAGS['SINGLE_SERVICE'] === 'MSP') { ?> |
|
| 108 | 108 | <input type='hidden' name='participant_type' value='SP'> |
| 109 | 109 | <?php } else { ?> |
| 110 | 110 | <select name="participant_type"> |
| 111 | - <option value="IdPSP" selected><?php printf(_("%s and %s"),$uiElements->nomenclatureIdP, $uiElements->nomenclatureHotspot)?></option> |
|
| 112 | - <option value="IdP"><?php printf(_("%s"),$uiElements->nomenclatureIdP)?></option> |
|
| 113 | - <option value="SP"><?php printf(_("%s"),$uiElements->nomenclatureHotspot)?></option> |
|
| 111 | + <option value="IdPSP" selected><?php printf(_("%s and %s"), $uiElements->nomenclatureIdP, $uiElements->nomenclatureHotspot)?></option> |
|
| 112 | + <option value="IdP"><?php printf(_("%s"), $uiElements->nomenclatureIdP)?></option> |
|
| 113 | + <option value="SP"><?php printf(_("%s"), $uiElements->nomenclatureHotspot)?></option> |
|
| 114 | 114 | </select> |
| 115 | 115 | <?php } ?> |
| 116 | 116 | </td> |
@@ -19,12 +19,12 @@ discard block |
||
| 19 | 19 | * <base_url>/copyright.php after deploying the software |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php"; |
|
| 22 | +require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php"; |
|
| 23 | 23 | |
| 24 | 24 | \core\CAT::sessionStart(); |
| 25 | 25 | $validator = new \web\lib\common\InputValidation(); |
| 26 | 26 | |
| 27 | -if (!isset($_GET["class"] )) { |
|
| 27 | +if (!isset($_GET["class"])) { |
|
| 28 | 28 | throw new Exception("Unknown type of option!"); |
| 29 | 29 | } |
| 30 | 30 | |
@@ -42,6 +42,6 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | // add one option of the specified class |
| 44 | 44 | |
| 45 | -$list = \web\lib\admin\OptionDisplay::enumerateOptionsToDisplay($_GET["class"], $_GET['fedid'], (isset($_GET["device"])?$_GET["device"]:NULL)); |
|
| 45 | +$list = \web\lib\admin\OptionDisplay::enumerateOptionsToDisplay($_GET["class"], $_GET['fedid'], (isset($_GET["device"]) ? $_GET["device"] : NULL)); |
|
| 46 | 46 | $optionDisplay = new \web\lib\admin\OptionDisplay($list); |
| 47 | 47 | echo $optionDisplay->optiontext(array_values($list)); |