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 ( );
|
||||
$database->prepare ( "UPDATE `links` SET `URL`=:url WHERE `ID`=:url_id;" );
|
||||
$database->bind ( [ ':url' => $_POST [ 'url' ], 'url_id' => $_POST [ 'url_id' ] ] );
|
||||
|
Reference in New Issue
Block a user