Passed
Push — master ( a7425d...dd80fa )
by Tomasz
03:35
created
web/admin/inc/manageDBLink.inc.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
 // if we have a pushed close button, submit attributes and send user back to the overview page
26 26
 // if external DB sync is disabled globally, the user never gets to this page. If he came here *anyway* -> send him back immediately.
27
-if ((isset($_POST['submitbutton']) && $_POST['submitbutton'] == web\lib\common\FormElements::BUTTON_CLOSE ) || CONFIG['DB']['enforce-external-sync'] == FALSE) {
27
+if ((isset($_POST['submitbutton']) && $_POST['submitbutton'] == web\lib\common\FormElements::BUTTON_CLOSE) || CONFIG['DB']['enforce-external-sync'] == FALSE) {
28 28
     header("Location: ../overview_federation.php");
29 29
     exit;
30 30
 }
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         // right-hand side: external DB
107 107
         $externalid = $my_inst->getExternalDBId();
108 108
         if (!$externalid) { // we are in SYNCED state so this cannot happen
109
-            throw new Exception("We are in SYNCSTATE_SYNCED but still there is no external DB Id available for the ".CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution']."!");
109
+            throw new Exception("We are in SYNCSTATE_SYNCED but still there is no external DB Id available for the " . CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_institution'] . "!");
110 110
         }
111 111
 
112 112
         $extinfo = $cat->getExternalDBEntityDetails($externalid);
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
         }
168 168
         // issue a big red warning if there are no link candidates at all in the federation
169 169
         if (empty($buffer) && empty($candidates)) {
170
-            echo "<tr><td style='color:#ff0000' colspan='2'>". sprintf(_('There is no single unmapped %s in the external database for this %s!'), $uiElements->nomenclature_inst, $uiElements->nomenclature_fed)."</td></tr>";
170
+            echo "<tr><td style='color:#ff0000' colspan='2'>" . sprintf(_('There is no single unmapped %s in the external database for this %s!'), $uiElements->nomenclature_inst, $uiElements->nomenclature_fed) . "</td></tr>";
171 171
         }
172 172
         echo "</table><button type='submit' name='submitbutton' id='submit' value='" . web\lib\common\FormElements::BUTTON_SAVE . "' disabled >" . _("Create Link") . "</button></form>";
173 173
     }
Please login to merge, or discard this patch.
devices/ms/Files/common.inc 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1019,12 +1019,12 @@
 block discarded – undo
1019 1019
         $certUsernameLabel = WindowsCommon::sprint_nsi(_("Username:"));
1020 1020
         $certUsernameLength = strlen($certUsernameLabel);
1021 1021
         $labelLength = max($certPasswordLength,$certUsernameLength);
1022
-  ?>
1022
+    ?>
1023 1023
   ${NSD_CreateLabel} 0 0 100% 32u "<?php WindowsCommon::echo_nsi(_("Selected file: \$Cert_file"))?>"
1024 1024
   !else
1025 1025
   <?php $certPasswordLabel = WindowsCommon::sprint_nsi(_("import password:"));
1026 1026
         $certPasswordLength = strlen($certPasswordLabel);
1027
-  ?>
1027
+    ?>
1028 1028
   !insertmacro debug_cat 4 "Unpacking SB_cert.p12"
1029 1029
   File "SB_cert.p12"
1030 1030
   nsArray::Set Delete_files "SB_cert.p12"
Please login to merge, or discard this patch.
Spacing   +33 added lines, -33 removed lines patch added patch discarded remove patch
@@ -120,10 +120,10 @@  discard block
 block discarded – undo
120 120
 !define MUI_HEADERIMAGE_BITMAP "cat_150.bmp"
121 121
 !define MUI_COMPONENTSPAGE_SMALLDESC
122 122
 
123
-!define WELCOME_HEADER "<?php printf(WindowsCommon::sprint_nsi(_("Welcome to the %s installer")),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?>"
124
-!define FAREWELL_HEADER "<?php WindowsCommon::echo_nsi( _("Installation complete"))?>"
125
-!define FAREWELL_TEXT	"<?php WindowsCommon::echo_nsi( _("Network profiles have been installed."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi(  _("Your system is ready."))?>"
126
-!define FAREWELL_FAIL	"<?php WindowsCommon::echo_nsi( _("Network installation had errors."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi( _("Please contact \${SUPPORT}."))?>"
123
+!define WELCOME_HEADER "<?php printf(WindowsCommon::sprint_nsi(_("Welcome to the %s installer")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?>"
124
+!define FAREWELL_HEADER "<?php WindowsCommon::echo_nsi(_("Installation complete"))?>"
125
+!define FAREWELL_TEXT	"<?php WindowsCommon::echo_nsi(_("Network profiles have been installed."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi(_("Your system is ready."))?>"
126
+!define FAREWELL_FAIL	"<?php WindowsCommon::echo_nsi(_("Network installation had errors."))?>$\r$\n$\n <?php WindowsCommon::echo_nsi(_("Please contact \${SUPPORT}."))?>"
127 127
 ;--------------------------------
128 128
 ;Languages
129 129
 !insertmacro MUI_LANGUAGE "${LANG}"
@@ -131,14 +131,14 @@  discard block
 block discarded – undo
131 131
 ;--------------------------------
132 132
 ; License file
133 133
 !ifdef LICENSE_FILE
134
-LicenseForceSelection checkbox "<?php WindowsCommon::echo_nsi( _("Accept"))?>"
134
+LicenseForceSelection checkbox "<?php WindowsCommon::echo_nsi(_("Accept"))?>"
135 135
 LicenseText "<?php WindowsCommon::echo_nsi(_("If you accept the conditions then select Accept and then click Install to continue."))?>"
136 136
 LicenseData ${LICENSE_FILE}
137 137
 !endif
138 138
 
139 139
 ;-----------------------------------
140 140
 
141
-MiscButtonText "" "" "" "<?php WindowsCommon::echo_nsi( _("Finish"))?>"
141
+MiscButtonText "" "" "" "<?php WindowsCommon::echo_nsi(_("Finish"))?>"
142 142
 ;----------------------------------
143 143
 ;  FUNCTIONS
144 144
 
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
 
172 172
 !macro install_ca_cert ca_file ca_fingerprint level
173 173
    !insertmacro debug_cat 2 "locating certificate  SHA=${ca_fingerprint} Level=${level}"
174
-   DetailPrint "<?php WindowsCommon::echo_nsi( _("searching for certificate"))?> ${ca_file}"
174
+   DetailPrint "<?php WindowsCommon::echo_nsi(_("searching for certificate"))?> ${ca_file}"
175 175
    File "${ca_file}"
176 176
    nsArray::Set Delete_files "${ca_file}"
177 177
    !insertmacro debug_cat 2 "Testing machine store root"
@@ -233,13 +233,13 @@  discard block
 block discarded – undo
233 233
    ${EndIf}
234 234
    !insertmacro debug_cat 2 "installing certificate $TEMP\${ca_file}"
235 235
    !insertmacro debug_cat 3 "Execute: certutil -addstore -user ${level} $TEMP\${ca_file}"
236
-   DetailPrint "<?php WindowsCommon::echo_nsi( _("installing certificate"))?> ${ca_file}"
236
+   DetailPrint "<?php WindowsCommon::echo_nsi(_("installing certificate"))?> ${ca_file}"
237 237
    nsExec::Exec '"certutil" -addstore -user ${level} $TEMP\${ca_file}'
238 238
    Pop $0
239 239
    !insertmacro debug_cat 3 "certutil returned $0"
240 240
    ${If} $0 != 0
241 241
      IfSilent +2
242
-     MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi( _("could not install certificate"))?>  ${ca_file}"
242
+     MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi(_("could not install certificate"))?>  ${ca_file}"
243 243
      !insertmacro debug_cat 1 "could not install certificate ${ca_file}"
244 244
    ${EndIf}
245 245
 no_install_${ca_file}:
@@ -428,26 +428,26 @@  discard block
 block discarded – undo
428 428
   pop $R0
429 429
   ${If} $tkip_count > 0
430 430
     ${If} $aes_count > 1
431
-      StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi( _("The non TKIP profiles are preferred. Always use them if you have a choice."))?>"
431
+      StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi(_("The non TKIP profiles are preferred. Always use them if you have a choice."))?>"
432 432
     ${Else}
433
-     StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi( _("The non TKIP profile is preferred. Always use it if you have a choice."))?>"
433
+     StrCpy $R1 "$\r$\n$\n<?php WindowsCommon::echo_nsi(_("The non TKIP profile is preferred. Always use it if you have a choice."))?>"
434 434
     ${EndIf}
435 435
   ${Else}
436 436
     StrCpy $R1 ""
437 437
   ${EndIf}
438 438
   ${If} $profile_count > 0
439
-    StrCpy $welcome_message "<?php WindowsCommon::echo_nsi( _("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\
440
-<?php WindowsCommon::echo_nsi( _("The installer will create the following wireless profiles:"))?>$\r$\n\
439
+    StrCpy $welcome_message "<?php WindowsCommon::echo_nsi(_("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\
440
+<?php WindowsCommon::echo_nsi(_("The installer will create the following wireless profiles:"))?>$\r$\n\
441 441
 $R0.\
442 442
 $R1$\r$\n$\n\
443
-<?php WindowsCommon::echo_nsi( _("More information and comments:"))?>$\r$\n\
443
+<?php WindowsCommon::echo_nsi(_("More information and comments:"))?>$\r$\n\
444 444
    EMAIL: ${SUPPORT}$\r$\n\
445 445
    WWW: ${URL}"
446 446
 ${Else}
447
-StrCpy $welcome_message "<?php WindowsCommon::echo_nsi( _("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\
448
-<?php WindowsCommon::echo_nsi( _("The installer will create the wireless profile:"))?> $R0.\
447
+StrCpy $welcome_message "<?php WindowsCommon::echo_nsi(_("This installer has been prepared for \${ORGANISATION}"))?>.$\r$\n\
448
+<?php WindowsCommon::echo_nsi(_("The installer will create the wireless profile:"))?> $R0.\
449 449
 $R1$\r$\n$\n\
450
-<?php WindowsCommon::echo_nsi( _("More information and comments:"))?>$\r$\n\
450
+<?php WindowsCommon::echo_nsi(_("More information and comments:"))?>$\r$\n\
451 451
    EMAIL: ${SUPPORT}$\r$\n\
452 452
    WWW: ${URL}"
453 453
 ${EndIf}
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
   SendMessage $HEADLINE ${WM_SETFONT} $HEADLINE_FONT 0
474 474
 ;TRANSLATION
475 475
   nsDialogs::CreateControl STATIC ${WS_VISIBLE}|${WS_CHILD}|${WS_CLIPSIBLINGS} 0 120u 46u -130u -32u "$welcome_message\
476
-$\r$\n$\r$\n<?php WindowsCommon::echo_nsi( _("Installer created with software from the GEANT project."))?>"
476
+$\r$\n$\r$\n<?php WindowsCommon::echo_nsi(_("Installer created with software from the GEANT project."))?>"
477 477
   Pop $TEXT
478 478
 
479 479
   SetCtlColors $DIALOG "" 0xffffff
@@ -585,18 +585,18 @@  discard block
 block discarded – undo
585 585
     ${If} $wireless_result == 1
586 586
       !insertmacro debug_cat 1 "wlan_test.exe did not find wireless configuration service"
587 587
       IfSilent +2
588
-      MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi( _("Windows wireless configuration service is not enabled. The installer cannot continue."))?>"
588
+      MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi(_("Windows wireless configuration service is not enabled. The installer cannot continue."))?>"
589 589
       Call Cleanup
590 590
     ${EndIf}
591 591
     ${If} $wireless_result == 2
592 592
       IfSilent +2
593
-      MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi( _("No wireless interfaces found. The installer cannot continue."))?>"
593
+      MessageBox MB_OK|MB_ICONEXCLAMATION "<?php WindowsCommon::echo_nsi(_("No wireless interfaces found. The installer cannot continue."))?>"
594 594
       Call Cleanup
595 595
     ${EndIf}
596 596
   ${Else}
597 597
     ${If} $wireless_result > 0
598 598
        IfSilent +3
599
-       MessageBox MB_YESNO "<?php WindowsCommon::echo_nsi( _("No wireless interfaces found. Wireless access will not be configured. Would you like to continue and configure access on the wired interface?"))?>" IDYES wired_yes
599
+       MessageBox MB_YESNO "<?php WindowsCommon::echo_nsi(_("No wireless interfaces found. Wireless access will not be configured. Would you like to continue and configure access on the wired interface?"))?>" IDYES wired_yes
600 600
        Call Cleanup
601 601
        wired_yes:
602 602
        Push 1
@@ -612,7 +612,7 @@  discard block
 block discarded – undo
612 612
     ${If} $wired == 1
613 613
       ${If} $force_wired == 0
614 614
         IfSilent wired
615
-        MessageBox MB_YESNO "<?php WindowsCommon::echo_nsi( _("Do you want to enable access on wired interfaces?"))?>" IDYES wired
615
+        MessageBox MB_YESNO "<?php WindowsCommon::echo_nsi(_("Do you want to enable access on wired interfaces?"))?>" IDYES wired
616 616
         Push 0
617 617
         Pop $wired
618 618
       ${EndIf}
@@ -647,7 +647,7 @@  discard block
 block discarded – undo
647 647
 ;================================
648 648
 
649 649
 Function ShowInstfiles
650
-  !insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi( _("Profiles installation"))?>" " "
650
+  !insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi(_("Profiles installation"))?>" " "
651 651
 FunctionEnd
652 652
 ;================================
653 653
 ;  Check if a wireless profile exist and put it on delete list
@@ -666,7 +666,7 @@  discard block
 block discarded – undo
666 666
 
667 667
 Function FindProfile
668 668
   Pop $R8
669
-  DetailPrint "<?php WindowsCommon::echo_nsi( _("Checking for profile \$R8"))?>"
669
+  DetailPrint "<?php WindowsCommon::echo_nsi(_("Checking for profile \$R8"))?>"
670 670
   !insertmacro debug_cat 2 "Checking for profile $R8"
671 671
   !insertmacro debug_cat 3 "Exec: $Netsh wlan show profiles $R8"
672 672
   nsExec::Exec  '"$Netsh" wlan show profiles "$R8"'
@@ -674,7 +674,7 @@  discard block
 block discarded – undo
674 674
   !insertmacro debug_cat 4 "netsh returned $0"
675 675
   ${If} $0 == 0
676 676
     !insertmacro debug_cat 1 "found profile $R8"
677
-    DetailPrint "<?php WindowsCommon::echo_nsi( _("found profile \$R8"))?>"
677
+    DetailPrint "<?php WindowsCommon::echo_nsi(_("found profile \$R8"))?>"
678 678
     Push 0
679 679
   ${Else}
680 680
     !insertmacro debug_cat 1 "profile $R8 not found"
@@ -769,7 +769,7 @@  discard block
 block discarded – undo
769 769
     ${If} $Symantec_installed  != 0
770 770
      !insertmacro debug_cat 3 "Symantec problem"
771 771
      IfSilent +2
772
-     MessageBox MB_OK|MB_ICONEXCLAMATION "<?php printf(WindowsCommon::sprint_nsi(_("Please READ this message it is IMPORTANT.$\\r$\\nInstallation problems may be due to the fact that Symantec Endpoint Protection is installed on your machine.$\\r$\\nWhile this is a well-known bug of the Symantec product, about which the installer can not do anything, there is a workaround.$\\r$\\nWhen you close this window the installer will exit and an explorer window will be started (it could appear underneath already opened windows). In this window you should see a script named inst_cat. Start it by double-clicking, It will install the profiles. You will need to login to %s with your username and password.")),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']) ?>"
772
+     MessageBox MB_OK|MB_ICONEXCLAMATION "<?php printf(WindowsCommon::sprint_nsi(_("Please READ this message it is IMPORTANT.$\\r$\\nInstallation problems may be due to the fact that Symantec Endpoint Protection is installed on your machine.$\\r$\\nWhile this is a well-known bug of the Symantec product, about which the installer can not do anything, there is a workaround.$\\r$\\nWhen you close this window the installer will exit and an explorer window will be started (it could appear underneath already opened windows). In this window you should see a script named inst_cat. Start it by double-clicking, It will install the profiles. You will need to login to %s with your username and password.")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']) ?>"
773 773
     Exec '"explorer" /select,"$EXEDIR\inst_cat.cmd"'
774 774
     Quit
775 775
 
@@ -1002,7 +1002,7 @@  discard block
 block discarded – undo
1002 1002
 Function PFXCertificateSelect
1003 1003
   !ifndef SILVERBULLET
1004 1004
 ;TRANSLATION
1005
-!insertmacro MUI_HEADER_TEXT "<?php printf(WindowsCommon::sprint_nsi(_("%s installer for")),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?> " "<?php WindowsCommon::echo_nsi(_("Install personal certificate"))?>"
1005
+!insertmacro MUI_HEADER_TEXT "<?php printf(WindowsCommon::sprint_nsi(_("%s installer for")), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])?> " "<?php WindowsCommon::echo_nsi(_("Install personal certificate"))?>"
1006 1006
 ;TRANSLATION
1007 1007
     IfSilent +2
1008 1008
   MessageBox MB_OK "<?php WindowsCommon::echo_nsi(_("Preparing to install personal certificate."))?>$\r$\n<?php WindowsCommon::echo_nsi(_("Click OK to continue"))?> "
@@ -1018,7 +1018,7 @@  discard block
 block discarded – undo
1018 1018
         $certPasswordLength = strlen($certPasswordLabel);
1019 1019
         $certUsernameLabel = WindowsCommon::sprint_nsi(_("Username:"));
1020 1020
         $certUsernameLength = strlen($certUsernameLabel);
1021
-        $labelLength = max($certPasswordLength,$certUsernameLength);
1021
+        $labelLength = max($certPasswordLength, $certUsernameLength);
1022 1022
   ?>
1023 1023
   ${NSD_CreateLabel} 0 0 100% 32u "<?php WindowsCommon::echo_nsi(_("Selected file: \$Cert_file"))?>"
1024 1024
   !else
@@ -1035,11 +1035,11 @@  discard block
 block discarded – undo
1035 1035
   !insertmacro debug_cat 3 "Vista level (Vista without Service pack): $VistaNoSP";
1036 1036
   ${If} $VistaNoSP == 0
1037 1037
     !ifdef PFX_USERNAME
1038
-       !define LABEL_LENGTH "<?php echo($labelLength*3.5)?>u"
1039
-       !define TEXT_START "<?php echo($labelLength*3.5 +5)?>u"
1038
+       !define LABEL_LENGTH "<?php echo($labelLength * 3.5)?>u"
1039
+       !define TEXT_START "<?php echo($labelLength * 3.5 + 5)?>u"
1040 1040
     !else
1041
-       !define LABEL_LENGTH "<?php echo($certPasswordLength*3.5)?>u"
1042
-       !define TEXT_START "<?php echo($certPasswordLength*3.5 +5)?>u"
1041
+       !define LABEL_LENGTH "<?php echo($certPasswordLength * 3.5)?>u"
1042
+       !define TEXT_START "<?php echo($certPasswordLength * 3.5 + 5)?>u"
1043 1043
     !endif
1044 1044
     ${NSD_CreateLabel} 0 35u ${LABEL_LENGTH} 12u "<?php echo $certPasswordLabel?>"
1045 1045
     ${NSD_CreatePassword} ${TEXT_START} 34.5u 120u 12u ""
@@ -1226,7 +1226,7 @@  discard block
 block discarded – undo
1226 1226
 Section "-start"
1227 1227
 SectionIn RO
1228 1228
 
1229
-!insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi( _("Installation"))?>" "<?php WindowsCommon::echo_nsi( _("Checking for existing wireless profiles"))?>"
1229
+!insertmacro MUI_HEADER_TEXT "<?php WindowsCommon::echo_nsi(_("Installation"))?>" "<?php WindowsCommon::echo_nsi(_("Checking for existing wireless profiles"))?>"
1230 1230
 !ifndef PWD
1231 1231
 !include "certs.nsh"
1232 1232
 !endif
Please login to merge, or discard this patch.
web/skins/classic/accountstatus/accountstatus.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     <div id="heading">
51 51
         <?php
52 52
         print '<img src="' . $skinObject->findResourceUrl("IMAGES", "consortium_logo.png") . '" alt="Consortium Logo" style="float:right; padding-right:20px; padding-top:20px"/>';
53
-        print '<div id="motd">' . ( isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : '&nbsp' ) . '</div>';
53
+        print '<div id="motd">' . (isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : '&nbsp') . '</div>';
54 54
         print '<h1 style="padding-bottom:0px; height:1em;">' . sprintf(_("Welcome to %s"), CONFIG['APPEARANCE']['productname']) . '</h1>
55 55
 <h2 style="padding-bottom:0px; height:0px; vertical-align:bottom;">' . CONFIG['APPEARANCE']['productname_long'] . '</h2>';
56 56
         echo '<table id="lang_select"><tr><td>';
@@ -139,10 +139,10 @@  discard block
 block discarded – undo
139 139
                                 $categoryText .= "</h2></td></tr>";
140 140
 
141 141
 
142
-                                $categoryText .= "<tr style='color:$color;'><th>" . _("Pseudonym") . "</th><th>" . _("Device Type") . "</th><th>" . _("Serial Number") . "</th><th>" . _("Issue Date") . "</th><th>" . _("Expiry Date") . "</th>" . ( $category == \core\ProfileSilverbullet::SB_CERTSTATUS_VALID ? $revokeText : "") . "</tr>";
142
+                                $categoryText .= "<tr style='color:$color;'><th>" . _("Pseudonym") . "</th><th>" . _("Device Type") . "</th><th>" . _("Serial Number") . "</th><th>" . _("Issue Date") . "</th><th>" . _("Expiry Date") . "</th>" . ($category == \core\ProfileSilverbullet::SB_CERTSTATUS_VALID ? $revokeText : "") . "</tr>";
143 143
                                 foreach ($allcerts as $oneCredential) {
144 144
                                     if ($oneCredential['status'] == $category) {
145
-                                        ${$categoryCountVar} ++;
145
+                                        ${$categoryCountVar}++;
146 146
                                         $categoryText .= "<tr style='color:$color;'>";
147 147
                                         $categoryText .= "<td>" . $oneCredential['name'] . "</td>";
148 148
                                         $categoryText .= "<td>" . $oneCredential['device'] . "</td>";
Please login to merge, or discard this patch.
web/skins/classic/user/js/cat_js.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -11,14 +11,14 @@  discard block
 block discarded – undo
11 11
 <?php 
12 12
 $cat = new core\CAT();
13 13
 function escaped_echo($s) {
14
-   echo preg_replace('/"/','&quot;',$s);
14
+    echo preg_replace('/"/','&quot;',$s);
15 15
 }
16 16
 
17 17
 $langObject = new \core\common\Language();
18 18
 $langObject->setTextDomain('web_user');
19 19
 $idpId = filter_input(INPUT_GET, 'idp', FILTER_VALIDATE_INT) ?? filter_input(INPUT_POST, 'idp', FILTER_VALIDATE_INT);
20 20
 $profileId = filter_input(INPUT_GET, 'profile', FILTER_VALIDATE_INT) ?? filter_input(INPUT_POST, 'profile', FILTER_VALIDATE_INT);
21
- ?>
21
+    ?>
22 22
 var n;
23 23
 var profile;
24 24
 var generateTimer;
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
 }
354 354
 
355 355
 <?php if($idpId) { 
356
-      print "front_page = 0;\n";
356
+        print "front_page = 0;\n";
357 357
 } ?>
358 358
 
359 359
 function showTOU(){
@@ -487,7 +487,7 @@  discard block
 block discarded – undo
487 487
 if ($profileId) {
488 488
     print "listProfiles($idpId,$profileId);";
489 489
 }
490
- ?>
490
+    ?>
491 491
 
492 492
 $(".signin").click(function(event){
493 493
      pressedButton = $(this);
@@ -548,12 +548,12 @@  discard block
 block discarded – undo
548 548
         });
549 549
 DiscoJuice.Constants.Countries = {
550 550
 <?php 
551
-  $C = $Gui->printCountryList(1);
552
-     $ret = '';
553
-   foreach ($C as $key => $val) {
551
+    $C = $Gui->printCountryList(1);
552
+        $ret = '';
553
+    foreach ($C as $key => $val) {
554 554
     $ret .= "'$key': \"$val\",";
555
-   }
556
-   echo substr($ret, 0, -1);
555
+    }
556
+    echo substr($ret, 0, -1);
557 557
 ?>
558 558
         };
559 559
 
Please login to merge, or discard this patch.
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 <?php 
12 12
 $cat = new core\CAT();
13 13
 function escaped_echo($s) {
14
-   echo preg_replace('/"/','&quot;',$s);
14
+   echo preg_replace('/"/', '&quot;', $s);
15 15
 }
16 16
 
17 17
 $langObject = new \core\common\Language();
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     result = j.status;
71 71
     if(! result) {
72 72
       alert("<?php escaped_echo(_("no matching data found"))?>");
73
-      document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']),'/').'/'?>';
73
+      document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/') . '/'?>';
74 74
     }
75 75
     j = j.data;
76 76
     n = j.length;
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     inst_name = j[0].idp_name;
79 79
     logo = j[0].logo;
80 80
     $("#inst_name").val(inst_name);
81
-    $("#inst_name_span").html("<?php escaped_echo(sprintf(_("Selected %s:"),$cat->nomenclature_inst))?> <strong>"+inst_name+"</strong>");
81
+    $("#inst_name_span").html("<?php escaped_echo(sprintf(_("Selected %s:"), $cat->nomenclature_inst))?> <strong>"+inst_name+"</strong>");
82 82
     $(".inst_name").text(inst_name);
83 83
     $("#user_page").show();
84 84
     $("#institution_name").show();
@@ -191,8 +191,8 @@  discard block
 block discarded – undo
191 191
        j1 = $.parseJSON(data);
192 192
        result = j1.status;
193 193
        if(! result) {
194
-            alert("<?php escaped_echo( _("no matching data found"))?>");
195
-            document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']),'/').'/'?>';
194
+            alert("<?php escaped_echo(_("no matching data found"))?>");
195
+            document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/') . '/'?>';
196 196
        }
197 197
        j = j1.data;
198 198
        if(j.description !== undefined && j.description) {
@@ -203,15 +203,15 @@  discard block
 block discarded – undo
203 203
          $("#profile_desc").text('');
204 204
        }
205 205
        if(j.local_url !== undefined && j.local_url) 
206
-         txt = txt+'<tr><td><?php escaped_echo(_("WWW:"));?></td><td><a href="'+j.local_url+'" target="_blank">'+j.local_url+'</a></td></tr>';
206
+         txt = txt+'<tr><td><?php escaped_echo(_("WWW:")); ?></td><td><a href="'+j.local_url+'" target="_blank">'+j.local_url+'</a></td></tr>';
207 207
        if(j.local_email !== undefined && j.local_email) 
208
-         txt = txt+'<tr><td><?php escaped_echo(_("email:"));?></td><td><a href=mailto:"'+j.local_email+'">'+j.local_email+'</a></td></tr>';
208
+         txt = txt+'<tr><td><?php escaped_echo(_("email:")); ?></td><td><a href=mailto:"'+j.local_email+'">'+j.local_email+'</a></td></tr>';
209 209
        if(j.local_phone !== undefined && j.local_phone) 
210
-         txt = txt+'<tr><td><?php escaped_echo(_("tel:"));?></td><td>'+j.local_phone+'</td></tr>';
210
+         txt = txt+'<tr><td><?php escaped_echo(_("tel:")); ?></td><td>'+j.local_phone+'</td></tr>';
211 211
        if(txt) 
212
-         txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems, then you can obtain direct assistance from your %s at:"),$cat->nomenclature_inst)); ?></th></tr>"+txt+'</table>';
212
+         txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems, then you can obtain direct assistance from your %s at:"), $cat->nomenclature_inst)); ?></th></tr>"+txt+'</table>';
213 213
         else 
214
-         txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems you should ask for help at your %s"),$cat->nomenclature_inst)); ?>.</th></tr></table>";
214
+         txt = "<table><tr><th colspan='2'><?php escaped_echo(sprintf(_("If you encounter problems you should ask for help at your %s"), $cat->nomenclature_inst)); ?>.</th></tr></table>";
215 215
       $("#user_info").html(txt);
216 216
       $("#user_info").show();
217 217
       if(j.silverbullet) {
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
           $("#g_"+v.id).addClass('alertButton');
230 230
           $("#cross_icon_"+v.id).show();
231 231
           $("#"+v.id).addClass('disabledDevice');
232
-          $("#download_button_header_"+v.id).html("<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"),$cat->nomenclature_inst))?>");
232
+          $("#download_button_header_"+v.id).html("<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"), $cat->nomenclature_inst))?>");
233 233
           $("#info_b_"+v.id+",#g_info_b_"+v.id).hide();
