'Yes',0 => 'No'); $GLOBALS['hard_coded_select'] = array('region','region_sector','country','country_sector','state','state_sector','province','county','county_sector','city','city_sector'); $GLOBALS['hard_coded_select_that_use_cat'] = array('status'); $GLOBALS['hard_coded_select_that_use_cat_and_field_name'] = array('features','options'); // Database price fields (For Sale, For Rent, For Lease) $GLOBALS['lass_cat_price_fields'] = array( 11 => 'lass_price1', 12 => 'lass_price2', 13 => 'lass_price3', 14 => 'lass_price1', 21 => 'lass_price1', 22 => 'lass_price2', 23 => 'lass_price3', 24 => 'lass_price1', 31 => 'lass_price1', 32 => 'lass_price2', 33 => 'lass_price3', 34 => 'lass_price1', 41 => 'lass_price1', 42 => 'lass_price2', 43 => 'lass_price3', 44 => 'lass_price1' ); // titles for each price field $GLOBALS['lass_cat_price_fields_title'] = array( 11 => 'Price', 12 => 'Monthly Rent', 13 => 'Monthly Lease', 14 => 'Price', 21 => 'Price', 22 => 'Monthly Rent', 23 => 'Monthly Lease', 24 => 'Price', 31 => 'Price', 32 => 'Monthly Rent', 33 => 'Monthly Lease', 34 => 'Price', 41 => 'Price', 42 => 'Monthly Rent', 43 => 'Monthly Lease', 44 => 'Price' ); // SET GLOBAL CONFIG VARIABLES if (empty($bypass_config)){ $r = db_query("SELECT * FROM config "); // currently the only thing in config is the Invoice Number while($row = db_fetch_array($r)){ $GLOBALS[$row['lass_config_key']] = $row['lass_config_value']; } // allowable video upload file extensions (comes from video db table) $GLOBALS['lass_video_upload_extensions'] = db_fetch_options('select video_extension,video_extension from video'); // REQUIRED LIBRARIES require_once($GLOBALS['lass_server_root_path'].'/inc/Html.php'); _init_Html(); require_once($GLOBALS['lass_server_root_path'].'/inc/Misc.php'); _init_Misc(); require_once($GLOBALS['lass_server_root_path'].'/inc/Page.php'); _init_Page(); require_once($GLOBALS['lass_server_root_path'].'/inc/Template.php'); _init_Template(); require_once($GLOBALS['lass_server_root_path'].'/inc/ImageMagick.php'); _init_Image(); require_once($GLOBALS['lass_server_root_path'].'/inc/Stats.php'); _init_Stats(); require_once($GLOBALS['lass_server_root_path'].'/inc/Mail.php'); _init_Mail(); require_once($GLOBALS['lass_server_root_path'].'/inc/Orders.php'); init_Orders(); require_once($GLOBALS['lass_server_root_path'].'/mod/_config.php'); _init_Mod_Config(); } function check_for_updates($obj){ $update_file = $GLOBALS['lass_server_root_path'].'/lass_updates.php'; if (file_exists($update_file)){ require_once($update_file); return build_Update_Object($obj); } } ?>