Fix deprecation and config errors/warnings. The entire project should now work using only the php shell.

This commit is contained in:
2025-11-24 15:06:58 +01:00
parent 823154ef9c
commit 330c09d2af
2 changed files with 14 additions and 2 deletions

View File

@@ -33,7 +33,8 @@ return array(
* This detects your URL/IP incl. sub-folder automatically. You can also deactivate auto-detection and provide the * This detects your URL/IP incl. sub-folder automatically. You can also deactivate auto-detection and provide the
* URL manually. This should then look like 'http://192.168.33.44/' ! Note the slash in the end. * URL manually. This should then look like 'http://192.168.33.44/' ! Note the slash in the end.
*/ */
'URL' => 'http://' . $_SERVER['HTTP_HOST'] . str_replace('public', '', dirname($_SERVER['SCRIPT_NAME'])), // 'URL' => 'http://' . $_SERVER['HTTP_HOST'] . str_replace('public', '', dirname($_SERVER['SCRIPT_NAME'])),
'URL' => 'http://localhost:8000/', // Use this for a local environment that doesnt run on a normal webserver.
/** /**
* Configuration for: Folders * Configuration for: Folders
* Usually there's no reason to change this. * Usually there's no reason to change this.
@@ -62,7 +63,7 @@ return array(
* DB_CHARSET The charset, necessary for security reasons. Check Database.php class for more info. * DB_CHARSET The charset, necessary for security reasons. Check Database.php class for more info.
*/ */
'DB_TYPE' => 'mysql', 'DB_TYPE' => 'mysql',
'DB_HOST' => 'localhost', 'DB_HOST' => '127.0.0.1',
'DB_NAME' => 'huge', 'DB_NAME' => 'huge',
'DB_USER' => 'root', 'DB_USER' => 'root',
'DB_PASS' => 'root', 'DB_PASS' => 'root',

View File

@@ -6,6 +6,17 @@
*/ */
class View class View
{ {
/* Resolve all the deprecation errors happening in the views, since they cant be disabled by error_reporting level in 8.4.*/
public $redirect;
public $users;
public $notes;
public $user_name;
public $user_email;
public $user_gravatar_image_url;
public $user_avatar_file;
public $avatar_file_path;
public $user_account_type;
/** /**
* simply includes (=shows) the view. this is done from the controller. In the controller, you usually say * simply includes (=shows) the view. this is done from the controller. In the controller, you usually say
* $this->view->render('help/index'); to show (in this example) the view index.php in the folder help. * $this->view->render('help/index'); to show (in this example) the view index.php in the folder help.