| 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/fundingapplications.com/membersonly/ |
Upload File : |
<?php
session_start();
if(strstr($_SERVER['REMOTE_ADDR'],'74.211.31') !== false) {
die(); //74.211.31.213 dustin's office ip
}
require_once($_SERVER['DOCUMENT_ROOT'].'/inc/globals.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/inc/AuthLCAPI.php');
//Member Authentication Object
$auth = new AuthLCAPI;
if(!$auth->isLoggedIn()) {
header('location: '.$auth->loginPageUrl);
exit();
}
$agency = $_GET['agency'];
if (validate_agency_number($agency))
{
$agencyfile = "{$_SERVER["DOCUMENT_ROOT"]}/agencies/" . $agency . ".html";
$body_id = 'member_side';
?>
<?php include($_SERVER['DOCUMENT_ROOT'].'/header.php');?>
<table border="0" cellspacing="0" cellpadding="10" style="background:white;">
<tr>
<td style="width:200px;vertical-align:top;">
<?php include($_SERVER['DOCUMENT_ROOT'].'/membersonly/nav.php');?>
</td>
<td style="vertical-align:top;">
<?
$fh = @fopen($agencyfile,"r");
if ($fh)
{
$toreplace = "CATALOG.PROGRAM_TEXT_RPT.SHOW?p_arg_names=prog_nbr&p_arg_values=";
$replacement = "/display.php?cfda=";
while (!feof($fh))
{
$line = fgets($fh);
$line = str_replace($toreplace,$replacement,$line);
echo $line;
}
fclose($fh);
}
?>
</td>
</tr>
</table>
<?php
}
function validate_agency_number($agencyid)
{
if(preg_match('/^[0-9]./', $agencyid))
return true;
else
return false;
}
?>