Enhance product links and translations; update styles and add registration modal

- Updated product links in rma.php and rma_manage.php to include icons for better UX.
- Improved German, Spanish, Dutch, Polish, Portuguese, and US translations with new phrases for software licenses and user information prompts.
- Refactored CSS to remove redundant styles and added new styles for a registration modal, enhancing the overall UI.
- Introduced JavaScript variables for user information prompts in softwaretool.php for better localization support.
This commit is contained in:
“VeLiTi”
2026-01-12 15:59:46 +01:00
parent be6f73b19c
commit 884d2a3366
21 changed files with 1332 additions and 355 deletions

View File

@@ -59,12 +59,11 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
if ($uploaded_file != '' || !empty($uploaded_file)) {
$extension = strtolower(pathinfo($uploaded_file, PATHINFO_EXTENSION));
$target_dir = dirname(__FILE__) . "/firmware/";
$firmware_name = pathinfo($_FILES["fileToUpload"]["name"], PATHINFO_FILENAME);
if ($extension == 'hex') {
//READ FILE
$contents = file_get_contents($_FILES["fileToUpload"]["tmp_name"]);
//firmwarename
$firmware_name = pathinfo($_FILES["fileToUpload"]["name"], PATHINFO_FILENAME);
$commitCode = compareCommitCodes($firmware_name, "");
//IF COMMITCODE IS EMPTY THEN RETURN HEX_FW
@@ -76,6 +75,18 @@ if ($_SERVER['REQUEST_METHOD'] == 'POST') {
file_put_contents($input_file, $contents);
$_POST['file_path'] = $firmware_name . '.HEX';
$_POST['version'] = $fw_name;
} elseif ($extension == 'bin' || $extension == 'exe') {
//Extract commit code from filename
$commitCode = compareCommitCodes($firmware_name, "");
//IF COMMITCODE IS EMPTY THEN RETURN FIRMWARE_NAME
$fw_name = ($commitCode != '' || !empty($commitCode)) ? $commitCode : $firmware_name;
//Move uploaded file
$target_file = $target_dir . $uploaded_file;
move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file);
$_POST['file_path'] = $uploaded_file;
$_POST['version'] = $fw_name;
} else {
$target_file = $target_dir . $uploaded_file;
move_uploaded_file($_FILES["fileToUpload"]["tmp_name"], $target_file);
@@ -152,7 +163,7 @@ $view .= '<div class="content-block">
<i class="fas fa-cloud-upload-alt"></i>
<span id="uploadBtnText">Choose File</span>
</button>
<input type="file" name="fileToUpload" id="fileToUpload" style="display: none;" onchange="updateFields()" accept=".hex,.bin,.fw">
<input type="file" name="fileToUpload" id="fileToUpload" style="display: none;" onchange="updateFields()" accept=".hex,.bin,.fw,.exe">
<span class="file-upload-info" id="fileUploadInfo">No file selected</span>
</div>
<label for="file_path">File Path</label>