- Timestamp:
- Jul 24, 2009, 3:24:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/xpressme_integration_kit/wp-content/plugins/xpressme/include/pluggable-override.php
r312 r348 250 250 $location = wp_sanitize_redirect($location); 251 251 252 if ( $is_IIS ) { 253 header("Refresh: 0;url=$location"); 254 } else { 255 if ( php_sapi_name() != 'cgi-fcgi' ) 256 status_header($status); // This causes problems on IIS and some FastCGI setups 257 header("Location: $location"); 252 if (!headers_sent()) { 253 ob_end_clean(); 254 if ( $is_IIS ) { 255 header("Refresh: 0;url=$location"); 256 } else { 257 if ( php_sapi_name() != 'cgi-fcgi' ) 258 status_header($status); // This causes problems on IIS and some FastCGI setups 259 header("Location: $location"); 260 } 261 } else { // force redirect 262 echo ("<HTML>"); 263 echo("<META http-equiv=\"Refresh\" content=\"0;url=$location\">"); 264 echo ("<BODY onload=\"try {self.location.href='$location' } catch(e) {}\">"); 265 printf(__("If the page does not automatically reload, please click <a href='%s'>here</a>","xpressme"),$location); 266 echo ("</BODY>"); 267 echo ("</HTML>"); 258 268 } 259 269 }
Note: See TracChangeset
for help on using the changeset viewer.