0.3.17
This commit is contained in:
parent
b51224a071
commit
04524bb4a6
@ -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
|
||||
|
||||
@ -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}
|
||||
|
||||
@ -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}
|
||||
|
||||
@ -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,34 +96,37 @@ 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',
|
||||
array(
|
||||
'object_id',
|
||||
'object_face',
|
||||
'object_depth',
|
||||
'port_id',
|
||||
'description'
|
||||
),
|
||||
array(
|
||||
$objID,
|
||||
$objFace,
|
||||
$objDepth,
|
||||
$portID,
|
||||
$descriptionNew
|
||||
)
|
||||
);
|
||||
|
||||
$actionVerb = 1;
|
||||
$actionString = 'Added port description: <strong>'.$portName.'</strong> - <strong>'.$descriptionNew.'</strong>';
|
||||
}
|
||||
// Write new description
|
||||
$qls->SQL->insert(
|
||||
'app_port_description',
|
||||
array(
|
||||
'object_id',
|
||||
'object_face',
|
||||
'object_depth',
|
||||
'port_id',
|
||||
'description'
|
||||
),
|
||||
array(
|
||||
$objID,
|
||||
$objFace,
|
||||
$objDepth,
|
||||
$portID,
|
||||
$descriptionNew
|
||||
)
|
||||
);
|
||||
|
||||
$actionVerb = 1;
|
||||
$actionString = 'Added port description: <strong>'.$portName.'</strong> - <strong>'.$descriptionNew.'</strong>';
|
||||
} else {
|
||||
$actionTaken = false;
|
||||
}
|
||||
|
||||
if($actionTaken) {
|
||||
$qls->App->logAction(3, $actionVerb, $actionString);
|
||||
}
|
||||
|
||||
$qls->App->logAction(3, $actionVerb, $actionString);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user