@Ghazascanner
_2019runbot
Ghazascanner File Manager
server :Linux adweb87 2.6.32-754.el6.x86_64 #1 SMP Tue Jun 19 21:26:04 UTC 2018 x86_64
Current Path :
/
home
/
sanchung
/
public_html
/
admin
/
_setup
/
Path :
Upload File :
New :
File
Dir
/home/sanchung/public_html/admin/_setup/ip_month.php
<? include"$_SERVER[DOCUMENT_ROOT]/admin/_lib/admin_check.php"; if(!$byear) $byear = date("Y"); if(!$bmonth) $bmonth = date("m"); echo" <form name='sform' method='post' action='$_SERVER[PHP_SELF]'> <input type='hidden' name='amode' value='$amode' /> <div id='top-search'> <span id='search-title'>{$byear}³â {$bmonth}¿ù</span> <span id='search-search'>¿ù °Ë»ö <select name='byear' title='³â ¼±ÅÃ'>"; for($i=2010; $i<=date("Y"); $i++){ echo" <option value='$i' "; if($i == $byear) echo"selected='selected'"; echo">{$i}³â</option>"; } echo" </select> <select name='bmonth' title='¿ù ¼±ÅÃ'>"; for($i=1; $i<=12; $i++){ $_month = ($i < 10) ? "0".$i : $i; echo" <option value='$_month' "; if($_month == $bmonth) echo"selected='selected'"; echo">{$_month}¿ù</option>"; } echo" </select> <input type='submit' value='°Ë »ö' class='submit' /> </span> </div> </form> <br /> <table id='l-table' summary='Á¢¼Ó¾ÆÀÌÇÇÀÇ ¿ù´ÜÀ§ 5ÀϾ¿ Á¢¼ÓȽ¼ö¸¦ È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.'> <caption class='blind'>¿ù´ÜÀ§ Á¢¼Ó¾ÆÀÌÇÇ</caption> <thead> <tr> <th width='7%' scope='col'>¼øÀ§</th> <th width='*' scope='col'>Á¢¼ÓIP</th> <th width='12%' scope='col'>Á¢¼ÓȽ¼ö</th>"; for($i=1; $i<=6; $i++){ $_day = ($i == 6) ? (5 * 5)."ÀÏ~" : "~".($i * 5)."ÀÏ"; echo" <th width='8%' scope='col'>$_day</th>"; } echo" <th width='14%' scope='col'>óÀ½Á¢¼Ó½Ã°£</th> </tr> </thead> <tbody>"; $res = $mysql->res("adw_ip_con", "sum(total) as total, userip", "where byear='$byear' && bmonth='$bmonth' group by userip desc"); $total = mysql_num_rows($res); while($row = mysql_fetch_array($res)) { $_count[] = $row; } $pnum = 1; @arsort($_count); while(@list($key, $val) = @each($_count)){ echo " <tr> <td scope='row'>".$pnum++."</td> <td>$val[userip]</td> <td>$val[total]</td>"; $__wdate = ""; for($i=1; $i<=6; $i++){ switch($i){ case"1": $__addsql = " && bdate<='$byear-$bmonth-05'"; break; case"6": $__addsql = " && bdate>'$byear-$bmonth-25'"; break; default: $c_day = $i * 5 - 5; $c_date = (strlen($c_day) < 2) ? "0".$c_day : $c_day; $__addsql = " && bdate>'$byear-$bmonth-$c_date-$c_date' && bdate<='$byear-$bmonth-".($c_date+5)."'"; break; } $__addsql .= " && byear='$byear' && bmonth='$bmonth' && userip='$val[userip]'"; $__row = $mysql->row("adw_ip_con", "sum(total) as total, wdate", "where num<>0 $__addsql group by userip"); $__total = ($__row[total]) ? $__row[total] : "0"; if(!$__wdate) $__wdate = $__row[wdate]; echo" <td>$__total</td>"; } echo" <td>".str_replace("-", ".", substr($__wdate, 5, 14))."</td> </tr> "; } if(!$total){ echo" <tr> <td colspan='16'>Á¢¼Ó ¾ÆÀÌÇǰ¡ ¾ø½À´Ï´Ù.</td> </tr>"; } echo " </tbody> </table>"; ?>