| 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/hans_sites/froyo2me.com/ |
Upload File : |
<?php
die();
session_start();
require_once($_SERVER['DOCUMENT_ROOT'].'/php/mysql.php');
if(!empty($_SESSION['order_id'])) {
$order_info_res = $db->query("SELECT * FROM yogurtland_delivers.orders WHERE id='".clean($_SESSION['order_id'])."'");
$order_info = $order_info_res[0];
$order_info['cups'] = $db->query("SELECT * FROM yogurtland_delivers.orders_cups WHERE order_id='".clean($_SESSION['order_id'])."'");
foreach($order_info['cups'] as $k=>$v) {
$order_info['cups'][$k]['flavor_info'] = $db->query("SELECT * FROM yogurtland_delivers.orders_flavors WHERE order_id='".clean($v['order_id'])."' AND cup_id='".clean($v['id'])."'");
$order_info['cups'][$k]['topping_info'] = $db->query("SELECT * FROM yogurtland_delivers.orders_toppings WHERE order_id='".clean($v['order_id'])."' AND cup_id='".clean($v['id'])."'");
}
} else {
$order_info = array();
}
ob_start();
?>
<!doctype html>
<html>
<head>
</head>
<body>
<div id="header" style="background:#FAFAFA;text-align:center;">
<div id="logo_container" style="width:524px;display:inline-block;position:relative;">
<img src="https://yogurtlanddelivers.com/images/logo_full_cup.png" style="width:100%;">
</div>
</div>
<div id="content" style="text-align:center;padding-top:10px;">
<div id="real_content" style="width:550px;display:inline-block;text-align:left;">
<center>
<div class="confirmation_yogurt" style="border:1px solid black;border-radius:175px;padding:30px 62px;display:inline-block;width:188px;">
<img src="https://yogurtlanddelivers.com/images/confirm_yogurt.png" />
</div>
<div class="enjoy_text" style="font-size:48px;font-weight:bold;margin:10px 0px;">Enjoy!</div>
<?php foreach($order_info['cups'] as $num=>$order) {
$total_flavor_list = count($order['flavor_info']);
if($total_flavor_list < count($order['topping_info'])) {
$total_flavor_list = count($order['topping_info']);
}
?>
<div class="order_summary" style="background:white;border:3px solid black;border-radius:12px;margin:20px auto;position:relative;width:500px;min-height:110px;">
<img src="https://yogurtlanddelivers.com/images/checkout_yogurt.png" style="float:left;padding:5px;" />
<div class="order_ounces" style="font-size:20px;font-weight:bold;margin-top:5px;"><?= $order['name_on_cup'];?> - <?= $order['ounces'];?> oz Cup</div>
<div class="order_price" style="font-size:20px;font-weight:bold;position:absolute;top:5px;right:8px;">$<?= number_format($order['price'],2);?></div>
<table>
<tr>
<td class="order_summary_flavor_title" style="font-size:14px;font-weight:bold;padding-left:10px;">Flavors:</td>
<td class="order_summary_flavor_title" style="font-size:14px;font-weight:bold;padding-left:10px;">Toppings:</td>
</tr>
<?php for($i=0;$i<$total_flavor_list;$i++) { ?>
<tr>
<?php if(!empty($order['flavor_info'][$i])) { ?>
<td style="font-size:14px;padding-left:20px;"><?= $i+1;?>. <?= $order['flavor_info'][$i]['flavor'];?></td>
<?php } else { ?>
<td style="font-size:14px;padding-left:20px;"></td>
<?php } ?>
<?php if(!empty($order['topping_info'][$i])) { ?>
<td style="font-size:14px;padding-left:20px;"><?= $i+1;?>. <?= $order['topping_info'][$i]['topping'];?></td>
<?php } else { ?>
<td style="font-size:14px;padding-left:20px;"></td>
<?php } ?>
</tr>
<?php } ?>
</table>
</div>
<?php } ?>
<div class="delivery_time_header" style="font-size:24px;font-weight:bold;margin:10px 0px;">Delivery Time</div>
<div class="delivery_time_body" style="font-size:24px;font-weight:normal;"><?= date('g:i',strtotime($order_info['delivery_time']));?> - <?= date('g:i',strtotime('+30 minute',strtotime($order_info['delivery_time'])));?></div>
<div class="delivery_time_header" style="font-size:24px;font-weight:bold;margin:10px 0px;">Delivery Address</div>
<div class="delivery_time_body" style="font-size:24px;font-weight:normal;">
<?= $order_info['address'];?><br />
<?= $order_info['city'];?>, <?= $order_info['state'];?> <?= $order_info['zip'];?>
</div>
</center>
</div>
</div>
</body>
</html>
<?php
$body = ob_get_clean();
require_once($_SERVER['DOCUMENT_ROOT'].'/php/mailgun.php');
mailgun_send_message('jeremy@synergytpsreports.com','NoReply@froyo2me.com','Froyo2me.com Confirmation',$body,1,'Froyo2me Confirmation','','');