@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
/
wlog
/
Path :
Upload File :
New :
File
Dir
/home/sanchung/public_html/admin/wlog/log_referer.php
<? $dbnum = "1"; $table = "psk_referrer$dbnum"; if(!$basedate1) $basedate1 = date("Y-m-d"); echo" <p>¡Ø Âü°íÀÚ·á·Î¸¸ »ç¿ëÇϽʽÿÀ (Á¢¼Ó·Î±×´Â °³¹ß ¹æ¹ý¿¡ µû¶ó¼ Â÷À̰¡ ³¯ ¼ö ÀÖ½À´Ï´Ù.)</p> <div id='top-search'> <form name='form1' method='post' action='?amode=$amode' style='display:inline'> <input type='hidden' name='amode' value='$amode' /> <span id='search-title'> ³¯Â¥°Ë»ö <input type='text' name='basedate1' value='$basedate1' size='12' onclick=\"makeCal(event, 'document.form1', this.name)\" /> <input type='submit' value='°Ë »ö' class='submit' /> </span> </form> <form name='form2' method='post' action='?amode=$amode' style='display:inline'> <span id='search-search'> <b>±â°£°Ë»ö</b> <input type='text' name='basedate1' value='"; if($basedate2) echo $basedate1; echo"' size='12' onclick=\"makeCal(event, 'document.form2', this.name)\" /> ~ <input type='text' name='basedate2' value='$basedate2' size='12' onclick=\"makeCal(event, 'document.form2', this.name)\" /> <input type='submit' value='°Ë »ö' class='submit' /> </span> </form> </div> <p style='margin:15px 0px 5px 0px; font-weight:bold'>"; if($basedate2) echo"$basedate1 ~ $basedate2"; else echo $basedate1; echo"</p> <table id='l-table'> <thead> <tr> <th width='10%'>¼øÀ§</th> <th width='60%'>µµ¸ÞÀÎ</th> <th width='15%'>Á¢¼ÓȽ¼ö</th> <th width='15%'>¹éºÐÀ²</th> </tr> </thead>"; if($basedate2) $addsql = "basedate>='$basedate1' && basedate<='$basedate2'"; else $addsql = "basedate='$basedate1'"; $res = $mysql->res("$table", "url_detail, sum(count)", "where $addsql group by url_detail", 0); while($row = $mysql->farray($res)){ $client["$row[url_detail]"] = $row[1]; } @arsort($client); $total = @array_sum($client); if($total) $perc = round(($total / $total) * 100 , 2); else $perc = 0; echo" <tfoot> <tr> <td height='20' style='background-color:#EEE'></td> <td style='background-color:#EEE'><b>TOTAL</b></td> <td style='background-color:#EEE'><b>$total</b></td> <td style='background-color:#EEE'><b>$perc %</b></td> </tr> </tfoot> <tbody>"; @reset($client); while(@list($key, $count) = @each($client)){ $perc = @round(($count/$total) * 100 , 2); echo" <tr> <td height='20'>".++$k."</td> <td style='text-align:left'> "; if($key == "Bookmark") echo "<b>".$lib->string_cut($key, 55, "...")."</b>"; else echo"<a href='http://$key' target='_blank'>".$lib->string_cut($key, 55, "...")."</a>"; echo" </td> <td>".number_format($count)."</td> <td>$perc %</td> </tr>"; } // end while if(!$total){ echo" <tr> <td height='20' colspan='4'>DATA°¡ Á¸ÀçÇÏÁö ¾Ê½À´Ï´Ù.</td> </tr>"; } echo" </tbody> </table>"; ?>