@@ -62,7 +62,7 @@ |
||
62 | 62 | they are from the same user group. You are not allowed to share them to an unlimited |
63 | 63 | audience (e.g. on a publicly accessible web server).</li> |
64 | 64 | <li>If You are an eduroam Identity Provider administrator, you are allowed to download and pass on the Installers to |
65 | -your own <?php echo \config\ConfAssistant::CONSORTIUM['nomenclature_institution'];?> end users, e.g. on the support web pages of your <?php echo \config\ConfAssistant::CONSORTIUM['nomenclature_institution'];?>, on Welcome Package CDs or USB sticks, etc.</li> |
|
65 | +your own <?php echo \config\ConfAssistant::CONSORTIUM['nomenclature_institution']; ?> end users, e.g. on the support web pages of your <?php echo \config\ConfAssistant::CONSORTIUM['nomenclature_institution']; ?>, on Welcome Package CDs or USB sticks, etc.</li> |
|
66 | 66 | <li>If You are a third-party not affiliated with eduroam, you are only allowed to download and pass on |
67 | 67 | the Metadata and/or the Installers after having received written permission by the eduroam Operations team.</li> |
68 | 68 | </ul> |
@@ -128,20 +128,20 @@ discard block |
||
128 | 128 | if ($device == "TOTAL") { |
129 | 129 | continue; |
130 | 130 | } |
131 | - $retstring .= "<tr><td>$device</td><td>" . $numbers['ADMIN'] . "</td><td>" . $numbers['SILVERBULLET'] . "</td><td>" . $numbers['USER'] . "</td></tr>"; |
|
131 | + $retstring .= "<tr><td>$device</td><td>".$numbers['ADMIN']."</td><td>".$numbers['SILVERBULLET']."</td><td>".$numbers['USER']."</td></tr>"; |
|
132 | 132 | } |
133 | - $retstring .= "<tr><td><strong>TOTAL</strong></td><td><strong>" . $data['TOTAL']['ADMIN'] . "</strong></td><td><strong>" . $data['TOTAL']['SILVERBULLET'] . "</strong></td><td><strong>" . $data['TOTAL']['USER'] . "</strong></td></tr>"; |
|
133 | + $retstring .= "<tr><td><strong>TOTAL</strong></td><td><strong>".$data['TOTAL']['ADMIN']."</strong></td><td><strong>".$data['TOTAL']['SILVERBULLET']."</strong></td><td><strong>".$data['TOTAL']['USER']."</strong></td></tr>"; |
|
134 | 134 | break; |
135 | 135 | case "XML": |
136 | 136 | // the calls to date() operate on current date, so there is no chance for a FALSE to be returned. Silencing scrutinizer. |
137 | - $retstring .= "<federation id='$this->tld' ts='" . /** @scrutinizer ignore-type */ date("Y-m-d") . "T" . /** @scrutinizer ignore-type */ date("H:i:s") . "'>\n"; |
|
137 | + $retstring .= "<federation id='$this->tld' ts='"./** @scrutinizer ignore-type */ date("Y-m-d")."T"./** @scrutinizer ignore-type */ date("H:i:s")."'>\n"; |
|
138 | 138 | foreach ($data as $device => $numbers) { |
139 | 139 | if ($device == "TOTAL") { |
140 | 140 | continue; |
141 | 141 | } |
142 | - $retstring .= " <device name='" . $device . "'>\n <downloads group='admin'>" . $numbers['ADMIN'] . "</downloads>\n <downloads group='managed_idp'>" . $numbers['SILVERBULLET'] . "</downloads>\n <downloads group='user'>" . $numbers['USER'] . "</downloads>\n </device>"; |
|
142 | + $retstring .= " <device name='".$device."'>\n <downloads group='admin'>".$numbers['ADMIN']."</downloads>\n <downloads group='managed_idp'>".$numbers['SILVERBULLET']."</downloads>\n <downloads group='user'>".$numbers['USER']."</downloads>\n </device>"; |
|
143 | 143 | } |
144 | - $retstring .= "<total>\n <downloads group='admin'>" . $data['TOTAL']['ADMIN'] . "</downloads>\n <downloads group='managed_idp'>" . $data['TOTAL']['SILVERBULLET'] . "</downloads>\n <downloads group='user'>" . $data['TOTAL']['USER'] . "</downloads>\n</total>\n"; |
|
144 | + $retstring .= "<total>\n <downloads group='admin'>".$data['TOTAL']['ADMIN']."</downloads>\n <downloads group='managed_idp'>".$data['TOTAL']['SILVERBULLET']."</downloads>\n <downloads group='user'>".$data['TOTAL']['USER']."</downloads>\n</total>\n"; |
|
145 | 145 | $retstring .= "</federation>"; |
146 | 146 | break; |
147 | 147 | case "array": |
@@ -227,7 +227,7 @@ discard block |
||
227 | 227 | $identifier = $this->databaseHandle->lastID(); |
228 | 228 | |
229 | 229 | if ($identifier == 0 || !$this->loggerInstance->writeAudit($ownerId, "NEW", "Organisation $identifier")) { |
230 | - $text = "<p>Could not create a new " . \config\ConfAssistant::CONSORTIUM['nomenclature_inst'] . "!</p>"; |
|
230 | + $text = "<p>Could not create a new ".\config\ConfAssistant::CONSORTIUM['nomenclature_inst']."!</p>"; |
|
231 | 231 | echo $text; |
232 | 232 | throw new Exception($text); |
233 | 233 | } |
@@ -145,7 +145,7 @@ discard block |
||
145 | 145 | $this->activationsTotal = $invitationRow->quantity; |
146 | 146 | $certificatesResult = $this->databaseHandle->exec("SELECT `serial_number`, `ca_type` FROM `silverbullet_certificate` WHERE `silverbullet_invitation_id` = ? ORDER BY `revocation_status`, `expiry` DESC", "i", $this->identifier); |
147 | 147 | $certificatesNumber = ($certificatesResult ? $certificatesResult->num_rows : 0); |
148 | - $this->loggerInstance->debug(5, "At token validation level, " . $certificatesNumber . " certificates exist.\n"); |
|
148 | + $this->loggerInstance->debug(5, "At token validation level, ".$certificatesNumber." certificates exist.\n"); |
|
149 | 149 | // SELECT -> resource, no boolean |
150 | 150 | while ($runner = mysqli_fetch_object(/** @scrutinizer ignore-type */ $certificatesResult)) { |
151 | 151 | $this->associatedCertificates[] = new \core\SilverbulletCertificate($runner->serial_number, $runner->ca_type); |
@@ -204,7 +204,7 @@ discard block |
||
204 | 204 | throw new Exception("Uh. Something went seriously wrong with URL path mangling."); |
205 | 205 | } |
206 | 206 | } |
207 | - $link = $link . $relPath; |
|
207 | + $link = $link.$relPath; |
|
208 | 208 | |
209 | 209 | if (preg_match('/admin$/', $link)) { |
210 | 210 | $link = substr($link, 0, -6); |
@@ -213,7 +213,7 @@ discard block |
||
213 | 213 | } |
214 | 214 | } |
215 | 215 | |
216 | - return $link . '/accountstatus/accountstatus.php?token=' . $this->invitationTokenString; |
|
216 | + return $link.'/accountstatus/accountstatus.php?token='.$this->invitationTokenString; |
|
217 | 217 | } |
218 | 218 | |
219 | 219 | /** |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | $text .= sprintf(_("A new %s access credential has been created for you by your network administrator."), \config\ConfAssistant::CONSORTIUM['display_name']); |
241 | 241 | $text .= " "; |
242 | 242 | $text .= sprintf(_("Please follow the following link with the device you want to enable for %s to get a custom %s installation program just for you. You can click on the link, copy and paste it into a browser or scan the attached QR code."), \config\ConfAssistant::CONSORTIUM['display_name'], \config\ConfAssistant::CONSORTIUM['display_name']); |
243 | - $text .= "\n\n" . $this->link() . "\n\n"; // gets replaced with the token value by getBody() |
|
243 | + $text .= "\n\n".$this->link()."\n\n"; // gets replaced with the token value by getBody() |
|
244 | 244 | $text .= sprintf(_("Please keep this email or bookmark this link for future use. After picking up your %s installation program, you can use the same link to get status information about your %s account."), \config\ConfAssistant::CONSORTIUM['display_name'], \config\ConfAssistant::CONSORTIUM['display_name']); |
245 | 245 | $text .= "\n\n"; |
246 | 246 | $text .= _("Regards,"); |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | /* |
21 | 21 | * Class autoloader invocation, should be included prior to any other code at the entry points to the application |
22 | 22 | */ |
23 | -require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php"; |
|
23 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
24 | 24 | |
25 | 25 | $auth = new \web\lib\admin\Authentication(); |
26 | 26 | $auth->authenticate(); |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | $fed = new \core\Federation($inst->federation); |
54 | 54 | $allowSb = $fed->getAttributes("fed:silverbullet"); |
55 | 55 | if (count($allowSb) == 0) { |
56 | - throw new Exception("We were told to create a new SB profile, but this " . \config\ConfAssistant::CONSORTIUM['nomenclature_federation'] . " does not allow SB at all!"); |
|
56 | + throw new Exception("We were told to create a new SB profile, but this ".\config\ConfAssistant::CONSORTIUM['nomenclature_federation']." does not allow SB at all!"); |
|
57 | 57 | } |
58 | 58 | // okay, new SB profiles are allowed. |
59 | 59 | // but is there a support:email attribute on inst level? |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | // Create one. |
65 | 65 | $newProfile = $inst->newProfile(core\AbstractProfile::PROFILETYPE_SILVERBULLET); |
66 | 66 | // and modify the REQUEST_URI to add the new profile ID |
67 | - $_SERVER['REQUEST_URI'] = $_SERVER['REQUEST_URI'] . "&profile_id=" . $newProfile->identifier; |
|
67 | + $_SERVER['REQUEST_URI'] = $_SERVER['REQUEST_URI']."&profile_id=".$newProfile->identifier; |
|
68 | 68 | $_GET['profile_id'] = $newProfile->identifier; |
69 | 69 | $profile = $newProfile; |
70 | 70 | } else { |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | break; |
133 | 133 | } |
134 | 134 | $properName = $validator->syntaxConformUser($elements[0]); |
135 | - $properDate = new DateTime($elements[1] . " 00:00:00"); |
|
135 | + $properDate = new DateTime($elements[1]." 00:00:00"); |
|
136 | 136 | $numberOfActivations = $elements[2] ?? 1; |
137 | 137 | $number = $validator->integer($numberOfActivations); |
138 | 138 | if ($number === FALSE) { // invalid input received, default to sane |
@@ -225,18 +225,18 @@ discard block |
||
225 | 225 | // warn and ask for confirmation unless already confirmed |
226 | 226 | if (!isset($_POST['insecureconfirm']) || $_POST['insecureconfirm'] != "CONFIRM") { |
227 | 227 | echo $deco->pageheader(_("Insecure mail domain!"), "ADMIN-IDP-USERS"); |
228 | - echo "<p>" . sprintf(_("The mail domain of the mail address <strong>%s</strong> is not secure: some or all of the mail servers are not accepting encrypted connections (no consistent support for STARTTLS)."), $properEmail) . "</p>"; |
|
229 | - echo "<p>" . _("The invitation would need to be sent in cleartext across the internet, and can possibly be read and abused by anyone in transit.") . "</p>"; |
|
230 | - echo "<p>" . _("Do you want the system to send this mail anyway?") . "</p>"; |
|
228 | + echo "<p>".sprintf(_("The mail domain of the mail address <strong>%s</strong> is not secure: some or all of the mail servers are not accepting encrypted connections (no consistent support for STARTTLS)."), $properEmail)."</p>"; |
|
229 | + echo "<p>"._("The invitation would need to be sent in cleartext across the internet, and can possibly be read and abused by anyone in transit.")."</p>"; |
|
230 | + echo "<p>"._("Do you want the system to send this mail anyway?")."</p>"; |
|
231 | 231 | echo $formtext; |
232 | - echo "<button type='submit' class='delete'>" . _("DO NOT SEND") . "</button>"; |
|
232 | + echo "<button type='submit' class='delete'>"._("DO NOT SEND")."</button>"; |
|
233 | 233 | echo "</form>"; |
234 | 234 | echo $formtext; |
235 | - echo "<input type='hidden' name='command' value='" . \web\lib\common\FormElements::BUTTON_SENDINVITATIONMAILBYCAT . "'</>"; |
|
235 | + echo "<input type='hidden' name='command' value='".\web\lib\common\FormElements::BUTTON_SENDINVITATIONMAILBYCAT."'</>"; |
|
236 | 236 | echo "<input type='hidden' name='address' value='$properEmail'</>"; |
237 | - echo "<input type='hidden' name='token' value='" . $invitationObject->invitationTokenString . "'</>"; |
|
237 | + echo "<input type='hidden' name='token' value='".$invitationObject->invitationTokenString."'</>"; |
|
238 | 238 | echo "<input type='hidden' name='insecureconfirm' value='CONFIRM'/>"; |
239 | - echo "<button type='submit'>" . _("Send anyway.") . "</button>"; |
|
239 | + echo "<button type='submit'>"._("Send anyway.")."</button>"; |
|
240 | 240 | echo "</form>"; |
241 | 241 | echo $deco->footer(); |
242 | 242 | exit; |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | $allUsers = $profile->listAllUsers(); |
287 | 287 | $activeUsers = $profile->listActiveUsers(); |
288 | 288 | |
289 | -echo $deco->defaultPagePrelude(sprintf(_('Managing %s users'), \core\ProfileSilverbullet::PRODUCTNAME )); |
|
289 | +echo $deco->defaultPagePrelude(sprintf(_('Managing %s users'), \core\ProfileSilverbullet::PRODUCTNAME)); |
|
290 | 290 | |
291 | 291 | ?> |
292 | 292 | <script src='js/option_expand.js' type='text/javascript'></script> |
@@ -324,7 +324,7 @@ discard block |
||
324 | 324 | echo $deco->productHeader("ADMIN-IDP-USERS"); |
325 | 325 | ?> |
326 | 326 | <img src='../resources/images/icons/loading51.gif' id='spin' alt='loading...' style='position:absolute;left: 50%; top: 50%; transform: translate(-100px, -50px); display:none; z-index: 100;'> |
327 | - <?php echo $uiElements->instLevelInfoBoxes($inst);?> |
|
327 | + <?php echo $uiElements->instLevelInfoBoxes($inst); ?> |
|
328 | 328 | <div class='infobox'> |
329 | 329 | <h2><?php echo sprintf(_('Current %s users'), \core\ProfileSilverbullet::PRODUCTNAME); ?></h2> |
330 | 330 | <table> |
@@ -424,23 +424,23 @@ discard block |
||
424 | 424 | ?> |
425 | 425 | |
426 | 426 | <div class="sb-certificate-summary ca-summary" <?php echo $style; ?>> |
427 | - <div class="sb-certificate-details"><?php echo _("Device:") . " " . $display; ?> |
|
428 | - <br><?php echo _("Serial Number:") . " " . gmp_strval($oneCert->serial, 16); ?> |
|
429 | - <br><?php echo _("CN:") . " " . explode('@', $oneCert->username)[0] . "@…"; ?> |
|
430 | - <br><?php echo _("Expiry:") . " " . $oneCert->expiry; ?> |
|
431 | - <br><?php echo _("Issued:") . " " . $oneCert->issued; ?> |
|
427 | + <div class="sb-certificate-details"><?php echo _("Device:")." ".$display; ?> |
|
428 | + <br><?php echo _("Serial Number:")." ".gmp_strval($oneCert->serial, 16); ?> |
|
429 | + <br><?php echo _("CN:")." ".explode('@', $oneCert->username)[0]."@…"; ?> |
|
430 | + <br><?php echo _("Expiry:")." ".$oneCert->expiry; ?> |
|
431 | + <br><?php echo _("Issued:")." ".$oneCert->issued; ?> |
|
432 | 432 | </div> |
433 | 433 | <div style="text-align:right;padding-top: 5px; <?php echo $buttonStyle; ?>"> |
434 | 434 | <?php |
435 | 435 | if ($buttonText == "") { |
436 | 436 | echo "$formtext" |
437 | - . "<input type='hidden' name='certSerial' value='" . $oneCert->serial . "'/>" |
|
438 | - . "<input type='hidden' name='certAlgo' value='" . $oneCert->ca_type . "'/>" |
|
437 | + . "<input type='hidden' name='certSerial' value='".$oneCert->serial."'/>" |
|
438 | + . "<input type='hidden' name='certAlgo' value='".$oneCert->ca_type."'/>" |
|
439 | 439 | . "<button type='submit' " |
440 | 440 | . "name='command' " |
441 | - . "value='" . \web\lib\common\FormElements::BUTTON_REVOKECREDENTIAL . "' " |
|
441 | + . "value='".\web\lib\common\FormElements::BUTTON_REVOKECREDENTIAL."' " |
|
442 | 442 | . "class='delete' " |
443 | - . "onclick='return confirm(\"" . sprintf(_("The device in question will stop functioning with %s. The revocation cannot be undone. Are you sure you want to do this?"), \config\ConfAssistant::CONSORTIUM['display_name']) . "\")'>" |
|
443 | + . "onclick='return confirm(\"".sprintf(_("The device in question will stop functioning with %s. The revocation cannot be undone. Are you sure you want to do this?"), \config\ConfAssistant::CONSORTIUM['display_name'])."\")'>" |
|
444 | 444 | . _("Revoke") |
445 | 445 | . "</button>" |
446 | 446 | . "</form>"; |
@@ -466,38 +466,38 @@ discard block |
||
466 | 466 | $tokenHtmlBuffer .= "<tr class='sb-certificate-row'><td></td>"; |
467 | 467 | $jsEncodedBody = str_replace('\n', '%0D%0A', str_replace('"', '', json_encode($invitationObject->invitationMailBody()))); |
468 | 468 | $tokenHtmlBuffer .= "<td>"; |
469 | - $tokenHtmlBuffer .= sprintf(_("The invitation token %s is ready for sending! Choose how to send it:"),"<input type='text' readonly='readonly' style='background-color:lightgrey;' size='60' value='" . $invitationObject->link() . "' name='token' class='identifiedtokenarea-" . $invitationObject->identifier . "'>(…)<br/>"); |
|
469 | + $tokenHtmlBuffer .= sprintf(_("The invitation token %s is ready for sending! Choose how to send it:"), "<input type='text' readonly='readonly' style='background-color:lightgrey;' size='60' value='".$invitationObject->link()."' name='token' class='identifiedtokenarea-".$invitationObject->identifier."'>(…)<br/>"); |
|
470 | 470 | $tokenHtmlBuffer .= "<table> |
471 | 471 | <tr><td style='vertical-align:bottom;'>"._("E-Mail:")."</td><td> |
472 | 472 | $formtext |
473 | - <input type='hidden' value='" . $invitationObject->invitationTokenString . "' name='token'><br/> |
|
473 | + <input type='hidden' value='".$invitationObject->invitationTokenString."' name='token'><br/> |
|
474 | 474 | <input type='text' name='address' id='address-$invitationObject->identifier'/> |
475 | - <button type='button' onclick='window.location=\"mailto:\"+document.getElementById(\"address-$invitationObject->identifier\").value+\"?subject=" . $invitationObject->invitationMailSubject() . "&body=$jsEncodedBody\"; return false;'>" . _("Local mail client") . "</button> |
|
476 | - <button type='submit' name='command' onclick='document.getElementById(\"spin\").style.display =\"block\"' value='" . \web\lib\common\FormElements::BUTTON_SENDINVITATIONMAILBYCAT . "'>"._("Send with CAT")."</button> |
|
475 | + <button type='button' onclick='window.location=\"mailto:\"+document.getElementById(\"address-$invitationObject->identifier\").value+\"?subject=".$invitationObject->invitationMailSubject()."&body=$jsEncodedBody\"; return false;'>"._("Local mail client")."</button> |
|
476 | + <button type='submit' name='command' onclick='document.getElementById(\"spin\").style.display =\"block\"' value='" . \web\lib\common\FormElements::BUTTON_SENDINVITATIONMAILBYCAT."'>"._("Send with CAT")."</button> |
|
477 | 477 | </form> |
478 | 478 | </td></tr> |
479 | 479 | <tr><td style='vertical-align:bottom;'>"._("SMS:")."</td><td> |
480 | 480 | $formtext |
481 | - <input type='hidden' value='" . $invitationObject->invitationTokenString . "' name='token'><br/> |
|
481 | + <input type='hidden' value='".$invitationObject->invitationTokenString."' name='token'><br/> |
|
482 | 482 | <input type='text' name='smsnumber' /> |
483 | - <button type='submit' name='command' value='" . \web\lib\common\FormElements::BUTTON_SENDINVITATIONSMS . "'>" . _("Send in SMS...") . "</button> |
|
483 | + <button type='submit' name='command' value='" . \web\lib\common\FormElements::BUTTON_SENDINVITATIONSMS."'>"._("Send in SMS...")."</button> |
|
484 | 484 | </form> |
485 | 485 | </td></tr> |
486 | 486 | <tr><td style='vertical-align:bottom;'>"._("Manual:")."</td><td> |
487 | - <button type='button' class='clipboardButton' onclick='clipboardCopy(" . $invitationObject->identifier . ");'>" . _("Copy to Clipboard") . "</button> |
|
487 | + <button type='button' class='clipboardButton' onclick='clipboardCopy(" . $invitationObject->identifier.");'>"._("Copy to Clipboard")."</button> |
|
488 | 488 | <form style='display:inline-block;' method='post' action='inc/displayQRcode.inc.php' onsubmit='popupQRWindow(this); return false;' accept-charset='UTF-8'> |
489 | - <input type='hidden' value='" . $invitationObject->invitationTokenString . "' name='token'><br/> |
|
490 | - <button type='submit'>" . _("Display QR code") . "</button> |
|
489 | + <input type='hidden' value='" . $invitationObject->invitationTokenString."' name='token'><br/> |
|
490 | + <button type='submit'>" . _("Display QR code")."</button> |
|
491 | 491 | </form> |
492 | 492 | </td></tr> |
493 | 493 | |
494 | 494 | </table> |
495 | 495 | </td>"; |
496 | - $tokenHtmlBuffer .= "<td>" . _("Expiry Date:") . " " . $invitationObject->expiry . " UTC<br>" . _("Activations remaining:") . " " . sprintf(_("%d of %d"), $invitationObject->activationsRemaining, $invitationObject->activationsTotal) . "</td>"; |
|
496 | + $tokenHtmlBuffer .= "<td>"._("Expiry Date:")." ".$invitationObject->expiry." UTC<br>"._("Activations remaining:")." ".sprintf(_("%d of %d"), $invitationObject->activationsRemaining, $invitationObject->activationsTotal)."</td>"; |
|
497 | 497 | $tokenHtmlBuffer .= "<td>" |
498 | 498 | . $formtext |
499 | - . "<input type='hidden' name='invitationtoken' value='" . $invitationObject->invitationTokenString . "'/>" |
|
500 | - . "<button type='submit' name='command' value='" . \web\lib\common\FormElements::BUTTON_REVOKEINVITATION . "' class='delete'>"._("Revoke"). "</button></form>" |
|
499 | + . "<input type='hidden' name='invitationtoken' value='".$invitationObject->invitationTokenString."'/>" |
|
500 | + . "<button type='submit' name='command' value='".\web\lib\common\FormElements::BUTTON_REVOKEINVITATION."' class='delete'>"._("Revoke")."</button></form>" |
|
501 | 501 | . "</td></tr>"; |
502 | 502 | break; |
503 | 503 | case core\SilverbulletInvitation::SB_TOKENSTATUS_EXPIRED: |
@@ -519,7 +519,7 @@ discard block |
||
519 | 519 | <span><input type="text" maxlength="19" class="sb-date-picker" name="userexpiry" value="<?php echo $profile->getUserExpiryDate($oneUserId); ?>"> (UTC)</span> |
520 | 520 | </div> |
521 | 521 | <input type="hidden" name="userid" value="<?php echo $oneUserId; ?>"/> |
522 | - <button type="submit" name="command" value="<?php echo \web\lib\common\FormElements::BUTTON_CHANGEUSEREXPIRY ?>"><?php echo _("Update");?></button> |
|
522 | + <button type="submit" name="command" value="<?php echo \web\lib\common\FormElements::BUTTON_CHANGEUSEREXPIRY ?>"><?php echo _("Update"); ?></button> |
|
523 | 523 | </form> |
524 | 524 | </td> |
525 | 525 | <td> |
@@ -527,13 +527,13 @@ discard block |
||
527 | 527 | <?php |
528 | 528 | if ($hasOnePendingInvite || count($validCerts) > 0) { |
529 | 529 | $deletionText = sprintf(_("All of the currently active devices will stop functioning with %s. This cannot be undone. While the user can be re-activated later, they will then need to be re-provisioned with new invitation tokens. Are you sure you want to do this?"), \config\ConfAssistant::CONSORTIUM['display_name']); |
530 | - echo $formtext . " |
|
530 | + echo $formtext." |
|
531 | 531 | <input type='hidden' name='userid' value='$oneUserId'/> |
532 | 532 | <button type='submit' " |
533 | 533 | . "name='command' " |
534 | - . "value='" . \web\lib\common\FormElements::BUTTON_DEACTIVATEUSER . "' " |
|
534 | + . "value='".\web\lib\common\FormElements::BUTTON_DEACTIVATEUSER."' " |
|
535 | 535 | . "class='delete' " |
536 | - . ( count($validCerts) > 0 ? "onclick='return confirm(\"".$deletionText."\")' " : "" ) |
|
536 | + . (count($validCerts) > 0 ? "onclick='return confirm(\"".$deletionText."\")' " : "") |
|
537 | 537 | . ">" |
538 | 538 | . _("Deactivate User") |
539 | 539 | . "</button> |
@@ -572,13 +572,13 @@ discard block |
||
572 | 572 | . ' If all accounts shown as active above are indeed still valid, please check the box below and push "Save".' |
573 | 573 | . ' If any of the accounts are stale, please deactivate them by pushing the corresponding button before doing this.'), \config\ConfAssistant::SILVERBULLET['gracetime'] ?? core\ProfileSilverbullet::SB_ACKNOWLEDGEMENT_REQUIRED_DAYS); |
574 | 574 | |
575 | - echo $formtext . "<div style='padding-bottom: 20px;'>" |
|
575 | + echo $formtext."<div style='padding-bottom: 20px;'>" |
|
576 | 576 | . " |
577 | 577 | <p>$acknowledgeText</p> |
578 | 578 | <input type='checkbox' name='acknowledge' value='true'> |
579 | - <label>" . sprintf(_("I have verified that all configured users are still eligible for %s."),\config\ConfAssistant::CONSORTIUM['display_name']) . "</label> |
|
579 | + <label>".sprintf(_("I have verified that all configured users are still eligible for %s."), \config\ConfAssistant::CONSORTIUM['display_name'])."</label> |
|
580 | 580 | </div> |
581 | - <button type='submit' name='command' value='" . \web\lib\common\FormElements::BUTTON_ACKUSERELIGIBILITY . "'>"._("Save")."</button></form>"; |
|
581 | + <button type='submit' name='command' value='" . \web\lib\common\FormElements::BUTTON_ACKUSERELIGIBILITY."'>"._("Save")."</button></form>"; |
|
582 | 582 | } |
583 | 583 | ?> |
584 | 584 | </div> |
@@ -655,7 +655,7 @@ discard block |
||
655 | 655 | |
656 | 656 | <form action="overview_idp.php?inst_id=<?php echo $inst->identifier; ?>" method="POST"> |
657 | 657 | <p> |
658 | - <button type='submit' name='submitbutton' value="nomatter"><?php echo sprintf(_("Back to %s page"),$uiElements->nomenclatureInst);?></button> |
|
658 | + <button type='submit' name='submitbutton' value="nomatter"><?php echo sprintf(_("Back to %s page"), $uiElements->nomenclatureInst); ?></button> |
|
659 | 659 | </p> |
660 | 660 | </form> |
661 | 661 | <?php |
@@ -134,7 +134,7 @@ discard block |
||
134 | 134 | if (isset(self::LANGS[$this->languageInstance->getLang()])) { |
135 | 135 | $language = self::LANGS[$this->languageInstance->getLang()]; |
136 | 136 | $this->lang = $language['nsis']; |
137 | - $this->codePage = 'cp' . $language['cp']; |
|
137 | + $this->codePage = 'cp'.$language['cp']; |
|
138 | 138 | } else { |
139 | 139 | $this->lang = 'English'; |
140 | 140 | $this->codePage = 'cp1252'; |
@@ -155,8 +155,8 @@ discard block |
||
155 | 155 | $out .= sprintf(_("%s installer will be in the form of an EXE file. It will configure %s on your device, by creating wireless network profiles.<p>When you click the download button, the installer will be saved by your browser. Copy it to the machine you want to configure and execute."), \config\ConfAssistant::CONSORTIUM['display_name'], \config\ConfAssistant::CONSORTIUM['display_name']); |
156 | 156 | $out .= "<p>"; |
157 | 157 | if ($ssidCount > $configCount) { |
158 | - $out .= sprintf(ngettext("In addition to <strong>%s</strong> the installer will also configure access to:", "In addition to <strong>%s</strong> the installer will also configure access to the following networks:", $ssidCount - $configCount), implode(', ', $configList)) . " "; |
|
159 | - $out .= '<strong>' . join('</strong>, <strong>', array_diff(array_keys($ssids), $configList)) . '</strong>'; |
|
158 | + $out .= sprintf(ngettext("In addition to <strong>%s</strong> the installer will also configure access to:", "In addition to <strong>%s</strong> the installer will also configure access to the following networks:", $ssidCount - $configCount), implode(', ', $configList))." "; |
|
159 | + $out .= '<strong>'.join('</strong>, <strong>', array_diff(array_keys($ssids), $configList)).'</strong>'; |
|
160 | 160 | $out .= "<p>"; |
161 | 161 | } |
162 | 162 | // TODO - change this below |
@@ -172,8 +172,8 @@ discard block |
||
172 | 172 | $out .= _("When you are connecting to the network for the first time, Windows will pop up a login box, where you should enter your user name and password. This information will be saved so that you will reconnect to the network automatically each time you are in the range."); |
173 | 173 | if ($ssidCount > 1) { |
174 | 174 | $out .= "<p>"; |
175 | - $out .= _("You will be required to enter the same credentials for each of the configured networks:") . " "; |
|
176 | - $out .= '<strong>' . join('</strong>, <strong>', array_keys($ssids)) . '</strong>'; |
|
175 | + $out .= _("You will be required to enter the same credentials for each of the configured networks:")." "; |
|
176 | + $out .= '<strong>'.join('</strong>, <strong>', array_keys($ssids)).'</strong>'; |
|
177 | 177 | } |
178 | 178 | } |
179 | 179 | return $out; |
@@ -245,11 +245,11 @@ discard block |
||
245 | 245 | $logoCount = count($logosToPlace); |
246 | 246 | if ($logoCount > 0) { |
247 | 247 | $voffset = $freeTop; |
248 | - $freeSpace = (int)round($this->background['freeHeight'] / ($logoCount + 1)); |
|
248 | + $freeSpace = (int) round($this->background['freeHeight'] / ($logoCount + 1)); |
|
249 | 249 | foreach ($logosToPlace as $logo) { |
250 | 250 | $voffset += $freeSpace; |
251 | 251 | $logoSize = $logo->getImageGeometry(); |
252 | - $hoffset = (int)round(($bgImageSize['width'] - $logoSize['width']) / 2); |
|
252 | + $hoffset = (int) round(($bgImageSize['width'] - $logoSize['width']) / 2); |
|
253 | 253 | $bgImage->compositeImage($logo, $logo->getImageCompose(), $hoffset, $voffset); |
254 | 254 | $voffset += $logoSize['height']; |
255 | 255 | } |
@@ -270,13 +270,13 @@ discard block |
||
270 | 270 | * @return string path to signed installer |
271 | 271 | */ |
272 | 272 | protected function signInstaller() { |
273 | - $fileName = $this->installerBasename . '.exe'; |
|
273 | + $fileName = $this->installerBasename.'.exe'; |
|
274 | 274 | if (!$this->sign) { |
275 | 275 | rename("installer.exe", $fileName); |
276 | 276 | return $fileName; |
277 | 277 | } |
278 | 278 | // are actually signing |
279 | - $outputFromSigning = system($this->sign . " installer.exe '$fileName' > /dev/null"); |
|
279 | + $outputFromSigning = system($this->sign." installer.exe '$fileName' > /dev/null"); |
|
280 | 280 | if ($outputFromSigning === FALSE) { |
281 | 281 | $this->loggerInstance->debug(2, "Signing the WindowsCommon installer $fileName FAILED!\n"); |
282 | 282 | } |
@@ -290,15 +290,15 @@ discard block |
||
290 | 290 | */ |
291 | 291 | protected function compileNSIS() { |
292 | 292 | if (\config\ConfAssistant::NSIS_VERSION >= 3) { |
293 | - $makensis = \config\ConfAssistant::PATHS['makensis'] . " -INPUTCHARSET UTF8"; |
|
293 | + $makensis = \config\ConfAssistant::PATHS['makensis']." -INPUTCHARSET UTF8"; |
|
294 | 294 | } else { |
295 | 295 | $makensis = \config\ConfAssistant::PATHS['makensis']; |
296 | 296 | } |
297 | 297 | $lcAll = getenv("LC_ALL"); |
298 | 298 | putenv("LC_ALL=en_US.UTF-8"); |
299 | - $command = $makensis . ' -V4 cat.NSI > nsis.log 2>&1'; |
|
299 | + $command = $makensis.' -V4 cat.NSI > nsis.log 2>&1'; |
|
300 | 300 | system($command); |
301 | - putenv("LC_ALL=" . $lcAll); |
|
301 | + putenv("LC_ALL=".$lcAll); |
|
302 | 302 | $this->loggerInstance->debug(4, "compileNSIS:$command\n"); |
303 | 303 | } |
304 | 304 | |
@@ -314,10 +314,10 @@ discard block |
||
314 | 314 | 'email' => 'SUPPORT', |
315 | 315 | 'url' => 'URL', |
316 | 316 | ]; |
317 | - $s = "support_" . $type . "_substitute"; |
|
317 | + $s = "support_".$type."_substitute"; |
|
318 | 318 | $substitute = $this->translateString($this->$s, $this->codePage); |
319 | - $returnValue = !empty($attr['support:' . $type][0]) ? $attr['support:' . $type][0] : $substitute; |
|
320 | - return '!define ' . $supportString[$type] . ' "' . $returnValue . '"' . "\n"; |
|
319 | + $returnValue = !empty($attr['support:'.$type][0]) ? $attr['support:'.$type][0] : $substitute; |
|
320 | + return '!define '.$supportString[$type].' "'.$returnValue.'"'."\n"; |
|
321 | 321 | } |
322 | 322 | |
323 | 323 | /** |
@@ -327,20 +327,20 @@ discard block |
||
327 | 327 | * @return string |
328 | 328 | */ |
329 | 329 | protected function writeNsisDefines($attr) { |
330 | - $fcontents = "\n" . '!define NSIS_MAJOR_VERSION ' . \config\ConfAssistant::NSIS_VERSION; |
|
330 | + $fcontents = "\n".'!define NSIS_MAJOR_VERSION '.\config\ConfAssistant::NSIS_VERSION; |
|
331 | 331 | if ($attr['internal:profile_count'][0] > 1) { |
332 | - $fcontents .= "\n" . '!define USER_GROUP "' . $this->translateString(str_replace('"', '$\\"', $attr['profile:name'][0]), $this->codePage) . '" |
|
332 | + $fcontents .= "\n".'!define USER_GROUP "'.$this->translateString(str_replace('"', '$\\"', $attr['profile:name'][0]), $this->codePage).'" |
|
333 | 333 | '; |
334 | 334 | } |
335 | - $fcontents .= ' |
|
336 | -Caption "' . $this->translateString(sprintf(WindowsCommon::sprintNsis(_("%s installer for %s")), \config\ConfAssistant::CONSORTIUM['display_name'], $attr['general:instname'][0]), $this->codePage) . '" |
|
337 | -!define APPLICATION "' . $this->translateString(sprintf(WindowsCommon::sprintNsis(_("%s installer for %s")), \config\ConfAssistant::CONSORTIUM['display_name'], $attr['general:instname'][0]), $this->codePage) . '" |
|
338 | -!define VERSION "' . \core\CAT::VERSION_MAJOR . '.' . \core\CAT::VERSION_MINOR . '" |
|
335 | + $fcontents .= ' |
|
336 | +Caption "' . $this->translateString(sprintf(WindowsCommon::sprintNsis(_("%s installer for %s")), \config\ConfAssistant::CONSORTIUM['display_name'], $attr['general:instname'][0]), $this->codePage).'" |
|
337 | +!define APPLICATION "' . $this->translateString(sprintf(WindowsCommon::sprintNsis(_("%s installer for %s")), \config\ConfAssistant::CONSORTIUM['display_name'], $attr['general:instname'][0]), $this->codePage).'" |
|
338 | +!define VERSION "' . \core\CAT::VERSION_MAJOR.'.'.\core\CAT::VERSION_MINOR.'" |
|
339 | 339 | !define INSTALLER_NAME "installer.exe" |
340 | -!define LANG "' . $this->lang . '" |
|
341 | -!define LOCALE "' . preg_replace('/\..*$/', '', \config\Master::LANGUAGES[$this->languageInstance->getLang()]['locale']) . '" |
|
340 | +!define LANG "' . $this->lang.'" |
|
341 | +!define LOCALE "' . preg_replace('/\..*$/', '', \config\Master::LANGUAGES[$this->languageInstance->getLang()]['locale']).'" |
|
342 | 342 | ;-------------------------------- |
343 | -!define ORGANISATION "' . $this->translateString($attr['general:instname'][0], $this->codePage) . '" |
|
343 | +!define ORGANISATION "' . $this->translateString($attr['general:instname'][0], $this->codePage).'" |
|
344 | 344 | '; |
345 | 345 | $fcontents .= $this->getSupport($attr, 'email'); |
346 | 346 | $fcontents .= $this->getSupport($attr, 'url'); |
@@ -348,18 +348,18 @@ discard block |
||
348 | 348 | $fcontents .= '!define WIRED |
349 | 349 | '; |
350 | 350 | } |
351 | - $fcontents .= '!define PROVIDERID "urn:UUID:' . $this->deviceUUID . '" |
|
351 | + $fcontents .= '!define PROVIDERID "urn:UUID:'.$this->deviceUUID.'" |
|
352 | 352 | '; |
353 | 353 | if (!empty($attr['internal:realm'][0])) { |
354 | - $fcontents .= '!define REALM "' . $attr['internal:realm'][0] . '" |
|
354 | + $fcontents .= '!define REALM "'.$attr['internal:realm'][0].'" |
|
355 | 355 | '; |
356 | 356 | } |
357 | - if(!empty($attr['internal:hint_userinput_suffix'][0]) && $attr['internal:hint_userinput_suffix'][0] == 1) { |
|
358 | - $fcontents .= '!define HINT_USER_INPUT "' . $attr['internal:hint_userinput_suffix'][0] . '" |
|
357 | + if (!empty($attr['internal:hint_userinput_suffix'][0]) && $attr['internal:hint_userinput_suffix'][0] == 1) { |
|
358 | + $fcontents .= '!define HINT_USER_INPUT "'.$attr['internal:hint_userinput_suffix'][0].'" |
|
359 | 359 | '; |
360 | 360 | } |
361 | - if(!empty($attr['internal:verify_userinput_suffix'][0]) && $attr['internal:verify_userinput_suffix'][0] == 1) { |
|
362 | - $fcontents .= '!define VERIFY_USER_REALM_INPUT "' . $attr['internal:verify_userinput_suffix'][0] . '" |
|
361 | + if (!empty($attr['internal:verify_userinput_suffix'][0]) && $attr['internal:verify_userinput_suffix'][0] == 1) { |
|
362 | + $fcontents .= '!define VERIFY_USER_REALM_INPUT "'.$attr['internal:verify_userinput_suffix'][0].'" |
|
363 | 363 | '; |
364 | 364 | } |
365 | 365 | $fcontents .= $this->msInfoFile($attr); |
@@ -380,7 +380,7 @@ discard block |
||
380 | 380 | $out .= '!define EXTERNAL_INFO "'; |
381 | 381 | // $this->loggerInstance->debug(4,"Info file type ".$attr['support:info_file'][0]['mime']."\n"); |
382 | 382 | if ($attr['internal:info_file'][0]['mime'] == 'rtf') { |
383 | - $out = '!define LICENSE_FILE "' . $attr['internal:info_file'][0]['name']; |
|
383 | + $out = '!define LICENSE_FILE "'.$attr['internal:info_file'][0]['name']; |
|
384 | 384 | } elseif ($attr['internal:info_file'][0]['mime'] == 'txt') { |
385 | 385 | $infoFile = file_get_contents($attr['internal:info_file'][0]['name']); |
386 | 386 | if ($infoFile === FALSE) { |
@@ -389,14 +389,14 @@ discard block |
||
389 | 389 | if (\config\ConfAssistant::NSIS_VERSION >= 3) { |
390 | 390 | $infoFileConverted = $infoFile; |
391 | 391 | } else { |
392 | - $infoFileConverted = iconv('UTF-8', $this->codePage . '//TRANSLIT', $infoFile); |
|
392 | + $infoFileConverted = iconv('UTF-8', $this->codePage.'//TRANSLIT', $infoFile); |
|
393 | 393 | } |
394 | 394 | if ($infoFileConverted !== FALSE && strlen($infoFileConverted) > 0) { |
395 | 395 | file_put_contents('info_f.txt', $infoFileConverted); |
396 | 396 | $out = '!define LICENSE_FILE " info_f.txt'; |
397 | 397 | } |
398 | 398 | } else { |
399 | - $out = '!define EXTERNAL_INFO "' . $attr['internal:info_file'][0]['name']; |
|
399 | + $out = '!define EXTERNAL_INFO "'.$attr['internal:info_file'][0]['name']; |
|
400 | 400 | } |
401 | 401 | |
402 | 402 | $out .= "\"\n"; |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | |
22 | 22 | // please run this as a cron job every hour |
23 | 23 | |
24 | -require_once dirname(dirname(__FILE__)) . "/config/_config.php"; |
|
24 | +require_once dirname(dirname(__FILE__))."/config/_config.php"; |
|
25 | 25 | |
26 | 26 | // iterate through all federations and see if there are recently expired |
27 | 27 | // invitations for any of them |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | $admins = $this_fed->listFederationAdmins(); |
56 | 56 | $mailtext = "Hello, |
57 | 57 | |
58 | -invitation tokens for the following new ". \config\ConfAssistant::CONSORTIUM['nomenclature_institution'] ." have recently expired: |
|
58 | +invitation tokens for the following new ". \config\ConfAssistant::CONSORTIUM['nomenclature_institution']." have recently expired: |
|
59 | 59 | |
60 | 60 | "; |
61 | 61 | foreach ($listofinstnames as $instname) { |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | if ($numberofexistingidps > 0) { |
66 | 66 | $mailtext .= " |
67 | 67 | |
68 | -Additionally, $numberofexistingidps invitations for an existing ". \config\ConfAssistant::CONSORTIUM['nomenclature_institution']." have expired. |
|
68 | +Additionally, $numberofexistingidps invitations for an existing ".\config\ConfAssistant::CONSORTIUM['nomenclature_institution']." have expired. |
|
69 | 69 | "; |
70 | 70 | } |
71 | 71 | $mailtext .= " |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | |
74 | 74 | Greetings, |
75 | 75 | |
76 | -A humble " . \config\Master::APPEARANCE['productname'] . " cron job |
|
76 | +A humble " . \config\Master::APPEARANCE['productname']." cron job |
|
77 | 77 | "; |
78 | 78 | |
79 | 79 | foreach ($admins as $admin) { |
@@ -214,7 +214,7 @@ discard block |
||
214 | 214 | 'db' => 'cat', |
215 | 215 | 'user' => 'someuser', |
216 | 216 | 'pass' => 'somepass', |
217 | - 'readonly' => FALSE,], |
|
217 | + 'readonly' => FALSE, ], |
|
218 | 218 | // this DB stores diagnostics data. The connection details can be |
219 | 219 | // identical to INST as there is no table overlap |
220 | 220 | 'DIAGNOSTICS' => [ |
@@ -222,7 +222,7 @@ discard block |
||
222 | 222 | 'db' => 'cat', |
223 | 223 | 'user' => 'someuser', |
224 | 224 | 'pass' => 'somepass', |
225 | - 'readonly' => FALSE,], |
|
225 | + 'readonly' => FALSE, ], |
|
226 | 226 | // this slice of DB user is about the downloads table. The corresponding |
227 | 227 | // DB user should have write access to update statistics and the cache |
228 | 228 | // locations of installers. |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | 'db' => 'cat', |
233 | 233 | 'user' => 'someuser', |
234 | 234 | 'pass' => 'somepass', |
235 | - 'readonly' => FALSE,], |
|
235 | + 'readonly' => FALSE, ], |
|
236 | 236 | // this slice of DB use is about user management in the user_options |
237 | 237 | // table. Giving the corresponding user only read-only access means that |
238 | 238 | // all user properties have to "magically" occur in the table by OOB |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | 'db' => 'cat', |
244 | 244 | 'user' => 'someuser', |
245 | 245 | 'pass' => 'somepass', |
246 | - 'readonly' => FALSE,], |
|
246 | + 'readonly' => FALSE, ], |
|
247 | 247 | /* If you use this tool in conjunction with an external customer management database, you can configure that every |
248 | 248 | * institution entry in CAT MUST correspond to a customer entry in an external database. If you want this, set this |
249 | 249 | * config variable to TRUE. |
@@ -263,7 +263,7 @@ discard block |
||
263 | 263 | 'db' => 'customer_db', |
264 | 264 | 'user' => 'customerservice', |
265 | 265 | 'pass' => '2lame4u', |
266 | - 'readonly' => TRUE,], |
|
266 | + 'readonly' => TRUE, ], |
|
267 | 267 | 'enforce-external-sync' => TRUE, |
268 | 268 | ]; |
269 | 269 | /** |
@@ -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 | header('Content-type: text/css; charset=utf-8'); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | } |
30 | 30 | |
31 | 31 | body { |
32 | - background: <?php echo $colour1;?>; |
|
32 | + background: <?php echo $colour1; ?>; |
|
33 | 33 | color: #000000; |
34 | 34 | font-family:Verdana, Arial, Helvetica, sans-serif; |
35 | 35 | font-size:11px; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | } |
45 | 45 | |
46 | 46 | button { |
47 | - background: <?php echo $colour2;?>; |
|
47 | + background: <?php echo $colour2; ?>; |
|
48 | 48 | color: #FFFFFF; |
49 | 49 | min-height: 23px; |
50 | 50 | border-left-style: outset; |
@@ -395,7 +395,7 @@ discard block |
||
395 | 395 | |
396 | 396 | span.edu_cat { |
397 | 397 | font-weight: bold; |
398 | - color: <?php echo $colour2;?>; |
|
398 | + color: <?php echo $colour2; ?>; |
|
399 | 399 | } |
400 | 400 | |
401 | 401 | span.tooltip { |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | border-bottom-style:solid; |
492 | 492 | border-top-width:5px; |
493 | 493 | border-bottom-width:5px; |
494 | - border-color: <?php echo $colour1;?>; |
|
494 | + border-color: <?php echo $colour1; ?>; |
|
495 | 495 | padding-left:30px; |
496 | 496 | } |
497 | 497 | |
@@ -561,7 +561,7 @@ discard block |
||
561 | 561 | } |
562 | 562 | |
563 | 563 | #close_button { |
564 | - background: <?php echo $colour2;?>; |
|
564 | + background: <?php echo $colour2; ?>; |
|
565 | 565 | color: #FFFFFF; |
566 | 566 | height: 23px; |
567 | 567 | border-left-style: inset; |
@@ -636,7 +636,7 @@ discard block |
||
636 | 636 | width: 30em; |
637 | 637 | padding-left: 10px; |
638 | 638 | padding-right: 0px; |
639 | - background: <?php echo $colour2;?>; |
|
639 | + background: <?php echo $colour2; ?>; |
|
640 | 640 | color: white; |
641 | 641 | box-shadow: 10px 10px 5px #888888; |
642 | 642 | } |
@@ -683,7 +683,7 @@ discard block |
||
683 | 683 | padding-top: 4px; |
684 | 684 | padding-bottom: 12px; |
685 | 685 | padding-left: 30px; |
686 | - background: <?php echo $colour1;?>; |
|
686 | + background: <?php echo $colour1; ?>; |
|
687 | 687 | text-align: left; |
688 | 688 | text-shadow: 10px 10px 5px #888888; |
689 | 689 | } |
@@ -693,9 +693,9 @@ discard block |
||
693 | 693 | border-bottom-style:solid; |
694 | 694 | border-top-width:5px; |
695 | 695 | border-bottom-width:5px; |
696 | - border-color: <?php echo $colour1;?>; |
|
696 | + border-color: <?php echo $colour1; ?>; |
|
697 | 697 | padding-left:30px; |
698 | - color: <?php echo $colour2;?>; |
|
698 | + color: <?php echo $colour2; ?>; |
|
699 | 699 | } |
700 | 700 | |
701 | 701 | #heading h1 { |
@@ -714,7 +714,7 @@ discard block |
||
714 | 714 | text-align: justify; |
715 | 715 | border-bottom-style:solid; |
716 | 716 | border-bottom-width:5px; |
717 | - border-color: <?php echo $colour1;?>; |
|
717 | + border-color: <?php echo $colour1; ?>; |
|
718 | 718 | font-size: 11px; |
719 | 719 | font-weight: normal; |
720 | 720 | } |
@@ -761,7 +761,7 @@ discard block |
||
761 | 761 | |
762 | 762 | #faq { |
763 | 763 | padding: 20px; |
764 | - color: <?php echo $colour2;?>; |
|
764 | + color: <?php echo $colour2; ?>; |
|
765 | 765 | background: #ffffff; |
766 | 766 | } |
767 | 767 | |
@@ -813,7 +813,7 @@ discard block |
||
813 | 813 | |
814 | 814 | #line1 { |
815 | 815 | top:145px; |
816 | - color: <?php echo $colour2;?>; |
|
816 | + color: <?php echo $colour2; ?>; |
|
817 | 817 | font-size:20px; |
818 | 818 | } |
819 | 819 | |
@@ -860,7 +860,7 @@ discard block |
||
860 | 860 | |
861 | 861 | #front_page_leftmenu { |
862 | 862 | border-right:solid; |
863 | - border-color: <?php echo $colour1;?>; |
|
863 | + border-color: <?php echo $colour1; ?>; |
|
864 | 864 | border-width:5px; |
865 | 865 | min-height:400px; |
866 | 866 | padding-left: 10px; |
@@ -885,11 +885,11 @@ discard block |
||
885 | 885 | } |
886 | 886 | |
887 | 887 | a:link { |
888 | - color:<?php echo $colour2;?>; |
|
888 | + color:<?php echo $colour2; ?>; |
|
889 | 889 | } |
890 | 890 | |
891 | 891 | a:visited { |
892 | - color:<?php echo $colour2;?>; |
|
892 | + color:<?php echo $colour2; ?>; |
|
893 | 893 | } |
894 | 894 | |
895 | 895 | a:hover { |
@@ -897,7 +897,7 @@ discard block |
||
897 | 897 | } |
898 | 898 | |
899 | 899 | a:active { |
900 | - color:<?php echo $colour2;?>; |
|
900 | + color:<?php echo $colour2; ?>; |
|
901 | 901 | } |
902 | 902 | |
903 | 903 | .comment { |
@@ -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(dirname(__FILE__))) . "/config/_config.php"; |
|
22 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
23 | 23 | $admin = filter_input(INPUT_GET, 'admin', FILTER_VALIDATE_INT); |
24 | 24 | $auth = new \web\lib\admin\Authentication(); |
25 | 25 | $isauth = 0; |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | unset($q_el[$idx]); |
34 | 34 | $q_r = preg_replace("/\?.*/", "", $_SERVER['REQUEST_URI']); |
35 | 35 | if (count($q_el)) { |
36 | - $q_r = $q_r . '?' . implode('&', $q_el); |
|
36 | + $q_r = $q_r.'?'.implode('&', $q_el); |
|
37 | 37 | } |
38 | 38 | $_SERVER['REQUEST_URI'] = $q_r; |
39 | 39 | } |
@@ -42,11 +42,11 @@ discard block |
||
42 | 42 | $auth->authenticate(); |
43 | 43 | } |
44 | 44 | if (isset($_SESSION['admin_diag_auth'])) { |
45 | - $admin = 1; |
|
45 | + $admin = 1; |
|
46 | 46 | unset($_SESSION['admin_diag_auth']); |
47 | 47 | } |
48 | 48 | $Gui = new \web\lib\user\Gui(); |
49 | 49 | $skinObject = new \web\lib\user\Skinjob($_REQUEST['skin'] ?? $_SESSION['skin'] ?? $fedskin[0] ?? \config\Master::APPEARANCE['skins'][0]); |
50 | -require "../skins/" . $skinObject->skin . "/diag/diag.php"; |
|
50 | +require "../skins/".$skinObject->skin."/diag/diag.php"; |
|
51 | 51 | |
52 | 52 |