Файловый менеджер - Редактировать - /var/www/jonas-eriksen.dk/admin/admin-list.php
Назад
<?php include('../include.php'); $admin = new admin($db); $admin->passwordResetCheck(); if (!$admin->admin_level(1)) { $admin->redirect('/static/401.php'); } if (isset($_POST['resetall'])) { $admin->forceChangePasswords(); $log->addLog($_SESSION['userId'], "Alle passwords er blevet sat til ændring", "Password", null); } include('../static/header.php'); ?> <h2>Admin list</h2> <div class="container"> <div class="row"> <div style="float:right;"> <?php if ($admin->admin_level(1)) { ?> <form method="post"> <button name='resetall' value='true'>Nulstil alle passwords ved næste login</button> </form> <?php } ?> </div> <table id="userTable" class="table-bordered" cellspacing="0" width="100%"> <thead> <tr> <th>Brugernavn</th> <th>Navn</th> <th>Slettet</th> <th>Admin level</th> <th>Sidste login</th> </tr> </thead> <tfoot> <tr> <th>Brugernavn</th> <th>Navn</th> <th>Admin level</th> <th>Sidste login</th> </tr> </tfoot> <tbody> <?php foreach ($admin->getAllAdmins() as $user) { ?> <tr> <td><a href="/admin/show.php?admin=<?php echo $user[5]; ?>"><?php echo $user[0]; ?></a></td> <td><a href="/admin/show.php?admin=<?php echo $user[5]; ?>"><?php echo $user[1]; ?></a></td> <td> <?php if ($user[2] == 1) { echo "Ja"; } else { echo "Nej"; } ?> </td> <td><?php echo $user[3]; ?></td> <td><?php echo $user[4]; ?></td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> <script> $(document).ready(function () { $('#userTable').DataTable(); }); </script>
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка