Changeset 1340902
- Timestamp:
- 02/01/2016 08:34:03 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
clicksold-wordpress-plugin/trunk/cs_listings_plugin.php
r1338971 r1340902 466 466 if(isset($_SERVER['HTTP_USER_AGENT']) && !cs_str_ends_with( $_SERVER["PHP_SELF"], "CS_ajax_request.php" )) { 467 467 if((stripos(basename($_SERVER['REQUEST_URI']), 'cs_mobile.php') === FALSE) && (!isset($_COOKIE["csFullSite"]) || $_COOKIE["csFullSite"] != "true") && (strpos($_SERVER['HTTP_USER_AGENT'], 'iPad') !== FALSE || strpos($_SERVER['HTTP_USER_AGENT'], 'iPod') !== FALSE || strpos($_SERVER['HTTP_USER_AGENT'], 'iPhone') !== FALSE || strpos($_SERVER['HTTP_USER_AGENT'], 'Android') !== FALSE || strpos($_SERVER['HTTP_USER_AGENT'], 'BlackBerry') !== FALSE) ){ 468 469 // The cs_mobile_site_disabled() routine uses CS_request which eventually uses - wp_get_current_user() which comes from wp-inclues/pluggable.php. However pluggable has not yet been loaded at this stage. We include $ 470 // Note, we can't just include it at the top for all requests as that causes incompatabilities with other plugins. See the notes above where the pluggable include is disabled. 471 require_once(ABSPATH. 'wp-includes/pluggable.php'); 472 468 473 if(cs_mobile_site_disabled() == false) { 469 474 header('location:' . plugin_dir_url(__FILE__) . 'cs_mobile.php');
Note: See TracChangeset
for help on using the changeset viewer.