aboutsummaryrefslogtreecommitdiffstats
path: root/php/configuration.php
diff options
context:
space:
mode:
authoradam <adam@>2021-02-14 11:58:38 +0200
committeradam <adam@>2021-02-14 11:58:38 +0200
commita1a2e2e0533a640aeff3448572f8ee6a9862ccc2 (patch)
tree6b49b6797feb541221048b8930e53c562ac576fc /php/configuration.php
parent66040941492d590fd7a93d6c85f5f095335355e8 (diff)
parentcd872e6ed818761fc52a828c3af67ae44cfc9fe1 (diff)
downloadfileup-a1a2e2e0533a640aeff3448572f8ee6a9862ccc2.tar.gz
Merge https://github.com/alexvitkov/india
Diffstat (limited to 'php/configuration.php')
-rw-r--r--php/configuration.php48
1 files changed, 23 insertions, 25 deletions
diff --git a/php/configuration.php b/php/configuration.php
index 236db70..1f2f423 100644
--- a/php/configuration.php
+++ b/php/configuration.php
@@ -1,30 +1,28 @@
<?php
-/*should be placed outside of document root*/
-
-$use_https=true;
-
-if (file_exists("/home/alex")) {
- $domain_name="localhost";
- $database_name="alex";
- $database_username="alex";
- $database_password="lol";
- $database_location="127.0.0.1";
-
- $storage_root = "/home/alex/fileup_storage";
-}
-else {
- $domain_name="testing";
- $database_name="fileup_testing";
- $database_username="outsider";
- $database_password="parola123";
- $database_location="localhost";
- /*storage root must be in the webroot*/
- $storage_root = "/srv/apache/testing/project/files/";
-}
-
-/*if we save deleted files just in case of an error*/
+
+$use_https = false;
+
+// The server needs to know its domain name so it can generate download links
+$domain_name="localhost";
+
+// MySQL database name/user/password location
+// VOLATILE - database_name is hard coded in INIT_DATABASE.sql, if you change it here you MUST change that as well
+$database_name="fileup";
+$database_username="root";
+$database_password="";
+$database_location="127.0.0.1";
+
+// This directory MUST exist and PHP's configuration must be able to read/write/delete files inside it
+$storage_root = "C:\\fileup_storage";
+
+
+// Are we using the /trash directory?
$has_trash=true;
+
$password_hash_algo=PASSWORD_BCRYPT;
$has_email_verification=false;
-?>
+
+@include_once("$_SERVER[HOME]/.fileup.config.php");
+
+?> \ No newline at end of file