Commit Graph

15 Commits

Author SHA1 Message Date
Chris Morgan
6119246b51 Replace direct mysql_xxx() calls with query_xxx() calls. Replace calls to mysql_insert_id()
with calls specific to the appdb or bugzilla database. Fixes a bug where a call to
mysql_insert_id() can potentially retrieve an id from either the bugzilla or appdb database,
depending on whichever database was last opened by mysql_connect().
2007-08-03 23:27:25 +00:00
WineHQ
b858e2ba53 Unit tests should run with E_ALL so we can detect all errors. Fix dozens of errors that popped up after enabling all errors. 2006-11-25 17:24:44 +00:00
Chris Morgan
4708101f01 Add cron cleanup function to purge expired sessions from session_list table 2006-07-08 21:49:49 +00:00
Chris Morgan
adeb1adbdc session::destroy() should call session_destroy() only if a session exists 2006-07-06 05:00:38 +00:00
Chris Morgan
a72f31e11a Rename some variables to match our current naming scheme 2006-06-30 16:33:02 +00:00
Chris Morgan
e3f9e5371a Use query_parameters() in SQL select, update and delete statements to protect against
sql injection attacks
2006-06-27 19:16:27 +00:00
Chris Morgan
eea66ec98c $_SESSION['current']->userId should be ->iUserId, there is no userId member of
class user.
2006-06-22 22:34:23 +00:00
Jonathan Ernst
dcf7c819a4 - replaced mysql_query with appdb_query
- fixed mysql query in include/session.php
2005-01-08 18:24:55 +00:00
Jeremy Newman
5642e73425 updated to a slightly more improved version of the session management code
should solve bugs with logging in on register_globals = off;
2004-12-13 03:50:02 +00:00
Tony Lambregts
170615721f Fix logins by registering $current until we can get a php upgrade. 2004-12-13 02:39:49 +00:00
Chris Morgan
ad2ed1b086 Remove whitespace at the end that may be causing login problems due to a bug
in php.
2004-12-13 02:01:15 +00:00
Chris Morgan
5c9ea1efdb Clean up tabs and indenting. 2004-12-12 06:35:40 +00:00
Jonathan Ernst
9cda0192c8 Removed unneeded session_register("current") line as we now use superglobals
and that php does the registering itself
2004-12-11 19:37:21 +00:00
Jonathan Ernst
17a20b6c2b Replacing $var with $_SESSION['var'] code and removing global var
declarations
2004-12-11 03:41:24 +00:00
Jeremy Newman
8f28ae10c4 Initial revision 2004-03-15 16:22:00 +00:00