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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/governmentgrants.us/vx/usa/coronavirus/index.php
<?php
	session_start();
	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','Coronavirus');
	ob_start();
?>
<div class="rb p20 top">
	<div class="rb">
		<div class="rb <?=$phone ? 'pt20' : ''?> f24 bold left">
			<div class="relative iblock glyphicons f26" style="top:-4px;"><img src="/vx/usa/images/covid19.png" style="width:32px;" /></div>
			<div class="relative iblock" style="top:-1px; margin-left:7px;">
				Coronavirus COVID-19
			</div>
		</div>
	</div>
	<?php
		$page = 1;
		$per_page = 20;
		if(!empty($_REQUEST['page'])) {
			$page = $_REQUEST['page'];
		}
		
		$res = $db->get_results("SELECT COUNT(*) as c
								FROM grdb.bread_crumbs_grants gbg
								LEFT JOIN grdb.grd_grants AS gg ON gbg.grants_id=gg.grants_id
								WHERE
									gbg.bread_crumbs_id='153'
									AND (gg.deadline='0000-00-00' OR gg.deadline >= CURDATE())
								");
		$total_count = $res[0]->c;
		
		$max_page = ceil($total_count/$per_page);
		if($page<1) {
			$page = 1;
		}
		if($page>$max_page) {
			$page = $max_page;
		}
		$limit = '';
		if($total_count >= $per_page) {
			$limit = "LIMIT ".(($page-1)*$per_page).", ".$per_page;
		}
		
		$grant_list = $db->get_results(" 
									SELECT 
											gg.*,
											gusg.id AS favorite,
											gga.did_apply,
											gga.how_much_applied_for,
											gt.name AS grant_type,
											IF(gg.deadline='0000-00-00',1,0) as no_deadline,
											ggl.bg_color_hex,
											ggl.logo_url
									FROM grdb.bread_crumbs_grants gbg
									LEFT JOIN grdb.grd_grants AS gg ON gbg.grants_id=gg.grants_id
									LEFT JOIN grdb.grd_usa_saved_grants AS gusg
										ON gg.grants_id = gusg.grants_id
										AND gusg.client_id = '$user'
										AND gusg.site_code = '$siteCode'
									LEFT JOIN grdb.grd_grants_applied AS gga
										ON 
											gga.grants_id = gg.grants_id
										AND 
											gga.user = gusg.client_id
										AND 
											gga.site_code = gusg.site_code
									LEFT JOIN grdb.grd_types AS gt 
										ON gt.types_id = gg.types_id
									LEFT JOIN grdb.grd_site_logos ggl ON ggl.site_domain=gg.base_url AND ggl.status='active'
									WHERE
										gbg.bread_crumbs_id='153'
										AND (gg.deadline='0000-00-00' OR gg.deadline >= CURDATE())
									GROUP BY gg.grants_id
									ORDER BY no_deadline ASC,gg.deadline ASC, gg.amount DESC
									{$limit}
								");
	if(!empty($limit)) {
	?>
	<div id="paging">
		<center>
			<h3><?= paging_title($page,$total_count,$per_page);?> of <?= $total_count;?></h3>
			<button onclick="grant_list_change_page('1'); return false;" title="<?= paging_title(1,$total_count,$per_page);?>">&lt;&lt;</button>
			<button onclick="grant_list_change_page('<?= $page-1;?>'); return false;" title="<?= paging_title($page-1,$total_count,$per_page);?>">&lt;</button>
			<?php for($i=$page-5;$i<$page+5;$i++) {
				if($i>=1 && $i<=$max_page) { ?>
			<button onclick="grant_list_change_page('<?= $i;?>'); return false;" <?= ($i==$page) ? 'class="selected_page"' : '';?> title="<?= paging_title($i,$total_count,$per_page);?>"><?= $i;?></button>
				<?php } ?>
			<?php } ?>
			<button onclick="grant_list_change_page('<?= $page+1;?>'); return false;" title="<?= paging_title($page+1,$total_count,$per_page);?>">&gt;</button>
			<button onclick="grant_list_change_page('<?= $max_page;?>'); return false;" title="<?= paging_title($max_page,$total_count,$per_page);?>">&gt;&gt;</button>
		</center>
	</div>
	<?php } ?>
	<div id="grantList">
		<?php if($phone) {
			include($_SERVER['DOCUMENT_ROOT'].'/vx/usa/layout/inc/non_angular_grant_list_mobile.php');
		} else {
			include($_SERVER['DOCUMENT_ROOT'].'/vx/usa/layout/inc/non_angular_grant_list.php');
		} ?>
	</div>
</div>
<?php
	$body = ob_get_clean();
	$title = "Coronavirus : ".$_SESSION['site_name'];
	include($_SERVER['DOCUMENT_ROOT'].'/vx/usa/layout/non_angular_layout.php');
?>

Youez - 2016 - github.com/yon3zu
LinuXploit