updating client manager

This commit is contained in:
jakani24
2024-03-09 17:09:34 +01:00
parent c478e79914
commit c5460d9f2e
3 changed files with 37 additions and 15 deletions

View File

@@ -92,7 +92,7 @@ include "perms_functions.php";
echo('<table class="table">'); echo('<table class="table">');
echo('<thead>'); echo('<thead>');
echo('<tr>'); echo('<tr>');
echo('<th>Machineid</th><th>Location</th><th>IP-Address</th><th>Delete user</th>'); echo('<th>Machineid</th><th>Location</th><th>IP-Address</th><th>Delete machine</th>');
echo('</tr>'); echo('</tr>');
echo('</thead>'); echo('</thead>');
echo('<tbody>'); echo('<tbody>');

View File

@@ -49,31 +49,53 @@ if(isset($_GET["page"])){
<div class="col-2"> <div class="col-2">
<p>Home</p> <p>Home</p>
<ul> <ul>
<li><a href="index.php?page=welcome.php">Dashboard</a></li> <?php
if(1)//every user can access this page
echo('<li><a href="index.php?page=welcome.php">Dashboard</a></li>');
?>
</ul> </ul>
<p>User</p> <p>User</p>
<ul> <ul>
<li><a href="index.php?page=profile.php">Profile</a></li> <?php
<li><a href="index.php?page=passwd.php">Change Password</a></li> if(1)//every user can access this page
<li><a href="index.php?page=add_user.php">Add User</a></li> echo('<li><a href="index.php?page=profile.php">Profile</a></li>');
<li><a href="index.php?page=user_list.php">User List</a></li> if(1)//every user can access this page
echo('<li><a href="index.php?page=passwd.php">Change Password</a></li>');
if($perms[0]=="1")
echo('<li><a href="index.php?page=add_user.php">Add User</a></li>');
if($perms[1]=="1")
echo('<li><a href="index.php?page=user_list.php">User List</a></li>');
?>
</ul> </ul>
<p>Log</p> <p>Log</p>
<ul> <ul>
<li><a href="index.php?page=view_log.php">View Log</a></li> <?php
<li><a href="index.php?page=export_log.php">Export Log</a></li> if($perms[2]=="1")
echo('<li><a href="index.php?page=view_log.php">View Log</a></li>');
if($perms[2]=="1")
echo('<li><a href="index.php?page=export_log.php">Export Log</a></li>');
?>
</ul> </ul>
<p>Cyberhex settings</p> <p>Cyberhex settings</p>
<ul> <ul>
<li><a href="index.php?page=server_settings.php">Server Settings</a></li> <?php
<li><a href="index.php?page=client_settings.php?show=general">Client Settings</a></li> if($perms[4]=="1")
<li><a href="index.php?page=database_settings.php">Database Settings</a></li> echo('<li><a href="index.php?page=server_settings.php">Server Settings</a></li>');
if($perms[5]=="1")
echo('<li><a href="index.php?page=client_settings.php?show=general">Client Settings</a></li>');
if($perms[6]=="1")
echo('<li><a href="index.php?page=database_settings.php">Database Settings</a></li>');
?>
</ul> </ul>
<p>Clients</p> <p>Clients</p>
<ul> <ul>
<li><a href="index.php?page=mass_add_clients.php">Mass Add CLients</a></li> <!-- <li><a href="index.php?page=mass_add_clients.php">Mass Add CLients</a></li> -->
<li><a href="index.php?page=add_client.php">Add Client</a></li> <?php
<li><a href="index.php?page=client_list.php">Client List</a></li> if($perms[7]=="1")
echo('<li><a href="index.php?page=add_client.php">Add Client</a></li>');
if($perms[8]=="1")
echo('<li><a href="index.php?page=client_list.php">Client List</a></li>');
?>
</ul> </ul>
</div> </div>

View File

@@ -101,7 +101,7 @@ if ($_SERVER["REQUEST_METHOD"] == "POST") {
1 Server Settings<br> 1 Server Settings<br>
1 Client Settings<br> 1 Client Settings<br>
1 Database Settings<br> 1 Database Settings<br>
1 Add Cleints (+ add client)<br> 1 Add Clients<br>
1 Client List (manage)<br> 1 Client List (manage)<br>
1 Reserved for later use 1 Reserved for later use
</div> </div>