Example #1
0
     $track["ref"] = urldecode($track["ref"]);
     if (function_exists('mb_convert_encoding')) {
         $track["ref"] = @mb_convert_encoding($track["ref"], "EUC", "auto");
     } else {
         $track["ref"] = jcode_convert_encoding($track["ref"], 'euc-jp');
     }
     $track["ref"] = str_replace('+', ' ', $track["ref"]);
     if (function_exists('mb_ereg_replace')) {
         $track["ref"] = @mb_ereg_replace(' ', ' ', $track["ref"]);
         $track["ref"] = @mb_ereg_replace(' {2,}', ' ', $track["ref"]);
     } else {
         $track["ref"] = jstr_replace(' ', ' ', $track["ref"]);
         $track["ref"] = jstr_replace(' {2,}', ' ', $track["ref"]);
     }
     $track["ref"] = trim($track["ref"]);
     $track["ref"] = '<a href="' . $jump . '" target="_blank">' . set_img(JUMPMARK) . '&nbsp;' . $track["ref"] . '</a>';
 }
 foreach ($track as $k => $v) {
     $v = trim($v);
     if ($v == "" && $k != "title") {
         $v = "&nbsp;";
     }
     $track[$k] = $v;
 }
 //タイトル追加
 if ($track["title"] != "") {
     $track["path"] = "[&nbsp;" . $track["title"] . "&nbsp;]<br>" . $track["path"];
 }
 echo '<tr>';
 echo '<td width="70" align="center">' . $track["hour"] . ":" . $track["minute"] . ":" . $track["sec"] . "</td>\n";
 echo '<td>' . $track["path"] . "</td>\n";
Example #2
0
     continue;
 }
 //ソート
 arsort($main[$k], SORT_NUMERIC);
 $tmp = "";
 $i = 0;
 foreach ($main[$k] as $k2 => $v2) {
     if ($k2 == "total") {
         continue;
     }
     //link
     if ($k == $tmp) {
         $link = "&nbsp;";
     } else {
         //icon
         $icon = isset($icon_path[strtolower($k)]) ? set_img($icondir . $icon_path[strtolower($k)], $k) . "&nbsp;" : set_img($icondir . "none.gif", $k) . "&nbsp;";
         $link = $icon . sel_link(query_edit("sel", $k), $k);
     }
     $tmp = $k;
     echo '<tr id="bg_id' . $k . $i . '" onmouseover="chBG(\'bg_id' . $k . $i . '\', 1);" onmouseout="chBG(\'bg_id' . $k . $i . '\', 0);">';
     echo '<td>&nbsp;' . $link . '&nbsp;</td>';
     echo '<td>&nbsp;' . $k2 . '&nbsp;</td>';
     echo '<td align="right">&nbsp;' . $v2 . '&nbsp;</td>';
     echo '<td>&nbsp;' . mk_graph($v2, $main["total"], $max_val) . '&nbsp;</td>';
     echo '</tr>' . "\n";
     $i++;
 }
 //合計
 echo '<tr>';
 echo '<td class="bg_total">&nbsp;</td>';
 echo '<td class="bg_total" align="right">&nbsp;<b>合計:</b>&nbsp;</td>';
