Plugin Directory

Changeset 2975417


Ignore:
Timestamp:
10/06/2023 06:52:58 AM (2 years ago)
Author:
jp-secure
Message:

tagging 1.7.6

Location:
siteguard
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • siteguard/tags/1.7.6/readme.txt

    r2946876 r2975417  
    55Requires at least: 3.9
    66Tested up to: 6.3
    7 Stable tag: 1.7.5
     7Stable tag: 1.7.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    107107
    108108== Changelog ==
     109= 1.7.6 =
     110* Fix a problem that a warning occurred on the Login screen in the PHP8.x environment
    109111= 1.7.5 =
    110112* Fix a problem that a serious error occurred on the Updates Notify screen in the PHP8.x environment
  • siteguard/tags/1.7.6/really-simple-captcha/siteguard-really-simple-captcha.php

    r2888160 r2975417  
    8787        $chars_jp = 'あいうえおかきくけこさしすせそたちつてとなにのひふへまみむもやゆよらりん';
    8888
     89        $chars = '';
    8990        $word = '';
    9091
    9192        if ( 'jp' == $this->lang_mode ) {
    92             $this->chars = $chars_jp;
     93            $chars = $chars_jp;
    9394        } else {
    94             $this->chars = $chars_en;
    95         }
    96 
    97         $chars_size = mb_strlen( $this->chars );
     95            $chars = $chars_en;
     96        }
     97
     98        $chars_size = mb_strlen( $chars );
    9899        for ( $i = 0; $i < $this->char_length; $i++ ) {
    99100            $pos   = siteguard_rand( 0, $chars_size - 1 );
    100             $char  = mb_substr( $this->chars, $pos, 1 );
     101            $char  = mb_substr( $chars, $pos, 1 );
    101102            $word .= $char;
    102103        }
     
    121122        /* Array of fonts. Randomly picked up per character */
    122123        if ( 'jp' == $this->lang_mode ) {
    123             $this->fonts = array(
     124            $fonts = array(
    124125                dirname( __FILE__ ) . '/mplus-TESTFLIGHT-058/mplus-1c-hiragana-black.ttf',
    125126                // dirname( __FILE__ ) . '/mplus-TESTFLIGHT-058/mplus-1c-hiragana-bold.ttf',
     
    167168            );
    168169        } else {
    169             $this->fonts = array(
     170            $fonts = array(
    170171                dirname( __FILE__ ) . '/gentium/GenBkBasR.ttf',
    171172                dirname( __FILE__ ) . '/gentium/GenBkBasI.ttf',
     
    195196            $word_size = mb_strlen( $word );
    196197            for ( $i = 0; $i < $word_size; $i++ ) {
    197                 $font = $this->fonts[ array_rand( $this->fonts ) ];
     198                $font = $fonts[ array_rand( $fonts ) ];
    198199                $font = $this->normalize_path( $font );
    199200                if ( $gd_info['JIS-mapped Japanese Font Support'] ) {
  • siteguard/tags/1.7.6/siteguard.php

    r2896391 r2975417  
    88Text Domain: siteguard
    99Domain Path: /languages/
    10 Version: 1.7.5
     10Version: 1.7.6
    1111*/
    1212
  • siteguard/trunk/readme.txt

    r2946876 r2975417  
    55Requires at least: 3.9
    66Tested up to: 6.3
    7 Stable tag: 1.7.5
     7Stable tag: 1.7.6
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    107107
    108108== Changelog ==
     109= 1.7.6 =
     110* Fix a problem that a warning occurred on the Login screen in the PHP8.x environment
    109111= 1.7.5 =
    110112* Fix a problem that a serious error occurred on the Updates Notify screen in the PHP8.x environment
  • siteguard/trunk/really-simple-captcha/siteguard-really-simple-captcha.php

    r2888160 r2975417  
    8787        $chars_jp = 'あいうえおかきくけこさしすせそたちつてとなにのひふへまみむもやゆよらりん';
    8888
     89        $chars = '';
    8990        $word = '';
    9091
    9192        if ( 'jp' == $this->lang_mode ) {
    92             $this->chars = $chars_jp;
     93            $chars = $chars_jp;
    9394        } else {
    94             $this->chars = $chars_en;
    95         }
    96 
    97         $chars_size = mb_strlen( $this->chars );
     95            $chars = $chars_en;
     96        }
     97
     98        $chars_size = mb_strlen( $chars );
    9899        for ( $i = 0; $i < $this->char_length; $i++ ) {
    99100            $pos   = siteguard_rand( 0, $chars_size - 1 );
    100             $char  = mb_substr( $this->chars, $pos, 1 );
     101            $char  = mb_substr( $chars, $pos, 1 );
    101102            $word .= $char;
    102103        }
     
    121122        /* Array of fonts. Randomly picked up per character */
    122123        if ( 'jp' == $this->lang_mode ) {
    123             $this->fonts = array(
     124            $fonts = array(
    124125                dirname( __FILE__ ) . '/mplus-TESTFLIGHT-058/mplus-1c-hiragana-black.ttf',
    125126                // dirname( __FILE__ ) . '/mplus-TESTFLIGHT-058/mplus-1c-hiragana-bold.ttf',
     
    167168            );
    168169        } else {
    169             $this->fonts = array(
     170            $fonts = array(
    170171                dirname( __FILE__ ) . '/gentium/GenBkBasR.ttf',
    171172                dirname( __FILE__ ) . '/gentium/GenBkBasI.ttf',
     
    195196            $word_size = mb_strlen( $word );
    196197            for ( $i = 0; $i < $word_size; $i++ ) {
    197                 $font = $this->fonts[ array_rand( $this->fonts ) ];
     198                $font = $fonts[ array_rand( $fonts ) ];
    198199                $font = $this->normalize_path( $font );
    199200                if ( $gd_info['JIS-mapped Japanese Font Support'] ) {
  • siteguard/trunk/siteguard.php

    r2896391 r2975417  
    88Text Domain: siteguard
    99Domain Path: /languages/
    10 Version: 1.7.5
     10Version: 1.7.6
    1111*/
    1212
Note: See TracChangeset for help on using the changeset viewer.