Make a seperate "Cleaner Class" that uses the following as appropriate:
trim
substr, str_replace
strlen
preg_match, preg_replace
striptags (with any exceptions you feel appropriate
htmlentities for printing (unless you wish to ALLOW some tags)
Make a testclean.php to test this class out (60pts total)
In addition to the "view auctions" and "add auctions" functions that will be moved to their own include files in step 2 above
(and cleaned up to use the mydb3.php.inc class etc) you need to do the following:
Adding a User: Should store a md5 password in a table and do a password/username check) 30pts
Fixing the add auctions to put the username in from the login (via sessions?) and not from a pulldown list
Using sessions to make sure that "add auction" , "add user" and "insert auction" features only count if logged in
For both "insert auction" and "add user" make sure to use parameterized queries to insert the information
All of this should now be accessible from mysqlcp_param.php (50pts)
Print
the date
at the bottom of the page in the format Monday, January 23, 2005