Changeset 2015726
- Timestamp:
- 01/20/2019 11:57:16 AM (7 years ago)
- Location:
- ps-phpcaptcha/trunk
- Files:
-
- 13 edited
-
README.txt (modified) (1 diff)
-
admin/class-psphpcaptchawp-admin.php (modified) (7 diffs)
-
languages/psphpcaptchawp-de_DE.mo (modified) (previous)
-
languages/psphpcaptchawp-de_DE.po (modified) (3 diffs)
-
languages/psphpcaptchawp-de_DE_formal.mo (modified) (previous)
-
languages/psphpcaptchawp-de_DE_formal.po (modified) (3 diffs)
-
languages/psphpcaptchawp-en_UK.mo (modified) (previous)
-
languages/psphpcaptchawp-en_UK.po (modified) (3 diffs)
-
languages/psphpcaptchawp-en_US.mo (modified) (previous)
-
languages/psphpcaptchawp-en_US.po (modified) (3 diffs)
-
languages/psphpcaptchawp.pot (modified) (3 diffs)
-
psphpcaptchawp.php (modified) (2 diffs)
-
public/class-psphpcaptchawp-public.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
ps-phpcaptcha/trunk/README.txt
r1988982 r2015726 53 53 == Changelog == 54 54 55 = 1.2.0 = 56 * better sanitizing of input values - reported by info@metamorfosec.com at 2019-01-19 57 55 58 = 1.1.0 = 56 59 * added multisite support -
ps-phpcaptcha/trunk/admin/class-psphpcaptchawp-admin.php
r1979572 r2015726 96 96 } 97 97 98 public static $MinStringLength = 2; 99 public static $MaxStringLength = 50; 100 101 public static $MinSizeWidth = 10; 102 public static $MaxSizeWidth = 1000; 103 104 public static $MinSizeHeight = 5; 105 public static $MaxSizeHeight = 500; 106 107 public static $MinFontSize = 5; 108 public static $MaxFontSize = 500; 109 110 public static $MinNumberOfLines = 0; 111 public static $MaxNumberOfLines = 100; 112 113 public static $MinThicknessOfLines = 0; 114 public static $MaxThicknessOfLines = 20; 115 116 public static $MinCharsToUse = 10; 117 public static $MaxCharsToUse = 100; 118 98 119 public static function getBlogId() { 99 120 if(is_multisite()) { … … 250 271 } 251 272 252 private function sanitize_integer($valid, $input, $setting_title, $setting_errorid) { 273 private function sanitize_integer($valid, $input, $setting_title, $setting_errorid, $minRequiredSize, 274 $maxAllowedSize) { 253 275 $validreturn = (isset($input) && !empty($input)) 254 276 ? sanitize_text_field($input) : $valid; … … 257 279 $setting_title, // Setting title 258 280 $setting_errorid, // Error ID 259 sprintf(__('Please enter a valid integer value for %s','psphpcaptchawp'), $setting_title), // Error 281 sprintf(__('Please enter a valid integer value for %s, from %d to %d','psphpcaptchawp'), 282 $setting_title, $minRequiredSize, $maxAllowedSize), //Error 260 283 // message 261 284 'error' // Type of message … … 263 286 return $valid; 264 287 } 288 if($validreturn > $maxAllowedSize || $validreturn < $minRequiredSize) { 289 add_settings_error( 290 $setting_title, // Setting title 291 $setting_errorid, // Error ID 292 sprintf(__('Please enter a valid integer value for %s, from %d to %d','psphpcaptchawp'), 293 $setting_title, $minRequiredSize, $maxAllowedSize), //Error 294 // message 295 'error' // Type of message 296 ); 297 return $valid; 298 } 265 299 return $validreturn; 266 300 } 267 301 268 private function sanitize_charstouse($valid, $input, $setting_title, $setting_errorid, $minlength, $sourceIfForm) { 302 private function sanitize_charstouse($valid, $input, $setting_title, $setting_errorid, $minlength, $maxlength, 303 $sourceIfForm) { 269 304 if($sourceIfForm) { 270 if(strlen($input) < $minlength ) {305 if(strlen($input) < $minlength || strlen($input) > $maxlength) { 271 306 add_settings_error( 272 307 $setting_title, // Setting title 273 308 $setting_errorid, // Error ID 274 sprintf(__('Please enter a valid value for %s, at least%d chars long', 'psphpcaptchawp')275 , $setting_title, $minlength ), // Error message309 sprintf(__('Please enter a valid value for %s, from %d to %d chars long', 'psphpcaptchawp') 310 , $setting_title, $minlength, $maxlength), // Error message 276 311 'error' // Type of message 277 312 ); … … 282 317 $setting_title, // Setting title 283 318 $setting_errorid, // Error ID 284 sprintf(__('Please enter a valid value for %s, at least%d chars long', 'psphpcaptchawp')285 , $setting_title, $minlength ), // Error message319 sprintf(__('Please enter a valid value for %s, from %d to %d chars long', 'psphpcaptchawp') 320 , $setting_title, $minlength, $maxlength), // Error message 286 321 'error' // Type of message 287 322 ); … … 328 363 329 364 $valid['stringlength'] = $this->sanitize_integer($valid['stringlength'], $input['stringlength'], 330 __('Number of characters','psphpcaptchawp') , 'stringlength'); 365 __('Number of characters','psphpcaptchawp') , 'stringlength', 366 Psphpcaptchawp_Admin::$MinStringLength, Psphpcaptchawp_Admin::$MaxStringLength); 331 367 332 368 $valid['charstouse'] = $this->sanitize_charstouse($valid['charstouse'], $input['charstouse'], 333 __('Characters allowed','psphpcaptchawp'), 'charstouse', 10, $sourceIsForm ); 369 __('Characters allowed','psphpcaptchawp'), 'charstouse', Psphpcaptchawp_Admin::$MinCharsToUse, 370 Psphpcaptchawp_Admin::$MaxCharsToUse, 371 $sourceIsForm ); 334 372 335 373 $valid['strictlowercase'] = $this->sanitize_boolean($valid['strictlowercase'], $input['strictlowercase'], … … 349 387 350 388 $valid['sizewidth'] = $this->sanitize_integer($valid['sizewidth'], $input['sizewidth'], 351 __('Image width','psphpcaptchawp'), 'sizewidth'); 389 __('Image width','psphpcaptchawp'), 'sizewidth', Psphpcaptchawp_Admin::$MinSizeWidth, 390 Psphpcaptchawp_Admin::$MaxSizeWidth); 352 391 353 392 $valid['sizeheight'] = $this->sanitize_integer($valid['sizeheight'], $input['sizeheight'], 354 __('Image height','psphpcaptchawp'), 'sizeheight'); 393 __('Image height','psphpcaptchawp'), 'sizeheight', Psphpcaptchawp_Admin::$MinSizeHeight, 394 Psphpcaptchawp_Admin::$MaxSizeHeight); 355 395 356 396 $valid['fontsize'] = $this->sanitize_integer($valid['fontsize'], $input['fontsize'], 357 __('Font size','psphpcaptchawp'), 'fontsize'); 397 __('Font size','psphpcaptchawp'), 'fontsize', Psphpcaptchawp_Admin::$MinFontSize, 398 Psphpcaptchawp_Admin::$MaxFontSize); 358 399 359 400 $valid['numberoflines'] = $this->sanitize_integer($valid['numberoflines'], $input['numberoflines'], 360 __('Number of lines','psphpcaptchawp'), 'numberoflines'); 401 __('Number of lines','psphpcaptchawp'), 'numberoflines', Psphpcaptchawp_Admin::$MinNumberOfLines, 402 Psphpcaptchawp_Admin::$MaxNumberOfLines); 361 403 362 404 $valid['thicknessoflines'] = $this->sanitize_integer($valid['thicknessoflines'], $input['thicknessoflines'], 363 __('Thickness of lines','psphpcaptchawp'), 'thicknessoflines'); 405 __('Thickness of lines','psphpcaptchawp'), 'thicknessoflines', 406 Psphpcaptchawp_Admin::$MinThicknessOfLines, Psphpcaptchawp_Admin::$MaxThicknessOfLines); 364 407 365 408 $valid['allowad'] = $this->sanitize_integer($valid['allowad'], $input['allowad'], 366 __('Allow small advertisement below Captcha image','psphpcaptchawp'), 'allowad' );409 __('Allow small advertisement below Captcha image','psphpcaptchawp'), 'allowad',0,1); 367 410 368 411 //write setting into file for db-less access -
ps-phpcaptcha/trunk/languages/psphpcaptchawp-de_DE.po
r1979642 r2015726 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/psphpcaptchawp\n" 7 7 "POT-Creation-Date: 2018-11-23 15:16:27+00:00\n" 8 "PO-Revision-Date: 201 8-11-23 16:18+0100\n"8 "PO-Revision-Date: 2019-01-20 12:24+0100\n" 9 9 "Last-Translator: \n" 10 10 "Language-Team: \n" … … 29 29 30 30 #: admin/class-psphpcaptchawp-admin.php:259 31 msgid "Please enter a valid integer value for %s "32 msgstr "Bitte Ganzzahlwert eingeben für %s "31 msgid "Please enter a valid integer value for %s, from %d to %d" 32 msgstr "Bitte Ganzzahlwert eingeben für %s, von %d bis %d" 33 33 34 34 #: admin/class-psphpcaptchawp-admin.php:274 35 35 #: admin/class-psphpcaptchawp-admin.php:284 36 msgid "Please enter a valid value for %s, at least%d chars long"37 msgstr "Bitte Wert eingeben für %s, mindestens %dZeichen lang"36 msgid "Please enter a valid value for %s, from %d to %d chars long" 37 msgstr "Bitte Wert eingeben für %s, von %d bis %d Zeichen lang" 38 38 39 39 #: admin/class-psphpcaptchawp-admin.php:310 … … 214 214 msgid "https://wp.peters-webcorner.de" 215 215 msgstr "https://wp.peters-webcorner.de" 216 217 #~ msgid "" 218 #~ "Please enter a valid integer value for %s, greater than %d and lesser " 219 #~ "than %d" 220 #~ msgstr "" 221 #~ "Bitte Wert eingeben für %s, mindestens %d Zeichen lang, mindestens %d und " 222 #~ "maximal %d" -
ps-phpcaptcha/trunk/languages/psphpcaptchawp-de_DE_formal.po
r1979642 r2015726 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/psphpcaptchawp\n" 7 7 "POT-Creation-Date: 2018-11-23 15:16:27+00:00\n" 8 "PO-Revision-Date: 201 8-11-23 17:11+0100\n"8 "PO-Revision-Date: 2019-01-20 12:24+0100\n" 9 9 "Last-Translator: \n" 10 10 "Language-Team: \n" … … 29 29 30 30 #: admin/class-psphpcaptchawp-admin.php:259 31 msgid "Please enter a valid integer value for %s "32 msgstr "Bitte Ganzzahlwert eingeben für %s "31 msgid "Please enter a valid integer value for %s, from %d to %d" 32 msgstr "Bitte Ganzzahlwert eingeben für %s, von %d bis %d" 33 33 34 34 #: admin/class-psphpcaptchawp-admin.php:274 35 35 #: admin/class-psphpcaptchawp-admin.php:284 36 msgid "Please enter a valid value for %s, at least%d chars long"37 msgstr "Bitte Wert eingeben für %s, mindestens %dZeichen lang"36 msgid "Please enter a valid value for %s, from %d to %d chars long" 37 msgstr "Bitte Wert eingeben für %s, von %d bis %d Zeichen lang" 38 38 39 39 #: admin/class-psphpcaptchawp-admin.php:310 … … 214 214 msgid "https://wp.peters-webcorner.de" 215 215 msgstr "https://wp.peters-webcorner.de" 216 217 #~ msgid "" 218 #~ "Please enter a valid integer value for %s, greater than %d and lesser " 219 #~ "than %d" 220 #~ msgstr "" 221 #~ "Bitte Wert eingeben für %s, mindestens %d Zeichen lang, mindestens %d und " 222 #~ "maximal %d" -
ps-phpcaptcha/trunk/languages/psphpcaptchawp-en_UK.po
r1979642 r2015726 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/psphpcaptchawp\n" 7 7 "POT-Creation-Date: 2018-11-23 15:16:27+00:00\n" 8 "PO-Revision-Date: 2019-01-20 12:24+0100\n" 9 "Last-Translator: \n" 10 "Language-Team: \n" 11 "Language: en_US\n" 8 12 "MIME-Version: 1.0\n" 9 13 "Content-Type: text/plain; charset=UTF-8\n" 10 14 "Content-Transfer-Encoding: 8bit\n" 11 "PO-Revision-Date: 2018-11-23 17:19+0100\n"12 "Language-Team: \n"13 15 "X-Generator: Poedit 2.2\n" 14 "Last-Translator: \n"15 16 "Plural-Forms: nplurals=2; plural=(n != 1);\n" 16 "Language: en_US\n"17 17 18 18 #: admin/class-psphpcaptchawp-admin.php:184 … … 29 29 30 30 #: admin/class-psphpcaptchawp-admin.php:259 31 msgid "Please enter a valid integer value for %s "32 msgstr "Please enter a valid integer value for %s "31 msgid "Please enter a valid integer value for %s, from %d to %d" 32 msgstr "Please enter a valid integer value for %s, from %d to %d" 33 33 34 34 #: admin/class-psphpcaptchawp-admin.php:274 35 35 #: admin/class-psphpcaptchawp-admin.php:284 36 msgid "Please enter a valid value for %s, at least%d chars long"37 msgstr "Please enter a valid value for %s, at least%d chars long"36 msgid "Please enter a valid value for %s, from %d to %d chars long" 37 msgstr "Please enter a valid value for %s, from %d to %d chars long" 38 38 39 39 #: admin/class-psphpcaptchawp-admin.php:310 … … 210 210 msgid "https://wp.peters-webcorner.de" 211 211 msgstr "https://wp.peters-webcorner.de" 212 213 #~ msgid "" 214 #~ "Please enter a valid integer value for %s, greater than %d and lesser " 215 #~ "than %d" 216 #~ msgstr "" 217 #~ "Please enter a valid integer value for %s, greater than %d and lesser " 218 #~ "than %d" -
ps-phpcaptcha/trunk/languages/psphpcaptchawp-en_US.po
r1979642 r2015726 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/psphpcaptchawp\n" 7 7 "POT-Creation-Date: 2018-11-23 15:16:27+00:00\n" 8 "PO-Revision-Date: 2019-01-20 12:25+0100\n" 9 "Last-Translator: \n" 10 "Language-Team: \n" 11 "Language: en_US\n" 8 12 "MIME-Version: 1.0\n" 9 13 "Content-Type: text/plain; charset=UTF-8\n" 10 14 "Content-Transfer-Encoding: 8bit\n" 11 "PO-Revision-Date: 2018-11-23 17:06+0100\n"12 "Language-Team: \n"13 15 "X-Generator: Poedit 2.2\n" 14 "Last-Translator: \n"15 16 "Plural-Forms: nplurals=2; plural=(n != 1);\n" 16 "Language: en_US\n"17 17 18 18 #: admin/class-psphpcaptchawp-admin.php:184 … … 29 29 30 30 #: admin/class-psphpcaptchawp-admin.php:259 31 msgid "Please enter a valid integer value for %s "32 msgstr "Please enter a valid integer value for %s "31 msgid "Please enter a valid integer value for %s, from %d to %d" 32 msgstr "Please enter a valid integer value for %s, from %d to %d" 33 33 34 34 #: admin/class-psphpcaptchawp-admin.php:274 35 35 #: admin/class-psphpcaptchawp-admin.php:284 36 msgid "Please enter a valid value for %s, at least%d chars long"37 msgstr "Please enter a valid value for %s, at least%d chars long"36 msgid "Please enter a valid value for %s, from %d to %d chars long" 37 msgstr "Please enter a valid value for %s, from %d to %d chars long" 38 38 39 39 #: admin/class-psphpcaptchawp-admin.php:310 … … 210 210 msgid "https://wp.peters-webcorner.de" 211 211 msgstr "https://wp.peters-webcorner.de" 212 213 #~ msgid "" 214 #~ "Please enter a valid integer value for %s, greater than %d and lesser " 215 #~ "than %d" 216 #~ msgstr "" 217 #~ "Please enter a valid integer value for %s, greater than %d and lesser " 218 #~ "than %d" -
ps-phpcaptcha/trunk/languages/psphpcaptchawp.pot
r1979389 r2015726 5 5 "Project-Id-Version: PS PHPCaptcha for Wordpress 1.0.0\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/psphpcaptchawp\n" 7 "POT-Creation-Date: 2018-11-2 2 18:09:36+00:00\n"7 "POT-Creation-Date: 2018-11-23 15:16:27+00:00\n" 8 8 "MIME-Version: 1.0\n" 9 9 "Content-Type: text/plain; charset=UTF-8\n" … … 13 13 "Language-Team: LANGUAGE <LL@li.org>\n" 14 14 15 #: admin/class-psphpcaptchawp-admin.php:1 3515 #: admin/class-psphpcaptchawp-admin.php:184 16 16 msgid "PS PHPCaptcha for Wordpress - Setup" 17 17 msgstr "" 18 18 19 #: admin/class-psphpcaptchawp-admin.php:1 4819 #: admin/class-psphpcaptchawp-admin.php:197 20 20 msgid "Settings" 21 21 msgstr "" 22 22 23 #: admin/class-psphpcaptchawp-admin.php: 19323 #: admin/class-psphpcaptchawp-admin.php:242 24 24 msgid "Please enter a valid hex value for %s, (#RRGGBB)" 25 25 msgstr "" 26 26 27 #: admin/class-psphpcaptchawp-admin.php:2 1028 msgid "Please enter a valid integer value for %s "29 msgstr "" 30 31 #: admin/class-psphpcaptchawp-admin.php:2 2532 #: admin/class-psphpcaptchawp-admin.php:2 3533 msgid "Please enter a valid value for %s, at least%d chars long"34 msgstr "" 35 36 #: admin/class-psphpcaptchawp-admin.php: 26127 #: admin/class-psphpcaptchawp-admin.php:259 28 msgid "Please enter a valid integer value for %s, from %d to %d" 29 msgstr "" 30 31 #: admin/class-psphpcaptchawp-admin.php:274 32 #: admin/class-psphpcaptchawp-admin.php:284 33 msgid "Please enter a valid value for %s, from %d to %d chars long" 34 msgstr "" 35 36 #: admin/class-psphpcaptchawp-admin.php:310 37 37 msgid "Please enter a valid value for %s, (on/off)" 38 38 msgstr "" 39 39 40 #: admin/class-psphpcaptchawp-admin.php: 28141 #: admin/partials/psphpcaptchawp-admin-display.php: 5242 #: admin/partials/psphpcaptchawp-admin-display.php: 5740 #: admin/class-psphpcaptchawp-admin.php:330 41 #: admin/partials/psphpcaptchawp-admin-display.php:73 42 #: admin/partials/psphpcaptchawp-admin-display.php:78 43 43 msgid "Number of characters" 44 44 msgstr "" 45 45 46 #: admin/class-psphpcaptchawp-admin.php: 28447 #: admin/partials/psphpcaptchawp-admin-display.php: 6248 #: admin/partials/psphpcaptchawp-admin-display.php: 6746 #: admin/class-psphpcaptchawp-admin.php:333 47 #: admin/partials/psphpcaptchawp-admin-display.php:83 48 #: admin/partials/psphpcaptchawp-admin-display.php:88 49 49 msgid "Characters allowed" 50 50 msgstr "" 51 51 52 #: admin/class-psphpcaptchawp-admin.php: 28752 #: admin/class-psphpcaptchawp-admin.php:336 53 53 msgid "Strict to lower case" 54 54 msgstr "" 55 55 56 #: admin/class-psphpcaptchawp-admin.php: 29156 #: admin/class-psphpcaptchawp-admin.php:340 57 57 msgid "Background color" 58 58 msgstr "" 59 59 60 #: admin/class-psphpcaptchawp-admin.php: 29560 #: admin/class-psphpcaptchawp-admin.php:344 61 61 msgid "Text color" 62 62 msgstr "" 63 63 64 #: admin/class-psphpcaptchawp-admin.php: 29964 #: admin/class-psphpcaptchawp-admin.php:348 65 65 msgid "Line color" 66 66 msgstr "" 67 67 68 #: admin/class-psphpcaptchawp-admin.php:3 0269 #: admin/partials/psphpcaptchawp-admin-display.php:1 1570 #: admin/partials/psphpcaptchawp-admin-display.php:1 2068 #: admin/class-psphpcaptchawp-admin.php:351 69 #: admin/partials/psphpcaptchawp-admin-display.php:136 70 #: admin/partials/psphpcaptchawp-admin-display.php:141 71 71 msgid "Image width" 72 72 msgstr "" 73 73 74 #: admin/class-psphpcaptchawp-admin.php:305 75 #: admin/partials/psphpcaptchawp-admin-display.php:125 76 #: admin/partials/psphpcaptchawp-admin-display.php:130 77 msgid "Image height" 78 msgstr "" 79 80 #: admin/class-psphpcaptchawp-admin.php:308 81 #: admin/partials/psphpcaptchawp-admin-display.php:135 82 #: admin/partials/psphpcaptchawp-admin-display.php:140 83 msgid "Font size" 84 msgstr "" 85 86 #: admin/class-psphpcaptchawp-admin.php:311 74 #: admin/class-psphpcaptchawp-admin.php:354 87 75 #: admin/partials/psphpcaptchawp-admin-display.php:146 88 76 #: admin/partials/psphpcaptchawp-admin-display.php:151 89 msgid " Number of lines"90 msgstr "" 91 92 #: admin/class-psphpcaptchawp-admin.php:3 1477 msgid "Image height" 78 msgstr "" 79 80 #: admin/class-psphpcaptchawp-admin.php:357 93 81 #: admin/partials/psphpcaptchawp-admin-display.php:156 94 82 #: admin/partials/psphpcaptchawp-admin-display.php:161 83 msgid "Font size" 84 msgstr "" 85 86 #: admin/class-psphpcaptchawp-admin.php:360 87 #: admin/partials/psphpcaptchawp-admin-display.php:168 88 #: admin/partials/psphpcaptchawp-admin-display.php:173 89 msgid "Number of lines" 90 msgstr "" 91 92 #: admin/class-psphpcaptchawp-admin.php:363 93 #: admin/partials/psphpcaptchawp-admin-display.php:178 94 #: admin/partials/psphpcaptchawp-admin-display.php:183 95 95 msgid "Thickness of lines" 96 96 msgstr "" 97 97 98 #: admin/class-psphpcaptchawp-admin.php:3 1799 #: admin/partials/psphpcaptchawp-admin-display.php:1 66100 #: admin/partials/psphpcaptchawp-admin-display.php:1 6998 #: admin/class-psphpcaptchawp-admin.php:366 99 #: admin/partials/psphpcaptchawp-admin-display.php:189 100 #: admin/partials/psphpcaptchawp-admin-display.php:192 101 101 msgid "Allow small advertisement below Captcha image" 102 102 msgstr "" 103 103 104 #: admin/partials/psphpcaptchawp-admin-display.php:50 104 #: admin/partials/psphpcaptchawp-admin-display.php:57 105 msgid "" 106 "This is a multisite installation, each site has its own settings. Blog-Id: %s" 107 msgstr "" 108 109 #: admin/partials/psphpcaptchawp-admin-display.php:64 110 msgid "This is a singlesite installation, turned multisite features off." 111 msgstr "" 112 113 #: admin/partials/psphpcaptchawp-admin-display.php:71 105 114 msgid "Captcha content" 106 115 msgstr "" 107 116 108 #: admin/partials/psphpcaptchawp-admin-display.php: 72109 #: admin/partials/psphpcaptchawp-admin-display.php: 75117 #: admin/partials/psphpcaptchawp-admin-display.php:93 118 #: admin/partials/psphpcaptchawp-admin-display.php:96 110 119 msgid "Strict lower case" 111 120 msgstr "" 112 121 113 #: admin/partials/psphpcaptchawp-admin-display.php: 80122 #: admin/partials/psphpcaptchawp-admin-display.php:101 114 123 msgid "Captcha colors" 115 msgstr ""116 117 #: admin/partials/psphpcaptchawp-admin-display.php:82118 #: admin/partials/psphpcaptchawp-admin-display.php:83119 msgid "Background Color"120 msgstr ""121 122 #: admin/partials/psphpcaptchawp-admin-display.php:93123 #: admin/partials/psphpcaptchawp-admin-display.php:94124 msgid "Text Color"125 124 msgstr "" 126 125 127 126 #: admin/partials/psphpcaptchawp-admin-display.php:103 128 127 #: admin/partials/psphpcaptchawp-admin-display.php:104 128 msgid "Background Color" 129 msgstr "" 130 131 #: admin/partials/psphpcaptchawp-admin-display.php:114 132 #: admin/partials/psphpcaptchawp-admin-display.php:115 133 msgid "Text Color" 134 msgstr "" 135 136 #: admin/partials/psphpcaptchawp-admin-display.php:124 137 #: admin/partials/psphpcaptchawp-admin-display.php:125 129 138 msgid "Line Color" 130 139 msgstr "" 131 140 132 #: admin/partials/psphpcaptchawp-admin-display.php:1 12141 #: admin/partials/psphpcaptchawp-admin-display.php:133 133 142 msgid "Captcha appearance" 134 143 msgstr "" 135 144 136 #: admin/partials/psphpcaptchawp-admin-display.php:1 43145 #: admin/partials/psphpcaptchawp-admin-display.php:165 137 146 msgid "OCR confusion options" 138 147 msgstr "" 139 148 140 #: admin/partials/psphpcaptchawp-admin-display.php:1 64149 #: admin/partials/psphpcaptchawp-admin-display.php:187 141 150 msgid "Allow advertisment for Plugin" 142 151 msgstr "" 143 152 144 #: admin/partials/psphpcaptchawp-admin-display.php: 177153 #: admin/partials/psphpcaptchawp-admin-display.php:200 145 154 msgid "Save all changes" 146 155 msgstr "" 147 156 148 #: admin/partials/psphpcaptchawp-admin-display.php: 183157 #: admin/partials/psphpcaptchawp-admin-display.php:206 149 158 msgid "Example captcha" 150 159 msgstr "" 151 160 152 #: admin/partials/psphpcaptchawp-admin-display.php: 187161 #: admin/partials/psphpcaptchawp-admin-display.php:212 153 162 msgid "Reset settings" 154 163 msgstr "" 155 164 156 #: admin/partials/psphpcaptchawp-admin-display.php:2 33165 #: admin/partials/psphpcaptchawp-admin-display.php:258 157 166 msgid "Set to defaults" 158 167 msgstr "" 159 168 160 #: public/class-psphpcaptchawp-public.php:1 24169 #: public/class-psphpcaptchawp-public.php:153 161 170 msgid "Enter text displayed at Captcha image" 162 171 msgstr "" 163 172 164 #: public/class-psphpcaptchawp-public.php:1 37173 #: public/class-psphpcaptchawp-public.php:173 165 174 msgid "" 166 175 "Please enter the displayed text into the Captcha text field below the " … … 168 177 msgstr "" 169 178 170 #: public/class-psphpcaptchawp-public.php:1 51179 #: public/class-psphpcaptchawp-public.php:188 171 180 msgid "Captcha solved wrong, please try again!" 172 181 msgstr "" -
ps-phpcaptcha/trunk/psphpcaptchawp.php
r1979680 r2015726 17 17 * Plugin URI: https://github.com/pstimpel/psphpcaptchawp 18 18 * Description: Dislike feeding remote tracking enterprises like Google with data just for verifying users? Well, here you go with your own captcha... 19 * Version: 1. 1.019 * Version: 1.2.0 20 20 * Author: Peter Stimpel 21 21 * Author URI: https://wp.peters-webcorner.de … … 36 36 * Rename this for your plugin and update it as you release new versions. 37 37 */ 38 define( 'PLUGIN_NAME_VERSION', '1. 1.0' );38 define( 'PLUGIN_NAME_VERSION', '1.2.0' ); 39 39 40 40 /** -
ps-phpcaptcha/trunk/public/class-psphpcaptchawp-public.php
r1979572 r2015726 123 123 if(file_exists(__DIR__ . "/../config".$blogId.".php")) { 124 124 require_once __DIR__ . "/../config".$blogId.".php"; 125 $preset['stringlength']=$stringlength; 126 $preset['charstouse']=$charstouse; 127 $preset['strictlowercase']=$strictlowercase; 125 126 if($stringlength >= Psphpcaptchawp_Admin::$MinStringLength && 127 $stringlength <= Psphpcaptchawp_Admin::$MaxStringLength) { 128 $preset['stringlength'] = $stringlength; 129 } 130 131 if(strlen($charstouse) >= Psphpcaptchawp_Admin::$MinCharsToUse && 132 strlen($charstouse) <= Psphpcaptchawp_Admin::$MaxCharsToUse) { 133 $preset['charstouse'] = $charstouse; 134 } 135 136 if(is_bool($stringlength)) { 137 $preset['strictlowercase'] = $strictlowercase; 138 } 139 140 //no sanitizing on wrong put config, needs some more work 128 141 $preset['bgcolor']=$bgcolor; 129 142 $preset['textcolor']=$textcolor; 130 143 $preset['linecolor']=$linecolor; 131 $preset['sizewidth']=$sizewidth; 132 $preset['sizeheight']=$sizeheight; 133 $preset['fontsize']=$fontsize; 134 $preset['numberoflines']=$numberoflines; 135 $preset['thicknessoflines']=$thicknessoflines; 136 $preset['allowad']=$allowad; 144 145 if($sizewidth >= Psphpcaptchawp_Admin::$MinSizeWidth && 146 $sizewidth <= Psphpcaptchawp_Admin::$MaxSizeWidth) { 147 $preset['sizewidth'] = $sizewidth; 148 } 149 150 if($sizeheight >= Psphpcaptchawp_Admin::$MinSizeHeight && 151 $sizeheight <= Psphpcaptchawp_Admin::$MaxSizeHeight) { 152 $preset['sizeheight'] = $sizeheight; 153 } 154 155 if($fontsize >= Psphpcaptchawp_Admin::$MinFontSize && 156 $fontsize <= Psphpcaptchawp_Admin::$MaxFontSize) { 157 $preset['fontsize'] = $fontsize; 158 } 159 160 if($numberoflines >= Psphpcaptchawp_Admin::$MinNumberOfLines && 161 $numberoflines <= Psphpcaptchawp_Admin::$MaxNumberOfLines) { 162 $preset['numberoflines'] = $numberoflines; 163 } 164 165 if($thicknessoflines >= Psphpcaptchawp_Admin::$MinThicknessOfLines && 166 $thicknessoflines <= Psphpcaptchawp_Admin::$MaxThicknessOfLines) { 167 $preset['thicknessoflines'] = $thicknessoflines; 168 } 169 170 if(is_bool($allowad)) { 171 $preset['allowad'] = $allowad; 172 } 137 173 138 174 }
Note: See TracChangeset
for help on using the changeset viewer.