wordfence
Last commit date
css
14 years ago
images
14 years ago
js
14 years ago
lib
14 years ago
readme.txt
14 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
14 years ago
wfscan.php
14 years ago
wordfence.php
14 years ago
visitor.php
32 lines
| 1 | <?php |
| 2 | ignore_user_abort(true); |
| 3 | if ( !defined('ABSPATH') ) { |
| 4 | /** Set up WordPress environment */ |
| 5 | if($_SERVER['SCRIPT_FILENAME']){ |
| 6 | $wfBaseDir = preg_replace('/[^\/]+\/[^\/]+\/[^\/]+\/visitor\.php$/', '', $_SERVER['SCRIPT_FILENAME']); |
| 7 | require_once($wfBaseDir . 'wp-load.php'); |
| 8 | global $wp_version; |
| 9 | global $wordfence_wp_version; |
| 10 | require($wfBaseDir . 'wp-includes/version.php'); |
| 11 | $wordfence_wp_version = $wp_version; |
| 12 | } else { |
| 13 | require_once('../../../wp-load.php'); |
| 14 | require_once('../../../wp-includes/version.php'); |
| 15 | } |
| 16 | |
| 17 | } |
| 18 | require_once('lib/wfUtils.php'); |
| 19 | require_once('lib/wfDB.php'); |
| 20 | function wfVisitor(){ |
| 21 | $hid = $_GET['hid']; |
| 22 | $hid = wfUtils::decrypt($hid); |
| 23 | if(! preg_match('/^\d+$/', $hid)){ exit(); } |
| 24 | $db = new wfDB(); |
| 25 | global $wpdb; $p = $wpdb->prefix; |
| 26 | $db->query("update $p"."wfHits set jsRun=1 where id=%d", $hid); |
| 27 | exit(); |
| 28 | } |
| 29 | wfVisitor(); |
| 30 | |
| 31 | ?> |
| 32 |