Example #3
0
if ($_POST["edit_id"]) {
    echo '<hr size=1><form action="w3a.php?' . $_SERVER[QUERY_STRING] . '" method="POST">';
    echo '[編集]&nbsp;ID:&nbsp;<b>' . $_POST["edit_id"] . '</b>&nbsp;&nbsp;';
    echo 'Name:&nbsp;<input type=text name="name" size=20 value="' . $ch_id[$_POST["edit_id"]] . '">&nbsp;&nbsp;';
    echo '<input type=submit value="編集を実行">';
    echo '<input type="hidden" name="id" value="' . $_POST["edit_id"] . '">';
    echo '<input type="hidden" name="mode" value="edit">';
    echo '</form>';
}
if ($ch_id) {
    echo '<br>';
    echo '<table>';
    echo '<tr>';
    echo '<th nowrap>ID</th>';
    echo '<th nowrap>変換名</th>';
    echo '<th nowrap>編集</th>';
    echo '<th nowrap>削除</th>';
    echo '</tr>';
    foreach ($ch_id as $k => $v) {
        $link = query_edit("act", "track");
        $link = query_edit("sel", $k, $link);
        $link = set_img(TRACKMARK) . "&nbsp;" . '<a href="' . FILENAME . $link . '" target="_top">' . $k . '</a>';
        echo '<tr id="bg_id' . $k . '" onmouseover="chBG(\'bg_id' . $k . '\', 1);" onmouseout="chBG(\'bg_id' . $k . '\', 0);">';
        echo '<td nowrap>' . $link . '</td>';
        echo '<td nowrap>' . $v . '</td>';
        echo '<td nowrap><form action="' . $_SERVER['PHP_SELF'] . '?' . $_SERVER[QUERY_STRING] . '" method="POST"><input type=submit value="編集"><input type="hidden" name="edit_id" value="' . $k . '"></form></td>';
        echo '<td nowrap><form action="' . $_SERVER['PHP_SELF'] . '?' . $_SERVER[QUERY_STRING] . '" method="POST"><input type=submit value="削除"><input type="hidden" name="id" value="' . $k . '"><input type="hidden" name="name" value="' . $v . '"><input type="hidden" name="mode" value="del"></form></td>';
        echo '</tr>';
    }
    echo '</table>';
}
Example #4
0
<tr>
<th>&nbsp;{$point} トータルアクセス数&nbsp;</th>
<th>&nbsp;{$point} ユニークアクセス数&nbsp;</th>
</tr>
<tr align="right">
<td><b>{$count_d}</b></td>
<td><b>{$count_d_u}</b></td>
</tr>
</table><br>
EOM;
}
#-------------------------------------------------
#  パス指定
#-------------------------------------------------
if ($_GET["p_sel"]) {
    $p_sel_img = set_img(SELPATHMARK, "ページ指定");
    $p_sel_now = $_GET["p_sel"];
    $p_sel_cansel = '&nbsp;[<a href="' . FILENAME . query_edit("p_sel", "DELETE") . '">指定解除</a>]';
    $w3a["OPTION"] .= <<<EOM
<br>{$p_sel_img}
ページ指定:
<b>
{$p_sel_now}
</b>
{$p_sel_cansel}
<hr size="1">
EOM;
}
#-------------------------------------------------
#  メイン処理
#-------------------------------------------------
Example #5
0
/*=========================================*/
//ソート
arsort($main, SORT_NUMERIC);
echo '<table>';
echo '<tr>';
echo '<th nowrap>ID</th>';
echo '<th nowrap>ホスト・IP</th>';
echo '<th nowrap>件数</th>';
echo '<th nowrap>グラフ</th>';
echo '</tr>';
$i = 0;
foreach ($main as $k => $v) {
    //track
    $track = query_edit("act", "track");
    $track = query_edit("sel", $id[$k]["id"], $track);
    $track = set_img(TRACKMARK) . '&nbsp;' . '<a href="' . FILENAME . $track . '">' . $id[$k]["ch_id"] . '</a>';
    //link
    $link = sel_link(query_edit("sel", $k), $k);
    echo '<tr id="bg_id' . $i . '" onmouseover="chBG(\'bg_id' . $i . '\', 1);" onmouseout="chBG(\'bg_id' . $i . '\', 0);">';
    echo '<td>&nbsp;' . $track . '&nbsp;</td>';
    echo '<td>&nbsp;' . $link . '&nbsp;</td>';
    echo '<td align="right">&nbsp;<font color="#FF0000">' . $v . '</font>&nbsp;</td>';
    echo '<td>&nbsp;' . mk_graph($v, array_sum($main), max($main)) . '&nbsp;</td>';
    echo '</tr>';
    $i++;
}
//合計
echo '<tr>';
echo '<td class="bg_total" align="right">&nbsp;<b>合計:</b>&nbsp;</td>';
echo '<td class="bg_total" align="right">&nbsp;<b>' . @array_sum($main) . '</b>&nbsp;</td>';
echo '<td class="bg_total">&nbsp;</td>';
Example #6
0
                if ($v["id"]) {
                    $id = $v["ch_id"] ? $v["ch_id"] : $v["id"];
                    $link = query_edit("act", "track");
                    $link = query_edit("sel", $v["id"], $link);
                    $link = '<a href="' . FILENAME . $link . '">' . set_img(TRACKMARK) . "&nbsp;" . $id . '</a><br>';
                } else {
                    $link = "";
                }
                echo '<tr><td width="100">Host:</td><td>&nbsp;' . $link . $main_view[$k]["remoteip"] . '</td></tr>';
            }
            if (trim($v["ref"])) {
                $sel_ref = urldecode($main_view[$k]["ref"]);
                //EUC-JPにエンコード(一応、必要ないかも)
                if (function_exists("mb_convert_encoding")) {
                    $sel_ref = @mb_convert_encoding($sel_ref, "EUC-JP", "auto");
                } else {
                    $sel_ref = jcode_convert_encoding($sel_ref, 'euc-jp');
                }
                $sel_ref = '<a href="redirect.php?redirect=' . $v["ref"] . '" target="_blank">' . set_img(JUMPMARK) . "&nbsp;" . $sel_ref . '</a>&nbsp;';
                echo '<tr><td width="100">Refererer:</td><td>&nbsp;' . $sel_ref . '</td></tr>';
            }
            if (trim($v["useragent"])) {
                echo '<tr><td width="100">UserAgent:</td><td>&nbsp;' . $main_view[$k]["useragent"] . '</td></tr>';
            }
            echo "</table>";
            echo "<br>";
        }
    }
} elseif ($_POST["search_w"] != "") {
    echo '<div id="error">該当するログは見つかりませんでした。</div>';
}
Example #7
0
 }
 #unset($main[$k]["total"]);
 //ソート
 arsort($main[$k], SORT_NUMERIC);
 $tmp = "";
 $i = 0;
 foreach ($main[$k] as $k2 => $v2) {
     if ($k2 == "total") {
         continue;
     }
     //link
     if ($k == $tmp) {
         $link = "&nbsp;";
     } else {
         //icon
         $icon = isset($icon_path[strtolower($k)]) ? set_img($icondir . $icon_path[strtolower($k)], $k) . "&nbsp;" : "";
         $link = $icon . sel_link(query_edit("sel", $k), $k);
     }
     $tmp = $k;
     echo '<tr id="bg_id' . $k . $i . '" onmouseover="chBG(\'bg_id' . $k . $i . '\', 1);" onmouseout="chBG(\'bg_id' . $k . $i . '\', 0);">';
     echo '<td>&nbsp;' . $link . '&nbsp;</td>';
     echo '<td>&nbsp;' . $k2 . '&nbsp;</td>';
     echo '<td align="right">&nbsp;' . $v2 . '&nbsp;</td>';
     echo '<td>&nbsp;' . mk_graph($v2, $main["total"], $max_val) . '&nbsp;</td>';
     echo '</tr>' . "\n";
     $i++;
 }
 //合計
 echo '<tr>';
 echo '<td class="bg_total">&nbsp;</td>';
 echo '<td class="bg_total" align="right">&nbsp;<b>合計:</b>&nbsp;</td>';
Example #8
0
}
//ソート
arsort($main, SORT_NUMERIC);
/*=========================================*/
/* メイン処理                              */
/*=========================================*/
echo '<table>';
echo '<tr>';
echo '<th nowrap>ページ</th>';
echo '<th nowrap>ユニーク</th>';
echo '<th nowrap>件数</th>';
echo '<th nowrap>グラフ</th>';
echo '</tr>';
foreach ($main as $k => $v) {
    if ($p_sel_icon) {
        $sel_path = '<a href="' . FILENAME . query_edit("p_sel", $k) . '">' . set_img(SELPATHMARK, "ページ指定") . '</a>&nbsp;';
    }
    //ユニーク値
    $uniq = intval($uniqs[$k]);
    //Pathタイトル変換
    $path_title = "";
    if (is_array($ch_path) && isset($ch_path[$k])) {
        $path_title = "[&nbsp;" . $ch_path[$k] . "&nbsp;]<br>&nbsp;";
    }
    //link
    $link = $sel_path . $path_title . sel_link(query_edit("sel", $k), $k);
    echo '<tr id="bg_id' . $k . '" onmouseover="chBG(\'bg_id' . $k . '\', 1);" onmouseout="chBG(\'bg_id' . $k . '\', 0);">';
    echo '<td>&nbsp;' . $link . '&nbsp;</td>';
    echo '<td align="right">&nbsp;<font color="#0000FF">' . $uniq . '</font>&nbsp;</td>';
    echo '<td align="right">&nbsp;<font color="#FF0000">' . $v . '</font>&nbsp;</td>';
    echo '<td>&nbsp;' . mk_graph2($v, $main, $uniq, $uniqs, $max_val) . '&nbsp;</td>';
Example #9
0
         $file_link = '<a href="w3a.php?ym=' . $dir_name . '&d=' . $tmp_d . '" target="_top">' . $v . '</a>';
         //削除ボタン(ファイル)
         $bt_del = '<form action="' . basename($sn) . '?sel=' . $_GET['sel'] . '" method="POST" onSubmit="return check_del(\'ファイル【 ' . $v . ' 】\')">' . '<input type="hidden" name="del_d" value="' . $dir_name . '">' . '<input type="hidden" name="del_f" value="' . $tmp_d . '">' . '<input type="hidden" name="del_m" value="f">' . '<input type="submit" value=" ファイル削除 ">' . '</form>';
         $file_size = filesize($filename);
         $file_size_total = $file_size_total + $file_size;
         if ($file_size > 1000000000) {
             $file_size = round($file_size / 1000000000, 2) . " GB";
         } elseif ($file_size > 1000000) {
             $file_size = round($file_size / 1000000, 2) . " MB";
         } elseif ($file_size > 1000) {
             $file_size = round($file_size / 1000, 2) . " KB";
         } else {
             $file_size .= " Byte";
         }
         $w3a["DATA_VIEW"] .= '<tr>' . "\n";
         $w3a["DATA_VIEW"] .= '<td width="150">' . set_img("image/report.gif") . '&nbsp;' . $file_link . '</td>' . "\n";
         $w3a["DATA_VIEW"] .= '<td width="100">' . $file_size . '</td>' . "\n";
         $w3a["DATA_VIEW"] .= '<td width="150">' . date("Y/m/d H:i:s", filemtime($filename)) . '</td>' . "\n";
         $w3a["DATA_VIEW"] .= '<td width="150" align="center">' . $bt_del . '</td>' . "\n";
         $w3a["DATA_VIEW"] .= '</tr>' . "\n";
     }
 }
 if ($file_size_total > 1000000000) {
     $file_size_total = round($file_size_total / 1000000000, 2) . " GB";
 } elseif ($file_size_total > 1000000) {
     $file_size_total = round($file_size_total / 1000000, 2) . " MB";
 } elseif ($file_size_total > 1000) {
     $file_size_total = round($file_size_total / 1000, 2) . " KB";
 } else {
     $file_size_total .= " Byte";
 }
