mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
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
This commit is contained in:
parent
99ff433a90
commit
956257f6cb
5 changed files with 8 additions and 7 deletions
|
@ -35,7 +35,7 @@ $file_count = getFileCount(getTargetFolderPath(0));
|
|||
<img class="mb-4" src="uk-swing.png" alt="" width="75">
|
||||
<h1 class="h3 mb-3 font-weight-normal">Internet in a Box Upload to USB</h1>
|
||||
|
||||
<label for="upload2usb" style="font-weight:bold;padding-bottom:10px;">Upload your file here!</label>
|
||||
<label for="upload2usb" style="font-weight:bold;padding-bottom:10px;">Upload your file here!</label><br/>
|
||||
<input type="file" name="uploaded_file" id="uploaded_file"><br/><br/>
|
||||
<button class="btn btn-dark" name="submit" type="submit" style="width:150px;">Submit</button>
|
||||
</form>
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
|
@ -56,7 +56,7 @@ $file_count = getFileCount($target_folder_path)
|
|||
<div class="row">
|
||||
<div class="col-sm-6 offset-sm-3 text-center" style="padding:15px;">
|
||||
|
||||
<img class="mb-4" src="unleash-kids-swing.png" alt="" width="75">
|
||||
<img class="mb-4" src="uk-swing.png" alt="" width="75">
|
||||
<h1 class="h3 mb-3 font-weight-normal">Internet in a Box Upload to USB</h1>
|
||||
<?php echo $upload_msg ?> <br/>
|
||||
<?php echo $file_count ?> files have been submitted today!
|
|
@ -16,6 +16,7 @@ function getTargetUSBDriveLocation () {
|
|||
if (empty($removable_usb_path)) {
|
||||
return "/library/www/html/local_content/";
|
||||
} else {
|
||||
// error_log ("REMOVABLE USB PATH: " . $removable_usb_path);
|
||||
return $removable_usb_path . "/";
|
||||
}
|
||||
}
|
|
@ -76,21 +76,21 @@
|
|||
- { src: 'iiab-usb_lib-show-all-off', dest: '/usr/bin/', mode: '0755' }
|
||||
- { src: 'iiab-clean-usb.sh', dest: '/usr/sbin/', mode: '0755' }
|
||||
|
||||
- name: '2025-01-05: Add upload2usb directory to local_content'
|
||||
- name: '2025-01-05: Add upload2usb app directory to local_content'
|
||||
file:
|
||||
state: directory
|
||||
path: "{{ doc_root }}/local_content/upload2usb"
|
||||
path: "{{ doc_root }}/local_content/upload"
|
||||
owner: "{{ apache_user }}"
|
||||
group: "{{ apache_user }}"
|
||||
mode: 0755
|
||||
|
||||
|
||||
- name: '2025-01-05: Copy upload2usb app (#3875) files from files/upload2usb/ to local_content'
|
||||
- name: '2025-01-05: Copy upload2usb app (#3875) files from files/upload/ to local_content'
|
||||
copy:
|
||||
src: "{{ item }}"
|
||||
dest: "{{ doc_root }}/local_content/upload2usb" # /library/www/html
|
||||
dest: "{{ doc_root }}/local_content/upload" # /library/www/html
|
||||
with_fileglob:
|
||||
- upload2usb/*
|
||||
- upload/*
|
||||
|
||||
|
||||
# 2021-03-21: If usbmount is repackaged by apt as a result of Linux kernel 5.4+
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue