diff --git a/.DS_Store b/.DS_Store index 8d83a45..d8565d2 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..a9ad164 --- /dev/null +++ b/.htaccess @@ -0,0 +1,11 @@ +Options -MultiViews +Options -Indexes + +RewriteEngine On +# Uncomment the below if the code is not on the root level +# RewriteBase / +RewriteCond %{REQUEST_FILENAME} !-d +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-l + +RewriteRule ^(.*)$ index.php [QSA,L] diff --git a/index.php b/index.php index 91751b8..72f8598 100644 --- a/index.php +++ b/index.php @@ -16,7 +16,7 @@ include './custom/settings/config.php'; // Include functions and connect to the database using PDO MySQL include 'functions.php'; // Include translation file -include './custom/translations/translations/translations_'.strtoupper(language_code).'.php'; +include './custom/translations/translations_'.strtoupper(language_code).'.php'; // Connect to MySQL database $pdo = pdo_connect_mysql(); // Output error variable @@ -65,7 +65,8 @@ $url = routes([ '/faq'=> '/custom/pages/faq.php', '/privacy'=> '/custom/pages/privacy.php', '/privacy/{download}'=> '/custom/pages/privacy.php', - '/instructions-for-use' => '/custom/pages/faq.php' + '/instructions-for-use' => '/custom/pages/faq.php', + '/test' => 'test.php' ]); // Check if route exists if ($url) { diff --git a/webhook.php b/webhook.php index bcf9fce..828ddda 100644 --- a/webhook.php +++ b/webhook.php @@ -3,7 +3,7 @@ define('interface', true); // Include the configuration file, this contains settings you can change. -include 'config.php'; +include '/custom/settings/config.php'; // Include functions and connect to the database using PDO MySQL include 'functions.php'; // Connect to MySQL database diff --git a/webhook_paypal.php b/webhook_paypal.php index 94029c6..e9ea571 100644 --- a/webhook_paypal.php +++ b/webhook_paypal.php @@ -1,6 +1,6 @@