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/governmentgrants.us/vx/usa/members/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/governmentgrants.us/vx/usa/members/index_old_2025_08_22.php
<?
	session_start();
	include_once($_SERVER['DOCUMENT_ROOT'].'/vx/lib/sanitize.php');
	include_once($_SERVER['DOCUMENT_ROOT'].'/vx/lib/ua.php');
	include_once($_SERVER['DOCUMENT_ROOT'].'/vx/lib/func.php');
	include_once($_SERVER['DOCUMENT_ROOT'].'/vx_/site_info.php');
	include_once($_SERVER['DOCUMENT_ROOT'].'/vx/lib/mysql.php');
	track_member_action('Page Visit','Home');
	$user = $_SESSION['user'];
	ob_start();
	if(!empty($_GET['subscribe'])) {
		if($_GET['subscribe']=='no') {
			$foo = file_get_contents('https://surfcrm.com/lcapi/TrackUpsellButton.php?site_code='.$siteCode.'&client_id='.$user.'&response=No&upsell_version='.urlencode($_SESSION['upsell_tracking_version']).'&upsell_version_description='.urlencode($_SESSION['upsell_tracking_version_description']));
			header("Location: /vx/usa/members/");
		}
	}
	if(empty($_SESSION['site_phone'])) {
		$site_info = $db->get_results("SELECT refund_email,phone,site_name
									FROM lc2admin.site
									WHERE site_code='".$db->clean($siteCode)."'");
		$_SESSION['site_phone'] = $site_info[0]->phone;
		$_SESSION['site_email'] = $site_info[0]->refund_email;
		$_SESSION['site_name'] = $site_info[0]->site_name;
	}
	$site_info = $db->get_results("SELECT refund_email,phone,site_name
									FROM lc2admin.site
									WHERE site_code='".$db->clean($siteCode)."'");
	$siteName = $site_info[0]->site_name;
	$grants_found_in_the_last_30_days = 0;
	$res = $db->get_results("SELECT COUNT(*) as c
						FROM grdb.grd_grants
						WHERE DATE(ts) >= '".date('Y-m-d',strtotime('-30 day'))."'");
	$grants_found_in_the_last_30_days = $res[0]->c;
	
	//Started giving them different info on the home page for Businessy type people vs non business 04/04/2022
	$is_businessy = false;
	$date_ordered = '2001-01-01 00:00:00';
	if(!empty($user)) {
		$res = $db->get_results("SELECT r.date_ordered,p.profile_category_id
								FROM lc2{$siteCode}_lc.lc_reseller r
								LEFT JOIN lc2{$siteCode}_lc.lc_leads l ON l.customerID=r.id
								LEFT JOIN lc2{$siteCode}_lc.lead_profile p ON p.lead_id=l.id
								WHERE r.id='".$db->clean($user)."'");
		if(!empty($res)) {
			if(in_array($res[0]->profile_category_id,array('10','2','113','13','9'))) {
				//Is Business, Non-Profit, Community Assistance, Real Estate, Inventions
				$is_businessy = true;
			}
		}
	}
	$total_givesback = 'Over $23,000';
	$tres = $db->get_results("SELECT SUM(amount) as total_amount
							FROM grdb.givesback_winners
							WHERE money_sent<>'0000-00-00 00:00:00'");
	$total_givesback = '$'.number_format($tres[0]->total_amount);
?>
<style>
	.section_box {
		padding:10px;
		border:1px solid #d8d8d8;
		border-radius:6px;
		margin:20px;
	}
	.section_box_link {
		display:block;
		text-decoration:none;
		color:inherit;
	}
	.section_header {
		font-size:20px;
		font-weight:bold;
	}
	.video {
		width:100%;
		position:relative;
	}
	.video img {
		width:100%;
	}
	#play_button {
		position: absolute;
		left: 42%;
		top: 37%;
		background: rgba(255, 255, 255, 0.7);
		width: 60px;
		height: 60px;
		padding: 0px;
		border-radius: 60px;
		cursor: pointer;
		color: black;
		padding: 9px;
	}
	.category_box {
		text-align:center;
	}
	.category_box .iconItem {
		width:130px;
		height:100px;
	}
	.category_box .iconCell {
		height:50px;
	}
	.category_box .iconCell svg {
		width:48px;
	}
	.section_subheader {
		font-size:16px;
	}
	.center_image {
		display:block;
		width:80%;
		margin:5px auto;
	}
	#email_alerts_box, #teleseminars_box {
		text-align:center;
	}
	#coronavirus_box {
		border: 2px solid #c93156;
		color: #c93156;
	}
	#coronavirus_box .sicon {
		text-align:center;
		color: #c93156;
	}
	.vault_seen_new_page {
		border-radius:7px;
		padding:5px 10px;
		border:1px solid #A1A1A1;
		display:inline-block;
		color:white;
		font-weight:bold;
		font-size:12px;
		font-family:Arial;
		background-color: #752d15;
		position:relative;
		top:-4px;
	}
	.service_parent {
		margin:10px 0px;
	}
	.service_icon {
		display:inline-block;
		vertical-align:top;
		width:55px;
		text-align:center;
		padding-top:4px;
	}
	.service_body {
		display:inline-block;
		vertical-align:top;
		width:calc(100% - 60px);
	}
</style>
<script type="text/javascript">
	function load_testimonial_form() {
		$.ajax({
			url:"/vx/usa/members/rate_the_site_from_popup_new.php",
			cache: false,
			type: "POST",
			data: '',
			success: function(results) {
				$('#bodyContainer').append(results);
				window.scrollTo(0, 0);
				window.setTimeout(function() {
					$('#showOverlayMessage').hide();
				},200);
			}
		});
	}
	$('document').ready(function() {
		window.setTimeout(function() {
			$('#play_button').css('left',$('.video').width()/2 - $('#play_button').width()/2 - 10);
			$('#play_button').css('top',$('.video').height()/2 - $('#play_button').height()/2 - 10);
		},1000);
	});
</script>
<div class="relative block" id="Members" style="min-height:400px; margin:0px auto; max-width:1200px; background: white;">
	<h1 style="font-size:34px;">Welcome to <?= $siteName;?></h1>
	<div class="row">
		<div class="col-sm-8">
			<div>
				<?php if($phone) { ?>
				<div class="service_parent">
					<a href="/vx/usa/professional-grant-services/?autoplay=1" class="section_box_link" style="border:1px solid #AAA;padding:10px;border-radius:6px;">
						<div class="service_icon" style="width:170px;">
							<div class="video">
								<img src="https://surfcrm.com/training_calls/videos/usa_professional_services_thumb.png" />
								<div id="play_button" style="left:54px;top:17px;"><span class="glyphicons glyphicons-play glyphicons-fw f32"></span></div>
							</div>
						</div>
						<div class="service_body" style="width:calc(100% - 185px);padding-left:10px;">
							<div class="section_header sicon">Professional Services for Business Funding</div>
						</div>
						<p>Professional Services are available for those looking for money for business, non-profit organizations, community assistance, and real estate projects.</p>
					</a>
				</div>
				<?php } else { ?>
				<div class="service_parent">
					<a href="/vx/usa/professional-grant-services/?autoplay=1" class="section_box_link" style="border:1px solid #AAA;padding:10px;border-radius:6px;">
						<div style="float:left;width:230px;padding:0px 10px 0px 0px;">
							<div class="video">
								<img src="https://surfcrm.com/training_calls/videos/usa_professional_services_thumb.png" />
								<div id="play_button" style="left:84px;top:33.5px;"><span class="glyphicons glyphicons-play glyphicons-fw f32"></span></div>
							</div>
						</div>
						<div>
							<div class="section_header sicon">Professional Services for Business Funding</div>
							<p>Professional Services are available for those looking for money for business, non-profit organizations, community assistance, and real estate projects.</p>
						</div>
						<div style="clear:both;"></div>
					</a>
				</div>
				<?php } ?>
				<div class="service_parent">
					<a href="/vx/usa/givesback/" class="section_box_link">
						<div class="service_icon">
							<div><span class="fas fa-dollar-sign f24" style="color:#629c44;"></span><span class="fas fa-dollar-sign f24" style="color:#629c44;"></span><span class="fas fa-dollar-sign f24" style="color:#629c44;"></span></div>
						</div>
						<div class="service_body">
							<div class="section_header sicon">Givesback Awards</div>
							<p>Givesback awards monthly cash prizes to eligible clients. Winners notified by email, text, and posted on our site.</p>
						</div>
					</a>
				</div>
				<div class="service_parent">
					<a href="/vx/usa/favorites/" class="section_box_link">
						<div class="service_icon">
							<div><span class="fas fa-heart f24" style="color:#e61610;"></span></div>
						</div>
						<div class="service_body">
							<div class="section_header sicon">Favorite Applications</div>
							<p>Click the heart to favorite applications. View yours—and others’—in the Favorites section.</p>
						</div>
					</a>
				</div>
				<div class="service_parent">
					<a href="/vx/usa/organizer/" class="section_box_link">
						<div class="service_icon">
							<div><span class="fas fa-cabinet-filing f24" style="color:#0844a4;"></span></div>
						</div>
						<div class="service_body">
							<div class="section_header sicon">Application Organizer</div>
							<p>Keep your grants organized—update stages, track progress, and view all favorites anytime.</p>
						</div>
					</a>
				</div>
				<div class="service_parent">
					<a href="/vx/usa/calendar/" class="section_box_link">
						<div class="service_icon">
							<div><span class="fad fa-calendar-days f24" style="color:#a44408"></span></div>
						</div>
						<div class="service_body">
							<div class="section_header sicon">Deadline Calendar</div>
							<p>Keep your grants organized—update stages, track progress, and view all favorites anytime.</p>
						</div>
					</a>
				</div>
				<div class="service_parent">
					<a href="/vx/usa/master/" class="section_box_link">
						<div class="service_icon">
							<div><img src="/vx/usa/master/ai_logo.png" style="width:26px;"></div>
						</div>
						<div class="service_body">
							<div class="section_header sicon">Application Questions Vault</div>
							<p>One vault, all your answers — ready for any funding application, anytime.</p>
						</div>
					</a>
				</div>
				<div class="service_parent">
					<a href="/vx/usa/applications/top.php" class="section_box_link">
						<div class="service_icon">
							<div><span class="fas fa-trophy f24" style="color:#004f63;"></span></div>
						</div>
						<div class="service_body">
							<div class="section_header sicon">Top Applications</div>
							<p>Apply first to these top sources. View tutorials or see all funding options for this category.</p>
						</div>
					</a>
				</div>
				<div class="service_parent">
					<a href="/vx/usa/teleseminars/" class="section_box_link">
						<div class="service_icon">
							<div><span class="fas fa-users f24" style="color:black;"></span></div>
						</div>
						<div class="service_body">
							<div class="section_header sicon">Grant Writer Teleseminars</div>
							<p>Weekly teleseminars with a grant writer plus around-the-clock email support for your application questions.</p>
						</div>
					</a>
				</div>
			</div>
			<br />
			<div id="new_funding_applications_box">
				<a href="/vx/usa/applications/" class="section_box_link">
					<div class="section_header sicon">Database by Category</div>
					<p>Click on one of the funding categories to view our newest funding applications. <strong>We have added <?= (!empty($grants_found_in_the_last_30_days)) ? $grants_found_in_the_last_30_days : 0;?> applications in the last month.</strong> See the newest apps and be the first to start applying for them! Deadlines are approaching fast.</p>
				</a>
				<div class="category_box">
					<?php
					$main_cats = array();
					$res = $db->get_results("SELECT gc.id,gc.category_name,gc.icon,gc.grant_count as c
											FROM grdb.grant_categories_new gc
											WHERE gc.active=1
											AND gc.parent_id=0
											GROUP BY gc.id
											ORDER BY category_name ASC");
					foreach($res as $r) {
						$r->count = $r->c;
						$main_cats[$r->id] = $r;
					}
					$cat_colors = array('#5C5CFF','#95AAEF','#ADCDFF','#DADCD1','#FFDE85','#FECA72','#FCBA73','#FE9686','#FF7096','#FF5C8A');
					$cat_color_id = -1;
					foreach($main_cats as $category) {
						$cat_color_id++;
						if($cat_color_id >= count($cat_colors)) {
							$cat_color_id = 0;
						}
						$new_link = 'https://'.$_SERVER['SERVER_NAME'].'/vx/usa/applications/?page=1&ct='.$category->id;
					?>
					<div class="iconItem top" onclick="window.location = '<?= $new_link;?>';">
						<div class="aib" style="top:0px; right:0px;">
						</div>
						<div class="rb top" <?= (strlen($category->category_name) >= 12) ? '' : 'style="padding-top:7px;"';?>>
							<table style="width:100%; height:100%">
								<tr>
									<td class="iconCell">
										<div class="iconHolder">
											<div>
											<?php
												if(strpos($category->icon,'fa-')!==false) {
													?><i class="<?= $category->icon;?>" style="font-size:42px;color:<?= $cat_colors[$cat_color_id];?>;"></i><?php
												} elseif(strpos($category->icon,'glyphicons')!==false) {
													?><i class="glyphicons <?= $category->icon;?>" style="font-size:42px;color:<?= $cat_colors[$cat_color_id];?>;"></i><?php
												} else {
													if(file_exists($_SERVER['DOCUMENT_ROOT'].'/vx/svgs/'.$category->icon.'.svg')) {
														include($_SERVER['DOCUMENT_ROOT'].'/vx/svgs/'.$category->icon.'.svg');
													}
												}
											?>
											</div>
										</div>
									</td>
								</tr>
								<tr>
									<td class="displayText">
										<div class="text <?= (strlen($category->category_name) >= 16) ? 'long_category_text' : '';?>">
											<center>
												<?= $category->category_name;?><br />
												<span class="f10 italic normal">(<?= number_format($category->count);?>)</span>
											</center>
										</div>
									</td>
								</tr>
							</table>
						</div>
					</div>
					<?php } ?>
				</div>
				<a href="/vx/usa/applications/" class="section_box_link">
					<center><i class="sicon">Click Here to View All the Categories</i></center>
				</a>
			</div>
		</div>
		<div class="col-sm-4">
			<?php if(!$phone) { ?>
			<div class="section_box" id="funding_found_recently" style="border-color:#4d7a34;">
				<a href="/vx/usa/applications/" class="section_box_link">
					<?php
						$gs = $db->get_results("SELECT COUNT(*) as c FROM grdb.grd_grants WHERE ts >= '".date('Y-m-d',strtotime('-7 day'))." 00:00:00'");
						$last_7_days = $gs[0]->c;
						$gs = $db->get_results("SELECT COUNT(*) as c FROM grdb.grd_grants WHERE ts >= '".date('Y-m-d',strtotime('-30 day'))." 00:00:00'");
						$last_30_days = $gs[0]->c;
						$gs = $db->get_results("SELECT COUNT(*) as c,SUM(amount) as s FROM grdb.grd_grants WHERE ts >= '".date('Y-m-d',strtotime('-90 day'))." 00:00:00'");
						$last_90_days = $gs[0]->c;
						$last_90_days_money = $gs[0]->s;
						$gs = $db->get_results("SELECT SUM(amount) as s FROM grdb.grd_grants WHERE deadline='0000-00-00' OR deadline >= CURDATE()");
						$all_grants_money = $gs[0]->s;
					?>
					<div style="max-width:230px;margin:0px auto;text-align:right;">
						<center><div style="font-size:22px;text-decoration:underline;font-weight:bold;color:#4d7a34;">Applications Added</div></center>
						<?php if($last_7_days >= 50) { ?>
						<div style="font-size:18px;color:#5125ad;">Last <strong>7</strong> Days: <strong><?= number_format($last_7_days);?></strong></div>
						<?php } ?>
						<div style="font-size:18px;color:#d68226;">Last <strong>30</strong> Days: <strong><?= number_format($last_30_days);?></strong></div>
						<div style="font-size:18px;color:#4d7a34;">Last <strong>90</strong> Days: <strong><?= number_format($last_90_days);?></strong></div>
					</div>
					<div style="font-size:15px;color:black;margin:20px 0px;text-align:center;">
						<div>Total $$ in Last <strong>90</strong> Days: <strong>$<?= number_format($last_90_days_money);?></strong></div>
						<div>Total $$ in Database: <strong>$<?= number_format($all_grants_money);?></strong></div>
					</div>
					<center><i>Click to View Database</i></center>
				</a>
			</div>
			<div class="section_box" id="givesback_box" style="border-color:#c0392b;">
				<a href="/vx/usa/givesback/" class="section_box_link">
					<center>
						<div><img src="/vx_/images/LogoB.png" style="width:60%;" /></div>
						<div><img src="/vx/usa/givesback/givesback_black.png" style="width:100%;margin:-30px 0px 10px -15px;" /></div>
						<?php
							$total_amount = 0;
							$tres = $db->get_results("SELECT SUM(amount) as total_amount
													FROM grdb.givesback_winners
													WHERE money_sent<>'0000-00-00 00:00:00'");
							$total_amount = $tres[0]->total_amount;
						?>
						<div style="font-size:14px;color:red;font-weight:bold;">Total Awarded: $<?= number_format($total_amount);?></div>
						<?php $next_date = date('M d, Y',strtotime('next monday'));?>
						<div style="font-size:14px;color:red;font-weight:bold;">Next Award: <?= $next_date;?></div>
					</center>
					<div style="font-size:17px;"><img src="/vx/usa/givesback/givesback_arrow.png" style="vertical-align:middle;height:35px;" /> <strong>Weekly Cash Awards</strong></div>
					<div style="font-size:17px;"><img src="/vx/usa/givesback/givesback_arrow.png" style="vertical-align:middle;height:35px;" /> <strong>Favorite 3 Grants to Qualify</strong></div>
					<div style="font-size:17px;"><img src="/vx/usa/givesback/givesback_arrow.png" style="vertical-align:middle;height:35px;" /> <strong><?= $total_givesback;?> has been Awarded</strong></div>
					<br />
					<center>
						<div style="background: #dfedd6; padding:10px 20px; border-radius:20px; border:1px solid black;display:inline-block;"><strong>Click Here</strong> to Learn More</div>
					</center>
					<div style="font-size:12px;margin-top:20px;text-align:center;">
						<img src="/vx/usa/members/givesback_winners_3x3.png" style="width:100%;" />
					</div>
					<br />
					<center><i>Click to Enter</i></center>
				</a>
			</div>
			<?php } ?>
			<div class="section_box" id="rate_my_site_box" style="border-color:#47817d;">
				<center><a href="#testimonial" onclick="load_testimonial_form(); return false;"><img src="/vx/usa/members/testimonial_header.png" style="width:100%;cursor:pointer;" title="Rate the Site" /><div style="margin-top:10px;">Rate Our Site</div></a></center>
			</div>
		</div>
	</div>
</div>
<?php
	//have they ever submitted the testimonial
	$num_logins = $db->get_results("SELECT id FROM lc2admin.usa_testimonials
									WHERE site_code='".$db->clean($siteCode)."'
									AND client_id='".$db->clean($user)."'");
	if(empty($num_logins)) {
		$num_logins_when_shown = 0;
		$num_logins = $db->get_results("SELECT COUNT(*) as c FROM lc2{$siteCode}_lc.lc_logins WHERE lead_id='".$db->clean($user)."'");
		if(!empty($num_logins)) {
			$num_logins_when_shown = $num_logins[0]->c;
		}
		if($num_logins_when_shown >= 3 && $num_logins_when_shown % 3 == 0) {
			$popups_seen = 0;
			$popup_seen_res = $db->get_results("SELECT COUNT(*) as c FROM lc2admin.usa_testimonials_impressions WHERE site_code='".$db->clean($siteCode)."' AND client_id='".$db->clean($user)."' ORDER BY ts DESC LIMIT 1");
			if(!empty($popup_seen_res)) {
				$popups_seen = $popup_seen_res[0]->c;
			}
			if($popups_seen < 5) {
				$db->query("INSERT INTO lc2admin.usa_testimonials_impressions
							(
								site_code
								,client_id
								,ts
								,num_logins_when_shown
							) VALUES (
								'".$db->clean($siteCode)."'
								,'".$db->clean($user)."'
								,NOW()
								,'".$db->clean($num_logins_when_shown)."'
							)");
				include($_SERVER['DOCUMENT_ROOT'].'/vx/usa/members/rate_the_site.php');
			}
		}
	}
	/*if($_SESSION['email']=='demo@demo.com') {
		include($_SERVER['DOCUMENT_ROOT'].'/vx/usa/members/tour.php');
	}*/
	if(empty($_SESSION['showed_tour'])) {
		$num_logins = $db->get_results("SELECT COUNT(*) as c FROM lc2{$siteCode}_lc.lc_logins WHERE lead_id='".$db->clean($user)."'");
		$show_tour = 0;
		if(empty($num_logins)) {
			$show_tour = 1;
		} elseif($num_logins[0]->c*1<=1) {
			$show_tour = 1;
		}
		if($show_tour) {
			include($_SERVER['DOCUMENT_ROOT'].'/vx/usa/members/tour.php');
		}
	}
	/*if(!empty($_GET['retake_tour'])) {
		include($_SERVER['DOCUMENT_ROOT'].'/vx/usa/members/tour.php');
	}*/
?>
<?
	$body = ob_get_clean();
	$title = "Home : ".$_SESSION['site_name'];
	include($_SERVER['DOCUMENT_ROOT'].'/vx/usa/layout/non_angular_layout.php');
?>

Youez - 2016 - github.com/yon3zu
LinuXploit