View | Annotate | Download (1.1 KB)
Update copyright date to 2010
Fix the permission checking
Use single $db
Have deleteUser use library functions
Fixed permissions back to the way they were before I messed them up :)
Proper escaping of characters when inserted into database
This was only happening for the '&' character (upon inserting a new business), because the values were being passed along via $_GET over AJAX. I changed it to use $_POST instead, using the jQuery ajax framework (since I don't know how to use the prototype one).
We don't store addresses for users
Updated the copyright to be the current year.
Change database and custom template class includes. HUGE change. If anything breaks, blame Cameron.
Move auth.php into lib directory, renamed to auth.lib.php. Update require statements.
Clean up formatting. Capitalize SQL keywords. Check authentication before opening database link.
Established a naming convention in all files. Lowercase first word, uppercase afterwards, e.g. viewInventory, insertLoanRecord.
Changed 'Foobar' to 'RPInventory' in license text, done with git because svn is dumb.
Added GPL license to all code files.
Fixed user and item delete. Delete pages now remove extra db entries for loans and addresses. Reworked view inventory page. Edit/delete/loan action has been changed to checkboxes. (Edit doesnt work yet).
Removed PHP conformation for user delete. (Now done via javascript)
Switched to mysqli connection. Added user sessions (Login/logout) User management page is protected for admins only.
Added user management section. (add, edit, delete)