0
0

Minor changes

Moved config into $GLOBALS
Moved request_uri into $GLOBALS
Modified all files accordingly
Modified logout page for future improvements (not deleting the entire $_SESSION)
Fixed LICENSEs, moved LICENSE for PHP files in /lib/php subfolder instead of /lib
This commit is contained in:
Bryan
2019-04-06 11:57:35 +02:00
parent 18dc9b18d3
commit 81d21c311f
11 changed files with 30 additions and 29 deletions

View File

@@ -5,7 +5,7 @@
private $statement;
public function __construct ( $config ) {
if ( $config ) {
if ( $config && $config [ 'host' ] && $config [ 'username' ] && $config [ 'password' ] && $config [ 'name' ] && $config [ 'port' ] ) {
$this->config = $config;
}
else {
@@ -41,4 +41,4 @@
public function get_result ( ) : MySQLi_result {
return $this->statement->get_result ( );
}
}
}