if (strpos($ua, 'iphone') !== false) { header("Location: ./iphone/"); } // ******************************************************** // BIG Folio start page // This is the BIG Folio site default page // Here, we will be grabbing settings, and performing // necessary functions, etc. // ******************************************************** // Include database connection and functions include('inc/db.inc.php'); include('inc/functions.inc.php'); include('inc/classTextile.php'); // Save this visit to the stats save_visit(); // If this is an HTML template, include the file if (get_property('TEMPLATE_TYPE') == 'HTML') { include(get_property('TEMPLATE')); die(); } // Get the site settings $_SETTINGS = get_settings(); // Now, branch on the entry mode // Check for iPhone and mobile phones if (is_iphone()) { header("Location:./iphone/"); } else if (is_mobile()) { header("Location:./m/"); } if ($_SETTINGS['start_mode'] == 'ENTRY') { // Start mode is the entry page // Call functions to load and display the entry form echo get_template('ENTRY_PAGE',$_SETTINGS); } else if ($_SETTINGS['start_mode'] == 'DETECT') { // Start mode is Flash Detection // Load the Flash Detection script echo get_template('DETECT_PAGE',$_SETTINGS); } else if ($_SETTINGS['start_mode'] == 'FLASH') { // Start mode is go to primary page // Load main page template echo get_template('MAIN_PAGE',$_SETTINGS); } ?>