Plugin Directory

Changeset 3001934


Ignore:
Timestamp:
11/27/2023 12:57:25 AM (2 years ago)
Author:
as247
Message:

v2.5.7 Fix some issue on php 8.2

Location:
wordpress-2-step-verification/2.x
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • wordpress-2-step-verification/2.x/includes/Wp2sv_Auth.php

    r2805417 r3001934  
    66/**
    77 * Class Wp2sv_Auth
    8  * @property $username
    9  * @property $hmac
    10  * @property $token
    11  * @property $expiration
    128 */
    139class Wp2sv_Auth{
    14     var $cookie_name;
    15     var $cookie_name_secure;
    16     var $trusted_cookie_name;
     10    protected $cookie_name;
     11    protected $cookie_name_secure;
     12    protected $trusted_cookie_name;
    1713    protected $wp2sv;
    1814    protected $recentlyCreatedToken;
     
    2218        $this->cookie_name_secure='wp2sv_sec_'.COOKIEHASH;
    2319        $this->trusted_cookie_name='wp2sv_'.md5(get_current_user_id());
    24         if ($cookie_elements = $this->parseCookie()){
    25             foreach($cookie_elements as $key=>$val){
    26                 $this->$key=$val;
    27             }
    28         }
    2920    }
    3021    function isTrusted(){
  • wordpress-2-step-verification/2.x/includes/Wp2sv_User.php

    r1964740 r3001934  
    3636        $this->user=$user;
    3737    }
     38
     39    #[\ReturnTypeWillChange]
    3840    function offsetGet($offset)
    3941    {
     
    5860
    5961    }
     62
     63
     64    #[\ReturnTypeWillChange]
    6065    function offsetExists($offset)
    6166    {
     
    7580        }
    7681    }
     82    #[\ReturnTypeWillChange]
    7783    function offsetUnset($offset)
    7884    {
  • wordpress-2-step-verification/2.x/public/assets/css/setup.css

    r2827906 r3001934  
    1 .wp2sv-setup .sync-link{background:url(../images/sync-time.png?e8c1916a5e043bc8b9f9bc1a61d66f7f) no-repeat scroll 0 0/cover transparent;cursor:pointer;display:inline-block;height:20px;left:5px;padding:5px!important;position:relative;text-indent:-9999px;top:5px;width:20px}.wp2sv-setup .sync-link.loading{background:url(../images/sync-time.gif?afc70bf83d47dd59c84ff09e1012ac0a) no-repeat scroll 0 0/cover transparent}.wp2sv-setup .wp2sv-icon{background:no-repeat url(../images/all.png?aeb723d2e0a4946d32e0a9a9fbf3cb3d);background-size:277px 197px;height:36px;width:36px}.wp2sv-setup .wp2sv-icon.wp2svi-ga{background-position:-24px 0}.wp2sv-setup .wp2sv-icon.wp2svi-additional-layer{background-position:-1px -37px}.wp2sv-setup .wp2sv-icon.wp2svi-hacker{background-position:-1px -117px}.wp2sv-setup .wp2sv-icon.wp2svi-airplane{background-position:-96px 0}.wp2sv-setup .wp2sv-icon.wp2svi-message{background-position:-60px 0}.wp2sv-setup .wp2sv-icon.wp2svi-app-passwords{background-position:-246px 0}.wp2sv-setup .wp2sv-icon.wp2svi-usb{background-position:-208px 0}.wp2sv-setup .wp2sv-icon.wp2svi-devices{background-position:-135px 0}.wp2sv-setup .wp2sv-modal .card-body{font-size:15px}.wp2sv-setup .wp2sv-container{margin:0 auto;max-width:660px;min-width:300px;width:100%}.wp2sv-setup .wp2sv-qrcode{display:block;margin:0 auto;padding:20px;text-align:center}.wp2sv-setup .wp2sv-start .wp2sv-logo{background-image:url(https://ps.w.org/wordpress-2-step-verification/assets/icon-128x128.png?rev=1391369);background-size:cover;height:48px;margin:auto;width:48px}.wp2sv-setup .wp2sv-start .wp2sv-icon{height:79px;margin-right:45px;width:105px}.wp2sv-setup #wp2sv-backup-codes-modal{width:131mm;width:-moz-fit-content;width:fit-content}.wp2sv-setup #wp2sv-backup-codes-modal .card-body{width:110mm}.wp2sv-setup #wp2sv-backup-codes-modal .card-body .btn-new-codes{margin:.5em}.wp2sv-setup .backup-codes{border:1px dashed #ccc;padding:16px 0}.wp2sv-setup .backup-codes .backup-info{font-size:14px;text-align:center}.wp2sv-setup .backup-codes .backup-info img{border:none;height:auto;width:48px}.wp2sv-setup .backup-codes .backup-note{font-size:14px;list-style:square;margin:auto;max-width:400px;width:50%;width:-moz-fit-content;width:fit-content}.wp2sv-setup .backup-codes .backup-codes-list{display:inline-block;font-size:15pt;margin:auto}.wp2sv-setup .backup-codes .backup-codes-list span.cb{border:1px solid;display:inline-block;height:14px;margin-right:2px;width:14px}.wp2sv-setup .backup-codes .backup-codes-list tr td:first-child{padding-right:40px}.wp2sv-setup .wp2sv-app-passwords{width:100%}.wp2sv-setup .wp2sv-app-passwords .wp2sv-container{background-color:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.15);box-sizing:border-box;padding:30px;text-align:left}.wp2sv-setup .wp2sv-app-passwords table{border-collapse:collapse;width:100%}.wp2sv-setup .wp2sv-app-passwords table .row{border-bottom:1px solid #e5e5e5}.wp2sv-setup .wp2sv-app-passwords table td{padding:12px 0}.wp2sv-setup .wp2sv-app-passwords table .col-name{padding-left:4px;width:30%}.wp2sv-setup .wp2sv-app-passwords table .col-created,.wp2sv-setup .wp2sv-app-passwords table .col-last-used{padding-left:20px;width:25%}.wp2sv-setup .wp2sv-app-passwords table .col-access{padding-left:20px;width:20%}.wp2sv-setup .wp2sv-app-passwords .app-add-password{line-height:42px;margin:20px 0}.wp2sv-setup .wp2sv-app-passwords .app-add-password span{margin-right:16px}.wp2sv-setup .wp2sv-app-passwords .app-add-password .app-name{margin:0;min-width:200px;padding-right:24px;width:50%}.wp2sv-setup #app-password-created .wp2sv-h1{font-size:20px;margin-bottom:20px}.wp2sv-setup #app-password-created .apc-title{font-weight:700;margin-bottom:16px}.wp2sv-setup #app-password-created .apc-pass{background:#ffe166;border:1px dashed rgba(0,0,0,.12);font-family:monospace;font-size:24px;margin:16px 0 32px;padding:12px}.wp2sv-setup #app-password-created .apc-pchunk{padding-left:1ex}.wp2sv-setup #app-password-created .apc-pchunk:first-child{padding-left:0}
     1.wp2sv-setup .sync-link{background:url(../images/sync-time.png?e8c1916a5e043bc8b9f9bc1a61d66f7f) no-repeat scroll 0 0/cover transparent;cursor:pointer;display:inline-block;height:20px;left:5px;padding:5px!important;position:relative;text-indent:-9999px;top:5px;width:20px}.wp2sv-setup .sync-link.loading{background:url(../images/sync-time.gif?afc70bf83d47dd59c84ff09e1012ac0a) no-repeat scroll 0 0/cover transparent}.wp2sv-setup .wp2sv-icon{background:no-repeat url(../images/all.png?aeb723d2e0a4946d32e0a9a9fbf3cb3d);background-size:277px 197px;height:36px;width:36px}.wp2sv-setup .wp2sv-icon.wp2svi-ga{background-position:-24px 0}.wp2sv-setup .wp2sv-icon.wp2svi-additional-layer{background-position:-1px -37px}.wp2sv-setup .wp2sv-icon.wp2svi-hacker{background-position:-1px -117px}.wp2sv-setup .wp2sv-icon.wp2svi-airplane{background-position:-96px 0}.wp2sv-setup .wp2sv-icon.wp2svi-message{background-position:-60px 0}.wp2sv-setup .wp2sv-icon.wp2svi-app-passwords{background-position:-246px 0}.wp2sv-setup .wp2sv-icon.wp2svi-usb{background-position:-208px 0}.wp2sv-setup .wp2sv-icon.wp2svi-devices{background-position:-135px 0}.wp2sv-setup .wp2sv-modal .card-body{font-size:15px}.wp2sv-setup .wp2sv-container{margin:0 auto;max-width:660px;min-width:300px;width:100%}.wp2sv-setup .wp2sv-qrcode{display:block;margin:0 auto;padding:20px;text-align:center}.wp2sv-setup .wp2sv-start .wp2sv-logo{background-image:url(https://ps.w.org/wordpress-2-step-verification/assets/icon-128x128.png?rev=1391369);background-size:cover;height:48px;margin:auto;width:48px}.wp2sv-setup .wp2sv-start .wp2sv-icon{height:79px;margin-right:45px;width:105px}.wp2sv-setup #wp2sv-backup-codes-modal{width:131mm;width:-moz-fit-content;width:fit-content}.wp2sv-setup #wp2sv-backup-codes-modal .card-body{width:110mm}.wp2sv-setup #wp2sv-backup-codes-modal .card-body .btn-new-codes{margin:.5em}.wp2sv-setup .backup-codes{border:1px dashed #ccc;padding:16px 0}.wp2sv-setup .backup-codes .backup-info{font-size:14px;text-align:center}.wp2sv-setup .backup-codes .backup-info img{border:none;height:auto;width:48px}.wp2sv-setup .backup-codes .backup-note{font-size:14px;list-style:square;margin:auto;max-width:400px;width:50%;width:-moz-fit-content;width:fit-content}.wp2sv-setup .backup-codes .backup-codes-list{display:inline-block;font-size:15pt;margin:auto;width:auto}.wp2sv-setup .backup-codes .backup-codes-list span.cb{border:1px solid;display:inline-block;height:14px;margin-right:2px;width:14px}.wp2sv-setup .backup-codes .backup-codes-list tr td{padding:.2em 0}.wp2sv-setup .backup-codes .backup-codes-list tr td:first-child{padding-right:40px}.wp2sv-setup .wp2sv-app-passwords{width:100%}.wp2sv-setup .wp2sv-app-passwords .wp2sv-container{background-color:#fff;border-radius:3px;box-shadow:0 1px 2px rgba(0,0,0,.15);box-sizing:border-box;padding:30px;text-align:left}.wp2sv-setup .wp2sv-app-passwords table{border-collapse:collapse;width:100%}.wp2sv-setup .wp2sv-app-passwords table .row{border-bottom:1px solid #e5e5e5}.wp2sv-setup .wp2sv-app-passwords table td{padding:12px 0}.wp2sv-setup .wp2sv-app-passwords table .col-name{padding-left:4px;width:30%}.wp2sv-setup .wp2sv-app-passwords table .col-created,.wp2sv-setup .wp2sv-app-passwords table .col-last-used{padding-left:20px;width:25%}.wp2sv-setup .wp2sv-app-passwords table .col-access{padding-left:20px;width:20%}.wp2sv-setup .wp2sv-app-passwords .app-add-password{line-height:42px;margin:20px 0}.wp2sv-setup .wp2sv-app-passwords .app-add-password span{margin-right:16px}.wp2sv-setup .wp2sv-app-passwords .app-add-password .app-name{margin:0;min-width:200px;padding-right:24px;width:50%}.wp2sv-setup #app-password-created .wp2sv-h1{font-size:20px;margin-bottom:20px}.wp2sv-setup #app-password-created .apc-title{font-weight:700;margin-bottom:16px}.wp2sv-setup #app-password-created .apc-pass{background:#ffe166;border:1px dashed rgba(0,0,0,.12);font-family:monospace;font-size:24px;margin:16px 0 32px;padding:12px}.wp2sv-setup #app-password-created .apc-pchunk{padding-left:1ex}.wp2sv-setup #app-password-created .apc-pchunk:first-child{padding-left:0}
  • wordpress-2-step-verification/2.x/readme.txt

    r2827906 r3001934  
    66Requires at least: 4.0
    77Requires PHP: 5.6
    8 Tested up to: 6.1
     8Tested up to: 6.4
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • wordpress-2-step-verification/2.x/resources/less/setup/backup-codes.less

    r1962237 r3001934  
    3939    }
    4040    tr{
     41      td{
     42        padding: 0.2em 0;
     43      }
    4144      td:first-child{
    4245        padding-right: 40px;
    4346      }
    4447    }
     48    width: auto;
    4549    margin:auto;
    4650    display: inline-block;
  • wordpress-2-step-verification/2.x/wordpress-2-step-verification.php

    r2827906 r3001934  
    55 * Description: Wordpress 2-Step Verification adds an extra layer of security to your Wordpress Account. In addition to your username and password, you'll enter a code that generated by Android/iPhone/Blackberry app or Plugin will send you via email upon signing in.
    66 * Author: as247
    7  * Version: 2.5.6
     7 * Version: 2.5.7
    88 * Author URI: http://as247.vui360.com/
    99 * Compatibility: WordPress 4.0
     
    2020    define('PHP_INT_MIN', ~PHP_INT_MAX);
    2121}
    22 define('WP2SV_VERSION','2.5.6');
     22define('WP2SV_VERSION','2.5.7');
    2323define('WP2SV_ABSPATH', dirname(__FILE__) . '/');
    2424define('WP2SV_INC', WP2SV_ABSPATH . 'includes');
Note: See TracChangeset for help on using the changeset viewer.