diff --git a/chiro-canto.conf b/chiro-canto.conf
index 0b4dda6..5d60141 100755
--- a/chiro-canto.conf
+++ b/chiro-canto.conf
@@ -8,6 +8,7 @@ server {
listen 443 ssl;
server_name chiro-canto;
root /var/www/chiro-canto/public;
+ client_max_body_size 20M;
location / {
}
diff --git a/public/about/index.php b/public/about/index.php
index 390c33d..a0a82ac 100755
--- a/public/about/index.php
+++ b/public/about/index.php
@@ -38,6 +38,7 @@ $data = $req->fetch();
diff --git a/public/api/v1/doc/index.php b/public/api/v1/doc/index.php
index c36c764..c4c5669 100755
--- a/public/api/v1/doc/index.php
+++ b/public/api/v1/doc/index.php
@@ -12,6 +12,7 @@ $root = realpath($_SERVER["DOCUMENT_ROOT"]);
diff --git a/public/articles/list.php b/public/articles/list.php
index 2f014b8..00d4934 100755
--- a/public/articles/list.php
+++ b/public/articles/list.php
@@ -17,6 +17,7 @@ error_reporting(E_ALL);
diff --git a/public/auth/login/index.php b/public/auth/login/index.php
index d0b6371..61275e8 100755
--- a/public/auth/login/index.php
+++ b/public/auth/login/index.php
@@ -18,6 +18,7 @@ $root = realpath($_SERVER["DOCUMENT_ROOT"]);
diff --git a/public/auth/register/index.php b/public/auth/register/index.php
index a19abdf..e4ad8ff 100755
--- a/public/auth/register/index.php
+++ b/public/auth/register/index.php
@@ -18,6 +18,7 @@ $root = realpath($_SERVER["DOCUMENT_ROOT"]);
diff --git a/public/contact/index.php b/public/contact/index.php
index a741806..1c65d2a 100755
--- a/public/contact/index.php
+++ b/public/contact/index.php
@@ -11,6 +11,7 @@ $root = realpath($_SERVER["DOCUMENT_ROOT"]);
diff --git a/public/database/.~lock.TAXREF14.0_ORTHO.csv# b/public/database/.~lock.TAXREF14.0_ORTHO.csv#
deleted file mode 100755
index 59652af..0000000
--- a/public/database/.~lock.TAXREF14.0_ORTHO.csv#
+++ /dev/null
@@ -1 +0,0 @@
-,ortion,fedora,04.04.2021 12:34,file:///home/ortion/.config/libreoffice/4;
\ No newline at end of file
diff --git a/public/explore/guano/index.php b/public/explore/guano/index.php
index d356f1d..7f64005 100755
--- a/public/explore/guano/index.php
+++ b/public/explore/guano/index.php
@@ -40,6 +40,7 @@ if ($data = $req->fetch()) {
diff --git a/public/explore/index.php b/public/explore/index.php
index 3593d65..b364d8f 100755
--- a/public/explore/index.php
+++ b/public/explore/index.php
@@ -15,6 +15,7 @@ $root = realpath($_SERVER["DOCUMENT_ROOT"]);
diff --git a/public/explore/list/index.php b/public/explore/list/index.php
index f3c9787..255d992 100755
--- a/public/explore/list/index.php
+++ b/public/explore/list/index.php
@@ -29,7 +29,10 @@ $result = $req->fetchAll();
-
+
diff --git a/public/explore/record/index.php b/public/explore/record/index.php
new file mode 100644
index 0000000..0092b43
--- /dev/null
+++ b/public/explore/record/index.php
@@ -0,0 +1,74 @@
+ PDO::ERRMODE_EXCEPTION
+ ));
+} catch (Exception $e) {
+ die("Error : ".$e->getMessage());
+}
+
+if (isset($_GET['id'])) {
+ $req = $db->prepare('SELECT * FROM `records` WHERE id=:id');
+ $req->execute(array(
+ "id"=>$_GET['id']
+ ));
+} else {
+ $req = $db->prepare('SELECT * FROM `records` ORDER BY date');
+ $req->execute();
+}
+?>
+
+
+
+
+
+
+ Explore | Chiro - Canto
+
+
+
+
+
+
+
+ Record
+ fetch()) {
+ ?>
+
+
=$data['file_name']?>
+
=$data['species']?>
+
Recorded on =$data['date']?> at =$data['time']?>
+
+
" alt="bat sound spectrogram">
+
+
+
+
=$data['license']?> =$data['recordist_name']?>
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/public/explore/search/index.php b/public/explore/search/index.php
index d0cee8e..2fe5b58 100755
--- a/public/explore/search/index.php
+++ b/public/explore/search/index.php
@@ -32,6 +32,7 @@ $root = realpath($_SERVER["DOCUMENT_ROOT"]);
diff --git a/public/explore/spectrograms/index.php b/public/explore/spectrograms/index.php
index 8e6dc32..fab4531 100755
--- a/public/explore/spectrograms/index.php
+++ b/public/explore/spectrograms/index.php
@@ -37,6 +37,7 @@ $data = $req->fetch();
diff --git a/public/explore/taxa/index.php b/public/explore/taxa/index.php
index d26f23e..12c3e52 100755
--- a/public/explore/taxa/index.php
+++ b/public/explore/taxa/index.php
@@ -30,6 +30,7 @@ $result = $req->fetchAll();
diff --git a/public/explore/users/index.php b/public/explore/users/index.php
index b903e2c..4670e8c 100644
--- a/public/explore/users/index.php
+++ b/public/explore/users/index.php
@@ -31,6 +31,7 @@ $result = $req->fetchAll();
diff --git a/public/forum/index.php b/public/forum/index.php
index 904634b..891aed0 100755
--- a/public/forum/index.php
+++ b/public/forum/index.php
@@ -17,6 +17,7 @@ $root = realpath($_SERVER["DOCUMENT_ROOT"]);
diff --git a/public/forum/topics/index.php b/public/forum/topics/index.php
index 9d775b4..fe97e4b 100755
--- a/public/forum/topics/index.php
+++ b/public/forum/topics/index.php
@@ -18,6 +18,7 @@ $root = realpath($_SERVER["DOCUMENT_ROOT"]);
diff --git a/public/gallery/index.php b/public/gallery/index.php
index e3be1d7..d984efb 100755
--- a/public/gallery/index.php
+++ b/public/gallery/index.php
@@ -15,6 +15,7 @@ $root = realpath($_SERVER["DOCUMENT_ROOT"]);
diff --git a/public/larynx/index.php b/public/larynx/index.php
index 4986d97..693b1e0 100755
--- a/public/larynx/index.php
+++ b/public/larynx/index.php
@@ -36,7 +36,10 @@ $data = $req->fetch();
Larynx | Chiro - Canto
-
+
diff --git a/public/search/index.php b/public/search/index.php
index cff3f65..35f2aca 100755
--- a/public/search/index.php
+++ b/public/search/index.php
@@ -69,6 +69,7 @@ if (empty($result))
diff --git a/public/styles/style.css b/public/styles/style.css
index e7a70c7..e6c7bc7 100755
--- a/public/styles/style.css
+++ b/public/styles/style.css
@@ -353,12 +353,13 @@ table#replies td {
#larynx {
background-color: rgba(0, 0, 0, 0.8);
- width: auto;
min-height: 100vh;
margin: 0;
-
color: white;
padding: 1em;
+ width: 1840px;
+ height: 500px;
+ overflow: auto;
}
#larynx h2 {
diff --git a/public/upload/index.php b/public/upload/index.php
index 2477b7e..36a962c 100755
--- a/public/upload/index.php
+++ b/public/upload/index.php
@@ -29,6 +29,7 @@ $root = realpath($_SERVER["DOCUMENT_ROOT"]);
crossorigin=""/>
diff --git a/public/upload/submitmetadata.php b/public/upload/submitmetadata.php
index 2e7c341..eb66fe2 100755
--- a/public/upload/submitmetadata.php
+++ b/public/upload/submitmetadata.php
@@ -142,9 +142,9 @@ if (isset($_POST['submit']))
if ($_SESSION['error_msg'] == "")
{
- header('Location: '.'index.php?step=verify');
+ // header('Location: '.'index.php?step=verify');
} else{
$_SESSION['error_msg'] .= "Please try again.\n";
- header('Location: '.'index.php?step=metadata');
+ // header('Location: '.'index.php?step=metadata');
}
diff --git a/public/upload/submitobservation.php b/public/upload/submitobservation.php
index 1f71959..e031cc5 100755
--- a/public/upload/submitobservation.php
+++ b/public/upload/submitobservation.php
@@ -82,6 +82,11 @@ try {
} catch (Exception $e) {
die("Error : ".$e->getMessage());
}
-
-header('Location: '."/");
+$req = $db->prepare('SELECT LAST_INSERT_ID() AS id;');
+$req->execute();
+if ($data = $req->fetch()) {
+ header('Location: '."/explore/record/?id=".$data['id']);
+} else {
+ header('Location: '."/");
+}
?>