0 ? substr($_SERVER['REQUEST_URI'], 1, strpos($_SERVER['REQUEST_URI'], '?') - 1) : substr($_SERVER['REQUEST_URI'], 1) )); $SYSTEM['page'] = $SYSTEM['pages'][0]; if(empty($SYSTEM['page'])) $SYSTEM['phppage'] = 'home'; elseif(!empty($SYSTEM['page']) && file_exists('../page/'. $SYSTEM['page'] .'.php')) $SYSTEM['phppage'] = $SYSTEM['page']; if(empty($SYSTEM['phppage'])) $SYSTEM['phppage'] = '404'; // TEMPORARY - ORDER PAGE NOT ON HTTPS $secure_page = array('contact-info', 'thank-you'); //$secure_page = array('order', 'contact-info', 'thank-you'); if($SYSTEM['phppage'] != 'ajax-form') { if((empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] != 'on') && in_array($SYSTEM['phppage'], $secure_page)) { header('HTTP/1.1 301 Moved Permanently'); header('Location: https://secure.1000mbps.com'. $_SERVER['REQUEST_URI']); exit; } elseif(!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on' && !in_array($SYSTEM['phppage'], $secure_page)) { header('HTTP/1.1 301 Moved Permanently'); header('Location: http://www.1000mbps.com'. $_SERVER['REQUEST_URI']); exit; } } require_once('../page/'. $SYSTEM['phppage'] .'.php'); ?>