View | Annotate | Download (2 KB)
Update copyright date to 2010
Use single $db object
Update deleteLocation to use library functions
Make sure you can't delete locations of inventory on loan/checkout
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).
Updated the copyright to be the current year.
Fixed the rest of the sanitation issues. Did not sanitize input that was cast as an (int), (double), or the like since strings will be turned to zero.
Don't show pagination links unless it's necessary. Fixed the action cells in manageLocations and added pagination for that page. More sql injection prevention as well.
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.
My bad, wrong logical operator.
Put a catch to not allow locations to be deleted that are in use.
Cleaned up formatting. Capitalize SQL keywords. Check authentication before establishing database connection.
Changed 'Foobar' to 'RPInventory' in license text, done with git because svn is dumb.
Added GPL license to all code files.
Added location management.