CM97 - Add billing_plan
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user