Sample client config.php
From Chasers_wiki
This is the client-specific installation config file. See Sample donor_config.php for a donor-specific config file.
<?php
// Define production database name and server
// Note: this is used to determine operating mode (eg, is_test_db())
// not for actual database connection. This is defined in chasers_config_local.php
define('CG_PRODUCTION_DATABASE_NAME','Chasers');
define('CG_PRODUCTION_DATABASE_SERVER','db.desc.org');
define('CG_LIST_EMPTY_HIDE',true); //show empty records by default
define('CG_LIST_GROUPING_EXPANDED',false); //default child record groupings to expanded
$CG_ENGINE_TABLES=array(CG_MAIN_OBJECT_DB,
//---General Client---//
'activity',
'assessment',
'bar',
'bed',
'client_death',
'client_note',
'client_protected',
'client_ref',
'contact_information',
'criminal_history',
'crp_reg',
'service_crp',
'disability',
'employment_status',
'entry',
'income',
'log',
'mail',
'sex_offender_reg',
'phone',
'staff_assign',
'nicotine_distribution',
//---Shelter---//
'client_locker_assignment',
'lock',
'locker',
'shelter_reg',
'shelter_count',
'safe_harbors_consent',
//---Housing---//
'charge',
'event',
'heet_reg',
'housing_notice',
'housing_rsp',
'housing_unit',
'housing_unit_subsidy',
'payment',
'residence_desc',
'residence_other',
'service_heet',
'service_housing',
'housing_history',
'application_housing',
//---Other---//
'connections_reg',
'service_connections',
'connections_temporary',
//---Mental Health---//
'dal',
'diagnosis',
'clinical_impression',
'auth',
'pss',
'activity_evaluation',
'residential_arrangement',
'clinical_homeless_status',
'income_clinical',
'address_clinical',
'veteran_status_clinical',
'medicaid',
'spenddown',
'jail',
'hospital',
'path_tracking',
'tier_request',
'clin_client_view',
//---Confidential---//
'hiv',
'immigrant',
//---CD---//
'cd_reg',
'service_cd',
//---Staff & Users---//
'alert',
'alert_notify',
'staff',
'staff_key_assign',
'calendar',
'calendar_appointment',
'permission',
'staff_driver_authorization',
'staff_employment',
'staff_language',
'staff_phone',
'staff_request',
'staff_termination',
'user_option',
//---Engine & CHASERS---//
'news',
'generic_sql_query', // a pseudo object for handling generic SQL
//---Postgresql---//
'pg_catalog'
);
/*
* to add a new type of quicks search, it is assumed that there will be a corresponding CSS class of the same
* name to handle the coloring. Otherwise the new qs will be the default table color.
* search.php must know how to handle the request as well.
*/
$CG_QUICK_SEARCHES = array(CG_MAIN_OBJECT_DB=>ucwords(CG_MAIN_OBJECT),'staff'=>'','log'=>'','iandr'=>'I & R');
define('CG_DEFAULT_QUICKSEARCH_TEXT','Quick Search');
// flag table--used for bed_rereg
$flag_table = "sys_flag";
$nobedreg = "lock_bed_";
// Colors
$colors=array(
'client'=>'#FFFFCF',
'staff'=>'#DFFFDF',
'staff_alert_bg'=> '#DFFFDF',
'staff_alert_color1' => '#DFF0DF',
'staff_alert_color2' => '#DFFFDF',
'alert'=>'#FFc0c0',
'addl'=>'#eff9ff',
'text'=>'#ffffe8',
'pick'=>'#ff8000',
'menu'=>'#00FF00',
'nav'=>'#CCCCFF',
'blank'=>'white',
'gray'=>'gray',
'red'=>'red',
'client_command_box'=>'#FF8100',
'view_system_field_bg'=>'#EEEEEE',
// generic colors for engine record display:
'label_bg'=>'#fffff4',
'value_bg'=>'#fdfdfd'
);
$client_select_sql = "
SELECT CL.*,
VET.Description as _veteran_status,
ETH.Description as _ethnicity,
GEN.Description as _gender
FROM $client_table AS CL
LEFT JOIN l_ethnicity as ETH on CL.ethnicity_code=ETH.ethnicity_code
LEFT JOIN L_gender as GEN on CL.gender_code=GEN.gender_code
LEFT JOIN $vet_lookup_table as VET on CL.veteran_status_code=VET.veteran_status_code
WHERE 1=1 ";
$entry_browse_url="entry_browse.php";
$entry_table="entry";
$entry_id_field = "client_id";
$entry_per_screen=50;
$entry_select_sql="SELECT * FROM $entry_table";
// $entry_order_sql = " ORDER BY EN.entered_at DESC ";
// $entry_last_sql = "SELECT MAX(entered_at) from $entry_table ";
$beds_select_sql = "SELECT $beds_table.*,
name_full,
ssn
FROM $beds_table
LEFT JOIN $client_table USING (client_id)";
$beds_order_sql = "bed_date DESC,bed_group,bed_no,name_full";
$iandr_select_sql = "SELECT * FROM agency as IR WHERE in_sections <> 'see' ";
//------- Main Object Registration -------//
$main_object_reg_search_fields = array('name_first','name_last','dob','ssn');
$main_object_reg_prompt = 'Please Enter name, date of birth, and social security #:';
$main_object_reg_subtitle = div(oline('If you are registering a '.CG_MAIN_OBJECT.' for the shelter, please refer to the ')
. hlink('http://iww.desc.org/wiki/index.php?title=Shelter_Registration_Checklist'
,
'Shelter Registration Checklist','','target="_blank"') . smaller(' (ope
ns in new window)'),''
,'style=" border: solid 2px red; background-color: #efefef; margin: 10px 15px; wi
dth: 400px; padding: 10px;"');
//------SHAMIS UPDATE FLAG------//
$CG_CLINICAL_UPDATE_FLAG = 'chaserslink/dataflags/clinicalupdate.txt';
$l_volunteer_table = "l_volunteer";
$beds_table="bed";
$beds_table_post="tbl_bed";
$beds_table_id = "client_id";
$bedreg_table = "bed_reg";
$bedreghist_table = "bed_reg_hist";
$bedtemp_table = "bed_temp";
// This defines what groups of beds there are
$bed_groups = array( "mens","womens","muni","kerner","crpmen","crpwomen" );
$bed_group_prefix = "bed_";
//matcheck times for applicable groups
$bedreg_matcheck_times = array(
'mens'=>array(
'CURRENT'=>'not a mat-check, use current time',
'17:30:00'=>'5:30 pm Mat-Check',
'18:30:00'=>'6:30 pm Mat-Check',
'21:30:00'=>'9:30 pm Mat-Check',
'23:30:00'=>'11:30 pm Mat-Check'),
'womens'=>array(
'CURRENT'=>'not a mat-check, use current time',
'17:30:00'=>'5:30 pm Mat-Check',
'18:30:00'=>'6:30 pm Mat-Check',
'21:30:00'=>'9:30 pm Mat-Check',
'23:30:00'=>'11:30 pm Mat-Check')
);
/* For each defined bed_group, an array of characteristics
* name of group prefixed with $bed_group_prefix
* night_startsat and endsat need to set as two-digit, military time(00:00)
* For example, 6 p.m. would be set as "18:00" and 7 a.m. would be "07:00"
* as for flags...the name of the array is the text that will be displayed
* that named array then holds the bed numbers that need that flag
* a bed can have multiple flags; to help users there's a flag legend
* for all bedgroups.
*/
//$amvolbeds = create_range_array(65,84);
//$pmvolbeds = create_range_array(85,104);
// beds that don't really exist
// add to flags in bedgroup, but not to flag_legend
/* no notbeds for phase 3 construction - JH
$notbeds = create_range_array(22,23);
$notbeds2 = create_range_array(109,139);
$notbeds3 = create_range_array(68,71);
$ofbeds = create_range_array(60,64);
*/
$flag_legend = array(//"AM" => "AM Volunteer",
//"PM" => "PM Volunteer",
"SAT" => "Saturday Volunteer",
"MEAL" => "Meal Volunteer",
"OF" => "Overflow Beds");
$bed_mens = array( "code" => "mens",
"title" => "Men's Mats in Main Shelter",
"color" => "FFDFDF",
"start" => "1",
"count" => "124",
"genpref" => "M",
"step" => "1",
"night_startsat" => "21:00",
"night_endsat" => "07:00",
"rereg_all" => "N"
/*
"flags" => array(//"AM" => $amvolbeds,
//"PM" => $pmvolbeds,
"xxx1" => $notbeds,
"xxx2" => $notbeds2,
"xxx3" => $notbeds3)
*/
);
$bed_womens = array( "code" => "womens",
"title" => "Women's Mats in Main Shelter",
"color" => "DFDFFF",
"start" => "1",
"count" => "60",
"genpref" => "F",
"step" => "1",
"night_startsat" => "21:00",
"night_endsat" => "07:00",
"rereg_all" => "N"
//"flags" => array("OF" => $ofbeds)
);
$bed_muni = array( "code" => "muni",
"title" => "Queen Anne Shelter",
"color" => "DFFFDF",
"start" => "1",
"count" => "50",
"genpref" => "M",
"step" => "1",
"night_startsat" => "3:00",
"night_endsat" => "06:30",
"rereg_all" => "N" );
$bed_kerner = array( "code" => "kerner",
"title" => "Kerner-Scott Shelter",
"color" => "CFCFEF",
"start" => "1",
"count" => "25",
"genpref" => "F",
"step" => "1",
"night_startsat" => "2:00",
"night_endsat" => "07:00",
"rereg_all" => "Y");
$bed_crpmen = array( "code" => "crpmen",
"title" => "CRP Men's Shelter",
"color" => "CCCC99",
"start" => "1",
"count" => "14",
"genpref" => "M",
"step" => "1",
"night_startsat" => "20:00",
"night_endsat" => "07:00",
"rereg_all" => "Y" );
$bed_crpwomen = array( "code" => "crpwomen",
"title" => "CRP Women's Shelter",
"color" => "FFCCCC",
"start" => "1",
"count" => "6",
"genpref" => "F",
"step" => "1",
"night_startsat" => "20:00",
"night_endsat" => "07:00",
"rereg_all" => "Y" );
// PERMISSION ARRAYS
// this is used in staff_client_project_clinical()
$CG_STAFF_CLIENT_CLINICAL_POSITIONS = array('MGRPROJ',
'CLINSVCCRD',
'CSS',
'CDPCSC',
'SUPCSC');
//these fields are tacked onto the path_tracking form
$path_tracking_dal_fields = array('dal_location_code',
'dal_code',
'contact_type_code',
'total_minutes',
'dal_focus_area_codes',
'progress_note'
);
$path_tracking_long_form_only_fields = array(
'path_housing_status_code',
'path_housing_status_time_code',
'jail_release_30_code',
'psych_release_30_code',
'path_principal_diagnosis_code',
'co_occurring_disorder_code',
'was_outreach_services',
'was_screening',
'was_rehabilitation',
'was_community_mh',
'was_substance_treatment',
'was_case_management',
'was_supportive_residential',
'was_referral',
'was_housing_planning',
'was_housing_costs',
'was_housing_technical',
'was_housing_coordination',
'was_housing_security_deposit',
'was_housing_one_time_rent',
'was_housing_minor_renovations',
'other_services'
);
define('CG_QUICK_DAL_PAGE','quick_dal.php');
//if changes are made to these DAL codes, the engine config array must be updated
$CG_DAL_MEDICAL_CODES = array('272','622','681','513');
$CG_DAL_FOLLOW_UP_CODES = array('820','830');
$CG_DAL_MEDICAL_ONLY_CODES = array('820','830','622','681');
$CG_DAL_PROGRESS_NOTE_OPTIONAL = array('618','260','266','267','282','110','100');
define('CG_ID_CARD_IP_SHELTER','192.168.6.191'); // reg-office
define('CG_ID_CARD_IP_CONNECTIONS','192.168.6.193'); //connections
$CG_ID_CARD_STATIONS = array(CG_ID_CARD_IP_SHELTER,
CG_ID_CARD_IP_CONNECTIONS
);
$CG_PHOTO_STATIONS = $CG_ID_CARD_STATIONS;
$CG_ID_CARD_CONFIG = array(
CG_ID_CARD_IP_SHELTER => array( // shelter reg-office
'directory'=>'lobbycam/cliphoto',
'link_text'=>'Please click here (Do NOT hit REL
OAD) when the picture has been taken',
'wiki_help'=>'Shelter_Registration_Checklist#Ta
ke_Photo.'
),
CG_ID_CARD_IP_CONNECTIONS => array( // connections
'directory'=>'connectcam',
'link_text'=>'Please click here (Do NOT h
it RELOAD) once the picture has been taken and loaded to the proper directory',
'wiki_help'=>'Connections_Registration_Ch
ecklist#Take_Photo.'
)
);
?>
