| 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.org/lib/ |
Upload File : |
<?
/**
* /lib/xinc.php
*
* This file must be included on the 1st line of all ajax called anf functional files that are utilizing this framework
*
* @copyright 2016-2021 Synergy Pro Marketing
* @author Aaron Campbell <aaron@synergymentoring.com>
* @license None, All Rights Reserved
* @package Layout
* @ignore
*/
session_start();
$requestUri = $_SERVER['REQUEST_URI'];
$host = $_SERVER['HTTP_HOST'];
$siteURL = explode('.', $host);
if(count($siteURL) > 2)
{
$site = $siteURL[1] . "." . $siteURL[2];
$resellerID = $siteURL[1];
}
else
{
$site = $siteURL[0] . "." . $siteURL[1];
$resellerID = $siteURL[0];
}
$live = false;
$debug = true;
//=======================================================================================
$development = false;
$production = false;
if(strpos($host, "dev"))
{
$development = true;
$production = false;
}
else
{
$development = false;
$production = true;
}
//=======================================================================================
$dbHost = "db.syndbs.com";
$dbUsername = "lc2user";
$dbPassword = "SYN57CRUZ";
$dbUser = "lc2admin";
//=======================================================================================
require_once($_SERVER['DOCUMENT_ROOT'] . "/vx/lib/access.php");
require_once($_SERVER['DOCUMENT_ROOT'] . "/vx/lib/mysql.php");
require_once($_SERVER['DOCUMENT_ROOT'] . "/vx/lib/ua.php");
require_once($_SERVER['DOCUMENT_ROOT'] . "/vx/lib/func.php");
//=======================================================================================
$siteData = $db->query("SELECT * FROM site WHERE site_domain = '$site'");
$siteData = $siteData[0];
$siteCode = $siteData['site_code'];
$siteName = $siteData['site_name'];
$siteDomain = $siteData['site_domain'];
$sitePhone = $siteData['phone'];
$siteAddress = $siteData['mailing_address'];
$siteEmail = $siteData['refund_email'];
$userDB = "lc2" . $siteCode . "_lc";
//=======================================================================================
$user = $_SESSION['user'];
$email = $_SESSION['email'];
$userPhone = $_SESSION['phone'];
$firstName = $_SESSION['firstName'];
$lastName = $_SESSION['lastName'];
$guest = false;
if($user > 0)
{
$guest = false;
}
else
{
$guest = true;
}
$userPreferences = $db->query("
SELECT
*
FROM $userDB.lc_preferences
WHERE
user = '$user'
AND
site_code = '$siteCode'
");
$userPreferences = $userPreferences[0];
$sites = array('agf', 'agg', 'fa', 'ggus', 'nusaf', 'nusag', 'usafa', 'usaga', 'usagaorg');
$siteImagesLg = array(
'agf'=>'http://www.americasgotfunding.com/vx_/images/LogoA.png',
'agg'=>'http://www.americasgotgrants.com/vx_/images/LogoA.png',
'fa'=>'http://fundingapplications.com/vx_/images/LogoA.png',
'ggus'=>'http://www.governmentgrants.us/images/ggus_logo_960.jpg',
'nusaf'=>'http://www.newusafunding.com/vx_/images/LogoA.png',
'nusag'=>'http://newusagrants.com/vx_/images/LogoA.png',
'usafa'=>'http://usafundingapplications.com/vx_/images/LogoA.png',
'usaga'=>'http://usagrantapplications.org/vx_/images/LogoA.png',
'usagaorg'=>'http://www.usagrantapplication.org/vx_/images/LogoA.png',
'synment'=>'http://www.usagrantapplication.org/vx_/images/LogoA.png'
);
$siteImagesMd = array(
'agf'=>'http://www.americasgotfunding.com/vx_/images/LogoB.png',
'agg'=>'http://www.americasgotgrants.com/vx_/images/LogoB.png',
'fa'=>'http://fundingapplications.com/vx_/images/LogoB.png',
'ggus'=>'http://www.governmentgrants.us/images/ggus_logo_960.jpg',
'nusaf'=>'http://www.newusafunding.com/vx_/images/LogoB.png',
'nusag'=>'http://newusagrants.com/vx_/images/LogoB.png',
'usafa'=>'http://usafundingapplications.com/vx_/images/LogoB.png',
'usaga'=>'http://usagrantapplications.org/vx_/images/LogoB.png',
'usagaorg'=>'http://www.usagrantapplication.org/vx_/images/LogoB.png',
'synment'=>'http://www.usagrantapplication.org/vx_/images/LogoB.png'
);
$siteImagesSm = array(
'agf'=>'http://www.americasgotfunding.com/vx_/images/LogoC.png',
'agg'=>'http://www.americasgotgrants.com/vx_/images/LogoC.png',
'fa'=>'http://fundingapplications.com/vx_/images/LogoC.png',
'ggus'=>'http://www.governmentgrants.us/images/ggus_logo_960.jpg',
'nusaf'=>'http://www.newusafunding.com/vx_/images/LogoC.png',
'nusag'=>'http://newusagrants.com/vx_/images/LogoC.png',
'usafa'=>'http://usafundingapplications.com/vx_/images/LogoC.png',
'usaga'=>'http://usagrantapplications.org/vx_/images/LogoC.png',
'usagaorg'=>'http://www.usagrantapplication.org/vx_/images/LogoC.png',
'synment'=>'http://www.usagrantapplication.org/vx_/images/LogoB.png'
);
?>