@@ -19,7 +19,7 @@ |
||
| 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 | $deco = new \web\lib\admin\PageDecoration(); |
| 25 | 25 | $uiElements = new web\lib\admin\UIElements(); |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * <base_url>/copyright.php after deploying the software |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php"; |
|
| 22 | +require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php"; |
|
| 23 | 23 | |
| 24 | 24 | $auth = new \web\lib\admin\Authentication(); |
| 25 | 25 | $loggerInstance = new \core\common\Logging(); |
@@ -85,7 +85,7 @@ discard block |
||
| 85 | 85 | $remaining_attribs = $my_profile->beginFlushMethodLevelAttributes($eaptype->getIntegerRep(), NULL); |
| 86 | 86 | $optionParser->processSubmittedFields($my_profile, $_POST, $_FILES, $eaptype->getIntegerRep(), NULL); |
| 87 | 87 | } |
| 88 | - $loggerInstance->writeAudit($_SESSION['user'], "MOD", "Profile " . $my_profile->identifier . " - device/EAP-Type settings changed"); |
|
| 88 | + $loggerInstance->writeAudit($_SESSION['user'], "MOD", "Profile ".$my_profile->identifier." - device/EAP-Type settings changed"); |
|
| 89 | 89 | header("Location: ../overview_installers.php?inst_id=$my_inst->identifier&profile_id=$my_profile->identifier"); |
| 90 | 90 | exit; |
| 91 | 91 | } |
@@ -99,7 +99,7 @@ discard block |
||
| 99 | 99 | } |
| 100 | 100 | $captiontext = sprintf(_("device <strong>%s</strong>"), $device['display']); |
| 101 | 101 | $keyword = "device-specific"; |
| 102 | - $extrainput = "<input type='hidden' name='device' value='" . $device_key . "'/>"; |
|
| 102 | + $extrainput = "<input type='hidden' name='device' value='".$device_key."'/>"; |
|
| 103 | 103 | } elseif ($eaptype !== NULL) { |
| 104 | 104 | foreach ($my_profile->getAttributes() as $attrib) { |
| 105 | 105 | if (isset($attrib['eapmethod']) && $attrib['eapmethod'] == $eaptype->getArrayRep()) { |
@@ -109,12 +109,12 @@ discard block |
||
| 109 | 109 | |
| 110 | 110 | $captiontext = sprintf(_("EAP-Type <strong>%s</strong>"), $eaptype->getPrintableRep()); |
| 111 | 111 | $keyword = "eap-specific"; |
| 112 | - $extrainput = "<input type='hidden' name='eaptype' value='" . $eaptype->getIntegerRep() . "'>"; |
|
| 112 | + $extrainput = "<input type='hidden' name='eaptype' value='".$eaptype->getIntegerRep()."'>"; |
|
| 113 | 113 | } else { |
| 114 | 114 | throw new Exception("previous type checks make it impossible to reach this code path."); |
| 115 | 115 | } |
| 116 | 116 | ?> |
| 117 | -<p><?php echo _("Fine-tuning options for ") . $captiontext; ?></p> |
|
| 117 | +<p><?php echo _("Fine-tuning options for ").$captiontext; ?></p> |
|
| 118 | 118 | <hr/> |
| 119 | 119 | |
| 120 | 120 | <form action='inc/toggleRedirect.inc.php?inst_id=<?php echo $my_inst->identifier; ?>&profile_id=<?php echo $my_profile->identifier; ?>' method='post' accept-charset='UTF-8'><?php echo $extrainput; ?> |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | $interesting_attribs = []; |
| 124 | 124 | |
| 125 | 125 | foreach ($attribs as $attrib) { |
| 126 | - if ($attrib['level'] == "Method" && preg_match('/^' . $keyword . ':/', $attrib['name'])) { |
|
| 126 | + if ($attrib['level'] == "Method" && preg_match('/^'.$keyword.':/', $attrib['name'])) { |
|
| 127 | 127 | $interesting_attribs[] = $attrib; |
| 128 | 128 | } |
| 129 | 129 | } |
@@ -20,7 +20,7 @@ |
||
| 20 | 20 | */ |
| 21 | 21 | ?> |
| 22 | 22 | <?php |
| 23 | -require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php"; |
|
| 23 | +require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php"; |
|
| 24 | 24 | |
| 25 | 25 | $auth = new \web\lib\admin\Authentication(); |
| 26 | 26 | |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * <base_url>/copyright.php after deploying the software |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -require_once dirname(dirname(dirname(dirname(__FILE__)))) . "/config/_config.php"; |
|
| 22 | +require_once dirname(dirname(dirname(dirname(__FILE__))))."/config/_config.php"; |
|
| 23 | 23 | ?> |
| 24 | 24 | |
| 25 | 25 | <!-- JQuery --> |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * <base_url>/copyright.php after deploying the software |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -require_once dirname(dirname(__DIR__)) . "/config/_config.php"; |
|
| 22 | +require_once dirname(dirname(__DIR__))."/config/_config.php"; |
|
| 23 | 23 | |
| 24 | 24 | $deco = new \web\lib\admin\PageDecoration(); |
| 25 | 25 | $validator = new \web\lib\common\InputValidation(); |
@@ -53,10 +53,10 @@ discard block |
||
| 53 | 53 | <?php |
| 54 | 54 | foreach ($preflist as $method) { |
| 55 | 55 | $escapedMethod = $method->getIntegerRep(); |
| 56 | - echo "<th style='min-width:200px'>" . $method->getPrintableRep() . "<br/> |
|
| 56 | + echo "<th style='min-width:200px'>".$method->getPrintableRep()."<br/> |
|
| 57 | 57 | <form method='post' action='inc/toggleRedirect.inc.php?inst_id=$my_inst->identifier&profile_id=$my_profile->identifier' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'> |
| 58 | 58 | <input type='hidden' name='eaptype' value='$escapedMethod'> |
| 59 | - <button class='redirect' type='submit'>" . _("EAP-Type-specific options...") . "</button> |
|
| 59 | + <button class='redirect' type='submit'>"._("EAP-Type-specific options...")."</button> |
|
| 60 | 60 | </form></th>"; |
| 61 | 61 | } |
| 62 | 62 | ?> |
@@ -72,10 +72,10 @@ discard block |
||
| 72 | 72 | foreach (\devices\Devices::listDevices() as $index => $description) { |
| 73 | 73 | |
| 74 | 74 | echo "<tr>"; |
| 75 | - echo "<td align='center'><img src='../resources/images/vendorlogo/" . $description['group'] . ".png' alt='logo'></td><td>" . $description['display'] . "<br/> |
|
| 75 | + echo "<td align='center'><img src='../resources/images/vendorlogo/".$description['group'].".png' alt='logo'></td><td>".$description['display']."<br/> |
|
| 76 | 76 | <form method='post' action='inc/toggleRedirect.inc.php?inst_id=$my_inst->identifier&profile_id=$my_profile->identifier' onsubmit='popupRedirectWindow(this); return false;' accept-charset='UTF-8'> |
| 77 | 77 | <input type='hidden' name='device' value='$index'> |
| 78 | - <button class='redirect' type='submit'>" . _("Device-specific options...") . "</button> |
|
| 78 | + <button class='redirect' type='submit'>"._("Device-specific options...")."</button> |
|
| 79 | 79 | </form> |
| 80 | 80 | </td>"; |
| 81 | 81 | $factory = new \core\DeviceFactory($index); |
@@ -84,10 +84,10 @@ discard block |
||
| 84 | 84 | $footnotesForDevEapCombo = []; |
| 85 | 85 | $display_footnote = FALSE; |
| 86 | 86 | $langObject = new \core\common\Language(); |
| 87 | - $downloadform = "<form action='" . rtrim(dirname(dirname($_SERVER['SCRIPT_NAME'])), '/') . "/user/API.php?action=downloadInstaller&profile=$my_profile->identifier&lang=" . $langObject->getLang() . "' method='post' accept-charset='UTF-8'> |
|
| 87 | + $downloadform = "<form action='".rtrim(dirname(dirname($_SERVER['SCRIPT_NAME'])), '/')."/user/API.php?action=downloadInstaller&profile=$my_profile->identifier&lang=".$langObject->getLang()."' method='post' accept-charset='UTF-8'> |
|
| 88 | 88 | <input type='hidden' name='device' value='$index'/> |
| 89 | 89 | <input type='hidden' name='generatedfor' value='admin'/> |
| 90 | - <button class='download'>" . _("Download") . "</button> |
|
| 90 | + <button class='download'>"._("Download")."</button> |
|
| 91 | 91 | "; |
| 92 | 92 | // first of all: if redirected, indicate by color |
| 93 | 93 | |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | </table> |
| 159 | 159 | <?php |
| 160 | 160 | if (count($distinctFootnotes)) { |
| 161 | - echo "<p><strong>" . _("Footnotes:") . "</strong></p><table>"; |
|
| 161 | + echo "<p><strong>"._("Footnotes:")."</strong></p><table>"; |
|
| 162 | 162 | foreach ($distinctFootnotes as $number => $text) { |
| 163 | 163 | echo "<tr><td>($number) - </td><td>$text</td></tr>"; |
| 164 | 164 | } |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * <base_url>/copyright.php after deploying the software |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -require_once dirname(dirname(__DIR__)) . "/config/_config.php"; |
|
| 22 | +require_once dirname(dirname(__DIR__))."/config/_config.php"; |
|
| 23 | 23 | |
| 24 | 24 | $therealm = filter_input(INPUT_GET, 'realm', FILTER_SANITIZE_STRING); |
| 25 | 25 | $thevisited = filter_input(INPUT_GET, 'visited', FILTER_SANITIZE_STRING); |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | $validator = new \web\lib\common\InputValidation(); |
| 36 | 36 | |
| 37 | 37 | echo "<pre>"; |
| 38 | - echo "Testing " . $validatedRealm . " in " . $validator->string($thevisited); |
|
| 38 | + echo "Testing ".$validatedRealm." in ".$validator->string($thevisited); |
|
| 39 | 39 | print_r($telepath->magic()); |
| 40 | 40 | echo "</pre>"; |
| 41 | 41 | } |
| 42 | 42 | \ No newline at end of file |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * <base_url>/copyright.php after deploying the software |
| 20 | 20 | */ |
| 21 | 21 | |
| 22 | -require_once dirname(dirname(__DIR__)) . "/config/_config.php"; |
|
| 22 | +require_once dirname(dirname(__DIR__))."/config/_config.php"; |
|
| 23 | 23 | |
| 24 | 24 | $sociopath = new \core\diag\Sociopath(); |
| 25 | 25 | |
@@ -95,17 +95,17 @@ |
||
| 95 | 95 | } |
| 96 | 96 | |
| 97 | 97 | // does the file exist in the current skin's directory? Has precedence |
| 98 | - if ($submodule !== '' && file_exists(__DIR__ . "/../../skins/" . $this->skin . "/" . $submodule . $path . $filename)) { |
|
| 99 | - $extrapath = "/skins/" . $this->skin . "/" . $submodule; |
|
| 98 | + if ($submodule !== '' && file_exists(__DIR__."/../../skins/".$this->skin."/".$submodule.$path.$filename)) { |
|
| 99 | + $extrapath = "/skins/".$this->skin."/".$submodule; |
|
| 100 | 100 | } |
| 101 | - elseif (file_exists(__DIR__ . "/../../skins/" . $this->skin . $path . $filename)) { |
|
| 102 | - $extrapath = "/skins/" . $this->skin; |
|
| 103 | - } elseif (file_exists(__DIR__ . "/../../" . $path . $filename)) { |
|
| 101 | + elseif (file_exists(__DIR__."/../../skins/".$this->skin.$path.$filename)) { |
|
| 102 | + $extrapath = "/skins/".$this->skin; |
|
| 103 | + } elseif (file_exists(__DIR__."/../../".$path.$filename)) { |
|
| 104 | 104 | $extrapath = ""; |
| 105 | 105 | } else { |
| 106 | 106 | return FALSE; |
| 107 | 107 | } |
| 108 | - return htmlspecialchars(\core\CAT::getRootUrlPath() . $extrapath . $path . $filename, ENT_QUOTES); |
|
| 108 | + return htmlspecialchars(\core\CAT::getRootUrlPath().$extrapath.$path.$filename, ENT_QUOTES); |
|
| 109 | 109 | } |
| 110 | 110 | |
| 111 | 111 | } |
@@ -97,8 +97,7 @@ |
||
| 97 | 97 | // does the file exist in the current skin's directory? Has precedence |
| 98 | 98 | if ($submodule !== '' && file_exists(__DIR__ . "/../../skins/" . $this->skin . "/" . $submodule . $path . $filename)) { |
| 99 | 99 | $extrapath = "/skins/" . $this->skin . "/" . $submodule; |
| 100 | - } |
|
| 101 | - elseif (file_exists(__DIR__ . "/../../skins/" . $this->skin . $path . $filename)) { |
|
| 100 | + } elseif (file_exists(__DIR__ . "/../../skins/" . $this->skin . $path . $filename)) { |
|
| 102 | 101 | $extrapath = "/skins/" . $this->skin; |
| 103 | 102 | } elseif (file_exists(__DIR__ . "/../../" . $path . $filename)) { |
| 104 | 103 | $extrapath = ""; |
@@ -83,7 +83,7 @@ |
||
| 83 | 83 | */ |
| 84 | 84 | public function htmlShowtime($wizard = FALSE, $additional = FALSE) { |
| 85 | 85 | if (!$this->readOnly) { |
| 86 | - // return $this->htmlPreEdit($wizard, $additional) . $this->htmlPostEdit(TRUE); |
|
| 86 | + // return $this->htmlPreEdit($wizard, $additional) . $this->htmlPostEdit(TRUE); |
|
| 87 | 87 | return $this->htmlPreEdit($wizard, $additional) . $this->findLocationHtml() . $this->htmlPostEdit(TRUE); |
| 88 | 88 | } |
| 89 | 89 | } |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | public function htmlShowtime($wizard = FALSE, $additional = FALSE) { |
| 83 | 83 | if (!$this->readOnly) { |
| 84 | 84 | // return $this->htmlPreEdit($wizard, $additional) . $this->htmlPostEdit(TRUE); |
| 85 | - return $this->htmlPreEdit($wizard, $additional) . $this->findLocationHtml() . $this->htmlPostEdit(TRUE); |
|
| 85 | + return $this->htmlPreEdit($wizard, $additional).$this->findLocationHtml().$this->htmlPostEdit(TRUE); |
|
| 86 | 86 | } |
| 87 | 87 | } |
| 88 | 88 | |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | // quiesce warnings about unused parameter |
| 107 | 107 | sprintf("%d", $number); |
| 108 | 108 | $pair = json_decode($coords, true); |
| 109 | - return "<table><tr><td>Latitude</td><td><strong>" . $pair['lat'] . "</strong></td></tr><tr><td>Longitude</td><td><strong>" . $pair['lon'] . "</strong></td></tr></table>"; |
|
| 109 | + return "<table><tr><td>Latitude</td><td><strong>".$pair['lat']."</strong></td></tr><tr><td>Longitude</td><td><strong>".$pair['lon']."</strong></td></tr></table>"; |
|
| 110 | 110 | } |
| 111 | 111 | |
| 112 | 112 | /** |
@@ -116,7 +116,7 @@ discard block |
||
| 116 | 116 | */ |
| 117 | 117 | private function findLocationHtml() { |
| 118 | 118 | \core\common\Entity::intoThePotatoes(); |
| 119 | - $retval = "<button type='button' onclick='locateMe()'>" . _("Locate Me!") . "</button></p>"; |
|
| 119 | + $retval = "<button type='button' onclick='locateMe()'>"._("Locate Me!")."</button></p>"; |
|
| 120 | 120 | \core\common\Entity::outOfThePotatoes(); |
| 121 | 121 | return $retval; |
| 122 | 122 | } |