Test Setup Failed
Push — master ( 1417dc...c04c22 )
by Stefan
06:40 queued 12s
created
web/admin/edit_federation.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  */
27 27
 ?>
28 28
 <?php
29
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
29
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
30 30
 
31 31
 $auth = new \web\lib\admin\Authentication();
32 32
 $deco = new \web\lib\admin\PageDecoration();
@@ -61,13 +61,13 @@  discard block
 block discarded – undo
61 61
         ?>
62 62
     </h1>
63 63
     <div class='infobox'>
64
-        <h2><?php $tablecaption = sprintf(_("%s Properties"),$uiElements->nomenclatureFed); echo $tablecaption?></h2>
64
+        <h2><?php $tablecaption = sprintf(_("%s Properties"), $uiElements->nomenclatureFed); echo $tablecaption?></h2>
65 65
         <table>
66
-            <caption><?php echo $tablecaption;?></caption>
66
+            <caption><?php echo $tablecaption; ?></caption>
67 67
             <tr>
68
-                <th class="wai-invisible" scope="col"><?php echo _("Property Type");?></th>
69
-                <th class="wai-invisible" scope="col"><?php echo _("Language if applicable");?></th>
70
-                <th class="wai-invisible" scope="col"><?php echo _("Property Value");?></th>
68
+                <th class="wai-invisible" scope="col"><?php echo _("Property Type"); ?></th>
69
+                <th class="wai-invisible" scope="col"><?php echo _("Language if applicable"); ?></th>
70
+                <th class="wai-invisible" scope="col"><?php echo _("Property Value"); ?></th>
71 71
             </tr>
72 72
             <tr>
73 73
                 <td><?php echo _("Country:"); ?></td>
@@ -78,11 +78,11 @@  discard block
 block discarded – undo
78 78
         </table>
79 79
     </div>
80 80
     <?php
81
-    echo "<form enctype='multipart/form-data' action='edit_federation_result.php?fed_id=$my_fed->tld" . "' method='post' accept-charset='UTF-8'>
82
-              <input type='hidden' name='MAX_FILE_SIZE' value='" . \config\Master::MAX_UPLOAD_SIZE . "'>";
81
+    echo "<form enctype='multipart/form-data' action='edit_federation_result.php?fed_id=$my_fed->tld"."' method='post' accept-charset='UTF-8'>
82
+              <input type='hidden' name='MAX_FILE_SIZE' value='" . \config\Master::MAX_UPLOAD_SIZE."'>";
83 83
     ?>
84 84
     <fieldset class="option_container">
85
-        <legend><strong><?php echo sprintf(_("%s Properties"),$uiElements->nomenclatureFed); ?></strong></legend>
85
+        <legend><strong><?php echo sprintf(_("%s Properties"), $uiElements->nomenclatureFed); ?></strong></legend>
86 86
         <?php
87 87
         $optionDisplay = new \web\lib\admin\OptionDisplay($fed_options, \core\Options::LEVEL_FED);
88 88
         echo $optionDisplay->prefilledOptionTable("fed", $my_fed->tld);
@@ -90,5 +90,5 @@  discard block
 block discarded – undo
90 90
         <button type='button' class='newoption' onclick='getXML("fed", "<?php echo $my_fed->tld ?>")'><?php echo _("Add new option"); ?></button>
91 91
     </fieldset>
92 92
     <?php
93
-    echo "<div><button type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_SAVE . "'>" . _("Save data") . "</button> <button type='button' class='delete' name='abortbutton' value='abort' onclick='javascript:window.location = \"overview_federation.php\"'>" . _("Discard changes") . "</button></div></form>";
93
+    echo "<div><button type='submit' name='submitbutton' value='".web\lib\common\FormElements::BUTTON_SAVE."'>"._("Save data")."</button> <button type='button' class='delete' name='abortbutton' value='abort' onclick='javascript:window.location = \"overview_federation.php\"'>"._("Discard changes")."</button></div></form>";
94 94
     echo $deco->footer();
Please login to merge, or discard this patch.
web/admin/edit_participant.php 1 patch
Spacing   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  *          <base_url>/copyright.php after deploying the software
20 20
  */
21 21
 
22
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
22
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
23 23
 
24 24
 $auth = new \web\lib\admin\Authentication();
25 25
 $deco = new \web\lib\admin\PageDecoration();
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 $inst_name = $my_inst->name;
40 40
 
41 41
 if ($wizardStyle) {
42
-    echo $deco->defaultPagePrelude(sprintf(_("%s: %s enrollment wizard (step 2)"), \config\Master::APPEARANCE['productname'],  $uiElements->nomenclatureParticipant));
42
+    echo $deco->defaultPagePrelude(sprintf(_("%s: %s enrollment wizard (step 2)"), \config\Master::APPEARANCE['productname'], $uiElements->nomenclatureParticipant));
43 43
 } else {
44 44
     echo $deco->defaultPagePrelude(sprintf(_("%s: Editing %s '%s'"), \config\Master::APPEARANCE['productname'], $uiElements->nomenclatureParticipant, $inst_name));
45 45
 }
@@ -80,13 +80,13 @@  discard block
 block discarded – undo
80 80
         ?>
81 81
     </h1>
82 82
     <div class='infobox'>
83
-        <h2><?php $tablecaption = sprintf(_("%s general properties"), $uiElements->nomenclatureParticipant); echo $tablecaption;?></h2>
83
+        <h2><?php $tablecaption = sprintf(_("%s general properties"), $uiElements->nomenclatureParticipant); echo $tablecaption; ?></h2>
84 84
         <table>
85
-            <caption><?php echo $tablecaption;?></caption>
85
+            <caption><?php echo $tablecaption; ?></caption>
86 86
             <tr>
87
-                <th class="wai-invisible" scope="col"><?php echo _("Property Type");?></th>
88
-                <th class="wai-invisible" scope="col"><?php echo _("Language if applicable");?></th>
89
-                <th class="wai-invisible" scope="col"><?php echo _("Property Value");?></th>
87
+                <th class="wai-invisible" scope="col"><?php echo _("Property Type"); ?></th>
88
+                <th class="wai-invisible" scope="col"><?php echo _("Language if applicable"); ?></th>
89
+                <th class="wai-invisible" scope="col"><?php echo _("Property Value"); ?></th>
90 90
             </tr>
91 91
 
92 92
             <tr>
@@ -101,12 +101,12 @@  discard block
 block discarded – undo
101 101
         </table>
102 102
     </div>
103 103
     <?php
104
-    echo "<form enctype='multipart/form-data' action='edit_participant_result.php?inst_id=$my_inst->identifier" . ($wizardStyle ? "&wizard=true" : "") . "' method='post' accept-charset='UTF-8'>
105
-              <input type='hidden' name='MAX_FILE_SIZE' value='" . \config\Master::MAX_UPLOAD_SIZE . "'>";
104
+    echo "<form enctype='multipart/form-data' action='edit_participant_result.php?inst_id=$my_inst->identifier".($wizardStyle ? "&wizard=true" : "")."' method='post' accept-charset='UTF-8'>
105
+              <input type='hidden' name='MAX_FILE_SIZE' value='" . \config\Master::MAX_UPLOAD_SIZE."'>";
106 106
 
107 107
     if ($wizardStyle) {
108
-        echo "<p>" .
109
-        sprintf(_("Hello, newcomer. The %s is new to us. This wizard will ask you several questions about it, so that we can generate beautiful profiles for you in the end. All of the information below is optional, but it is important to fill out as many fields as possible for the benefit of your end users."), $uiElements->nomenclatureParticipant) . "</p>";
108
+        echo "<p>".
109
+        sprintf(_("Hello, newcomer. The %s is new to us. This wizard will ask you several questions about it, so that we can generate beautiful profiles for you in the end. All of the information below is optional, but it is important to fill out as many fields as possible for the benefit of your end users."), $uiElements->nomenclatureParticipant)."</p>";
110 110
     }
111 111
     $optionDisplay = new web\lib\admin\OptionDisplay($idpoptions, \core\Options::LEVEL_IDP);
112 112
     ?>
@@ -114,11 +114,11 @@  discard block
 block discarded – undo
114 114
         <legend><strong><?php echo _("General Information"); ?></strong></legend>
115 115
         <?php
