Test Setup Failed
Push — master ( e08099...578d16 )
by Stefan
05:59
created
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."), config\ConfAssistant::SILVERBULLET['product_name']) ." " . _("This is the contact point for your organisation. It may be displayed publicly.") . "</p>";
194
+                echo "<p>".sprintf(_("For %s deployments, providing at least a local e-mail contact is required."), config\ConfAssistant::SILVERBULLET['product_name'])." "._("This is the contact point for your organisation. It may be displayed publicly.")."</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.
core/SanityTests.php 1 patch
Spacing   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         $this->test_result = [];
130 130
         $this->test_result['global'] = 0;
131 131
         // parse the schema file to find out the number of expected rows...
132
-        $schema = file(dirname(dirname(__FILE__)) . "/schema/schema.sql");
132
+        $schema = file(dirname(dirname(__FILE__))."/schema/schema.sql");
133 133
         $this->profileOptionCount = 0;
134 134
         $passedTheWindmill = FALSE;
135 135
         foreach ($schema as $schemaLine) {
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
     {
157 157
         $this->out[$test] = [];
158 158
         $this->name = $test;
159
-        $m_name = 'test' . $test;
159
+        $m_name = 'test'.$test;
160 160
         $this->test_result[$test] = 0;
161 161
         if (!method_exists($this, $m_name)) {
162 162
             $this->storeTestResult(\core\common\Entity::L_ERROR, "Configuration error, no test configured for <strong>$test</strong>.");
@@ -269,9 +269,9 @@  discard block
 block discarded – undo
269 269
     private function testPhp()
270 270
     {
271 271
         if (version_compare(phpversion(), $this->needversionPHP, '>=')) {
272
-            $this->storeTestResult(\core\common\Entity::L_OK, "<strong>PHP</strong> is sufficiently recent. You are running " . phpversion() . ".");
272
+            $this->storeTestResult(\core\common\Entity::L_OK, "<strong>PHP</strong> is sufficiently recent. You are running ".phpversion().".");
273 273
         } else {
274
-            $this->storeTestResult(\core\common\Entity::L_ERROR, "<strong>PHP</strong> is too old. We need at least $this->needversionPHP, but you only have " . phpversion() . ".");
274
+            $this->storeTestResult(\core\common\Entity::L_ERROR, "<strong>PHP</strong> is too old. We need at least $this->needversionPHP, but you only have ".phpversion().".");
275 275
         }
276 276
     }
277 277
     
@@ -284,12 +284,12 @@  discard block
 block discarded – undo
284 284
      */
285 285
     private function runConstantsTest($config)
286 286
     {
287
-        $templateConfig = file_get_contents(ROOT . "/config/$config-template.php");
288
-        $newTemplateConfig = preg_replace("/class *$config/", "class $config" . "_template", $templateConfig);
289
-        file_put_contents(ROOT . "/var/tmp/$config-template.php", $newTemplateConfig);
290
-        include(ROOT . "/var/tmp/$config-template.php");
291
-        unlink(ROOT . "/var/tmp/$config-template.php");
292
-        $rft = new \ReflectionClass("\config\\$config" . "_template");
287
+        $templateConfig = file_get_contents(ROOT."/config/$config-template.php");
288
+        $newTemplateConfig = preg_replace("/class *$config/", "class $config"."_template", $templateConfig);
289
+        file_put_contents(ROOT."/var/tmp/$config-template.php", $newTemplateConfig);
290
+        include(ROOT."/var/tmp/$config-template.php");
291
+        unlink(ROOT."/var/tmp/$config-template.php");
292
+        $rft = new \ReflectionClass("\config\\$config"."_template");
293 293
         $templateConstants = $rft->getConstants();
294 294
         $failResults = [];
295 295
         foreach ($templateConstants as $constant => $value) {
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
      * Check if all required constants are set
307 307
      */
308 308
     private function testConfigConstants() {
309
-        set_error_handler(function ($severity, $message, $file, $line) {
309
+        set_error_handler(function($severity, $message, $file, $line) {
310 310
             throw new \ErrorException($message, $severity, $severity, $file, $line);
311 311
         });
312 312
         
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
             $failCount = $failCount + count($failResults);
318 318
             if (count($failResults) > 0) {
319 319
             $this->storeTestResult(\core\common\Entity::L_ERROR, 
320
-                    "<strong>The following constants are not set:</strong>" . implode(', ', $failResults));
320
+                    "<strong>The following constants are not set:</strong>".implode(', ', $failResults));
321 321
             }
322 322
         }
323 323
         
@@ -341,7 +341,7 @@  discard block
 block discarded – undo
341 341
             $this->storeTestResult(\core\common\Entity::L_OK, "<strong>cat_base_url</strong> set correctly");
342 342
         } else {
343 343
             $rootFromScript = $m[1] === '' ? '/' : $m[1];
344
-            $this->storeTestResult(\core\common\Entity::L_ERROR, "<strong>cat_base_url</strong> is set to <strong>" . \config\Master::PATHS['cat_base_url'] . "</strong> and should be <strong>$rootFromScript</strong>");
344
+            $this->storeTestResult(\core\common\Entity::L_ERROR, "<strong>cat_base_url</strong> is set to <strong>".\config\Master::PATHS['cat_base_url']."</strong> and should be <strong>$rootFromScript</strong>");
345 345
         }
346 346
     }
347 347
 
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
         if (count($probeReturns) == 0) {
363 363
             $this->storeTestResult(common\Entity::L_OK, "All configured RADIUS/UDP probes are reachable.");
364 364
         } else {
365
-            $this->storeTestResult(common\Entity::L_ERROR, "The following RADIUS probes are NOT reachable: " . implode(', ', $probeReturns));
365
+            $this->storeTestResult(common\Entity::L_ERROR, "The following RADIUS probes are NOT reachable: ".implode(', ', $probeReturns));
366 366
         }
367 367
     }
368 368
 
@@ -380,9 +380,9 @@  discard block
 block discarded – undo
380 380
             $SSPconfig = \SimpleSAML\Configuration::getInstance();
381 381
             $sspVersion = explode('.', $SSPconfig->getVersion());
382 382
             if ((int) $sspVersion[0] >= $this->needversionSSP['major'] && (int) $sspVersion[1] >= $this->needversionSSP['minor']) {
383
-                $this->storeTestResult(\core\common\Entity::L_OK, "<strong>simpleSAMLphp</strong> is sufficently recent. You are running " . implode('.', $sspVersion));
383
+                $this->storeTestResult(\core\common\Entity::L_OK, "<strong>simpleSAMLphp</strong> is sufficently recent. You are running ".implode('.', $sspVersion));
384 384
             } else {
385
-                $this->storeTestResult(\core\common\Entity::L_ERROR, "<strong>simpleSAMLphp</strong> is too old. We need at least " . implode('.', $this->needversionSSP));
385
+                $this->storeTestResult(\core\common\Entity::L_ERROR, "<strong>simpleSAMLphp</strong> is too old. We need at least ".implode('.', $this->needversionSSP));
386 386
             }
387 387
         }
388 388
     }
@@ -409,7 +409,7 @@  discard block
 block discarded – undo
409 409
         $A = $this->getExecPath('zip');
410 410
         if ($A['exec'] != "") {
411 411
             $fullOutput = [];
412
-            $t = exec($A['exec'] . ' --version', $fullOutput);
412
+            $t = exec($A['exec'].' --version', $fullOutput);
413 413
             if ($A['exec_is'] == "EXPLICIT") {
414 414
                 $this->storeTestResult(\core\common\Entity::L_OK, "<strong>".$fullOutput[1]."</strong> was found and is configured explicitly in your config.");
415 415
             } else {
@@ -447,8 +447,8 @@  discard block
 block discarded – undo
447 447
      */
448 448
     private function testLogdir()
449 449
     {
450
-        if (fopen(\config\Master::PATHS['logdir'] . "/debug.log", "a") == FALSE) {
451
-            $this->storeTestResult(\core\common\Entity::L_WARN, "Log files in <strong>" . \config\Master::PATHS['logdir'] . "</strong> are not writable!");
450
+        if (fopen(\config\Master::PATHS['logdir']."/debug.log", "a") == FALSE) {
451
+            $this->storeTestResult(\core\common\Entity::L_WARN, "Log files in <strong>".\config\Master::PATHS['logdir']."</strong> are not writable!");
452 452
         } else {
453 453
             $this->storeTestResult(\core\common\Entity::L_OK, "Log directory is writable.");
454 454
         }
@@ -480,7 +480,7 @@  discard block
 block discarded – undo
480 480
         }
481 481
 
482 482
         $classname = 'Imagick';
483
-        if (class_exists('\\' . $classname)) {
483
+        if (class_exists('\\'.$classname)) {
484 484
             $this->storeTestResult(\core\common\Entity::L_OK, "PHP extension <strong>Imagick</strong> is installed.");
485 485
         } else {
486 486
             $this->storeTestResult(\core\common\Entity::L_ERROR, "PHP extension <strong>Imagick</strong> not found! Get it from your distribution or <a href='http://pecl.php.net/package/imagick'>here</a>.");
@@ -576,7 +576,7 @@  discard block
 block discarded – undo
576 576
     {
577 577
         $A = $this->getExecPath('openssl');
578 578
         if ($A['exec'] != "") {
579
-            $t = exec($A['exec'] . ' version');
579
+            $t = exec($A['exec'].' version');
580 580
             if ($A['exec_is'] == "EXPLICIT") {
581 581
                 $this->storeTestResult(\core\common\Entity::L_OK, "<strong>$t</strong> was found and is configured explicitly in your config.");
582 582
             } else {
@@ -604,14 +604,14 @@  discard block
 block discarded – undo
604 604
         }
605 605
         $A = $this->getExecPath('makensis');
606 606
         if ($A['exec'] != "") {
607
-            $t = exec($A['exec'] . ' -VERSION');
607
+            $t = exec($A['exec'].' -VERSION');
608 608
             if ($A['exec_is'] == "EXPLICIT") {
609 609
                 $this->storeTestResult(\core\common\Entity::L_OK, "<strong>makensis $t</strong> was found and is configured explicitly in your config.");
610 610
             } else {
611 611
                 $this->storeTestResult(\core\common\Entity::L_WARN, "<strong>makensis $t</strong> was found, but is not configured with an absolute path in your config.");
612 612
             }
613 613
             $outputArray = [];
614
-            exec($A['exec'] . ' -HELP', $outputArray);
614
+            exec($A['exec'].' -HELP', $outputArray);
615 615
             $t1 = count(preg_grep('/INPUTCHARSET/', $outputArray));
616 616
             if ($t1 == 1 && \config\ConfAssistant::NSIS_VERSION == 2) {
617 617
                 $this->storeTestResult(\core\common\Entity::L_ERROR, "Declared NSIS_VERSION does not seem to match the file pointed to by PATHS['makensis']!");
@@ -641,7 +641,7 @@  discard block
 block discarded – undo
641 641
         $NSIS_Module_status = [];
642 642
         foreach ($this->NSISModules as $module) {
643 643
             unset($out);
644
-            exec(\config\ConfAssistant::PATHS['makensis'] . " -V1 '-X!include $module' '-XOutFile $exe' '-XSection X' '-XSectionEnd'", $out, $retval);
644
+            exec(\config\ConfAssistant::PATHS['makensis']." -V1 '-X!include $module' '-XOutFile $exe' '-XSection X' '-XSectionEnd'", $out, $retval);
645 645
             if ($retval > 0) {
646 646
                 $NSIS_Module_status[$module] = 0;
647 647
             } else {
@@ -708,8 +708,8 @@  discard block
 block discarded – undo
708 708
         $locales = shell_exec("locale -a");
709 709
         $allthere = "";
710 710
         foreach (\config\Master::LANGUAGES as $onelanguage) {
711
-            if (preg_match("/" . $onelanguage['locale'] . "/", $locales) == 0) {
712
-                $allthere .= $onelanguage['locale'] . " ";
711
+            if (preg_match("/".$onelanguage['locale']."/", $locales) == 0) {
712
+                $allthere .= $onelanguage['locale']." ";
713 713
             }
714 714
         }
715 715
         if ($allthere == "") {
@@ -723,47 +723,47 @@  discard block
 block discarded – undo
723 723
         ["SETTING" => \config\Master::APPEARANCE['from-mail'],
724 724
             "DEFVALUE" => "[email protected]",
725 725
             "COMPLAINTSTRING" => "APPEARANCE/from-mail ",
726
-            "REQUIRED" => FALSE,],
726
+            "REQUIRED" => FALSE, ],
727 727
         ["SETTING" => \config\Master::APPEARANCE['support-contact']['url'],
728 728
             "DEFVALUE" => "[email protected]?body=Only%20English%20language%20please!",
729 729
             "COMPLAINTSTRING" => "APPEARANCE/support-contact/url ",
730
-            "REQUIRED" => FALSE,],
730
+            "REQUIRED" => FALSE, ],
731 731
         ["SETTING" => \config\Master::APPEARANCE['support-contact']['display'],
732 732
             "DEFVALUE" => "[email protected]",
733 733
             "COMPLAINTSTRING" => "APPEARANCE/support-contact/display ",
734
-            "REQUIRED" => FALSE,],
734
+            "REQUIRED" => FALSE, ],
735 735
         ["SETTING" => \config\Master::APPEARANCE['support-contact']['developer-mail'],
736 736
             "DEFVALUE" => "[email protected]",
737 737
             "COMPLAINTSTRING" => "APPEARANCE/support-contact/mail ",
738
-            "REQUIRED" => FALSE,],
738
+            "REQUIRED" => FALSE, ],
739 739
         ["SETTING" => \config\Master::APPEARANCE['abuse-mail'],
740 740
             "DEFVALUE" => "[email protected]",
741 741
             "COMPLAINTSTRING" => "APPEARANCE/abuse-mail ",
742
-            "REQUIRED" => FALSE,],
742
+            "REQUIRED" => FALSE, ],
743 743
         ["SETTING" => \config\Master::APPEARANCE['MOTD'],
744 744
             "DEFVALUE" => "Release Candidate. All bugs to be shot on sight!",
745 745
             "COMPLAINTSTRING" => "APPEARANCE/MOTD ",
746
-            "REQUIRED" => FALSE,],
746
+            "REQUIRED" => FALSE, ],
747 747
         ["SETTING" => \config\Master::APPEARANCE['webcert_CRLDP'],
748 748
             "DEFVALUE" => ['list', 'of', 'CRL', 'pointers'],
749 749
             "COMPLAINTSTRING" => "APPEARANCE/webcert_CRLDP ",
750
-            "REQUIRED" => TRUE,],
750
+            "REQUIRED" => TRUE, ],
751 751
         ["SETTING" => \config\Master::APPEARANCE['webcert_OCSP'],
752 752
             "DEFVALUE" => ['list', 'of', 'OCSP', 'pointers'],
753 753
             "COMPLAINTSTRING" => "APPEARANCE/webcert_OCSP ",
754
-            "REQUIRED" => TRUE,],
754
+            "REQUIRED" => TRUE, ],
755 755
         ["SETTING" => \config\Master::DB['INST']['host'],
756 756
             "DEFVALUE" => "db.host.example",
757 757
             "COMPLAINTSTRING" => "DB/INST ",
758
-            "REQUIRED" => TRUE,],
758
+            "REQUIRED" => TRUE, ],
759 759
         ["SETTING" => \config\Master::DB['INST']['host'],
760 760
             "DEFVALUE" => "db.host.example",
761 761
             "COMPLAINTSTRING" => "DB/USER ",
762
-            "REQUIRED" => TRUE,],
762
+            "REQUIRED" => TRUE, ],
763 763
         ["SETTING" => \config\Master::DB['EXTERNAL']['host'],
764 764
             "DEFVALUE" => "customerdb.otherhost.example",
765 765
             "COMPLAINTSTRING" => "DB/EXTERNAL ",
766
-            "REQUIRED" => FALSE,],
766
+            "REQUIRED" => FALSE, ],
767 767
     ];
768 768
 
769 769
     /**
@@ -792,11 +792,11 @@  discard block
 block discarded – undo
792 792
         if (isset(\config\Diagnostics::RADIUSTESTS['TLS-clientcerts'])) {
793 793
             foreach (\config\Diagnostics::RADIUSTESTS['TLS-clientcerts'] as $cadata) {
794 794
                 foreach ($cadata['certificates'] as $cert_files) {
795
-                    if (file_get_contents(ROOT . "/config/cli-certs/" . $cert_files['public']) === FALSE) {
796
-                        $defaultvalues .= "CERTIFICATE/" . $cert_files['public'] . " ";
795
+                    if (file_get_contents(ROOT."/config/cli-certs/".$cert_files['public']) === FALSE) {
796
+                        $defaultvalues .= "CERTIFICATE/".$cert_files['public']." ";
797 797
                     }
798
-                    if (file_get_contents(ROOT . "/config/cli-certs/" . $cert_files['private']) === FALSE) {
799
-                        $defaultvalues .= "CERTIFICATE/" . $cert_files['private'] . " ";
798
+                    if (file_get_contents(ROOT."/config/cli-certs/".$cert_files['private']) === FALSE) {
799
+                        $defaultvalues .= "CERTIFICATE/".$cert_files['private']." ";
800 800
                     }
801 801
                 }
802 802
             }
@@ -889,14 +889,14 @@  discard block
 block discarded – undo
889 889
         if ($global_no_cache) {
890 890
             foreach ($Devs as $dev => $D) {
891 891
                 if (empty($D['options']['no_cache']) || $D['options']['no_cache'] != 0) {
892
-                    $no_cache_dev .= $dev . " ";
892
+                    $no_cache_dev .= $dev." ";
893 893
                     $no_cache_dev_count++;
894 894
                 }
895 895
             }
896 896
         } else {
897 897
             foreach ($Devs as $dev => $D) {
898 898
                 if (!empty($D['options']['no_cache']) && $D['options']['no_cache'] != 0) {
899
-                    $no_cache_dev .= $dev . " ";
899
+                    $no_cache_dev .= $dev." ";
900 900
                     $no_cache_dev_count++;
901 901
                 }
902 902
             }
@@ -935,13 +935,13 @@  discard block
 block discarded – undo
935 935
         $mail->isHTML(FALSE);
936 936
         $mail->CharSet = 'UTF-8';
937 937
         $mail->From = \config\Master::APPEARANCE['from-mail'];
938
-        $mail->FromName = \config\Master::APPEARANCE['productname'] . " Invitation System";
938
+        $mail->FromName = \config\Master::APPEARANCE['productname']." Invitation System";
939 939
         $mail->addAddress(\config\Master::APPEARANCE['abuse-mail']);
940 940
         $mail->Subject = "testing CAT configuration mail";
941 941
         $mail->Body = "Testing CAT mailing\n";
942 942
         $sent = $mail->send();
943 943
         if ($sent) {
944
-            $this->storeTestResult(\core\common\Entity::L_OK, "mailer settings appear to be working, check " . \config\Master::APPEARANCE['abuse-mail'] . " mailbox if the message was receiced.");
944
+            $this->storeTestResult(\core\common\Entity::L_OK, "mailer settings appear to be working, check ".\config\Master::APPEARANCE['abuse-mail']." mailbox if the message was receiced.");
945 945
         } else {
946 946
             $this->storeTestResult(\core\common\Entity::L_ERROR, "mailer settings failed, check the Config::MAILSETTINGS");
947 947
         }
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 */
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         'makensis' => 'makensis',
156 156
         'zip' => 'zip',
157 157
         'trust-store-mozilla' => '/etc/pki/ca-trust/extracted/pem/tls-ca-bundle.pem',
158
-        'trust-store-custom' => __DIR__ . "/known-roots.pem",
158
+        'trust-store-custom' => __DIR__."/known-roots.pem",
159 159
     ];
160 160
 
161 161
     /**
@@ -193,13 +193,13 @@  discard block
 block discarded – undo
193 193
             'db' => 'radacct',
194 194
             'user' => 'someuser',
195 195
             'pass' => 'somepass',
196
-            'readonly' => TRUE,],
196
+            'readonly' => TRUE, ],
197 197
         'RADIUS_2' => [
198 198
             'host' => 'auth-2.hosted.eduroam.org',
199 199
             'db' => 'radacct',
200 200
             'user' => 'someuser',
201 201
             'pass' => 'somepass',
202
-            'readonly' => TRUE,],
202
+            'readonly' => TRUE, ],
203 203
     ];
204 204
 
205 205
     /**
Please login to merge, or discard this patch.
web/admin/edit_hotspot.php 1 patch
Spacing   +8 added lines, -8 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();
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 if (!isset($_GET['deployment_id'])) {
39 39
     if (isset($_POST['consortium']) && count($myfed->getAttributes("fed:openroaming")) > 0) {
40 40
         $my_inst->newDeployment(\core\AbstractDeployment::DEPLOYMENTTYPE_MANAGED, $_POST['consortium']);
41
-        header("Location: overview_org.php?inst_id=" . $my_inst->identifier);
41
+        header("Location: overview_org.php?inst_id=".$my_inst->identifier);
42 42
         exit(0);
43 43
     } else {
44 44
         throw new Exception("Desired consortium for Managed SP needs to be specified, and allowed!");
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
         if (in_array('OK', $response)) {
54 54
             $deployment->deactivate();
55 55
         }
56
-        header("Location: overview_org.php?inst_id=" . $my_inst->identifier . '&' . urldecode(http_build_query($response)));
56
+        header("Location: overview_org.php?inst_id=".$my_inst->identifier.'&'.urldecode(http_build_query($response)));
57 57
         exit(0);
58 58
     }
59 59
 
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         if (in_array('OK', $response)) {
63 63
             $deployment->activate();
64 64
         }
65
-        header("Location: overview_org.php?inst_id=" . $my_inst->identifier . '&' . urldecode(http_build_query($response)));
65
+        header("Location: overview_org.php?inst_id=".$my_inst->identifier.'&'.urldecode(http_build_query($response)));
66 66
         exit(0);
67 67
     }
68 68
 
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         } else {
85 85
             $response = ['NOOP', 'NOOP'];
86 86
         }
87
-        header("Location: overview_org.php?inst_id=" . $my_inst->identifier . '&' . urldecode(http_build_query($response)));
87
+        header("Location: overview_org.php?inst_id=".$my_inst->identifier.'&'.urldecode(http_build_query($response)));
88 88
         exit(0);
89 89
     }
90 90
 }
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
     echo $uiElements->instLevelInfoBoxes($my_inst);
113 113
     $deploymentOptions = $deployment->getAttributes();
114 114
     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'>
115
-                <input type='hidden' name='MAX_FILE_SIZE' value='" . \config\Master::MAX_UPLOAD_SIZE . "'>";
115
+                <input type='hidden' name='MAX_FILE_SIZE' value='".\config\Master::MAX_UPLOAD_SIZE."'>";
116 116
     $optionDisplay = new \web\lib\admin\OptionDisplay($deploymentOptions, \core\Options::LEVEL_PROFILE);
117 117
     ?>
118 118
     <fieldset class='option_container' id='managedsp_override'>
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
                 <!-- input for VLAN identifier for home users-->
145 145
                 <td>
146 146
                     <span id='vlan_label'>
147
-<?php echo sprintf(_("VLAN tag for own users%s:"), ($vlan === NULL ? "" : " " . _("(unset with '0')"))); ?>
147
+<?php echo sprintf(_("VLAN tag for own users%s:"), ($vlan === NULL ? "" : " "._("(unset with '0')"))); ?>
148 148
                     </span>
149 149
                 </td>
150 150
                 <td>
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
     </fieldset>
165 165
 
166 166
     <?php
167
-    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_org.php?inst_id=$my_inst->identifier\"'>" . _("Discard changes") . "</button></p></form>";
167
+    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_org.php?inst_id=$my_inst->identifier\"'>"._("Discard changes")."</button></p></form>";
168 168
     echo $deco->footer();
169 169
 
170 170
     
171 171
\ No newline at end of file
Please login to merge, or discard this patch.
web/admin/overview_org.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();
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 } else {
39 39
     $link = 'http://';
40 40
 }
41
-$link .= $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME'];
41
+$link .= $_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME'];
42 42
 $link = htmlspecialchars($link);
43 43
 
44 44
 echo $deco->defaultPagePrelude(sprintf(_("%s: %s Dashboard"), \config\Master::APPEARANCE['productname'], $uiElements->nomenclatureParticipant));
@@ -173,14 +173,14 @@  discard block
 block discarded – undo
173 173
                                     <ul style='margin:1px'>
174 174
                                     <?php
175 175
                                     foreach ($completeness as $missing_attrib) {
176
-                                        echo "<li>" . $uiElements->displayName($missing_attrib) . "</li>";
176
+                                        echo "<li>".$uiElements->displayName($missing_attrib)."</li>";
177 177
                                     }
178 178
                                     ?>
179 179
                                     </ul>
180 180
                                 </div>
181 181
                 <?php
182 182
             } else {
183
-                echo sprintf(_("You can create up to %d users."), $maxusers[0]['value']) . "<br/>" . sprintf(_("Their credentials will carry the name <strong>%s</strong>."), $profile_list->realm);
183
+                echo sprintf(_("You can create up to %d users."), $maxusers[0]['value'])."<br/>".sprintf(_("Their credentials will carry the name <strong>%s</strong>."), $profile_list->realm);
184 184
             }
185 185
             ?>
186 186
                             <br/>
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
             if ($readonly === FALSE) {
190 190
                 ?>
191 191
                                 <form action='edit_silverbullet.php?inst_id=<?php echo $my_inst->identifier; ?>&amp;profile_id=<?php echo $profile_list->identifier; ?>' method='POST'>
192
-                                    <button <?php echo ( is_array($completeness) ? "disabled" : "" ); ?> type='submit' name='sb_action' value='sb_edit'><?php echo _("Manage User Base"); ?></button>
192
+                                    <button <?php echo (is_array($completeness) ? "disabled" : ""); ?> type='submit' name='sb_action' value='sb_edit'><?php echo _("Manage User Base"); ?></button>
193 193
                                 </form>
194 194
                 <?php
195 195
             }
@@ -214,21 +214,21 @@  discard block
 block discarded – undo
214 214
                                 $has_overrides = TRUE;
215 215
                             }
216 216
                         }
217
-                        $buffer_eaptypediv = "<div style='margin-bottom:40px; float:left;'>" . _("<strong>EAP Types</strong> (in order of preference):") . "<br/>";
217
+                        $buffer_eaptypediv = "<div style='margin-bottom:40px; float:left;'>"._("<strong>EAP Types</strong> (in order of preference):")."<br/>";
218 218
                         $typelist = $profile_list->getEapMethodsinOrderOfPreference();
219 219
                         $allcomplete = TRUE;
220 220
                         foreach ($typelist as $eaptype) {
221 221
                             $buffer_eaptypediv .= $eaptype->getPrintableRep();
222 222
                             $completeness = $profile_list->isEapTypeDefinitionComplete($eaptype);
223 223
                             if ($completeness === true) {
224
-                                $buffer_eaptypediv .= " <div class='acceptable'>" . _("OK") . "</div>";
224
+                                $buffer_eaptypediv .= " <div class='acceptable'>"._("OK")."</div>";
225 225
                             } else {
226 226
                                 $buffer_eaptypediv .= " <div class='notacceptable'>";
227 227
                                 $buffer_eaptypediv .= _("Information needed!");
228 228
                                 if (is_array($completeness)) {
229 229
                                     $buffer_eaptypediv .= "<ul style='margin:1px'>";
230 230
                                     foreach ($completeness as $missing_attrib) {
231
-                                        $buffer_eaptypediv .= "<li>" . $uiElements->displayName($missing_attrib) . "</li>";
231
+                                        $buffer_eaptypediv .= "<li>".$uiElements->displayName($missing_attrib)."</li>";
232 232
                                     }
233 233
                                     $buffer_eaptypediv .= "</ul>";
234 234
                                 }
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
                             foreach ($attribs as $attrib) {
241 241
                                 if ($attrib['level'] == \core\Options::LEVEL_METHOD && !preg_match("/^internal:/", $attrib['name']) && !$justOnce) {
242 242
                                     $justOnce = TRUE;
243
-                                    $buffer_eaptypediv .= "<img src='../resources/images/icons/Letter-E-blue-icon.png' alt='" . _("Options on EAP Method/Device level are in effect.") . "'>";
243
+                                    $buffer_eaptypediv .= "<img src='../resources/images/icons/Letter-E-blue-icon.png' alt='"._("Options on EAP Method/Device level are in effect.")."'>";
244 244
                                 }
245 245
                             }
246 246
                             $buffer_eaptypediv .= "<br/>";
@@ -278,10 +278,10 @@  discard block
 block discarded – undo
278 278
                             if (\config\Master::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS'] == "LOCAL") {
279 279
                                 $diagUrl = "../diag/";
280 280
                             } else {
281
-                                $diagUrl = \config\Master::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS'] . "/diag/";
281
+                                $diagUrl = \config\Master::FUNCTIONALITY_LOCATIONS['DIAGNOSTICS']."/diag/";
282 282
                             }
283 283
                             ?>
284
-                                <form action='<?php echo $diagUrl . "action_realmcheck.php?inst_id=" . $my_inst->identifier . "&profile_id=" . $profile_list->identifier ?>' method='post' accept-charset='UTF-8'>
284
+                                <form action='<?php echo $diagUrl."action_realmcheck.php?inst_id=".$my_inst->identifier."&profile_id=".$profile_list->identifier ?>' method='post' accept-charset='UTF-8'>
285 285
                                     <input type='hidden' name='comefrom' id='comefrom-<?php echo $profilecount; ?>' value='<?php echo $link; ?>'/>
286 286
                                     <button type='submit' name='profile_action' value='check' <?php echo ($has_realm ? "" : "disabled='disabled'"); ?> title='<?php echo _("The realm can only be checked if you configure the realm!"); ?>'>
287 287
                 <?php echo _("Check realm reachability"); ?>
@@ -315,9 +315,9 @@  discard block
 block discarded – undo
315 315
                 ?>
316 316
                                 <div style='display: flex;'>
317 317
                                 <?php
318
-                                $idpLevelUrl = ( isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://') . $_SERVER['SERVER_NAME'] . dirname(dirname($_SERVER['SCRIPT_NAME'])) . "?idp=" . $my_inst->identifier;
319
-                                $displayurl = $idpLevelUrl . "&amp;profile=" . $profile_list->identifier;
320
-                                $QRurl = $idpLevelUrl . "&profile=" . $profile_list->identifier;
318
+                                $idpLevelUrl = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == "on" ? 'https://' : 'http://').$_SERVER['SERVER_NAME'].dirname(dirname($_SERVER['SCRIPT_NAME']))."?idp=".$my_inst->identifier;
319
+                                $displayurl = $idpLevelUrl."&amp;profile=".$profile_list->identifier;
320
+                                $QRurl = $idpLevelUrl."&profile=".$profile_list->identifier;
321 321
                                 $qrCode = new \chillerlan\QRCode\QRCode(new \chillerlan\QRCode\QROptions([
322 322
                                             'outputType' => \chillerlan\QRCode\QRCode::OUTPUT_IMAGE_PNG,
323 323
                                             'eccLevel' => \chillerlan\QRCode\QRCode::ECC_H,
@@ -329,9 +329,9 @@  discard block
 block discarded – undo
329 329
                                 if (empty($rawQr)) {
330 330
                                     throw new Exception("Something went seriously wrong during QR code generation!");
331 331
                                 }
332
-                                $uri = "data:image/png;base64," . base64_encode($uiElements->pngInjectConsortiumLogo($rawQr, web\lib\admin\UIElements::QRCODE_PIXELS_PER_SYMBOL));
332
+                                $uri = "data:image/png;base64,".base64_encode($uiElements->pngInjectConsortiumLogo($rawQr, web\lib\admin\UIElements::QRCODE_PIXELS_PER_SYMBOL));
333 333
                                 $size = getimagesize($uri);
334
-                                echo "<img width='" . ($size[0] / 4) . "' height='" . ($size[1] / 4) . "' src='$uri' alt='QR-code'/>";
334
+                                echo "<img width='".($size[0] / 4)."' height='".($size[1] / 4)."' src='$uri' alt='QR-code'/>";
335 335
 
336 336
                                 //echo "<nobr>$displayurl</nobr></a>";
337 337
                                 echo "<p>$displayurl</p></a>";
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
                     <div>
382 382
                         <input type="hidden" name="consortium" value="eduroam"/>
383 383
                         <button type='submit' <?php echo ($hasMail > 0 ? "" : "disabled"); ?> name='profile_action' value='new'>
384
-        <?php echo sprintf(_("Add %s deployment ..."), \config\ConfAssistant::CONSORTIUM['name'] . " " . \core\DeploymentManaged::PRODUCTNAME); ?>
384
+        <?php echo sprintf(_("Add %s deployment ..."), \config\ConfAssistant::CONSORTIUM['name']." ".\core\DeploymentManaged::PRODUCTNAME); ?>
385 385
                         </button>
386 386
 
387 387
                     </div>
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
         <?php
408 408
         $hotspotProfiles = $my_inst->listDeployments();
409 409
         if (count($hotspotProfiles) == 0) { // no profiles yet.
410
-            echo "<h2>" . sprintf(_("There are not yet any known deployments for your %s."), $uiElements->nomenclatureHotspot) . "</h2>";
410
+            echo "<h2>".sprintf(_("There are not yet any known deployments for your %s."), $uiElements->nomenclatureHotspot)."</h2>";
411 411
         }
412 412
 
413 413
         foreach ($hotspotProfiles as $counter => $deploymentObject) {
@@ -428,7 +428,7 @@  discard block
 block discarded – undo
428 428
                 <h2><?php
429 429
     switch ($deploymentObject->consortium) {
430 430
         case "eduroam":
431
-            $displayname = config\ConfAssistant::CONSORTIUM['name'] . " " . core\DeploymentManaged::PRODUCTNAME;
431
+            $displayname = config\ConfAssistant::CONSORTIUM['name']." ".core\DeploymentManaged::PRODUCTNAME;
432 432
             break;
433 433
         case "OpenRoaming":
434 434
             $displayname = "OpenRoaming ANP";
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
         default:
437 437
             throw new Exception("We are supposed to operate on a roaming consortium we don't know.");
438 438
     }
439
-    echo $displayname . " (<span style='color:" . ( $deploymentObject->status == \core\AbstractDeployment::INACTIVE ? "red;'>" . _("inactive") : "green;'>" . _("active") ) . "</span>)";
439
+    echo $displayname." (<span style='color:".($deploymentObject->status == \core\AbstractDeployment::INACTIVE ? "red;'>"._("inactive") : "green;'>"._("active"))."</span>)";
440 440
             ?></h2>
441 441
                 <table>
442 442
                     <caption><?php echo _("Deployment Details"); ?></caption>
@@ -450,13 +450,13 @@  discard block
 block discarded – undo
450 450
                         <td><strong><?php echo _("Your primary RADIUS server") ?></strong><br/>
451 451
     <?php
452 452
     if ($deploymentObject->host1_v4 !== NULL) {
453
-        echo _("IPv4") . ": " . $deploymentObject->host1_v4;
453
+        echo _("IPv4").": ".$deploymentObject->host1_v4;
454 454
     }
455 455
     if ($deploymentObject->host1_v4 !== NULL && $deploymentObject->host1_v6 !== NULL) {
456 456
         echo "<br/>";
457 457
     }
458 458
     if ($deploymentObject->host1_v6 !== NULL) {
459
-        echo _("IPv6") . ": " . $deploymentObject->host1_v6;
459
+        echo _("IPv6").": ".$deploymentObject->host1_v6;
460 460
     }
461 461
     ?>
462 462
                         </td>
@@ -464,9 +464,9 @@  discard block
 block discarded – undo
464 464
                         <td><?php echo $deploymentObject->port1; ?></td>
465 465
                         <td>
466 466
     <?php
467
-    echo "<img src='" . $radiusMessages[$deploymentObject->radius_status_1]['icon'] .
468
-    "' alt='" . $radiusMessages[$deploymentObject->radius_status_1]['text'] .
469
-    "' title='" . $radiusMessages[$deploymentObject->radius_status_1]['text'] . "'>";
467
+    echo "<img src='".$radiusMessages[$deploymentObject->radius_status_1]['icon'].
468
+    "' alt='".$radiusMessages[$deploymentObject->radius_status_1]['text'].
469
+    "' title='".$radiusMessages[$deploymentObject->radius_status_1]['text']."'>";
470 470
     ?>
471 471
                         </td>
472 472
                     </tr>
@@ -474,22 +474,22 @@  discard block
 block discarded – undo
474 474
                         <td><strong><?php echo _("Your backup RADIUS server") ?><br/></strong>
475 475
     <?php
476 476
     if ($deploymentObject->host2_v4 !== NULL) {
477
-        echo _("IPv4") . ": " . $deploymentObject->host2_v4;
477
+        echo _("IPv4").": ".$deploymentObject->host2_v4;
478 478
     }
479 479
     if ($deploymentObject->host2_v4 !== NULL && $deploymentObject->host2_v6 !== NULL) {
480 480
         echo "<br/>";
481 481
     }
482 482
     if ($deploymentObject->host2_v6 !== NULL) {
483
-        echo _("IPv6") . ": " . $deploymentObject->host2_v6;
483
+        echo _("IPv6").": ".$deploymentObject->host2_v6;
484 484
     }
485 485
     ?></td>
486 486
                         <td><?php echo _("RADIUS port number: ") ?></td>
487 487
                         <td><?php echo $deploymentObject->port2; ?></td>
488 488
                         <td>
489 489
     <?php
490
-    echo "<img src='" . $radiusMessages[$deploymentObject->radius_status_2]['icon'] .
491
-    "' alt='" . $radiusMessages[$deploymentObject->radius_status_2]['text'] .
492
-    "' title='" . $radiusMessages[$deploymentObject->radius_status_2]['text'] . "'>";
490
+    echo "<img src='".$radiusMessages[$deploymentObject->radius_status_2]['icon'].
491
+    "' alt='".$radiusMessages[$deploymentObject->radius_status_2]['text'].
492
+    "' title='".$radiusMessages[$deploymentObject->radius_status_2]['text']."'>";
493 493
     ?>
494 494
                         </td>
495 495
                     </tr>
@@ -541,12 +541,12 @@  discard block
 block discarded – undo
541 541
                                     if (array_key_exists('FAILURE', $res) && $res['FAILURE'] > 0) {
542 542
                                         echo '<br>';
543 543
                                         if ($res['FAILURE'] == 2) {
544
-                                            echo ' <span style="color: red;">' . _("Activation failure.") . '</span>';
544
+                                            echo ' <span style="color: red;">'._("Activation failure.").'</span>';
545 545
                                         } else {
546 546
                                             if (isset($_GET['res'][1]) && $_GET['res']['1'] == 'FAILURE') {
547
-                                                echo ' <span style="color: red;">' . _("Activation failure for your primary RADIUS server.") . '</span>';
547
+                                                echo ' <span style="color: red;">'._("Activation failure for your primary RADIUS server.").'</span>';
548 548
                                             } else {
549
-                                                echo ' <span style="color: red;">' . _("Activation failure for your backup RADIUS server.") . '</span>';
549
+                                                echo ' <span style="color: red;">'._("Activation failure for your backup RADIUS server.").'</span>';
550 550
                                             }
551 551
                                         }
552 552
                                     }
@@ -566,12 +566,12 @@  discard block
 block discarded – undo
566 566
                                     if ($res['FAILURE'] > 0) {
567 567
                                         echo '<br>';
568 568
                                         if ($res['FAILURE'] == 2) {
569
-                                            echo ' <span style="color: red;">' . _("Failure during deactivation, your request is queued for handling") . '</span>';
569
+                                            echo ' <span style="color: red;">'._("Failure during deactivation, your request is queued for handling").'</span>';
570 570
                                         } else {
571 571
                                             if (isset($_GET['res'][1]) && $_GET['res']['1'] == 'FAILURE') {
572
-                                                echo ' <span style="color: red;">' . _("Deactivation failure for your primary RADIUS server, your request is queued.") . '</span>';
572
+                                                echo ' <span style="color: red;">'._("Deactivation failure for your primary RADIUS server, your request is queued.").'</span>';
573 573
                                             } else {
574
-                                                echo ' <span style="color: red;">' . _("Deactivation failure for your backup RADIUS server, your request is queued.") . '</span>';
574
+                                                echo ' <span style="color: red;">'._("Deactivation failure for your backup RADIUS server, your request is queued.").'</span>';
575 575
                                             }
576 576
                                         }
577 577
                                     }
Please login to merge, or discard this patch.