function force_https() { if (ao_get_in_vendorarea() || ao_get_require_ssl()) { if ($_SERVER['SERVER_PORT'] != '443') { $strLocation = 'https://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; header("Location: {$strLocation}"); exit; } } else { if ($_SERVER['SERVER_PORT'] == '443') { $strLocation = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; header("Location: {$strLocation}"); exit; } } }
<?php } ?> <script type='text/javascript' src='/wp-includes/js/swfobject.js?ver=2.1'></script> <script type="text/javascript" src="/media/js/spry/SpryCollapsiblePanel.js"></script> <script type="text/javascript" src="/media/js/colorbox/jquery.colorbox-min.js"></script> <script type="text/javascript"> // ColorBox flyouts START $(document).ready(function(){ $(".issue_link").colorbox({width:"90%", height:"90%", iframe:true}); $(".contact_link").colorbox({width:"700px", height:"600px", iframe:true, scrolling:false}); $(".register_link").colorbox({width:"825px", height:"90%", iframe:true, scrolling:true, close:"Close"}); <?php if (ao_get_in_vendorarea()) { ?> $("#advertiser_tc_link").colorbox({width:"700px", height:"600px", iframe:true}); $("#advertiser_tc_link2").colorbox({width:"700px", height:"600px", iframe:true}); <?php } //if ($_SERVER['REMOTE_ADDR'] == '76.17.3.14') { if (ao_get_in_guide() && !ao_get_regprompted()) { //echo ' $.fn.colorbox({width:"700px", height:"600px", iframe:true, scrolling:false, href:"/register/", open:true});'; echo ' $.fn.colorbox({width:"825px", height:"90%", iframe:true, scrolling:true, href:"/register/", close:"Close", open:true});'; } //} ?> // ColorBox flyouts END $('area').each(function() { $(this).qtip({