- Timestamp:
- Oct 29, 2022 4:33:45 AM (18 months ago)
- Location:
- trunk/lib
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r768 r775 1516 1516 if (!$this->running) { 1517 1517 $this->logMsg(sprintf('Canceled %s, application not running.', __METHOD__), LOG_NOTICE, __FILE__, __LINE__); 1518 return false; 1518 $this->stop(); 1519 die; 1519 1520 } 1520 1521 -
trunk/lib/Auth_SQL.inc.php
r757 r775 429 429 WHERE " . $this->_params['db_username_column'] . " = '" . $db->escapeString($username) . "' 430 430 "); 431 if ( !$user_data = mysql_fetch_assoc($qid)) {431 if (mysql_num_rows($qid) !== 1 || !$user_data = mysql_fetch_assoc($qid)) { 432 432 $app->logMsg(sprintf('Username %s not found for authentication', $username), LOG_NOTICE, __FILE__, __LINE__); 433 433 return false; … … 601 601 602 602 // Session created! We're logged-in! 603 $app->logMsg(sprintf('â%sâ auth session created for user_id %s (%s): %s=%s', $this->_ns, $this->get('user_id'), $this->get('username'), session_name(), session_id()), LOG_DEBUG, __FILE__, __LINE__); 603 604 return true; 604 605 } … … 612 613 * - remote address is the same as the login remote address 613 614 * 614 * TODO: implement persisten sessions as per https://paragonie.com/blog/2015/04/secure-authentication-php-with-long-term-persistence615 * TODO: implement persistent sessions as per https://paragonie.com/blog/2015/04/secure-authentication-php-with-long-term-persistence 615 616 * 616 617 * @access public -
trunk/lib/ImageThumb.inc.php
r737 r775 297 297 } 298 298 $this->_raiseMsg(sprintf(_("Resized %s images."), sizeof($files)), MSG_SUCCESS, __FILE__, __LINE__); 299 $this->_raiseMsg(sprintf(_("Resized %s images."), sizeof($files)), MSG_SUCCESS, __FILE__, __LINE__);300 299 return 0 === $return_val; 301 300 } else {
Note: See TracChangeset
for help on using the changeset viewer.