sql = new mSQL('localhost','dcprese_','dcprese_m','03181987');
$oq = $app->OQ();
$firstlog = $app->sql->query('SELECT `accesstime` FROM `mss_log` ORDER BY `accesstime` ASC LIMIT 1',1);
$firstlog = date('M. jS, Y',$firstlog['accesstime']);
if(!$_GET['d']) { $_GET['d'] = date('d'); }
if(!$_GET['m']) { $_GET['m'] = date('m'); }
if(!$_GET['y']) { $_GET['y'] = date('y'); }
$today00 = mktime(0,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today01 = mktime(1,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today02 = mktime(2,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today03 = mktime(3,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today04 = mktime(4,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today05 = mktime(5,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today06 = mktime(6,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today07 = mktime(7,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today08 = mktime(8,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today09 = mktime(9,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today10 = mktime(10,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today11 = mktime(11,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today12 = mktime(12,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today13 = mktime(13,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today14 = mktime(14,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today15 = mktime(15,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today16 = mktime(16,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today17 = mktime(17,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today18 = mktime(18,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today19 = mktime(19,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today20 = mktime(20,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today21 = mktime(21,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today22 = mktime(22,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today23 = mktime(23,0,0,$_GET['m'],$_GET['d'],$_GET['y']);
$today24 = mktime(0,0,0,$_GET['m'],$_GET['d']+1,$_GET['y']);
/* \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
\\\\\\\\\\\\ Thanks For Your Support \\\\\\\\\\\\
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
*/
?>
Access Log Viewing
  |
  |
• Currently viewing the summary page.
Hits on '.date('S',mktime(0,0,0,$_GET['m'],$_GET['d'],$_GET['y'])).' '.date('F',mktime(0,0,0,$_GET['m'],$_GET['d'],$_GET['y'])).' '.date('Y',mktime(0,0,0,$_GET['m'],$_GET['d'],$_GET['y'])); ?> (by hour)
'.$today00.' AND accesstime < '.$today01);$row = @mysql_fetch_array($result); $hitstoday[0] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today01.' AND accesstime < '.$today02);$row = @mysql_fetch_array($result); $hitstoday[1] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today02.' AND accesstime < '.$today03);$row = @mysql_fetch_array($result); $hitstoday[2] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today03.' AND accesstime < '.$today04);$row = @mysql_fetch_array($result); $hitstoday[3] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today04.' AND accesstime < '.$today05);$row = @mysql_fetch_array($result); $hitstoday[4] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today05.' AND accesstime < '.$today06);$row = @mysql_fetch_array($result); $hitstoday[5] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today06.' AND accesstime < '.$today07);$row = @mysql_fetch_array($result); $hitstoday[6] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today07.' AND accesstime < '.$today08);$row = @mysql_fetch_array($result); $hitstoday[7] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today08.' AND accesstime < '.$today09);$row = @mysql_fetch_array($result); $hitstoday[8] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today09.' AND accesstime < '.$today10);$row = @mysql_fetch_array($result); $hitstoday[9] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today10.' AND accesstime < '.$today11);$row = @mysql_fetch_array($result); $hitstoday[10] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today11.' AND accesstime < '.$today12);$row = @mysql_fetch_array($result); $hitstoday[11] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today12.' AND accesstime < '.$today13);$row = @mysql_fetch_array($result); $hitstoday[12] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today13.' AND accesstime < '.$today14);$row = @mysql_fetch_array($result); $hitstoday[13] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today14.' AND accesstime < '.$today15);$row = @mysql_fetch_array($result); $hitstoday[14] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today15.' AND accesstime < '.$today16);$row = @mysql_fetch_array($result); $hitstoday[15] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today16.' AND accesstime < '.$today17);$row = @mysql_fetch_array($result); $hitstoday[16] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today17.' AND accesstime < '.$today18);$row = @mysql_fetch_array($result); $hitstoday[17] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today18.' AND accesstime < '.$today19);$row = @mysql_fetch_array($result); $hitstoday[18] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today19.' AND accesstime < '.$today20);$row = @mysql_fetch_array($result); $hitstoday[19] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today20.' AND accesstime < '.$today21);$row = @mysql_fetch_array($result); $hitstoday[20] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today21.' AND accesstime < '.$today22);$row = @mysql_fetch_array($result); $hitstoday[21] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today22.' AND accesstime < '.$today23);$row = @mysql_fetch_array($result); $hitstoday[22] = $row['COUNT(IPv4)'];
$result = mysql_query('SELECT COUNT(IPv4) FROM `mss_log` WHERE accesstime > '.$today23.' AND time < '.$today24);$row = @mysql_fetch_array($result); $hitstoday[23] = $row['COUNT(IPv4)'];
?>
| |
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hits |
| |
| |
| |
| |
| |
| |
| |
0- |
| |
|
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
Hour |
|
|
Unique
Hits on '.date('S',mktime(0,0,0,$_GET['m'],$_GET['d'],$_GET['y'])).' '.date('F',mktime(0,0,0,$_GET['m'],$_GET['d'],$_GET['y'])).' '.date('Y',mktime(0,0,0,$_GET['m'],$_GET['d'],$_GET['y'])); ?> (by hour)
'.$today00.' AND accesstime < '.$today01);$row = @mysql_fetch_array($result); $hitstoday[0] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today01.' AND accesstime < '.$today02);$row = @mysql_fetch_array($result); $hitstoday[1] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today02.' AND accesstime < '.$today03);$row = @mysql_fetch_array($result); $hitstoday[2] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today03.' AND accesstime < '.$today04);$row = @mysql_fetch_array($result); $hitstoday[3] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today04.' AND accesstime < '.$today05);$row = @mysql_fetch_array($result); $hitstoday[4] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today05.' AND accesstime < '.$today06);$row = @mysql_fetch_array($result); $hitstoday[5] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today06.' AND accesstime < '.$today07);$row = @mysql_fetch_array($result); $hitstoday[6] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today07.' AND accesstime < '.$today08);$row = @mysql_fetch_array($result); $hitstoday[7] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today08.' AND accesstime < '.$today09);$row = @mysql_fetch_array($result); $hitstoday[8] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today09.' AND accesstime < '.$today10);$row = @mysql_fetch_array($result); $hitstoday[9] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today10.' AND accesstime < '.$today11);$row = @mysql_fetch_array($result); $hitstoday[10] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today11.' AND accesstime < '.$today12);$row = @mysql_fetch_array($result); $hitstoday[11] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today12.' AND accesstime < '.$today13);$row = @mysql_fetch_array($result); $hitstoday[12] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today13.' AND accesstime < '.$today14);$row = @mysql_fetch_array($result); $hitstoday[13] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today14.' AND accesstime < '.$today15);$row = @mysql_fetch_array($result); $hitstoday[14] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today15.' AND accesstime < '.$today16);$row = @mysql_fetch_array($result); $hitstoday[15] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today16.' AND accesstime < '.$today17);$row = @mysql_fetch_array($result); $hitstoday[16] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today17.' AND accesstime < '.$today18);$row = @mysql_fetch_array($result); $hitstoday[17] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today18.' AND accesstime < '.$today19);$row = @mysql_fetch_array($result); $hitstoday[18] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today19.' AND accesstime < '.$today20);$row = @mysql_fetch_array($result); $hitstoday[19] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today20.' AND accesstime < '.$today21);$row = @mysql_fetch_array($result); $hitstoday[20] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today21.' AND accesstime < '.$today22);$row = @mysql_fetch_array($result); $hitstoday[21] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today22.' AND accesstime < '.$today23);$row = @mysql_fetch_array($result); $hitstoday[22] = $row['COUNT(DISTINCT IPv4)'];
$result = mysql_query('SELECT COUNT(DISTINCT IPv4) FROM `mss_log` WHERE accesstime > '.$today23.' AND time < '.$today24);$row = @mysql_fetch_array($result); $hitstoday[23] = $row['COUNT(DISTINCT IPv4)'];
?>
| |
- |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Hits |
| |
| |
| |
| |
| |
| |
| |
0- |
| |
|
0 |
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
Hour |
|
|
Overall Site Statistics
Total number of hits:
Total number of unique hits:
Top 10 Most Popular Pages (by hits/non-media)
sql->query($query); for($pop10 = 1;$row = mysql_fetch_array($result); $pop10++) { echo $pop10.'. http://www.dcpreserve.com'.$row['page'].' (Hits: '.$row['tt'].') '; }
?>
|
Top 10 Visitors (by hits)
sql->query($query); for(;$row = mysql_fetch_array($result); $pop10++) { echo $pop10.'. '.long2ip($row['IPv4']).' (Hits: '.$row['tt'].') '; }
?>
|
Top 10 Referrers (by hits)
sql->query($query); for($pop10 = 1;$row = mysql_fetch_array($result); $pop10++) { if(!$row['refer']) { $row['refer'] = 'Direct/No Referrer'; } echo $pop10.'. '.$row['refer'].' (Hits: '.$row['tt'].') '; }
?>
|
Top 10 Countries (by hits)
sql->query($query); $pop10 = 1;
$allc = $app->sql->query('SELECT `COUNTRY_NAME`, `COUNTRY_CODE3` FROM `mss_country` GROUP BY `COUNTRY_CODE3` ORDER BY `COUNTRY_CODE3`',1);
while($row = mysql_fetch_array($result)) {
$row['country'] = ($row['country']!='')?$row['country']:"Unknown Country";
foreach ($allc as $r=>$cod) {
if ($row['country'] == 'Unknown Country') { $c = 'Unknown Country'; }
if ($cod['COUNTRY_CODE3']==$row['country']) { $c = $cod['COUNTRY_NAME']; }
}
echo $pop10.'. '.ucwords(strtolower($c)).' (Hits: '.$row['ct'].') ';
$pop10++;
}
?>
|
|
|
  |
|
  |
|
|