Changeset 2975417
- Timestamp:
- 10/06/2023 06:52:58 AM (2 years ago)
- Location:
- siteguard
- Files:
-
- 6 edited
- 1 copied
-
tags/1.7.6 (copied) (copied from siteguard/trunk)
-
tags/1.7.6/readme.txt (modified) (2 diffs)
-
tags/1.7.6/really-simple-captcha/siteguard-really-simple-captcha.php (modified) (4 diffs)
-
tags/1.7.6/siteguard.php (modified) (1 diff)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/really-simple-captcha/siteguard-really-simple-captcha.php (modified) (4 diffs)
-
trunk/siteguard.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
siteguard/tags/1.7.6/readme.txt
r2946876 r2975417 5 5 Requires at least: 3.9 6 6 Tested up to: 6.3 7 Stable tag: 1.7. 57 Stable tag: 1.7.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 107 107 108 108 == Changelog == 109 = 1.7.6 = 110 * Fix a problem that a warning occurred on the Login screen in the PHP8.x environment 109 111 = 1.7.5 = 110 112 * 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 87 87 $chars_jp = 'あいうえおかきくけこさしすせそたちつてとなにのひふへまみむもやゆよらりん'; 88 88 89 $chars = ''; 89 90 $word = ''; 90 91 91 92 if ( 'jp' == $this->lang_mode ) { 92 $ this->chars = $chars_jp;93 $chars = $chars_jp; 93 94 } 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 ); 98 99 for ( $i = 0; $i < $this->char_length; $i++ ) { 99 100 $pos = siteguard_rand( 0, $chars_size - 1 ); 100 $char = mb_substr( $ this->chars, $pos, 1 );101 $char = mb_substr( $chars, $pos, 1 ); 101 102 $word .= $char; 102 103 } … … 121 122 /* Array of fonts. Randomly picked up per character */ 122 123 if ( 'jp' == $this->lang_mode ) { 123 $ this->fonts = array(124 $fonts = array( 124 125 dirname( __FILE__ ) . '/mplus-TESTFLIGHT-058/mplus-1c-hiragana-black.ttf', 125 126 // dirname( __FILE__ ) . '/mplus-TESTFLIGHT-058/mplus-1c-hiragana-bold.ttf', … … 167 168 ); 168 169 } else { 169 $ this->fonts = array(170 $fonts = array( 170 171 dirname( __FILE__ ) . '/gentium/GenBkBasR.ttf', 171 172 dirname( __FILE__ ) . '/gentium/GenBkBasI.ttf', … … 195 196 $word_size = mb_strlen( $word ); 196 197 for ( $i = 0; $i < $word_size; $i++ ) { 197 $font = $ this->fonts[ array_rand( $this->fonts ) ];198 $font = $fonts[ array_rand( $fonts ) ]; 198 199 $font = $this->normalize_path( $font ); 199 200 if ( $gd_info['JIS-mapped Japanese Font Support'] ) { -
siteguard/tags/1.7.6/siteguard.php
r2896391 r2975417 8 8 Text Domain: siteguard 9 9 Domain Path: /languages/ 10 Version: 1.7. 510 Version: 1.7.6 11 11 */ 12 12 -
siteguard/trunk/readme.txt
r2946876 r2975417 5 5 Requires at least: 3.9 6 6 Tested up to: 6.3 7 Stable tag: 1.7. 57 Stable tag: 1.7.6 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 107 107 108 108 == Changelog == 109 = 1.7.6 = 110 * Fix a problem that a warning occurred on the Login screen in the PHP8.x environment 109 111 = 1.7.5 = 110 112 * 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 87 87 $chars_jp = 'あいうえおかきくけこさしすせそたちつてとなにのひふへまみむもやゆよらりん'; 88 88 89 $chars = ''; 89 90 $word = ''; 90 91 91 92 if ( 'jp' == $this->lang_mode ) { 92 $ this->chars = $chars_jp;93 $chars = $chars_jp; 93 94 } 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 ); 98 99 for ( $i = 0; $i < $this->char_length; $i++ ) { 99 100 $pos = siteguard_rand( 0, $chars_size - 1 ); 100 $char = mb_substr( $ this->chars, $pos, 1 );101 $char = mb_substr( $chars, $pos, 1 ); 101 102 $word .= $char; 102 103 } … … 121 122 /* Array of fonts. Randomly picked up per character */ 122 123 if ( 'jp' == $this->lang_mode ) { 123 $ this->fonts = array(124 $fonts = array( 124 125 dirname( __FILE__ ) . '/mplus-TESTFLIGHT-058/mplus-1c-hiragana-black.ttf', 125 126 // dirname( __FILE__ ) . '/mplus-TESTFLIGHT-058/mplus-1c-hiragana-bold.ttf', … … 167 168 ); 168 169 } else { 169 $ this->fonts = array(170 $fonts = array( 170 171 dirname( __FILE__ ) . '/gentium/GenBkBasR.ttf', 171 172 dirname( __FILE__ ) . '/gentium/GenBkBasI.ttf', … … 195 196 $word_size = mb_strlen( $word ); 196 197 for ( $i = 0; $i < $word_size; $i++ ) { 197 $font = $ this->fonts[ array_rand( $this->fonts ) ];198 $font = $fonts[ array_rand( $fonts ) ]; 198 199 $font = $this->normalize_path( $font ); 199 200 if ( $gd_info['JIS-mapped Japanese Font Support'] ) { -
siteguard/trunk/siteguard.php
r2896391 r2975417 8 8 Text Domain: siteguard 9 9 Domain Path: /languages/ 10 Version: 1.7. 510 Version: 1.7.6 11 11 */ 12 12
Note: See TracChangeset
for help on using the changeset viewer.