You've already forked OpenShorte.old
Moved all configurations away from $GLOBALS to independent variables
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
echo ( json_encode ( $response ) );
|
||||
exit;
|
||||
}
|
||||
$database = new Database ( $GLOBALS [ 'config' ] [ 'db' ] );
|
||||
$database = new Database ( $config [ 'db' ] );
|
||||
$database->connect ( );
|
||||
$url = $_POST [ 'url' ];
|
||||
$database->prepare ( "INSERT INTO `links` ( `URL`, `created_by` ) VALUES ( :url, " . $_SESSION [ 'user_id' ] . " );" );
|
||||
|
Reference in New Issue
Block a user