Changeset 2907223
- Timestamp:
- 05/03/2023 01:10:57 AM (3 years ago)
- Location:
- code9/trunk
- Files:
-
- 3 edited
-
code9.php (modified) (1 diff)
-
function/code9_security.php (modified) (4 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
code9/trunk/code9.php
r2904138 r2907223 4 4 Plugin URI: https://wordpress.org/plugins/code9/ 5 5 Description: Utility tool for wordpress. 2-step verificatoin code user login. 6 Version: 1.0.1 16 Version: 1.0.12 7 7 Author: Code9Fair 8 8 Author URI: https://paypal.me/code9fair/ -
code9/trunk/function/code9_security.php
r2643054 r2907223 38 38 setcookie('code9_security_public', code9_security_encrypt(json_encode([ 39 39 "host_name" => $_SERVER["SERVER_NAME"], 40 "remote_ip" => $_SERVER["REMOTE_ADDR"],40 // "remote_ip" => $_SERVER["REMOTE_ADDR"], 41 41 "request_time" => $_SERVER["REQUEST_TIME"], 42 42 ]), false, false), 0, "/", "", false, false); … … 245 245 246 246 throw new Exception('Wrong server name'); 247 } else if (isset($data_decrypt->remote_ip) !== true || $data_decrypt->remote_ip !== $_SERVER['REMOTE_ADDR']) {247 } else if (isset($data_decrypt->remote_ip) !== true /*|| $data_decrypt->remote_ip !== $_SERVER['REMOTE_ADDR']*/) { 248 248 code9_security_public_unset(); 249 249 … … 294 294 } else if ($data_post->admin_id != $admin_id) { 295 295 throw new Exception('Wrong login'); 296 } else if ($data_post->host_name !== $_SERVER["SERVER_NAME"] || $data_post->remote_ip !== $_SERVER["REMOTE_ADDR"]|| $data_post->request_uri !== $_SERVER["REQUEST_URI"]) {296 } else if ($data_post->host_name !== $_SERVER["SERVER_NAME"] /*|| $data_post->remote_ip !== $_SERVER["REMOTE_ADDR"]*/ || $data_post->request_uri !== $_SERVER["REQUEST_URI"]) { 297 297 throw new Exception('Wrong host name'); 298 298 } else if (time() - $data_post->request_time > 300) { … … 370 370 $salts_array = [ 371 371 "host_name" => $_SERVER["SERVER_NAME"], 372 "remote_ip" => $_SERVER["REMOTE_ADDR"],372 // "remote_ip" => $_SERVER["REMOTE_ADDR"], 373 373 "request_time" => $_SERVER["REQUEST_TIME"], 374 374 "request_uri" => $_SERVER["REQUEST_URI"], -
code9/trunk/readme.txt
r2904138 r2907223 5 5 Requires at least: 4.1 6 6 Tested up to: 6.2 7 Stable tag: 1.0.1 17 Stable tag: 1.0.12 8 8 Requires PHP: 5.6.4 9 9 License: GPLv2 … … 75 75 = 1.0.11 = 76 76 * Fixed table log to full width when no log data. 77 = 1.0.12 = 78 * Fixed force to logout when use Wordpress with Cloudflare.
Note: See TracChangeset
for help on using the changeset viewer.