Changeset 4196 for trunk/wp-includes/functions.php
- Timestamp:
- 09/19/2006 06:11:42 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r4194 r4196 1003 1003 } 1004 1004 1005 function wp_proxy_check($ipnum) {1006 if ( get_option('open_proxy_check') && isset($ipnum) ) {1007 $ipnum = preg_replace( '/([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*/', '$1', $ipnum );1008 $rev_ip = implode( '.', array_reverse( explode( '.', $ipnum ) ) );1009 $lookup = $rev_ip . '.sbl-xbl.spamhaus.org.';1010 if ( $lookup != gethostbyname( $lookup ) )1011 return true;1012 }1013 1014 return false;1015 }1016 1017 1005 function wp_explain_nonce($action) { 1018 1006 if ( $action !== -1 && preg_match('/([a-z]+)-([a-z]+)(_(.+))?/', $action, $matches) ) {
Note: See TracChangeset
for help on using the changeset viewer.