| 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/functions/ |
Upload File : |
<?php
session_start();
require_once($_SERVER['DOCUMENT_ROOT'].'/php/mysql.php');
$db->query("UPDATE yogurtland_delivers.orders SET tip_paid=1 WHERE tip_paid=0 AND (date_yogurt_created<>'0000-00-00 00:00:00' OR delivery_time='0000-00-00 00:00:00')");
if(!empty($_POST['tip_amounts'])) {
foreach($_POST['tip_amounts'] as $k=>$v) {
$name = urldecode($k);
$amount = number_format(round($v/100,2),2);
$db->query("INSERT INTO ylreports_HansKirchhausen.tips
(
store_id
,employee
,tip_amount
,ts
) VALUES (
'1'
,'".$db->clean($name)."'
,'".$db->clean($amount)."'
,NOW()
)");
}
}