1
0
mirror of https://github.com/gamaio/lobli.git synced 2025-01-03 15:52:42 +00:00

Move database connection to independant file

This commit is contained in:
alopexc0de 2014-06-26 20:38:35 -04:00
parent e7f4f22737
commit d86eb10d1f

View File

@ -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'])){