This commit is contained in:
Garrett 2021-07-22 23:26:28 +00:00
parent b51224a071
commit 04524bb4a6
5 changed files with 34 additions and 28 deletions

View File

@ -37,6 +37,8 @@ Contents
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
**Changes introduced in 0.3.17
[Enhance] Increased maximum backup upload size to 10MB
[Enhance] Decreased maximum image upload size to 1MB
[Fix] Port description field spins after edit
**Changes introduced in 0.3.16

View File

@ -36,7 +36,7 @@ if($_SERVER['REQUEST_METHOD'] == 'POST'){
$filename = md5(time().$_SERVER['REMOTE_ADDR']);
$data = $uploader->upload($_FILES['files'], array(
'limit' => 1, //Maximum Limit of files. {null, Number}
'maxSize' => 5, //Maximum Size of files {null, Number(in MB's)}
'maxSize' => 1, //Maximum Size of files {null, Number(in MB's)}
'extensions' => array('jpg', 'jpeg', 'png', 'gif'), //Whitelist for file extension. {null, Array(ex: array('jpg', 'png'))}
'required' => false, //Minimum one file is required for upload {Boolean}
'uploadDir' => $uploadDir, //Upload directory {String}

View File

@ -24,7 +24,7 @@ if($_SERVER['REQUEST_METHOD'] == 'POST'){
$filename = md5(time().$_SERVER['REMOTE_ADDR']);
$data = $uploader->upload($_FILES['files'], array(
'limit' => 1, //Maximum Limit of files. {null, Number}
'maxSize' => 2, //Maximum Size of files {null, Number(in MB's)}
'maxSize' => 10, //Maximum Size of files {null, Number(in MB's)}
'extensions' => array('zip'), //Whitelist for file extension. {null, Array(ex: array('jpg', 'png'))}
'required' => false, //Minimum one file is required for upload {Boolean}
'uploadDir' => $_SERVER['DOCUMENT_ROOT'].'/userUploads/', //Upload directory {String}

View File

@ -76,6 +76,7 @@ if($_SERVER['REQUEST_METHOD'] == 'POST'){
$descriptionNew = $data['value'];
$portName = $qls->App->generateObjectPortName($objID, $objFace, $objDepth, $portID);
$actionTaken = true;
// Store original description
if(isset($qls->App->portDescriptionArray[$objID][$objFace][$objDepth][$portID])) {
@ -95,9 +96,8 @@ if($_SERVER['REQUEST_METHOD'] == 'POST'){
$actionVerb = 2;
$actionString = 'Changed port description: <strong>'.$portName.'</strong> - from <strong>'.$descriptionOrig.'</strong> to <strong>'.$descriptionNew.'</strong>';
}
} else {
} else if($descriptionNew != '') {
if($descriptionNew != '') {
// Write new description
$qls->SQL->insert(
'app_port_description',
@ -119,10 +119,14 @@ if($_SERVER['REQUEST_METHOD'] == 'POST'){
$actionVerb = 1;
$actionString = 'Added port description: <strong>'.$portName.'</strong> - <strong>'.$descriptionNew.'</strong>';
}
} else {
$actionTaken = false;
}
if($actionTaken) {
$qls->App->logAction(3, $actionVerb, $actionString);
}
break;
}
}

File diff suppressed because one or more lines are too long