Fix visualizzazione
This commit is contained in:
@@ -19,17 +19,11 @@ function PopupG(apri)
|
||||
</script>
|
||||
<table cellpadding="0" cellspacing="0" border="0" width="90%">
|
||||
<?php
|
||||
//$query = "SELECT max(ricevuti) AS ricevuti, max(inviati) AS inviati FROM proxy_speed";
|
||||
$query = "SELECT GREATEST (max(inviati), max(ricevuti)) AS max from proxy_speed";
|
||||
$res = mysql_query( $query, $DB_ID );
|
||||
$valori = mysql_fetch_array ( $res );
|
||||
$max = $valori['max'];
|
||||
|
||||
/*
|
||||
$ric = $valori['ricevuti'];
|
||||
$inv = $valori['inviati'];
|
||||
*/
|
||||
|
||||
$query = "SELECT proxy_speed.ip, proxy_speed.ricevuti, proxy_speed.inviati, proxy_pool.attivo FROM proxy_speed JOIN proxy_pool ON proxy_speed.ip = proxy_pool.ip ORDER BY ricevuti desc , inviati desc";
|
||||
$res = mysql_query( $query, $DB_ID );
|
||||
while ($dato = mysql_fetch_array ( $res )) {
|
||||
|
||||
@@ -31,8 +31,12 @@ if (isset($_POST['tempo'])) {
|
||||
<?php
|
||||
$query = "SELECT GREATEST (sum(inviati), sum(ricevuti)) AS max from proxy_dati WHERE data_destroy >= DATE_SUB(NOW(), INTERVAL 1 $tempo) GROUP BY ip";
|
||||
$res = mysql_query( $query, $DB_ID );
|
||||
$valori = mysql_fetch_array ( $res );
|
||||
$max = 0;
|
||||
while ($valori = mysql_fetch_array ( $res )) {
|
||||
if ($valori['max'] > $max) {
|
||||
$max = $valori['max'];
|
||||
}
|
||||
}
|
||||
|
||||
$query = " SELECT
|
||||
proxy_pool.attivo,
|
||||
|
||||
Reference in New Issue
Block a user