wordfence
Last commit date
css
11 years ago
images
11 years ago
js
11 years ago
lib
11 years ago
tmp
13 years ago
views
11 years ago
index.php
13 years ago
readme.txt
11 years ago
wordfence.php
11 years ago
wordfence.php
30 lines
| 1 | <?php |
| 2 | /* |
| 3 | Plugin Name: Wordfence Security |
| 4 | Plugin URI: http://www.wordfence.com/ |
| 5 | Description: Wordfence Security - Anti-virus, Firewall and High Speed Cache |
| 6 | Author: Wordfence |
| 7 | Version: 6.0.2 |
| 8 | Author URI: http://www.wordfence.com/ |
| 9 | */ |
| 10 | if(defined('WP_INSTALLING') && WP_INSTALLING){ |
| 11 | return; |
| 12 | } |
| 13 | define('WORDFENCE_VERSION', '6.0.2'); |
| 14 | if(get_option('wordfenceActivated') != 1){ |
| 15 | add_action('activated_plugin','wordfence_save_activation_error'); function wordfence_save_activation_error(){ update_option('wf_plugin_act_error', ob_get_contents()); } |
| 16 | } |
| 17 | if(! defined('WORDFENCE_VERSIONONLY_MODE')){ //Used to get version from file. |
| 18 | if((int) @ini_get('memory_limit') < 128){ |
| 19 | if(strpos(ini_get('disable_functions'), 'ini_set') === false){ |
| 20 | @ini_set('memory_limit', '128M'); //Some hosts have ini set at as little as 32 megs. 64 is the min sane amount of memory. |
| 21 | } |
| 22 | } |
| 23 | require_once('lib/wordfenceConstants.php'); |
| 24 | require_once('lib/wordfenceClass.php'); |
| 25 | wordfence::install_actions(); |
| 26 | } |
| 27 | |
| 28 | |
| 29 | ?> |
| 30 |