| 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/usafundingapplications.ai/inc/ |
Upload File : |
<?
//die('We are currently down for maintenance, we should be back up in a few hours.');
session_start();
include_once($_SERVER['DOCUMENT_ROOT'].'/vx/lib/sanitize.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/inc/campaign_tracking.php');
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) && empty($_GET['v']))
{
foreach($_SESSION as $key => $value)
{
if(!in_array($key,array('auth_user','auth_pass','site_subscriptions','user_subscriptions','keywords','tc')))
{
unset($_SESSION[$key]);
}
}
foreach($_GET as $key => $value)
{
$_SESSION[$key] = $value;
}
$url = 'https://usagrantapplications.org'.$_SERVER['REQUEST_URI'];
$url_parts = explode('?',$url);
header("Location: {$url_parts[0]}");
exit(0);
}
else
{
foreach($_SESSION as $key => $value)
{
$_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://usagrantapplications.org'.$_SERVER['REQUEST_URI'];
$url_parts = explode('?',$url);
header("Location: {$url_parts[0]}{$new_get}");
exit(0);
}
if(strpos($_SERVER['HTTP_HOST'],'www.')!==false)
{
$new_get = '';
foreach($_SESSION as $key => $value)
{
$new_get .= ($new_get=='') ? '?' : '&';
$new_get .= urlencode($key).'='.urlencode($value);
}
$url = 'https://usagrantapplications.org'.$_SERVER['REQUEST_URI'];
$url_parts = explode('?',$url);
header("Location: {$url_parts[0]}{$new_get}");
exit(0);
}
if(!empty($_SESSION['tc'])) {
$tc = $_SESSION['tc'];
} else {
$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;
$tracker = new TrackerLib($_SITE_CODE);
$params = $tracker->URLParameters();
$trackerparams = $tracker->TrackerParameters();
$trackerformparams = $tracker->FormParameters();
?>