Generating codes
Generating codes
Quick question, when creating codes using the code module we have the choice of including numbers as well as lowercase and uppercase letters.
I'm seeing some strange behaviour:
[x] 0-9
[ ] a-z
[ ] A-Z
= Creates numeric codes correctly.
[ ] 0-9
[×] a-z
[ ] A-Z
= Creates lower case codes correctly.
[ ] 0-9
[ ] a-z
[×] A-Z
= Wrongly creates lower case codes.
[×] 0-9
[×] a-z
[ ] A-Z
= Wrongly creates codes with a mixture of numeric and upper case.
[×] 0-9
[ ] a-z
[×] A-Z
= Wrongly creates codes with a mixture of numeric and lower case.
[ ] 0-9
[×] a-z
[×] A-Z
= Creates lower and upper case codes correctly.
[×] 0-9
[×] a-z
[×] A-Z
= Creates codes with a mixture of numeric and both upper and lower case.
Looks like it might be a relatively straightforward bug with a mixup somewhere in the logic, does anyone have a fix?
I'm seeing some strange behaviour:
[x] 0-9
[ ] a-z
[ ] A-Z
= Creates numeric codes correctly.
[ ] 0-9
[×] a-z
[ ] A-Z
= Creates lower case codes correctly.
[ ] 0-9
[ ] a-z
[×] A-Z
= Wrongly creates lower case codes.
[×] 0-9
[×] a-z
[ ] A-Z
= Wrongly creates codes with a mixture of numeric and upper case.
[×] 0-9
[ ] a-z
[×] A-Z
= Wrongly creates codes with a mixture of numeric and lower case.
[ ] 0-9
[×] a-z
[×] A-Z
= Creates lower and upper case codes correctly.
[×] 0-9
[×] a-z
[×] A-Z
= Creates codes with a mixture of numeric and both upper and lower case.
Looks like it might be a relatively straightforward bug with a mixup somewhere in the logic, does anyone have a fix?
Re: Generating codes
In /appCore/modules/code/code.php
find:
replace with:
find:
replace with:
find:
replace with:
find:
replace with:
find:
Code: Select all
elseif ($use_number && $use_low_letter) {
Code: Select all
elseif ($use_number && $use_high_letter) {
Code: Select all
elseif ($use_number && $use_high_letter) {
Code: Select all
elseif ($use_number && $use_low_letter) {
Code: Select all
if ($use_low_letter)
Code: Select all
if ($use_high_letter)
Code: Select all
if ($use_high_letter)
Code: Select all
if ($use_low_letter)
Per supporto GRATUITO contattatemi in privato qui