1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00
Commit graph

38 commits

Author SHA1 Message Date
avni
fe6516b2e9
Add lockfile removal before exit in usbmount script per Jerry's recommendation.
Add lockfile removal before exit in usbmount script per Jerry's recommendation. Also adjusted spacing! 

Read up on file locking a bit: 
- https://www.baeldung.com/linux/file-locking
- https://linux.die.net/man/1/lockfile-create
2025-02-14 15:56:09 -05:00
root
a96b46c223 upload2usb/upload2usb.php: using existence of /media to determine if a USB stick is mounted or not for both count and upload location; changing tabs to spaces for the whole file 2025-02-13 15:50:02 -05:00
root
728704b250 Merge branch 'umnt3' of https://github.com/jvonau/iiab into jerry 2025-02-13 11:15:44 -05:00
Jerry Vonau
ebceb4a6ac upload2usb.php add 'grep media' to device filter 2025-02-12 13:28:05 -06:00
Jerry Vonau
52da42c146 touchups and ordering 2025-02-12 11:19:54 -06:00
Jerry Vonau
9a95a046c4 lockfile-remove for fstab check 2025-02-12 10:36:22 -06:00
Jerry Vonau
759126414e #set -e, lockfile-remove, typo, missing debug line 2025-02-12 10:26:21 -06:00
root
fda19ad7f9 upload2usb/header.php: update swing logo to point to /usb/ instead of /upload2usb/ 2025-02-12 02:18:16 -05:00
Jerry Vonau
9bc2006ba3 exclude usb based device that host usbbooted filesytems 2025-02-11 17:10:02 -06:00
A Holt
b6b2f3a0d7
usbmount copyright URL clarifs for PR #3929 2025-01-31 04:24:07 -05:00
root
6b4b94dae2 usb_lib / usbmount: Refine, lint, clarify 2025-01-31 01:41:23 -05:00
Jerry Vonau
257dc008ec bump number of lock tries 2025-01-30 13:43:32 -06:00
Jerry Vonau
f58ef26768 just exit to quite down systemd logging of umount failed on stuff we don't care about 2025-01-30 13:43:32 -06:00
Jerry Vonau
a5af8c89d4 move mkdir and copyright 2025-01-30 13:43:32 -06:00
Jerry Vonau
36485a109d turn on debug 2025-01-30 13:43:32 -06:00
Jerry Vonau
229a913ba4 filesystems supported 2025-01-30 13:43:32 -06:00
Jerry Vonau
57fa6bb08f Files from usbmount_0.0.22_all.deb 2025-01-30 13:43:28 -06:00
A Holt
0c0045f1c8
Merge pull request #3923 from holta/pp
Replacement for PR #3915, cleaning up merge conflict mess [prevent cheating (copying) of usb_lib homework uploads]
2025-01-29 04:50:50 -05:00
A Holt
078bab6d15
Merge pull request #3913 from avni/renamevar
vars/* and usb_lib/*: rename usb_lib_umask0000_for_kolibri
2025-01-29 04:50:37 -05:00
root
f5e2f4ad79 usb_lib/tasks/install.yml: Resolve merge conflict w/ PR #3919 2025-01-27 20:17:44 -05:00
root
c49c7b0d8d usb_lib/files/upload/upload2usb.php: allow zip files given some MacOS files, e.g., Pages files, have a mimetype of application/aip 2025-01-26 21:26:16 -05:00
root
48f4fc56f8 usb_lib/files/upload/header.php: link swing image back to upload2usb main page 2025-01-26 21:20:12 -05:00
root
fb07b9e3e5 nginx/templates/iiab.conf.j2, usb_lib/files/upload/header.php, usb_lib/tasks/install.yml: move app out of local_content and into /library/www/html/ 2025-01-26 21:18:30 -05:00
avni
1795276b20 upload/upload-file.php: fix var name bug and add better error handling 2025-01-26 16:36:43 +01:00
avni
7c2f0c9c6e usb_lib/*, vars/*: prevent Cheating (Copying) of homeworks, when teacher creates 'PUBLIC' folder on their USB stick 2025-01-25 21:30:36 +01:00
avni
286890b0d0 error.php: updating FAQ reference to refer to new upload2usb-specific FAQ. 2025-01-25 08:14:44 +01:00
avni
3b9edfdfc0 multiple files in vars/ and usb_lib/: rename usb_lib_umask0000_for_kolibri to usb_lib_writable_sticks so it is more generally applicable 2025-01-25 07:13:09 +01:00
avni
6dfda009e4 upload2usb.php: allow all word files, be more specific about xml mimetypes; log error message if user uploads invalid mimetype 2025-01-23 06:51:43 +01:00
avni
68dafdbc39 button.html: change button href to point to /usb/upload instead of /local_content/upload 2025-01-23 06:27:32 +01:00
avni
ad175fb3ca index.php, upload-file.php: change 'submit' to 'upload' in user-facing text 2025-01-23 06:19:13 +01:00
avni
335d8ad4c1 nginx/templates/iiab.conf.j2, usb_lib/files/upload/button.html: Adding button to upload2usb app on every usb/ directory listing page. 2025-01-22 10:22:38 +01:00
avni
9426e6ac98 upload-file.php: throw error when user uploads a file that has the same content and name as an already uploaded file on the same day. 2025-01-19 08:21:27 +01:00
avni
271da50114 upload-file.php: Allow upload of redundant files 2025-01-17 23:03:01 +01:00
avni
f8b743dafc error.php, index.php, upload-file.php, upload2usb.php: Updating error message to refer to FAQs, titles to be more succinct, adding exception when directory can't be created. 2025-01-17 09:34:15 +01:00
avni
30f940a5f4 error.php, header.php, footer.php - Add custom exception handling, header, footer; index.php, upload-file.php, upload-2-usb.php - Require exactly 1 USB stick to be inserted, allow same file name but different content (using incremental numbering), reject duplicate content, restrict file types 2025-01-12 12:04:47 +01:00
avni
956257f6cb usb_lib/upload/*.php, usb_lib/tasks/install.yml: Moving app from upload2usb/ to upload/; Fixing UK image on upload-file page; Minor formatting changes 2025-01-08 11:45:00 +01:00
avni
99ff433a90 usb_lib/files/upload2usb/*: renaming app to Upload To USB instead of HW Submission, other minor cleanup/styling 2025-01-06 04:48:19 +01:00
root
8d0f45bd4d Initial commit(x3) of Upload2USB stick app: 3 *.php files + UK logo 2025-01-05 16:35:38 -05:00