| 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/usagrantapplications.org/ |
Upload File : |
<?php
require_once($_SERVER['DOCUMENT_ROOT'].'/inc/php_header.php');
require_once($_SERVER['DOCUMENT_ROOT'].'/inc/AuthLCAPI.php');
$Auth= new AuthLCAPI();
$error = '';
if (isset($_GET['logout']) && $_GET['logout'] == 1) {
//User Authentication Object
$auth = new AuthLCAPI();
$auth->logout();
$message = "You have successfully logged out.";
}
if (isset($_REQUEST['user']) && isset($_REQUEST['pass']))
{
$user=trim($_REQUEST['user']);
$pass=trim($_REQUEST['pass']);
if (!$Auth->login($user,$pass))
{
if ($Auth->timedout == true)
{
$error = 'There was a problem contacting the login server. Please try again.';
//mail("usagalogintimeout@nowstream.com","USA Grant Applications.org Login Timeout","No response was received from the login server","From: support@usagrantapplications.org\r\nCc: usagrantapplications@gmail.com\r\n");
}
else
{
$error='The username or password you supplied is incorrect. Please try again.';
}
}
else
{
#$Auth->login($user,$pass);//This will take care of redirecting the user to password reset page if num_logins=0
header('location: membersonly/index.php');
die();
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width" />
<title>USA Grant Applications - Login Page</title>
<?
$body_id = 'login';
include("header.php"); ?>
<td style="width:100px;background-color:#dbd7d6;text-align:center" valign="top"></td>
<td style="width:590px;background-color:#ffffff;text-align:left;font:9pt/120% verdana;padding:10px 0px 0px 10px">
<form method="post" action="https://<?=$_SERVER['SERVER_NAME'];?>/login.php">
<table cellpadding="0" cellspacing="0" align="center">
<tr>
<td align="left">
<div style="padding:10px">
<p>
<strong>Welcome to USA Grant Applications!</strong>
</p>
<p>To login to your account, just input your username and password below and click on "Login".</p></font>
</div>
<div align="center">
<? if ($error !='') { ?>
<span style="color:red;">
<?= $error; ?>
</span>
<? } ?>
<table>
<tr>
<td>
User Name:
</td>
<td>
<input type="text" size="30" name="user" />
</td>
</tr>
<tr>
<td>
Password:
</td>
<td>
<input type="password" size="30" name="pass" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<input type="submit" value="Login" name="login" style="cursor:pointer" />
</td>
</tr>
<tr>
<td colspan="2" align="center">
<a href="https://<?=$_SERVER['SERVER_NAME'];?>/forgotpassword.php">Forgot your Login / Password?</a>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
<input type="hidden" name="submitted" value="submitted">
</form>
</td>
</tr>
<? include("footer.php"); ?>