diff --git a/website/class/DataBase.php b/website/class/DataBase.php index 610ba389..714e7def 100644 --- a/website/class/DataBase.php +++ b/website/class/DataBase.php @@ -1,14 +1,10 @@ PDO = new PDO("mysql:host=".$this->DB_HOST."; dbname=".$this->DB_NAME, $this->DB_USER, $this->DB_PASS, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")); + $this->PDO = new PDO("mysql:host=".DB_HOST."; dbname=".DB_NAME, DB_USER, DB_PASS, array(PDO::MYSQL_ATTR_INIT_COMMAND => "SET NAMES utf8")); } public function select($query, $bindings = []) { $STH = $this->PDO->prepare($query); diff --git a/website/class/config.php b/website/class/config.php new file mode 100644 index 00000000..de22805b --- /dev/null +++ b/website/class/config.php @@ -0,0 +1,11 @@ +
-