www.gusucode.com > Tatter Tools 0.961 SE GB2312 简体中文版 > upload/admin/statistics_rank.php
<? include("../inc_global.php"); include("../inc_function.php"); check_authority(); if ($mode == "reset") { put_query("delete from t3_".$dbid."_referstat"); ?> <head> <meta http-equiv="Content-Type" content="text/html; charset=GB2312"> <meta name="keywords" content="TT,TatterTools,Skin,php"> <meta name="description" content="Meyu,梦游,华人中文网"> <meta name="generator" content="TatterTools中文BLOG"> <meta name="MSSmartTagsPreventParsing" content="TRUE"> <meta http-equiv="MSThemeCompatible" content="Yes"> </head> <script type="text/javascript"> alert('逆向连接队列初始化完毕!\t'); location.href = 'statistics.php'; </script> <? exit; } $row_color = "#F0F8FA"; admin_header(""); ?> <table width="100%" cellpadding="0" cellspacing="0"><tr> <td valign="top" style="padding:7 5 5 5;"> <table width="100%" style="margin-bottom:3"><tr> <td width="44" align="right"><img src="../images/num_add.gif" height="17"></td> <td width="9"><img src="../images/ver_01.gif" width="9" height="17"></td> <td><img src="../images/cap_add5.gif" height="17"></td> </tr></table> <? print_content_line(); ?> <table class="content_back1" cellpadding="0" cellspacing="5" width="100%" style="background-color:#F0F0F0"><tr> <td bgcolor="#FFFFFF"> <table width="100%" cellspacing="0"><tr> <td height="40" style="padding:5 0 0 8"> <table cellpadding="0" cellspacing="0"><tr> <td>想将逆向连接排行初始化请点击右边按钮.</td> <td style="padding:0 0 2 5"><img class="ib" width="53" height="17" src="../images/b_reset.gif" onclick="if (confirm('您确定将逆向连接初始化吗?此功能将清除所有逆向连接且不可恢复?您确定吗?\t')) location.href='<?=$PHP_SELF?>?mode=reset'"></td> </tr></table> </td> </tr> <? $sql = "select cnt, host from t3_".$dbid."_referstat order by cnt desc"; // print $sql; $result = @mysql_query($sql); $i = 0; $pi = 1; $pcnt = 0; while(list($cnt, $host) = @mysql_fetch_array($result)) { if ($pcnt != $cnt) { $pcnt = $cnt; $i += $pi; $pi = 1; } else $pi++; ?> <tr> <td height="1" style="padding:0; background-image:url('../images/dot_width2.gif')"></td></tr> <tr onmouseover="this.style.backgroundColor='<?=$row_color?>'" onmouseout="this.style.backgroundColor='#FFFFFF'"> <td class="rowdate" style="padding:4 0 4 8;color:#305090"><font color="black"><?=$i?>. </font> <a href="#" onclick="window.open('<?="http://".$host?>'); return false;"><?=$host?></a> (<?=$cnt?>)</td> </tr> <? } ?> </table> </td> </tr></table> </td> </tr></table> <? admin_footer("") ?>