aboutsummaryrefslogtreecommitdiff
path: root/constants.php
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-02-12 11:22:43 +0200
committerSyndamia <kamen@syndamia.com>2025-02-12 11:22:43 +0200
commit223a31224b9c140c9369358b6978c55ef289fde1 (patch)
treebdf9ad64e5c4d475cb7732d1c4e7b33f7d718e0d /constants.php
parent62a6f96f42d3f799e5beded2407ca53295a803f2 (diff)
downloadnowayforward_human-223a31224b9c140c9369358b6978c55ef289fde1.tar
nowayforward_human-223a31224b9c140c9369358b6978c55ef289fde1.tar.gz
nowayforward_human-223a31224b9c140c9369358b6978c55ef289fde1.zip
hotfix: Replace environment variables with php global constants
Diffstat (limited to 'constants.php')
-rw-r--r--constants.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/constants.php b/constants.php
new file mode 100644
index 0000000..267d6f7
--- /dev/null
+++ b/constants.php
@@ -0,0 +1,13 @@
+<?php
+
+$SERVER = 'localhost';
+$PORT = 3306;
+$USER = 'root';
+$PASSWORD = '';
+$DB_NAME = 'nwfh';
+
+$REPOSITORY = __DIR__;
+$ARCHIVES_DIR = $REPOSITORY . '/.archives';
+
+// ONLY FOR LINUX
+$MYSQL_UNIX_SOCKET = $REPOSITORY . '/.config/mysql/mysql.sock';