add config.php
This commit is contained in:
@@ -3,7 +3,8 @@ require_once '../../auth.php';
|
||||
requireRole('admin');
|
||||
|
||||
header('Content-Type: application/json');
|
||||
$conn = new mysqli("localhost", "root", "", "webgis");
|
||||
require_once '../../../config.php';
|
||||
$conn = getDB();
|
||||
$data = json_decode(file_get_contents("php://input"), true);
|
||||
|
||||
if (!$data || !isset($data['id'])) {
|
||||
|
||||
Reference in New Issue
Block a user