[wp-cvs] wordpress/wp-includes functions-post.php,1.44,1.45

Ernest MacDougal Campbell III emc3 at users.sourceforge.net
Wed Feb 16 21:36:01 GMT 2005


Update of /cvsroot/cafelog/wordpress/wp-includes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21200/wp-includes

Modified Files:
	functions-post.php 
Log Message:
This really deserves to be in a separate function so that plugins can get at it more easily, don't you think?

Index: functions-post.php
===================================================================
RCS file: /cvsroot/cafelog/wordpress/wp-includes/functions-post.php,v
retrieving revision 1.44
retrieving revision 1.45
diff -C2 -d -r1.44 -r1.45
*** functions-post.php	14 Feb 2005 04:51:14 -0000	1.44
--- functions-post.php	16 Feb 2005 21:35:58 -0000	1.45
***************
*** 439,444 ****
  	}
  	
! 	if ( get_option('open_proxy_check') && isset($_SERVER['REMOTE_ADDR']) ) {
! 		$rev_ip = implode( '.', array_reverse( explode( '.', $_SERVER['REMOTE_ADDR'] ) ) );
  		$lookup = $rev_ip . '.opm.blitzed.org';
  		if ( $lookup != gethostbyname( $lookup ) )
--- 439,452 ----
  	}
  	
! 	if ( isset($_SERVER['REMOTE_ADDR']) ) {
! 		if ( $wp_proxy_check($_SERVER['REMOTE_ADDR']) ) return true;
! 	}
! 
! 	return false;
! }
! 
! function wp_proxy_check($ipnum) {
! 	if ( get_option('open_proxy_check') && isset($ipnum) ) {
! 		$rev_ip = implode( '.', array_reverse( explode( '.', $ipnum ) ) );
  		$lookup = $rev_ip . '.opm.blitzed.org';
  		if ( $lookup != gethostbyname( $lookup ) )



More information about the cvs mailing list