예제 #1
0
									<th>Country</th>
									<th>Install Date</th>
									<th>Operating System</th>
									<th>Privileges</th>
									<th>Bot Version</th>
								</tr>
							</thead>
							<tbody>
								<?php 
if ($total != "0") {
    $bots = $odb->query("SELECT * FROM bots ORDER BY installdate DESC LIMIT 5");
    while ($b = $bots->fetch(PDO::FETCH_ASSOC)) {
        $id = $b['id'];
        $ip = $b['ipaddress'];
        $cn = geoip_country_name_by_id($gi, $b['country']);
        $fl = strtolower(geoip_country_code_by_id($gi, $b['country']));
        $in = date("m-d-Y, h:i A", $b['installdate']);
        $os = $b['operatingsys'];
        $pv = $b['privileges'];
        $bv = $b['botversion'];
        echo '<tr><td>' . $id . '</td><td>' . $ip . '</td><td>' . $cn . '&nbsp;&nbsp;<img src="img/flags/' . $fl . '.png" /></td><td>' . $in . '</td><td>' . $os . '</td><td>' . $pv . '</td><td>' . $bv . '</td></tr>';
    }
} else {
    echo '<tr class="odd"><td colspan="8">No data to display</td></tr>';
}
?>
							</tbody>
						</table>
					</div>
				</div>
				<br><br>
예제 #2
0
							<tbody>
								<tr><td>ID</td><td><?php 
echo $d['id'];
?>
</td></tr>
								<tr><td>HWID</td><td><?php 
echo $d['bothwid'];
?>
</td></tr>
								<tr><td>IP Address</td><td><?php 
echo $d['ipaddress'];
?>
</td></tr>
								<tr><td>Country</td><td><?php 
echo geoip_country_name_by_id($gi, $d['country']);
echo '&nbsp;&nbsp;<img src="img/flags/' . strtolower(geoip_country_code_by_id($gi, $d['country'])) . '.png" />';
?>
</td></tr>
								<tr><td>Install Date</td><td><?php 
echo date("m-d-Y, h:i A", $d['installdate']);
?>
</td></tr>
								<tr><td>Last Response</td><td><?php 
echo date("m-d-Y, h:i A", $d['lastresponse']);
?>
</td></tr>
								<tr><td>Current Task</td><td>#<?php 
echo $d['currenttask'];
?>
</td></tr>
								<tr><td>Computer Name</td><td><?php