Changeset 108


Ignore:
Timestamp:
Apr 26, 2006 6:35:38 AM (18 years ago)
Author:
scdev
Message:

Q - bits!

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/App.inc.php

    r107 r108  
    10371037
    10381038        if (!isset($_SESSION[$this->app]['boomerang']['url'])) {
    1039             $this->logMsg(sprintf('validBoomerangURL(%s) no boomerang URL set.', $id, $url), LOG_DEBUG, __FILE__, __LINE__);
     1039            $this->logMsg(sprintf('validBoomerangURL(%s) no boomerang URL set.', $id), LOG_DEBUG, __FILE__, __LINE__);
    10401040            return false;
    10411041        }
  • trunk/lib/Captcha.inc.php

    r107 r108  
    131131     * @since   07 Dec 2005 21:59:25
    132132     */
    133     function getAsciiNumber($num)
    134     {
     133    function getAsciiNumber($num=null)
     134    {
     135        if (!isset($num)) {
     136            $num = $this->random_number;
     137        }
     138
    135139        if (preg_match('/[^\d]/', $num)) {
    136140            App::logMsg(sprintf('Bad number: %s', $num), LOG_ERR, __FILE__, __LINE__);
     
    205209
    206210    /**
    207      * Generate random 4-digit number.
     211     * Generate random number 3-to-5 digits long.
    208212     *
    209213     * @access  private
    210      * @return  int         Number with 4 digits
     214     * @return  int         Generated number.
    211215     * @author  Quinn Comendant <quinn@strangecode.com>
    212216     * @since   07 Dec 2005 21:40:25
     
    214218    function _getRandomNumber()
    215219    {
    216         return rand(1000, 9999);
     220        return substr(strval(rand(10000, 99999)), 0, rand(3, 5));
    217221    }
    218222
  • trunk/services/logout.php

    r107 r108  
    55 */
    66
    7 if (is_a($auth_object, 'Auth_SQL')) {
     7if (is_a($auth, 'Auth_SQL')) {
    88    // Delete the current user's record locks.
    99    require_once 'codebase/lib/RecordLock.inc.php';
Note: See TracChangeset for help on using the changeset viewer.