forked from theshka/visitorTracking
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
37 lines (29 loc) · 774 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* include database settings
*/
require_once( 'src/_installation/db.php' );
/**
* include the class
*/
require_once( 'src/class.visitorTracking.php' );
/**
* instance the class
*/
$visitors = new visitorTracking();
?>
<html>
<head>
<title>PHP + MySQLi - Visitor Tracking Class</title>
</head>
<body>
<div style="float:left;"><a href="http://tyrexi.us/visitorTrackingDocumentation/" target="_blank">Documentation</a></div>
<div style="float:right;"><a href="examples/map-example.php">Map Example</a></div>
<br>
<h2>This visit has been tracked.</h2>
<pre><?php echo $visitors->displayThisVisit(); ?></pre>
<br><hr><br>
<h2>All tracked visits:</h2>
<pre><?php echo $visitors->displayVisitors(); ?></pre>
</body>
</html>