116 116
         if ($wizardStyle) {
117
-            echo "<p>" .
118
-            _("Some properties are valid across all deployment profiles. This is the place where you can describe those properties in a fine-grained way. The solicited information is used as follows:") . "</p>
117
+            echo "<p>".
118
+            _("Some properties are valid across all deployment profiles. This is the place where you can describe those properties in a fine-grained way. The solicited information is used as follows:")."</p>
119 119
                       <ul>
120
-                         <li>" . _("<strong>Logo</strong>: When you submit a logo, we will embed this logo into all installers where a custom logo is possible. We accept any image format, but for best results, we suggest SVG. If you don't upload a logo, we will use the generic logo instead (see top-right corner of this page).") . "</li>
121
-                         <li>" . sprintf(_("<strong>Name</strong>: The %s may have names in multiple languages. It is recommended to always populate at least the 'default/other' language, as it is used as a fallback if the system does not have a name in the exact language the user requests a download in."),$uiElements->nomenclatureParticipant) . "</li>";
120
+                         <li>" . _("<strong>Logo</strong>: When you submit a logo, we will embed this logo into all installers where a custom logo is possible. We accept any image format, but for best results, we suggest SVG. If you don't upload a logo, we will use the generic logo instead (see top-right corner of this page).")."</li>
121
+                         <li>" . sprintf(_("<strong>Name</strong>: The %s may have names in multiple languages. It is recommended to always populate at least the 'default/other' language, as it is used as a fallback if the system does not have a name in the exact language the user requests a download in."), $uiElements->nomenclatureParticipant)."</li>";
122 122
             echo "</ul>";
123 123
         }
124 124
         echo $optionDisplay->prefilledOptionTable("general", $my_inst->federation);
@@ -132,44 +132,44 @@  discard block
 block discarded – undo
132 132
         <legend><strong><?php echo _("Media Properties"); ?></strong></legend>
133 133
         <?php
134 134
         if ($wizardStyle) {
135
-            echo "<p>" .
136
-            sprintf(_("In this section, you define on which media %s should be configured on user devices."), \config\ConfAssistant::CONSORTIUM['display_name']) . "</p>
135
+            echo "<p>".
136
+            sprintf(_("In this section, you define on which media %s should be configured on user devices."), \config\ConfAssistant::CONSORTIUM['display_name'])."</p>
137 137
           <ul>";
138 138
             echo "<li>";
139
-            echo "<strong>" . ( count(\config\ConfAssistant::CONSORTIUM['ssid']) > 0 ? _("Additional SSIDs:") : _("SSIDs:")) . " </strong>";
139
+            echo "<strong>".(count(\config\ConfAssistant::CONSORTIUM['ssid']) > 0 ? _("Additional SSIDs:") : _("SSIDs:"))." </strong>";
140 140
             if (count(\config\ConfAssistant::CONSORTIUM['ssid']) > 0) {
141 141
                 $ssidlist = "";
142 142
                 foreach (\config\ConfAssistant::CONSORTIUM['ssid'] as $ssid) {
143
-                    $ssidlist .= ", '<strong>" . $ssid . "</strong>'";
143
+                    $ssidlist .= ", '<strong>".$ssid."</strong>'";
144 144
                 }
145 145
                 $ssidlist = substr($ssidlist, 2);
146 146
                 echo sprintf(ngettext("We will always configure this SSID for WPA2/AES: %s.", "We will always configure these SSIDs for WPA2/AES: %s.", count(\config\ConfAssistant::CONSORTIUM['ssid'])), $ssidlist);
147
-                echo "<br/>" . sprintf(_("It is also possible to define custom additional SSIDs with the option '%s' below."), $uiElements->displayName("media:SSID"));
147
+                echo "<br/>".sprintf(_("It is also possible to define custom additional SSIDs with the option '%s' below."), $uiElements->displayName("media:SSID"));
148 148
             } else {
149 149
                 echo _("Please configure which SSIDs should be configured in the installers.");
150 150
             }
151
-            echo " " . _("By default, we will only configure the SSIDs with WPA2/AES encryption. By using the '(with WPA/TKIP)' option you can specify that we should include legacy support for WPA/TKIP where possible.");
151
+            echo " "._("By default, we will only configure the SSIDs with WPA2/AES encryption. By using the '(with WPA/TKIP)' option you can specify that we should include legacy support for WPA/TKIP where possible.");
152 152
             echo "</li>";
153 153
 
154 154
             echo "<li>";
155
-            echo "<strong>" . ( count(\config\ConfAssistant::CONSORTIUM['ssid']) > 0 ? _("Additional Hotspot 2.0 / Passpoint Consortia:") : _("Hotspot 2.0 / Passpoint Consortia:")) . " </strong>";
155
+            echo "<strong>".(count(\config\ConfAssistant::CONSORTIUM['ssid']) > 0 ? _("Additional Hotspot 2.0 / Passpoint Consortia:") : _("Hotspot 2.0 / Passpoint Consortia:"))." </strong>";
156 156
             if (count(\config\ConfAssistant::CONSORTIUM['interworking-consortium-oi']) > 0) {
157 157
                 $consortiumlist = "";
158 158
                 foreach (\config\ConfAssistant::CONSORTIUM['interworking-consortium-oi'] as $oi) {
159
-                    $consortiumlist .= ", '<strong>" . $oi . "</strong>'";
159
+                    $consortiumlist .= ", '<strong>".$oi."</strong>'";
160 160
                 }
161 161
                 $consortiumlist = substr($consortiumlist, 2);
162 162
                 echo sprintf(ngettext("We will always configure this Consortium OI: %s.", "We will always configure these Consortium OIs: %s.", count(\config\ConfAssistant::CONSORTIUM['interworking-consortium-oi'])), $consortiumlist);
163 163
 
164
-                echo "<br/>" . sprintf(_("It is also possible to define custom additional OIs with the option '%s' below."), $uiElements->displayName("media:consortium_OI"));
164
+                echo "<br/>".sprintf(_("It is also possible to define custom additional OIs with the option '%s' below."), $uiElements->displayName("media:consortium_OI"));
165 165
             } else {
166 166
                 echo _("Please configure which Consortium OIs should be configured in the installers.");
167 167
             }
168 168
             echo "</li>";
169
-            echo "<li><strong>" . _("Support for wired IEEE 802.1X:") . " </strong>"
170
-            . _("If you want to configure your users' devices with IEEE 802.1X support for wired ethernet, please check the corresponding box. Note that this makes the installation process a bit more difficult on some platforms (Windows: needs administrator privileges; Apple: attempting to install a profile with wired support on a device without an active wired ethernet card will fail).") .
169
+            echo "<li><strong>"._("Support for wired IEEE 802.1X:")." </strong>"
170
+            . _("If you want to configure your users' devices with IEEE 802.1X support for wired ethernet, please check the corresponding box. Note that this makes the installation process a bit more difficult on some platforms (Windows: needs administrator privileges; Apple: attempting to install a profile with wired support on a device without an active wired ethernet card will fail).").
171 171
             "</li>";
172
-            echo "<li><strong>" . _("Removal of bootstrap/onboarding SSIDs:") . " </strong>"
172
+            echo "<li><strong>"._("Removal of bootstrap/onboarding SSIDs:")." </strong>"
173 173
             . _("If you use a captive portal to distribute configurations, you may want to unconfigure/disable that SSID after the bootstrap process. With this option, the SSID will either be removed, or be defined as 'Only connect manually'.")
174 174
             . "</li>";
175 175
             echo "</ul>";
@@ -185,16 +185,16 @@  discard block
 block discarded – undo
185 185
             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>";
186 186
             
187 187
             if (\config\Master::FUNCTIONALITY_LOCATIONS['CONFASSISTANT_RADIUS'] == "LOCAL") {
188
-                echo "<p>" .
188
+                echo "<p>".
189 189
                         
190
-                sprintf(_("Do you provide helpdesk services for your users? If so, it would be nice if you would tell us the pointers to this helpdesk."),$uiElements->nomenclatureParticipant)  . "</p>" .
191
-                "<p>" .
192
-                _("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') specify per-profile helpdesk information later in this wizard. If you operate no help desk at all, just leave these fields empty.") . "</p>";
190
+                sprintf(_("Do you provide helpdesk services for your users? If so, it would be nice if you would tell us the pointers to this helpdesk."), $uiElements->nomenclatureParticipant)."</p>".
191
+                "<p>".
192
+                _("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') specify per-profile helpdesk information later in this wizard. If you operate no help desk at all, just leave these fields empty.")."</p>";
193 193
                 if (\config\Master::FUNCTIONALITY_LOCATIONS['CONFASSISTANT_SILVERBULLET'] == "LOCAL") {
194
-                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>";
194
+                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>";
195 195
                 }
196 196
             } elseif (\config\Master::FUNCTIONALITY_LOCATIONS['CONFASSISTANT_SILVERBULLET'] == "LOCAL") {
197
-                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>";
197
+                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>";
198 198
             }
199 199
             
200 200
         }