234 234
         } else  {
235 235
           if(v.status == -1)
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
           $("#"+v.id+",#g_"+v.id).addClass('additionalInfo');
242 242
           $("#"+v.id+",#g_"+v.id).click(function(event){
243 243
             i_div = $("#info_"+$(this).attr('id'));
244
-            t = "<?php escaped_echo(_("Your site administrator has specified that this device should be configured with resources located on a local page. When you click <b>Continue</b> this page will be opened in a new window/tab."))?>"+"<br><span class='redirect_link'><a href='"+v.redirect+"' target='_blank'><?php escaped_echo(_("Continue"));?></a></span>";
244
+            t = "<?php escaped_echo(_("Your site administrator has specified that this device should be configured with resources located on a local page. When you click <b>Continue</b> this page will be opened in a new window/tab."))?>"+"<br><span class='redirect_link'><a href='"+v.redirect+"' target='_blank'><?php escaped_echo(_("Continue")); ?></a></span>";
245 245
             i_div.html(t);
246 246
             $(".redirect_link").click(function(event) {
247 247
                i_div.hide();
@@ -249,13 +249,13 @@  discard block
 block discarded – undo
249 249
                
250 250
           });
251 251
         } else if(v.device_customtext != '0' || v.eap_customtext != '0' || v.message != '0' || v.status > 0) {
252
-          var continue_text = "<?php escaped_echo(_("Continue"));?>";
252
+          var continue_text = "<?php escaped_echo(_("Continue")); ?>";
253 253
           $("#"+v.id+",#g_"+v.id).addClass('additionalInfo');
254 254
           $("#"+v.id+",#g_"+v.id).click(function(event){
255 255
             i_div = $("#info_"+$(this).attr('id'));
256 256
             if(v.status > 0) {
257
-              t = "<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"),$cat->nomenclature_inst))?>";
258
-              continue_text = "<?php escaped_echo(_("Close"));?>";
257
+              t = "<?php escaped_echo(sprintf(_("This device cannot be configured with settings provided by your %s"), $cat->nomenclature_inst))?>";
258
+              continue_text = "<?php escaped_echo(_("Close")); ?>";
259 259
             } else {
260 260
             t = i_div.html();
261 261
             if(v.message != '0') {
@@ -312,7 +312,7 @@  discard block
 block discarded – undo
312 312
   }
313 313
 
314 314
   function infoCAT(k,title) {
315
-      $.post('<?php echo $Gui->skinObject->findResourceUrl("BASE", "user/cat_info.php");?>', {page: k, lang: lang}, function(data) {
315
+      $.post('<?php echo $Gui->skinObject->findResourceUrl("BASE", "user/cat_info.php"); ?>', {page: k, lang: lang}, function(data) {
316 316
     if(data.substring(0,8) == 'no_title') {
317 317
        data = data.substring(8,data.length);
318 318
     } else {
@@ -330,7 +330,7 @@  discard block
 block discarded – undo
330 330
    var x = getWindowHCenter() - 16;
331 331
    $("#loading_ico").css('left',x+'px');
332 332
    $("#loading_ico").show();
333
-   window.location.replace("<?php echo $Gui->skinObject->findResourceUrl("BASE","admin/overview_user.php");?>?lang="+lang);
333
+   window.location.replace("<?php echo $Gui->skinObject->findResourceUrl("BASE", "admin/overview_user.php"); ?>?lang="+lang);
334 334
 }
335 335
 
336 336
 /* Get horizontal center of the Browser Window */
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
     return(Math.round(windowWidth/2));
352 352
 }
353 353
 
354
-<?php if($idpId) { 
354
+<?php if ($idpId) { 
355 355
       print "front_page = 0;\n";
356 356
 } ?>
357 357
 
@@ -389,10 +389,10 @@  discard block
 block discarded – undo
389 389
     $("#download_info a").attr('href',download_link);
390 390
     $('#download_info').show();
391 391
     if( generateTimer > 0 ) {
392
-       setTimeout("document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']),'/')?>'+'/'+download_link",generateTimer);
392
+       setTimeout("document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/')?>'+'/'+download_link",generateTimer);
393 393
     }
394 394
     else {
395
-       document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']),'/')?>'+'/'+download_link;
395
+       document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/')?>'+'/'+download_link;
396 396
     }
397 397
   }
398 398
 }
@@ -510,13 +510,13 @@  discard block
 block discarded – undo
510 510
    "overlay":true,"cookie":true,"type":false,
511 511
    "country":true,"location":true,
512 512
    "title":"<?php escaped_echo($cat->nomenclature_inst) ?>",
513
-   "subtitle":"<?php escaped_echo(sprintf(_("Select your <strong>%s<\/strong>"),$cat->nomenclature_inst)) ?>",
514
-   "textHelp": "<?php escaped_echo(sprintf(_("Help, my %s is not on the list"),$cat->nomenclature_inst)) ?>",
515
-   "textHelpMore": "<?php escaped_echo(sprintf(_("This system relies on information supplied by local %s administrators. If your %s is not on the list, then nag them to add information to the %s database."),CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $cat->nomenclature_inst, CONFIG['APPEARANCE']['productname'])); ?>",
513
+   "subtitle":"<?php escaped_echo(sprintf(_("Select your <strong>%s<\/strong>"), $cat->nomenclature_inst)) ?>",
514
+   "textHelp": "<?php escaped_echo(sprintf(_("Help, my %s is not on the list"), $cat->nomenclature_inst)) ?>",
515
+   "textHelpMore": "<?php escaped_echo(sprintf(_("This system relies on information supplied by local %s administrators. If your %s is not on the list, then nag them to add information to the %s database."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'], $cat->nomenclature_inst, CONFIG['APPEARANCE']['productname'])); ?>",
516 516
    "textLocateMe": "<?php escaped_echo(_("Locate me more accurately using HTML5 Geo-Location")) ?>",
517
-   "textShowProviders": "<?php escaped_echo(sprintf(_("Show %ss in"),$cat->nomenclature_inst)) ?>",
517
+   "textShowProviders": "<?php escaped_echo(sprintf(_("Show %ss in"), $cat->nomenclature_inst)) ?>",
518 518
    "textAllCountries": "<?php escaped_echo(_("all countries")) ?>",
519
-   "textSearch" : "<?php escaped_echo(sprintf(_("or search for an %s, in example Univerity of Oslo"),$cat->nomenclature_inst)) ?>",
519
+   "textSearch" : "<?php escaped_echo(sprintf(_("or search for an %s, in example Univerity of Oslo"), $cat->nomenclature_inst)) ?>",
520 520
    "textShowAllCountries": "<?php escaped_echo(_("show all countries")) ?>",
521 521
    "textLimited1" : "<?php escaped_echo(_("Results limited to"))?>",
522 522
    "textLimited2" : "<?php escaped_echo(_("entries - show more"))?>",
Please login to merge, or discard this patch.
web/skins/eduroam2016/Divs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             <img id='logo_img' src='" . $this->Gui->skinObject->findResourceUrl("IMAGES", "consortium_logo.png") . "' alt='Consortium Logo'/>
40 40
             <span>Configuration Assistant Tool</span>
41 41
         </div>
42
-        <div id='motd'>" . (isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : '&nbsp' ) . "</div>
42
+        <div id='motd'>" . (isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : '&nbsp') . "</div>
43 43
         <img id='hamburger' src='" . $this->Gui->skinObject->findResourceUrl("IMAGES", "icons/menu.png") . "' alt='Menu'/>
44 44
         <div id='menu_top'>
45 45
 ";
Please login to merge, or discard this patch.
web/skins/eduroam2016/user/cat_info.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 $Gui->langObject->setTextDomain("web_user");
29 29
 
30 30
 $page = $_REQUEST['page'];
31
-$subpage= $_REQUEST['subpage'];
31
+$subpage = $_REQUEST['subpage'];
32 32
 switch ($page) {
33 33
     case 'about' :
34 34
         require_once(dirname(dirname(dirname(dirname(__FILE__)))) . "/user/about_cat.inc.php");
Please login to merge, or discard this patch.
web/skins/eduroam2016/Menu.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,9 +62,9 @@  discard block
 block discarded – undo
62 62
     }
63 63
     public function printMenu($menu = NULL, $id=NULL) {
64 64
         $menu = $menu ?? $this->menu;
65
-     if(count($menu) == 0) {
66
-          return;
67
-     }
65
+        if(count($menu) == 0) {
66
+            return;
67
+        }
68 68
         $out = "\n<ul>\n";
69 69
         foreach ($menu as $menuItem) {
70 70
             $itemVisibility = $menuItem['visibility'] ?? 'all';
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                 $out .= $this->printMenuItem($menuItem['text'], $link, $class);
81 81
                 $out .= $this->printMenu($submenu,$iD);
82 82
                 $out .= "</li>\n";
83
-             }
83
+                }
84 84
         }
85 85
         $out .= '</ul>';
86 86
         return($out);
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -20,9 +20,9 @@  discard block
 block discarded – undo
20 20
         $langsArray = [];
21 21
         foreach (CONFIG['LANGUAGES'] as $lang => $value) {
22 22
             if ($lang == $selectedLang) {
23
-                $langsArray[] = ['text'=>$value['display'], 'link'=>'javascript:changeLang("'.$lang.'")', 'class'=>'selected-lang'];
23
+                $langsArray[] = ['text'=>$value['display'], 'link'=>'javascript:changeLang("' . $lang . '")', 'class'=>'selected-lang'];
24 24
             } else {
25
-                $langsArray[] = ['text'=>$value['display'], 'link'=>'javascript:changeLang("'.$lang.'")'];
25
+                $langsArray[] = ['text'=>$value['display'], 'link'=>'javascript:changeLang("' . $lang . '")'];
26 26
             }
27 27
         }
28 28
         $this->menu = [['id' => 'start',
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
                         'link' => CONFIG_CONFASSISTANT['CONSORTIUM']['homepage']],
37 37
                 ]],
38 38
             ['id' => 'lang',
39
-                'text' => _("Language"), 'submenu' => $langsArray,],
39
+                'text' => _("Language"), 'submenu' => $langsArray, ],
40 40
             ['id' => 'help',
41 41
                 'text' => _("Help"), 'submenu' => [
42 42
                     ['text' => _("My institution is not listed"), 'catInfo' => ['idp_not_listed', _("FAQ")], 'visibility' => 'index'],
@@ -60,9 +60,9 @@  discard block
 block discarded – undo
60 60
         ];
61 61
         $this->visibility = $visibility;
62 62
     }
63
-    public function printMenu($menu = NULL, $id=NULL) {
63
+    public function printMenu($menu = NULL, $id = NULL) {
64 64
         $menu = $menu ?? $this->menu;
65
-     if(count($menu) == 0) {
65
+     if (count($menu) == 0) {
66 66
           return;
67 67
      }
68 68
         $out = "\n<ul>\n";
@@ -72,13 +72,13 @@  discard block
 block discarded – undo
72 72
                 $iD = $menuItem['id'] ?? $id;
73 73
                 $catInfo = NULL;
74 74
                 if (!empty($menuItem['catInfo'])) {
75
-                    $catInfo = 'javascript:infoCAT("'.$iD.'", "'.$menuItem['catInfo'][0].'","'.$menuItem['catInfo'][1].'")';
75
+                    $catInfo = 'javascript:infoCAT("' . $iD . '", "' . $menuItem['catInfo'][0] . '","' . $menuItem['catInfo'][1] . '")';
76 76
                 }
77 77
                 $link = $catInfo ?? $menuItem['link'] ?? '';
78
-                $class = empty($menuItem['class']) ? '' : ' class="'.$menuItem['class'].'"';
79
-                $submenu  = $menuItem['submenu'] ?? [];
78
+                $class = empty($menuItem['class']) ? '' : ' class="' . $menuItem['class'] . '"';
79
+                $submenu = $menuItem['submenu'] ?? [];
80 80
                 $out .= $this->printMenuItem($menuItem['text'], $link, $class);
81
-                $out .= $this->printMenu($submenu,$iD);
81
+                $out .= $this->printMenu($submenu, $iD);
82 82
                 $out .= "</li>\n";
83 83
              }
84 84
         }
@@ -86,8 +86,8 @@  discard block
 block discarded – undo
86 86
         return($out);
87 87
     }
88 88
 
89
-    private function printMenuItem($itemText,$itemLink = '',$itemClass = '') {
90
-        return "<li><a href='" . $itemLink . "'".$itemClass.'>' . $itemText . "</a>";
89
+    private function printMenuItem($itemText, $itemLink = '', $itemClass = '') {
90
+        return "<li><a href='" . $itemLink . "'" . $itemClass . '>' . $itemText . "</a>";
91 91
     }
92 92
     
93 93
 
Please login to merge, or discard this patch.
web/skins/eduroam2016/accountstatus/accountstatus.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             <div id="user_info"></div> <!-- this will be filled with the profile contact information -->
50 50
             <div id="sb_info">
51 51
                 <?php 
52
-             switch ($statusInfo['errorcode']) {
52
+                switch ($statusInfo['errorcode']) {
53 53
                     case "GENERATOR_CONSUMED":
54 54
                         echo $uiElements->boxError(_("You attempted to download an installer that was already downloaded before. Please request a new token from your administrator instead."), _("Attempt to re-use download link"), TRUE) . "<p>";
55 55
                         break;
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
                         }
148 148
 
149 149
                         echo "<div id='sb_download_message'><p>".sprintf(_("You can now download a personalised  %s installation program."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']);
150
- //                       echo sprintf(_("The installation program is <span class='emph'>strictly personal</span>, to be used <span class='emph'>only on this device (%s)</span>, and it is <span class='emph'>not permitted to share</span> this information with anyone."), $statusInfo['OS']['display']);
150
+    //                       echo sprintf(_("The installation program is <span class='emph'>strictly personal</span>, to be used <span class='emph'>only on this device (%s)</span>, and it is <span class='emph'>not permitted to share</span> this information with anyone."), $statusInfo['OS']['display']);
151 151
                         echo sprintf(_("The installation program is <span class='emph'>strictly personal</span>, to be used <span class='emph'>only on this device (%s)</span>, and it is <span class='emph'>not permitted to share</span> this information with anyone."), $statusInfo['OS']['display']);
152 152
                         echo "<p style='color:red;'>" . _("When the system detects abuse such as sharing login data with others, all access rights for you will be revoked and you may be sanctioned by your local eduroam administrator.") . "</p>";
153 153
                         echo "<p>" . _("During the installation process, you will be asked for the following import PIN. This only happens once during the installation. You do not have to write down this PIN.") . "</p></div>";
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -3,9 +3,9 @@  discard block
 block discarded – undo
3 3
 $Gui->defaultPagePrelude();
4 4
 ?>
5 5
 <!-- JQuery -->
6
-<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery.js");?>"></script>
7
-<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-migrate-1.2.1.js");?>"></script>
8
-<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL","jquery/jquery-ui.js");?>"></script>
6
+<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery.js"); ?>"></script>
7
+<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-migrate-1.2.1.js"); ?>"></script>
8
+<script type="text/javascript" src="<?php echo $Gui->skinObject->findResourceUrl("EXTERNAL", "jquery/jquery-ui.js"); ?>"></script>
9 9
 <!-- JQuery -->
10 10
 <script type="text/javascript">
11 11
     var recognisedOS = '';
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 var lang = "<?php echo($Gui->langObject->getLang()) ?>";
29 29
 </script>
30 30
 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no">
31
-<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS","cat-user.css");?>" />
31
+<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS", "cat-user.css"); ?>" />
32 32
 
33 33
 </head>
34 34
 <body>
@@ -38,15 +38,15 @@  discard block
 block discarded – undo
38 38
     <?php echo $divs->div_heading($visibility); ?>
39 39
     <div id="info_overlay"> <!-- device info -->
40 40
         <div id="info_window"></div>
41
-        <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/>
41
+        <img id="info_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/>
42 42
     </div>
43 43
     <div id="main_menu_info" style="display:none"> <!-- stuff triggered form main menu -->
44
-          <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES","icons/button_cancel.png")?>" ALT="Close"/>
44
+          <img id="main_menu_close" class="close_button" src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/button_cancel.png")?>" ALT="Close"/>
45 45
           <div id="main_menu_content"></div>
46 46
     </div>
47 47
     <div id="main_body">
48 48
         <div id="user_page">
49
-            <?php  echo $divs->div_institution(FALSE);?>
49
+            <?php  echo $divs->div_institution(FALSE); ?>
50 50
             <div id="user_info"></div> <!-- this will be filled with the profile contact information -->
51 51
             <div id="sb_info">
52 52
                 <?php 
@@ -89,18 +89,18 @@  discard block
 block discarded – undo
89 89
                             echo "<h3>" . sprintf(_("Your invitation token is valid for %d more device activations (%d have already been used)."), $statusInfo['tokenstatus']['activations_remaining'], $statusInfo['tokenstatus']['activations_total'] - $statusInfo['tokenstatus']['activations_remaining']) . "</h3>";
90 90
                         }
91 91
                         if (!$statusInfo["OS"]) {
92
-                            echo "<p>"._("Unfortunately, we are unable to determine your device's operating system. If you have made modifications on your device which prevent it from being recognised (e.g. custom 'User Agent' settings), please undo such modifications. You can come back to this page again; the invitation link has not been used up yet.") . "</p>";
92
+                            echo "<p>" . _("Unfortunately, we are unable to determine your device's operating system. If you have made modifications on your device which prevent it from being recognised (e.g. custom 'User Agent' settings), please undo such modifications. You can come back to this page again; the invitation link has not been used up yet.") . "</p>";
93 93
                             break;
94 94
                         }
95 95
 
96 96
                         $dev = new \core\DeviceFactory($statusInfo['OS']['device']);
97 97
                         $dev->device->calculatePreferredEapType([new \core\common\EAP(\core\common\EAP::EAPTYPE_SILVERBULLET)]);
98 98
                         if ($dev->device->selectedEap == []) {
99
-                            echo "<p>".sprintf(_("Unfortunately, the operating system your device uses (%s) is currently not supported for hosted end-user accounts. You can visit this page with a supported operating system later; the invitation link has not been used up yet."), $statusInfo['OS']['display']) . "</p>";
99
+                            echo "<p>" . sprintf(_("Unfortunately, the operating system your device uses (%s) is currently not supported for hosted end-user accounts. You can visit this page with a supported operating system later; the invitation link has not been used up yet."), $statusInfo['OS']['display']) . "</p>";
100 100
                             break;
101 101
                         }
102 102
 
103
-                        echo "<div id='sb_download_message'><p>".sprintf(_("You can now download a personalised  %s installation program."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']);
103
+                        echo "<div id='sb_download_message'><p>" . sprintf(_("You can now download a personalised  %s installation program."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']);
104 104
  //                       echo sprintf(_("The installation program is <span class='emph'>strictly personal</span>, to be used <span class='emph'>only on this device (%s)</span>, and it is <span class='emph'>not permitted to share</span> this information with anyone."), $statusInfo['OS']['display']);
105 105
                         echo sprintf(_("The installation program is <span class='emph'>strictly personal</span>, to be used <span class='emph'>only on this device (%s)</span>, and it is <span class='emph'>not permitted to share</span> this information with anyone."), $statusInfo['OS']['display']);
106 106
                         echo "<p style='color:red;'>" . _("When the system detects abuse such as sharing login data with others, all access rights for you will be revoked and you may be sanctioned by your local eduroam administrator.") . "</p>";
@@ -152,9 +152,9 @@  discard block
 block discarded – undo
152 152
             $supportInfo .= '<tr><td>' . ("tel:") . '</td><td><a href="' . $attributes['local_phone'] . '" target="_blank">' . $attributes['local_phone'] . '</a></td></tr>';
153 153
         }
154 154
         if ($supportInfo != '') {
155
-            $supportInfo = "<table><tr><th colspan='2'>" . sprintf(_("If you encounter problems, then you can obtain direct assistance from your %s at:"),$cat->nomenclature_inst) . "</th></tr>$supportInfo</table>";
155
+            $supportInfo = "<table><tr><th colspan='2'>" . sprintf(_("If you encounter problems, then you can obtain direct assistance from your %s at:"), $cat->nomenclature_inst) . "</th></tr>$supportInfo</table>";
156 156
         } else {
157
-            $supportInfo = "<table><tr><th colspan='2'>" . sprintf(_("If you encounter problems you should ask for help at your %s"),$cat->nomenclature_inst) . "</th></tr></table>";
157
+            $supportInfo = "<table><tr><th colspan='2'>" . sprintf(_("If you encounter problems you should ask for help at your %s"), $cat->nomenclature_inst) . "</th></tr></table>";
158 158
         }
159 159
 ?>
160 160
     <script>
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     $("#inst_name").val(idpName);
166 166
     $("#inst_name_span").html(idpName);
167 167
     $(".inst_name").text(idpName);
168
-    $("#inst_extra_text").html("<?php escaped_echo(sprintf(_("Your personal %s account status page"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']));?>");
168
+    $("#inst_extra_text").html("<?php escaped_echo(sprintf(_("Your personal %s account status page"), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name'])); ?>");
169 169
         if(logo) {
170 170
     $("#idp_logo").attr("src","<?php echo $skinObject->findResourceUrl("BASE", "user/API.php"); ?>?action=sendLogo&api_version=2&idp="+idpId);
171 171
     $("#idp_logo").show();
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
         
181 181
         $("#user_button_sb").click(function(event){
182 182
             event.preventDefault();
183
-            $("#cat_form").attr('action','<?php echo $Gui->skinObject->findResourceUrl("BASE","user/sb_download.php");?>');
183
+            $("#cat_form").attr('action','<?php echo $Gui->skinObject->findResourceUrl("BASE", "user/sb_download.php"); ?>');
184 184
             $("#cat_form").submit();
185 185
         });
186 186
         
@@ -193,10 +193,10 @@  discard block
 block discarded – undo
193 193
                 var allArray = new Array();
194 194
                 var statusCount = new Array();
195 195
                 
196
-                allArray[<?php echo \core\ProfileSilverbullet::SB_CERTSTATUS_VALID;?>] = {color: "#000000", categoryText: "<?php escaped_echo(_("Current login tokens")) ?>", rows: validCerts};
197
-                allArray[<?php echo \core\ProfileSilverbullet::SB_CERTSTATUS_EXPIRED;?>] = {color: "#999999", categoryText: "<?php escaped_echo(_("Previous login tokens")) ?>", rows: expiredCerts};
198
-                allArray[<?php echo \core\ProfileSilverbullet::SB_CERTSTATUS_REVOKED;?>] = {color: "#ff0000", categoryText: "<?php escaped_echo(_("Revoked login tokens")) ?>", rows: revokedCerts};
199
-                var headerLine = "<tr><th><?php escaped_echo(_("Pseudonym"));?></th><th><?php escaped_echo(_("Device Type"));?></th><th><?php escaped_echo(_("Serial Number"));?></th><th><?php escaped_echo(_("Issue Date"));?></th><th><?php escaped_echo(_("Expiry Date"));?></th></tr>";
196
+                allArray[<?php echo \core\ProfileSilverbullet::SB_CERTSTATUS_VALID; ?>] = {color: "#000000", categoryText: "<?php escaped_echo(_("Current login tokens")) ?>", rows: validCerts};
197
+                allArray[<?php echo \core\ProfileSilverbullet::SB_CERTSTATUS_EXPIRED; ?>] = {color: "#999999", categoryText: "<?php escaped_echo(_("Previous login tokens")) ?>", rows: expiredCerts};
198
+                allArray[<?php echo \core\ProfileSilverbullet::SB_CERTSTATUS_REVOKED; ?>] = {color: "#ff0000", categoryText: "<?php escaped_echo(_("Revoked login tokens")) ?>", rows: revokedCerts};
199
+                var headerLine = "<tr><th><?php escaped_echo(_("Pseudonym")); ?></th><th><?php escaped_echo(_("Device Type")); ?></th><th><?php escaped_echo(_("Serial Number")); ?></th><th><?php escaped_echo(_("Issue Date")); ?></th><th><?php escaped_echo(_("Expiry Date")); ?></th></tr>";
200 200
                 $.each(allArray, function(index, value) {
201 201
                     if(value !== undefined) {
202 202
                         value.rows.push('<tr style="color:' + value.color + ';"><th class="th1" colspan="5">' + value.categoryText + '</th></tr>');
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
                    if (value !== undefined && value.rows.length > 2) {
218 218
                         $.each(value.rows, function(i,line){
219 219
                             if (i > 1) {
220
-                                if (index === <?php echo \core\ProfileSilverbullet::SB_CERTSTATUS_VALID;?>)
220
+                                if (index === <?php echo \core\ProfileSilverbullet::SB_CERTSTATUS_VALID; ?>)
221 221
                                     line = line + '<td class="revoke"><a href="" TITLE="revoke certificate">revoke</a></td></tr>';
222 222
                                 else
223 223
                                     line = line + '</tr>';
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
 
236 236
         $("#cert_details").on("click", "td.revoke>a", function(event) {
237 237
             event.preventDefault();
238
-            if (confirm("<?php escaped_echo(_("really revoke this certificate?"));?>"))
238
+            if (confirm("<?php escaped_echo(_("really revoke this certificate?")); ?>"))
239 239
                 alert("deleting - not yet implemented");
240 240
         })
241 241
         loadIdpData();
Please login to merge, or discard this patch.
web/diag/action_realmcheck.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
           <head lang='" . $ourlocale . "'>
25 25
           <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>";
26 26
     // diag area needs its own CSS at some point, but use the user area one for now
27
-    $cssUrl = $gui->skinObject->findResourceUrl("CSS","cat.css.php");
27
+    $cssUrl = $gui->skinObject->findResourceUrl("CSS", "cat.css.php");
28 28
     echo "<link rel='stylesheet' type='text/css' href='$cssUrl' />";
29 29
     echo "<title>" . htmlspecialchars(_("Sanity check for dynamic discovery of realms")) . "</title>";
30 30
 
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
         // checking our own stuff. Enable thorough checks
48 48
         $check_thorough = TRUE;
49 49
         $check_realm = $checkrealm[0]['value'];
50
-        $testsuite = new \core\diag\RADIUSTests($check_realm, $my_profile->getRealmCheckOuterUsername(), $my_profile->getEapMethodsinOrderOfPreference(1), $my_profile->getCollapsedAttributes()['eap:server_name'] , $my_profile->getCollapsedAttributes()["eap:ca_file"]);
50
+        $testsuite = new \core\diag\RADIUSTests($check_realm, $my_profile->getRealmCheckOuterUsername(), $my_profile->getEapMethodsinOrderOfPreference(1), $my_profile->getCollapsedAttributes()['eap:server_name'], $my_profile->getCollapsedAttributes()["eap:ca_file"]);
51 51
         $rfc7585suite = new \core\diag\RFC7585Tests($check_realm);
52 52
     } else {
53 53
         $error_message = _("You asked for a realm check, but we don't know the realm for this profile!") . "</p>";
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         }
66 66
     }
67 67
     if ($check_realm) {
68
-        $testsuite = new \core\diag\RADIUSTests($check_realm, "@".$check_realm);
68
+        $testsuite = new \core\diag\RADIUSTests($check_realm, "@" . $check_realm);
69 69
         $rfc7585suite = new \core\diag\RFC7585Tests($check_realm);
70 70
     } else {
71 71
         $error_message = _("No valid realm name given, cannot execute any checks!");
@@ -751,13 +751,13 @@  discard block
 block discarded – undo
751 751
         }
752 752
         
753 753
         if (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_RADIUS'] == "LOCAL") {
754
-            $returnUrl = "../admin/overview_idp.php?inst_id=".$my_inst->identifier;
754
+            $returnUrl = "../admin/overview_idp.php?inst_id=" . $my_inst->identifier;
755 755
         } else {
756
-            $returnUrl = CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_RADIUS']."/admin/overview_idp.php?inst_id=".$my_inst->identifier;
756
+            $returnUrl = CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_RADIUS'] . "/admin/overview_idp.php?inst_id=" . $my_inst->identifier;
757 757
         }
758 758
         ?>
759
-        <form method='post' action='<?php echo $returnUrl;?>' accept-charset='UTF-8'>
760
-            <button type='submit' name='submitbutton' value='<?php echo web\lib\common\FormElements::BUTTON_CLOSE; ?>'><?php echo sprintf(_("Return to %s administrator area"),$gui->nomenclature_inst); ?></button>
759
+        <form method='post' action='<?php echo $returnUrl; ?>' accept-charset='UTF-8'>
760
+            <button type='submit' name='submitbutton' value='<?php echo web\lib\common\FormElements::BUTTON_CLOSE; ?>'><?php echo sprintf(_("Return to %s administrator area"), $gui->nomenclature_inst); ?></button>
761 761
         </form>
762 762
         <script>
763 763
 
Please login to merge, or discard this patch.