Getting rid of undefined errors from the CPT.
Setting up the Event Regestrations.
require_once 'lib/navigation.php';
require_once 'parts/glm-blocks.php';
require_once 'lib/partners-post-type.php';
+require_once 'lib/EventRegistration.php';
$ancestorId = null;
$includePages = array();
--- /dev/null
+<?php
+add_shortcode( 'glm-event-registrations', function( $atts ){
+ // Default entry into registrations application
+ if (!isset($_REQUEST['Action'])) {
+ $_REQUEST['Action'] = ''; // Action step
+ $_REQUEST['todo'] = 0; // Category
+ $_REQUEST['subcat'] = 0; // Sub-Category
+ $_REQUEST['event'] = 0; // Event ID
+ }
+
+ $_ENV['GLM_HOST_ID'] = 'DEVELOPMENT';
+ require_once get_template_directory() . '/setup/setup.phtml';
+ include_once '/var/www/server/app.gaslightmedia.com/Common/Registrations_V3/front-end/registrations.inc';
+} );
+add_action( 'init', function(){
+ if ( !session_id() ) {
+ session_start();
+ }
+});
// Register Custom Post Type
function custom_post_type() {
- $labels = array(
- 'name' => _x( 'Partners', 'Post Type General Name', 'text_domain' ),
- 'singular_name' => _x( 'Partner', 'Post Type Singular Name', 'text_domain' ),
- 'menu_name' => __( 'Partners', 'text_domain' ),
- 'name_admin_bar' => __( 'Partners', 'text_domain' ),
- 'archives' => __( 'Partner Archives', 'text_domain' ),
- 'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),
- 'all_items' => __( 'All Partners', 'text_domain' ),
- 'add_new_item' => __( 'Add New Partner', 'text_domain' ),
- 'add_new' => __( 'Add New', 'text_domain' ),
- 'new_item' => __( 'New Item', 'text_domain' ),
- 'edit_item' => __( 'Edit Item', 'text_domain' ),
- 'update_item' => __( 'Update Item', 'text_domain' ),
- 'view_item' => __( 'View Item', 'text_domain' ),
- 'search_items' => __( 'Search Partners', 'text_domain' ),
- 'not_found' => __( 'Not found', 'text_domain' ),
- 'not_found_in_trash' => __( 'Not found in Trash', 'text_domain' ),
- 'featured_image' => __( 'Featured Image', 'text_domain' ),
- 'set_featured_image' => __( 'Set featured image', 'text_domain' ),
- 'remove_featured_image' => __( 'Remove featured image', 'text_domain' ),
- 'use_featured_image' => __( 'Use as featured image', 'text_domain' ),
- 'insert_into_item' => __( 'Insert into item', 'text_domain' ),
- 'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ),
- 'items_list' => __( 'Items list', 'text_domain' ),
- 'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),
- 'filter_items_list' => __( 'Filter items list', 'text_domain' ),
- );
- $args = array(
- 'label' => __( 'Partner', 'text_domain' ),
- 'labels' => $labels,
- 'supports' => array('title', 'thumbnail', 'page-attributes'),
-// 'taxonomies' => array( 'category', 'post_tag' ),
- 'hierarchical' => false,
- 'public' => true,
- 'show_ui' => true,
- 'show_in_menu' => true,
- 'menu_position' => 5,
- 'show_in_admin_bar' => true,
- 'show_in_nav_menus' => true,
- 'can_export' => true,
- 'has_archive' => true,
- 'exclude_from_search' => false,
- 'publicly_queryable' => true,
- 'capability_type' => 'page',
+ $labels = array(
+ 'name' => _x( 'Partners', 'Post Type General Name', 'text_domain' ),
+ 'singular_name' => _x( 'Partner', 'Post Type Singular Name', 'text_domain' ),
+ 'menu_name' => __( 'Partners', 'text_domain' ),
+ 'name_admin_bar' => __( 'Partners', 'text_domain' ),
+ 'archives' => __( 'Partner Archives', 'text_domain' ),
+ 'parent_item_colon' => __( 'Parent Item:', 'text_domain' ),
+ 'all_items' => __( 'All Partners', 'text_domain' ),
+ 'add_new_item' => __( 'Add New Partner', 'text_domain' ),
+ 'add_new' => __( 'Add New', 'text_domain' ),
+ 'new_item' => __( 'New Item', 'text_domain' ),
+ 'edit_item' => __( 'Edit Item', 'text_domain' ),
+ 'update_item' => __( 'Update Item', 'text_domain' ),
+ 'view_item' => __( 'View Item', 'text_domain' ),
+ 'search_items' => __( 'Search Partners', 'text_domain' ),
+ 'not_found' => __( 'Not found', 'text_domain' ),
+ 'not_found_in_trash' => __( 'Not found in Trash', 'text_domain' ),
+ 'featured_image' => __( 'Featured Image', 'text_domain' ),
+ 'set_featured_image' => __( 'Set featured image', 'text_domain' ),
+ 'remove_featured_image' => __( 'Remove featured image', 'text_domain' ),
+ 'use_featured_image' => __( 'Use as featured image', 'text_domain' ),
+ 'insert_into_item' => __( 'Insert into item', 'text_domain' ),
+ 'uploaded_to_this_item' => __( 'Uploaded to this item', 'text_domain' ),
+ 'items_list' => __( 'Items list', 'text_domain' ),
+ 'items_list_navigation' => __( 'Items list navigation', 'text_domain' ),
+ 'filter_items_list' => __( 'Filter items list', 'text_domain' ),
+ );
+ $args = array(
+ 'label' => __( 'Partner', 'text_domain' ),
+ 'labels' => $labels,
+ 'supports' => array('title', 'thumbnail', 'page-attributes'),
+ 'hierarchical' => false,
+ 'public' => false,
+ 'show_ui' => true,
+ 'show_in_menu' => true,
+ 'menu_position' => 5,
+ 'show_in_admin_bar' => true,
+ 'show_in_nav_menus' => true,
+ 'can_export' => true,
+ 'has_archive' => true,
+ 'exclude_from_search' => false,
+ 'publicly_queryable' => false,
+ 'capability_type' => 'page',
'register_meta_box_cb' => 'add_metaboxes',
- );
- register_post_type( 'partners', $args );
+ );
+ register_post_type( 'partners', $args );
}
add_action( 'init', 'custom_post_type', 0 );
*/
function partner_info() {
global $post;
+ $name_value =
+ $title_value =
+ $email_value =
+ $phone_value =
+ $url_value = '';
$nonce = wp_create_nonce( 'title-meta-noncename' );
echo '<input type="hidden" name="title-meta-noncename" id="title-meta-noncename" value="' . $nonce . '" />';
$name = get_post_meta( $post->ID, 'partner_name', true );
if ( !empty( $name) ) {
$name_value = "value=".'"'.$name .'"';
- }
-
+ }
+
$title = get_post_meta( $post->ID, 'partner_title', true );
if ( !empty( $title) ) {
$title_value = "value=".'"'.$title .'"';
}
-
+
$email = get_post_meta( $post->ID, 'partner_email', true );
if ( !empty( $email) ) {
$email_value = "value=".'"'.$email .'"';
}
-
+
$phone = get_post_meta( $post->ID, 'partner_phone', true );
if ( !empty( $phone) ) {
$phone_value = "value=".'"'.$phone .'"';
}
-
+
$url = get_post_meta( $post->ID, 'partner_url', true );
if ( !empty( $url) ) {
$url_value = "value=".'"'.$url .'"';
<label>Phone: </label><input style="display: block;margin-bottom: 15px;" type="text" name="partner_phone" <?php echo $phone_value; ?> />
<label>URL: </label><input style="display: block;margin-bottom: 15px;" type="text" name="partner_url" <?php echo $url_value; ?> />
-<?php
+<?php
}
/**
*/
function save_meta() {
global $post;
- if ( ! wp_verify_nonce( $_POST['title-meta-noncename'], 'title-meta-noncename' ) ) {
+ if ( isset( $_POST['title-meta-noncename'] ) && ! wp_verify_nonce( $_POST['title-meta-noncename'], 'title-meta-noncename' ) ) {
return $post->ID;
}
- if ( ! current_user_can( 'edit_post', $post->ID ) ) {
+ if ( isset( $post ) && ! current_user_can( 'edit_post', $post->ID ) ) {
return $post->ID;
}
- $name = filter_var( $_POST['partner_name'] );
- $title = filter_var( $_POST['partner_title'] );
- $email = filter_var( $_POST['partner_email'] );
- $phone = filter_var( $_POST['partner_phone'] );
- $url = filter_var( $_POST['partner_url'] );
+ $name = ( isset( $_POST['partner_name'] ) ? filter_var( $_POST['partner_name'] ) : '' );
+ $title = ( isset( $_POST['partner_title'] ) ? filter_var( $_POST['partner_title'] ) : '' );
+ $email = ( isset( $_POST['partner_email'] ) ? filter_var( $_POST['partner_email'] ) : '');
+ $phone = ( isset( $_POST['partner_phone'] ) ? filter_var( $_POST['partner_phone'] ) : '');
+ $url = ( isset( $_POST['partner_url'] ) ? filter_var( $_POST['partner_url'] ) : '');
- update_post_meta( $post->ID, 'partner_name', $name );
- update_post_meta( $post->ID, 'partner_title', $title );
- update_post_meta( $post->ID, 'partner_email', $email );
- update_post_meta( $post->ID, 'partner_phone', $phone );
- update_post_meta( $post->ID, 'partner_url', $url );
+ if ( isset( $post ) ) {
+ update_post_meta( $post->ID, 'partner_name', $name );
+ update_post_meta( $post->ID, 'partner_title', $title );
+ update_post_meta( $post->ID, 'partner_email', $email );
+ update_post_meta( $post->ID, 'partner_phone', $phone );
+ update_post_meta( $post->ID, 'partner_url', $url );
+ }
}
/**
function add_metaboxes() {
add_meta_box( 'partner_info', 'Partner Information', 'partner_info', GLM_POST_TYPE, 'normal', 'low' );
}
-add_action( 'save_post', 'save_meta' );
\ No newline at end of file
+add_action( 'save_post', 'save_meta' );
--- /dev/null
+; Production server configuration data
+[production]
+; Turn the banner application On or Off
+bannerdb.application = Off
+
+; Turn the contact application On or Off
+contactdb.application = On
+; Set the first year available in the year select lists
+; these are in the report builder form for admin
+; site > admin > contacts > report builder
+contactdb.first_year = 2011
+; used in the email out for the contact db
+contactdb.production_mode = "ON"
+; turn on for html email
+contactdb.html_email = "ON"
+; Turn on the streamsend module to use with our contact application
+contactdb.streamsend.application = On
+; Login id for the streamsend account
+contactdb.streamsend.login = "bJlQhYxfeSXG"
+; Transaction key for the streamsend account
+contactdb.streamsend.key = "6aR2euvBzLeiZ3ir"
+; Streamsend account name
+contactdb.streamsend.account_name = "University Center Of Gaylord"
+; Streamsend audience number
+contactdb.streamsend.audience = "1"
+
+; Turn the coupon application On or Off
+coupons.application = Off
+
+; Turn the event application On or Off
+eventdb.application = On
+; The page id in the toolbox that holds the event calendar
+eventdb.event_page = 10
+; Turn the home page events module On or Off for the event application
+eventdb.home_events = On
+
+; Turn the google search application On of Off
+google.search.application = On
+
+; Turn the home page headlines module On or Off for the toolbox
+headlines.application = On
+
+; Turn the member application On or Off
+memberdb.application = Off
+; The page id in the toolbox that holds the login box to the members only area
+memberdb.login_page = Off
+; The page id in the toolbox that is the members only area home page
+memberdb.members.home_page = Off
+; The page id in the toolbox that is the members only area profile form page
+memberdb.members.profile_form_page = Off
+; The page id in the toolbox that is the members only area coupons page
+memberdb.members.coupons.page = Off
+memberdb.members.coupons.notification_email = Off
+; The page id in the toolbox that is the members only area events page
+memberdb.members.events_page = Off
+memberdb.members.events.notification_email = Off
+; The page id in the toolbox that is the members only reporting page
+memberdb.members.reports_page = Off
+; The page id in the toolbox that is the members only leads page
+memberdb.members.leads_page = 125
+; Turn the trip planner module On or Off for the member application
+memberdb.session.list = Off
+; The page id in the toolbox that holds the output for the trip planner
+memberdb.session.page = Off
+; The page id in the toolbox that holds the create account form for the trip planner
+memberdb.session.form = Off
+
+; Turn the news On or Off
+news.application = Off
+; Turn the home page news On or Off
+news.home = Off
+; The page id for news output
+news.page = Off
+
+; Turn the photo gallery application On or Off
+photo_gallery.application = On
+
+; Turn the postcard application On or Off
+postcarddb.application = Off
+
+; Turn the rotating image application On or Off
+rotating_images.application = On
+
+; Turn the weather application On or Off
+weather.application = On
+
+; Turn the gift certificate application On or Off
+gift_certificates.application = Off
+
+ticketing.available = Off
+ticketing.catid = Off
+ticketing.cat_seo = Off
+
+employment.application = Off
+
+; Turn the Graph Application On or Off
+graphs.application = On
+
+
+; -- Common Registrations Application - V2 --
+; Turn the event registration application On or Off
+event_registration.application = On
+; Customer Information
+event_registration.organization = "University Center Gaylord"
+event_registration.organization_short = "University Center Gaylord"
+event_registration.organization_address = "80 Livingston Boulevard"
+event_registration.organization_city = "Gaylord"
+event_registration.organization_state = "MI"
+event_registration.organization_zip = "49735"
+event_registration.organization_phone = "(989) 705-3700"
+event_registration.organization_toll_free = ""
+event_registration.organization_internal_email = "info@ucgaylord.org"
+event_registration.organization_from_email = "registrations@ucgaylord.org"
+; General Setup
+event_registration.copyright_start = 2010
+event_registration.event_page = 3
+event_registration.have_members = Off
+event_registration.registered_users = Off
+event_registration.medical_info = Off
+event_registration.save_contacts = Off
+event_registration.default = On
+event_registration.select_by_month = Off
+event_registration.select_by_code = Off
+event_registration.select_by_picklists = On
+event_registration.show_past_events = On
+event_registration.show_instructor_in_event_lists = Off
+event_registration.show_instructor_in_event_detail = Off
+; If On causes all past events to be set to Active off when listing events in admin section
+event_registration.auto_inactive = Off
+event_registration.categories_on_intro_page = On
+; If main categories are off then sub_categories are not used
+event_registration.main_categories = On
+event_registration.show_empty_categories = Off
+event_registration.sub_categories = Off
+event_registration.show_empty_sub_categories = Off
+event_registration.include_events_in_category_list = On
+event_registration.show_event_codes = On
+event_registration.show_cutoff_dates = Off
+event_registration.attributes = Off
+; Whether to show rates in lists of events - If on, specify type for displaying ("detail" = detailed, "from" = "From: {lowest cost}")
+event_registration.show_rates_in_event_lists = On
+event_registration.show_rates_type = "from"
+; Selection of View/Template locations - Custom view and css files located in virtual server at /Toolkit/Registrations/Views
+event_registration.custom_view_files = Off
+event_registration.custom_stylesheet = On
+; Text used with catid in URLs
+event_registration.link_name = "registrations"
+; Permitted methods of payment - Must be one of the following "Yes", "No", or "Restricted" (admin users only)
+event_registration.payment_methods.comp_code = "No"
+event_registration.payment_methods.check = "Yes"
+event_registration.payment_methods.cash = "Restricted"
+event_registration.payment_methods.credit_card = "Yes"
+event_registration.payment_methods.call_from_merchant = "No"
+; Accepts Credit Cards bitmap (add up selected) where: Visa = 1, MasterCard = 2, American Express = 4, Discover = 8, Diners Club = 16
+event_registration.cc_accepts = 11
+; Credit Card Processing selection where: By merchant = 1, Authorize.net = 2, Merchant Solutions = 3
+event_registration.proc_method = 3
+; Authorize.net integration (proc_method = 2)
+; test: LOCAL_TEST, LOCAL_FAIL, TRUE, FALSE (Must be FALSE for production)
+; conf: Set to TRUE to have Authorize.net send a confirmation E-Mail to the user.
+event_registration.authorize_net.login = ""
+event_registration.authorize_net.key = ""
+event_registration.authorize_net.test = "TRUE"
+event_registration.authorize_net.conf = "TRUE"
+event_registration.authorize_net.merchant_email = ""
+; Merchant Solutions integration (proc_method = 3)
+event_registration.merchant_solutions.acctid = "MSHLG"
+event_registration.merchant_solutions.merchantpin = "xfuqfA0mVk85vim0aEuysgfubV3LBdpT"
+; -- Items to show in E-Mail notification to instructors
+event_registration.instr_notification.billing_info = On
+event_registration.instr_notification.email = On
+event_registration.instr_notification.phone = On
+event_registration.instr_notification.duration = On
+event_registration.instr_notification.short_descr = On
+event_registration.instr_notification.contact_fname = On
+event_registration.instr_notification.contact_lname = On
+event_registration.instr_notification.contact_addr1 = On
+event_registration.instr_notification.contact_addr2 = On
+event_registration.instr_notification.contact_city = On
+event_registration.instr_notification.contact_phone = On
+event_registration.instr_notification.contact_fax = On
+; Text Configurations
+event_registration.title = "Community Education Registration"
+event_registration.word.event = "class/Event"
+event_registration.word.events = "classes/Events"
+event_registration.word.registration = "registration"
+event_registration.word.registrations = "registrations"
+event_registration.word.register = "register"
+event_registration.word.registering = "registering"
+event_registration.word.registered = "registered"
+event_registration.word.attendee = "registrant"
+event_registration.word.attendees = "registrants"
+event_registration.word.attending = "registering"
+event_registration.word.attended = "registered"
+event_registration.word.member = "member"
+event_registration.word.members = "members"
+event_registration.word.user_id = "user ID"
+event_registration.word.password = "password"
+event_registration.word.instructor = "instructor"
+event_registration.word.instructors = "instructors"
+event_registration.word.category = "Category"
+event_registration.word.categories = "Categories"
+event_registration.word.sub_category = "Sub Category"
+event_registration.word.sub_categories = "Sub Categories"
+event_registration.word.contact_fname = "First Name"
+event_registration.word.contact_lname = "Last Name"
+event_registration.word.contact_addr1 = "Address"
+event_registration.word.contact_addr2 = " "
+event_registration.word.contact_city = "City"
+event_registration.word.contact_state = "State"
+event_registration.word.contact_zip = "ZIP/Postal Code"
+event_registration.word.contact_country = "Country"
+event_registration.word.contact_phone = "Phone"
+event_registration.word.contact_fax = "FAX"
+event_registration.word.attribute = "type"
+event_registration.word.attributes = "types"
+event_registration.titles.use_payment_comp_code = "Use Payment Comp Code"
+event_registration.titles.payment_comp_code = "Payment Comp Code"
+event_registration.titles.send_a_check = "Send a Check"
+event_registration.titles.call_from_merchant = "We will call you to complete your tour order."
+event_registration.titles.paid_cash = "Paid Cash"
+event_registration.titles.pay_by_credit_card = "Pay by Credit Card"
+event_registration.titles.registration_button = "Select Class"
+; -- Billing fields required for each payment type
+; -- Use comma separated list using: "fname, lname, addr1, addr2, city, state, country, zip, phone, fax"
+event_registration.use_full_billing_info_at_top = Yes
+; if use_full_billing_info_at_top = No
+event_registration.bill_info_req.comp_code = "fname, lname, phone"
+event_registration.bill_info_req.check = "fname, lname, phone"
+event_registration.bill_info_req.cash = "fname, lname, phone"
+event_registration.bill_info_req.credit_card = "fname, lname, addr1, addr2, city, state, country, zip, phone, fax"
+event_registration.bill_info_req.call_from_merchant = "fname, lname, addr1, addr2, city, state, country, zip, phone, fax"
+; -- Billing fields to ignore when no payment is required (free registration)
+event_registration.free_use_fname = On
+event_registration.free_use_lname = On
+event_registration.free_use_addr1 = On
+event_registration.free_use_addr2 = On
+event_registration.free_use_city = On
+event_registration.free_use_state = On
+event_registration.free_use_country = On
+event_registration.free_use_zip = On
+event_registration.free_use_phone = On
+event_registration.free_use_fax = On
+; -- Contact fields and terms - leave a term empty (no spaces) to not use that field in forms and reports
+; NOTE that city, state, zip, and country fields must either be all used or all off! No prompt will used for output for these fields.
+event_registration.show_contact_data = Off
+event_registration.show_same_button = Off
+event_registration.titles.contact_information = "Contact"
+event_registration.prompt.contact_fname = "First Name"
+event_registration.required.contact_fname = Off
+event_registration.prompt.contact_lname = "Last Name"
+event_registration.required.contact_lname = Off
+event_registration.prompt.contact_addr1 = "Address"
+event_registration.required.contact_addr1 = Off
+event_registration.prompt.contact_addr2 = ""
+event_registration.required.contact_addr2 = Off
+event_registration.prompt.contact_city = "City"
+event_registration.required.contact_city = Off
+event_registration.prompt.contact_state = "State"
+event_registration.required.contact_state = Off
+event_registration.prompt.contact_zip = "ZIP"
+event_registration.required.contact_zip = Off
+event_registration.prompt.contact_country = "Country"
+event_registration.required.contact_country = Off
+event_registration.prompt.contact_phone = "Phone"
+event_registration.required.contact_phone = Off
+event_registration.prompt.contact_fax = "FAX"
+event_registration.required.contact_fax = Off
+; Admin Defaults
+; sort_field is field name to sort, sort_direction is either "Forward" or "Backward"
+event_registration.admin_opt.Submissions.sort_field = "date_entered"
+event_registration.admin_opt.Submissions.sort_direction = "Backward"
+; status is comma-separated list of (UNPAID, CC_PEND, CC_PAID, CC_DECL, CHECK_PEND, CHECK_PAID, COMP, AT_EVENT, CASH_PAID, NO_CHARGE, OTHER_ADMIN, FAILED, CANCELED)
+event_registration.admin_opt.Submissions.status = "UNPAID, CC_PEND, CHECK_PEND, AT_EVENT"
+; Debug levels 0 to 3
+event_registration.debug = 0
+event_registration.debug_view = Off
+event_registration.debug_mail = Off
+event_registration.checkout_debug = Off
+
+; development server configuration data inherits from production and
+; overrides values as necessary
+[development : production]
+news.application = Off
+
+; continuous integration server configuration data inherits from development
+; and overrides values as necessary
+[continuous_integration : development]
+
+; chuck's server configuration data inherits from development
+; and overrides values as necessary
+[chuck : development]
+event_registration.debug = 0
+event_registration.debug_view = Off
+event_registration.debug_mail = On
+event_registration.checkout_debug = Off
+event_registration.merchant_solutions.acctid = "MSDMO"
+event_registration.merchant_solutions.merchantpin = "rm2NcePTTc93VutRdguW2nRFQ2BiyLu9"
+
+; john's server configuration data inherits from development
+; and overrides values as necessary
+[john : development]
+
+; steve's server configuration data inherits from development
+; and overrides values as necessary
+[steve : development]
+
--- /dev/null
+; Production site configuration data
+[production]
+; Name used in the title tag, admin area and emails
+site_url = "http://www.ucgaylord.org/"
+
+; Link URL to access mobile site to home page
+mobile.link =
+mobile.hostname = On
+
+; google search api key
+google.search.key = "ABQIAAAANX0yQZ2OteLu_zqbwdfUuRT9PY8-4c5xPr71Q7CZ_E9OOktIvhS7e6r_9XaLW5jy3O84t-dz7SK21Q"
+; google search site restriction
+google.search.site_restriction = "http://www.ucgaylord.org/"
+; google maps api key
+google.maps.key = "ABQIAAAANX0yQZ2OteLu_zqbwdfUuRT9PY8-4c5xPr71Q7CZ_E9OOktIvhS7e6r_9XaLW5jy3O84t-dz7SK21Q"
+
+; unsecure url to servers app.gaslightmedia.com directory
+app.base_url = "http://app.gaslightmedia.com/"
+; secure url to servers app.gaslightmedia.com directory
+app.base_secure_url = "https://app.gaslightmedia.com/"
+
+; secure url to file server
+file_server.secure = "https://is0.gaslightmedia.com/"
+; unsecure url to file server
+file_server.unsecure = "http://is0.gaslightmedia.com/"
+; owner id for the file server
+file_server.owner_id = "universitycenterofgaylord"
+; owner password for the file server
+file_server.owner_password = "VbGh233V"
+
+; Who to send emails to when we handle an error
+error.email = "errors@gaslightmedia.com"
+; level of error reporting
+error.reporting = 0
+; display errors on web page?
+error.display = 0
+; type of PEAR_Log subclass to use for error logging
+error.type = "error_log"
+; constant name of PEAR_Log store to use
+error.name = "PEAR_LOG_TYPE_FILE"
+; identity reported to the log system
+error.ident = "Production"
+; Log error messages up to and including this level
+; HIGHEST PRIORITY
+; +-------------------------------------------+
+; |PEAR_LOG_EMERG |System is unusable |
+; +-----------------+-------------------------+
+; |PEAR_LOG_ALERT |Immediate action required|
+; +-----------------+-------------------------+
+; |PEAR_LOG_CRIT |Critical conditions |
+; +-----------------+-------------------------+
+; |PEAR_LOG_ERR |Error conditions |
+; +-----------------+-------------------------+
+; |PEAR_LOG_WARNING |Warning conditions |
+; +-----------------+-------------------------+
+; |PEAR_LOG_NOTICE |Normal but significant |
+; +-----------------+-------------------------+
+; |PEAR_LOG_INFO |Informational |
+; +-----------------+-------------------------+
+; |PEAR_LOG_DEBUG |Debug-level messages |
+; +-------------------------------------------+
+; LOWEST PRIORITY
+error.level = "PEAR_LOG_WARNING"
+; constant used to figure out what site we are in
+error.conf.server = "SERVER_DIRECTORY"
+; path to log file
+error.conf.path = "/var/www/log/"
+; log file name
+error.conf.file = "php.error"
+; format of printed error message in log file
+error.conf.line_format = "%{timestamp: PRIORITY: %{priority} MESSAGE: %{message}
+"
+
+; type of database we're using
+database.type = "postgres"
+; adapter for database
+database.adapter = "pgsql"
+; error message displayed - used for GLM_DB class
+database.error.message = "An error has occured with the database!"
+; host to connect to
+database.params.host = "ds3"
+; username to connect as
+database.params.username = "nobody"
+; database name to connect to
+database.params.dbname = "ucgaylord"
+
+; if we're in development mode or not
+development = Off
+
+; site owner email address
+email.owner = "info@ucgaylord.org"
+; contact us form emails
+email.contact_us = "marshals@ucgaylord.org,jthompso@ucgaylord.org"
+; email for course offering form (Contact Me)
+email.course_offerings = "jthompso@ucgaylord.org"
+email.commedu_contactme = "freymutj@ucgaylord.org"
+; reply header for admin/MContact
+email.reply_member_news = "info@ucgaylord.org"
+; which email address should pending member update notifications go to
+; if you set this to false - no emails will be sent for updates
+email.member_record_updates_advisor = "marshals@ucgaylord.org"
+; reply-to email used in the members forgot password email
+email.member_forgot_password_email_reply_to = "marshals@ucgaylord.org"
+; This is where the first email goes to notify the site owner that a gift
+; certificate has been ordered
+email.giftcert = "info@ucgaylord.org"
+; used at the from address for gift certificate emails
+email.giftcert_from = "info@ucgaylord.org"
+; email contains senstive information and must be an upnorth.net address
+email.giftcert_secure = "info@upnorth.net"
+; used in admin/Contact mailout.phtml file in the reply-to header
+email.reply_to = "info@ucgaylord.org"
+; email address to send the banner reports to for the site admin
+email.banner_reports_admin = "info@ucgaylord.org"
+; email address to send banner expiration notices to
+email.expiring_banner_notification = "info@ucgaylord.org"
+; from header for admin/Contact mailout
+;
+; the networking department assigns an alias for the
+; "From:newsletter@xxx.com address that forwards to a
+; "xxx_bounce@harbor.gaslightmedia.com" address
+;
+; xxx being the domain of the website
+email.from_news = "info@ucgaylord.org"
+; from header for admin/MContact mailout
+;
+; the networking department assigns an alias for the
+; "From:newsletter@xxx.com address that forwards to a
+; "xxx_bounce@harbor.gaslightmedia.com" address
+;
+; xxx being the domain of the website
+email.from_member_news = "info@ucgaylord.org"
+; dead email address for forms w/ one-way communication
+; ie: pending member updates
+email.do_not_reply = "donotreply@ucgaylord.org"
+
+auth.test = "LOCAL_TEST"
+auth.send_conf = Off
+auth.merchant_email = Off
+auth.debug = Off
+
+; turn on/off xhtml output
+; if Off, html 4 strict is used
+xhtml = Off
+
+; version number for site resources
+; ie: stylesheets or scripts
+; this will be used for cache-busting
+resources.version = 1
+; environment request for resources
+; choices are "dev" or "prod"
+; dev will request resources that are not compressed
+; prod will request resources that have been compressed and minified
+resources.environment.javascript = "prod"
+resources.environment.css = "prod"
+
+; development site configuration data inherits from production and
+; overrides values as necessary
+[development : production]
+site_url = "http://localhost:8080/www.ucgaylord.org/"
+
+mobile.link =
+mobile.hostname = Off
+
+google.search.key = "ABQIAAAANX0yQZ2OteLu_zqbwdfUuRTeX7yNUukyMrmY8FsCXcCA9axlYBTyhehgzuXOUfNI0E5UYHCLponA0A"
+google.maps.key = "ABQIAAAANX0yQZ2OteLu_zqbwdfUuRQsHGkczIjpqPY1-dTKNoaiGtfPJBTloI-YH7fzUV-bsMLwcy2Yjyti7A"
+
+app.base_url = "http://localhost:8080/app.gaslightmedia.com/"
+app.base_secure_url = "https://localhost:8080/app.gaslightmedia.com/"
+
+error.reporting[] = E_ALL
+error.reporting[] = E_NOTICE
+error.display = 1
+error.ident = ""
+error.conf.path = "/var/www/server/"
+
+database.params.host = "devdb"
+
+development = On
+
+email.owner = "jodie@gaslightmedia.com"
+email.contact_us = "jodie@gaslightmedia.com"
+email.course_offerings = "jodie@gaslightmedia.com"
+email.commedu_contactme = "jodie@gaslightmedia.com"
+email.reply_member_news = "jodie@gaslightmedia.com"
+email.member_record_updates_advisor = "jodie@gaslightmedia.com"
+email.member_forgot_password_email_reply_to = "jodie@gaslightmedia.com"
+email.giftcert = "jodie@gaslightmedia.com"
+email.giftcert_from = "jodie@gaslightmedia.com"
+email.giftcert_secure = "jodie@gaslightmedia.com"
+email.reply_to = "jodie@gaslightmedia.com"
+email.banner_reports_admin = "jodie@gaslightmedia.com"
+email.expiring_banner_notification = "jodie@gaslightmedia.com"
+email.from_news = "jodie@gaslightmedia.com"
+email.from_member_news = "jodie@gaslightmedia.com"
+
+resources.version = "rand"
+resources.environment.javascript = "dev"
+resources.environment.css = "dev"
+
+[continuous_integration : development]
+site_url = "http://dev52.gaslightmedia.com/www.ucgaylord.org/"
+
+mobile.link =
+mobile.hostname = Off
+
+google.search.key = "ABQIAAAANX0yQZ2OteLu_zqbwdfUuRTeX7yNUukyMrmY8FsCXcCA9axlYBTyhehgzuXOUfNI0E5UYHCLponA0A"
+google.maps.key = "ABQIAAAANX0yQZ2OteLu_zqbwdfUuRQsHGkczIjpqPY1-dTKNoaiGtfPJBTloI-YH7fzUV-bsMLwcy2Yjyti7A"
+
+app.base_url = "http://app.gaslightmedia.com/"
+app.base_secure_url = "https://app.gaslightmedia.com/"
+
+resources.environment.javascript = "prod"
+resources.environment.css = "prod"
+
+[chuck : development]
+site_url = "http://192.168.44.3/www.ucgaylord.org/"
+
+error.reporting[] = E_ALL
+error.reporting[] = E_NOTICE
+error.display = 1
+
+mobile.link =
+mobile.hostname = On
+
+google.search.key = "ABQIAAAAFEik3hTZkksVQYtPm0OFmRT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQhDw8ITgl-K4LjnHuSww6VQQFDnA"
+google.maps.key = "ABQIAAAAFEik3hTZkksVQYtPm0OFmRT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQhDw8ITgl-K4LjnHuSww6VQQFDnA"
+
+app.base_url = "http://192.168.44.3/app.gaslightmedia.com/"
+
+database.params.host = "localhost"
+
+email.owner = "cscott@gaslightmedia.com"
+email.contact_us = "cscott@gaslightmedia.com"
+email.course_offerings = "cscott@gaslightmedia.com"
+email.commedu_contactme = "cscott@gaslightmedia.com"
+email.reply_member_news = "cscott@gaslightmedia.com"
+email.member_record_updates_advisor = "cscott@gaslightmedia.com"
+email.member_forgot_password_email_reply_to = "cscott@gaslightmedia.com"
+email.giftcert = "cscott@gaslightmedia.com"
+email.giftcert_from = "cscott@gaslightmedia.com"
+email.giftcert_secure = "cscott@gaslightmedia.com"
+email.reply_to = "cscott@gaslightmedia.com"
+email.banner_reports_admin = "cscott@gaslightmedia.com"
+email.expiring_banner_notification = "cscott@gaslightmedia.com"
+email.from_news = "cscott@gaslightmedia.com"
+email.from_member_news = "cscott@gaslightmedia.com"
+
+[john : development]
+site_url = "http://localhost/www.ucgaylord.org/"
+
+mobile.link =
+mobile.hostname = Off
+
+google.search.key = "ABQIAAAAFEik3hTZkksVQYtPm0OFmRT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQhDw8ITgl-K4LjnHuSww6VQQFDnA"
+google.maps.key = "ABQIAAAAFEik3hTZkksVQYtPm0OFmRT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQhDw8ITgl-K4LjnHuSww6VQQFDnA"
+
+app.base_url = "http://localhost/app.gaslightmedia.com/"
+
+database.params.host = "localhost"
+
+email.owner = "john@gaslightmedia.com"
+email.contact_us = "john@gaslightmedia.com"
+email.course_offerings = "john@gaslightmedia.com"
+email.commedu_contactme = "john@gaslightmedia.com"
+email.reply_member_news = "john@gaslightmedia.com"
+email.member_record_updates_advisor = "john@gaslightmedia.com"
+email.member_forgot_password_email_reply_to = "john@gaslightmedia.com"
+email.giftcert = "john@gaslightmedia.com"
+email.giftcert_from = "john@gaslightmedia.com"
+email.giftcert_secure = "john@gaslightmedia.com"
+email.reply_to = "john@gaslightmedia.com"
+email.banner_reports_admin = "john@gaslightmedia.com"
+email.expiring_banner_notification = "john@gaslightmedia.com"
+email.from_news = "john@gaslightmedia.com"
+email.from_member_news = "john@gaslightmedia.com"
+
+[steve : development]
+site_url = "http://192.168.99.194/www.ucgaylord.org/"
+
+mobile.link =
+mobile.hostname = Off
+
+google.search.key = "ABQIAAAAFEik3hTZkksVQYtPm0OFmRT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQhDw8ITgl-K4LjnHuSww6VQQFDnA"
+google.maps.key = "ABQIAAAAFEik3hTZkksVQYtPm0OFmRT2yXp_ZAY8_ufC3CFXhHIE1NvwkxQhDw8ITgl-K4LjnHuSww6VQQFDnA"
+
+app.base_url = "http://192.168.99.194/app.gaslightmedia.com/"
+
+file_server.secure = "http://is0.gaslightmedia.com/"
+file_server.unsecure = "http://is0.gaslightmedia.com/"
+
+database.params.host = "ds3"
+
+email.owner = "steve@localhost"
+email.contact_us = "steve+1@localhost,steve+2@localhost"
+email.course_offerings = "steve+courseoff@localhost"
+email.commedu_contactme = "steve+commeducontactme@localhost"
+email.reply_member_news = "steve@localhost"
+email.member_record_updates_advisor = "steve@localhost"
+email.member_forgot_password_email_reply_to = "steve@localhost"
+email.giftcert = "steve@localhost"
+email.giftcert_from = "steve@localhost"
+email.giftcert_secure = "steve@localhost"
+email.reply_to = "steve@localhost"
+email.banner_reports_admin = "steve@localhost"
+email.expiring_banner_notification = "steve@localhost"
+email.from_news = "steve@localhost"
+email.from_member_news = "steve@localhost"
+
--- /dev/null
+; Production server configuration data
+[production]
+; Home page id of site in the toolbox
+home_id = 1
+; Name to use in title tag and admin
+sitename = "University Center Of Gaylord"
+; used in contactdb to limit number of entries per list
+entries_per_page = 10
+; Turn short urls On or Off
+; requires .htaccess enabled
+short_urls = Off
+; Site is mobile enabled
+mobile_site = Off
+
+; development server configuration data inherits from production and
+; overrides values as necessary
+[development : production]
+
+; continuous integration server configuration data inherits from development
+; and overrides values as necessary
+[continuous_integration : development]
+
+; chuck's server configuration data inherits from development
+; and overrides values as necessary
+[chuck : development]
+
+; john's server configuration data inherits from development
+; and overrides values as necessary
+[john : development]
+
+; steve's server configuration data inherits from development
+; and overrides values as necessary
+[steve : development]
+
--- /dev/null
+<?php
+/**
+ * Media Toolbox(R)
+ *
+ * Setup.phtml file includes the functions that were in the functions.inc
+ * and siteinfo.inc file into one file.
+ * All set up stuff is on the top of the page.
+ *
+ * PHP version 5
+ *
+ * @category Gaslight_Media_Website
+ * @package Gaslight_Media
+ * @header Gaslight Media Toolbox
+ * @author Jamie Kahgee <jamie.kahgee@gmail.com>
+ * @author Steve Sutton <steve@gaslightmedia.com>
+ * @license http://www.gaslightmedia.com Gaslightmedia
+ * @version $Id: setup.phtml,v 1.102 2010/08/10 17:43:11 jamie Exp $
+ * @release SVN: $Id: $
+ * @link http://www.gaslightmedia.com
+ */
+
+/**
+ * DO NOT EDIT THIS SECTION
+ */
+// Find where this file is located
+$BASE_PATH = dirname(__FILE__);
+$php_version = phpversion();
+define('GLM_HOST_ID', 'DEVELOPMENT');
+define('PHP5', true);
+// $base_url needs to be set to the page in wordpress
+$page = get_post();
+$permalink = get_permalink( $page );
+$base_url = preg_replace( '%https?:\/\/|\/$%', '', $permalink );
+$BASE_URL = "http://$base_url";
+
+if (!isset($DEBUG)) {
+ $DEBUG = (isset($mysecretcode) && $mysecretcode == 1234);
+}
+/**
+ * URI used for the root of the site
+ */
+define('BASE_URL', "$BASE_URL/");
+/**
+ * Another way of calling the BASE_URL constant
+ */
+define('URL_BASE', "$BASE_URL/");
+/**
+ * root directory path of site in filesystem
+ */
+define('BASE_PATH', "$BASE_PATH/");
+/**
+ * Another way of calling the BASE_PATH constant
+ */
+define('BASE', "$BASE_PATH/");
+
+// GLM App repository config {{{
+$glmAppBase = '/var/www/server/app.gaslightmedia.com/';
+/**
+ * Path to the common GLM application repository
+ */
+define('GLM_APP_BASE', $glmAppBase);
+// {{{ Path Configuration
+
+// explode the current include_path by forward slashes (/),
+// colons (:), or periods (.)
+$path = preg_split('(\/|:|\.)', get_include_path());
+if (!in_array(GLM_APP_BASE . 'glmPEAR', $path)) {
+ set_include_path(
+ GLM_APP_BASE . 'glmPEAR' . PATH_SEPARATOR . get_include_path()
+ );
+}
+
+if (!in_array(GLM_APP_BASE . 'glmZend', $path)) {
+ set_include_path(
+ GLM_APP_BASE . 'glmZend/1.10.2/library' . PATH_SEPARATOR . get_include_path()
+ );
+}
+
+// Include path to geocode API
+if (!in_array(GLM_APP_BASE . 'geocode', $path)) {
+ set_include_path(
+ GLM_APP_BASE . 'geocode' . PATH_SEPARATOR . get_include_path()
+ );
+}
+
+// }}}
+
+// {{{ autoloader
+// nullify any existing autoloads
+spl_autoload_register(null, false);
+// specify extensions that may be loaded
+spl_autoload_extensions();
+
+// {{{ classLoader()
+
+/**
+ * spl autoloader callback function
+ *
+ * @param string $className Name of the class to autoload
+ *
+ * @return false on error
+ */
+function classLoader($className)
+{
+ switch ($className) {
+ case 'GLM_DB' :
+ require_once BASE . 'classes/class_db.inc';
+ break;
+
+ case 'GLM_TOOLBOX' :
+ require_once BASE . 'classes/class_toolbox.inc';
+ break;
+
+ case 'GLM_TEMPLATE' :
+ require_once BASE . 'classes/class_template.inc';
+ break;
+
+ case 'GLM_EVENTS' :
+ require_once BASE . 'classes/class_events.inc';
+ break;
+
+ case 'guide' :
+ require_once BASE . 'classes/class_visitor_guide_form.inc';
+ break;
+
+ case 'event_form' :
+ require_once BASE . 'classes/class_event_form.inc';
+ break;
+
+ case 'html_quickform_rule_phone' :
+ case 'html_quickform_rule_email' :
+ case 'html_quickform_rule_zip' :
+ case 'html_quickform_rule_state' :
+ case 'html_quickform_rule_banwords' :
+ case 'html_quickform_rule_date' :
+ case 'html_quickform_rule_image' :
+ case 'html_quickform_rule_image2' :
+ case 'html_quickform_rule_memberimage' :
+ case 'html_quickform_rule_memberpackage' :
+ case 'html_quickform_rule_memberlogo' :
+ case 'html_quickform_rule_memberfile' :
+ case 'html_quickform_rule_amenity' :
+ case 'html_quickform_rule_banner' :
+ $path = explode('_', $className);
+ $className = ucfirst(end($path));
+ require_once GLM_APP_BASE . "glmPEAR/HTML/QuickForm/Rule/$className.php";
+ break;
+
+ default :
+ // Since our old naming conventions conflict w/ the pear
+ // naming conventions.
+ // Check to see what we're trying to call by checking if the
+ // file/class exits in the PEAR sturcture.
+ $class = implode('/', explode('_', $className));
+ if (file_exists(GLM_APP_BASE . "glmPEAR/$class.php")) {
+ require_once GLM_APP_BASE . "glmPEAR/$class.php";
+ } elseif (file_exists(GLM_APP_BASE . "glmZend/1.10.2/library/$class.php")) {
+ require_once GLM_APP_BASE . "glmZend/1.10.2/library/$class.php";
+ } elseif (file_exists(GLM_APP_BASE . "geocode/$class.php")) {
+ require_once GLM_APP_BASE . "geocode/$class.php";
+ } elseif (file_exists(GLM_APP_BASE . "$class.php")) {
+ require_once GLM_APP_BASE . "$class.php";
+ } elseif (file_exists(BASE . "$class.php")) {
+ require_once BASE . "$class.php";
+ } elseif (file_exists(BASE . "classes/$className.php")) {
+ require_once BASE . "classes/$className.php";
+ } else {
+ // Add check to search our entire search path for
+ // the desired class.
+ // fixes phpunit dying for missing classes.
+ $includePath = get_include_path();
+ if (strpos($includePath, PATH_SEPARATOR) !== false) {
+ if ( ($i = explode(PATH_SEPARATOR, $includePath))
+ && count($i) > 0
+ ) {
+ foreach ($i as $j) {
+ if (@file_exists("{$j}/{$class}.php")) {
+ require_once "{$j}/{$class}.php";
+ }
+ }
+ }
+ }
+
+ return false;
+ }
+ break;
+ }
+}
+
+// }}}
+
+// register the loader functions
+spl_autoload_register('classLoader');
+
+// }}}
+
+//set_error_handler(array('Toolkit_Logger', 'errorHandler'));
+if (!date_default_timezone_set('America/Detroit')) {
+ $logger =& Toolkit_Logger::getLogger();
+ $logger->warning('Default time zone not getting set.');
+}
+
+$serverConfig = new Zend_Config_Ini(
+ get_template_directory() . '/setup/config/server.ini',
+ strtolower($_ENV['GLM_HOST_ID'])
+);
+
+$siteConfig = new Zend_Config_Ini(
+ get_template_directory() . '/setup/config/site.ini',
+ strtolower($_ENV['GLM_HOST_ID'])
+);
+
+$applicationConfig = new Zend_Config_Ini(
+ get_template_directory() . '/setup/config/application.ini',
+ strtolower($_ENV['GLM_HOST_ID'])
+);
+
+/**
+ * Home page id of site
+ */
+define('HOME_ID', $siteConfig->home_id);
+/**
+ * Name used in title tag, admin area and emails
+ */
+define('SITENAME', $siteConfig->sitename);
+/**
+ * DB library type
+ */
+define('DB_TYPE', $serverConfig->database->type);
+/**
+ * Default error message
+ */
+define('DB_ERROR_MSG', $serverConfig->database->error->message);
+/**
+ * Default per page number
+ */
+define('ENTRIES_PER_PAGE', $siteConfig->entries_per_page);
+/**
+ * Turn on/off short url
+ */
+define('SHORT_URLS', $siteConfig->short_urls);
+/**
+ * Site has banner ad application?
+ */
+define('BANNERS', $applicationConfig->bannerdb->application);
+/**
+ * Site has contact db application?
+ */
+define('CONTACT_DB', $applicationConfig->contactdb->application);
+/**
+ * Sets the first year available in the year select lists in
+ */
+define('CONTACTS_FIRST_YEAR', $applicationConfig->contactdb->first_year);
+/**
+ * Used in the email out for contact DB
+ */
+define('PRODUCTION_MODE', $applicationConfig->contactdb->production_mode);
+/**
+ * Turn ON for html emails
+ */
+define('HTML_EMAIL', $applicationConfig->contactdb->html_email);
+/**
+ * Login Id for StreamSend account
+ */
+define('STREAMSEND_LOGIN_ID', $applicationConfig->contactdb->streamsend->login);
+/**
+ * key for StreamSend account
+ */
+define('STREAMSEND_KEY', $applicationConfig->contactdb->streamsend->key);
+/**
+ * StreamSend Account Name
+ */
+define('STREAMSEND_ACCOUNT_NAME', $applicationConfig->contactdb->streamsend->account_name);
+/**
+ * StreamSend Audience Number
+ */
+define('STREAMSEND_AUDIENCE', $applicationConfig->contactdb->streamsend->audience);
+/**
+ * Site uses streamsend module?
+ */
+define('STREAMSEND_FORMS_API', $applicationConfig->contactdb->streamsend->application);
+/**
+ * Coupons Database Installed?
+ */
+define('COUPONS', $applicationConfig->coupons->application);
+/**
+ * Site has event db application?
+ */
+define('EVENT_DB', $applicationConfig->eventdb->application);
+/**
+ * Page for the event calendar
+ */
+define('EVENT_PAGE', $applicationConfig->eventdb->event_page);
+/**
+ * Site has home page Events?
+ */
+define('HOME_EVENTS', $applicationConfig->eventdb->home_events);
+/**
+ * Site has google search api key?
+ */
+define('GOOGLE_SEARCH', $applicationConfig->google->search->application);
+/**
+ * Site has home page Headlines?
+ */
+define('HOME_HEADLINES', $applicationConfig->headlines->application);
+/**
+ * Member Database Installed?
+ */
+define('MEMBERS_DB', $applicationConfig->memberdb->application);
+/**
+ * Members login page catid
+ */
+define('MEMBERS_CATEGORY', $applicationConfig->memberdb->login_page);
+/**
+ * Toolbox page id for splash page when members log into members only area
+ */
+define('MEMBERS_ONLY_HOME_PAGE', $applicationConfig->memberdb->members->home_page);
+/**
+ * Toolbox page id for member events
+ */
+define('MEMBERS_EVENT_PAGE', $applicationConfig->memberdb->members->event_page);
+/**
+ * Toolbox page id for edit profile form in members only area
+ */
+define('MEMBERS_PROFILE_FORM_PAGE', $applicationConfig->memberdb->members->profile_form_page);
+/**
+ * Toolbox page id for coupon module in members only area
+ */
+define('MEMBERS_COUPONS_PAGE', $applicationConfig->memberdb->members->coupons->page);
+/**
+ * Toolbox page id for coupon module in members only area
+ */
+define('MEMBERS_COUPON_NOTIFICATION_EMAIL', $applicationConfig->memberdb->members->coupons->notification_email);
+/**
+ * Toolbox page id for events module in members only area
+ */
+define('MEMBERS_EVENTS_PAGE', $applicationConfig->memberdb->members->events_page);
+define('MEMBERS_EVENTS_NOTIFICATION_EMAIL', $applicationConfig->memberdb->members->events->notification_email);
+/**
+ * Toolbox page id for reports module in members only area
+ */
+define('MEMBERS_REPORTS_PAGE', $applicationConfig->memberdb->members->reports_page);
+/**
+ * Toolbox page id for leads module in members only area
+ */
+define('MEMBERS_LEADS_PAGE', $applicationConfig->memberdb->members->leads_page);
+/**
+ * Toolbox page id for member trip planner page
+ */
+define('MEMBER_SESSION_LIST', $applicationConfig->memberdb->session->list);
+/**
+ * The id of the page for the planner output
+ */
+define('MEMBER_SESSION_PAGE', $applicationConfig->memberdb->session->page);
+/**
+ * The id of the page for the create account form
+ */
+define('MEMBER_SESSION_FORM', $applicationConfig->memberdb->session->form);
+/**
+ * Members uses streamsend module?
+ */
+//define('MEMBER_STREAMSEND_API', $applicationConfig->memberdb->streamsend->application);
+/**
+ * Site has home page news Press/newsletter?
+ */
+define('HOME_NEWS', $applicationConfig->news->application);
+/**
+ * Site has photo gallery?
+ */
+define('PHOTO_GALLERY', $applicationConfig->photo_gallery->application);
+/**
+ * Site has postcard application
+ */
+define('POSTCARD_DB', $applicationConfig->postcarddb->application);
+/*
+ * Site has rotating images application?
+ */
+define('ROTATING_IMAGES', $applicationConfig->rotating_images->application);
+/**
+ * Grab weather feed for site?
+ */
+define('WEATHER', $applicationConfig->weather->application);
+/**
+ * Grab weather feed for site?
+ */
+define('GIFT_CERTIFICATES', $applicationConfig->gift_certificates->application);
+/**
+ * Site has Event Registrations
+ */
+define('EVENT_REGISTRATION', $applicationConfig->event_registration->application);
+/**
+ * Site is Mobile enabled
+ */
+define('MOBILE_SITE', $siteConfig->mobile_site);
+
+$pathParts = pathinfo($BASE_PATH);
+/**
+ * Server directory ie (www.gaslightmedia.com, demo.gaslightmedia.com)
+ */
+define('SERVER_DIRECTORY', $pathParts['basename']);
+
+$isSecurePage = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on');
+/**
+ * absolute url path for site
+ */
+define('SITE_URL', $serverConfig->site_url);
+/**
+ * Link URL to access mobile site home page
+ */
+define('MOBILE_LINK', $serverConfig->mobile->link);
+define('HAVE_MOBILE_HOSTNAME', $serverConfig->mobile->hostname);
+/**
+ * API key for google search AJAX
+ */
+define('GSEARCH_API', $serverConfig->google->search->key);
+/**
+ * site restriction to use for google searches
+*/
+define('GSEARCH_SITE_RESTRICTION', $serverConfig->google->search->site_restriction);
+/**
+ * API key for google maps
+ */
+define('GMAPS_API', $serverConfig->google->maps->key);
+/**
+ * URI to the common GLM application repository
+ */
+define('GLM_APP_BASE_URL', $serverConfig->app->base_url);
+define('GLM_APP_BASE_SECURE_URL', $serverConfig->app->base_secure_url);
+/**
+ * Who to send email address to on production servers when fatal error is encountered
+ */
+define('ERROR_EMAIL_ADDRESS', $serverConfig->error->email);
+if ($serverConfig->error->reporting instanceof Traversable) {
+
+ $values = array();
+ foreach ($serverConfig->error->reporting as $value) {
+ $values[] = $value;
+ }
+ $lambdaFunction = create_function('$a, $b', 'return $a ^ $b;');
+ $level = array_reduce($values, $lambdaFunction, 0);
+} else {
+ $level = $serverConfig->error->reporting;
+}
+/**
+ * Turn off all error reporting
+ */
+error_reporting($level);
+/**
+ * Don't print errors to the screen as part of output
+ */
+ini_set('display_errors', $serverConfig->error->display);
+$fileServerUrl = $isSecurePage
+ ? $serverConfig->file_server->secure
+ : $serverConfig->file_server->unsecure;
+/**
+ * URL of which file server to use
+ */
+define('FILE_SERVER_URL', $fileServerUrl);
+/**
+ * Type of Log subclass to use
+ */
+define('ERROR_LOG_TYPE', $serverConfig->error->type);
+/**
+ * Constant of log store to use
+ */
+//define('ERROR_LOG_NAME', constant($serverConfig->error->name));
+/**
+ * Identity reported to the log system
+ */
+define('ERROR_LOG_IDENT', $serverConfig->error->ident);
+/**
+ * Log messages up to and including this level
+ */
+//define('ERROR_LOG_LEVEL', constant($serverConfig->error->level));
+/**
+ * additional configuration for ERROR_LOG_TYPE subclass
+ */
+//$ERROR_LOG_CONF = array(
+// 'destination' => $serverConfig->error->conf->path
+// . constant($serverConfig->error->conf->server)
+// . "/{$serverConfig->error->conf->file}",
+// 'lineFormat' => $serverConfig->error->conf->line_format,
+//);
+
+// CPS 2/20/13 $BASE_SECURE_URL = "https://$base_url";
+$BASE_SECURE_URL = "http://$base_url";
+/**
+ * Url used for the secure site
+ *
+ * For some sites it is necessary to change BASE_URL when in secure mode
+ */
+define('BASE_SECURE_URL', "$BASE_SECURE_URL/");
+// This needs to be set to the real url ie. http://demo.gaslightmedia.com
+if ($isSecurePage) {
+ $BASE_URL = "http://$base_url";
+}
+/**
+ * Database Connection String
+ */
+define('CONN_STR', "host={$serverConfig->database->params->host} user={$serverConfig->database->params->username} dbname={$serverConfig->database->params->dbname}");
+/**
+ * DSN Connection String
+ */
+define('DSN', "{$serverConfig->database->adapter}://{$serverConfig->database->params->username}@{$serverConfig->database->params->host}/{$serverConfig->database->params->dbname}");
+/**
+ * Used for error reporting
+ *
+ * When in development mode, more info is displayed if errors occur.
+ */
+define('DEVELOPMENT', $serverConfig->development);
+/**
+ * Site owners email address
+ */
+define('OWNER_EMAIL', $serverConfig->email->owner);
+/**
+ * From header for admin/Contact mailout.
+ */
+define('FROM_NEWS_EMAIL', $serverConfig->email->from_news);
+/**
+ * From headers for admin/MContact
+ */
+define('FROM_MEMBER_NEWS_EMAIL', $serverConfig->email->from_member_news);
+/**
+ * Reply header for admin/MContact
+ */
+define('REPLY_MEMBER_NEWS_EMAIL', $serverConfig->email->reply_member_news);
+/**
+ * which email address should the notifications go to when a member
+ */
+define('MEMBER_RECORD_UPDATES_ADVISOR', $serverConfig->email->member_record_updates_advisor);
+/**
+ * Reply-To email used in the members forgot password email
+ */
+define('MEMBER_FORGOT_PASSWORD_EMAIL_REPLY_TO', $serverConfig->email->member_forgot_password_email_reply_to);
+/**
+ * This is where the first email goes.
+ * To notify the site owner that gift cert is ordered
+ */
+define('GIFTCERT_EMAIL', $serverConfig->email->giftcert);
+/**
+ * Used as the From address
+ */
+define('GIFTCERT_FROM_EMAIL', $serverConfig->email->giftcert_from);
+/**
+ * This email containes sensitive info and must be upnorth.net address
+ */
+define('GIFTCERT_SECURE_EMAIL', $serverConfig->email->giftcert_secure);
+/**
+ * in admin/Contact mailout.phtml file
+ * Reply-To: header
+ */
+define('REPLY_TO', $serverConfig->email->reply_to);
+/**
+ * Dead email address for forms w/ one-way communication
+ */
+define('DO_NOT_REPLY_EMAIL', $serverConfig->email->do_not_reply);
+/**
+ * The email address to send the banner reports to
+ * for the site admin
+ */
+define('BANNER_REPORTS_ADMIN_EMAIL', $serverConfig->email->banner_reports_admin);
+/**
+ * The email address to send banner expiration notices to
+ */
+define('EXPIRING_BANNER_NOTIFICATION_EMAIL', $serverConfig->email->expiring->banner_notification);
+/**
+ * Authorize.net processing parameters
+ * ALSO SEE "Authorize.Net Configuration" SECTION BELOW CONDITIONAL SETTINGS
+ */
+define('AUTH_TEST', $serverConfig->auth->test);
+define('AUTH_SEND_CONF', $serverConfig->auth->send_conf);
+define('AUTH_MERCHANT_EMAIL', $serverConfig->auth->merchant_email);
+define('AUTH_DEBUG', $serverConfig->auth->debug);
+/**
+ * Enable Ticketing System
+ */
+define('TICKETING', $applicationConfig->ticketing->available);
+define("TICKETS_CAT_ID", $applicationConfig->ticketing->catid);
+define("TICKETS_CAT_SEO", $applicationConfig->ticketing->cat_seo);
+
+define('LIBJS_ENV', $serverConfig->resources->environment->javascript);
+define('CSS_ENV', $serverConfig->resources->environment->css);
+
+if ($version = filter_var($serverConfig->resources->version, FILTER_VALIDATE_INT)) {
+ // do nothing - its already set
+} else {
+ $version = mt_rand();
+}
+/**
+ * Site Versioning for cachebusting
+ */
+define('VERSION', $version);
+
+$secureUrl = $isSecurePage ? BASE_SECURE_URL : BASE_URL;
+
+$forceCompile = (DEVELOPMENT || $isSecurePage);
+
+$flexyOptions = array(
+ 'templateDir' => BASE . 'templates',
+ 'compileDir' => BASE . 'templates/compiled',
+ 'forceCompile' => $forceCompile,
+ 'url_rewrite' => "baseurl/::".BASE_URL.",basesecureurl/::$secureUrl,glmappbaseurl/::" . GLM_APP_BASE_URL,
+ 'allowPHP' => true,
+);
+
+$cacheOptions = array(
+ 'cacheDir' => BASE . 'cache/',
+ 'writeControl' => true,
+ 'lifeTime' => (DEVELOPMENT) ? 0 : null,
+ 'readControl' => true,
+ 'fileNameProtection' => false,
+ 'readControlType' => 'md5',
+);
+
+// Global arrays to store resources for apps.
+$topScripts = array();
+$bottomScripts = array();
+$styleSheets = array();
+
+// help guide base (depreciated)
+define('HELP_BASE', 'help/');
+// uploads directory path
+define('UP_BASE', BASE . 'uploads/');
+// the images url path
+define('IMG_BASE', URL_BASE . 'images/');
+
+// Toolbox image paths
+define('ORIGINAL_PATH', BASE . 'images/original/');
+define('RESIZED_PATH', BASE . 'images/resized/');
+define('MIDSIZED_PATH', BASE . 'images/midsized/');
+define('THUMB_PATH', BASE . 'images/thumb/');
+
+// Amenity icon path
+define('AMENITY_PATH', BASE . 'images/amenities/');
+
+$imageURLBase = $isSecurePage ? BASE_SECURE_URL : BASE_URL;
+
+// Toolbox image URLS
+// Now using new Image Server
+/**
+ * Now using new Image Server
+ * http://is0.gaslightmedia.com/admin
+ * setup new owner with owner_id and owner_pw
+ * MUST BE DONE BEFORE uploading any images
+ */
+/**
+* IS_OWNER_ID owner_id from image server config
+ */
+define('IS_OWNER_ID', $serverConfig->file_server->owner_id);
+/**
+ * IS_OWNER_PW owner_pw from image server config
+ */
+define('IS_OWNER_PW', $serverConfig->file_server->owner_password);
+/**
+ * Toolbox image URLS
+ * NOTE: these don't change
+ * There are 4 global "image styles"
+ * original = used for original images no processing
+ * tbs1 = used to be resized
+ * tbs2 = used to be midsized
+ * tbs3 = used to be thumb
+ * check on http://is0.gaslightmedia.com/admin under owner _SYSTEM_
+ * for their sizes
+ * if you need a different size you'll need to create image style for
+ * your owner with new sizes just use one of set style names
+ * tbs1,tbs2,tbs3 (do this before uploading the image will help)
+ */
+define('ORIGINAL', FILE_SERVER_URL.IS_OWNER_ID."/original/");
+define('RESIZED', FILE_SERVER_URL.IS_OWNER_ID."/tbs1/");
+define('MIDSIZED', FILE_SERVER_URL.IS_OWNER_ID."/tbs2/");
+define('THUMB', FILE_SERVER_URL.IS_OWNER_ID."/tbs3/");
+
+// Toolbox image rules
+define('TOOLBOX_ORIGINAL', ORIGINAL);
+define('TOOLBOX_RESIZED', RESIZED);
+define('TOOLBOX_MIDSIZED', MIDSIZED);
+define('TOOLBOX_THUMB', THUMB);
+
+/**
+ * These are defines for the photo gallery images
+ * NOTICE these are now on image server
+ * There are 2 global "image styles"
+ * pgs1 = used to be photo-large
+ * pgs2 = used to be photo-small
+ * check on http://is0.gaslightmedia.com/admin under owner _SYSTEM_
+ * for their sizes
+ */
+define('UPLOADED_FILES', FILE_SERVER_URL.IS_OWNER_ID.'/');
+
+define('PHOTO_LARGE_URL', FILE_SERVER_URL.IS_OWNER_ID."/pgs1/");
+define('PHOTO_SMALL_URL', FILE_SERVER_URL.IS_OWNER_ID."/pgs2/");
+
+/**
+ * Home page headlines thumbnail
+ */
+define('HOMEPAGE_HEADLINE_THUMB', FILE_SERVER_URL.IS_OWNER_ID."/homepageHeadlineThumb/");
+
+// Coupon Image rules
+define('COUPON_THUMB', FILE_SERVER_URL.IS_OWNER_ID.'/couponThumb/');
+
+// Rotating Image rules
+define('ROTATING_IMAGE_THUMB', FILE_SERVER_URL.IS_OWNER_ID.'/rotatingImagesThumb/');
+define('ROTATING_IMAGE_RESIZED', FILE_SERVER_URL.IS_OWNER_ID.'/rotatingImagesResized/');
+
+// Member image rules
+define('MEMBER_ORIGINAL', FILE_SERVER_URL.IS_OWNER_ID."/original/");
+define('MEMBER_RESIZED', FILE_SERVER_URL.IS_OWNER_ID."/memberResized/");
+define('MEMBER_MIDSIZED', FILE_SERVER_URL.IS_OWNER_ID."/memberMidsized/");
+define('MEMBER_THUMB', FILE_SERVER_URL.IS_OWNER_ID."/memberThumb/");
+define('MEMBER_PHOTOS', FILE_SERVER_URL.IS_OWNER_ID."/memberPhotos/");
+define('MEMBER_PACKAGES', FILE_SERVER_URL.IS_OWNER_ID."/memberResized/");
+define('MEMBER_GOOGLE_MAP', FILE_SERVER_URL.IS_OWNER_ID."/memberGoogleMap/");
+define('MEMBER_UPLOADED_FILES', BASE . 'uploads/member_files/');
+define('TRIP_PLANNER_MAP_IMG', FILE_SERVER_URL.IS_OWNER_ID."/tripPlannerMapImg/");
+
+// Banner image rules
+define('BANNER_ORIGINAL', FILE_SERVER_URL.IS_OWNER_ID.'/original/');
+define('HORIZONTAL_BANNER', FILE_SERVER_URL.IS_OWNER_ID.'/horizontalBanner/');
+define('HORIZONTAL_BANNER_THUMB', FILE_SERVER_URL.IS_OWNER_ID.'/horizontalBannerThumb/');
+define('VERTICAL_BANNER', FILE_SERVER_URL.IS_OWNER_ID.'/verticalBanner/');
+define('VERTICAL_BANNER_THUMB', FILE_SERVER_URL.IS_OWNER_ID.'/verticalBannerThumb/');
+
+// Press image rules
+define('PRESS_ORIGINAL', TOOLBOX_ORIGINAL);
+define('PRESS_RESIZED', TOOLBOX_RESIZED);
+define('PRESS_MIDSIZED', TOOLBOX_MIDSIZED);
+define('PRESS_THUMB', TOOLBOX_THUMB);
+
+// Event image rules
+define('EVENT_ORIGINAL', TOOLBOX_ORIGINAL);
+define('EVENT_RESIZED', TOOLBOX_RESIZED);
+define('EVENT_MIDSIZED', TOOLBOX_MIDSIZED);
+define('EVENT_THUMB', TOOLBOX_THUMB);
+
+// Form image rules
+define('FORM_ORIGINAL', TOOLBOX_ORIGINAL);
+define('FORM_RESIZED', TOOLBOX_RESIZED);
+define('FORM_MIDSIZED', TOOLBOX_MIDSIZED);
+define('FORM_THUMB', TOOLBOX_THUMB);
+
+// CKImage image rules
+/**
+ * This is the rule used to create the Maximum Allowed Size image
+ * we allow for CKEditor Images, which is (700x500)
+ *
+ * If the user resizes (edits) the image, it can be smaller
+ */
+define('CKIMAGE', FILE_SERVER_URL.IS_OWNER_ID."/CKImage/");
+define('CKIMAGE_ORIGINAL', TOOLBOX_ORIGINAL);
+define('CKIMAGE_RESIZED', TOOLBOX_RESIZED);
+define('CKIMAGE_MIDSIZED', TOOLBOX_MIDSIZED);
+define('CKIMAGE_THUMB', TOOLBOX_THUMB);
+/**
+ * This is the thumbnail image used in the GLM Image Browser
+ * attached to the new CKEditor
+ */
+define('IMAGE_MANAGER', FILE_SERVER_URL.IS_OWNER_ID."/imgMgr/");
+
+// Amenity image URLS
+define('AMENITY_THUMB', "{$imageURLBase}images/amenities/");
+// Icon image URLS
+define('ICONS_URL', "{$imageURLBase}images/");
+
+//
+// Authorize.Net Configuration
+//
+
+/**
+ * Curl executable
+ */
+define('AUTH_CURL', '/usr/bin/curl');
+/**
+ * Authorization URL
+ */
+define('AUTH_URL', 'https://secure.authorize.net/gateway/transact.dll');
+/**
+ * "TRUE" (use Authorize.net test mode), "FALSE", "LOCAL_TEST", "LOCAL_TEST_ERROR"
+ * Must be "FALSE" for production! - When using "LOCAL_TEST" only approves card '0011001100110011'
+ */
+//define('SI_AUTH_TEST', 'TRUE');
+/**
+ * Authorize.Net Customer Login -- UNIQE FOR EACH CUSTOMER --
+ */
+define('AUTH_LOGIN', 'xxxxxxx');
+/**
+ * Authorize.Net Customer Transaction Key -- UNIQE FOR EACH CUSTOMER --
+ */
+define('AUTH_TRAN_KEY', 'xxxxxxxxxxxxx');
+/**
+ * TRUE to have customer's receive E-Mail confirmation
+ */
+//define('AUTH_SEND_CONF', 'FALSE');
+/**
+ * TRUE to have merchant receive E-Mail convirmation of customer charges
+ */
+//define('AUTH_MERCHANT_EMAIL', 'TRUE');
+/**
+ * MD5 Hash secret used by Authorize.Net to generate MD5 response verification data
+ * If empty - don't check MD5 response
+ */
+define('AUTH_SECRET', '');
+
+// Transaction status types
+
+/**
+ * Unknown state
+ */
+define('AUTH_STATUS_UNKNOWN', 0);
+/**
+ * Declined by Authorize.net
+ */
+define('AUTH_STATUS_DECLINED', 1);
+/**
+ * Authorize.Net error
+ */
+define('AUTH_STATUS_ERROR', 2);
+/**
+ * Approved by Authorize.Net
+ */
+define('AUTH_STATUS_APPROVED', 10);
+/**
+ * Card manually processed
+ */
+define('AUTH_STATUS_MANUAL', 11);
+/**
+ * Paid by Check
+ */
+define('AUTH_STATUS_CHECK', 12);
+/**
+ * On Account
+ */
+define('AUTH_STATUS_ACCOUNT', 13);
+/**
+ * Paid by Other means
+ */
+define('AUTH_STATUS_OTHER_PAID', 14);
+/**
+ * Comp, no charge
+ */
+define('AUTH_STATUS_COMP', 15);
+
+$auth_status_list
+ = AUTH_STATUS_UNKNOWN.'^Unknown Card Status~'
+ . AUTH_STATUS_DECLINED.'^Declined by AuthorizeNet~'
+ . AUTH_STATUS_ERROR.'^AuthorizeNet Approval Error~'
+ . AUTH_STATUS_APPROVED.'^Approved by AuthorizeNet~'
+ . AUTH_STATUS_MANUAL.'^Card Approved Manually~'
+ . AUTH_STATUS_CHECK.'^Paid by Check~'
+ . AUTH_STATUS_ACCOUNT.'^Applied to Account~'
+ . AUTH_STATUS_OTHER_PAID.'^Paid by other means~'
+ . AUTH_STATUS_COMP.'^Comp, no charge';
+
+/*
+ * Load other applications
+ */
+
+if (defined('TICKETING') && TICKETING) {
+ include_once 'ticketing/config.inc';
+}
+
+// [status_US] array of states and their abbr.
+$states_US[''] = '-- Select --';// {{{
+$states_US['AL'] = 'Alabama';
+$states_US['AK'] = 'Alaska';
+$states_US['AZ'] = 'Arizona';
+$states_US['AR'] = 'Arkansas';
+$states_US['CA'] = 'California';
+$states_US['CO'] = 'Colorado';
+$states_US['CT'] = 'Connecticut';
+$states_US['DE'] = 'Delaware';
+$states_US['DC'] = 'District of Columbia';
+$states_US['FL'] = 'Florida';
+$states_US['GA'] = 'Georgia';
+$states_US['HI'] = 'Hawaii';
+$states_US['ID'] = 'Idaho';
+$states_US['IL'] = 'Illinois';
+$states_US['IN'] = 'Indiana';
+$states_US['IA'] = 'Iowa';
+$states_US['KS'] = 'Kansas';
+$states_US['KY'] = 'Kentucky';
+$states_US['LA'] = 'Louisiana';
+$states_US['ME'] = 'Maine';
+$states_US['MD'] = 'Maryland';
+$states_US['MA'] = 'Massachusetts';
+$states_US['MI'] = 'Michigan';
+$states_US['MN'] = 'Minnesota';
+$states_US['MS'] = 'Mississppi';
+$states_US['MO'] = 'Missouri';
+$states_US['MT'] = 'Montana';
+$states_US['NE'] = 'Nebraska';
+$states_US['NV'] = 'Nevada';
+$states_US['NH'] = 'New Hampshire';
+$states_US['NJ'] = 'New Jersey';
+$states_US['NM'] = 'New Mexico';
+$states_US['NY'] = 'New York';
+$states_US['NC'] = 'North Carolina';
+$states_US['ND'] = 'North Dakota';
+$states_US['OH'] = 'Ohio';
+$states_US['OK'] = 'Oklahoma';
+$states_US['OR'] = 'Oregon';
+$states_US['PA'] = 'Pennsylvania';
+$states_US['RI'] = 'Rhode Island';
+$states_US['SC'] = 'South Carolina';
+$states_US['SD'] = 'South Dakota';
+$states_US['TN'] = 'Tennessee';
+$states_US['TX'] = 'Texas';
+$states_US['UT'] = 'Utah';
+$states_US['VT'] = 'Vermont';
+$states_US['VA'] = 'Virginia';
+$states_US['WA'] = 'Washington';
+$states_US['WV'] = 'West Virginia';
+$states_US['WI'] = 'Wisconsin';
+$states_US['WY'] = 'Wyoming';// }}}
+
+// [states] extended states array
+$states['AB'] = 'Alberta';// {{{
+$states['AS'] = 'American Samoa';
+$states['BC'] = 'British Columbia';
+$states['DC'] = 'District of Columbia';
+$states['FM'] = 'Federated States of Micronesia';
+$states['GU'] = 'Guam';
+$states['MB'] = 'Manitoba';
+$states['MH'] = 'Marshall Islands';
+$states['NB'] = 'New Brunswick';
+$states['NF'] = 'Newfoundland';
+$states['MP'] = 'Northern Mariana Islands';
+$states['NT'] = 'Northwest Territories';
+$states['NS'] = 'Nova Scotia';
+$states['ON'] = 'Ontario';
+$states['PW'] = 'Palau';
+$states['PE'] = 'Prince Edward Island';
+$states['PR'] = 'Puerto Rico';
+$states['QC'] = 'Quebec';
+$states['SK'] = 'Saskatchewan';
+$states['VI'] = 'Virgin Islands';
+$states['YT'] = 'Yukon';// }}}
+
+// Merge the 50 US states together with some of the extended
+// provinces / territories and then sort them on their keys
+// Then add the remaining countries and areas at the end
+// of the array.
+$states = $states_US + $states;
+ksort($states);
+$states = $states + array(// {{{
+ 'Asia' => 'Asia',
+ 'Australia' => 'Australia',
+ 'Bahamas' => 'Bahamas',
+ 'Caribbean' => 'Caribbean',
+ 'Costa Rica' => 'Costa Rica',
+ 'South America' => 'South America',
+ 'South Africa' => 'South Africa',
+ 'Europe' => 'Europe',
+ 'Mexico' => 'Mexico',
+);// }}}
+
+// Libraries
+// Replaced with the actual functions instead of includes (2001-12-14)
+
+$cp1252_map = array(
+ "\xc2\x80" => "\xe2\x82\xac", // EURO SIGN
+ "\xc2\x82" => "\xe2\x80\x9a", // SINGLE LOW-9 QUOTATION MARK
+ "\xc2\x83" => "\xc6\x92", // LATIN SMALL LETTER F WITH HOOK
+ "\xc2\x84" => "\xe2\x80\x9e", // DOUBLE LOW-9 QUOTATION MARK
+ "\xc2\x85" => "\xe2\x80\xa6", // HORIZONTAL ELLIPSIS
+ "\xc2\x86" => "\xe2\x80\xa0", // DAGGER
+ "\xc2\x87" => "\xe2\x80\xa1", // DOUBLE DAGGER
+ "\xc2\x88" => "\xcb\x86", // MODIFIER LETTER CIRCUMFLEX ACCENT
+ "\xc2\x89" => "\xe2\x80\xb0", // PER MILLE SIGN
+ "\xc2\x8a" => "\xc5\xa0", // LATIN CAPITAL LETTER S WITH CARON
+ "\xc2\x8b" => "\xe2\x80\xb9", // SINGLE LEFT-POINTING ANGLE QUOTATION
+ "\xc2\x8c" => "\xc5\x92", // LATIN CAPITAL LIGATURE OE
+ "\xc2\x8e" => "\xc5\xbd", // LATIN CAPITAL LETTER Z WITH CARON
+ "\xc2\x91" => "\xe2\x80\x98", // LEFT SINGLE QUOTATION MARK
+ "\xc2\x92" => "\xe2\x80\x99", // RIGHT SINGLE QUOTATION MARK
+ "\xc2\x93" => "\xe2\x80\x9c", // LEFT DOUBLE QUOTATION MARK
+ "\xc2\x94" => "\xe2\x80\x9d", // RIGHT DOUBLE QUOTATION MARK
+ "\xc2\x95" => "\xe2\x80\xa2", // BULLET
+ "\xc2\x96" => "\xe2\x80\x93", // EN DASH
+ "\xc2\x97" => "\xe2\x80\x94", // EM DASH
+
+ "\xc2\x98" => "\xcb\x9c", // SMALL TILDE
+ "\xc2\x99" => "\xe2\x84\xa2", // TRADE MARK SIGN
+ "\xc2\x9a" => "\xc5\xa1", // LATIN SMALL LETTER S WITH CARON
+ "\xc2\x9b" => "\xe2\x80\xba", // SINGLE RIGHT-POINTING ANGLE QUOTATION
+ "\xc2\x9c" => "\xc5\x93", // LATIN SMALL LIGATURE OE
+ "\xc2\x9e" => "\xc5\xbe", // LATIN SMALL LETTER Z WITH CARON
+ "\xc2\x9f" => "\xc5\xb8", // LATIN CAPITAL LETTER Y WITH DIAERESIS
+);
+
+if ($includeFunctions) {
+ /**
+ * all setup function in setup_functions.phtml
+ */
+ //require_once BASE_PATH . "setup_functions.phtml";
+}
+/*
+$constants = get_defined_constants(true);
+echo '<pre>$constants: ' . print_r( $constants['user'], true ) . '</pre>';
+exit;
+ */
+?>