@@ -204,8 +204,8 @@  discard block
 block discarded – undo
204 204
         <button type='button' class='newoption' onclick='getXML("support", "<?php echo $my_inst->federation ?>")'><?php echo _("Add new option"); ?></button></fieldset>
205 205
     <?php
206 206
     if ($wizardStyle) {
207
-        echo "<p>" . sprintf(_("When you are sure that everything is correct, please click on %sContinue ...%s"), "<button type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_CONTINUE . "'>", "</button>") . "</p></form>";
207
+        echo "<p>".sprintf(_("When you are sure that everything is correct, please click on %sContinue ...%s"), "<button type='submit' name='submitbutton' value='".web\lib\common\FormElements::BUTTON_CONTINUE."'>", "</button>")."</p></form>";
208 208
     } else {
209
-        echo "<div><button type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_SAVE . "'>" . _("Save data") . "</button> <button type='button' class='delete' name='abortbutton' value='abort' onclick='javascript:window.location = \"overview_user.php\"'>" . _("Discard changes") . "</button></div></form>";
209
+        echo "<div><button type='submit' name='submitbutton' value='".web\lib\common\FormElements::BUTTON_SAVE."'>"._("Save data")."</button> <button type='button' class='delete' name='abortbutton' value='abort' onclick='javascript:window.location = \"overview_user.php\"'>"._("Discard changes")."</button></div></form>";
210 210
     }
211 211
     echo $deco->footer();
Please login to merge, or discard this patch.
web/admin/edit_profile.php 1 patch
Spacing   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  */
27 27
 ?>
28 28
 <?php
29
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
29
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
30 30
 
31 31
 $deco = new \web\lib\admin\PageDecoration();
32 32
 $validator = new \web\lib\common\InputValidation();
@@ -126,8 +126,8 @@  discard block
 block discarded – undo
126 126
     <?php
127 127
     echo $uiElements->instLevelInfoBoxes($my_inst);
128 128
 
129
-    echo "<form enctype='multipart/form-data' action='edit_profile_result.php?inst_id=$my_inst->identifier" . ($my_profile !== NULL ? "&amp;profile_id=" . $my_profile->identifier : "") . "' method='post' accept-charset='UTF-8'>
130
-                <input type='hidden' name='MAX_FILE_SIZE' value='" . \config\Master::MAX_UPLOAD_SIZE . "'>";
129
+    echo "<form enctype='multipart/form-data' action='edit_profile_result.php?inst_id=$my_inst->identifier".($my_profile !== NULL ? "&amp;profile_id=".$my_profile->identifier : "")."' method='post' accept-charset='UTF-8'>
130
+                <input type='hidden' name='MAX_FILE_SIZE' value='" . \config\Master::MAX_UPLOAD_SIZE."'>";
131 131
     $optionDisplay = new \web\lib\admin\OptionDisplay($profile_options, \core\Options::LEVEL_PROFILE);
132 132
     ?>
133 133
     <fieldset class="option_container">
@@ -136,19 +136,19 @@  discard block
 block discarded – undo
136 136
         </legend>
137 137
         <?php
138 138
         if ($wizardStyle) {
139
-            echo "<p>" . _("We will now define a profile for your user group(s).  You can add as many profiles as you like by choosing the appropriate button on the end of the page. After we are done, the wizard is finished and you will be taken to the main IdP administration page.") . "</p>";
139
+            echo "<p>"._("We will now define a profile for your user group(s).  You can add as many profiles as you like by choosing the appropriate button on the end of the page. After we are done, the wizard is finished and you will be taken to the main IdP administration page.")."</p>";
140 140
         }
141 141
         ?>
142 142
         <h3><?php echo _("Profile Name and RADIUS realm"); ?></h3>
143 143
         <?php
144 144
         if ($wizardStyle) {
145
-            echo "<p>" . _("First of all we need a name for the profile. This will be displayed to end users, so you may want to choose a descriptive name like 'Professors', 'Students of the Faculty of Bioscience', etc.") . "</p>";
146
-            echo "<p>" . _("Optionally, you can provide a longer descriptive text about who this profile is for. If you specify it, it will be displayed on the download page after the user has selected the profile name in the list.") . "</p>";
147
-            echo "<p>" . _("You can also tell us your RADIUS realm. ");
145
+            echo "<p>"._("First of all we need a name for the profile. This will be displayed to end users, so you may want to choose a descriptive name like 'Professors', 'Students of the Faculty of Bioscience', etc.")."</p>";
146
+            echo "<p>"._("Optionally, you can provide a longer descriptive text about who this profile is for. If you specify it, it will be displayed on the download page after the user has selected the profile name in the list.")."</p>";
147
+            echo "<p>"._("You can also tell us your RADIUS realm. ");
148 148
             if (\config\Master::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS'] !== NULL) {
149 149
                 printf(_("This is useful if you want to use the sanity check module later, which tests reachability of your realm in the %s infrastructure. "), \config\ConfAssistant::CONSORTIUM['display_name']);
150 150
             }
151
-            echo _("It is required to enter the realm name if you want to support anonymous outer identities (see below).") . "</p>";
151
+            echo _("It is required to enter the realm name if you want to support anonymous outer identities (see below).")."</p>";
152 152
         }
153 153
 
154 154
         echo $optionDisplay->prefilledOptionTable("profile", $my_inst->federation);
@@ -203,9 +203,9 @@  discard block
 block discarded – undo
203 203
 
204 204
         <?php
205 205
         if ($wizardStyle) {
206
-            echo "<p>" . sprintf(_("Some installers support a feature called 'Anonymous outer identity'. If you don't know what this is, please read <a href='%s'>this article</a>."), "https://confluence.terena.org/display/H2eduroam/eap-types") . "</p>";
207
-            echo "<p>" . _("On some platforms, the installers can suggest username endings and/or verify the user input to contain the realm suffix.") . "</p>";
208
-            echo "<p>" . _("The realm check feature needs to know an outer ID which actually gets a chance to authenticate. If your RADIUS server lets only select usernames pass, it is useful to supply the information which of those (outer ID) username we can use for testing.") . "</p>";
206
+            echo "<p>".sprintf(_("Some installers support a feature called 'Anonymous outer identity'. If you don't know what this is, please read <a href='%s'>this article</a>."), "https://confluence.terena.org/display/H2eduroam/eap-types")."</p>";
207
+            echo "<p>"._("On some platforms, the installers can suggest username endings and/or verify the user input to contain the realm suffix.")."</p>";
208
+            echo "<p>"._("The realm check feature needs to know an outer ID which actually gets a chance to authenticate. If your RADIUS server lets only select usernames pass, it is useful to supply the information which of those (outer ID) username we can use for testing.")."</p>";
209 209
         }
210 210
         ?>
211 211
         <p>
@@ -224,37 +224,37 @@  discard block
 block discarded – undo
224 224
             <tr>
225 225
                 <!-- checkbox and input field for anonymity support, available only when realm is known-->
226 226
                 <td>
227
-                    <span id='anon_support_label' style='<?php echo ($realm == "" ? "color:#999999" : "" ); ?>'>
227
+                    <span id='anon_support_label' style='<?php echo ($realm == "" ? "color:#999999" : ""); ?>'>
228 228
                         <?php echo _("Enable Anonymous Outer Identity:"); ?>
229 229
                     </span>
230 230
                 </td>
231 231
                 <td>
232
-                    <input type='checkbox' <?php echo ($useAnon != FALSE ? "checked" : "" ) . ($realm == "" ? " disabled" : "" ); ?> name='anon_support' onclick='
232
+                    <input type='checkbox' <?php echo ($useAnon != FALSE ? "checked" : "").($realm == "" ? " disabled" : ""); ?> name='anon_support' onclick='
233 233
                             if (this.form.elements["anon_support"].checked !== true) {
234 234
                                 this.form.elements["anon_local"].setAttribute("disabled", "disabled");
235 235
                             } else {
236 236
                                 this.form.elements["anon_local"].removeAttribute("disabled");
237 237
                             }
238 238
                             ;'/>
239
-                    <input type='text' <?php echo ($useAnon == FALSE ? "disabled" : "" ); ?> name='anon_local' value='<?php echo $anonLocal; ?>'/>
239
+                    <input type='text' <?php echo ($useAnon == FALSE ? "disabled" : ""); ?> name='anon_local' value='<?php echo $anonLocal; ?>'/>
240 240
                 </td>
241 241
             </tr>
242 242
             <tr>
243 243
                 <!-- checkbox and input field for check realm outer id, available only when realm is known-->
244 244
                 <td>
245
-                    <span id='checkuser_label' style='<?php echo ($realm == "" ? "color:#999999" : "" ); ?>'>
245
+                    <span id='checkuser_label' style='<?php echo ($realm == "" ? "color:#999999" : ""); ?>'>
246 246
                         <?php echo _("Use special Outer Identity for realm checks:"); ?>
247 247
                     </span>
248 248
                 </td>
249 249
                 <td>
250
-                    <input type='checkbox' <?php echo ($checkuserOuter != FALSE ? "checked" : "" ) . ($realm == "" ? " disabled" : "" ); ?> name='checkuser_support' onclick='
250
+                    <input type='checkbox' <?php echo ($checkuserOuter != FALSE ? "checked" : "").($realm == "" ? " disabled" : ""); ?> name='checkuser_support' onclick='
251 251
                             if (this.form.elements["checkuser_support"].checked !== true) {
252 252
                                 this.form.elements["checkuser_local"].setAttribute("disabled", "disabled");
253 253
                             } else {
254 254
                                 this.form.elements["checkuser_local"].removeAttribute("disabled");
255 255
                             }
256 256
                             ;'/>
257
-                    <input type='text' <?php echo ($checkuserOuter == FALSE ? "disabled" : "" ); ?> name='checkuser_local' value='<?php echo $checkuserValue; ?>'/>
257
+                    <input type='text' <?php echo ($checkuserOuter == FALSE ? "disabled" : ""); ?> name='checkuser_local' value='<?php echo $checkuserValue; ?>'/>
258 258
                 </td>
259 259
             </tr>
260 260
             <tr>
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
                 </td>
270 270
                 <td>
271 271
                     <input type='checkbox' <?php
272
-                        echo ($verify != FALSE ? "checked" : "" );
272
+                        echo ($verify != FALSE ? "checked" : "");
273 273
                         ?> name='verify_support' onclick='
274 274
                             if (this.form.elements["verify_support"].checked !== true || this.form.elements["realm"].value.length == 0) {
275 275
                                 this.form.elements["hint_support"].setAttribute("disabled", "disabled");
@@ -281,12 +281,12 @@  discard block
 block discarded – undo
281 281
             </tr>
282 282
             <tr>
283 283
                 <td>
284
-                    <span id='hint_label' style='<?php echo ($realm == "" ? "color:#999999" : "" ); ?>'>
284
+                    <span id='hint_label' style='<?php echo ($realm == "" ? "color:#999999" : ""); ?>'>
285 285
                         <?php echo _("Enforce exact realm in username"); ?>
286 286
                     </span>
287 287
                 </td>
288 288
                 <td>
289
-                    <input type='checkbox' <?php echo ($verify == FALSE ? "disabled" : "" ); ?> name='hint_support' <?php echo ( $hint != FALSE ? "checked" : "" ); ?> />
289
+                    <input type='checkbox' <?php echo ($verify == FALSE ? "disabled" : ""); ?> name='hint_support' <?php echo ($hint != FALSE ? "checked" : ""); ?> />
290 290
                 </td>
291 291
             </tr>
292 292
         </table>
@@ -296,20 +296,20 @@  discard block
 block discarded – undo
296 296
 
297 297
     <?php
298 298
     if ($wizardStyle) {
299
-        echo "<p>" . _("The CAT has a download area for end users. There, they will, for example, learn about the support pointers you entered earlier. The CAT can also immediately offer the installers for the profile for download. If you don't want that, you can instead enter a web site location where you want your users to be redirected to. You, as the administrator, can still download the profiles to place them on that page (see the 'Compatibility Matrix' button on the dashboard).") . "</p>";
299
+        echo "<p>"._("The CAT has a download area for end users. There, they will, for example, learn about the support pointers you entered earlier. The CAT can also immediately offer the installers for the profile for download. If you don't want that, you can instead enter a web site location where you want your users to be redirected to. You, as the administrator, can still download the profiles to place them on that page (see the 'Compatibility Matrix' button on the dashboard).")."</p>";
300 300
     }
301 301
     ?>
302 302
     <p>
303 303
 
304 304
         <?php
305
-        echo "<span id='redirect_label' style='" . ($realm == "" ? "color:#999999" : "" ) . "'><label for='redirect'>" . _("Redirect end users to own web page:") . "</label></span>
306
-                          <input type='checkbox'  name='redirect' id='redirect' " . ($blacklisted === FALSE ? "" : "checked " ) . "onclick='
305
+        echo "<span id='redirect_label' style='".($realm == "" ? "color:#999999" : "")."'><label for='redirect'>"._("Redirect end users to own web page:")."</label></span>
306
+                          <input type='checkbox'  name='redirect' id='redirect' " . ($blacklisted === FALSE ? "" : "checked ")."onclick='
307 307
                               if (this.form.elements[\"redirect\"].checked != true) {
308 308
                                 this.form.elements[\"redirect_target\"].setAttribute(\"disabled\", \"disabled\");
309 309
                               } else {
310 310
                                 this.form.elements[\"redirect_target\"].removeAttribute(\"disabled\");
311 311
                               };'/>
312
-                          <input type='text' name='redirect_target' " . ($blacklisted !== FALSE ? "value='$blacklisted'" : "disabled" ) . "/>";
312
+                          <input type='text' name='redirect_target' " . ($blacklisted !== FALSE ? "value='$blacklisted'" : "disabled")."/>";
313 313
         ?>
314 314
     </p>
315 315
 
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
     <legend><strong><?php echo _("Supported EAP types"); ?></strong></legend>
319 319
     <?php
320 320
     if ($wizardStyle) {
321
-        echo "<p>" . _("Now, we need to know which EAP types your IdP supports. If you support multiple EAP types, you can assign every type a priority (1=highest). This tool will always generate an automatic installer for the EAP type with the highest priority; only if the user's device can't use that EAP type, we will use an EAP type further down in the list.") . "</p>";
321
+        echo "<p>"._("Now, we need to know which EAP types your IdP supports. If you support multiple EAP types, you can assign every type a priority (1=highest). This tool will always generate an automatic installer for the EAP type with the highest priority; only if the user's device can't use that EAP type, we will use an EAP type further down in the list.")."</p>";
322 322
     }
323 323
     ?>
324 324
     <?php
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
 <?php
352 352
 $D = [];
353 353
 foreach ($prefill_methods as $prio => $value) {
354
-    print '<li>' . $value->getPrintableRep() . "</li>\n";
354
+    print '<li>'.$value->getPrintableRep()."</li>\n";
355 355
     $D[$value->getPrintableRep()] = $prio;
356 356
 }
357 357
 ?>
@@ -377,7 +377,7 @@  discard block
 block discarded – undo
377 377
     }
378 378
     $display = $a->getPrintableRep();
379 379
     if (!isset($D[$a->getPrintableRep()])) {
380
-        print '<li class="eap1">' . $a->getPrintableRep() . "</li>\n";
380
+        print '<li class="eap1">'.$a->getPrintableRep()."</li>\n";
381 381
     }
382 382
 }
383 383
 ?>
@@ -390,8 +390,8 @@  discard block
 block discarded – undo
390 390
 foreach ($methods as $a) {
391 391
     $display = $a->getPrintableRep();
392 392
     $v = isset($D[$display]) ? $D[$display] : '';
393
-    print '<input type="hidden" class="eapm" name="' . $display . '" id="EAP-' . $display . '" value="' . $display . '">';
394
-    print '<input type="hidden" class="eapmv" name="' . $display . '-priority" id="EAP-' . $display . '-priority" value="' . $v . '">';
393
+    print '<input type="hidden" class="eapm" name="'.$display.'" id="EAP-'.$display.'" value="'.$display.'">';
394
+    print '<input type="hidden" class="eapmv" name="'.$display.'-priority" id="EAP-'.$display.'-priority" value="'.$v.'">';
395 395
 }
396 396
 ?>
397 397
     <br style="clear:both;" />
@@ -411,11 +411,11 @@  discard block
 block discarded – undo
411 411
 foreach ($optionsAlreadySet as $optionNames) {
412 412
     if (preg_match("/^support:/", $optionNames)) {
413 413
         $has_support_options[$optionNames] = "SET";
414
-        $support_text .= "<li><strong>" . $uiElements->displayName($optionNames) . "</strong></li>";
414
+        $support_text .= "<li><strong>".$uiElements->displayName($optionNames)."</strong></li>";
415 415
     }
416 416
     if (preg_match("/^media:/", $optionNames)) {
417 417
         $has_media_options[$optionNames] = "SET";
418
-        $media_text .= "<li><strong>" . $uiElements->displayName($optionNames) . "</strong></li>";
418
+        $media_text .= "<li><strong>".$uiElements->displayName($optionNames)."</strong></li>";
419 419
     }
420 420
 }
421 421
 $fields = [
@@ -424,12 +424,12 @@  discard block
 block discarded – undo
424 424
     "media" => _("Media Properties for this profile")];
425 425
 
426 426
 foreach ($fields as $name => $description) {
427
-    echo "<fieldset class='option_container' id='" . $name . "_override'>
427
+    echo "<fieldset class='option_container' id='".$name."_override'>
428 428
     <legend><strong>$description</strong></legend>
429 429
     <p>";
430 430
 
431
-    if (count(${"has_" . $name . "_options"}) > 0) {
432
-        printf(ngettext("The option %s is already defined IdP-wide. If you set it here on profile level, this setting will override the IdP-wide one.", "The options %s are already defined IdP-wide. If you set them here on profile level, these settings will override the IdP-wide ones.", count(${"has_" . $name . "_options"})), "<ul>" . ${$name . "_text"} . "</ul>");
431
+    if (count(${"has_".$name."_options"}) > 0) {
432
+        printf(ngettext("The option %s is already defined IdP-wide. If you set it here on profile level, this setting will override the IdP-wide one.", "The options %s are already defined IdP-wide. If you set them here on profile level, these settings will override the IdP-wide ones.", count(${"has_".$name."_options"})), "<ul>".${$name."_text"}."</ul>");
433 433
     }
434 434
 
435 435
     echo "</p>";
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
 }
443 443
 
444 444
 if ($wizardStyle) {
445
-    echo "<p>" . _("When you are sure that everything is correct, please click on 'Save data' and you will be taken to your IdP Dashboard page.") . "</p>";
445
+    echo "<p>"._("When you are sure that everything is correct, please click on 'Save data' and you will be taken to your IdP Dashboard page.")."</p>";
446 446
 }
447
-echo "<p><button type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_SAVE . "'>" . _("Save data") . "</button><button type='button' class='delete' name='abortbutton' value='abort' onclick='javascript:window.location = \"overview_idp.php?inst_id=$my_inst->identifier\"'>" . _("Discard changes") . "</button></p></form>";
447
+echo "<p><button type='submit' name='submitbutton' value='".web\lib\common\FormElements::BUTTON_SAVE."'>"._("Save data")."</button><button type='button' class='delete' name='abortbutton' value='abort' onclick='javascript:window.location = \"overview_idp.php?inst_id=$my_inst->identifier\"'>"._("Discard changes")."</button></p></form>";
448 448
 echo $deco->footer();
Please login to merge, or discard this patch.
web/admin/edit_hotspot.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
  */
27 27
 ?>
28 28
 <?php
29
-require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php";
29
+require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php";
30 30
 
31 31
 $deco = new \web\lib\admin\PageDecoration();
32 32
 $validator = new \web\lib\common\InputValidation();
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
 if (!isset($_GET['deployment_id'])) {
38 38
     $my_inst->newDeployment(\core\AbstractDeployment::DEPLOYMENTTYPE_MANAGED);
39
-    header("Location: overview_sp.php?inst_id=" . $my_inst->identifier);
39
+    header("Location: overview_sp.php?inst_id=".$my_inst->identifier);
40 40
     exit(0);
41 41
 }
42 42
 // if we have come this far, we are editing an existing deployment
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         if (in_array('OK', $response)) {
49 49
             $deployment->deactivate();
50 50
         }
51
-        header("Location: overview_sp.php?inst_id=" . $my_inst->identifier . '&' . urldecode(http_build_query($response)));
51
+        header("Location: overview_sp.php?inst_id=".$my_inst->identifier.'&'.urldecode(http_build_query($response)));
52 52
         exit(0);
53 53
     }
54 54
 
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
         if (in_array('OK', $response)) {
58 58
             $deployment->activate();
59 59
         }
60
-        header("Location: overview_sp.php?inst_id=" . $my_inst->identifier . '&' . urldecode(http_build_query($response)));
60
+        header("Location: overview_sp.php?inst_id=".$my_inst->identifier.'&'.urldecode(http_build_query($response)));
61 61
         exit(0);
62 62
     }
63 63
     
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             $deployment->status = core\DeploymentManaged::INACTIVE;
79 79
             $response = $deployment->setRADIUSconfig();
80 80
         }
81
-        header("Location: overview_sp.php?inst_id=" . $my_inst->identifier . '&' . urldecode(http_build_query($response)));
81
+        header("Location: overview_sp.php?inst_id=".$my_inst->identifier.'&'.urldecode(http_build_query($response)));
82 82
         exit(0);
83 83
     }
