add config.php
This commit is contained in:
@@ -10,7 +10,8 @@ if (isset($_SESSION['user'])) {
|
||||
$error = '';
|
||||
|
||||
if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
$conn = new mysqli("localhost", "root", "", "webgis");
|
||||
require_once '../config.php';
|
||||
$conn = getDB();
|
||||
|
||||
$username = trim($_POST['username']);
|
||||
$password = trim($_POST['password']);
|
||||
|
||||
Reference in New Issue
Block a user