From 39130d878f8f5b37231b9d2af31fe0093a783cd7 Mon Sep 17 00:00:00 2001 From: "SWG: Resurgence" <52303455+swgresurgence@users.noreply.github.com> Date: Fri, 6 Sep 2019 19:34:16 -0500 Subject: [PATCH] Removed Redundant Echo --- html/auth.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/html/auth.php b/html/auth.php index 7b67860..f6d4cc2 100644 --- a/html/auth.php +++ b/html/auth.php @@ -5,7 +5,7 @@ header('Content-Type: text/html; charset=utf-8'); // ####################### SET PHP ENVIRONMENT ########################### // ####################################################################### -ini_set('display_errors', 1); +#ini_set('display_errors', 1); date_default_timezone_set('America/Chicago'); include 'includes/db_connect.php'; @@ -68,9 +68,8 @@ echo json_encode($response); // ####################################################################### $auth_content = '[' . date('m/d/Y h:i:s a') . '] ' . 'Username: ' . $username . ', Station ID: ' . $suid . ', IP: ' . $ip . "\n"; -chdir('WEBHOST_DIRECTORY_FOR_LOG_FILE '); +chdir('./logs'); file_put_contents('logs/auth_log.txt', $auth_content, FILE_APPEND); -echo $result; die(); // #######################################################################