Example #10
0
 echo '<th nowrap>リンク元</th>';
 echo '<th nowrap>ユニーク</th>';
 echo '<th nowrap>件数</th>';
 echo '<th nowrap>グラフ</th>';
 echo '</tr>';
 foreach ($main as $k => $v) {
     //JUMP
     $flg_jump = true;
     if ($k == '(Direct or Bookmark)') {
         $flg_jump = false;
     }
     if (!ereg("(https?|ftp|news)(://[[:alnum:]\\+\$\\;\\?\\.%,!#~*/:@&=_-]+)", $k)) {
         $flg_jump = false;
     }
     if ($flg_jump) {
         $jump = '<a href="redirect.php?redirect=' . $k . '" target="_blank">' . set_img(JUMPMARK) . '</a>&nbsp;';
     } else {
         $jump = "";
     }
     //ユニーク値
     $uniq = intval($uniqs[$k]);
     //URLタイトル変換(グループ化なし)
     $url_title = "";
     if (!$title_group && is_array($ch_url)) {
         foreach ($ch_url as $url => $title) {
             if (strstr($k, $url)) {
                 $url_title = $title . "<br>&nbsp;";
                 break;
             }
         }
     }
Example #11
0
            continue;
        }
        if ($query_cut) {
            $p = parse_url($v["path"]);
            $v["path"] = $p["path"];
            unset($p);
        }
        //アクセス数
        $main[$v["path"]] = $v["title"];
    }
    unset($data);
}
//ソート
ksort($main, SORT_STRING);
/*=========================================*/
/* メイン処理                              */
/*=========================================*/
echo '<table>';
echo '<tr>';
echo '<th nowrap>ページパス</th>';
echo '<th nowrap>タイトル</th>';
echo '</tr>';
foreach ($main as $k => $v) {
    $query = query_edit("act", "DELETE");
    $link = set_img(SELPATHMARK, "ページ指定") . '&nbsp;<a href="' . FILENAME . query_edit("p_sel", $k, $query) . '">' . str_cut($k) . '</a>';
    echo '<tr id="bg_id' . $k . '" onmouseover="chBG(\'bg_id' . $k . '\', 1);" onmouseout="chBG(\'bg_id' . $k . '\', 0);">';
    echo '<td>&nbsp;' . $link . '&nbsp;</td>';
    echo '<td>&nbsp;' . $v . '&nbsp;</td>';
    echo '</tr>';
}
echo '</table>';