| Server IP : 172.67.201.108 / Your IP : 216.73.216.11 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.5 System : Linux ip-172-31-69-123.ec2.internal 6.1.176-223.369.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Fri Jul 24 13:34:27 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/home2/domains/celeberateshowcase.com/wp-content/plugins/lcs-tickets/ |
Upload File : |
<?php
/*
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
var_dump($_GET);
echo '<p>here</p>';
*/
$ticket_link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on' ? "https" : "http") . "://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
require_once(dirname( __FILE__ )."/mpdf61/mpdf.php");
$fname = htmlentities($_GET['fname']);
$lname = htmlentities($_GET['lname']);
$showcases = htmlentities($_GET['showcases']);
$regex = "/\d\d,/";
$showcases = preg_replace($regex, str_replace(',', '', '$0<br />'), $showcases);
$showcases = str_replace(',<br />', '<br />', $showcases);
$showcases_output = '';
$ar_showcases = explode('<br />', $showcases);
foreach($ar_showcases as $value) :
$ar_event = explode('-', $value);
$showcase_title = trim($ar_event[0]);
$showcase = get_page_by_title($showcase_title, OBJECT, 'portfolio');
$showcase_address = get_post_meta($showcase->ID, 'ticket_address', true);
$showcases_output .= $value.'<br />';
if (!empty($showcase_address)) :
$showcases_output .= '<span style="font-size:12pt;"> '.$showcase_address.'</span><br />';
endif;
endforeach;
//die();
$margin_left = 1.5;
$margin_right = 1.5;
$margin_top = 1.2;
$margin_bottom = 1.0;
$margin_header = 0.6;
$margin_footer = 0.6;
//$img_url = str_ireplace('https://', 'http://', plugins_url( 'img/', __FILE__ ) );
$img_url = plugins_url( 'img/', __FILE__ );
$mpdf=new mPDF('','Letter'.'-L','','',$margin_left * 25.4,$margin_right * 25.4,$margin_top * 19.0,$margin_bottom * 19.0,$margin_header * 19.0,$margin_footer * 19.0, '');
//$mpdf->showImageErrors = true;
//$mpdf->debug = true;
$mpdf->useOnlyCoreFonts = false; // false is default
$mpdf->keep_table_proportions = true;
$mpdf->SetProtection(array('print'));
$mpdf->SetTitle("Celebrate! Showcase - Ticket");
$mpdf->SetAuthor("Davler Media Group");
$mpdf->SetHTMLHeader('<table width="100%" style="vertical-align: bottom; font-size: 11pt; color: #000000;"><tr>'.
'<td width="100%" style="text-align: left;"><img src="'.$img_url.'print_icon.jpg" style="vertical-align:middle; width:40pt; height:30pt;" />Please print and bring this ticket with you to the event</td>'.
'</tr></table><br /><br />');
$mpdf->SetHTMLFooter('<table width="100%" style="vertical-align: bottom; font-family: serif; font-size: 8pt; color: #000000; font-weight: bold; font-style: italic;"><tr>'.
'<td width="33%"><span style="font-weight: bold; font-style: italic;">{DATE m/j/Y}</span></td>'.
'<td width="33%" align="center" style="font-weight: bold; font-style: italic;">Page {PAGENO} of {nbpg}</td>'.
'<td width="33%" style="text-align: right; ">Davler Media Group</td>'.
'</tr></table>');
$mpdf->SetDisplayMode('fullpage');
$html = '<html><body style="font-family: Arial; font-size: 11pt; line-height: 12pt; ">';
$html .= '<div style="width:90%; padding:5%; margin-right:auto; margin-left:auto; border:2px solid #000000;">';
$html .= '<p><img style="width:60%;" src="'.$img_url.'celebrate_logo.jpg" /></p>';
//$html .= '<p><img src="http://lifamfest.com/wp-content/themes/lifamfest/img/home_lifamfest_logo.png" /></p>';
//$html .= '<p><img src="http://celebrateshowcase.com/wp-content/uploads/2015/08/MitzahOrganizer_webImage.png" /></p>';
$html .= '<hr />';
$html .= '<p style="margin:5px auto;">ORDERED BY:</p>';
$html .= '<p style="margin:5px auto; font-size:22pt; font-weight:bold;">'.strtoupper($fname.' '.$lname).'</p>';
$html .= '<hr />';
$html .= '<div style="width:80%; float:left;">';
$html .= '<p style="margin:5px auto;">SHOWCASES:</p>';
$html .= '<p style="margin:5px auto; font-size:14pt; line-height:14pt;">'.$showcases_output.'</p>';
$html .= '</div>';
$html .= '</div>';
$html .= '</body></html>';
$html = utf8_encode($html);
$mpdf->WriteHTML($html);
$mpdf->Output();
?>