diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..f0ba3d7 --- /dev/null +++ b/.htaccess @@ -0,0 +1,2 @@ +Options +Indexes +IndexIgnore *.code-workspace diff --git a/base/.htaccess b/base/.htaccess new file mode 100644 index 0000000..54aa684 --- /dev/null +++ b/base/.htaccess @@ -0,0 +1,2 @@ +DENY FROM ALL +ALLOW FROM 127.0.0.1 \ No newline at end of file diff --git a/database.php b/base/database.php similarity index 93% rename from database.php rename to base/database.php index ac61ca3..6619a18 100644 --- a/database.php +++ b/base/database.php @@ -10,7 +10,7 @@ class DB extends PDO { $conn = null; try { - $dataAccess = parse_ini_file("configs/db.ini", true); + $dataAccess = parse_ini_file("../configs/db.ini", true); $conn = new PDO( "mysql:host=" . $dataAccess["ZEDAT"]["host"] . diff --git a/errors.php b/base/errors.php similarity index 61% rename from errors.php rename to base/errors.php index 893a814..32d7093 100644 --- a/errors.php +++ b/base/errors.php @@ -1,3 +1,4 @@