CM97 - Add billing_plan

This commit is contained in:
“VeLiTi”
2025-03-12 15:23:03 +01:00
parent ecc045f98a
commit b812647b60
3 changed files with 14 additions and 0 deletions

View File

@@ -57,10 +57,16 @@ if (isset($_GET['rowID'])) {
$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
$fw_name = ($commitCode != '' || !empty($commitCode)) ? $commitCode : $firmware_name;
//Filename
$input_file = $target_dir . $firmware_name.'.HEX';
//store firmware file
file_put_contents($input_file, $contents);
$_POST['version'] = $fw_name;
} else {
$target_file = $target_dir . $firmware_file;
@@ -123,11 +129,17 @@ if (isset($_GET['rowID'])) {
$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
$fw_name = ($commitCode != '' || !empty($commitCode)) ? $commitCode : $firmware_name;
//Filename
$input_file = $target_dir . $firmware_name.'.HEX';
//store firmware file
file_put_contents($input_file, $contents);
$_POST['version'] = $fw_name;
$firmware_name = $firmware_name.'.HEX';
} else {