관리자 따옴표 수정

This commit is contained in:
chicpro
2012-11-05 13:32:28 +09:00
parent 1e974943c9
commit 1288772680
15 changed files with 238 additions and 238 deletions

View File

@ -1,12 +1,12 @@
<?
$sub_menu = "200800";
include_once("./_common.php");
include_once('./_common.php');
auth_check($auth[$sub_menu], "r");
auth_check($auth[$sub_menu], 'r');
$g4[title] = "도메인별 접속자현황";
include_once("./admin.head.php");
include_once("./visit.sub.php");
$g4['title'] = '도메인별 접속자현황';
include_once('./admin.head.php');
include_once('./visit.sub.php');
$colspan = 5;
?>
@ -24,16 +24,16 @@ $colspan = 5;
<td>방문자수</td>
<td>비율(%)</td>
<td>그래프</td>
</tr>
</tr>
<tr><td colspan='<?=$colspan?>' class='line2'></td></tr>
<?
$max = 0;
$sum_count = 0;
$sql = " select * from $g4[visit_table]
$sql = " select * from {$g4['visit_table']}
where vi_date between '$fr_date' and '$to_date' ";
$result = sql_query($sql);
while ($row=sql_fetch_array($result)) {
$str = $row[vi_referer];
$str = $row['vi_referer'];
preg_match("/^http[s]*:\/\/([\.\-\_0-9a-zA-Z]*)\//", $str, $match);
$s = $match[1];
$s = preg_replace("/^(www\.|search\.|dirsearch\.|dir\.search\.|dir\.|kr\.search\.|myhome\.)(.*)/", "\\2", $s);
@ -62,7 +62,7 @@ if (count($arr)) {
if (!$key) {
$link = "";
$key = "직접";
$key = "직접";
} else {
$link = "<a href='./visit_list.php?$qstr&domain=$key' title='상세보기'>";
}
@ -71,7 +71,7 @@ if (count($arr)) {
$s_rate = number_format($rate, 1);
$bar = (int)($count / $max * 100);
$graph = "<img src='{$g4[admin_path]}/img/graph.gif' width='$bar%' height='18'>";
$graph = "<img src='{$g4['admin_path']}/img/graph.gif' width='$bar%' height='18'>";
$list = ($k++%2);
echo "
@ -99,5 +99,5 @@ if (count($arr)) {
</table>
<?
include_once("./admin.tail.php");
include_once('./admin.tail.php');
?>