84 84
 }
@@ -106,21 +106,21 @@  discard block
 block discarded – undo
106 106
     echo $uiElements->instLevelInfoBoxes($my_inst);
107 107
     $deploymentOptions = $deployment->getAttributes();
108 108
     echo "<form enctype='multipart/form-data' action='edit_hotspot.php?inst_id=$my_inst->identifier&amp;deployment_id=$deployment->identifier' method='post' accept-charset='UTF-8'>
109
-                <input type='hidden' name='MAX_FILE_SIZE' value='" . \config\Master::MAX_UPLOAD_SIZE . "'>";
109
+                <input type='hidden' name='MAX_FILE_SIZE' value='".\config\Master::MAX_UPLOAD_SIZE."'>";
110 110
     $optionDisplay = new \web\lib\admin\OptionDisplay($deploymentOptions, \core\Options::LEVEL_PROFILE);
111 111
     ?>
112 112
     <fieldset class='option_container' id='managedsp_override'>
113 113
     <legend>
114 114
         <strong>
115
-    <?php $tablecaption = _("Options for this deployment"); echo $tablecaption;?>
115
+    <?php $tablecaption = _("Options for this deployment"); echo $tablecaption; ?>
116 116
         </strong>
117 117
     </legend>
118 118
     <table>
119
-            <caption><?php echo $tablecaption;?></caption>
119
+            <caption><?php echo $tablecaption; ?></caption>
120 120
             <tr>
