diff --git a/core/classes/class.root.php b/core/classes/class.root.php index d593e7b4..3de55811 100644 --- a/core/classes/class.root.php +++ b/core/classes/class.root.php @@ -7,10 +7,6 @@ * Github: https://github.com/Bearsampp */ -declare(strict_types=1); - -use Core\Classes\Win32Ps; - /** * Class Root * diff --git a/core/classes/class.vbs.php b/core/classes/class.vbs.php index 365e0a32..be212f21 100644 --- a/core/classes/class.vbs.php +++ b/core/classes/class.vbs.php @@ -8,15 +8,6 @@ * Github: https://github.com/Bearsampp */ -namespace Core\Classes; - -use Core\Classes\Util; -use Core\Classes\Win32Ps; -use Core\Classes\Win32Service; -use Core\Classes\Root; -use Core\Classes\Config; -use Core\Classes\Winbinder; - /** * Class Vbs * diff --git a/core/libs/winbinder/wb_generic.inc.php b/core/libs/winbinder/wb_generic.inc.php index 1ebebc34..f20bdb81 100644 --- a/core/libs/winbinder/wb_generic.inc.php +++ b/core/libs/winbinder/wb_generic.inc.php @@ -1,5 +1,5 @@ register(); /** * Creates an instance of the Action class and processes the action based on command line arguments. + * + * Updated for compatibility with PHP 8.2.26. Ensured that all class properties are properly declared. */ $bearsamppAction = new Action(); $bearsamppAction->process(); /** - * Checks if the current user has root privileges and stops loading if true. + * Checks if the current script is being run as the root user and stops loading if true. + * + * This is to ensure that the application does not run with root privileges for security reasons. */ if ($bearsamppRoot->isRoot()) { Util::stopLoading(); @@ -44,6 +58,8 @@ /** * Creates an instance of the LangProc class to handle language-specific settings. * Retrieves the locale setting from the language data. + * + * Updated to be compatible with PHP 8.2.26 by ensuring all dynamic properties are declared. */ $langProc = new LangProc(); $locale = $langProc->getValue('locale');