Skip to content
This repository was archived by the owner on Apr 9, 2023. It is now read-only.

Commit e4e4649

Browse files
committed
Change to project structure
tracker.php makes integrating b1 web analytics easier.
1 parent 7316c32 commit e4e4649

File tree

6 files changed

+781
-765
lines changed

6 files changed

+781
-765
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<?php
2-
// Creates database connection
3-
// Modify before use
4-
$b1_analytics_db = new mysqli("localhost", "user", "password", "database");
1+
<?php
2+
// Creates database connection
3+
// Modify before use
4+
$b1_analytics_db = new mysqli("localhost", "user", "password", "database");
55
?>

example.php

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
<?php
2-
include "database.php";
3-
include "analytics.php";
4-
5-
// Runs analytics
6-
$b1_analytics = new b1_analytics($b1_analytics_db, $_SERVER, $_COOKIE);
7-
8-
// Closes database connection
9-
$b1_analytics_db->close();
2+
include "tracker.php";
103

114
// Outputs javascript for additional tracking
125
$b1_analytics->echoscript();

analyser.php renamed to libraries/analyser.php

Lines changed: 146 additions & 146 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)