121
-                <th class="wai-invisible" scope="col"><?php echo _("Property Type");?></th>
122
-                <th class="wai-invisible" scope="col"><?php echo _("Language if applicable");?></th>
123
-                <th class="wai-invisible" scope="col"><?php echo _("Property Value");?></th>
121
+                <th class="wai-invisible" scope="col"><?php echo _("Property Type"); ?></th>
122
+                <th class="wai-invisible" scope="col"><?php echo _("Language if applicable"); ?></th>
123
+                <th class="wai-invisible" scope="col"><?php echo _("Property Value"); ?></th>
124 124
             </tr>
125 125
         <tr>
126 126
             <!-- input for Operator-Name override-->
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
             <!-- input for VLAN identifier for home users-->
138 138
             <td>
139 139
                 <span id='vlan_label'>
140
-                    <?php echo sprintf(_("VLAN tag for own users%s:"), ($vlan === NULL ? "" : " " . _("(unset with '0')"))); ?>
140
+                    <?php echo sprintf(_("VLAN tag for own users%s:"), ($vlan === NULL ? "" : " "._("(unset with '0')"))); ?>
141 141
                 </span>
142 142
             </td>
143 143
             <td>
@@ -153,10 +153,10 @@  discard block
 block discarded – undo
153 153
     <?php
154 154
     echo $optionDisplay->prefilledOptionTable("managedsp", $my_inst->federation);
155 155
     ?>
156
-    <button type='button' class='newoption' onclick='getXML("managedsp", "<?php echo $my_inst->federation ?>")'><?php echo _("Add new option");?></button>
156
+    <button type='button' class='newoption' onclick='getXML("managedsp", "<?php echo $my_inst->federation ?>")'><?php echo _("Add new option"); ?></button>
157 157
     </fieldset>
