@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_week.php
<? include"$_SERVER[DOCUMENT_ROOT]/admin/_lib/admin_check.php"; if(!$bdate) $bdate = date("Y-m-d"); $tmp_date = explode("-", $bdate); $base_time = mktime(0, 0, 0, $tmp_date[1], $tmp_date[2], $tmp_date[0]); $base_yoil = date("w", $base_time); $start_time = $base_time-(60*60*24*$base_yoil); $s_date = date("Y-m-d", $start_time); $e_date = date("Y-m-d", $start_time+(60*60*24*6)); //echo $minus_day; 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'>$s_date(ÀÏ) ~ $e_date(Åä)</span> <span id='search-search'>³¯Â¥°Ë»ö <input type='text' name='bdate' value='$bdate' size='12' onclick=\"makeCal('sform', this.name, 0, 0)\" /> <input type='submit' value='°Ë »ö' class='submit' /> </span> </div> </form> <br /> <table id='l-table' summary='Á¢¼Ó¾ÆÀÌÇÇÀÇ ÁÖ´ÜÀ§ ³¯Â¥º° Á¢¼ÓȽ¼ö¸¦ È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.'> <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=-$base_yoil; $i<=(6-$base_yoil); $i++){ $_day = date("m.d", $base_time+(60*60*24*$i)); echo" <th width='7%' 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 bdate>='$s_date' && bdate<='$e_date' group by userip desc"); $total = mysql_num_rows($res); while($row = mysql_fetch_array($res)) { $_count[] = $row; } $i = 1; @arsort($_count); while(@list($key, $val) = @each($_count)){ echo " <tr> <td scope='row'>".$i++."</td> <td>$val[userip]</td> <td>$val[total]</td>"; $__wdate = ""; for($j=-$base_yoil; $j<=(6-$base_yoil); $j++){ $__date = date("Y-m-d", $base_time+(60*60*24*$j)); $__row = $mysql->row("adw_ip_con", "sum(total) as total, wdate", "where userip='$val[userip]' && bdate='$__date' 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>"; ?>