wordfence
Last commit date
css
13 years ago
images
14 years ago
js
13 years ago
lib
13 years ago
tmp
13 years ago
.htaccess
14 years ago
readme.txt
13 years ago
screenshot-1.png
14 years ago
screenshot-2.png
14 years ago
screenshot-3.png
14 years ago
screenshot-4.png
14 years ago
screenshot-5.png
14 years ago
visitor.php
13 years ago
wfscan.php
13 years ago
wordfence.php
13 years ago
wordfence.php
26 lines
| 1 | <?php |
| 2 | /* |
| 3 | Plugin Name: Wordfence Security |
| 4 | Plugin URI: http://wordfence.com/ |
| 5 | Description: Wordfence Security - Anti-virus and Firewall security plugin for WordPress |
| 6 | Author: Mark Maunder |
| 7 | Version: 3.3.3 |
| 8 | Author URI: http://wordfence.com/ |
| 9 | */ |
| 10 | define('WORDFENCE_VERSION', '3.3.3'); |
| 11 | add_action('activated_plugin','wordfence_save_activation_error'); function wordfence_save_activation_error(){ update_option('wf_plugin_act_error', ob_get_contents()); } |
| 12 | if(! defined('WORDFENCE_VERSIONONLY_MODE')){ |
| 13 | if((int) @ini_get('memory_limit') < 64){ |
| 14 | if(strpos(ini_get('disable_functions'), 'ini_set') === false){ |
| 15 | @ini_set('memory_limit', '64M'); //Some hosts have ini set at as little as 32 megs. 64 is the min sane amount of memory. |
| 16 | } |
| 17 | } |
| 18 | require_once('lib/wordfenceConstants.php'); |
| 19 | require_once('lib/wordfenceClass.php'); |
| 20 | register_activation_hook(WP_PLUGIN_DIR . '/wordfence/wordfence.php', 'wordfence::installPlugin'); |
| 21 | register_deactivation_hook(WP_PLUGIN_DIR . '/wordfence/wordfence.php', 'wordfence::uninstallPlugin'); |
| 22 | wordfence::install_actions(); |
| 23 | } |
| 24 | |
| 25 | ?> |
| 26 |