diff --git a/Website/index.php b/Website/index.php index ed935dd..5ce5e43 100644 --- a/Website/index.php +++ b/Website/index.php @@ -22,8 +22,7 @@ exit 13 - Shortener About redirection */ - $shortdb = new mysqli('localhost', 'short', 'password', 'short'); // Connect to link shortener DB - if($shortdb->connect_errno > 0) die('Unable to connect to database [' . $shortdb->connect_error . '] - Check dbsettings.php'); + require('Include/PHP/db.php'); // This has been depreciated. Still here for backwards compatibility with existing links if(!empty($_GET['l'])){