| Server IP : 208.122.213.31 / Your IP : 216.73.216.45 Web Server : Apache System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64 User : WHMCS_MIA_382 ( 1001) PHP Version : 7.4.33 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/httpd/html/store.tiacyrusxxx.com/public_html/dev/ |
Upload File : |
<?php
function msgSystem($message, $type) {
return '<div class="msgsystem' . ($type == "success" ? " msgSucc" : " msgErr") . '">' . $message . '</div>';
}
function sendMail($to, $name, $subject, $emailMessage, $from = "") {
require_once('Mandrill.php');
if (isset($from) && $from != "" && isset($name) && $name != "") {
$from_email = $from;
$from_name = $name;
} else {
$from_email = "name@domain.com";
$from_name = "name";
}
if ($_SERVER['DOCUMENT_ROOT'] == "/web/sites/taj/xfanclubs.com/dev/" || $_SERVER['DOCUMENT_ROOT'] == "/web/sites/taj/xfanclubs.com/designdev/") {
// If this code is running on dev
if ($to != "sensorghost@gmail.com") {
// And the email address this is being sent to isn't a developer then redirect to Scott.
//$to = "sensorghost@gmail.com";
}
}
try {
$mandrill = new Mandrill(MANDRILL_API_KEY);
$message = array(
'html' => $emailMessage,
'subject' => $subject,
'from_email' => $from_email,
'from_name' => $from_name,
'to' => array(
array(
'email' => $to,
'name' => $name,
'type' => 'to'
)
),
'important' => false,
'track_opens' => null,
'track_clicks' => null,
'auto_text' => null,
'auto_html' => null,
'inline_css' => null,
'url_strip_qs' => null,
'preserve_recipients' => null,
'view_content_link' => null,
'tracking_domain' => null,
'signing_domain' => null,
'return_path_domain' => null,
'merge' => true,
'global_merge_vars' => array(
array(
'name' => 'merge1',
'content' => 'merge1 content'
)
),
'merge_vars' => array(
array(
'rcpt' => $to,
'vars' => array(
array(
'name' => 'merge2',
'content' => 'merge2 content'
)
)
)
),
'tags' => array(''),
'google_analytics_domains' => array('example.com'),
'google_analytics_campaign' => 'message.from_email@example.com',
'metadata' => array('website' => 'www.example.com'),
'recipient_metadata' => array(
array(
'rcpt' => 'recipient.email@example.com',
'values' => array('user_id' => 123456)
)
)
);
$async = false;
$ip_pool = 'Main Pool';
$send_at = '';
$result = $mandrill->messages->send($message, $async, $ip_pool, $send_at);
//return "TESTING: " . print_r($result);
return TRUE;
} catch (Mandrill_Error $e) {
return 'A mandrill error occurred: ' . get_class($e) . ' - ' . $e->getMessage();
throw $e;
}
}
function uploadmodelImages($type, $model_id, $width, $height) {
include_once 'class.upload.php';
$foo = new upload($_FILES[$type]['tmp_name']);
if ($foo->uploaded) {
$filename = $model_id . "_" . $type;
$foo->file_new_name_body = $filename;
$foo->image_resize = true;
$foo->image_x = $width;
$foo->image_y = $height;
$foo->image_convert = 'jpg';
$foo->file_new_name_ext = 'jpg';
$foo->jpeg_quality = 90;
$foo->image_ratio_crop = true;
$foo->file_auto_rename = FALSE;
$foo->file_overwrite = TRUE;
$foo->Process('../content/models/');
if ($foo->processed) {
return msgSystem('Image Uploaded Successfully', 'success');
} else {
return msgSystem('There was a problem uploading that image. (' . $foo->error . ')', 'error');
}
} else {
return msgSystem('There was a problem uploading that image. (200)', 'error');
}
}
function uploadsecureImage($type, $model_name) {
include_once 'class.upload.php';
$foo = new upload($_FILES[$type]['tmp_name']);
if ($foo->uploaded) {
$filename = str_replace(" ", "-", $model_name) . "-" . $type;
$foo->file_new_name_body = $filename;
$foo->image_resize = FALSE;
$foo->image_convert = 'jpg';
$foo->file_new_name_ext = 'jpg';
$foo->jpeg_quality = 90;
$foo->file_auto_rename = FALSE;
$foo->file_overwrite = TRUE;
$foo->Process('../../../content/IDs/');
if ($foo->processed) {
return msgSystem('Image Uploaded Successfully', 'success');
} else {
return msgSystem('There was a problem uploading that image. (' . $foo->error . ')', 'error');
}
} else {
return msgSystem('There was a problem uploading that image. (200)', 'error');
}
}
function removesecureImage($type, $model_name) {
$file = '../../../content/IDs/' . str_replace(" ", "-", $model_name) . '-' . $type . '.jpg';
if (is_file($file)) {
unlink($file);
} else {
return msgSystem('File not found.', 'error');
}
if (!is_file($file)) {
return msgSystem('File has been removed.', 'success');
} else {
return msgSystem('File could not be removed.', 'error');
}
}