@@ -73,13 +73,13 @@ discard block |
||
73 | 73 | $retval = "<div class='sidebar'><p>"; |
74 | 74 | |
75 | 75 | if ($advancedControls) { |
76 | - $retval .= "<strong>" . _("You are:") . "</strong> ".$_SESSION['name'] |
|
76 | + $retval .= "<strong>"._("You are:")."</strong> ".$_SESSION['name'] |
|
77 | 77 | ."<br/> |
78 | 78 | <br/> |
79 | - <a href='" . \core\CAT::getRootUrlPath() . "/admin/overview_user.php'>" . _("Go to your Profile page") . "</a> |
|
80 | - <a href='" . \core\CAT::getRootUrlPath() . "/admin/inc/logout.php'>" . _("Logout") . "</a> "; |
|
79 | + <a href='" . \core\CAT::getRootUrlPath()."/admin/overview_user.php'>"._("Go to your Profile page")."</a> |
|
80 | + <a href='" . \core\CAT::getRootUrlPath()."/admin/inc/logout.php'>"._("Logout")."</a> "; |
|
81 | 81 | } |
82 | - $retval .= "<a href='" . \core\CAT::getRootUrlPath() . "/'>" . _("Start page") . "</a> |
|
82 | + $retval .= "<a href='".\core\CAT::getRootUrlPath()."/'>"._("Start page")."</a> |
|
83 | 83 | </p> |
84 | 84 | </div> <!-- sidebar -->"; |
85 | 85 | \core\common\Entity::outOfThePotatoes(); |
@@ -103,23 +103,23 @@ discard block |
||
103 | 103 | <h1>$cap1</h1> |
104 | 104 | </div><!--header_captions--> |
105 | 105 | <div id='langselection' style='padding-top:20px; padding-".$this->start.":10px;'> |
106 | - <form action='$place' method='GET' accept-charset='UTF-8'>" . _("View this page in") . " |
|
106 | + <form action='$place' method='GET' accept-charset='UTF-8'>"._("View this page in")." |
|
107 | 107 | <select id='lang' name='lang' onchange='this.form.submit()'>"; |
108 | 108 | |
109 | 109 | foreach (\config\Master::LANGUAGES as $lang => $getValue) { |
110 | - $retval .= "<option value='$lang' " . (strtoupper($language) == strtoupper($lang) ? "selected" : "" ) . " >" . $getValue['display'] . "</option> "; |
|
110 | + $retval .= "<option value='$lang' ".(strtoupper($language) == strtoupper($lang) ? "selected" : "")." >".$getValue['display']."</option> "; |
|
111 | 111 | } |
112 | 112 | $retval .= "</select>"; |
113 | 113 | |
114 | 114 | foreach ($_GET as $getVar => $getValue) { |
115 | 115 | $filterValue = filter_input(INPUT_GET, $getVar, FILTER_SANITIZE_STRING); |
116 | 116 | if ($getVar != "lang" && $getValue != "") { |
117 | - $retval .= "<input type='hidden' name='" . htmlspecialchars($getVar) . "' value='" . htmlspecialchars($filterValue) . "'>"; |
|
117 | + $retval .= "<input type='hidden' name='".htmlspecialchars($getVar)."' value='".htmlspecialchars($filterValue)."'>"; |
|
118 | 118 | } |
119 | 119 | } |
120 | 120 | $retval .= "</form> |
121 | 121 | </div><!--langselection-->"; |
122 | - $logoUrl = \core\CAT::getRootUrlPath() . "/resources/images/consortium_logo.png"; |
|
122 | + $logoUrl = \core\CAT::getRootUrlPath()."/resources/images/consortium_logo.png"; |
|
123 | 123 | $retval .= "<div class='consortium_logo'> |
124 | 124 | <img id='test_locate' src='$logoUrl' alt='Consortium Logo'> |
125 | 125 | </div> <!-- consortium_logo --> |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | |
213 | 213 | if (isset(\config\Master::APPEARANCE['MOTD']) && \config\Master::APPEARANCE['MOTD'] != "") { |
214 | 214 | $retval .= "<div id='header_MOTD' style='display:inline-block; padding-".$this->start.":20px;vertical-align:top;'> |
215 | - <p class='MOTD'>" . \config\Master::APPEARANCE['MOTD'] . "</p> |
|
215 | + <p class='MOTD'>" . \config\Master::APPEARANCE['MOTD']."</p> |
|
216 | 216 | </div><!--header_MOTD-->"; |
217 | 217 | } |
218 | 218 | $retval .= $this->sidebar($advancedControls); |
@@ -238,9 +238,9 @@ discard block |
||
238 | 238 | <html xmlns='http://www.w3.org/1999/xhtml' lang='$ourlocale'".($this->langObject->rtl ? "dir='rtl'" : "")."> |
239 | 239 | <head lang='$ourlocale'> |
240 | 240 | <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>"; |
241 | - $cssUrl = \core\CAT::getRootUrlPath() . "/resources/css/cat.css.php"; |
|
241 | + $cssUrl = \core\CAT::getRootUrlPath()."/resources/css/cat.css.php"; |
|
242 | 242 | $retval .= "<link rel='stylesheet' type='text/css' href='$cssUrl' />"; |
243 | - $retval .= "<title>" . htmlspecialchars($pagetitle) . "</title>"; |
|
243 | + $retval .= "<title>".htmlspecialchars($pagetitle)."</title>"; |
|
244 | 244 | return $retval; |
245 | 245 | } |
246 | 246 | |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | // we may need to jump up one dir if we are either in admin/ or accountstatus/ |
255 | 255 | // (accountstatus courtesy of my good mood. It's userspace not admin space so |
256 | 256 | // it shouldn't be using this function any more.) |
257 | - $logoBase = \core\CAT::getRootUrlPath() . "/resources/images"; |
|
257 | + $logoBase = \core\CAT::getRootUrlPath()."/resources/images"; |
|
258 | 258 | return "<span id='logos'><img src='$logoBase/dante.png' alt='DANTE' style='height:23px;width:47px'/> |
259 | 259 | <img src='$logoBase/eu.png' alt='EU' style='height:23px;width:27px;border-width:0px;'/></span> |
260 | 260 | <span id='eu_text' style='text-align:right;'><a href='http://ec.europa.eu/dgs/connect/index_en.htm' style='text-decoration:none; vertical-align:top;'>European Commission Communications Networks, Content and Technology</a></span>"; |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | parent::__construct(); |
110 | 110 | common\Entity::intoThePotatoes(); |
111 | 111 | |
112 | - $this->catVersionString = sprintf("Unreleased %s Git Revision" , "<a href='https://github.com/GEANT/CAT/tree/master/Changes.md'>") . "</a>"; |
|
112 | + $this->catVersionString = sprintf("Unreleased %s Git Revision", "<a href='https://github.com/GEANT/CAT/tree/master/Changes.md'>")."</a>"; |
|
113 | 113 | |
114 | 114 | if (CAT::RELEASE_VERSION) { |
115 | 115 | $major = CAT::VERSION_MAJOR; |
@@ -117,14 +117,14 @@ discard block |
||
117 | 117 | $patch = CAT::VERSION_PATCH; |
118 | 118 | $extra = CAT::VERSION_EXTRA; |
119 | 119 | $temp_version = "CAT-$major.$minor"; |
120 | - $branch = "release_$major" . "_$minor"; |
|
120 | + $branch = "release_$major"."_$minor"; |
|
121 | 121 | if (CAT::VERSION_PATCH != 0) { |
122 | 122 | $temp_version .= ".$patch"; |
123 | 123 | } |
124 | 124 | if (CAT::VERSION_EXTRA != "") { |
125 | 125 | $temp_version .= "-$extra"; |
126 | 126 | } |
127 | - $this->catVersionString = sprintf("Release <a href='%s'>%s</a>", "https://github.com/GEANT/CAT/tree/" . $branch . "/Changes.md", $temp_version); |
|
127 | + $this->catVersionString = sprintf("Release <a href='%s'>%s</a>", "https://github.com/GEANT/CAT/tree/".$branch."/Changes.md", $temp_version); |
|
128 | 128 | |
129 | 129 | } |
130 | 130 | $product = \config\Master::APPEARANCE['productname']; |
@@ -132,9 +132,9 @@ discard block |
||
132 | 132 | $maxYear = self::COPYRIGHT_MAX_YEAR; |
133 | 133 | $holder = self::COPYRIGHT_HOLDER; |
134 | 134 | $consortia = self::COPYRIGHT_CONSORTIA; |
135 | - $this->catCopyright = "$product - " . $this->catVersionString . " © $minYear-$maxYear $holder<br/>on behalf of $consortia; and others <a href='copyright.php'>Full Copyright and Licenses</a>"; |
|
135 | + $this->catCopyright = "$product - ".$this->catVersionString." © $minYear-$maxYear $holder<br/>on behalf of $consortia; and others <a href='copyright.php'>Full Copyright and Licenses</a>"; |
|
136 | 136 | $this->catCopyrifhtAndLicense = "© $minYear-$maxYear $holder<br/>on behalf of $consortia; and others <a href='copyright.php'>Full Copyright and Licenses</a>"; |
137 | - $this->catVersion = "$product<br>" . $this->catVersionString; |
|
137 | + $this->catVersion = "$product<br>".$this->catVersionString; |
|
138 | 138 | |
139 | 139 | /* Federations are created in DB with bootstrapFederation, and listed via listFederations |
140 | 140 | */ |
@@ -17,12 +17,12 @@ |
||
17 | 17 | * <base_url>/copyright.php after deploying the software |
18 | 18 | */ |
19 | 19 | header("Content-Type:text/css"); |
20 | -require_once dirname(dirname(dirname(dirname(dirname(dirname(__DIR__)))))) . "/config/_config.php"; |
|
20 | +require_once dirname(dirname(dirname(dirname(dirname(dirname(__DIR__))))))."/config/_config.php"; |
|
21 | 21 | $langInstance = new core\common\Language(); |
22 | 22 | $start = $langInstance->rtl ? "right" : "left"; |
23 | 23 | ?> |
24 | 24 | #sb_info { |
25 | - padding-<?php echo $start;?>: 30px; |
|
25 | + padding-<?php echo $start; ?>: 30px; |
|
26 | 26 | font-size: 12px; |
27 | 27 | font-weight: normal; |
28 | 28 | } |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | // we need to know if we are serving a RTL language so we can flip some heading |
22 | 22 | // items |
23 | 23 | header("Content-Type:text/css"); |
24 | -require_once dirname(dirname(dirname(__DIR__))) . "/config/_config.php"; |
|
24 | +require_once dirname(dirname(dirname(__DIR__)))."/config/_config.php"; |
|
25 | 25 | $langInstance = new core\common\Language(); |
26 | 26 | $start = $langInstance->rtl ? "right" : "left"; |
27 | 27 | $end = $langInstance->rtl ? "left" : "right"; |
@@ -82,16 +82,16 @@ discard block |
||
82 | 82 | margin-bottom:3px; |
83 | 83 | } |
84 | 84 | .sb-date-picker{ |
85 | - padding-<?php echo $end;?>:25px; |
|
85 | + padding-<?php echo $end; ?>:25px; |
|
86 | 86 | width: 140px; |
87 | 87 | } |
88 | 88 | .sb-date-button{ |
89 | - margin-<?php echo $start;?>:-30px; |
|
89 | + margin-<?php echo $start; ?>:-30px; |
|
90 | 90 | min-height: 22px; |
91 | - border-<?php echo $start;?>-style: solid; |
|
91 | + border-<?php echo $start; ?>-style: solid; |
|
92 | 92 | border-top-style: solid; |
93 | - border-<?php echo $end;?>-style: solid; |
|
94 | - border-<?php echo $end;?>-width: 1px; |
|
93 | + border-<?php echo $end; ?>-style: solid; |
|
94 | + border-<?php echo $end; ?>-width: 1px; |
|
95 | 95 | border-bottom-width: 1px; |
96 | 96 | border-radius: 1px; |
97 | 97 | box-shadow: 0px 0px 0px #666666; |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | // we need to know if we are serving a RTL language so we can flip some heading |
23 | 23 | // items |
24 | 24 | header("Content-Type:text/css"); |
25 | -require_once dirname(dirname(dirname(__DIR__))) . "/config/_config.php"; |
|
25 | +require_once dirname(dirname(dirname(__DIR__)))."/config/_config.php"; |
|
26 | 26 | |
27 | 27 | $langInstance = new core\common\Language(); |
28 | 28 | $start = $langInstance->rtl ? "right" : "left"; |
@@ -32,15 +32,15 @@ discard block |
||
32 | 32 | ol.eapmethods { list-style-position: inside; margin: 0; padding: 0px; padding-top: 20px; padding-bottom: 0px; width: 20em; } |
33 | 33 | ol.eapmethods li{ |
34 | 34 | background: #CCF; |
35 | - border-<?php echo $start;?>-style: inset; |
|
36 | - border-<?php echo $start;?>-width: 1px; |
|
37 | - border-<?php echo $start;?>-color: #8BBACB; |
|
35 | + border-<?php echo $start; ?>-style: inset; |
|
36 | + border-<?php echo $start; ?>-width: 1px; |
|
37 | + border-<?php echo $start; ?>-color: #8BBACB; |
|
38 | 38 | border-top-style: inset; |
39 | 39 | border-top-width: 1px; |
40 | 40 | border-top-color: #8BBACB; |
41 | - border-<?php echo $end;?>-style: outset; |
|
42 | - border-<?php echo $end;?>-width: 2px; |
|
43 | - border-<?php echo $end;?>-color: #043D52; |
|
41 | + border-<?php echo $end; ?>-style: outset; |
|
42 | + border-<?php echo $end; ?>-width: 2px; |
|
43 | + border-<?php echo $end; ?>-color: #043D52; |
|
44 | 44 | border-bottom-style: outset; |
45 | 45 | border-bottom-width: 2px; |
46 | 46 | border-bottom-color: #043D52; |
@@ -51,8 +51,8 @@ discard block |
||
51 | 51 | background-position:95% 50%; |
52 | 52 | margin: 2px 0px 2px 0px; |
53 | 53 | padding: 3px; |
54 | - padding-<?php echo $start;?>: 1em; |
|
55 | - padding-<?php echo $end;?>: 0px; |
|
54 | + padding-<?php echo $start; ?>: 1em; |
|
55 | + padding-<?php echo $end; ?>: 0px; |
|
56 | 56 | } |
57 | 57 | |
58 | 58 | table.eaptable td { |
@@ -26,7 +26,7 @@ discard block |
||
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 | $auth = new \web\lib\admin\Authentication(); |
31 | 31 | $deco = new \web\lib\admin\PageDecoration(); |
32 | 32 | $validator = new \web\lib\common\InputValidation(); |
@@ -105,10 +105,10 @@ discard block |
||
105 | 105 | $fed = $validator->existingFederation($_POST['NRO-list']); |
106 | 106 | $country = strtoupper($fed->tld); |
107 | 107 | $DN[] = "C=$country"; |
108 | - $DN[] = "O=NRO of " . $cat->knownFederations[strtoupper($fed->tld)]; |
|
108 | + $DN[] = "O=NRO of ".$cat->knownFederations[strtoupper($fed->tld)]; |
|
109 | 109 | $serverInfo = $externalDb->listExternalTlsServersFederation($fed->tld); |
110 | 110 | $serverList = explode(",", array_key_first($serverInfo)); |
111 | - $DN[] = "CN=" . $serverList[0]; |
|
111 | + $DN[] = "CN=".$serverList[0]; |
|
112 | 112 | $policies[] = "eduroam IdP"; |
113 | 113 | $policies[] = "eduroam SP"; |
114 | 114 | $firstName = $serverInfo[array_key_first($serverInfo)][0]["name"]; |
@@ -132,7 +132,7 @@ discard block |
||
132 | 132 | } |
133 | 133 | $DN[] = "O=$ou"; |
134 | 134 | $serverList = explode(",", $serverInfo["servers"]); |
135 | - $DN[] = "CN=" . $serverList[0]; |
|
135 | + $DN[] = "CN=".$serverList[0]; |
|
136 | 136 | switch ($serverInfo["type"]) { |
137 | 137 | case core\IdP::TYPE_IDPSP: |
138 | 138 | $policies[] = "eduroam IdP"; |
@@ -152,12 +152,12 @@ discard block |
||
152 | 152 | default: |
153 | 153 | throw new Exception("Sorry: Unknown level of issuance requested."); |
154 | 154 | } |
155 | - echo "<p style='font-size: large'>" . _("Requesting a certificate with the following properties"); |
|
155 | + echo "<p style='font-size: large'>"._("Requesting a certificate with the following properties"); |
|
156 | 156 | echo "<ul>"; |
157 | - echo "<li>" . _("Policy OIDs: ") . implode(", ", $policies) . "</li>"; |
|
158 | - echo "<li>" . _("Distinguished Name: ") . implode(", ", $DN) . "</li>"; |
|
159 | - echo "<li>" . _("subjectAltName:DNS : ") . implode(", ", $serverList) . "</li>"; |
|
160 | - echo "<li>" . _("Requester Contact Details: ") . $firstName . " <" . $firstMail . ">" . "</li>"; |
|
157 | + echo "<li>"._("Policy OIDs: ").implode(", ", $policies)."</li>"; |
|
158 | + echo "<li>"._("Distinguished Name: ").implode(", ", $DN)."</li>"; |
|
159 | + echo "<li>"._("subjectAltName:DNS : ").implode(", ", $serverList)."</li>"; |
|
160 | + echo "<li>"._("Requester Contact Details: ").$firstName." <".$firstMail.">"."</li>"; |
|
161 | 161 | echo "</ul></p>"; |
162 | 162 | |
163 | 163 | $vettedCsr = $validator->string($_POST['CSR'], true); |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | "FED" => $country]; |
172 | 172 | // our certs can be good for max 5 years |
173 | 173 | $fed->requestCertificate($user->identifier, $newCsrWithMeta, $expiryDays); |
174 | - echo "<p>" . _("The certificate was requested.") . "</p>"; |
|
174 | + echo "<p>"._("The certificate was requested.")."</p>"; |
|
175 | 175 | ?> |
176 | 176 | <form action="overview_certificates.php" method="GET"> |
177 | 177 | <button type="submit"><?php echo _("Back to Certificate Overview"); ?></button> |
@@ -189,23 +189,23 @@ discard block |
||
189 | 189 | switch (count($feds)) { |
190 | 190 | case 0: |
191 | 191 | echo "<div>"; |
192 | - echo $uiElements->boxRemark("<strong>" . sprintf(_("None of your %s servers has complete information in the database."),$uiElements->nomenclatureFed)."</strong>" . _("At least the DNS names of TLS servers and a role-based contact mail address are required.")); |
|
192 | + echo $uiElements->boxRemark("<strong>".sprintf(_("None of your %s servers has complete information in the database."), $uiElements->nomenclatureFed)."</strong>"._("At least the DNS names of TLS servers and a role-based contact mail address are required.")); |
|
193 | 193 | echo "</div>"; |
194 | 194 | break; |
195 | 195 | case 1: |
196 | - echo '<input type="radio" name="LEVEL" id="NRO" value="NRO" checked>' . sprintf(_("Certificate for %s") ." ", $uiElements->nomenclatureFed) . '</input>'; |
|
197 | - echo " <strong>" . $cat->knownFederations[$feds[0]->tld] . "</strong>"; |
|
198 | - echo '<input type="hidden" name="NRO-list" id="NRO-list" value="' . $feds[0]->tld . '"/>'; |
|
196 | + echo '<input type="radio" name="LEVEL" id="NRO" value="NRO" checked>'.sprintf(_("Certificate for %s")." ", $uiElements->nomenclatureFed).'</input>'; |
|
197 | + echo " <strong>".$cat->knownFederations[$feds[0]->tld]."</strong>"; |
|
198 | + echo '<input type="hidden" name="NRO-list" id="NRO-list" value="'.$feds[0]->tld.'"/>'; |
|
199 | 199 | break; |
200 | 200 | default: |
201 | - echo '<input type="radio" name="LEVEL" id="NRO" value="NRO" checked>' . sprintf(_("Certificate for %s") ." ", $uiElements->nomenclatureFed) . '</input>'; |
|
201 | + echo '<input type="radio" name="LEVEL" id="NRO" value="NRO" checked>'.sprintf(_("Certificate for %s")." ", $uiElements->nomenclatureFed).'</input>'; |
|
202 | 202 | ?> |
203 | 203 | <select name="NRO-list" id="NRO-list"> |
204 | 204 | <option value="notset"><?php echo _("---PPPLEASE CHOOSE---"); ?></option> |
205 | 205 | <?php |
206 | 206 | foreach ($feds as $oneFed) { |
207 | 207 | #echo '<option value="' . strtoupper($oneFed->tld) . '">' . $cat->knownFederations[$oneFed->tld] . "</option>"; |
208 | - echo '<option value="AAA' . strtoupper($oneFed->tld) . '">' . $oneIdP["names"][$langObject->getLang()] . "</option>"; |
|
208 | + echo '<option value="AAA'.strtoupper($oneFed->tld).'">'.$oneIdP["names"][$langObject->getLang()]."</option>"; |
|
209 | 209 | |
210 | 210 | } |
211 | 211 | ?> |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | $allIdPs = []; |
216 | 216 | foreach ($allAuthorizedFeds as $oneFed) { |
217 | 217 | foreach ($externalDb->listExternalTlsServersInstitution($oneFed['value']) as $id => $oneIdP) { |
218 | - $allIdPs[$id] = '[' . substr($id, 0, 2) . '] ' . $oneIdP["names"][$langObject->getLang()]; |
|
218 | + $allIdPs[$id] = '['.substr($id, 0, 2).'] '.$oneIdP["names"][$langObject->getLang()]; |
|
219 | 219 | } |
220 | 220 | } |
221 | 221 | if (count($allIdPs) > 0) { |
@@ -226,14 +226,14 @@ discard block |
||
226 | 226 | <option value="notset"><?php echo _("---PLEASE CHOOSE---"); ?></option> |
227 | 227 | <?php |
228 | 228 | foreach ($allIdPs as $id => $name) { |
229 | - echo '<option value="' . $id . '">' . $name . "</option>"; |
|
229 | + echo '<option value="'.$id.'">'.$name."</option>"; |
|
230 | 230 | } |
231 | 231 | ?> |
232 | 232 | </select> |
233 | 233 | <?php |
234 | 234 | } else { |
235 | 235 | echo "<div>"; |
236 | - echo $uiElements->boxRemark(sprintf(_("<strong>No organisation inside your %s has complete information in the database</strong>."." "._("At least the DNS names of TLS servers and a role-based contact mail address are required.")),$uiElements->nomenclatureFed), "No TLS capable org!", true); |
|
236 | + echo $uiElements->boxRemark(sprintf(_("<strong>No organisation inside your %s has complete information in the database</strong>."." "._("At least the DNS names of TLS servers and a role-based contact mail address are required.")), $uiElements->nomenclatureFed), "No TLS capable org!", true); |
|
237 | 237 | echo "</div>"; |
238 | 238 | } |
239 | 239 | ?> |
@@ -243,7 +243,7 @@ discard block |
||
243 | 243 | <h2><?php echo _("2. CSR generation"); ?></h2> |
244 | 244 | <p><?php echo _("One way to generate an acceptable certificate request is via this openssl one-liner:"); ?></p> |
245 | 245 | <?php |
246 | - echo "openssl req -new -newkey rsa:4096 -out test.csr -keyout test.key -subj /". implode('/', array_reverse($DN)) ."/C=XY/O=WillBeReplaced/CN=will.be.replaced"; |
|
246 | + echo "openssl req -new -newkey rsa:4096 -out test.csr -keyout test.key -subj /".implode('/', array_reverse($DN))."/C=XY/O=WillBeReplaced/CN=will.be.replaced"; |
|
247 | 247 | ?> |
248 | 248 | <h2><?php echo _("3. Submission"); ?></h2> |
249 | 249 | <?php echo _("Please paste your CSR here:"); ?><br/><textarea name="CSR" id="CSR" rows="20" cols="85"/></textarea><br/> |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | * <base_url>/copyright.php after deploying the software |
20 | 20 | */ |
21 | 21 | header("Content-Type:text/css"); |
22 | -require dirname(dirname(dirname(dirname(dirname(dirname(__FILE__)))))) . "/config/_config.php"; |
|
22 | +require dirname(dirname(dirname(dirname(dirname(dirname(__FILE__))))))."/config/_config.php"; |
|
23 | 23 | $langInstance = new core\common\Language(); |
24 | 24 | $start = $langInstance->rtl ? "right" : "left"; |
25 | 25 | $end = $langInstance->rtl ? "left" : "right"; |
@@ -399,8 +399,8 @@ discard block |
||
399 | 399 | |
400 | 400 | #message_only { |
401 | 401 | padding-top: 20px; |
402 | - padding-<?php echo $start;?>: 30px; |
|
403 | - padding-<?php echo $end;?>: 30px; |
|
402 | + padding-<?php echo $start; ?>: 30px; |
|
403 | + padding-<?php echo $end; ?>: 30px; |
|
404 | 404 | font-weight: normal; |
405 | 405 | position: relative; |
406 | 406 | font-size: 15px; |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | case "core\User": |
140 | 140 | return $this->userName; |
141 | 141 | default: |
142 | - throw new Exception("Operating on a class where we don't know the relevant identifier in the DB - " . get_class($this) . "!"); |
|
142 | + throw new Exception("Operating on a class where we don't know the relevant identifier in the DB - ".get_class($this)."!"); |
|
143 | 143 | } |
144 | 144 | } |
145 | 145 | |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | */ |
178 | 178 | public function beginFlushAttributes($extracondition = "") |
179 | 179 | { |
180 | - $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "") . $this->getRelevantIdentifier() . (!is_int($this->getRelevantIdentifier()) ? "\"" : ""); |
|
180 | + $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "").$this->getRelevantIdentifier().(!is_int($this->getRelevantIdentifier()) ? "\"" : ""); |
|
181 | 181 | $this->databaseHandle->exec("DELETE FROM $this->entityOptionTable WHERE $this->entityIdColumn = $quotedIdentifier AND option_name NOT LIKE '%_file' $extracondition"); |
182 | 182 | $this->updateFreshness(); |
183 | 183 | $execFlush = $this->databaseHandle->exec("SELECT row_id FROM $this->entityOptionTable WHERE $this->entityIdColumn = $quotedIdentifier $extracondition"); |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | */ |
198 | 198 | public function commitFlushAttributes(array $tobedeleted) |
199 | 199 | { |
200 | - $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "") . $this->getRelevantIdentifier() . (!is_int($this->getRelevantIdentifier()) ? "\"" : ""); |
|
200 | + $quotedIdentifier = (!is_int($this->getRelevantIdentifier()) ? "\"" : "").$this->getRelevantIdentifier().(!is_int($this->getRelevantIdentifier()) ? "\"" : ""); |
|
201 | 201 | foreach (array_keys($tobedeleted) as $row_id) { |
202 | 202 | $this->databaseHandle->exec("DELETE FROM $this->entityOptionTable WHERE $this->entityIdColumn = $quotedIdentifier AND row_id = $row_id"); |
203 | 203 | $this->updateFreshness(); |
@@ -226,7 +226,7 @@ discard block |
||
226 | 226 | { |
227 | 227 | $relevantId = $this->getRelevantIdentifier(); |
228 | 228 | $identifierType = (is_int($relevantId) ? "i" : "s"); |
229 | - $this->databaseHandle->exec("INSERT INTO $this->entityOptionTable ($this->entityIdColumn, option_name, option_lang, option_value) VALUES(?,?,?,?)", $identifierType . "sss", $relevantId, $attrName, $attrLang, $attrValue); |
|
229 | + $this->databaseHandle->exec("INSERT INTO $this->entityOptionTable ($this->entityIdColumn, option_name, option_lang, option_value) VALUES(?,?,?,?)", $identifierType."sss", $relevantId, $attrName, $attrLang, $attrValue); |
|
230 | 230 | $this->updateFreshness(); |
231 | 231 | } |
232 | 232 |
@@ -105,9 +105,9 @@ discard block |
||
105 | 105 | |
106 | 106 | $attributesLowLevel = array_merge($this->deviceLevelAttributes, $this->eapLevelAttributes); |
107 | 107 | |
108 | - $this->loggerInstance->debug(5, "Device-Level Attributes: " . /** @scrutinizer ignore-type */ print_r($this->deviceLevelAttributes, true)); |
|
109 | - $this->loggerInstance->debug(5, "EAP-Level Attributes: " . /** @scrutinizer ignore-type */ print_r($this->eapLevelAttributes, true)); |
|
110 | - $this->loggerInstance->debug(5, "All low-Level Attributes: " . /** @scrutinizer ignore-type */ print_r($attributesLowLevel, true)); |
|
108 | + $this->loggerInstance->debug(5, "Device-Level Attributes: "./** @scrutinizer ignore-type */ print_r($this->deviceLevelAttributes, true)); |
|
109 | + $this->loggerInstance->debug(5, "EAP-Level Attributes: "./** @scrutinizer ignore-type */ print_r($this->eapLevelAttributes, true)); |
|
110 | + $this->loggerInstance->debug(5, "All low-Level Attributes: "./** @scrutinizer ignore-type */ print_r($attributesLowLevel, true)); |
|
111 | 111 | |
112 | 112 | // now fetch and merge profile-level attributes if not already set on deeper level |
113 | 113 | |
@@ -137,7 +137,7 @@ discard block |
||
137 | 137 | } |
138 | 138 | } |
139 | 139 | |
140 | - $this->loggerInstance->debug(5, "Merged Attributes: " . /** @scrutinizer ignore-type */ print_r($attributesLowLevel, true)); |
|
140 | + $this->loggerInstance->debug(5, "Merged Attributes: "./** @scrutinizer ignore-type */ print_r($attributesLowLevel, true)); |
|
141 | 141 | |
142 | 142 | // now, fetch and merge IdP-wide attributes |
143 | 143 | |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | // add the internal attribute to that effect |
153 | 153 | |
154 | 154 | if (isset($this->attributes['media:openroaming_always'])) { |
155 | - $this->attributes = array_merge($this->attributes, $this->addInternalAttributes([ "internal:openroaming" => TRUE ] )); |
|
155 | + $this->attributes = array_merge($this->attributes, $this->addInternalAttributes(["internal:openroaming" => TRUE])); |
|
156 | 156 | } |
157 | 157 | |
158 | 158 | $this->loggerInstance->debug(3, "--- END Constructing new Profile object ... ---\n"); |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | "row_id" => $attributeQuery->row_id, |
201 | 201 | "flag" => $optinfo['flag'], |
202 | 202 | "device" => ($devicesOrEAPMethods == "DEVICES" ? $attributeQuery->deviceormethod : NULL), |
203 | - "eapmethod" => ($devicesOrEAPMethods == "DEVICES" ? 0 : (new \core\common\EAP($attributeQuery->deviceormethod))->getArrayRep() )]; |
|
203 | + "eapmethod" => ($devicesOrEAPMethods == "DEVICES" ? 0 : (new \core\common\EAP($attributeQuery->deviceormethod))->getArrayRep())]; |
|
204 | 204 | } |
205 | 205 | return $temparray; |
206 | 206 | } |
@@ -309,7 +309,7 @@ discard block |
||
309 | 309 | */ |
310 | 310 | public function setAnonymousIDSupport($shallwe) |
311 | 311 | { |
312 | - $this->databaseHandle->exec("UPDATE profile SET use_anon_outer = " . ($shallwe === true ? "1" : "0") . " WHERE profile_id = $this->identifier"); |
|
312 | + $this->databaseHandle->exec("UPDATE profile SET use_anon_outer = ".($shallwe === true ? "1" : "0")." WHERE profile_id = $this->identifier"); |
|
313 | 313 | } |
314 | 314 | |
315 | 315 | /** Toggle special username for realm checks |
@@ -319,7 +319,7 @@ discard block |
||
319 | 319 | * @return void |
320 | 320 | */ |
321 | 321 | public function setRealmCheckUser($shallwe, $localpart = NULL) { |
322 | - $this->databaseHandle->exec("UPDATE profile SET checkuser_outer = " . ($shallwe === true ? "1" : "0") . " WHERE profile_id = $this->identifier"); |
|
322 | + $this->databaseHandle->exec("UPDATE profile SET checkuser_outer = ".($shallwe === true ? "1" : "0")." WHERE profile_id = $this->identifier"); |
|
323 | 323 | if ($localpart !== NULL) { |
324 | 324 | $this->databaseHandle->exec("UPDATE profile SET checkuser_value = ? WHERE profile_id = $this->identifier", "s", $localpart); |
325 | 325 | } |
@@ -334,8 +334,8 @@ discard block |
||
334 | 334 | */ |
335 | 335 | public function setInputVerificationPreference($verify, $hint) |
336 | 336 | { |
337 | - $this->databaseHandle->exec("UPDATE profile SET verify_userinput_suffix = " . ($verify === true ? "1" : "0") . |
|
338 | - ", hint_userinput_suffix = " . ($hint === true ? "1" : "0") . |
|
337 | + $this->databaseHandle->exec("UPDATE profile SET verify_userinput_suffix = ".($verify === true ? "1" : "0"). |
|
338 | + ", hint_userinput_suffix = ".($hint === true ? "1" : "0"). |
|
339 | 339 | " WHERE profile_id = $this->identifier"); |
340 | 340 | } |
341 | 341 |