Commit Graph

78 Commits

Author SHA1 Message Date
frederik 12efcc0249 convert play.php 2024-03-29 13:21:18 +01:00
frederik ed42cbf1e2 rework deletion: we _do_ need to open read-write here 2024-03-09 13:17:49 +01:00
frederik b0eb5e063f add busyTimeout() to deal with concurrency. open read-write only when needed 2024-03-09 13:04:07 +01:00
frederik be8a98bf59 fix: do not unset the session 2024-03-09 10:16:52 +01:00
frederik 6da33df8e9 fix: do not error out when disk_check_exclude.txt does not exist yet 2024-02-24 11:38:09 +01:00
lloydbayley ed9b7c8055 Security Fixes, Mainly 2023-05-22 23:55:11 +10:00
ehpersonal38 9c1f4175e2 Revert "Code Consolidation for API preparations & hard coded path replacements" 2023-05-19 20:03:02 -04:00
jaredb7 a80d39d7b6 Replace all authentication code with a function that does the auth for us
Makes things a little tidier and easier to change in the future, a custom message can be passed to authenticateUser() and this is output if the authentication fails.

Added protection around Include and Exclude species pages as these still accessible & data can still be written to include and exclude species.txt even with a password.
2023-05-13 01:07:19 +10:00
jaredb7 eee84587f9 Merge branch 'BirdNET-pi-main' into New-UI-API
# Resolve Conflicts due to code movement:
#	homepage/views.php
#	scripts/config.php
#	scripts/play.php
2023-05-10 22:57:49 +10:00
ehpersonal38 1bb17f9705 Update play.php 2023-05-09 15:06:14 -04:00
ehpersonal38 4cc4406083 Update views.php 2023-05-09 13:58:24 -04:00
jaredb7 7169a172d6 Merge branch 'BirdNET-pi-main' into New-UI-API 2023-05-09 20:34:37 +10:00
jaredb7 69c4a6d3b1 Move remaining files to use new code
Include and Exclude list updated to use the calculated path to their respective x_species_list.txt files

Move play.php over to also use the new calculated paths to disk_check_exclude

Spectrogram.php remove unused code & replace setting save code with new function

Stats.php removed old code, update paths to use calculated path.

Rename setSetting func to saveSetting
Remove old code from other pages
2023-05-09 20:29:57 +10:00
ehpersonal38 53fa65e364 Merge pull request #896 from croisez/main
Modified play script to substitute href of <a> tag in case that <vide…
2023-05-08 17:52:22 -04:00
Louis Croisez d1e0d91711 removed unnecessary logs 2023-05-08 17:56:14 +02:00
Louis Croisez efe52a4638 Modified play script to substitute href of <a> tag in case that <video> tag is absent. This is for the ShiftFreq feature 2023-05-08 17:50:56 +02:00
jaredb7 bf0131cf27 Query Consolidate Code for API Preparations
All SQL Queries were moved into their respective functions and parameterized, there were some slight logic changes in the front end pages to accommodate data being returned differently but existing functionality is maintained

A common function is used to execute the queries and looks after binding any parameterized values that have been supplied.

Other code for deleting / protecting detection's, frequency shift, Flickr API call etc have also been moved into common.php to be used later by the API

