40) ? "other" : $m;
if (isset($mplist_titles_on)) {
$alt = '#'.$m.' '.$row[0];
$mp_str = (@$row[3]) ? shortString(@$row[3],25,5,false) : shortString($row[0],25,5);
} else {
$alt = '#'.$m.' '.@$row[3];
$mp_str = shortString($row[0],25,5);
}
$ArrMp[$i][0] = ' '.$mp_str.'';
$ArrMp[$i][1] = $row[1];
$ArrMp[$i][2] = date($strDate2,GMTtoUser($row[2]));
// $ArrMp[$i][2] = strftime("%b %d, %Y",GMTtoUser($row[2]));
$i++; $m++;
}
putSerializedCache('mp', $ArrMp, $id);
} else {
$ArrMp = $CacheMp[1];
}
$titles_txt = (isset($mplist_titles_on)) ? 'mp titles '.$strOff : 'mp titles '.$strOn;
$lastline = '[ '.$titles_txt.' ]';
if (!$guest) {
$lastline .= ' [ '.$strEdit.' ]';
}
echo htmlStatTable($ArrMp,2,'',$lastline);
?>
|
'' GROUP by ref ORDER by hits DESC LIMIT ".$topref_lim;
$res = mysql_query($sql);
$i = 3;
while ($row = @mysql_fetch_array($res)) {
$ArrRef[$i][0] = ''.$row[0].'';
$ArrRef[$i][1] = $row[1];
$i++;
}
putSerializedCache('ref', $ArrRef, $id);
} else {
$ArrRef = $CacheRef[1];
}
echo htmlStatTable($ArrRef);
?>
|
|
'' GROUP BY D ORDER BY C DESC LIMIT 0, $topdomain_lim";
$res = mysql_query($sql);
$nb_enr = @mysql_num_rows($res);
if ($nb_enr != 0) {
$i = 3;
while ($dom = mysql_fetch_array($res)) {
$ArrDom[$i][0] = " ".$dom[0]." ";
$descr = @$loca['tld'][strtolower($dom[0])];
// country flags
if($flags) {
if (!@file_exists($flag = CFG_FLAGS_PATH.$dom[0].'.png')) $flag = CFG_IMG_PATH.'clear.gif';
$flag_stuff = " ";
}
$ArrDom[$i][1] = @$flag_stuff." ".$descr." ";
$ArrDom[$i][2] = " ".$dom[1]." ";
$i++;
}
}
putSerializedCache('dom', $ArrDom, $id);
} else {
$ArrDom = $CacheDom[1];
}
$lastline = (!$guest) ? '[ flags '.$strOn.'/'.$strOff.' ]' : '';
echo htmlStatTable($ArrDom, 2, '', $lastline);
?>
|
0 GROUP BY res_w,res_h ORDER BY C DESC LIMIT ".$topres_lim;
$res = mysql_query($sql);
$i = 3;
while ($row = @mysql_fetch_array($res)) {
$ArrRes[$i][0] = ''.$row[0].'x'.$row[1].'';
$ArrRes[$i][1] = $row[2];
$i++;
}
putSerializedCache('res', $ArrRes, $id);
} else {
$ArrRes = $CacheRes[1];
}
echo htmlStatTable($ArrRes);
?>
|
0 GROUP BY color ORDER BY C DESC LIMIT ".$topcolor_lim;
$res = mysql_query($sql);
$i = 3;
while ($row = @mysql_fetch_array($res)) {
$ArrColor[$i][0] = ''.$row[0].'';
$ArrColor[$i][1] = $row[1];
$i++;
}
putSerializedCache('color', $ArrColor, $id);
} else {
$ArrColor = $CacheColor[1];
}
echo htmlStatTable($ArrColor);
?>
|
''";
$res = mysql_query($sql);
$total_tld = mysql_result($res,0,'total');
$sql = "SELECT area,COUNT(*) AS C FROM ".$tbl_logs." AS T1, ".$tbl_domains." AS T2 "
. "WHERE T1.tld=T2.tld GROUP BY area ORDER BY C DESC";
$res = mysql_query($sql);
$i = 3;
while ($row = @mysql_fetch_array($res)) {
$thisarea = (@$str_area[$row[0]]) ? $str_area[$row[0]] : $strUndefined;
$ArrTerr[$i][0] = " ".$thisarea." ";
$ArrTerr[$i][1] = round(100*$row[1]/$total_tld).' %';
$ArrTerr[$i][2] = $row[1];
$i++;
}
putSerializedCache('terr', $ArrTerr, $id);
} else {
$ArrTerr = $CacheTerr[1];
}
echo htmlStatTable($ArrTerr);
?>
|
'' ORDER BY time DESC LIMIT $lastref_lim,1";
$res = mysql_query($sql);
$ref_sql_limit = @mysql_result($res,0,'time');
$sql_reftime = ($ref_sql_limit) ? " time > $ref_sql_limit AND" : '';
$sql = "SELECT referer,count(referer) AS hits FROM ".$tbl_logs." WHERE".$sql_reftime." referer > '' GROUP BY referer ORDER BY hits DESC,time DESC";
$res = mysql_query($sql);
$i = 3;
while ($row = @mysql_fetch_array($res)) {
$ArrLastRef[$i][0] = ''.htmlspecialchars(shortString(urldecode($row[0]),51,3)).'';
$ArrLastRef[$i][1] = $row[1];
$i++;
}
// putSerializedCache('lastref', $ArrLastRef, $id);
//} else {
// $ArrLastRef = $CacheLastRef[1];
//}
echo htmlStatTable($ArrLastRef,2,'100%');
?>
[ '.$strEdit.' ]' : '';
echo htmlStatTable($ArrKeyw,2,'100%',$lastline);
?>
|
'.htmlspecialchars($dl_url).'';
$ArrDl[$i][1] = $row[1];
$ArrDl[$i][2] = date($strDate2,GMTtoUser($row[2]));
//$ArrDl[$i][2] = strftime("%b %d, %Y",GMTtoUser($row[2]));
$i++;
}
putSerializedCache('dl', $ArrDl, $id);
} else {
$ArrDl = $CacheDl[1];
}
$lastline = (!$guest) ? '[ unite '.$strOn.'/'.$strOff.' ] [ '.$strEdit.' ]' : '';
echo htmlStatTable($ArrDl,2,'',$lastline);
?>
|