PK œqhYî¶J‚ßF ßF ) nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/
Dir : /home/trave494/donotdelte2024june28/pennwood.place/ajax/ |
Server: Linux ngx353.inmotionhosting.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 IP: 209.182.202.254 |
Dir : /home/trave494/donotdelte2024june28/pennwood.place/ajax/upload-thumbnail.php |
<?php if (IS_LOGGED == false || $pt->config->upload_system != 'on') { $data = array('status' => 400, 'error' => 'Not logged in'); echo json_encode($data); exit(); } $thumbnail = 'upload/photos/thumbnail.jpg'; if (!empty($_FILES['thumbnail']['tmp_name'])) { $file_info = array( 'file' => $_FILES['thumbnail']['tmp_name'], 'size' => $_FILES['thumbnail']['size'], 'name' => $_FILES['thumbnail']['name'], 'type' => $_FILES['thumbnail']['type'], 'crop' => array( 'width' => 1076, 'height' => 604 ) ); $pt->config->s3_upload = 'off'; $pt->config->ftp_upload = 'off'; $pt->config->spaces = 'off'; $file_upload = PT_ShareFile($file_info); if (!empty($file_upload['filename'])) { $thumbnail = PT_Secure($file_upload['filename'], 0); $_SESSION['ffempg_uploads'][] = $thumbnail; $data = array('status' => 200, 'thumbnail' => $thumbnail); } } ?>