diff --git a/homepage/images/copy.png b/homepage/images/copy.png new file mode 100644 index 0000000..e009fd2 Binary files /dev/null and b/homepage/images/copy.png differ diff --git a/homepage/index.php b/homepage/index.php index c989aa9..93dd966 100644 --- a/homepage/index.php +++ b/homepage/index.php @@ -54,6 +54,14 @@ if(isset($_GET['stream'])){
| + |
| $name | diff --git a/scripts/stats.php b/scripts/stats.php index deb6161..9a0724c 100644 --- a/scripts/stats.php +++ b/scripts/stats.php @@ -5,20 +5,20 @@ error_reporting(E_ALL); $db = new SQLite3('./scripts/birds.db', SQLITE3_OPEN_CREATE | SQLITE3_OPEN_READWRITE); if($db == False) { - echo "Database busy"; - header("refresh: 0;"); + echo "Database busy"; + header("refresh: 0;"); } $statement = $db->prepare('SELECT Date, Time, File_Name, Com_Name, COUNT(*), MAX(Confidence) FROM detections GROUP BY Com_Name ORDER BY COUNT(*) DESC'); if($statement == False) { - echo "Database busy"; - header("refresh: 0;"); + echo "Database busy"; + header("refresh: 0;"); } $result = $statement->execute(); $statement2 = $db->prepare('SELECT Date, Time, File_Name, Com_Name, COUNT(*), MAX(Confidence) FROM detections GROUP BY Com_Name ORDER BY Com_Name'); if($statement == False) { - echo "Database busy"; - header("refresh: 0;"); + echo "Database busy"; + header("refresh: 0;"); } $result2 = $statement2->execute(); @@ -28,8 +28,8 @@ if(isset($_GET['species'])){ $selection = $_GET['species']; $statement3 = $db->prepare("SELECT Com_Name, Sci_Name, COUNT(*), MAX(Confidence), File_Name, Date, Time from detections WHERE Com_Name = \"$selection\""); if($statement3 == False) { - echo "Database busy"; - header("refresh: 0;"); + echo "Database busy"; + header("refresh: 0;"); } $result3 = $statement3->execute(); } @@ -89,8 +89,8 @@ while($results=$result3->fetchArray(SQLITE3_ASSOC)){ $linkname = preg_replace('/_/', '+', $dbsciname); $filename = "/By_Date/".$date."/".$comname."/".$results['File_Name']; echo str_pad("
|---|
| $sciname +
|