| Server IP : 10.200.247.200 / Your IP : 216.73.217.19 Web Server : Apache System : Linux synergy-usa-sites 6.8.0-138-generic #138-Ubuntu SMP PREEMPT_DYNAMIC Fri Jul 31 22:41:49 UTC 2026 x86_64 User : jeremy ( 1001) PHP Version : 8.4.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/usa_sites/vx/usa/functions/ |
Upload File : |
<?
ini_set('post_max_size', '32M');
ini_set('upload_max_filesize', '32M');
include_once($_SERVER['DOCUMENT_ROOT']."/vx/lib/xinc.php");
$db->query("UPDATE lc2admin.usa_testimonials
SET would_you_like_a_gift_card=1
,testimonial_text='".$db->clean($_POST['testimonial'])."'
,confirm_email='".$db->clean($_POST['email'])."'
WHERE id='".$db->clean($_POST['testimonial_id'])."'");
/*require_once('AWSSDKforPHP/sdk.class.php');
define('AWS_KEY','AKIAJIOW3K3BIX5SRZIQ');
define('AWS_SECRET_KEY','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');
$s3 = new AmazonS3();
$amazonS3Bucket = 'media.learningcentersupport.com';
$file = $_FILES['testimonial_file'];
$fileParts = explode('.',$file['name']);
$fileExtension = $fileParts[count($fileParts)-1];
$newFileName = $file['name'];
$filePath = 'testimonials/'.$siteCode.'/'.$user.'/';
$fileName = $filePath.$newFileName;
$fileSize = filesize($file['tmp_name']);
$contentType = strtolower(substr($file['name'],strrpos($file['name'],'.')+1));
//$fileDuration = getDuration($file['tmp_name'],$fileExtension);
$options = array(
//'body'=>'',file_get_contents($file['tmp_name']),
'contentType' => $contentType,
'fileUpload' => $file['tmp_name'],
);
$response = $s3->create_object($amazonS3Bucket, $fileName, $options );
if($response->isOK())
{
$db->query("UPDATE lc2admin.usa_testimonials
SET photo_path='".$db->clean($fileName)."'
WHERE id='".$db->clean($_POST['testimonial_id'])."'");
}*/