0.3.17
This commit is contained in:
parent
b51224a071
commit
04524bb4a6
@ -37,6 +37,8 @@ Contents
|
|||||||
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
|
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
|
||||||
|
|
||||||
**Changes introduced in 0.3.17
|
**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
|
[Fix] Port description field spins after edit
|
||||||
|
|
||||||
**Changes introduced in 0.3.16
|
**Changes introduced in 0.3.16
|
||||||
|
|||||||
@ -36,7 +36,7 @@ if($_SERVER['REQUEST_METHOD'] == 'POST'){
|
|||||||
$filename = md5(time().$_SERVER['REMOTE_ADDR']);
|
$filename = md5(time().$_SERVER['REMOTE_ADDR']);
|
||||||
$data = $uploader->upload($_FILES['files'], array(
|
$data = $uploader->upload($_FILES['files'], array(
|
||||||
'limit' => 1, //Maximum Limit of files. {null, Number}
|
'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'))}
|
'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}
|
'required' => false, //Minimum one file is required for upload {Boolean}
|
||||||
'uploadDir' => $uploadDir, //Upload directory {String}
|
'uploadDir' => $uploadDir, //Upload directory {String}
|
||||||
|
|||||||
@ -24,7 +24,7 @@ if($_SERVER['REQUEST_METHOD'] == 'POST'){
|
|||||||
$filename = md5(time().$_SERVER['REMOTE_ADDR']);
|
$filename = md5(time().$_SERVER['REMOTE_ADDR']);
|
||||||
$data = $uploader->upload($_FILES['files'], array(
|
$data = $uploader->upload($_FILES['files'], array(
|
||||||
'limit' => 1, //Maximum Limit of files. {null, Number}
|
'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'))}
|
'extensions' => array('zip'), //Whitelist for file extension. {null, Array(ex: array('jpg', 'png'))}
|
||||||
'required' => false, //Minimum one file is required for upload {Boolean}
|
'required' => false, //Minimum one file is required for upload {Boolean}
|
||||||
'uploadDir' => $_SERVER['DOCUMENT_ROOT'].'/userUploads/', //Upload directory {String}
|
'uploadDir' => $_SERVER['DOCUMENT_ROOT'].'/userUploads/', //Upload directory {String}
|
||||||
|
|||||||
@ -76,6 +76,7 @@ if($_SERVER['REQUEST_METHOD'] == 'POST'){
|
|||||||
|
|
||||||
$descriptionNew = $data['value'];
|
$descriptionNew = $data['value'];
|
||||||
$portName = $qls->App->generateObjectPortName($objID, $objFace, $objDepth, $portID);
|
$portName = $qls->App->generateObjectPortName($objID, $objFace, $objDepth, $portID);
|
||||||
|
$actionTaken = true;
|
||||||
|
|
||||||
// Store original description
|
// Store original description
|
||||||
if(isset($qls->App->portDescriptionArray[$objID][$objFace][$objDepth][$portID])) {
|
if(isset($qls->App->portDescriptionArray[$objID][$objFace][$objDepth][$portID])) {
|
||||||
@ -95,34 +96,37 @@ if($_SERVER['REQUEST_METHOD'] == 'POST'){
|
|||||||
$actionVerb = 2;
|
$actionVerb = 2;
|
||||||
$actionString = 'Changed port description: <strong>'.$portName.'</strong> - from <strong>'.$descriptionOrig.'</strong> to <strong>'.$descriptionNew.'</strong>';
|
$actionString = 'Changed port description: <strong>'.$portName.'</strong> - from <strong>'.$descriptionOrig.'</strong> to <strong>'.$descriptionNew.'</strong>';
|
||||||
}
|
}
|
||||||
} else {
|
} else if($descriptionNew != '') {
|
||||||
|
|
||||||
if($descriptionNew != '') {
|
// Write new description
|
||||||
// Write new description
|
$qls->SQL->insert(
|
||||||
$qls->SQL->insert(
|
'app_port_description',
|
||||||
'app_port_description',
|
array(
|
||||||
array(
|
'object_id',
|
||||||
'object_id',
|
'object_face',
|
||||||
'object_face',
|
'object_depth',
|
||||||
'object_depth',
|
'port_id',
|
||||||
'port_id',
|
'description'
|
||||||
'description'
|
),
|
||||||
),
|
array(
|
||||||
array(
|
$objID,
|
||||||
$objID,
|
$objFace,
|
||||||
$objFace,
|
$objDepth,
|
||||||
$objDepth,
|
$portID,
|
||||||
$portID,
|
$descriptionNew
|
||||||
$descriptionNew
|
)
|
||||||
)
|
);
|
||||||
);
|
|
||||||
|
$actionVerb = 1;
|
||||||
$actionVerb = 1;
|
$actionString = 'Added port description: <strong>'.$portName.'</strong> - <strong>'.$descriptionNew.'</strong>';
|
||||||
$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;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user