rose.water Posted July 2, 2007 Posted July 2, 2007 I want to have this code in the pages footer, does anyone know the php code to ensure that it only shows on nonsecure pages (http only, not https)? <script type="text/javascript" src="http://static.robotreplay.com/nitobi.replay.js"> </script> It's probably going to be similar to this code, but with the robot replay code: <?php $request_type = (($request_type == 'SSL') ? HTTPS_SERVER : HTTP_SERVER); if ($request_type == HTTPS_SERVER) { define('GOOGLE_HTTP', 'https://ssl.'); } else { define('GOOGLE_HTTP', 'http://www.'); } ?> <script src="<?php echo((GOOGLE_HTTP) . 'google-analytics.com/urchin.js'); ?>"> <script type="text/javascript"> _uacct = "UA-XXXXXXX-X"; urchinTracker(); </script>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.