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:
parent
e7f4f22737
commit
d86eb10d1f
@ -22,8 +22,7 @@
|
|||||||
exit 13 - Shortener About redirection
|
exit 13 - Shortener About redirection
|
||||||
*/
|
*/
|
||||||
|
|
||||||
$shortdb = new mysqli('localhost', 'short', 'password', 'short'); // Connect to link shortener DB
|
require('Include/PHP/db.php');
|
||||||
if($shortdb->connect_errno > 0) die('Unable to connect to database [' . $shortdb->connect_error . '] - Check dbsettings.php');
|
|
||||||
|
|
||||||
// This has been depreciated. Still here for backwards compatibility with existing links
|
// This has been depreciated. Still here for backwards compatibility with existing links
|
||||||
if(!empty($_GET['l'])){
|
if(!empty($_GET['l'])){
|
||||||
|
Loading…
Reference in New Issue
Block a user