From e0caeb4cc8b72f84b8ba512f4b259096157f4ca8 Mon Sep 17 00:00:00 2001 From: mattpass Date: Sat, 20 Jun 2020 07:39:24 +0100 Subject: [PATCH] ExtreProcesses, System and URL now indicated as classes --- classes/FTP.php | 6 ++--- classes/File.php | 14 +++++------ classes/_ExtraProcesses.php | 6 ++--- index.php | 4 ++-- lib/bug-files-check.php | 4 ++-- lib/file-control.php | 46 ++++++++++++++++++------------------- lib/settings-common.php | 12 +++++----- lib/settings.php | 12 +++++----- 8 files changed, 52 insertions(+), 52 deletions(-) diff --git a/classes/FTP.php b/classes/FTP.php index c94dd1e..e6a7fec 100644 --- a/classes/FTP.php +++ b/classes/FTP.php @@ -6,11 +6,11 @@ use ICEcoder\System; class FTP { - private $system; + private $systemClass; public function __construct() { - $this->system = new System(); + $this->systemClass = new System(); } public function writeFile() { @@ -30,7 +30,7 @@ class FTP } } // Stitch changes onto it - $contents = $this->system->stitchChanges($fileLines, $_POST['changes']); + $contents = $this->systemClass->stitchChanges($fileLines, $_POST['changes']); // get old file contents and count stats on usage \n and \r there // in this case we can keep line endings, which file had before, without diff --git a/classes/File.php b/classes/File.php index 235275e..09e0e3c 100644 --- a/classes/File.php +++ b/classes/File.php @@ -12,12 +12,12 @@ use lessc; class File { private $ftpClass; - private $system; + private $systemClass; public function __construct() { $this->ftpClass = new FTP(); - $this->system = new System(); + $this->systemClass = new System(); } public function check() { @@ -173,8 +173,8 @@ class File $loadedFile = preg_replace('/\\n/', ' ', $loadedFile); echo '"; die('Logging you in...'); } else { - $extraProcesses = new ExtraProcesses(); - $extraProcesses->onUserLoginFail($_SESSION['username'] ?? ""); + $extraProcessesClass = new ExtraProcesses(); + $extraProcessesClass->onUserLoginFail($_SESSION['username'] ?? ""); } }; @@ -200,8 +200,8 @@ if (false === isset($_POST['password']) && (!$_SESSION['loggedIn'] || "" === $IC $_SESSION['username'] = $_POST['username']; } $_SESSION['loggedIn'] = true; - $extraProcesses = new ExtraProcesses(); - $extraProcesses->onUserNew($_SESSION['username'] ?? ""); + $extraProcessesClass = new ExtraProcesses(); + $extraProcessesClass->onUserNew($_SESSION['username'] ?? ""); // Finally, load again as now this file has changed and auto login header('Location: ../'); echo "";