Passed
Push — master ( 25bb9e...ffc196 )
by Tomasz
03:13
created
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.
web/admin/112365365321.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 ini_set('display_errors', '0');
30 30
 require_once(dirname(dirname(__DIR__)) . '/config/_config.php');
31 31
 
32
-if (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_SILVERBULLET'] == "LOCAL" || CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_RADIUS'] == "LOCAL" ) {
32
+if (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_SILVERBULLET'] == "LOCAL" || CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_RADIUS'] == "LOCAL") {
33 33
     $Tests[] = 'makensis';
34 34
     $Tests[] = 'makensis=>NSISmodules';
35 35
     $Tests[] = 'makensis=>NSIS_GetVersion';
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
                     <th>Device</th>
179 179
                     <th>Admin Downloads</th>
180 180
                     <th>User Downloads (classic)</th>
181
-                    <th>User Downloads (<?php echo \core\ProfileSilverbullet::PRODUCTNAME;?>)</th>
181
+                    <th>User Downloads (<?php echo \core\ProfileSilverbullet::PRODUCTNAME; ?>)</th>
182 182
                     <th>User Downloads (total)</th>
183 183
                 </tr>
184 184
                 <?php
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
                     echo "<tr>";
190 190
                     $admin_query = $dbHandle->exec("SELECT SUM(downloads_admin) AS admin, SUM(downloads_user) AS user, SUM(downloads_silverbullet) as silverbullet FROM downloads WHERE device_id = '$index'");
191 191
                     while ($a = mysqli_fetch_object($admin_query)) {
192
-                        echo "<td>" . $device_array['display'] . "</td><td>" . $a->admin . "</td><td>" . $a->user . "</td><td>" . $a->silverbullet . "</td><td>" . sprintf("%s",$a->user + $a->silverbullet) . "</td>";
192
+                        echo "<td>" . $device_array['display'] . "</td><td>" . $a->admin . "</td><td>" . $a->user . "</td><td>" . $a->silverbullet . "</td><td>" . sprintf("%s", $a->user + $a->silverbullet) . "</td>";
193 193
                         $gross_admin = $gross_admin + $a->admin;
194 194
                         $gross_user = $gross_user + $a->user;
195 195
                         $gross_silverbullet = $gross_silverbullet + $a->silverbullet;
Please login to merge, or discard this patch.
web/admin/edit_idp.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             sprintf(_("In this section, you define on which media %s should be configured on user devices."), CONFIG_CONFASSISTANT['CONSORTIUM']['display_name']) . "</p>
138 138
           <ul>";
139 139
             echo "<li>";
140
-            echo "<strong>" . ( count(CONFIG_CONFASSISTANT['CONSORTIUM']['ssid']) > 0 ? _("Additional SSIDs:") : _("SSIDs:")) . " </strong>";
140
+            echo "<strong>" . (count(CONFIG_CONFASSISTANT['CONSORTIUM']['ssid']) > 0 ? _("Additional SSIDs:") : _("SSIDs:")) . " </strong>";
141 141
             if (count(CONFIG_CONFASSISTANT['CONSORTIUM']['ssid']) > 0) {
142 142
                 $ssidlist = "";
143 143
                 foreach (CONFIG_CONFASSISTANT['CONSORTIUM']['ssid'] as $ssid) {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
             echo "</li>";
157 157
 
158 158
             echo "<li>";
159
-            echo "<strong>" . ( count(CONFIG_CONFASSISTANT['CONSORTIUM']['ssid']) > 0 ? _("Additional Hotspot 2.0 / Passpoint Consortia:") : _("Hotspot 2.0 / Passpoint Consortia:")) . " </strong>";
159
+            echo "<strong>" . (count(CONFIG_CONFASSISTANT['CONSORTIUM']['ssid']) > 0 ? _("Additional Hotspot 2.0 / Passpoint Consortia:") : _("Hotspot 2.0 / Passpoint Consortia:")) . " </strong>";
160 160
             if (count(CONFIG_CONFASSISTANT['CONSORTIUM']['interworking-consortium-oi']) > 0) {
161 161
                 $consortiumlist = "";
162 162
                 foreach (CONFIG_CONFASSISTANT['CONSORTIUM']['interworking-consortium-oi'] as $oi) {
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
         <legend><strong><?php echo _("Helpdesk Details for all users"); ?></strong></legend>
187 187
         <?php
188 188
         if ($wizardStyle) {
189
-            echo "<p>"._("This section can be used to upload specific Terms of Use for your users and to display details of how your users can reach your local helpdesk.")."</p>";
189
+            echo "<p>" . _("This section can be used to upload specific Terms of Use for your users and to display details of how your users can reach your local helpdesk.") . "</p>";
190 190
             
191 191
             if (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_RADIUS'] == "LOCAL") {
192 192
                 echo "<p>" .
@@ -194,10 +194,10 @@  discard block
 block discarded – undo
194 194
                 "<p>" .
195 195
                 _("If you enter a value here, it will be added to the installers for all your users, and will be displayed on the download page. If you operate separate helpdesks for different user groups (we call this 'profiles'), or operate no help desk at all, you can also leave any of these fields empty and optionally specify per-profile helpdesk information later in this wizard.") . "</p>";
196 196
                 if (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_SILVERBULLET'] == "LOCAL") {
197
-                echo "<p>" . sprintf(_("For %s deployments, providing at least a local e-mail contact is required."), core\ProfileSilverbullet::PRODUCTNAME) ." " . _("This is the contact point for your end users' level 1 support.") . "</p>";
197
+                echo "<p>" . sprintf(_("For %s deployments, providing at least a local e-mail contact is required."), core\ProfileSilverbullet::PRODUCTNAME) . " " . _("This is the contact point for your end users' level 1 support.") . "</p>";
198 198
                 }
199 199
             } elseif (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_SILVERBULLET'] == "LOCAL") {
200
-                echo "<p>". _("Providing at least a local support e-mail contact is required.")." "._("This is the contact point for your end users' level 1 support.")."</p>";
200
+                echo "<p>" . _("Providing at least a local support e-mail contact is required.") . " " . _("This is the contact point for your end users' level 1 support.") . "</p>";
201 201
             }
202 202
             
203 203
         }
Please login to merge, or discard this patch.
config/_config.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -94,7 +94,7 @@
 block discarded – undo
94 94
 
95 95
 /* load sub-configs if we are dealing with those in this installation */
96 96
 
97
-if (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_SILVERBULLET'] == 'LOCAL' || CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_RADIUS'] == 'LOCAL' ) {
97
+if (CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_SILVERBULLET'] == 'LOCAL' || CONFIG['FUNCTIONALITY_LOCATIONS']['CONFASSISTANT_RADIUS'] == 'LOCAL') {
98 98
     include(ROOT . "/config/config-confassistant.php");
99 99
 }
100 100
 
Please login to merge, or discard this patch.
web/admin/overview_idp.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         <div class='infobox' style='text-align:center;'>
57 57
             <h2><?php echo sprintf(_("QR Code for %s download area"), $uiElements->nomenclature_inst); ?></h2>
58 58
             <?php
59
-            $displayurl = ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . dirname(dirname($_SERVER['SCRIPT_NAME'])) . "?idp=" . $my_inst->identifier;
59
+            $displayurl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . dirname(dirname($_SERVER['SCRIPT_NAME'])) . "?idp=" . $my_inst->identifier;
60 60
             $uri = "data:image/png;base64," . base64_encode($uiElements->pngInjectConsortiumLogo(QRcode::png($displayurl, FALSE, QR_ECLEVEL_Q, QRCODE_PIXELS_PER_SYMBOL), QRCODE_PIXELS_PER_SYMBOL));
61 61
             $size = getimagesize($uri);
62 62
             echo "<img width='" . ($size[0] / 4) . "' height='" . ($size[1] / 4) . "' src='$uri' alt='QR-code'/>";
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
             </td>
90 90
             <td>
91 91
                 <form action='edit_idp_result.php?inst_id=<?php echo $my_inst->identifier; ?>' method='post' accept-charset='UTF-8'>
92
-                    <button class='delete' type='submit' name='submitbutton' value='<?php echo web\lib\common\FormElements::BUTTON_DELETE; ?>' onclick="return confirm('<?php echo ( CONFIG_CONFASSISTANT['CONSORTIUM']['selfservice_registration'] === NULL ? sprintf(_("After deleting the IdP, you can not recreate it yourself - you need a new invitation token from the %s administrator!"), $uiElements->nomenclature_fed) . " " : "" ) . sprintf(_("Do you really want to delete your %s %s?"), $uiElements->nomenclature_inst, $my_inst->name); ?>')"><?php echo sprintf(_("Delete %s"), $uiElements->nomenclature_inst); ?></button>
92
+                    <button class='delete' type='submit' name='submitbutton' value='<?php echo web\lib\common\FormElements::BUTTON_DELETE; ?>' onclick="return confirm('<?php echo (CONFIG_CONFASSISTANT['CONSORTIUM']['selfservice_registration'] === NULL ? sprintf(_("After deleting the IdP, you can not recreate it yourself - you need a new invitation token from the %s administrator!"), $uiElements->nomenclature_fed) . " " : "") . sprintf(_("Do you really want to delete your %s %s?"), $uiElements->nomenclature_inst, $my_inst->name); ?>')"><?php echo sprintf(_("Delete %s"), $uiElements->nomenclature_inst); ?></button>
93 93
                 </form>
94 94
 
95 95
             </td>
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
                     <br/>
168 168
                     <br/>
169 169
                     <form action='edit_silverbullet.php?inst_id=<?php echo $my_inst->identifier; ?>&profile_id=<?php echo $profile_list->identifier; ?>' method='POST'>
170
-                        <button <?php echo ( is_array($completeness) ? "disabled" : "" ); ?> type='submit' name='sb_action' value='sb_edit'><?php echo _("Manage User Base"); ?></button>
170
+                        <button <?php echo (is_array($completeness) ? "disabled" : ""); ?> type='submit' name='sb_action' value='sb_edit'><?php echo _("Manage User Base"); ?></button>
171 171
                     </form>
172 172
                 </div>
173 173
 
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
                 if (isset($URL['device-specific:redirect'])) {
303 303
                     $displayurl = $URL['device-specific:redirect'][0];
304 304
                 } else {
305
-                    $displayurl = ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . dirname(dirname($_SERVER['SCRIPT_NAME'])) . "?idp=" . $my_inst->identifier . "&amp;profile=" . $profile_list->identifier;
305
+                    $displayurl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . dirname(dirname($_SERVER['SCRIPT_NAME'])) . "?idp=" . $my_inst->identifier . "&amp;profile=" . $profile_list->identifier;
306 306
                 }
307 307
                 echo "<a href='$displayurl' style='white-space: nowrap; text-align: center;'>";
308 308
                 $uri = "data:image/png;base64," . base64_encode($uiElements->pngInjectConsortiumLogo(QRcode::png($displayurl, FALSE, QR_ECLEVEL_Q, QRCODE_PIXELS_PER_SYMBOL), QRCODE_PIXELS_PER_SYMBOL));
Please login to merge, or discard this patch.