* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 3 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License in GPL.txt for more details. */ define('IN_ADMIN', 1); require_once('common.php'); $query = $conn->query('SELECT user FROM admin LIMIT 1'); $adminid = $query->fetch()['user']; ?> Paste - Admin Settings
' . mysqli_error($con) . '
'; } else { $msg = '
Account details updated.
'; } } ?>
query('SELECT COUNT(*) FROM admin_history'); $row = $query->fetch(PDO::FETCH_NUM); $rec_count = $row[0]; $query = $conn->prepare('SELECT ip, last_date FROM admin_history ORDER BY `id` LIMIT ?'); $query->execute([$rec_limit]); while ($row = $query->fetch()) { echo ''; echo ''; echo ''; echo ''; } ?>
Login date IP
' . $row['last_date'] . '' . $row['ip'] . '