158 158
 
159 159
 <?php
160
-    echo "<p><button type='submit' name='submitbutton' value='" . web\lib\common\FormElements::BUTTON_SAVE . "'>" . _("Save data") . "</button><button type='button' class='delete' name='abortbutton' value='abort' onclick='javascript:window.location = \"overview_sp.php?inst_id=$my_inst->identifier\"'>" . _("Discard changes") . "</button></p></form>";
160
+    echo "<p><button type='submit' name='submitbutton' value='".web\lib\common\FormElements::BUTTON_SAVE."'>"._("Save data")."</button><button type='button' class='delete' name='abortbutton' value='abort' onclick='javascript:window.location = \"overview_sp.php?inst_id=$my_inst->identifier\"'>"._("Discard changes")."</button></p></form>";
161 161
     echo $deco->footer();
162 162
     
Please login to merge, or discard this patch.
web/admin/inc/option_xhr.inc.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,11 +19,11 @@
 block discarded – undo
19 19
  *          <base_url>/copyright.php after deploying the software
20 20
  */
21 21
 
22
-require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php";
22
+require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php";
23 23
 
24 24
 \core\CAT::sessionStart();
25 25
 
26
-if (!isset($_GET["class"] )) {
26
+if (!isset($_GET["class"])) {
27 27
     throw new Exception("Unknown type of option!");
28 28
 }
29 29
 
Please login to merge, or discard this patch.
web/admin/inc/toggleRedirect.inc.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
  *          <base_url>/copyright.php after deploying the software
20 20
  */
21 21
 
22
-require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php";
22
+require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php";
23 23
 
24 24
 $auth = new \web\lib\admin\Authentication();
25 25
 $loggerInstance = new \core\common\Logging();
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
         $remaining_attribs = $my_profile->beginFlushMethodLevelAttributes($eaptype->getIntegerRep(), NULL);
86 86
         $optionParser->processSubmittedFields($my_profile, $_POST, $_FILES, $eaptype->getIntegerRep(), NULL);
87 87
     }
88
-    $loggerInstance->writeAudit($_SESSION['user'], "MOD", "Profile " . $my_profile->identifier . " - device/EAP-Type settings changed");
88
+    $loggerInstance->writeAudit($_SESSION['user'], "MOD", "Profile ".$my_profile->identifier." - device/EAP-Type settings changed");
89 89
     header("Location: ../overview_installers.php?inst_id=$my_inst->identifier&profile_id=$my_profile->identifier");
90 90
     exit;
91 91
 }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     }
100 100
     $captiontext = sprintf(_("device <strong>%s</strong>"), $device['display']);
101 101
     $keyword = "device-specific";
102
-    $extrainput = "<input type='hidden' name='device' value='" . $device_key . "'/>";
102
+    $extrainput = "<input type='hidden' name='device' value='".$device_key."'/>";
103 103
 } elseif ($eaptype !== NULL) {
104 104
     foreach ($my_profile->getAttributes() as $attrib) {
105 105
         if (isset($attrib['eapmethod']) && $attrib['eapmethod'] == $eaptype->getArrayRep()) {
@@ -109,12 +109,12 @@  discard block
 block discarded – undo
109 109
 
110 110
     $captiontext = sprintf(_("EAP-Type <strong>%s</strong>"), $eaptype->getPrintableRep());
111 111
     $keyword = "eap-specific";
112
-    $extrainput = "<input type='hidden' name='eaptype' value='" . $eaptype->getIntegerRep() . "'>";
112
+    $extrainput = "<input type='hidden' name='eaptype' value='".$eaptype->getIntegerRep()."'>";
113 113
 } else {
114 114
     throw new Exception("previous type checks make it impossible to reach this code path.");
115 115
 }
116 116
 ?>
117
-<p><?php echo _("Fine-tuning options for ") . $captiontext; ?></p>
117
+<p><?php echo _("Fine-tuning options for ").$captiontext; ?></p>
118 118
 <hr/>
119 119
 
120 120
 <form action='inc/toggleRedirect.inc.php?inst_id=<?php echo $my_inst->identifier; ?>&amp;profile_id=<?php echo $my_profile->identifier; ?>' method='post' accept-charset='UTF-8'><?php echo $extrainput; ?>
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     $interesting_attribs = [];
124 124
 
125 125
     foreach ($attribs as $attrib) {
126
-        if ($attrib['level'] == \core\Options::LEVEL_METHOD && preg_match('/^' . $keyword . ':/', $attrib['name'])) {
126
+        if ($attrib['level'] == \core\Options::LEVEL_METHOD && preg_match('/^'.$keyword.':/', $attrib['name'])) {
127 127
             $interesting_attribs[] = $attrib;
128 128
         }
129 129
     }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     echo $optionDisplay->prefilledOptionTable($keyword, $my_inst->federation);
132 132
     if (\config\Master::DB['INST']['readonly'] === FALSE) {
133 133
         ?>
134
-        <button type='button' class='newoption' onclick='getXML("<?php echo $keyword;?>", "<?php echo $my_inst->federation;?>")'><?php echo _("Add new option"); ?></button>
134
+        <button type='button' class='newoption' onclick='getXML("<?php echo $keyword; ?>", "<?php echo $my_inst->federation; ?>")'><?php echo _("Add new option"); ?></button>
135 135
         <br/>
136 136
         <hr/>
137 137
         <button type='submit' name='submitbutton' id='submitbutton' value='<?php echo web\lib\common\FormElements::BUTTON_SAVE; ?>'><?php echo _("Save data"); ?></button>
Please login to merge, or discard this patch.
web/lib/admin/OptionDisplay.php 1 patch
Spacing   +34 added lines, -34 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      * @return string HTML code <table>
87 87
      */
88 88
     public function prefilledOptionTable(string $attributePrefix, $fed) {
89
-        $retval = "<table id='expandable_$attributePrefix" . "_options'>";
89
+        $retval = "<table id='expandable_$attributePrefix"."_options'>";
90 90
 
91 91
         $prepopulate = [];
92 92
         foreach ($this->listOfOptions as $existingAttribute) {
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
                 $prepopulate[] = $existingAttribute;
95 95
             }
96 96
         }
97
-        if (is_array($prepopulate) && ( count($prepopulate) > 0 || $attributePrefix == "device-specific" || $attributePrefix == "eap-specific" )) { // editing... fill with values
97
+        if (is_array($prepopulate) && (count($prepopulate) > 0 || $attributePrefix == "device-specific" || $attributePrefix == "eap-specific")) { // editing... fill with values
98 98
             $retval .= $this->addOptionEdit($attributePrefix, $prepopulate);
99 99
         } else {
100 100
             $retval .= $this->addOptionNew($attributePrefix, $fed);
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                 $optiontypearray = $optioninfo->optionType($option['name']);
127 127
                 $loggerInstance = new \core\common\Logging();
128 128
                 $loggerInstance->debug(5, "About to execute optiontext with PREFILL!\n");
129
-                $retval .= $this->optiontext([$option['name']], ($optiontypearray["type"] == "file" ? 'ROWID-' . $option['level'] . '-' . $option['row'] : $option['value']), $option['lang']);
129
+                $retval .= $this->optiontext([$option['name']], ($optiontypearray["type"] == "file" ? 'ROWID-'.$option['level'].'-'.$option['row'] : $option['value']), $option['lang']);
130 130
             }
131 131
         }
132 132
         return $retval;
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
         $descriptions["media:force_proxy"] = sprintf(_("The format of this option is: IPv4|IPv6|hostname:port . Forcing your users through a content filter of your own is a significant invasion of user self-determination. It also has technical issues. Please throughly read the discussion at %s before specifying a proxy with this option. This feature is currently experimental and only has an effect in Apple installers."), "https://github.com/GEANT/CAT/issues/96");
223 223
         $descriptions["managedsp:realmforvlan"] = sprintf(_("If you are also using %s, then your own realm is automatically tagged with the VLAN you choose, there is no need to add it here manually."), \core\ProfileSilverbullet::PRODUCTNAME);
224 224
         $descriptions["media:openroaming"] = 
225
-                sprintf(_("By opting in to OpenRoaming, you agree to be bound by the %s."),"eduroam Ecosystem Broker OpenRoaming Identity Provider Policy").
225
+                sprintf(_("By opting in to OpenRoaming, you agree to be bound by the %s."), "eduroam Ecosystem Broker OpenRoaming Identity Provider Policy").
226 226
                 " ".
227 227
                 sprintf(_("Note that your requirement to inform users about the OpenRoaming End User Terms and Conditions is fulfilled when directing your end users to the %s download portal for installer download. Any other means of providing the installers needs to present this information via its own channel."), \config\Master::APPEARANCE['productname']).
228 228
                 " ".
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
         if (!isset($descriptions[$input])) {
234 234
             return "";
235 235
         }
236
-        return "<span class='tooltip' id='S$rowid-tooltip-$input' style='display:" . ($isVisible ? "block" : "none") . "' onclick='alert(\"" . $descriptions[$input] . "\")'><img src='../resources/images/icons/question-mark-icon.png" . "'></span>";
236
+        return "<span class='tooltip' id='S$rowid-tooltip-$input' style='display:".($isVisible ? "block" : "none")."' onclick='alert(\"".$descriptions[$input]."\")'><img src='../resources/images/icons/question-mark-icon.png"."'></span>";
237 237
     }
238 238
 
239 239
     /**
@@ -246,18 +246,18 @@  discard block
 block discarded – undo
246 246
      */
247 247
     private function selectElement($rowid, $list) {
248 248
         $jsmagic = "onchange='
249
-                               if (/#ML#/.test(document.getElementById(\"option-S" . $rowid . "-select\").value)) {
249
+                               if (/#ML#/.test(document.getElementById(\"option-S" . $rowid."-select\").value)) {
250 250
                                    document.getElementById(\"S$rowid-input-langselect\").style.display = \"block\";
251 251
                                    } else {
252 252
                                    document.getElementById(\"S$rowid-input-langselect\").style.display = \"none\";
253 253
                                    }";
254 254
         foreach (array_keys(OptionDisplay::HTML_DATATYPE_TEXTS) as $key) {
255
-            $jsmagic .= "if (/#" . $key . "#/.test(document.getElementById(\"option-S" . $rowid . "-select\").value)) {
256
-                                  document.getElementById(\"S$rowid-input-file\").style.display = \"" . ($key == \core\Options::TYPECODE_FILE ? "block" : "none") . "\";
257
-                                  document.getElementById(\"S$rowid-input-text\").style.display = \"" . ($key == \core\Options::TYPECODE_TEXT ? "block" : "none") . "\";
258
-                                  document.getElementById(\"S$rowid-input-string\").style.display = \"" . ($key == \core\Options::TYPECODE_STRING ? "block" : "none") . "\";
259
-                                  document.getElementById(\"S$rowid-input-boolean\").style.display = \"" . ($key == \core\Options::TYPECODE_BOOLEAN ? "block" : "none") . "\";
260
-                                  document.getElementById(\"S$rowid-input-integer\").style.display = \"" . ($key == \core\Options::TYPECODE_INTEGER ? "block" : "none") . "\";
255
+            $jsmagic .= "if (/#".$key."#/.test(document.getElementById(\"option-S".$rowid."-select\").value)) {
256
+                                  document.getElementById(\"S$rowid-input-file\").style.display = \"".($key == \core\Options::TYPECODE_FILE ? "block" : "none")."\";
257
+                                  document.getElementById(\"S$rowid-input-text\").style.display = \"".($key == \core\Options::TYPECODE_TEXT ? "block" : "none")."\";
258
+                                  document.getElementById(\"S$rowid-input-string\").style.display = \"".($key == \core\Options::TYPECODE_STRING ? "block" : "none")."\";
259
+                                  document.getElementById(\"S$rowid-input-boolean\").style.display = \"".($key == \core\Options::TYPECODE_BOOLEAN ? "block" : "none")."\";
260
+                                  document.getElementById(\"S$rowid-input-integer\").style.display = \"".($key == \core\Options::TYPECODE_INTEGER ? "block" : "none")."\";
261 261
                              }
262 262
                              ";
263 263
             // hide all tooltips (each is a <span>, and there are no other <span>s)
@@ -288,7 +288,7 @@  discard block
 block discarded – undo
288 288
                 $value = array_shift($list);
289 289
                 $listtype = $optioninfo->optionType($value);
290 290
                 $retval .= $uiElements->displayName($value);
291
-                $retval .= "<input type='hidden' name='option[S$rowid]' value='$value#" . $listtype["type"] . "#" . $listtype["flag"] . "#'/>";
291
+                $retval .= "<input type='hidden' name='option[S$rowid]' value='$value#".$listtype["type"]."#".$listtype["flag"]."#'/>";
292 292
                 $activelisttype = $listtype;
293 293
                 $tooltips = $this->tooltip($rowid, $value, TRUE);
294 294
                 break;
@@ -296,7 +296,7 @@  discard block
 block discarded – undo
296 296
                 $retval .= "<select id='option-S$rowid-select' name='option[S$rowid]' $jsmagic>";
297 297
                 foreach ($list as $value) {
298 298
                     $listtype = $optioninfo->optionType($value);
299
-                    $retval .= "<option id='option-S$rowid-v-$value' value='$value#" . $listtype["type"] . "#" . $listtype["flag"] . "#' ";
299
+                    $retval .= "<option id='option-S$rowid-v-$value' value='$value#".$listtype["type"]."#".$listtype["flag"]."#' ";
300 300
                     if ($iterator == $this->optionIterator) {
301 301
                         $retval .= "selected='selected'";
302 302
                         $activelisttype = $listtype;
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
                     } else {
305 305
                         $tooltips .= $this->tooltip($rowid, $value, FALSE);
306 306
                     }
307
-                    $retval .= ">" . $uiElements->displayName($value) . "</option>";
307
+                    $retval .= ">".$uiElements->displayName($value)."</option>";
308 308
                     $iterator++;
309 309
                 }
310 310
 
@@ -329,9 +329,9 @@  discard block
 block discarded – undo
329 329
      */
330 330
     private function selectLanguage($rowid, $makeVisible) {
331 331
         \core\common\Entity::intoThePotatoes();
332
-        $retval = "<select style='display:" . ($makeVisible ? "block" : "none") . "' name='value[S$rowid-lang]' id='S" . $rowid . "-input-langselect'>
333
-            <option value='' name='select_language' selected>" . _("select language") . "</option>
334
-            <option value='C' name='all_languages'>" . _("default/other languages") . "</option>";
332
+        $retval = "<select style='display:".($makeVisible ? "block" : "none")."' name='value[S$rowid-lang]' id='S".$rowid."-input-langselect'>
333
+            <option value='' name='select_language' selected>" . _("select language")."</option>
334
+            <option value='C' name='all_languages'>" . _("default/other languages")."</option>";
335 335
         foreach (\config\Master::LANGUAGES as $langindex => $possibleLang) {
336 336
             $thislang = $possibleLang['display'];
337 337
             $retval .= "<option value='$langindex' name='$langindex'>$thislang</option>";
@@ -359,7 +359,7 @@  discard block
 block discarded – undo
359 359
     private function inputFields($rowid, $activetype) {
360 360
         $retval = "";
361 361
         foreach (OptionDisplay::HTML_DATATYPE_TEXTS as $key => $type) {
362
-            $retval .= "<" . $type['html'] . " style='display:" . ($activetype['type'] == $key ? "block" : "none") . "' name='value[S$rowid-$key]' id='S" . $rowid . "-input-" . $key . "'" . $type['tail'] . ">";
362
+            $retval .= "<".$type['html']." style='display:".($activetype['type'] == $key ? "block" : "none")."' name='value[S$rowid-$key]' id='S".$rowid."-input-".$key."'".$type['tail'].">";
363 363
         }
364 364
         return $retval;
365 365
     }
@@ -374,11 +374,11 @@  discard block
 block discarded – undo
374 374
     private function noPrefillText(int $rowid, array $list) {
375 375
         // first column: the <select> element with the names of options and their field-toggling JS magic
376 376
         $selectorInfo = $this->selectElement($rowid, $list);
377
-        $retval = "<td>" . $selectorInfo["TEXT"] . "</td>";
377
+        $retval = "<td>".$selectorInfo["TEXT"]."</td>";
378 378
         // second column: the <select> element for language selection - only visible if the active option is multi-lang
379
-        $retval .= "<td>" . $this->selectLanguage($rowid, $selectorInfo['ACTIVE']['flag'] == "ML") . "</td>";
379
+        $retval .= "<td>".$this->selectLanguage($rowid, $selectorInfo['ACTIVE']['flag'] == "ML")."</td>";
380 380
         // third column: the actual input fields; the data type of the active option is visible, all others hidden
381
-        $retval .= "<td>" . $this->inputFields($rowid, $selectorInfo['ACTIVE']) . "</td>";
381
+        $retval .= "<td>".$this->inputFields($rowid, $selectorInfo['ACTIVE'])."</td>";
382 382
         return $retval;
383 383
     }
384 384
 
@@ -401,20 +401,20 @@  discard block
 block discarded – undo
401 401
         $retval .= "<td>";
402 402
         $uiElements = new UIElements();
403 403
         $listtype = $optioninfo->optionType($optionName);
404
-        $retval .= "<span style='display:flex;'>" . $uiElements->displayName($optionName);
405
-        $retval .= $this->tooltip($rowid, $optionName, TRUE) . "</span>";
406
-        $retval .= "<input type='hidden' id='option-S$rowid-select' name='option[S$rowid]' value='$optionName#" . $listtype["type"] . "#" . $listtype["flag"] . "#' ></td>";
404
+        $retval .= "<span style='display:flex;'>".$uiElements->displayName($optionName);
405
+        $retval .= $this->tooltip($rowid, $optionName, TRUE)."</span>";
406
+        $retval .= "<input type='hidden' id='option-S$rowid-select' name='option[S$rowid]' value='$optionName#".$listtype["type"]."#".$listtype["flag"]."#' ></td>";
407 407
 
408 408
         // language tag if any
409 409
         $retval .= "<td>";
410 410
         if ($listtype["flag"] == "ML") {
411 411
 
412
-            $language = "(" . strtoupper($optionLang) . ")";
412
+            $language = "(".strtoupper($optionLang).")";
413 413
             if ($optionLang == 'C') {
414 414
                 $language = _("(default/other languages)");
415 415
             }
416 416
             $retval .= $language;
417
-            $retval .= "<input type='hidden' name='value[S$rowid-lang]' id='S" . $rowid . "-input-langselect' value='" . $optionLang . "' style='display:block'>";
417
+            $retval .= "<input type='hidden' name='value[S$rowid-lang]' id='S".$rowid."-input-langselect' value='".$optionLang."' style='display:block'>";
418 418
         }
419 419
         $retval .= "</td>";
420 420
 // attribute content
@@ -424,12 +424,12 @@  discard block
 block discarded – undo
424 424
             case \core\Options::TYPECODE_COORDINATES:
425 425
                 $this->allLocationCount = $this->allLocationCount + 1;
426 426
                 // display of the locations varies by map provider
427
-                $classname = "\web\lib\admin\Map" . \config\ConfAssistant::MAPPROVIDER['PROVIDER'];
427
+                $classname = "\web\lib\admin\Map".\config\ConfAssistant::MAPPROVIDER['PROVIDER'];
428 428
                 $link = $classname::optionListDisplayCode($optionValue, $this->allLocationCount);
429
-                $retval .= "<input readonly style='display:none' type='text' name='value[S$rowid-" . \core\Options::TYPECODE_TEXT . "]' id='S$rowid-input-text' value='$optionValue'>$link";
429
+                $retval .= "<input readonly style='display:none' type='text' name='value[S$rowid-".\core\Options::TYPECODE_TEXT."]' id='S$rowid-input-text' value='$optionValue'>$link";
430 430
                 break;
431 431
             case \core\Options::TYPECODE_FILE:
432
-                $retval .= "<input readonly type='text' name='value[S$rowid-" . \core\Options::TYPECODE_STRING . "]' id='S" . $rowid . "-input-string' style='display:none' value='" . urlencode($optionValue) . "'>";
432
+                $retval .= "<input readonly type='text' name='value[S$rowid-".\core\Options::TYPECODE_STRING."]' id='S".$rowid."-input-string' style='display:none' value='".urlencode($optionValue)."'>";
433 433
                 $uiElements = new UIElements();
434 434
                 switch ($optionName) {
435 435
                     case "eap:ca_file":
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
                 if ($listtype['type'] == \core\Options::TYPECODE_BOOLEAN) {// only modify in this one case
460 460
                     $displayedVariant = ($optionValue == "on" ? _("on") : _("off"));
461 461
                 }
462
-                $retval .= "<strong>$displayedVariant</strong><input type='hidden' name='value[S$rowid-" . $listtype['type'] . "]' id='S" . $rowid . "-input-" . $listtype["type"] . "' value=\"" . htmlspecialchars($optionValue) . "\" style='display:block'>";
462
+                $retval .= "<strong>$displayedVariant</strong><input type='hidden' name='value[S$rowid-".$listtype['type']."]' id='S".$rowid."-input-".$listtype["type"]."' value=\"".htmlspecialchars($optionValue)."\" style='display:block'>";
463 463
                 break;
464 464
             default:
465 465
                 // this should never happen!
@@ -504,10 +504,10 @@  discard block
 block discarded – undo
504 504
        <td>
505 505
           <button type='button' class='delete' onclick='";
506 506
         if ($prefillValue !== NULL && $item == "general:geo_coordinates") {
507
-            $funcname = "Map" . \config\ConfAssistant::MAPPROVIDER['PROVIDER'] . 'DeleteCoord';
508
-            $retval .= 'if (typeof ' . $funcname . ' === "function") { ' . $funcname . '(' . $this->allLocationCount . '); } ';
507
+            $funcname = "Map".\config\ConfAssistant::MAPPROVIDER['PROVIDER'].'DeleteCoord';
508
+            $retval .= 'if (typeof '.$funcname.' === "function") { '.$funcname.'('.$this->allLocationCount.'); } ';
509 509
         }
510
-        $retval .= 'deleteOption("option-S' . $rowid . '")';
510
+        $retval .= 'deleteOption("option-S'.$rowid.'")';
511 511
         $retval .= "'>-</button>
512 512
        </td>
513 513
     </tr>";
Please login to merge, or discard this patch.
web/skins/modern/user/js/cat_js.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
         otherdata = j.otherdata;
148 148
     if(! result) {
149 149
       alert(guiTexts.noMatchingData);
150
-      document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/') . '/' ?>';
150
+      document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/').'/' ?>';
151 151
     }
152 152
     j = j.data;
153 153
     n = j.length;
@@ -284,7 +284,7 @@  discard block
 block discarded – undo
284 284
        result = j1.status;
285 285
        if(! result) {
286 286
             alert(guiTexts.noMatchingData);
287
-            document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/') . '/' ?>';
287
+            document.location.href='<?php echo rtrim(dirname($_SERVER['SCRIPT_NAME']), '/').'/' ?>';
288 288
        }
289 289
        j = j1.data;
290 290
        if(j.description !== undefined && j.description) {
Please login to merge, or discard this patch.
config/ConfAssistant-template.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
                     ], 
91 91
                 'condition' => TRUE],
92 92
             'OpenRoaming®' => [
93
-                'ssid' => [],     /* OpenRoaming has left SSIDs behind */
93
+                'ssid' => [], /* OpenRoaming has left SSIDs behind */
94 94
                 'oi' => [
95 95
                     '5A03BA0000', /* OpenRoaming/AllIdentities/SettlementFree/NoPersonalData/BaselineQoS */
96 96
                     '5A03BA0800', /* OpenRoaming/EduIdentities/SettlementFree/NoPersonalData/BaselineQoS */
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
     const PATHS = [
151 151
         'makensis' => 'makensis',
152 152
         'trust-store-mozilla' => '/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem',
153
-        'trust-store-custom' => __DIR__ . "/known-roots.pem",
153
+        'trust-store-custom' => __DIR__."/known-roots.pem",
154 154
     ];
155 155
 
156 156
     /**
@@ -188,13 +188,13 @@  discard block
 block discarded – undo
188 188
             'db' => 'radacct',
189 189
             'user' => 'someuser',
190 190
             'pass' => 'somepass',
191
-            'readonly' => TRUE,],
191
+            'readonly' => TRUE, ],
192 192
         'RADIUS_2' => [
193 193
             'host' => 'auth-2.hosted.eduroam.org',
194 194
             'db' => 'radacct',
195 195
             'user' => 'someuser',
196 196
             'pass' => 'somepass',
197
-            'readonly' => TRUE,],
197
+            'readonly' => TRUE, ],
198 198
     ];
199 199
 
200 200
     /**
Please login to merge, or discard this patch.