aboutsummaryrefslogtreecommitdiffstats
path: root/php/configuration.php
diff options
context:
space:
mode:
authoradam <adam@>2021-02-13 22:12:39 +0200
committeradam <adam@>2021-02-13 22:12:39 +0200
commitfc779bb49a74da78689776391f5ea999c0a03f37 (patch)
tree18d12cf3286c4544acdcea4c8f2c31272e862f93 /php/configuration.php
parentdf1fcd07a15417173404b25b91cb8ac176e421c5 (diff)
downloadfileup-fc779bb49a74da78689776391f5ea999c0a03f37.tar.gz
share is share
Diffstat (limited to 'php/configuration.php')
-rw-r--r--php/configuration.php27
1 files changed, 14 insertions, 13 deletions
diff --git a/php/configuration.php b/php/configuration.php
index 09d1a06..236db70 100644
--- a/php/configuration.php
+++ b/php/configuration.php
@@ -1,24 +1,25 @@
<?php
/*should be placed outside of document root*/
-$domain_name="localhost";
+$use_https=true;
if (file_exists("/home/alex")) {
- $database_name="alex";
- $database_username="alex";
- $database_password="lol";
- $database_location="127.0.0.1";
+ $domain_name="localhost";
+ $database_name="alex";
+ $database_username="alex";
+ $database_password="lol";
+ $database_location="127.0.0.1";
- $storage_root = "/home/alex/fileup_storage";
+ $storage_root = "/home/alex/fileup_storage";
}
else {
-
-$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/";
+ $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*/