Changeset 221423
- Timestamp:
- 03/24/2010 05:38:21 PM (16 years ago)
- File:
-
- 1 edited
-
super-secret/tags/0.1/super_secret.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
super-secret/tags/0.1/super_secret.php
r221401 r221423 11 11 12 12 function super_secret() { 13 if (basename($_SERVER['PHP_SELF']) != 'wp-login.php') { 13 global $current_user; 14 15 if ($current_user->ID == 0 && basename($_SERVER['PHP_SELF']) != 'wp-login.php') { 14 16 header("HTTP/1.0 404 Not Found"); ?> 15 17 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> … … 20 22 The requested URL was not found on this server. 21 23 <HR> 22 <?php if ($_SERVER['REMOTE_ADDR'] ): ?>24 <?php if ($_SERVER['REMOTE_ADDR'] == '127.0.0.1'): ?> 23 25 The WordPress Plugin Super Secret stopped you. You need to login to access your <a href="<?php echo wp_login_url(); ?>">installation.</a> 24 26 <?php endif; ?> … … 29 31 } 30 32 31 add_action(' auth_cookie_malformed', 'super_secret');33 add_action('set_current_user', 'super_secret');
Note: See TracChangeset
for help on using the changeset viewer.