Options cleanup and some styling changes.

git-svn-id: https://develop.svn.wordpress.org/trunk@4196 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2006-09-19 06:11:42 +00:00
parent fd6a645679
commit 06f0097a94
16 changed files with 53 additions and 150 deletions
-12
View File
@@ -1002,18 +1002,6 @@ function wp_check_filetype($filename, $mimes = null) {
return compact('ext', 'type');
}
function wp_proxy_check($ipnum) {
if ( get_option('open_proxy_check') && isset($ipnum) ) {
$ipnum = preg_replace( '/([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}).*/', '$1', $ipnum );
$rev_ip = implode( '.', array_reverse( explode( '.', $ipnum ) ) );
$lookup = $rev_ip . '.sbl-xbl.spamhaus.org.';
if ( $lookup != gethostbyname( $lookup ) )
return true;
}
return false;
}
function wp_explain_nonce($action) {
if ( $action !== -1 && preg_match('/([a-z]+)-([a-z]+)(_(.+))?/', $action, $matches) ) {
$verb = $matches[1];