Changeset 1713069
- Timestamp:
- 08/14/2017 10:00:59 AM (9 years ago)
- Location:
- httpcs-validation/trunk
- Files:
-
- 2 edited
-
httpcsValidation.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
httpcs-validation/trunk/httpcsValidation.php
r1695218 r1713069 4 4 Plugin Name: HTTPCS Validation 5 5 Description: This plugin helps you to do the HTTPCS validation process automatically 6 Version: 1.0. 56 Version: 1.0.6 7 7 Author: HTTPCS 8 8 Author URI: https://www.httpcs.com/ … … 58 58 } 59 59 if( !isset($_SESSION['securedToken']) || (isset($_SESSION['securedToken']) && empty($_SESSION['securedToken'])) ){ 60 $_SESSION['securedToken'] = hash('sha512', bin2hex(random_bytes(100))); 60 $version = explode('.',PHP_VERSION); 61 $PHP_VERSION_ID = ($version[0] * 10000 + $version[1] * 100 + $version[2]); 62 if($PHP_VERSION_ID < 700000){ 63 $_SESSION['securedToken'] = hash('sha512', bin2hex(mt_getrandmax())); 64 }else{ 65 $_SESSION['securedToken'] = hash('sha512', bin2hex(random_bytes(100))); 66 } 61 67 } 62 68 $this->securedToken = $_SESSION['securedToken']; … … 237 243 wp_enqueue_style('httpcs-style'); 238 244 wp_enqueue_script('httpcs-script'); 245 $wp_version = get_bloginfo('version'); 239 246 //Setting the language for translations 240 $this->locale_user = get_user_locale(); 247 if($wp_version >= 4.7 ){ 248 $this->locale_user = get_user_locale(); 249 }else{ 250 $this->locale_user = get_locale(); 251 } 241 252 $locale = $this->locale_user; 242 253 $tabIso = explode("_", $locale); -
httpcs-validation/trunk/readme.txt
r1695218 r1713069 2 2 Contributors: HTTPCS 3 3 Tags: cyber security, web security 4 Requires at least: 4. 75 Tested up to: 4.8 6 Stable tag: 1.0. 54 Requires at least: 4.0 5 Tested up to: 4.8.5 6 Stable tag: 1.0.6 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html
Note: See TracChangeset
for help on using the changeset viewer.