The security image array should not contain 0 (zero) or the letter O or o as this confuses people and causes failure of the security image.
This is an easy fix.
Edit /simg/simg.php and remove the letter o from the
SmogeCode:$chars = array
The security image array should not contain 0 (zero) or the letter O or o as this confuses people and causes failure of the security image.
This is an easy fix.
Edit /simg/simg.php and remove the letter o from the
SmogeCode:$chars = array
ModMySite Administrator
Problems? Questions? Need modifications or other help with your site?
Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.
You may also want to consider using only numbers 2 through 9, and no letters by editing
And reducing the number of characters shown to 4, be editingCode:$chars = array
toCode:for ($i = 0, $length = 6; $i < $length; $i++) {
Code:for ($i = 0, $length = 4; $i < $length; $i++) {
ModMySite Administrator
Problems? Questions? Need modifications or other help with your site?
Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.
Not work
Smoge please upload your simg.php to the forum...
I can't even produce a security image. All is has is a black background with 'Error Producing Security Image'.
I can't seem to control the world yet...so weird!
Dolphin 6.0.2
Me too :S :S :S:S:S:S:S
Two things going on in this thread:
The original topic which was - shorten and change to only numbers - this does work - here is a snippet of a portion of the original simg.php
and this section, modified to show only 4, of only numbers.Code:ob_start(); session_start(); $chars = array("a","b","c","d","e","f","h","i","k","m","n","o","r","s","t","u","v","w","x","z","2","3","4","5","6","7","8","9"); /* $chars = array("a","A","b","B","c","C","d","D","e","E","f","F","g","G","h","H","i","I","j","J", "k","K","L","m","M","n","N","o","p","P","q","Q","r","R","s","S","t","T", "u","U","v","V","w","W","x","X","y","Y","z","Z","2","3","4","5","6","7","8","9"); */ $textstr = ''; for ($i = 0, $length = 6; $i < $length; $i++) { $textstr .= $chars[rand(0, count($chars) - 1)]; } $hashtext = md5($textstr); $_SESSION['strSec'] = $hashtext;
As for "I can't even produce a security image. All is has is a black background with 'Error Producing Security Image'." - this is a seperate issue from this thread. Many reasons for this - please do some searching on ModMySite "security image" for help - or start a new thread about this.Code:ob_start(); session_start(); $chars = array("2","3","4","5","6","7","8","9"); $textstr = ''; for ($i = 0, $length = 4; $i < $length; $i++) { $textstr .= $chars[rand(0, count($chars) - 1)]; } $hashtext = md5($textstr); $_SESSION['strSec'] = $hashtext;
Smoge
ModMySite Administrator
Problems? Questions? Need modifications or other help with your site?
Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks