//日付取得
 if ($tmp_data[dt]) {
     list($tmp_data[day], $tmp_data[week], $tmp_data[hour], $tmp_data[minute], $tmp_data[sec]) = explode(",", $tmp_data[dt]);
 }
 //パス指定
 if ($_GET["p_sel"] && !strstr($tmp_data[path], $_GET["p_sel"]) && $_GET["act"] != "p_sel") {
     continue;
 }
 //除外処理
 if (inc_array($tmp_data["remoteip"], $exclude["hosts"])) {
     continue;
 }
 if (inc_array($tmp_data["ref"], $exclude["urls"])) {
     continue;
 }
 if (inc_array($tmp_data["useragent"], $exclude["uas"])) {
     continue;
 }
 //データ修正
 if ($tmp_data["ref"]) {
     $tmp_data["ref"] = str_replace("[m]", $_SERVER["HTTP_HOST"], $tmp_data["ref"]);
     if (!strstr($tmp_data["ref"], 'http://')) {
         $tmp_data["ref"] = 'http://' . $tmp_data["ref"];
     }
     $tmp_data["ref"] = log_save_dec($log_save["ref"], $tmp_data["ref"]);
 }
 if ($tmp_data["remoteip"]) {
     $tmp_data["remoteip"] = log_save_dec($log_save["host"], $tmp_data["remoteip"]);
 }
 if ($tmp_data["useragent"]) {
     $tmp_data["useragent"] = log_save_dec($log_save["ua"], $tmp_data["useragent"], 1);
Example #2
0
 //バッファ初期化
 $w3a_buf = array();
 //HOSTの設定
 $w3a_buf["host"] = $w3a_option["ip_ch"] ? gethostbyaddr($_SERVER["REMOTE_ADDR"]) : $_SERVER["REMOTE_ADDR"];
 $write_flg = true;
 //除外処理
 if (inc_array($w3a_buf["host"], $exclude["hosts"])) {
     $write_flg = false;
 }
 if (inc_array($_SERVER["REMOTE_ADDR"], $exclude["hosts"])) {
     $write_flg = false;
 }
 if (inc_array($_SERVER["HTTP_REFERER"], $exclude["urls"])) {
     $write_flg = false;
 }
 if (inc_array($_SERVER["HTTP_USER_AGENT"], $exclude["uas"])) {
     $write_flg = false;
 }
 //パスとリファラーの設定
 if (isset($_GET["ref"])) {
     $w3a_buf["path"] = $_SERVER["HTTP_REFERER"];
     $w3a_buf["path"] = ereg_replace("(https?|ftp|news)(://[[:alnum:]\\+\$\\;\\?\\.%,!#~*:@&=_-]+)(/.*)", "\\3", $w3a_buf["path"]);
     //リファラー編集
     $w3a_buf["ref"] = $_GET["ref"];
     if (count($_GET) > 1) {
         foreach ($_GET as $k => $v) {
             if ($k == "ref" || $k == "W3A") {
                 continue;
             }
             $w3a_buf["ref"] .= '&' . $k;
             if ($v != "") {