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
21 lines
| 1 | <?php |
| 2 | ignore_user_abort(true); |
| 3 | if ( !defined('ABSPATH') ) { |
| 4 | /** Set up WordPress environment */ |
| 5 | require_once('../../../wp-load.php'); |
| 6 | } |
| 7 | require_once('lib/wfUtils.php'); |
| 8 | require_once('lib/wfDB.php'); |
| 9 | function wfVisitor(){ |
| 10 | $hid = $_GET['hid']; |
| 11 | $hid = wfUtils::decrypt($hid); |
| 12 | if(! preg_match('/^\d+$/', $hid)){ exit(); } |
| 13 | $db = new wfDB(); |
| 14 | global $wpdb; $p = $wpdb->prefix; |
| 15 | $db->query("update $p"."wfHits set jsRun=1 where id=%d", $hid); |
| 16 | exit(); |
| 17 | } |
| 18 | wfVisitor(); |
| 19 | |
| 20 | ?> |
| 21 |