X-Git-Url: https://disinclined.org/git/?a=blobdiff_plain;f=index.php;h=b95b16d3dc40d1f45063f416f8804c444a793f81;hb=27d39343f641c2f3c63e7699b8de94786aadbfea;hp=a4d258ca1dcc1bd92f14a0c8f99d8284e1ac4de7;hpb=663fc78615efb58598d02b0f0bacf05c4593acc6;p=dylansserver.git diff --git a/index.php b/index.php index a4d258c..b95b16d 100644 --- a/index.php +++ b/index.php @@ -13,10 +13,10 @@ abstract class cms { public function __construct() { $config = parse_ini_file($this->config_file, true); $this->db = new mysqli( - $config[database]['domain'], - $config[database]['user'], - $config[database]['password'], - $config[database]['database']); + $config['database']['domain'], + $config['database']['user'], + $config['database']['password'], + $config['database']['database']); if (mysqli_connect_errno()) { echo "Problem connecting to database: "; echo mysqli_connect_error(); @@ -93,7 +93,7 @@ abstract class cms { $scripts - +