From b8052613efb494ec2faa906231169a5d58ac9178 Mon Sep 17 00:00:00 2001 From: Josh Ashton Date: Sat, 8 Feb 2025 00:54:05 +0000 Subject: [PATCH] localhost and server configuration are the same. --- db-start/index.php | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/db-start/index.php b/db-start/index.php index 91bd9a2..66710a2 100644 --- a/db-start/index.php +++ b/db-start/index.php @@ -6,17 +6,10 @@ $dotenv->safeLoad(); $db_pass = $_ENV['DATABASE_PASSWORD']; // Make some constants -if ($_SERVER['HTTP_HOST'] == 'localhost') { - define('HOST', 'localhost'); - define('USER', 'root'); - define('PASS', $db_pass); - define('DB', 'palindromes'); -} else { - define('HOST', 'cs2440.joshashton.dev'); - define('USER', 'root'); - define('PASS', $db_pass); - define('DB', 'palindromes'); -} +define('HOST', '173.255.248.228'); +define('USER', 'root'); +define('PASS', $db_pass); +define('DB', 'palindromes'); // Connect to the DB $conn = mysqli_connect(HOST, USER, PASS, DB);