add agent panel
This commit is contained in:
@@ -1,4 +1,8 @@
|
||||
<?php
|
||||
if(!isset($_SESSION) && empty($_SESSION['user_id'])){
|
||||
echo "<script>window.location.href = '/Agent/agent-login'</script>";
|
||||
exit;
|
||||
}
|
||||
$conn = new mysqli($GLOBALS['host'], $GLOBALS['user'], $GLOBALS['pass'], $GLOBALS['db']);
|
||||
if ($conn->connect_error) {
|
||||
die("Connection failed: " . $conn->connect_error);
|
||||
|
||||
Reference in New Issue
Block a user