<?php
/**
 **	global_variables.inc
 **		variable definition file
 **
 **	Original Author:
 **	Original Date:
 **
 **	Modified By:
 **	Modified On:
 **	Modifications:
 **/

require_once "control_variables.inc";
	/*
	 *	Declare global security variables (GSEC)
	 */

	/*
	 * 	set imap email scanner info
	 */

	// These are the cookie names used for the session and current app cookies
	$GSEC_sessionCookie = 'aaxySessionData';
	$GSEC_rotatePasswordCookie = 'aaxyRP';
	$GSEC_applicationCookie = 'aaxyApplication';
	$GSEC_clickthroughCookie = 'aaxyClickthrough';

	// This is the name of the query variable and the actual query string to pass
	// sessions on cookieless browsers
	$GSEC_sessionQueryVar = 'sID';
	$GSEC_sessionQueryString = '';

	// This is the interval (in seconds) before a session times out (20 minutes)
	$GSEC_sessionTimeout = 1200;

	// This is how long (in seconds) the session cookie lasts on the browser (for those
	// w/out calculators in your head, thats 90 days)
	$GSEC_cookieExpiration = time() + 7776000;

	// This is the number of bad logins an account can have before it is locked out
	$GSEC_loginLockoutInterval = 3;

	// What main perms require periodic password changes?
	$GSEC_passwordRotatePerm = array('ADMIN','AGENT');
	//$GSEC_passwordRotatePerm = array('ADMIN','AGENT','BOARD','LENDER');

	// How often (in days) do passwords have to be changed?
	$GSEC_passwordChangeDays = 60;

	// What is the minimum number of days that a user cannot reuse a password?
	$GSEC_passwordReuseLimit = 180;

    // This is used to override the ADMIN_SUPERUSER permission override
    $GSEC_perm_overrides = array('ADMIN','MGR');

	/*
	 *	Declare miscellaneous global variables (GVAR)
	 */

	// These are the home pages for each permission type.
	// NOTE: these are enclosed in single quotes, so they need to be eval()'d
	// before they can be used
	//
	$GVAR_homePage_CUST = '/Customer.php';
	$GVAR_homePage_ADMIN = '/Admin/TaskList.php';
	$GVAR_homePage_AGENT = '/Agent/TaskList.php';
	$GVAR_homePage_MTGAGENT = '/Mortgage/Search.php';
	$GVAR_homePage_BOARD = '/Reports.php';
	$GVAR_homePage_LENDER = '/Reports.php';
	$GVAR_homePage_LTREE = '/LTree/Summary.php';
	$GVAR_homePage_EXTERNAL = '/Reports.php';
	$GVAR_homePage_DOWNLOAD = '/Tools/SecureDownload.php';

	// When opening an app view this is the default tab
	$GVAR_defaultAppView = 'NOTES';

	// These are row colors for tables
	$GVAR_rowHeader1 = '#39699C';
	//$GVAR_rowHeader2 = '#AFC286';
	$GVAR_rowHeader2 = '#B6C791';
	$GVAR_rowHeader2red = '#FFC0D0';
	$GVAR_rowColor1 = '#FFFFFF';
	$GVAR_rowColor2 = '#DEE7EF';

	$GVAR_alertColor = '#DFBBDF';
	$GVAR_overdueColor = '#EE6789';


	// CSS class definitions for table colors
	$GVAR_rowHeaderClass1 = 'rowHeader1';
	$GVAR_rowHeaderClass2 = 'rowHeader2';
	$GVAR_rowHeaderClass2red = 'rowHeader2red';
	$GVAR_rowClass1 = 'row1';
	$GVAR_rowClass2 = 'row2';
	$GVAR_alertClass = 'alert';
	$GVAR_overdueClass = 'overdue';

	$GVAR_copyrightStatement = '&copy; 2002-'.date('Y').' AAXY, Inc. All Rights Reserved.';

	// Default team to assign new applications to


	// Global email addresses - webmaster, customerservice and lending tree
	$GVAR_emailWebmaster = 'web@xxx.com';
	$GVAR_emailWebmasterName = 'Webmaster';

	$GVAR_emailCustomerService = 'service@xxx.com';
	$GVAR_emailCustomerServiceName = 'Customer Service';

	// These are the states that we operate in, and the text string to accompany them
    $GVAR_stateList = 'AL AK AR AZ CA CO CT DC DE FL GA HI IA ID IL IN KS KY LA MA MD ME MI MN MO MS MT NC ND NE NH NJ NM NV NY OH OK OR PA RI SC SD TN TX VA VT UT WA WI WV WY';
    $GVAR_stateText =   'Alabama, Alaska, Arkansas, Arizona, California, Colorado, Connecticut, District of Columbia, Florida, Georgia, Hawaii, Idaho, Illinois, Iowa, Indiana Kansas, Kentucky, Louisiana, Maine, Maryland, Massachusetts, Michigan, Minnesota, Missouri, Mississippi, Montana, Nebraska, New Jersey, New Mexico, Nevada, New York, North Carolina, New Hampshire, Ohio, Oregon, Pennsylvania, Rhode Island, South Carolina, South Dakota, Tennessee, Texas, Virginia, Utah, Washington, Wisconsin, West Virginia, and Wyoming';
    $GVAR_stateTextOr = 'Alabama, Alaska, Arkansas, Arizona, California, Colorado, Connecticut, District of Columbia, Florida, Georgia, Hawaii, Idaho, Illinois, Iowa, Indiana, Kansas, Kentucky, Louisiana, Maryland, Massachusetts, Michigan, Minnesota, Missouri, Mississippi, Montana, Nebraska, New Jersey, New Mexico, Nevada, New York, North Carolina, North Dakota, New Hampshire,Ohio, Oregon, Pennsylvania, Rhode Island, South Carolina, South Dakota, Tennessee, Texas, Virginia, Utah, Washington, Wisconsin, West Virginia, or Wyoming ';

	// Default from and reply-to headers
	$GVAR_mailFrom = 'from<web@xxx.com>';
	$GVAR_mailReplyTo = 'reply<web@xxx.com>';


	$CAL_daysPerMonth = array(
			'01' => 31,
			'02' => 28,
			'03' => 30,
			'04' => 31,
			'05' => 31,
			'06' => 30,
			'07' => 31,
			'08' => 31,
			'09' => 30,
			'10' => 31,
			'11' => 30,
			'12' => 31
	);

    $GVAR_termArray = array('term1', 'term2', 'term3', 'term4', 'term5', 'term6', );