Results 1 to 7 of 7

Thread: Security Image Array Contains 0 and o

  1. #1
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default Security Image Array Contains 0 and o

    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

    Code:
    $chars = array
    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.

  2. #2
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    You may also want to consider using only numbers 2 through 9, and no letters by editing

    Code:
    $chars = array
    And reducing the number of characters shown to 4, be editing
    Code:
    for ($i = 0, $length = 6; $i < $length; $i++) {
    to

    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.

  3. #3
    exerciseworld
    Guest

    Default

    Quote Originally Posted by Smoge View Post
    You may also want to consider using only numbers 2 through 9, and no letters by editing

    Code:
    $chars = array
    And reducing the number of characters shown to 4, be editing
    Code:
    for ($i = 0, $length = 6; $i < $length; $i++) {
    to

    Code:
    for ($i = 0, $length = 4; $i < $length; $i++) {

    none of these fixes worked for me

  4. #4
    BAVARAC
    Guest

    Default

    Not work

    Smoge please upload your simg.php to the forum...

  5. #5
    Baalfyre's Avatar
    Join Date
    Sep 2006
    Posts
    50

    Default

    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

  6. #6
    BAVARAC
    Guest

    Default

    Me too :S :S :S:S:S:S:S

  7. #7
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,634
    Blog Entries
    5

    Default

    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

    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;
    and this section, modified to show only 4, of only numbers.

    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;
    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.

    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Security Image does not show
    By Drakontas in forum General Troubleshooting
    Replies: 13
    Last Post: 01-15-2008, 08:36 AM
  2. security image
    By dgk in forum Dolphin General Discussion v5.0 to v5.21
    Replies: 7
    Last Post: 11-21-2006, 01:31 AM
  3. Removing Security Image from AE 4.1IQ
    By outlander in forum General Issues, Comments, Questions
    Replies: 1
    Last Post: 11-27-2005, 12:21 PM
  4. Less Confusing Security Image
    By Smoge in forum Bugs aeDating v4.1.0
    Replies: 0
    Last Post: 11-22-2005, 10:13 AM
  5. security image
    By ijk in forum Security / Server Administration
    Replies: 0
    Last Post: 07-02-2005, 02:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •