@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | * @author Stefan Winter <[email protected]> |
26 | 26 | */ |
27 | 27 | |
28 | -require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php"; |
|
28 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
29 | 29 | |
30 | 30 | $auth = new \web\lib\admin\Authentication(); |
31 | 31 | $deco = new \web\lib\admin\PageDecoration(); |
@@ -40,18 +40,18 @@ discard block |
||
40 | 40 | $my_fed = $validator->Federation($_GET['fed_id'], $_SESSION['user']); |
41 | 41 | if (isset($_POST['submitbutton']) && $_POST['submitbutton'] == web\lib\common\FormElements::BUTTON_SAVE) { // here we go |
42 | 42 | $fed_name = $my_fed->name; |
43 | - echo "<h1>" . sprintf(_("Submitted attributes for %s '%s'"), $uiElements->nomenclatureFed, $fed_name) . "</h1>"; |
|
43 | + echo "<h1>".sprintf(_("Submitted attributes for %s '%s'"), $uiElements->nomenclatureFed, $fed_name)."</h1>"; |
|
44 | 44 | echo "<table>"; |
45 | 45 | echo $optionParser->processSubmittedFields($my_fed, $_POST, $_FILES); |
46 | 46 | echo "</table>"; |
47 | 47 | |
48 | 48 | $loggerInstance = new \core\common\Logging(); |
49 | - $loggerInstance->writeAudit($_SESSION['user'], "MOD", "FED " . $my_fed->name . " - attributes changed"); |
|
49 | + $loggerInstance->writeAudit($_SESSION['user'], "MOD", "FED ".$my_fed->name." - attributes changed"); |
|
50 | 50 | |
51 | 51 | // re-instantiate ourselves... profiles need fresh data |
52 | 52 | |
53 | 53 | $my_fed = $validator->Federation($_GET['fed_id'], $_SESSION['user']); |
54 | 54 | |
55 | - echo "<br/><form method='post' action='overview_federation.php' accept-charset='UTF-8'><button type='submit'>" . _("Continue to dashboard") . "</button></form>"; |
|
55 | + echo "<br/><form method='post' action='overview_federation.php' accept-charset='UTF-8'><button type='submit'>"._("Continue to dashboard")."</button></form>"; |
|
56 | 56 | } |
57 | 57 | echo $deco->footer(); |
@@ -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(__FILE__))) . "/config/_config.php"; |
|
22 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
23 | 23 | |
24 | 24 | $auth = new \web\lib\admin\Authentication(); |
25 | 25 | $deco = new \web\lib\admin\PageDecoration(); |
@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | $profile = $my_profile; |
116 | 116 | } else { |
117 | 117 | $profile = $my_inst->newProfile(core\AbstractProfile::PROFILETYPE_RADIUS); |
118 | - $loggerInstance->writeAudit($_SESSION['user'], "NEW", "IdP " . $my_inst->identifier . " - Profile created"); |
|
118 | + $loggerInstance->writeAudit($_SESSION['user'], "NEW", "IdP ".$my_inst->identifier." - Profile created"); |
|
119 | 119 | } |
120 | 120 | } |
121 | 121 | |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | $uiElements = new web\lib\admin\UIElements(); |
131 | 131 | // set realm info, if submitted |
132 | 132 | if ($realm !== FALSE) { |
133 | - $profile->setRealm($anonLocal . "@" . $realm); |
|
133 | + $profile->setRealm($anonLocal."@".$realm); |
|
134 | 134 | echo $uiElements->boxOkay(sprintf(_("Realm: <strong>%s</strong>"), $realm)); |
135 | 135 | } else { |
136 | 136 | $profile->setRealm(""); |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | echo $uiElements->boxError(_("Realm check username cannot be configured: realm is missing!")); |
154 | 154 | } else { |
155 | 155 | $profile->setRealmcheckUser(true, $checkuser_name); |
156 | - echo $uiElements->boxOkay(sprintf(_("Special username for realm check is <strong>%s</strong>, the value is <strong>%s</strong>"), _("ON"), $checkuser_name . "@" . $realm)); |
|
156 | + echo $uiElements->boxOkay(sprintf(_("Special username for realm check is <strong>%s</strong>, the value is <strong>%s</strong>"), _("ON"), $checkuser_name."@".$realm)); |
|
157 | 157 | } |
158 | 158 | } else { |
159 | 159 | $profile->setRealmCheckUser(false); |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | } else { |
167 | 167 | $profile->setInputVerificationPreference($verify, $hint); |
168 | 168 | if ($hint !== FALSE) { |
169 | - $extratext = " " . sprintf(_("and the input field will be prefilled with '<strong>@%s</strong>'."), $realm); |
|
169 | + $extratext = " ".sprintf(_("and the input field will be prefilled with '<strong>@%s</strong>'."), $realm); |
|
170 | 170 | } else { |
171 | 171 | $extratext = "."; |
172 | 172 | } |
@@ -203,7 +203,7 @@ discard block |
||
203 | 203 | echo $uiElements->boxOkay(_("Redirection is <strong>OFF</strong>")); |
204 | 204 | } |
205 | 205 | |
206 | - $loggerInstance->writeAudit($_SESSION['user'], "MOD", "Profile " . $profile->identifier . " - attributes changed"); |
|
206 | + $loggerInstance->writeAudit($_SESSION['user'], "MOD", "Profile ".$profile->identifier." - attributes changed"); |
|
207 | 207 | |
208 | 208 | // re-instantiate $profile, we need to do completion checks and need fresh data for isEapTypeDefinitionComplete() |
209 | 209 | |
@@ -216,23 +216,23 @@ discard block |
||
216 | 216 | if ($a->getIntegerRep() == \core\common\EAP::INTEGER_SILVERBULLET) { // do not allow adding silverbullet via the backdoor |
217 | 217 | continue; |
218 | 218 | } |
219 | - if (isset($_POST[$a->getPrintableRep()]) && isset($_POST[$a->getPrintableRep() . "-priority"]) && is_numeric($_POST[$a->getPrintableRep() . "-priority"])) { |
|
220 | - $priority = (int) $_POST[$a->getPrintableRep() . "-priority"]; |
|
219 | + if (isset($_POST[$a->getPrintableRep()]) && isset($_POST[$a->getPrintableRep()."-priority"]) && is_numeric($_POST[$a->getPrintableRep()."-priority"])) { |
|
220 | + $priority = (int) $_POST[$a->getPrintableRep()."-priority"]; |
|
221 | 221 | // add EAP type to profile as requested, but ... |
222 | 222 | $profile->addSupportedEapMethod($a, $priority); |
223 | - $loggerInstance->writeAudit($_SESSION['user'], "MOD", "Profile " . $profile->identifier . " - supported EAP types changed"); |
|
223 | + $loggerInstance->writeAudit($_SESSION['user'], "MOD", "Profile ".$profile->identifier." - supported EAP types changed"); |
|
224 | 224 | // see if we can enable the EAP type, or if info is missing |
225 | 225 | $eapcompleteness = $profile->isEapTypeDefinitionComplete($a); |
226 | 226 | if ($eapcompleteness === true) { |
227 | - echo $uiElements->boxOkay(_("Supported EAP Type: ") . "<strong>" . $a->getPrintableRep() . "</strong>"); |
|
227 | + echo $uiElements->boxOkay(_("Supported EAP Type: ")."<strong>".$a->getPrintableRep()."</strong>"); |
|
228 | 228 | } else { |
229 | 229 | $warntext = ""; |
230 | 230 | if (is_array($eapcompleteness)) { |
231 | 231 | foreach ($eapcompleteness as $item) { |
232 | - $warntext .= "<strong>" . $uiElements->displayName($item) . "</strong> "; |
|
232 | + $warntext .= "<strong>".$uiElements->displayName($item)."</strong> "; |
|
233 | 233 | } |
234 | 234 | } |
235 | - echo $uiElements->boxWarning(sprintf(_("Supported EAP Type: <strong>%s</strong> is missing required information %s !"), $a->getPrintableRep(), $warntext) . "<br/>" . _("The EAP type was added to the profile, but you need to complete the missing information before we can produce installers for you.")); |
|
235 | + echo $uiElements->boxWarning(sprintf(_("Supported EAP Type: <strong>%s</strong> is missing required information %s !"), $a->getPrintableRep(), $warntext)."<br/>"._("The EAP type was added to the profile, but you need to complete the missing information before we can produce installers for you.")); |
|
236 | 236 | } |
237 | 237 | } |
238 | 238 | } |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | <?php |
249 | 249 | if (count($reloadedProfile->getEapMethodsinOrderOfPreference(1)) > 0) { |
250 | 250 | echo "<form method='post' action='overview_installers.php?inst_id=$my_inst->identifier&profile_id=$reloadedProfile->identifier' accept-charset='UTF-8'> |
251 | - <button type='submit'>" . _("Continue to Installer Fine-Tuning and Download") . "</button> |
|
251 | + <button type='submit'>"._("Continue to Installer Fine-Tuning and Download")."</button> |
|
252 | 252 | </form>"; |
253 | 253 | } |
254 | 254 | echo $deco->footer(); |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | * <base_url>/copyright.php after deploying the software |
21 | 21 | */ |
22 | 22 | |
23 | -require_once dirname(dirname(dirname(__FILE__))) . "/config/_config.php"; |
|
23 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
24 | 24 | |
25 | 25 | /** |
26 | 26 | * Checks if the profile is a valid SB profile belonging to the federation |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $inputRaw = file_get_contents('php://input'); |
70 | 70 | $inputDecoded = json_decode($inputRaw, TRUE); |
71 | 71 | if (!is_array($inputDecoded)) { |
72 | - $adminApi->returnError(web\lib\admin\API::ERROR_MALFORMED_REQUEST, "Unable to decode JSON POST data." . json_last_error_msg() . $inputRaw); |
|
72 | + $adminApi->returnError(web\lib\admin\API::ERROR_MALFORMED_REQUEST, "Unable to decode JSON POST data.".json_last_error_msg().$inputRaw); |
|
73 | 73 | exit(1); |
74 | 74 | } |
75 | 75 | |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | throw new Exception("A required parameter is missing, and this wasn't caught earlier?!"); |
159 | 159 | } |
160 | 160 | $newtokens = $mgmt->createTokens(true, [$admin], $idp); |
161 | - $URL = "https://" . $_SERVER['SERVER_NAME'] . dirname($_SERVER['SCRIPT_NAME']) . "/action_enrollment.php?token=" . array_keys($newtokens)[0]; |
|
161 | + $URL = "https://".$_SERVER['SERVER_NAME'].dirname($_SERVER['SCRIPT_NAME'])."/action_enrollment.php?token=".array_keys($newtokens)[0]; |
|
162 | 162 | $success = ["TOKEN URL" => $URL, "TOKEN" => array_keys($newtokens)[0]]; |
163 | 163 | // done with the essentials - display in response. But if we also have an email address, send it there |
164 | 164 | $email = $adminApi->firstParameterInstance($scrubbedParameters, web\lib\admin\API::AUXATTRIB_TARGETMAIL); |
@@ -195,7 +195,7 @@ discard block |
||
195 | 195 | if ($found) { |
196 | 196 | $adminApi->returnSuccess([]); |
197 | 197 | } |
198 | - $adminApi->returnError(web\lib\admin\API::ERROR_INVALID_PARAMETER, "The admin with ID $toBeDeleted is not associated to IdP " . $idp->identifier); |
|
198 | + $adminApi->returnError(web\lib\admin\API::ERROR_INVALID_PARAMETER, "The admin with ID $toBeDeleted is not associated to IdP ".$idp->identifier); |
|
199 | 199 | break; |
200 | 200 | case web\lib\admin\API::ACTION_STATISTICS_FED: |
201 | 201 | $adminApi->returnSuccess($fed->downloadStats("array")); |
@@ -242,10 +242,10 @@ discard block |
||
242 | 242 | $outer = ""; |
243 | 243 | $profile->setAnonymousIDSupport(FALSE); |
244 | 244 | } else { |
245 | - $outer = $outer . "@"; |
|
245 | + $outer = $outer."@"; |
|
246 | 246 | $profile->setAnonymousIDSupport(TRUE); |
247 | 247 | } |
248 | - $profile->setRealm($outer . $realm); |
|
248 | + $profile->setRealm($outer.$realm); |
|
249 | 249 | } |
250 | 250 | /* const AUXATTRIB_PROFILE_TESTUSER = 'ATTRIB-PROFILE-TESTUSER'; */ |
251 | 251 | $testuser = $adminApi->firstParameterInstance($scrubbedParameters, web\lib\admin\API::AUXATTRIB_PROFILE_TESTUSER); |
@@ -429,7 +429,7 @@ discard block |
||
429 | 429 | // extract relevant subset of information from cert objects |
430 | 430 | $certDetails = []; |
431 | 431 | foreach ($certs as $cert) { |
432 | - $certDetails[$cert->ca_type . ":" . $cert->serial] = ["ISSUED" => $cert->issued, "EXPIRY" => $cert->expiry, "STATUS" => $cert->status, "DEVICE" => $cert->device, "CN" => $cert->username]; |
|
432 | + $certDetails[$cert->ca_type.":".$cert->serial] = ["ISSUED" => $cert->issued, "EXPIRY" => $cert->expiry, "STATUS" => $cert->status, "DEVICE" => $cert->device, "CN" => $cert->username]; |
|
433 | 433 | } |
434 | 434 | $adminApi->returnSuccess($certDetails); |
435 | 435 | break; |
@@ -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(); |
@@ -70,22 +70,22 @@ discard block |
||
70 | 70 | $federation = CONFIG_CONFASSISTANT['CONSORTIUM']['selfservice_registration']; |
71 | 71 | break; |
72 | 72 | default: |
73 | - $token = $validator->token(filter_input(INPUT_GET,'token',FILTER_SANITIZE_STRING)); |
|
73 | + $token = $validator->token(filter_input(INPUT_GET, 'token', FILTER_SANITIZE_STRING)); |
|
74 | 74 | $checkval = $usermgmt->checkTokenValidity($token); |
75 | 75 | } |
76 | 76 | |
77 | 77 | if ($checkval < 0) { |
78 | 78 | echo $deco->pageheader(_("Error creating new IdP binding!"), "ADMIN-IDP"); |
79 | - echo "<h1>" . _("Error creating new IdP binding!") . "</h1>"; |
|
79 | + echo "<h1>"._("Error creating new IdP binding!")."</h1>"; |
|
80 | 80 | switch ($checkval) { |
81 | 81 | case \core\UserManagement::TOKENSTATUS_FAIL_ALREADYCONSUMED: |
82 | - 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->nomenclatureInst) . "</p>"; |
|
82 | + 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->nomenclatureInst)."</p>"; |
|
83 | 83 | break; |
84 | 84 | case \core\UserManagement::TOKENSTATUS_FAIL_EXPIRED: |
85 | - 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>"; |
|
85 | + 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>"; |
|
86 | 86 | break; |
87 | 87 | default: |
88 | - 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>"; |
|
88 | + 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>"; |
|
89 | 89 | } |
90 | 90 | echo $deco->footer(); |
91 | 91 | throw new Exception("Terminating because something is wrong with the token we received."); |
@@ -100,12 +100,12 @@ discard block |
||
100 | 100 | case "SELF-REGISTER": |
101 | 101 | $fed = new \core\Federation($federation); |
102 | 102 | $newidp = new \core\IdP($fed->newIdP($user, "FED", "SELFSERVICE")); |
103 | - $loggerInstance->writeAudit($user, "MOD", "IdP " . $newidp->identifier . " - selfservice registration"); |
|
103 | + $loggerInstance->writeAudit($user, "MOD", "IdP ".$newidp->identifier." - selfservice registration"); |
|
104 | 104 | break; |
105 | 105 | default: |
106 | 106 | $newidp = $usermgmt->createIdPFromToken($token, $user); |
107 | 107 | $usermgmt->invalidateToken($token); |
108 | - $loggerInstance->writeAudit($user, "MOD", "IdP " . $newidp->identifier . " - Token used and invalidated"); |
|
108 | + $loggerInstance->writeAudit($user, "MOD", "IdP ".$newidp->identifier." - Token used and invalidated"); |
|
109 | 109 | break; |
110 | 110 | } |
111 | 111 |
@@ -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 | $uiElements = new web\lib\admin\UIElements(); |
25 | 25 | |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | // filesystem cleanup |
73 | 73 | case web\lib\common\FormElements::BUTTON_DELETE: |
74 | 74 | $i = web\lib\admin\Maintenance::deleteObsoleteTempDirs(); |
75 | - echo "<div class='ca-summary'><table>" . $uiElements->boxRemark(sprintf("Deleted %d cache directories.", $i), "Cache deleted") . "</table></div>"; |
|
75 | + echo "<div class='ca-summary'><table>".$uiElements->boxRemark(sprintf("Deleted %d cache directories.", $i), "Cache deleted")."</table></div>"; |
|
76 | 76 | break; |
77 | 77 | default: |
78 | 78 | break; |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | $admin_query = $dbHandle->exec("SELECT SUM(downloads_admin) AS admin, SUM(downloads_user) AS user, SUM(downloads_silverbullet) as silverbullet FROM downloads WHERE device_id = '$index'"); |
139 | 139 | // SELECT -> mysqli_result, not boolean |
140 | 140 | while ($a = mysqli_fetch_object(/** @scrutinizer ignore-type */ $admin_query)) { |
141 | - echo "<td>" . $device_array['display'] . "</td><td>" . $a->admin . "</td><td>" . $a->user . "</td><td>" . $a->silverbullet . "</td><td>" . sprintf("%s", $a->user + $a->silverbullet) . "</td>"; |
|
141 | + echo "<td>".$device_array['display']."</td><td>".$a->admin."</td><td>".$a->user."</td><td>".$a->silverbullet."</td><td>".sprintf("%s", $a->user + $a->silverbullet)."</td>"; |
|
142 | 142 | $gross_admin = $gross_admin + $a->admin; |
143 | 143 | $gross_user = $gross_user + $a->user; |
144 | 144 | $gross_silverbullet = $gross_silverbullet + $a->silverbullet; |
@@ -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(__FILE__))) . "/config/_config.php"; |
|
22 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
23 | 23 | |
24 | 24 | $loggerInstance = new \core\common\Logging(); |
25 | 25 | $deco = new \web\lib\admin\PageDecoration(); |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | $user = new \core\User($_SESSION['user']); |
31 | 31 | if (!isset($_POST['submitbutton']) || $_POST['submitbutton'] != web\lib\common\FormElements::BUTTON_SAVE) { // what are we supposed to do? |
32 | - echo "<p>" . _("The page was called with insufficient data. Please report this as an error.") . "</p>"; |
|
32 | + echo "<p>"._("The page was called with insufficient data. Please report this as an error.")."</p>"; |
|
33 | 33 | echo $deco->footer(); |
34 | 34 | exit(0); |
35 | 35 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | if (isset($_POST['option'])) { |
47 | 47 | foreach ($_POST['option'] as $opt_id => $optname) { |
48 | 48 | if ($optname == "user:fedadmin") { |
49 | - echo "Security violation: user tried to make himself " . CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_federation'] . " administrator!"; |
|
49 | + echo "Security violation: user tried to make himself ".CONFIG_CONFASSISTANT['CONSORTIUM']['nomenclature_federation']." administrator!"; |
|
50 | 50 | exit(1); |
51 | 51 | } |
52 | 52 | } |
@@ -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(__FILE__))) . "/config/_config.php"; |
|
22 | +require_once dirname(dirname(dirname(__FILE__)))."/config/_config.php"; |
|
23 | 23 | $admin = filter_input(INPUT_GET, 'admin', FILTER_VALIDATE_INT); |
24 | 24 | if ($admin == 1) { |
25 | 25 | $auth = new \web\lib\admin\Authentication(); |
@@ -27,6 +27,6 @@ discard block |
||
27 | 27 | } |
28 | 28 | $Gui = new \web\lib\user\Gui(); |
29 | 29 | $skinObject = new \web\lib\user\Skinjob($_REQUEST['skin'] ?? $_SESSION['skin'] ?? $fedskin[0] ?? CONFIG['APPEARANCE']['skins'][0]); |
30 | -require "../skins/" . $skinObject->skin . "/diag/diag.php"; |
|
30 | +require "../skins/".$skinObject->skin."/diag/diag.php"; |
|
31 | 31 | |
32 | 32 |
@@ -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 @@ 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 | CAT_session_start(); |
24 | 24 | $loggerInstance = new \core\common\Logging(); |
25 | 25 | $loggerInstance->debug(4, "Sociopath test\n"); |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | return NULL; |
34 | 34 | } |
35 | 35 | $loggerInstance->debug(4, $_SESSION['EVIDENCE']['QUESTIONSASKED']); |
36 | - $loggerInstance->debug(4, "\nAnswer question " . $QNUM . "\n"); |
|
36 | + $loggerInstance->debug(4, "\nAnswer question ".$QNUM."\n"); |
|
37 | 37 | switch ($answer) { |
38 | 38 | case 1: |
39 | 39 | $loggerInstance->debug(4, "Revaluate with FALSE"); |