Logical Dynamics

Solutions That Make Sense

stacks_image_73784128-63F1-4826-8FA6-728763894DCD

Logical Dynamics
File Upload Tool

Click on the Browse button below to select the files on your computer that you wish to upload to Logical Dynamics Support. Enter in the Passphrase that you received from your Logical Dynamics representative (NOTE: it IS case sensitive), then, when you're ready, click the Upload Now button. Finally, drop us a quick email describing your files and how we can help. It's that simple!


Files to Upload
Uploading ...
Please try again...'; $duplicate_alert = $config_values['duplicate_alert'] ? $config_values['duplicate_alert'] : 'This file has already been selected'; $size_alert = $config_values['size_alert'] ? $config_values['size_alert'] : 'Upload failed! The file exceeded the maximum allowed size.'; $mkdir_alert = $config_values['mkdir_alert'] ? $config_values['mkdir_alert'] : 'Could not create temporary directory on server!'; $passphrase_alert = $config_values['passphrase_alert'] ? $config_values['passphrase_alert'] : 'Passphrase is not correct! Please try again...'; $failure_alert = $config_values['failure_alert'] ? $config_values['failure_alert'] : 'File was not successfully uploaded from your computer.'; $name_alert = $config_values['name_alert'] ? $config_values['name_alert'] : 'File name not supplied by the browser.'; $rename_alert = $config_values['rename_alert'] ? $config_values['rename_alert'] : 'Could not rename uploaded file!'; $success_alert = $config_values['success_alert'] ? $config_values['success_alert'] : 'All files were successfully uploaded!'; echo '

', $denied_alert, '

'; echo '

', $duplicate_alert, '

'; if ($_POST) { try { $typed_pass = $_POST['passphrase']; $passphrase = 'ShopperXTC'; if ($passphrase && $typed_pass !== $passphrase) { throw new Exception($passphrase_alert); } $tmpDir = uniqid('files/upload-'); if (!mkdir($tmpDir)) { throw new Exception($mkdir_alert); } foreach ($_FILES["file_stacks_in_1030_page23"]["error"] as $key => $error) { if ($error == UPLOAD_ERR_FORM_SIZE) { throw new Exception($size_alert); } if ($error !== UPLOAD_ERR_OK) { throw new Exception($failure_alert); } if ($_FILES['file']['name'] === "") { throw new Exception($name_alert); } $tmp_name = $_FILES["file_stacks_in_1030_page23"]["tmp_name"][$key]; $name = $_FILES["file_stacks_in_1030_page23"]["name"][$key]; $new_name = $tmpDir.'/'.str_replace("/\0", '_', $name); if (!is_uploaded_file($tmp_name) or !copy($tmp_name, $new_name)) { throw new Exception($rename_alert); } // Upload to Dropbox require_once('files/DropboxUploader.php'); $uploader = new DropboxUploader('terry.condren@logidyn.com', 'blue57Chevy#!#'); //$uploader->setCaCertificateFile('files/dropbox.cer'); $uploader->upload($new_name, 'smartChoice/Support'); // Clean up if (isset($new_name) && file_exists($new_name)) { unlink($new_name); } echo ''; } } catch(Exception $e) { if (isset($new_name) && file_exists($new_name)) { unlink($new_name); } echo ''; } if (isset($tmpDir) && file_exists($tmpDir)) { rmdir($tmpDir); } } ?>