Two new functions getDirectory and getFilePath were introduced in aims and make it easier to relocate files. This will be worked into all existing php files to replace hardcoded paths
2023-05-07 11:59:50 +10:00
ehpersonal38 f30e48356c better purge exclude language 2023-05-02 12:45:35 -04:00
ehpersonal38 31cc358243 Removing /tmp/ file creation for pitch shifting
Co-Authored-By: croisez <1774281+croisez@users.noreply.github.com>
2023-03-21 20:02:45 -04:00
ehpersonal38 1a0bf359b3 Fix permissions issues, pt. 2 2023-03-21 17:41:36 -04:00
ehpersonal38 b5c4160c9c Split "Recordings" species list into 3 columns to take up less vertical space 2023-03-12 19:42:38 -04:00
ehpersonal38 d257b144a1 Making recordings actually usable for huge amounts of detections 2023-02-15 13:46:38 -05:00
Louis Croisez b49f8f730d Bugfixes + added choice between ffmpeg and sox tools 2022-10-03 16:06:44 +02:00
Louis Croisez 88a9b63458 Added config parameters for frequency shift feature 2022-10-02 19:05:54 +02:00
Louis Croisez 3dfd740944 Adding feature: shifting down in frequency for earing impairment people 2022-10-02 16:31:29 +02:00
ehpersonal38 b5dabf937a Update play.php 2022-08-10 19:04:09 -04:00
ehpersonal38 0de565b80b copylink button title 2022-08-10 19:01:04 -04:00
ehpersonal38 495a787d14 Update play.php 2022-08-10 18:56:14 -04:00
ehpersonal38 13e79f31e8 only show purge excluded recordings 2022-07-17 13:37:20 -04:00
ehpersonal38 eeee9e77fe delete improvements 2022-07-16 15:14:50 -04:00
ehpersonal38 0c9bc94ae2 Display errors 2022-07-15 17:20:01 -04:00
ehpersonal38 a2f3d42246 clearer language 2022-07-14 12:07:42 -04:00
mcguirepr89 c08e2e533f deletes file as well -- thanks @ehpersonal38 2022-07-14 10:13:49 -04:00
ehpersonal38 d2d914f8ee Delete files 2022-07-13 13:31:26 -04:00
mcguirepr89 39a0ba5697 unfortunately, lazy loading is not working on iOS 2022-06-27 10:49:54 -04:00
ehpersonal38 cb833d4866 Update play.php 2022-06-14 15:15:14 -04:00
ehpersonal38 c259b3a43e Lazy loading, at last 2022-06-14 15:06:41 -04:00
ehpersonal38 f78acb5cf9 Update play.php 2022-05-29 18:26:00 -04:00
ehpersonal38 0462e1ec2b Things have been made better
- All buttons and bird images now have nice transitions on hover
- Bird images have an added drop shadow for the aesthetics. 😎
- When hovering over sort icons, a tooltip describing the button is now displayed
- Best Recordings has been cleaned up and made a little clearer
2022-05-22 17:21:42 -04:00
ehpersonal38 dd2091a2b8 Update play.php
Silencing harmless notice that appears if the user doesn't have a disk_check_exclude.txt created yet.
2022-05-21 15:20:14 -04:00
ehpersonal38 9a906dcbc8 Auth on delete protection change 2022-05-19 17:16:03 -04:00
ehpersonal38 787c5d65a9 better search results
also adding percentage conf to other files
2022-05-19 08:30:48 -04:00
ehpersonal38 625a862c19 Merge branch 'ui-tweaks' of https://github.com/mcguirepr89/BirdNET-Pi into ui-tweaks 2022-05-17 18:54:51 -04:00
ehpersonal38 5178a98766 Efficiency, the sequel! 2022-05-17 18:54:48 -04:00
Patrick McGuire f7ce7545ab iOS doesn't seem to support lazy loading
on my iPhone, Safari and Chrome wouldn't load with the `loading="lazy"` method specified.

Removing it fixes that -- I want to change it back for now, but then maybe figure out how to make it work on iOS
( I assume it is more resourceful to use lazy loading?)
2022-05-17 15:11:52 -04:00
ehpersonal38 ee675c4de2 Efficiency! 2022-05-17 11:16:55 -04:00
ehpersonal38 29f6de47aa lazy loading 2022-05-16 15:15:39 -04:00
ehpersonal38 f59d04a7bc Allow specific recordings to be "delete protected" from disk-check.sh
@mcguirepr89 I'm very happy with how this turned out! 😄
2022-05-16 10:58:04 -04:00
ehpersonal38 d6bdb5c345 Don't show dates that don't have any recordings 2022-05-16 08:16:33 -04:00
ehpersonal38 3cf41eeb88 adding icons 2022-05-14 17:39:53 -04:00