add agent panel

This commit is contained in:
ns77@siliconpin.com
2025-09-01 11:32:55 +00:00
parent 04129226ec
commit 5eb54e6038
4 changed files with 20 additions and 1 deletions

View File

@@ -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);