Changeset 71


Ignore:
Timestamp:
Mar 18, 2006 3:26:42 AM (18 years ago)
Author:
scdev
Message:

minor misc bug fixes

Location:
trunk/lib
Files:
5 edited

Legend:

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

    r70 r71  
    523523            $previous_events[$msg_id]++;
    524524            if ($previous_events[$msg_id] == 2) {
    525                 $this->logMsg(sprintf('%s (Event repeated more than %s times)', $message, $previous_events[$msg_id]), $priority, $file, $line);
     525                $this->logMsg(sprintf('%s (Event repeated %s or more times)', $message, $previous_events[$msg_id]), $priority, $file, $line);
    526526            }
    527527            return false;
  • trunk/lib/Auth_SQL.inc.php

    r70 r71  
    479479                ($this->getVal('user_id') ? ' ' . $this->getVal('user_id') . ' (' .  $this->getVal('username') . ')' : ''),
    480480                $trusted_net
    481             ), LOG_INFO, __FILE__, __LINE__);
     481            ), LOG_DEBUG, __FILE__, __LINE__);
    482482        } else if (preg_match('/proxy.aol.com$/i', getRemoteAddr(true))) {
    483483            $user_in_trusted_network = true;
     
    485485                ucfirst($this->_auth),
    486486                ($this->getVal('user_id') ? ' ' . $this->getVal('user_id') . ' (' .  $this->getVal('username') . ')' : '')
    487             ), LOG_INFO, __FILE__, __LINE__);
     487            ), LOG_DEBUG, __FILE__, __LINE__);
    488488        } else {
    489489            $user_in_trusted_network = false;
  • trunk/lib/Captcha.inc.php

    r70 r71  
    118118    function Captcha()
    119119    {
     120        $this->secret_key = App::getParam('signing_key');
    120121        $this->random_number = $this->_getRandomNumber();
    121122    }
  • trunk/lib/DB.inc.php

    r70 r71  
    225225    {
    226226        return $this->_connected;
     227    }
     228   
     229    /**
     230     * Returns a properly escaped string using mysql_real_escape_string() with the current connection's charset.
     231     *
     232     * @access  public
     233     * @param   string  $string     Input string to be sent as SQL query.
     234     * @return  string              Escaped string from mysql_real_escape_string()
     235     * @author  Quinn Comendant <quinn@strangecode.com>
     236     * @since   06 Mar 2006 16:41:32
     237     */
     238    function escapeString($string)
     239    {
     240        if (!isset($this) || !is_a($this, 'DB') && !is_subclass_of($this, 'DB')) {
     241            $this =& DB::getInstance();
     242        }
     243        return mysql_real_escape_string($string, $this->dbh);
    227244    }
    228245
  • trunk/lib/RecordLock.inc.php

    r70 r71  
    293293            // Delete specific user's locks.
    294294            DB::query("DELETE FROM " . $this->getParam('db_table') . " WHERE set_by_admin_id = '" . addslashes($user_id) . "'");
    295             App::logMsg(sprintf('Record locks owned by %s %s have been deleted', $this->_auth->getVal('auth_name'), $this->_auth->getUsername($user_id)), LOG_INFO, __FILE__, __LINE__);
     295            App::logMsg(sprintf('Record locks owned by %s %s have been deleted', $this->_auth->getVal('auth_name'), $this->_auth->getUsername($user_id)), LOG_DEBUG, __FILE__, __LINE__);
    296296        } else {
    297297            // Delete ALL locks.
Note: See TracChangeset for help on using the changeset viewer.