@@ -188,7 +188,7 @@ |
||
188 | 188 | // deployment status; need to dive into profiles for this |
189 | 189 | // show happy eyeballs if at least one profile is configured/showtime |
190 | 190 | echo "<td>"; |
191 | - echo ($idp_instance->isOneProfileConfigured() ? "C" : "" ) . " " . ($idp_instance->isOneProfileShowtime() ? "V" : "" ); |
|
191 | + echo ($idp_instance->isOneProfileConfigured() ? "C" : "") . " " . ($idp_instance->isOneProfileShowtime() ? "V" : ""); |
|
192 | 192 | echo "</td>"; |
193 | 193 | // get the coarse status overview |
194 | 194 | $status = $idp_instance->getAllProfileStatusOverview(); |
@@ -41,7 +41,7 @@ |
||
41 | 41 | |
42 | 42 | $optioninfo = Options::instance(); |
43 | 43 | |
44 | - if (is_array($prepopulate) && ( count($prepopulate) > 1 || $class == "device-specific" || $class == "eap-specific")) { // editing... fill with values |
|
44 | + if (is_array($prepopulate) && (count($prepopulate) > 1 || $class == "device-specific" || $class == "eap-specific")) { // editing... fill with values |
|
45 | 45 | $number = 0; |
46 | 46 | foreach ($prepopulate as $option) { |
47 | 47 | if (preg_match("/$class:/", $option['name']) && !preg_match("/(profile:QR-user|user:fedadmin)/", $option['name'])) { |
@@ -172,8 +172,7 @@ |
||
172 | 172 | _("and enter the invitation token") . " |
173 | 173 | $newtoken |
174 | 174 | " . ( /* $new_idp_authorized_fedadmin */ FALSE ? |
175 | - wordwrap(_("manually. If you reply to this mail, you will reach the federation administrators of your federation."), 72) : |
|
176 | - wordwrap(_("manually. Please do not reply to this mail; this is a send-only address.")) ) . " |
|
175 | + wordwrap(_("manually. If you reply to this mail, you will reach the federation administrators of your federation."), 72) : wordwrap(_("manually. Please do not reply to this mail; this is a send-only address.")) ) . " |
|
177 | 176 | |
178 | 177 | " . wordwrap(_("Do NOT forward the mail before the token has expired - or the recipients may be able to consume the token on your behalf!"), 72) . " |
179 | 178 |
@@ -19,8 +19,7 @@ |
||
19 | 19 | $leftNum = (int) preg_replace($pat, $rep, $left); |
20 | 20 | $rightNum = (int) preg_replace($pat, $rep, $right); |
21 | 21 | return ($left != $leftNum && $right != $rightNum) ? |
22 | - $leftNum - $rightNum : |
|
23 | - strcmp($left, $right); |
|
22 | + $leftNum - $rightNum : strcmp($left, $right); |
|
24 | 23 | } |
25 | 24 | |
26 | 25 | function postProcessValidAttributes($options, &$good, &$bad) { |
@@ -30,7 +30,7 @@ |
||
30 | 30 | $checkval = "OK-NEW"; |
31 | 31 | } |
32 | 32 | |
33 | -if (!isset($_GET['token']) || ( $checkval != "OK-NEW" && $checkval != "OK-EXISTING")) { |
|
33 | +if (!isset($_GET['token']) || ($checkval != "OK-NEW" && $checkval != "OK-EXISTING")) { |
|
34 | 34 | pageheader(_("Error creating new IdP binding!"), "ADMIN-IDP"); |
35 | 35 | echo "<h1>" . _("Error creating new IdP binding!") . "</h1>"; |
36 | 36 | if ($checkval == "FAIL-ALREADYCONSUMED") { |
@@ -23,19 +23,19 @@ |
||
23 | 23 | } |
24 | 24 | |
25 | 25 | $action = $_REQUEST['action']; |
26 | -$id = ( isset($_REQUEST['id']) ? $_REQUEST['id'] : FALSE ); |
|
27 | -$device = ( isset($_REQUEST['device']) ? $_REQUEST['device'] : FALSE ); |
|
28 | -$lang = ( isset($_REQUEST['lang']) ? $_REQUEST['lang'] : FALSE ); |
|
29 | -$idp = ( isset($_REQUEST['idp']) ? $_REQUEST['idp'] : FALSE ); |
|
30 | -$profile = ( isset($_REQUEST['profile']) ? $_REQUEST['profile'] : FALSE ); |
|
31 | -$federation = ( isset($_REQUEST['federation']) ? $_REQUEST['federation'] : FALSE ); |
|
32 | -$disco = ( isset($_REQUEST['disco']) ? $_REQUEST['disco'] : FALSE ); |
|
33 | -$width = ( isset($_REQUEST['width']) ? $_REQUEST['width'] : 0 ); |
|
34 | -$height = ( isset($_REQUEST['height']) ? $_REQUEST['height'] : 0 ); |
|
35 | -$sort = ( isset($_REQUEST['sort']) ? $_REQUEST['sort'] : 0 ); |
|
36 | -$location = ( isset($_REQUEST['location']) ? $_REQUEST['location'] : 0 ); |
|
37 | -$api_version = ( isset($_REQUEST['api_version']) ? $_REQUEST['api_version'] : 1 ); |
|
38 | -$generatedfor = ( isset($_REQUEST['generatedfor']) ? $_REQUEST['generatedfor'] : 'user' ); |
|
26 | +$id = (isset($_REQUEST['id']) ? $_REQUEST['id'] : FALSE); |
|
27 | +$device = (isset($_REQUEST['device']) ? $_REQUEST['device'] : FALSE); |
|
28 | +$lang = (isset($_REQUEST['lang']) ? $_REQUEST['lang'] : FALSE); |
|
29 | +$idp = (isset($_REQUEST['idp']) ? $_REQUEST['idp'] : FALSE); |
|
30 | +$profile = (isset($_REQUEST['profile']) ? $_REQUEST['profile'] : FALSE); |
|
31 | +$federation = (isset($_REQUEST['federation']) ? $_REQUEST['federation'] : FALSE); |
|
32 | +$disco = (isset($_REQUEST['disco']) ? $_REQUEST['disco'] : FALSE); |
|
33 | +$width = (isset($_REQUEST['width']) ? $_REQUEST['width'] : 0); |
|
34 | +$height = (isset($_REQUEST['height']) ? $_REQUEST['height'] : 0); |
|
35 | +$sort = (isset($_REQUEST['sort']) ? $_REQUEST['sort'] : 0); |
|
36 | +$location = (isset($_REQUEST['location']) ? $_REQUEST['location'] : 0); |
|
37 | +$api_version = (isset($_REQUEST['api_version']) ? $_REQUEST['api_version'] : 1); |
|
38 | +$generatedfor = (isset($_REQUEST['generatedfor']) ? $_REQUEST['generatedfor'] : 'user'); |
|
39 | 39 | |
40 | 40 | /* in order to provide bacwards compatibility, both $id and new named arguments are supported. |
41 | 41 | Support for $id will be removed in the futute |
@@ -23,7 +23,7 @@ |
||
23 | 23 | <div id="heading"> |
24 | 24 | <?php |
25 | 25 | print '<img src="resources/images/consortium_logo.png" alt="Consortium Logo" style="float:right; padding-right:20px; padding-top:20px"/>'; |
26 | - print '<div id="motd">' . ( isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : ' ' ) . '</div>'; |
|
26 | + print '<div id="motd">' . (isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : ' ') . '</div>'; |
|
27 | 27 | print '<h1 style="padding-bottom:0px; height:1em;">' . sprintf(_("%s Copyright and Licensing"), CONFIG['APPEARANCE']['productname']) . '</h1> |
28 | 28 | <h2 style="padding-bottom:0px; height:0px; vertical-align:bottom;">' . CONFIG['APPEARANCE']['productname_long'] . '</h2>'; |
29 | 29 | echo '<table id="lang_select"><tr><td>'; |
@@ -129,7 +129,7 @@ |
||
129 | 129 | <div id="heading"> |
130 | 130 | <?php |
131 | 131 | print '<img src="resources/images/consortium_logo.png" alt="Consortium Logo" style="float:right; padding-right:20px; padding-top:20px"/>'; |
132 | - print '<div id="motd">' . ( isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : ' ' ) . '</div>'; |
|
132 | + print '<div id="motd">' . (isset(CONFIG['APPEARANCE']['MOTD']) ? CONFIG['APPEARANCE']['MOTD'] : ' ') . '</div>'; |
|
133 | 133 | print '<h1 style="padding-bottom:0px; height:1em;">' . sprintf(_("Welcome to %s"), CONFIG['APPEARANCE']['productname']) . '</h1> |
134 | 134 | <h2 style="padding-bottom:0px; height:0px; vertical-align:bottom;">' . CONFIG['APPEARANCE']['productname_long'] . '</h2>'; |
135 | 135 | echo '<table id="lang_select"><tr><td>'; |
@@ -26,7 +26,7 @@ |
||
26 | 26 | |
27 | 27 | // if we have a pushed close button, submit attributes and send user back to the overview page |
28 | 28 | // if external DB sync is disabled globally, the user never gets to this page. If he came here *anyway* -> send him back immediately. |
29 | -if ((isset($_POST['submitbutton']) && $_POST['submitbutton'] == BUTTON_CLOSE ) || CONFIG['DB']['enforce-external-sync'] == FALSE) { |
|
29 | +if ((isset($_POST['submitbutton']) && $_POST['submitbutton'] == BUTTON_CLOSE) || CONFIG['DB']['enforce-external-sync'] == FALSE) { |
|
30 | 30 | header("Location: ../overview_federation.php"); |
31 | 31 | } |
32 | 32 |