@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | ?> |
31 | 31 | <?php |
32 | 32 | |
33 | -require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php"; |
|
33 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
34 | 34 | |
35 | 35 | $auth = new \web\lib\admin\Authentication(); |
36 | 36 | $deco = new \web\lib\admin\PageDecoration(); |
@@ -44,24 +44,24 @@ discard block |
||
44 | 44 | |
45 | 45 | |
46 | 46 | if (!isset($_GET['token'])) { |
47 | - $elements->errorPage(_("Error creating new IdP binding!"),_("This page needs to be called with a valid invitation token!")); |
|
47 | + $elements->errorPage(_("Error creating new IdP binding!"), _("This page needs to be called with a valid invitation token!")); |
|
48 | 48 | } |
49 | 49 | |
50 | 50 | if (\config\ConfAssistant::CONSORTIUM['selfservice_registration'] === NULL && $_GET['token'] == "SELF-REGISTER") { |
51 | - $elements->errorPage(_("Error creating new IdP binding!"),_("You tried to register in self-service, but this deployment does not allow self-service!")); |
|
51 | + $elements->errorPage(_("Error creating new IdP binding!"), _("You tried to register in self-service, but this deployment does not allow self-service!")); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | switch ($_GET['token']) { |
55 | 55 | case "EDUGAIN-SELF-REGISTER": |
56 | 56 | $token = "EDUGAIN-SELF-REGISTER"; |
57 | - $extIdUnfiltered = filter_input(INPUT_GET,'extid'); |
|
57 | + $extIdUnfiltered = filter_input(INPUT_GET, 'extid'); |
|
58 | 58 | $extIdArray = explode('-', htmlspecialchars(strip_tags($extIdUnfiltered)), 2); |
59 | 59 | $ROid = $extIdArray[0]; |
60 | 60 | $extId = $extIdArray[1]; |
61 | - $fed = new \core\Federation(strtoupper(substr($ROid,0,2))); |
|
61 | + $fed = new \core\Federation(strtoupper(substr($ROid, 0, 2))); |
|
62 | 62 | $newInstFlag = $fed->getAttributes('fed:autoregister-new-inst'); |
63 | 63 | if ($newInstFlag === []) { |
64 | - $elements->errorPage(_("Error creating new IdP!"),_("You tried to register in self-service, but this federation does not allow self-service!")); |
|
64 | + $elements->errorPage(_("Error creating new IdP!"), _("You tried to register in self-service, but this federation does not allow self-service!")); |
|
65 | 65 | } |
66 | 66 | // we must be sure that this person admins the ext institution and that it falls into the current federation |
67 | 67 | if ($validator->existingExtInstitution($extId, $userEmail, $ROid) === 1) { |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | // and check that this institution does not match anuthing in CAT. |
71 | 71 | $usermgmt = new \core\UserManagement(); |
72 | 72 | if ($usermgmt->checkForCatMatch($extId, $ROid) === 1) { |
73 | - $elements->errorPage(_("Error creating new IdP!"),_("You tried to register a new institution while it already has a match in CAT or your email is not not listed as admin for this institution in the eduroam DB!")); |
|
73 | + $elements->errorPage(_("Error creating new IdP!"), _("You tried to register a new institution while it already has a match in CAT or your email is not not listed as admin for this institution in the eduroam DB!")); |
|
74 | 74 | } |
75 | 75 | break; |
76 | 76 | case "SELF-REGISTER": |
@@ -79,23 +79,23 @@ discard block |
||
79 | 79 | $federation = \config\ConfAssistant::CONSORTIUM['selfservice_registration']; |
80 | 80 | break; |
81 | 81 | default: |
82 | - $tokenUnfiltered = $validator->token(filter_input(INPUT_GET,'token')); |
|
82 | + $tokenUnfiltered = $validator->token(filter_input(INPUT_GET, 'token')); |
|
83 | 83 | $token = htmlspecialchars(strip_tags($tokenUnfiltered)); |
84 | 84 | $checkval = $usermgmt->checkTokenValidity($token); |
85 | 85 | } |
86 | 86 | |
87 | 87 | if ($checkval < 0) { |
88 | 88 | echo $deco->pageheader(_("Error creating new IdP binding!"), "ADMIN-IDP"); |
89 | - echo "<h1>" . _("Error creating new IdP binding!") . "</h1>"; |
|
89 | + echo "<h1>"._("Error creating new IdP binding!")."</h1>"; |
|
90 | 90 | switch ($checkval) { |
91 | 91 | case \core\UserManagement::TOKENSTATUS_FAIL_ALREADYCONSUMED: |
92 | - echo "<p>" . sprintf(_("Sorry... this token has already been used. The %s is already created. If you got the invitation from a mailing list, probably someone else used it before you."), $elements->nomenclatureParticipant) . "</p>"; |
|
92 | + echo "<p>".sprintf(_("Sorry... this token has already been used. The %s is already created. If you got the invitation from a mailing list, probably someone else used it before you."), $elements->nomenclatureParticipant)."</p>"; |
|
93 | 93 | break; |
94 | 94 | case \core\UserManagement::TOKENSTATUS_FAIL_EXPIRED: |
95 | - echo "<p>" . sprintf(_("Sorry... this token has expired. Invitation tokens are valid for 24 hours. The %s administrator can create a new one for you."), $elements->nomenclatureFed) . "</p>"; |
|
95 | + echo "<p>".sprintf(_("Sorry... this token has expired. Invitation tokens are valid for 24 hours. The %s administrator can create a new one for you."), $elements->nomenclatureFed)."</p>"; |
|
96 | 96 | break; |
97 | 97 | default: |
98 | - echo "<p>" . _("Sorry... you have come to the enrollment page without a valid token. Are you a nasty person? If not, you should go to <a href='overview_user.php'>your profile page</a> instead.") . "</p>"; |
|
98 | + echo "<p>"._("Sorry... you have come to the enrollment page without a valid token. Are you a nasty person? If not, you should go to <a href='overview_user.php'>your profile page</a> instead.")."</p>"; |
|
99 | 99 | } |
100 | 100 | echo $deco->footer(); |
101 | 101 | throw new Exception("Terminating because something is wrong with the token we received."); |
@@ -109,17 +109,17 @@ discard block |
||
109 | 109 | switch ($token) { |
110 | 110 | case "EDUGAIN-SELF-REGISTER": |
111 | 111 | $newidp = $usermgmt->createIdPFromExternal($extId, $fed, $user); |
112 | - $loggerInstance->writeAudit($user, "MOD", "IdP " . $newidp->identifier . " - selfservice eduGAIN registration"); |
|
112 | + $loggerInstance->writeAudit($user, "MOD", "IdP ".$newidp->identifier." - selfservice eduGAIN registration"); |
|
113 | 113 | break; |
114 | 114 | case "SELF-REGISTER": |
115 | 115 | $fed = new \core\Federation($federation); |
116 | 116 | $newidp = new \core\IdP($fed->newIdP('SELF', core\IdP::TYPE_IDPSP, $user, "FED", "SELFSERVICE")); |
117 | - $loggerInstance->writeAudit($user, "MOD", "IdP " . $newidp->identifier . " - selfservice registration"); |
|
117 | + $loggerInstance->writeAudit($user, "MOD", "IdP ".$newidp->identifier." - selfservice registration"); |
|
118 | 118 | break; |
119 | 119 | default: |
120 | 120 | $newidp = $usermgmt->createIdPFromToken($token, $user); |
121 | 121 | $usermgmt->invalidateToken($token); |
122 | - $loggerInstance->writeAudit($user, "MOD", "IdP " . $newidp->identifier . " - Token used and invalidated"); |
|
122 | + $loggerInstance->writeAudit($user, "MOD", "IdP ".$newidp->identifier." - Token used and invalidated"); |
|
123 | 123 | break; |
124 | 124 | } |
125 | 125 |
@@ -73,17 +73,17 @@ discard block |
||
73 | 73 | $retval = "<div class='sidebar'><p>"; |
74 | 74 | $user = new \core\User($_SESSION['user']); |
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 | 79 | if ($user->isFederationAdmin()) { |
80 | - $retval .= "<a href='" . \core\CAT::getRootUrlPath() . "/admin/overview_federation.php'>" . _("The NRO page") . "</a> "; |
|
80 | + $retval .= "<a href='".\core\CAT::getRootUrlPath()."/admin/overview_federation.php'>"._("The NRO page")."</a> "; |
|
81 | 81 | |
82 | 82 | } |
83 | - $retval .= "<a href='" . \core\CAT::getRootUrlPath() . "/admin/overview_user.php'>" . _("Go to your Profile page") . "</a> |
|
84 | - <a href='" . \core\CAT::getRootUrlPath() . "/admin/inc/logout.php'>" . _("Logout") . "</a> "; |
|
83 | + $retval .= "<a href='".\core\CAT::getRootUrlPath()."/admin/overview_user.php'>"._("Go to your Profile page")."</a> |
|
84 | + <a href='" . \core\CAT::getRootUrlPath()."/admin/inc/logout.php'>"._("Logout")."</a> "; |
|
85 | 85 | } |
86 | - $retval .= "<a href='" . \core\CAT::getRootUrlPath() . "/'>" . _("Start page") . "</a> |
|
86 | + $retval .= "<a href='".\core\CAT::getRootUrlPath()."/'>"._("Start page")."</a> |
|
87 | 87 | </p> |
88 | 88 | </div> <!-- sidebar -->"; |
89 | 89 | \core\common\Entity::outOfThePotatoes(); |
@@ -107,23 +107,23 @@ discard block |
||
107 | 107 | <h1>$cap1</h1> |
108 | 108 | </div><!--header_captions--> |
109 | 109 | <div id='langselection' style='padding-top:20px; padding-".$this->start.":10px;'> |
110 | - <form action='$place' method='GET' accept-charset='UTF-8'>" . _("View this page in") . " |
|
110 | + <form action='$place' method='GET' accept-charset='UTF-8'>"._("View this page in")." |
|
111 | 111 | <select id='lang' name='lang' onchange='this.form.submit()'>"; |
112 | 112 | |
113 | 113 | foreach (\config\Master::LANGUAGES as $lang => $getValue) { |
114 | - $retval .= "<option value='$lang' " . (strtoupper($language) == strtoupper($lang) ? "selected" : "" ) . " >" . $getValue['display'] . "</option> "; |
|
114 | + $retval .= "<option value='$lang' ".(strtoupper($language) == strtoupper($lang) ? "selected" : "")." >".$getValue['display']."</option> "; |
|
115 | 115 | } |
116 | 116 | $retval .= "</select>"; |
117 | 117 | |
118 | 118 | foreach ($_GET as $getVar => $getValue) { |
119 | 119 | $filterValue = htmlspecialchars(strip_tags(filter_input(INPUT_GET, $getVar))); |
120 | 120 | if ($getVar != "lang" && $getValue != "") { |
121 | - $retval .= "<input type='hidden' name='" . htmlspecialchars($getVar) . "' value='" . htmlspecialchars($filterValue) . "'>"; |
|
121 | + $retval .= "<input type='hidden' name='".htmlspecialchars($getVar)."' value='".htmlspecialchars($filterValue)."'>"; |
|
122 | 122 | } |
123 | 123 | } |
124 | 124 | $retval .= "</form> |
125 | 125 | </div><!--langselection-->"; |
126 | - $logoUrl = \core\CAT::getRootUrlPath() . "/resources/images/consortium_logo.png"; |
|
126 | + $logoUrl = \core\CAT::getRootUrlPath()."/resources/images/consortium_logo.png"; |
|
127 | 127 | $retval .= "<div class='consortium_logo'> |
128 | 128 | <img id='test_locate' src='$logoUrl' alt='Consortium Logo'> |
129 | 129 | </div> <!-- consortium_logo --> |
@@ -216,7 +216,7 @@ discard block |
||
216 | 216 | |
217 | 217 | if (isset(\config\Master::APPEARANCE['MOTD']) && \config\Master::APPEARANCE['MOTD'] != "") { |
218 | 218 | $retval .= "<div id='header_MOTD' style='display:inline-block; padding-".$this->start.":20px;vertical-align:top;'> |
219 | - <p class='MOTD'>" . \config\Master::APPEARANCE['MOTD'] . "</p> |
|
219 | + <p class='MOTD'>" . \config\Master::APPEARANCE['MOTD']."</p> |
|
220 | 220 | </div><!--header_MOTD-->"; |
221 | 221 | } |
222 | 222 | $retval .= $this->sidebar($advancedControls); |
@@ -242,11 +242,11 @@ discard block |
||
242 | 242 | <html xmlns='http://www.w3.org/1999/xhtml' lang='$ourlocale'".($this->langObject->rtl ? "dir='rtl'" : "")."> |
243 | 243 | <head lang='$ourlocale'> |
244 | 244 | <meta http-equiv='Content-Type' content='text/html; charset=UTF-8'>"; |
245 | - $cssUrl = \core\CAT::getRootUrlPath() . "/resources/css/cat.css.php"; |
|
245 | + $cssUrl = \core\CAT::getRootUrlPath()."/resources/css/cat.css.php"; |
|
246 | 246 | $retval .= "<link rel='stylesheet' type='text/css' href='$cssUrl' />"; |
247 | 247 | $retval .= "<script src='".\core\CAT::getRootUrlPath()."/external/jquery/jquery.js'></script>"; |
248 | 248 | $retval .= "<script src='".\core\CAT::getRootUrlPath()."/admin/js/click_button.js'></script>"; |
249 | - $retval .= "<title>" . htmlspecialchars($pagetitle) . "</title>"; |
|
249 | + $retval .= "<title>".htmlspecialchars($pagetitle)."</title>"; |
|
250 | 250 | return $retval; |
251 | 251 | } |
252 | 252 | |
@@ -260,7 +260,7 @@ discard block |
||
260 | 260 | // we may need to jump up one dir if we are either in admin/ or accountstatus/ |
261 | 261 | // (accountstatus courtesy of my good mood. It's userspace not admin space so |
262 | 262 | // it shouldn't be using this function any more.) |
263 | - $logoBase = \core\CAT::getRootUrlPath() . "/resources/images"; |
|
263 | + $logoBase = \core\CAT::getRootUrlPath()."/resources/images"; |
|
264 | 264 | return "<span id='logos'><img src='$logoBase/dante.png' alt='DANTE' style='height:23px;width:47px'/> |
265 | 265 | <img src='$logoBase/eu.png' alt='EU' style='height:23px;width:27px;border-width:0px;'/></span> |
266 | 266 | <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>"; |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | $wizard = new \web\lib\admin\Wizard($wizardMode); |
139 | 139 | $wizard->setMessages(); |
140 | 140 | $retval = "<fieldset class='option_container_map'> |
141 | - <legend><strong>" . _("Location") . "</strong></legend>"; |
|
141 | + <legend><strong>" . _("Location")."</strong></legend>"; |
|
142 | 142 | $retval .= $wizard->displayHelp("location"); |
143 | 143 | if ($additional) { |
144 | 144 | $retval .= _("You can enter an <strong>additional</strong> location here. You can see the already defined locations in the 'General Information' field."); |
@@ -155,7 +155,7 @@ discard block |
||
155 | 155 | */ |
156 | 156 | protected function htmlPostEdit($allowDirectInput) { |
157 | 157 | \core\common\Entity::intoThePotatoes(); |
158 | - $retval = "<br/>" . _("Latitude:") . " <input style='width:80px' name='geo_lat' id='geo_lat' " .($allowDirectInput ? "": "readonly"). ">" . _("Longitude:") . " <input name='geo_long' id='geo_long' style='width:80px' " .($allowDirectInput ? "": "readonly"). "></fieldset>"; |
|
158 | + $retval = "<br/>"._("Latitude:")." <input style='width:80px' name='geo_lat' id='geo_lat' ".($allowDirectInput ? "" : "readonly").">"._("Longitude:")." <input name='geo_long' id='geo_long' style='width:80px' ".($allowDirectInput ? "" : "readonly")."></fieldset>"; |
|
159 | 159 | \core\common\Entity::outOfThePotatoes(); |
160 | 160 | return $retval; |
161 | 161 | } |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | */ |
113 | 113 | public function prefilledOptionTable(string $attributePrefix, $fed) |
114 | 114 | { |
115 | - $retval = "<table id='expandable_$attributePrefix" . "_options'>"; |
|
115 | + $retval = "<table id='expandable_$attributePrefix"."_options'>"; |
|
116 | 116 | |
117 | 117 | $prepopulate = []; |
118 | 118 | foreach ($this->listOfOptions as $existingAttribute) { |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $prepopulate[] = $existingAttribute; |
121 | 121 | } |
122 | 122 | } |
123 | - if (is_array($prepopulate) && ( count($prepopulate) > 0 || $attributePrefix == "device-specific" || $attributePrefix == "eap-specific" )) { // editing... fill with values |
|
123 | + if (is_array($prepopulate) && (count($prepopulate) > 0 || $attributePrefix == "device-specific" || $attributePrefix == "eap-specific")) { // editing... fill with values |
|
124 | 124 | $retval .= $this->addOptionEdit($attributePrefix, $prepopulate); |
125 | 125 | } else { |
126 | 126 | $retval .= $this->addOptionNew($attributePrefix, $fed); |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | if (preg_match("/^$class:/", $option['name']) && !preg_match("/($blackListOnPrefill)/", $option['name'])) { |
155 | 155 | $optiontypearray = $optioninfo->optionType($option['name']); |
156 | 156 | $loggerInstance->debug(5, "About to execute optiontext with PREFILL!\n"); |
157 | - $retval .= $this->optiontext([$option['name']], ($optiontypearray["type"] == "file" ? 'ROWID-' . $option['level'] . '-' . $option['row_id'] : $option['value']), $option['lang']); |
|
157 | + $retval .= $this->optiontext([$option['name']], ($optiontypearray["type"] == "file" ? 'ROWID-'.$option['level'].'-'.$option['row_id'] : $option['value']), $option['lang']); |
|
158 | 158 | } |
159 | 159 | } |
160 | 160 | return $retval; |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | * @param string $fed the federation TLD, to determine fed ops preference context |
171 | 171 | * @return array the list of options to display |
172 | 172 | */ |
173 | - public static function enumerateOptionsToDisplay($class, $fed, $device='') |
|
173 | + public static function enumerateOptionsToDisplay($class, $fed, $device = '') |
|
174 | 174 | { |
175 | 175 | $optioninfo = \core\Options::instance(); |
176 | 176 | $loggerInstance = new \core\common\Logging(); |
@@ -266,18 +266,18 @@ discard block |
||
266 | 266 | } |
267 | 267 | $descriptions["media:force_proxy"] = sprintf(_("The format of this option is: IPv4|IPv6|hostname:port . Forcing your users through a content filter of your own is a significant invasion of user self-determination. It also has technical issues. Please thoroughly read the discussion at %s before specifying a proxy with this option. This feature is currently experimental and only has an effect in Apple installers."), "https://github.com/GEANT/CAT/issues/96"); |
268 | 268 | $descriptions["managedsp:realmforvlan"] = sprintf(_("If you are also using %s, then your own realm is automatically tagged with the VLAN you choose, there is no need to add it here manually."), \core\ProfileSilverbullet::PRODUCTNAME); |
269 | - $descriptions["media:openroaming"] = sprintf(_("By opting in to OpenRoaming, you agree to be bound by the %s."), "eduroam Ecosystem Broker OpenRoaming Identity Provider Policy") . |
|
270 | - " " . |
|
271 | - sprintf(_("Note that your requirement to inform users about the OpenRoaming End User Terms and Conditions is fulfilled when directing your end users to the %s download portal for installer download. Any other means of providing the installers needs to present this information via its own channel."), \config\Master::APPEARANCE['productname']) . |
|
272 | - " " . |
|
273 | - _("You are also aware that for best technical interoperability, you need to add a DNS entry into the DNS zone of your RADIUS realm.") . |
|
274 | - " " . |
|
269 | + $descriptions["media:openroaming"] = sprintf(_("By opting in to OpenRoaming, you agree to be bound by the %s."), "eduroam Ecosystem Broker OpenRoaming Identity Provider Policy"). |
|
270 | + " ". |
|
271 | + sprintf(_("Note that your requirement to inform users about the OpenRoaming End User Terms and Conditions is fulfilled when directing your end users to the %s download portal for installer download. Any other means of providing the installers needs to present this information via its own channel."), \config\Master::APPEARANCE['productname']). |
|
272 | + " ". |
|
273 | + _("You are also aware that for best technical interoperability, you need to add a DNS entry into the DNS zone of your RADIUS realm."). |
|
274 | + " ". |
|
275 | 275 | _("Read the instructions in the wiki."); |
276 | 276 | \core\common\Entity::outOfThePotatoes(); |
277 | 277 | if (!isset($descriptions[$input])) { |
278 | 278 | return ""; |
279 | 279 | } |
280 | - return "<span class='tooltip' id='S$rowid-tooltip-$input' style='display:" . ($isVisible ? "block" : "none") . "' onclick='alert(\"" . $descriptions[$input] . "\")'><img src='../resources/images/icons/question-mark-icon.png" . "'></span>"; |
|
280 | + return "<span class='tooltip' id='S$rowid-tooltip-$input' style='display:".($isVisible ? "block" : "none")."' onclick='alert(\"".$descriptions[$input]."\")'><img src='../resources/images/icons/question-mark-icon.png"."'></span>"; |
|
281 | 281 | } |
282 | 282 | |
283 | 283 | /** |
@@ -291,19 +291,19 @@ discard block |
||
291 | 291 | private function selectElement($rowid, $list) |
292 | 292 | { |
293 | 293 | $jsmagic = "onchange=' |
294 | - if (/#ML#/.test(document.getElementById(\"option-S" . $rowid . "-select\").value)) { |
|
294 | + if (/#ML#/.test(document.getElementById(\"option-S" . $rowid."-select\").value)) { |
|
295 | 295 | document.getElementById(\"S$rowid-input-langselect\").style.display = \"block\"; |
296 | 296 | } else { |
297 | 297 | document.getElementById(\"S$rowid-input-langselect\").style.display = \"none\"; |
298 | 298 | }"; |
299 | 299 | foreach (array_keys($this->htmlDatatypeTexts) as $key) { |
300 | - $jsmagic .= "if (/#" . $key . "#/.test(document.getElementById(\"option-S" . $rowid . "-select\").value)) { |
|
301 | - document.getElementById(\"S$rowid-input-file\").style.display = \"" . ($key == \core\Options::TYPECODE_FILE ? "block" : "none") . "\"; |
|
302 | - document.getElementById(\"S$rowid-input-text\").style.display = \"" . ($key == \core\Options::TYPECODE_TEXT ? "block" : "none") . "\"; |
|
303 | - document.getElementById(\"S$rowid-input-string\").style.display = \"" . ($key == \core\Options::TYPECODE_STRING ? "block" : "none") . "\"; |
|
304 | - document.getElementById(\"S$rowid-input-enum_openroaming\").style.display = \"" . ($key == \core\Options::TYPECODE_ENUM_OPENROAMING ? "block" : "none") . "\"; |
|
305 | - document.getElementById(\"S$rowid-input-boolean\").style.display = \"" . ($key == \core\Options::TYPECODE_BOOLEAN ? "block" : "none") . "\"; |
|
306 | - document.getElementById(\"S$rowid-input-integer\").style.display = \"" . ($key == \core\Options::TYPECODE_INTEGER ? "block" : "none") . "\"; |
|
300 | + $jsmagic .= "if (/#".$key."#/.test(document.getElementById(\"option-S".$rowid."-select\").value)) { |
|
301 | + document.getElementById(\"S$rowid-input-file\").style.display = \"".($key == \core\Options::TYPECODE_FILE ? "block" : "none")."\"; |
|
302 | + document.getElementById(\"S$rowid-input-text\").style.display = \"".($key == \core\Options::TYPECODE_TEXT ? "block" : "none")."\"; |
|
303 | + document.getElementById(\"S$rowid-input-string\").style.display = \"".($key == \core\Options::TYPECODE_STRING ? "block" : "none")."\"; |
|
304 | + document.getElementById(\"S$rowid-input-enum_openroaming\").style.display = \"".($key == \core\Options::TYPECODE_ENUM_OPENROAMING ? "block" : "none")."\"; |
|
305 | + document.getElementById(\"S$rowid-input-boolean\").style.display = \"".($key == \core\Options::TYPECODE_BOOLEAN ? "block" : "none")."\"; |
|
306 | + document.getElementById(\"S$rowid-input-integer\").style.display = \"".($key == \core\Options::TYPECODE_INTEGER ? "block" : "none")."\"; |
|
307 | 307 | } |
308 | 308 | "; |
309 | 309 | // hide all tooltips (each is a <span>, and there are no other <span>s) |
@@ -334,7 +334,7 @@ discard block |
||
334 | 334 | $value = array_shift($list); |
335 | 335 | $listtype = $optioninfo->optionType($value); |
336 | 336 | $retval .= $uiElements->displayName($value); |
337 | - $retval .= "<input type='hidden' name='option[S$rowid]' value='$value#" . $listtype["type"] . "#" . $listtype["flag"] . "#'/>"; |
|
337 | + $retval .= "<input type='hidden' name='option[S$rowid]' value='$value#".$listtype["type"]."#".$listtype["flag"]."#'/>"; |
|
338 | 338 | $activelisttype = $listtype; |
339 | 339 | $tooltips = $this->tooltip($rowid, $value, TRUE); |
340 | 340 | break; |
@@ -347,7 +347,7 @@ discard block |
||
347 | 347 | array_multisort($sortArray, SORT_ASC, $list); |
348 | 348 | foreach ($list as $value) { |
349 | 349 | $listtype = $optioninfo->optionType($value); |
350 | - $retval .= "<option id='option-S$rowid-v-$value' value='$value#" . $listtype["type"] . "#" . $listtype["flag"] . "#' "; |
|
350 | + $retval .= "<option id='option-S$rowid-v-$value' value='$value#".$listtype["type"]."#".$listtype["flag"]."#' "; |
|
351 | 351 | if ($iterator == $this->optionIterator) { |
352 | 352 | $retval .= "selected='selected'"; |
353 | 353 | $activelisttype = $listtype; |
@@ -355,7 +355,7 @@ discard block |
||
355 | 355 | } else { |
356 | 356 | $tooltips .= $this->tooltip($rowid, $value, FALSE); |
357 | 357 | } |
358 | - $retval .= ">" . $uiElements->displayName($value) . "</option>"; |
|
358 | + $retval .= ">".$uiElements->displayName($value)."</option>"; |
|
359 | 359 | $iterator++; |
360 | 360 | } |
361 | 361 | |
@@ -381,9 +381,9 @@ discard block |
||
381 | 381 | private function selectLanguage($rowid, $makeVisible) |
382 | 382 | { |
383 | 383 | \core\common\Entity::intoThePotatoes(); |
384 | - $retval = "<select style='display:" . ($makeVisible ? "block" : "none") . "' name='value[S$rowid-lang]' id='S" . $rowid . "-input-langselect'> |
|
385 | - <option value='' name='select_language' selected>" . _("select language") . "</option> |
|
386 | - <option value='C' name='all_languages'>" . _("default/other languages") . "</option>"; |
|
384 | + $retval = "<select style='display:".($makeVisible ? "block" : "none")."' name='value[S$rowid-lang]' id='S".$rowid."-input-langselect'> |
|
385 | + <option value='' name='select_language' selected>" . _("select language")."</option> |
|
386 | + <option value='C' name='all_languages'>" . _("default/other languages")."</option>"; |
|
387 | 387 | foreach (\config\Master::LANGUAGES as $langindex => $possibleLang) { |
388 | 388 | $thislang = $possibleLang['display']; |
389 | 389 | $retval .= "<option value='$langindex' name='$langindex'>$thislang</option>"; |
@@ -404,7 +404,7 @@ discard block |
||
404 | 404 | { |
405 | 405 | $retval = ""; |
406 | 406 | foreach ($this->htmlDatatypeTexts as $key => $type) { |
407 | - $retval .= "<" . $type['html'] . " style='display:" . ($activetype['type'] == $key ? "block" : "none") . "' name='value[S$rowid-$key]' id='S" . $rowid . "-input-" . $key . "'" . $type['tail'] . ">"; |
|
407 | + $retval .= "<".$type['html']." style='display:".($activetype['type'] == $key ? "block" : "none")."' name='value[S$rowid-$key]' id='S".$rowid."-input-".$key."'".$type['tail'].">"; |
|
408 | 408 | } |
409 | 409 | return $retval; |
410 | 410 | } |
@@ -420,11 +420,11 @@ discard block |
||
420 | 420 | { |
421 | 421 | // first column: the <select> element with the names of options and their field-toggling JS magic |
422 | 422 | $selectorInfo = $this->selectElement($rowid, $list); |
423 | - $retval = "<td>" . $selectorInfo["TEXT"] . "</td>"; |
|
423 | + $retval = "<td>".$selectorInfo["TEXT"]."</td>"; |
|
424 | 424 | // second column: the <select> element for language selection - only visible if the active option is multi-lang |
425 | - $retval .= "<td>" . $this->selectLanguage($rowid, $selectorInfo['ACTIVE']['flag'] == "ML") . "</td>"; |
|
425 | + $retval .= "<td>".$this->selectLanguage($rowid, $selectorInfo['ACTIVE']['flag'] == "ML")."</td>"; |
|
426 | 426 | // third column: the actual input fields; the data type of the active option is visible, all others hidden |
427 | - $retval .= "<td>" . $this->inputFields($rowid, $selectorInfo['ACTIVE']) . "</td>"; |
|
427 | + $retval .= "<td>".$this->inputFields($rowid, $selectorInfo['ACTIVE'])."</td>"; |
|
428 | 428 | return $retval; |
429 | 429 | } |
430 | 430 | |
@@ -448,20 +448,20 @@ discard block |
||
448 | 448 | $retval .= "<td>"; |
449 | 449 | $uiElements = new UIElements(); |
450 | 450 | $listtype = $optioninfo->optionType($optionName); |
451 | - $retval .= "<span style='display:flex;'>" . $uiElements->displayName($optionName); |
|
452 | - $retval .= $this->tooltip($rowid, $optionName, TRUE) . "</span>"; |
|
453 | - $retval .= "<input type='hidden' id='option-S$rowid-select' name='option[S$rowid]' value='$optionName#" . $listtype["type"] . "#" . $listtype["flag"] . "#' ></td>"; |
|
451 | + $retval .= "<span style='display:flex;'>".$uiElements->displayName($optionName); |
|
452 | + $retval .= $this->tooltip($rowid, $optionName, TRUE)."</span>"; |
|
453 | + $retval .= "<input type='hidden' id='option-S$rowid-select' name='option[S$rowid]' value='$optionName#".$listtype["type"]."#".$listtype["flag"]."#' ></td>"; |
|
454 | 454 | |
455 | 455 | // language tag if any |
456 | 456 | $retval .= "<td>"; |
457 | 457 | if ($listtype["flag"] == "ML") { |
458 | 458 | |
459 | - $language = "(" . strtoupper($optionLang) . ")"; |
|
459 | + $language = "(".strtoupper($optionLang).")"; |
|
460 | 460 | if ($optionLang == 'C') { |
461 | 461 | $language = _("(default/other languages)"); |
462 | 462 | } |
463 | 463 | $retval .= $language; |
464 | - $retval .= "<input type='hidden' name='value[S$rowid-lang]' id='S" . $rowid . "-input-langselect' value='" . $optionLang . "' style='display:block'>"; |
|
464 | + $retval .= "<input type='hidden' name='value[S$rowid-lang]' id='S".$rowid."-input-langselect' value='".$optionLang."' style='display:block'>"; |
|
465 | 465 | } |
466 | 466 | $retval .= "</td>"; |
467 | 467 | // attribute content |
@@ -471,12 +471,12 @@ discard block |
||
471 | 471 | case \core\Options::TYPECODE_COORDINATES: |
472 | 472 | $this->allLocationCount = $this->allLocationCount + 1; |
473 | 473 | // display of the locations varies by map provider |
474 | - $classname = "\web\lib\admin\Map" . \config\ConfAssistant::MAPPROVIDER['PROVIDER']; |
|
474 | + $classname = "\web\lib\admin\Map".\config\ConfAssistant::MAPPROVIDER['PROVIDER']; |
|
475 | 475 | $link = $classname::optionListDisplayCode($optionValue, $this->allLocationCount); |
476 | - $retval .= "<input readonly style='display:none' type='text' name='value[S$rowid-" . \core\Options::TYPECODE_TEXT . "]' id='S$rowid-input-text' value='$optionValue'>$link"; |
|
476 | + $retval .= "<input readonly style='display:none' type='text' name='value[S$rowid-".\core\Options::TYPECODE_TEXT."]' id='S$rowid-input-text' value='$optionValue'>$link"; |
|
477 | 477 | break; |
478 | 478 | case \core\Options::TYPECODE_FILE: |
479 | - $retval .= "<input readonly type='text' name='value[S$rowid-" . \core\Options::TYPECODE_STRING . "]' id='S" . $rowid . "-input-string' style='display:none' value='" . urlencode($optionValue) . "'>"; |
|
479 | + $retval .= "<input readonly type='text' name='value[S$rowid-".\core\Options::TYPECODE_STRING."]' id='S".$rowid."-input-string' style='display:none' value='".urlencode($optionValue)."'>"; |
|
480 | 480 | $uiElements = new UIElements(); |
481 | 481 | switch ($optionName) { |
482 | 482 | case "eap:ca_file": |
@@ -498,7 +498,7 @@ discard block |
||
498 | 498 | break; |
499 | 499 | case \core\Options::TYPECODE_ENUM_OPENROAMING: // is a string after all |
500 | 500 | $displayedVariant = $this->enumPrettyPrints[$optionValue]; |
501 | - $retval .= "<strong>$displayedVariant</strong><input type='hidden' name='value[S$rowid-" . $listtype['type'] . "]' id='S" . $rowid . "-input-" . $listtype["type"] . "' value=\"" . htmlspecialchars($optionValue) . "\" style='display:block'>"; |
|
501 | + $retval .= "<strong>$displayedVariant</strong><input type='hidden' name='value[S$rowid-".$listtype['type']."]' id='S".$rowid."-input-".$listtype["type"]."' value=\"".htmlspecialchars($optionValue)."\" style='display:block'>"; |
|
502 | 502 | break; |
503 | 503 | case \core\Options::TYPECODE_STRING: |
504 | 504 | // fall-thorugh is intentional; mostly identical HTML code for the three types |
@@ -506,11 +506,11 @@ discard block |
||
506 | 506 | // fall-thorugh is intentional; mostly identical HTML code for the three types |
507 | 507 | case \core\Options::TYPECODE_TEXT: |
508 | 508 | $displayedVariant = $optionValue; // for all three types, value tag and actual display are identical |
509 | - $retval .= "<strong>$displayedVariant</strong><input type='hidden' name='value[S$rowid-" . $listtype['type'] . "]' id='S" . $rowid . "-input-" . $listtype["type"] . "' value=\"" . htmlspecialchars($optionValue) . "\" style='display:block'>"; |
|
509 | + $retval .= "<strong>$displayedVariant</strong><input type='hidden' name='value[S$rowid-".$listtype['type']."]' id='S".$rowid."-input-".$listtype["type"]."' value=\"".htmlspecialchars($optionValue)."\" style='display:block'>"; |
|
510 | 510 | break; |
511 | 511 | case \core\Options::TYPECODE_BOOLEAN: |
512 | 512 | $displayedVariant = ($optionValue == "on" ? _("on") : _("off")); |
513 | - $retval .= "<strong>$displayedVariant</strong><input type='hidden' name='value[S$rowid-" . $listtype['type'] . "]' id='S" . $rowid . "-input-" . $listtype["type"] . "' value=\"" . htmlspecialchars($optionValue) . "\" style='display:block'>"; |
|
513 | + $retval .= "<strong>$displayedVariant</strong><input type='hidden' name='value[S$rowid-".$listtype['type']."]' id='S".$rowid."-input-".$listtype["type"]."' value=\"".htmlspecialchars($optionValue)."\" style='display:block'>"; |
|
514 | 514 | break; |
515 | 515 | default: |
516 | 516 | // this should never happen! |
@@ -556,10 +556,10 @@ discard block |
||
556 | 556 | <td> |
557 | 557 | <button type='button' class='delete' onclick='"; |
558 | 558 | if ($prefillValue !== NULL && $item == "general:geo_coordinates") { |
559 | - $funcname = "Map" . \config\ConfAssistant::MAPPROVIDER['PROVIDER'] . 'DeleteCoord'; |
|
560 | - $retval .= 'if (typeof ' . $funcname . ' === "function") { ' . $funcname . '(' . $this->allLocationCount . '); } '; |
|
559 | + $funcname = "Map".\config\ConfAssistant::MAPPROVIDER['PROVIDER'].'DeleteCoord'; |
|
560 | + $retval .= 'if (typeof '.$funcname.' === "function") { '.$funcname.'('.$this->allLocationCount.'); } '; |
|
561 | 561 | } |
562 | - $retval .= 'deleteOption("option-S' . $rowid . '")'; |
|
562 | + $retval .= 'deleteOption("option-S'.$rowid.'")'; |
|
563 | 563 | $retval .= "'>-</button> |
564 | 564 | </td> |
565 | 565 | </tr>"; |
@@ -24,7 +24,7 @@ discard block |
||
24 | 24 | <head> |
25 | 25 | <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"> |
26 | 26 | <link rel="stylesheet" media="screen" type="text/css" href="<?php echo $Gui->skinObject->findResourceUrl("CSS", "cat-user.css"); ?>" /> |
27 | -<title><?php echo config\Master::APPEARANCE['productname'];?> Copyright and Licensing</title> |
|
27 | +<title><?php echo config\Master::APPEARANCE['productname']; ?> Copyright and Licensing</title> |
|
28 | 28 | </head> |
29 | 29 | <body> |
30 | 30 | <div id="wrap"> |
@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | <div id="user_page" style="display:block"> |
36 | 36 | <?php echo $divs->divPagetitle(config\Master::APPEARANCE['productname']." Copyright and Licensing", ""); ?> |
37 | 37 | <div style="padding:20px"> |
38 | - <?php require dirname(dirname(__DIR__)) . "/copyright.inc.php"; ?> |
|
38 | + <?php require dirname(dirname(__DIR__))."/copyright.inc.php"; ?> |
|
39 | 39 | </div> |
40 | 40 | </div> |
41 | 41 | </div> |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | print "vendorlogo ='';\n"; |
50 | 50 | } |
51 | 51 | |
52 | -print 'downloadMessage = "'.$Gui->textTemplates->templates[\web\lib\user\DOWNLOAD_MESSAGE] . '";'; |
|
52 | +print 'downloadMessage = "'.$Gui->textTemplates->templates[\web\lib\user\DOWNLOAD_MESSAGE].'";'; |
|
53 | 53 | //TODO modify this based on OS detection |
54 | 54 | $userAgent = $_SERVER['HTTP_USER_AGENT'] ?? ""; |
55 | 55 | if (preg_match('/Android/', $userAgent)) { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | <?php echo $divs->divHeading($visibility); ?> |
80 | 80 | <div id="main_page"> |
81 | 81 | <div id="loading_ico"> |
82 | - <?php echo _("Authenticating") . "..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif"); ?>" alt="Authenticating ..."/> |
|
82 | + <?php echo _("Authenticating")."..." ?><br><img src="<?php echo $Gui->skinObject->findResourceUrl("IMAGES", "icons/loading51.gif"); ?>" alt="Authenticating ..."/> |
|
83 | 83 | </div> |
84 | 84 | <div id="info_overlay"> <!-- device info --> |
85 | 85 | <div id="info_window"></div> |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | public function divSilverbullet() { |
68 | 68 | $retval = " |
69 | 69 | <div id='silverbullet'>" |
70 | - . $this->Gui->textTemplates->templates[user\SB_GO_AWAY] . |
|
70 | + . $this->Gui->textTemplates->templates[user\SB_GO_AWAY]. |
|
71 | 71 | "</div> |
72 | 72 | "; |
73 | 73 | return $retval; |
@@ -109,9 +109,9 @@ discard block |
||
109 | 109 | public function divProfiles() { |
110 | 110 | return " |
111 | 111 | <div id='profiles'> <!-- this is the profile selection filled during run time --> |
112 | - <div id='profiles_h' class='sub_h'>" . $this->Gui->textTemplates->templates[user\PROFILE_SELECTION] . " |
|
112 | + <div id='profiles_h' class='sub_h'>" . $this->Gui->textTemplates->templates[user\PROFILE_SELECTION]." |
|
113 | 113 | </div>" . |
114 | -"<select id='profile_list'></select><div id='profile_desc' class='profile_desc'></div>" . |
|
114 | +"<select id='profile_list'></select><div id='profile_desc' class='profile_desc'></div>". |
|
115 | 115 | "</div>"; |
116 | 116 | } |
117 | 117 | |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | public function divInstitution($selectButton = TRUE) { |
127 | 127 | $retval = "<div id='institution_name'> |
128 | 128 | <span id='inst_name_span'></span> <div id='inst_extra_text'></div><!-- this will be filled with the IdP name -->" . |
129 | - ($selectButton ? "<a id='select_another' class='signin' href=\"\">" . $this->Gui->textTemplates->templates[user\INSTITUTION_SELECTION] . "</a>" : "") . |
|
129 | + ($selectButton ? "<a id='select_another' class='signin' href=\"\">".$this->Gui->textTemplates->templates[user\INSTITUTION_SELECTION]."</a>" : ""). |
|
130 | 130 | "</div>"; |
131 | 131 | $retval .= $this->emptyImage('idp_logo', 'IdP Logo'); |
132 | 132 | return $retval; |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | public function divOtherinstallers() { |
141 | 141 | $retval = " |
142 | 142 | <div class='sub_h'> |
143 | - <div id='other_installers'>".$this->Gui->textTemplates->templates[user\DOWNLOAD_CHOOSE] . " |
|
143 | + <div id='other_installers'>".$this->Gui->textTemplates->templates[user\DOWNLOAD_CHOOSE]." |
|
144 | 144 | <table id='device_list' style='padding:0px;'>"; |
145 | 145 | |
146 | 146 | foreach ($this->Gui->listDevices(isset($_REQUEST['hidden']) ? $_REQUEST['hidden'] : 0) as $group => $deviceGroup) { |
@@ -148,18 +148,18 @@ discard block |
||
148 | 148 | $deviceIndex = 0; |
149 | 149 | |
150 | 150 | $imgTag = ""; |
151 | - $imgLocation = $this->Gui->skinObject->findResourceUrl("IMAGES", "vendorlogo/" . $group . ".png"); |
|
151 | + $imgLocation = $this->Gui->skinObject->findResourceUrl("IMAGES", "vendorlogo/".$group.".png"); |
|
152 | 152 | if ($imgLocation !== FALSE) { |
153 | - $imgTag = '<img src="' . $imgLocation . '" alt="' . $group . ' Device" title="' . $group . ' Device">'; |
|
153 | + $imgTag = '<img src="'.$imgLocation.'" alt="'.$group.' Device" title="'.$group.' Device">'; |
|
154 | 154 | } |
155 | - $retval .= '<tbody><tr><td class="vendor" rowspan="' . $groupIndex . '">' . $imgTag . '</td>'; |
|
155 | + $retval .= '<tbody><tr><td class="vendor" rowspan="'.$groupIndex.'">'.$imgTag.'</td>'; |
|
156 | 156 | foreach ($deviceGroup as $d => $D) { |
157 | 157 | if ($deviceIndex) { |
158 | 158 | $retval .= '<tr>'; |
159 | 159 | } |
160 | - $retval .= "<td><button id='" . $d . "'>" . $D['display'] . "</button>" |
|
161 | - . "<div class='device_info' id='info_" . $d . "'></div></td>" |
|
162 | - . "<td><button class='more_info_b' id='info_b_" . $d . "'>i</button></td></tr>\n"; |
|
160 | + $retval .= "<td><button id='".$d."'>".$D['display']."</button>" |
|
161 | + . "<div class='device_info' id='info_".$d."'></div></td>" |
|
162 | + . "<td><button class='more_info_b' id='info_b_".$d."'>i</button></td></tr>\n"; |
|
163 | 163 | $deviceIndex++; |
164 | 164 | } |
165 | 165 | $retval .= "</tbody>"; |
@@ -172,15 +172,15 @@ discard block |
||
172 | 172 | } |
173 | 173 | |
174 | 174 | public function divGuessOs($operatingSystem) { |
175 | - $vendorlogo = $this->Gui->skinObject->findResourceUrl("IMAGES", "vendorlogo/" . $operatingSystem['group'] . ".png"); |
|
175 | + $vendorlogo = $this->Gui->skinObject->findResourceUrl("IMAGES", "vendorlogo/".$operatingSystem['group'].".png"); |
|
176 | 176 | $vendorstyle = ""; |
177 | 177 | if ($vendorlogo !== FALSE) { |
178 | - $vendorstyle = "style='background-image:url(\"" . $vendorlogo . "\")'"; |
|
178 | + $vendorstyle = "style='background-image:url(\"".$vendorlogo."\")'"; |
|
179 | 179 | } |
180 | 180 | $deleteIcon = $this->Gui->skinObject->findResourceUrl("IMAGES", "icons/delete_32.png"); |
181 | 181 | $deleteImg = ""; |
182 | 182 | if ($deleteIcon !== FALSE) { |
183 | - $deleteImg = "<img id='cross_icon_" . $operatingSystem['device'] . "' src='$deleteIcon' >"; |
|
183 | + $deleteImg = "<img id='cross_icon_".$operatingSystem['device']."' src='$deleteIcon' >"; |
|
184 | 184 | } |
185 | 185 | return " |
186 | 186 | <div class='sub_h' id='guess_os'> |
@@ -188,23 +188,23 @@ discard block |
||
188 | 188 | <table id='browser'> |
189 | 189 | <tr> |
190 | 190 | <td> |
191 | - <button class='large_button guess_os' $vendorstyle id='g_" . $operatingSystem['device'] . "'> |
|
191 | + <button class='large_button guess_os' $vendorstyle id='g_".$operatingSystem['device']."'> |
|
192 | 192 | $deleteImg |
193 | - <div class='download_button_text_1' id='download_button_header_" . $operatingSystem['device'] . "'> " . $this->Gui->textTemplates->templates[user\DOWNLOAD_MESSAGE] . " |
|
193 | + <div class='download_button_text_1' id='download_button_header_".$operatingSystem['device']."'> ".$this->Gui->textTemplates->templates[user\DOWNLOAD_MESSAGE]." |
|
194 | 194 | </div> |
195 | 195 | <div class='download_button_text'>" . |
196 | - $operatingSystem['display'] . " |
|
196 | + $operatingSystem['display']." |
|
197 | 197 | </div> |
198 | 198 | </button> |
199 | - <div class='device_info' id='info_g_" . $operatingSystem['device'] . "'></div> |
|
199 | + <div class='device_info' id='info_g_" . $operatingSystem['device']."'></div> |
|
200 | 200 | </td> |
201 | 201 | <td style='vertical-align:top'> |
202 | - <button class='more_info_b large_button' id='g_info_b_" . $operatingSystem['device'] . "'>i</button> |
|
202 | + <button class='more_info_b large_button' id='g_info_b_" . $operatingSystem['device']."'>i</button> |
|
203 | 203 | </td> |
204 | 204 | </tr> |
205 | 205 | </table> <!-- id='browser' --> |
206 | 206 | <div class='sub_h'> |
207 | - <a href='javascript:other_installers()'>" . $this->Gui->textTemplates->templates[user\DOWNLOAD_CHOOSE] . "</a> |
|
207 | + <a href='javascript:other_installers()'>" . $this->Gui->textTemplates->templates[user\DOWNLOAD_CHOOSE]."</a> |
|
208 | 208 | </div> |
209 | 209 | </div> <!-- id='guess_os' -->"; |
210 | 210 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | * the receiving end to strip this marker and not add the title by itself. |
32 | 32 | * |
33 | 33 | */ |
34 | -require_once dirname(dirname(dirname((dirname(dirname(__FILE__)))))) . "/config/_config.php"; |
|
34 | +require_once dirname(dirname(dirname((dirname(dirname(__FILE__))))))."/config/_config.php"; |
|
35 | 35 | |
36 | 36 | $Gui = new \web\lib\user\Gui(); |
37 | 37 | |
@@ -41,46 +41,46 @@ discard block |
||
41 | 41 | $subpage = $_REQUEST['subpage']; |
42 | 42 | switch ($page) { |
43 | 43 | case 'about': |
44 | - include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/user/about_cat.inc.php"; |
|
44 | + include_once dirname(dirname(dirname(dirname(__FILE__))))."/user/about_cat.inc.php"; |
|
45 | 45 | $out = "<div class='padding'>$out</div>"; |
46 | 46 | break; |
47 | 47 | case 'tou': |
48 | - include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/user/tou.inc.php"; |
|
48 | + include_once dirname(dirname(dirname(dirname(__FILE__))))."/user/tou.inc.php"; |
|
49 | 49 | $out = "no_title<div> |
50 | 50 | <h1> |
51 | - " . $Tou['title'] . " |
|
51 | + " . $Tou['title']." |
|
52 | 52 | </h1> |
53 | -<div id='tou_1'>" . $Tou['subtitle'] . |
|
54 | - '<div style="direction:ltr">' . $Tou['short'] . "</div> |
|
53 | +<div id='tou_1'>" . $Tou['subtitle']. |
|
54 | + '<div style="direction:ltr">'.$Tou['short']."</div> |
|
55 | 55 | </div> |
56 | 56 | <div id='all_tou_link'><a href='javascript:showTOU()'>Click here to see the full terms</a></div> |
57 | 57 | <div id='tou_2' style='display:none; padding-top:20px; direction:ltr'>" . |
58 | - $Tou['full'] . " |
|
58 | + $Tou['full']." |
|
59 | 59 | </div> |
60 | 60 | </div> |
61 | 61 | "; |
62 | 62 | break; |
63 | 63 | case 'help': |
64 | - include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/user/faq.inc.php"; |
|
64 | + include_once dirname(dirname(dirname(dirname(__FILE__))))."/user/faq.inc.php"; |
|
65 | 65 | switch ($subpage) { |
66 | 66 | case 'contact': |
67 | 67 | case 'idp_not_listed': |
68 | 68 | case 'device_not_listed': |
69 | 69 | case 'what_is_eduroam': |
70 | - $out = "no_title<div><h1>" . _("Help") . "</h1>"; |
|
70 | + $out = "no_title<div><h1>"._("Help")."</h1>"; |
|
71 | 71 | foreach ($Faq as $faqItem) { |
72 | 72 | if (!empty($faqItem['id']) && $faqItem['id'] == $subpage) { |
73 | - $out .= "<div><h3>" . $faqItem['title'] . "</h3>\n"; |
|
74 | - $out .= "" . $faqItem['text'] . "</div>\n"; |
|
73 | + $out .= "<div><h3>".$faqItem['title']."</h3>\n"; |
|
74 | + $out .= "".$faqItem['text']."</div>\n"; |
|
75 | 75 | } |
76 | 76 | } |
77 | 77 | $out .= "</div>"; |
78 | 78 | break; |
79 | 79 | case 'faq': |
80 | - $out = "no_title<div><h1>" . _("Frequently Asked Questions") . "</h1>"; |
|
80 | + $out = "no_title<div><h1>"._("Frequently Asked Questions")."</h1>"; |
|
81 | 81 | foreach ($Faq as $faqItem) { |
82 | - $out .= "<div><h3>" . $faqItem['title'] . "</h3>\n"; |
|
83 | - $out .= "" . $faqItem['text'] . "</div>\n"; |
|
82 | + $out .= "<div><h3>".$faqItem['title']."</h3>\n"; |
|
83 | + $out .= "".$faqItem['text']."</div>\n"; |
|
84 | 84 | } |
85 | 85 | $out .= "</div>"; |
86 | 86 | break; |
@@ -104,15 +104,15 @@ discard block |
||
104 | 104 | $rn = uniqid(); |
105 | 105 | $_SESSION['remindIdP'] = $rn; |
106 | 106 | $out .= "<input type='hidden' id='remindIdPs' value='$rn'>"; |
107 | - $out .= "<p><button type='button' onclick='goAdmin(); return(false);'>" . _("Login") . "</button>"; |
|
108 | - $out .= "<br/><br/><p>" . _("Did you forget with which Identity Provider you logged in to the system? We can try to find out if you specify the email address with which you were invited to the system in the box below. This may not work if you were invited from a third-party website via the AdminAPI.") . "</p>"; |
|
109 | - $out .= "<input id='remindIdP' type='text'/><button onclick='remindIdPF(); return false;'>" . _("Get IdP Reminder") . "</button>"; |
|
107 | + $out .= "<p><button type='button' onclick='goAdmin(); return(false);'>"._("Login")."</button>"; |
|
108 | + $out .= "<br/><br/><p>"._("Did you forget with which Identity Provider you logged in to the system? We can try to find out if you specify the email address with which you were invited to the system in the box below. This may not work if you were invited from a third-party website via the AdminAPI.")."</p>"; |
|
109 | + $out .= "<input id='remindIdP' type='text'/><button onclick='remindIdPF(); return false;'>"._("Get IdP Reminder")."</button>"; |
|
110 | 110 | $out .= "<div id='remindIdPd'><span id='remindIdPh'></span><ul id='remindIdPl'></ul></div>"; |
111 | 111 | $out = "<div class='padding'>$out</div>"; |
112 | 112 | } |
113 | 113 | break; |
114 | 114 | case 'develop': |
115 | - include_once dirname(dirname(dirname(dirname(__FILE__)))) . "/user/devel.inc.php"; |
|
115 | + include_once dirname(dirname(dirname(dirname(__FILE__))))."/user/devel.inc.php"; |
|
116 | 116 | $out = "<div class='padding'>$out</div>"; |
117 | 117 | break; |
118 | 118 | } |
@@ -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; |