Linux host2.homegym.sg 4.18.0-553.8.1.el8_10.x86_64 #1 SMP Tue Jul 2 07:26:33 EDT 2024 x86_64
Apache
Server IP : 159.223.38.192 & Your IP : 159.223.38.192
Domains : 20 Domain
User : eachadea
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Lock Shell
Lock File++
Readme
/
home /
eachadea /
public_html /
delivery_summary /
Delete
Unzip
Name
Size
Permission
Date
Action
.well-known
[ DIR ]
drwxr-xr-x
2025-10-28 12:40
assets
[ DIR ]
drwxr-xr-x
2025-10-29 23:03
vendor
[ DIR ]
drwxrwxr-x
2025-10-28 12:40
.htaccess
417
B
-rw-r--r--
2025-10-17 18:08
composer.json
62
B
-rw-rw-r--
2020-11-05 03:39
composer.lock
30.76
KB
-rw-rw-r--
2020-11-05 03:39
credentials.json
2.31
KB
-rw-r--r--
2020-11-05 05:04
credentials.json_quick
405
B
-rw-r--r--
2020-11-05 03:54
doc.php
12.56
KB
-rw-r--r--
2025-10-28 12:40
error_log
128.03
KB
-rw-r--r--
2024-05-17 20:37
index.phtml
8.99
KB
-rw-r--r--
2020-12-03 03:19
loadName.php
98
B
-rw-r--r--
2020-11-05 08:14
loadSummary.php
124
B
-rw-r--r--
2020-11-05 13:52
saveComment.php
136
B
-rw-r--r--
2020-11-05 13:49
saveSummary.php
136
B
-rw-r--r--
2020-11-05 10:08
summary.php
5.67
KB
-rw-r--r--
2021-06-25 09:03
wp.php
18
B
-rw-r--r--
2025-10-28 12:36
Save
Rename
<?php require 'summary.php'; ?> <head> <title>HOMEGYM.SG</title> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> </head> <form class="form-style-9" method="post"> <?php if (!empty($_POST["name"]) && !empty($_POST["phone"]) && !empty($_POST["address"])) { if ($_POST["stairs"] < 0) $delivery = "Self pickup"; else $delivery = "Carry ".$_POST["stairs"]." levels"; $to_email = 'homegym.sg@gmail.com'; $subject = 'Order: '.$_POST["name"]; $message = $_POST["name"]."\r\n".$_POST["email"]."\r\n".$_POST["address"]."\r\n".$_POST["postal"]."\r\n".$_POST["phone"]."\r\n"."\r\n".$delivery."\r\n"."\r\n".$_POST["items"]."\r\n".$_POST["price"]; $headers = 'From: homegym.sg@gmail.com'; mail($to_email,$subject,$message,$headers); $error = "Submit Successfully! Auto reload in 10s"; $page = $_SERVER['PHP_SELF']; $sec = "10"; ?> <head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta http-equiv="refresh" content="<?php echo $sec?>;URL='<?php echo $page?>'"> </head> <?php } elseif (!empty($_POST["name"]) || !empty($_POST["phone"]) || !empty($_POST["address"]) || !empty($_POST["email"]) || !empty($_POST["postal"]) || !empty($_POST["items"]) || !empty($_POST["price"])) $error = "Please fill in all required fields"; $name = $_POST["name"]; $phone = $_POST["phone"]; $address = $_POST["address"]; $email = $_POST["email"]; $postal = $_POST["postal"]; $items = $_POST["items"]; $items = $_POST["price"]; ?> <ul> <li> <select name="date" id="date" class="field-style field-full align-none"> <?php $dates = getAllDate(); foreach ($dates as $date) { echo '<option value="'.$date.'">'.$date.'</option>'; } ?> </select> </li> <li> <select name="name" id="name" class="field-style field-full align-none"> <?php $names = getName($dates[0]); foreach ($names as $name) { echo '<option value="'.$name.'">'.$name.'</option>'; } ?> </select> </li> <li> <select name="summary" id="summary" class="field-style field-full align-none"> <option value="">Select Reason</option> <?php $summaryComment = getSummaryComment($dates[0], $names[0]); $summaryList = [ "All good", "Failed delivery", "Payment not collected", "Missing item", "Defective item", "Maintenance related" ]; foreach ($summaryList as $summary1) { if ($summaryComment[0] == $summary1) echo '<option value="'.$summary1.'" selected>'.$summary1.'</option>'; else echo '<option value="'.$summary1.'">'.$summary1.'</option>'; } ?> </select> </li> <li> <textarea id="comment" name="comment" style="height: 126px;" class="field-style" placeholder="Comment"><?php echo $summaryComment[1] ?></textarea> </li> <li> <div class="loader" style="display:none"><div class="lds-hourglass"></div></div> </li> </ul> <?php echo $error; ?> </form> <style type="text/css"> .form-style-9{ max-width: 700px; background: #FAFAFA; padding: 30px; margin: 50px auto; box-shadow: 1px 1px 25px rgba(0, 0, 0, 0.35); border-radius: 10px; border: 6px solid rgb(249, 116, 19); } .form-style-9 ul{ padding:0; margin:0; list-style:none; } .form-style-9 ul li{ display: block; margin-bottom: 10px; min-height: 35px; } .form-style-9 ul li .field-style{ box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; padding: 8px; outline: none; border: 1px solid #0ca9ff; -webkit-transition: all 0.30s ease-in-out; -moz-transition: all 0.30s ease-in-out; -ms-transition: all 0.30s ease-in-out; -o-transition: all 0.30s ease-in-out; font-size: large; }.form-style-9 ul li .field-style:focus{ box-shadow: 0 0 5px #B0CFE0; border:1px solid #0ca9ff; } .form-style-9 ul li .field-split{ width: 49%; } .form-style-9 ul li .field-full{ width: 100%; } .form-style-9 ul li input.align-left{ float:left; } .form-style-9 ul li input.align-right{ float:right; } .form-style-9 ul li textarea{ width: 100%; height: 100px; } .form-style-9 ul li input[type="button"], .form-style-9 ul li input[type="submit"] { -moz-box-shadow: inset 0px 1px 0px 0px #45D6D6; -webkit-box-shadow: inset 0px 1px 0px 0px #45D6D6; box-shadow: inset 0px 1px 0px 0px #45D6D6; background-color: #2CBBBB; border: 1px solid #27A0A0; display: inline-block; cursor: pointer; color: #FFFFFF; font-family: 'Open Sans Condensed', sans-serif; font-size: 14px; padding: 8px 18px; text-decoration: none; text-transform: uppercase; } .form-style-9 ul li input[type="button"]:hover, .form-style-9 ul li input[type="submit"]:hover { background:linear-gradient(to bottom, #34CACA 5%, #30C9C9 100%); background-color:#34CACA; } .lds-hourglass { display: inline-block; position: relative; width: 20px; height: 20px; } .lds-hourglass:after { content: " "; display: block; border-radius: 50%; width: 0; height: 0; margin: 8px; box-sizing: border-box; border: 20px solid #05acff; border-color: #05acff transparent #05acff transparent; animation: lds-hourglass 1.2s infinite; } @keyframes lds-hourglass { 0% { transform: rotate(0); animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); } 50% { transform: rotate(900deg); animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1); } 100% { transform: rotate(1800deg); } } </style> <script> $( "#date" ) .change(function () { var jqxhr = $.ajax({ url: "loadName.php", method: "POST", dataType: "json", data: { 'date' : $( "#date option:selected" ).val() } }).done(function(data) { $( "#name" ).empty(); // remove old options $.each(data, function(key,value) { $( "#name" ).append($("<option></option>") .attr("value", value).text(value)); }); $( "#name" ).trigger("change"); }).fail(function() { alert( "Something went wrong. Please try again or contact the sales rep." ); }); }) $( "#name" ) .change(function () { $("#summary option:first").prop('selected', 'selected'); var jqxhr = $.ajax({ url: "loadSummary.php", method: "POST", dataType: "json", data: { 'name' : $( "#name option:selected" ).val(), 'date' : $( "#date option:selected" ).val() } }).done(function(data) { if (data != null) { $("#summary > option").each(function() { $(this).prop('selected', false); if ($(this).val() == data[0]) $(this).prop('selected', 'selected'); }); $( "#comment" ).val(data[1]); } else { $( "#comment" ).val(""); $("#summary option:first").prop('selected', 'selected'); } }).fail(function() { alert( "Something went wrong. Please try again or contact the sales rep." ); }); }) $( "#summary" ) .change(function () { var jqxhr = $.ajax({ url: "saveSummary.php", method: "POST", dataType: "json", data: { 'name' : $( "#name option:selected" ).val(), 'date' : $( "#date option:selected" ).val(), 'summary' : $( "#summary option:selected" ).val() } }).done(function(data) { if (data == 1) { $(".loader").show().delay( 800 ).fadeOut( 400 ); } }).fail(function() { alert( "Something went wrong. Please try again or contact the sales rep." ); }); }) var myVar; var name, date, comment; $( "#comment" ).change(function(){ name = $( "#name option:selected" ).val(); date = $( "#date option:selected" ).val(); comment = $( "#comment" ).val(); }) $( "#comment" ).change(delay(function(){ setComment(name, date, comment); }, 2000)); $( "#comment" ).keyup(function(){ name = $( "#name option:selected" ).val(); date = $( "#date option:selected" ).val(); comment = $( "#comment" ).val(); }) $( "#comment" ).keyup(delay(function(){ setComment(name, date, comment); }, 2000)); function setComment(name, date, comment) { var jqxhr = $.ajax({ url: "saveComment.php", method: "POST", dataType: "json", data: { 'name' : name, 'date' : date, 'comment' : comment } }).done(function(data) { if (data == 1) { $(".loader").show().delay( 800 ).fadeOut( 400 ); } }).fail(function() { alert( "Something went wrong. Please try again or contact the sales rep." ); }); } function delay(callback, ms) { var timer = 0; return function() { var context = this, args = arguments; clearTimeout(timer); timer = setTimeout(function () { callback.apply(context, args); }, ms || 0); }; } </script>