1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-14 12:12:12 +00:00

index.php, upload-file.php: change 'submit' to 'upload' in user-facing text

This commit is contained in:
avni 2025-01-23 06:19:13 +01:00
parent 335d8ad4c1
commit ad175fb3ca
2 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@ $file_count = getFileCount(getTargetFolderPath(0));
<form action="upload-file.php" id="upload2usb_form" method="post" enctype="multipart/form-data">
<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>
<button class="btn btn-dark" name="submit" type="submit" style="width:150px;">Upload</button>
</form>
<br/>
<?php echo $file_count ?> files have been uploaded today!

View file

@ -15,10 +15,10 @@ $upload_ok = 1;
$upload_msg = "";
if(!isset($_POST["submit"]) || !is_uploaded_file($_FILES['uploaded_file']['tmp_name'])) {
$upload_msg = "No file submitted!";
$upload_msg = "No file uploaded!";
$upload_ok = 0;
} elseif (!isFileMimeTypeAcceptable($_FILES["uploaded_file"]["tmp_name"])) {
$upload_msg = "You can not upload zips, executables, xml, and other high-risk files!";
$upload_msg = "You cannot upload zips, executables, xml, or binary files!";
$upload_ok = 0;
} elseif (file_exists($target_file)) {
@ -50,7 +50,7 @@ $file_count = getFileCount($target_folder_path);
?>
<?php echo $upload_msg ?> <br/>
<?php echo $file_count ?> files have been submitted today!
<?php echo $file_count ?> files have been uploaded today!
<?php include ("footer.php"); ?>