GetDatePrevWeek(""); } else { // month $curdate = $MagDate->GetDatePrevMonth(""); } } else { if ($opt == "d") { $curdate['sdate'] = $argv[1]; $curdate['edate'] = $curdate['sdate']; } else if ($opt == "w") { $curdate = $MagDate->GetDateCurWeek($argv[1]); } else { // month $curdate = $MagDate->GetDateCurMonth($argv[1]); } } if ($opt == "d") { //전체 정보 일자별.. echo "processing Total Info ".$curdate['sdate']."\n"; $MagRObject->InsertDBTotalInfoDay($curdate['sdate']); //전체 정보 일자별 서버별 echo "processing Total Server Info ".$curdate['sdate']."\n"; $MagRObject->InsertDBTotalInfoDayServer($curdate['sdate']); echo "processing transaction hour Info ".$curdate['sdate']."~".$curdate['edate']." : $opt\n"; $MagRObject->InsertDBTotalInfoHour($curdate['sdate']); } else { echo "processing Total Info ".$curdate['sdate']."~".$curdate['edate']." : $opt\n"; $MagRObject->InsertDBTotalInfoWM($curdate, $opt); echo "processing Total Server Info ".$curdate['sdate']."~".$curdate['edate']." : $opt\n"; $MagRObject->InsertDBTotalInfoServerWM($curdate, $opt); } echo "processing Total App Info ".$curdate['sdate']."~".$curdate['edate']." : $opt\n"; $MagRObject->InsertDBAppInfoServer($curdate, $opt); echo "processing Total Referer Info ".$curdate['sdate']."~".$curdate['edate']." : $opt\n"; $MagRObject->InsertDBRefererInfoServer($curdate, $opt); echo "processing Total Country Info ".$curdate['sdate']."~".$curdate['edate']." : $opt\n"; $MagRObject->InsertDBCountryInfo($curdate, $opt); echo "processing Total Region Info ".$curdate['sdate']."~".$curdate['edate']." : $opt\n"; $MagRObject->InsertDBRegionInfo($curdate, $opt); echo "processing Total ISP Info ".$curdate['sdate']."~".$curdate['edate']." : $opt\n"; $MagRObject->InsertDBISPInfo($curdate, $opt); echo "processing Total OS Info ".$curdate['sdate']."~".$curdate['edate']." : $opt\n"; $MagRObject->InsertDBOSInfo($curdate, $opt); echo "processing Total Browser Info ".$curdate['sdate']."~".$curdate['edate']." : $opt\n"; $MagRObject->InsertDBBrowserInfo($curdate, $opt); echo "processing Total Cleint Info ".$curdate['sdate']."~".$curdate['edate']." : $opt\n"; $MagRObject->InsertDBUserInfo($curdate, $opt); $MagRObject->InsertDBMobileInfo($curdate, $opt); unset($MagDate); unset($MagRObject); ?>