Changeset 71
- Timestamp:
- Mar 18, 2006 3:26:42 AM (18 years ago)
- Location:
- trunk/lib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r70 r71 523 523 $previous_events[$msg_id]++; 524 524 if ($previous_events[$msg_id] == 2) { 525 $this->logMsg(sprintf('%s (Event repeated more than %stimes)', $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); 526 526 } 527 527 return false; -
trunk/lib/Auth_SQL.inc.php
r70 r71 479 479 ($this->getVal('user_id') ? ' ' . $this->getVal('user_id') . ' (' . $this->getVal('username') . ')' : ''), 480 480 $trusted_net 481 ), LOG_ INFO, __FILE__, __LINE__);481 ), LOG_DEBUG, __FILE__, __LINE__); 482 482 } else if (preg_match('/proxy.aol.com$/i', getRemoteAddr(true))) { 483 483 $user_in_trusted_network = true; … … 485 485 ucfirst($this->_auth), 486 486 ($this->getVal('user_id') ? ' ' . $this->getVal('user_id') . ' (' . $this->getVal('username') . ')' : '') 487 ), LOG_ INFO, __FILE__, __LINE__);487 ), LOG_DEBUG, __FILE__, __LINE__); 488 488 } else { 489 489 $user_in_trusted_network = false; -
trunk/lib/Captcha.inc.php
r70 r71 118 118 function Captcha() 119 119 { 120 $this->secret_key = App::getParam('signing_key'); 120 121 $this->random_number = $this->_getRandomNumber(); 121 122 } -
trunk/lib/DB.inc.php
r70 r71 225 225 { 226 226 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); 227 244 } 228 245 -
trunk/lib/RecordLock.inc.php
r70 r71 293 293 // Delete specific user's locks. 294 294 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__); 296 296 } else { 297 297 // Delete ALL locks.
Note: See TracChangeset
for help on using the changeset viewer.