Subscribe to our
service and you'll have our animatronics delivered to your door. They will provide you with hours of fun entertainment and companionship guaranteed!
Signup NOW!!
Enjoy the ease of ordering and eating delicious pizza, interaction with our animatronics and varoius arcade games where you can win prizes. Call 1-800-FAZ-BEAR for more information or to order!
Why/How this site was made!
This site was started as a series of school assignments. However, I decided to give it some use as a Five Nights at Freddys' Plushie tracker. I collect these plush toys and needed some way to track which ones I had and which ones I haven't gotten yet. I thought this would be an excellnent idea for a final project.
Most of the PHP code has been written and is working.
So far I have the following as of 11/19/2020:
Both Calculators work
Tic-tac-toe works as attended
Registration works. Directs you to the login page after registering successfully
login works. Logging in for the first causes a table to be created named after the user. This allow each user to keep track of their collection without interfering with each other since they will have their own separate tables.
logout works
Navigation pane is contained in its own php file. Same with the banner and footer. This way, I only need to make changes once!
Navigation pane keeps track of whether or not you are logged in; Displaying "Welcome Guest" if not logged in and "Current User is [insert-username-here] when logged in"
About Us/Contact Us are just placeholder pages for now.
Clicking on "Your Collection" will bring you to your Plushie collection if logged in. If you’re not logged in, clicking it throws you to the login page.
Clicking on "Add More Plushies" will bring you to the page that allows you to add to your Plushie collection if logged in (add rows to your table). If you’re not logged in, clicking it throws you to the login page.
"Every Plushie that Exists" does what it implies; lists every official Five Nights at Freddy’s plushie that has existed. All of this is pulled from a table in the database (including the file paths for the images).
You can delete multiple entries from your table at the same time. Just Check the box(es) next to the row(s) you want to delete before clicking the delete button
On "Your Collection" page the buttons "Delete" and "New Entry" both works. The "Edit" button leads to a placeholder page.
I have added the following during 11/20/2020-11/30/2020:
Login redirects user to home page if they try to go to login page while already logged in. they must logout first
The table that shows every plush now also shows if the user owns that plush; showing "yes" or "no" in its own column. It only shows this if user is logged in, otherwise it dose not show that column. This is thanks to the SELECT COUNT(1) statement/query.
Description is moved into the Name column in the above mentioned table to save space.
Converted SQL Statements into prepared SQL Statements Except the statement that updates the `".$username."` table with a new description (located in Save.php). This statement uses arrays to update the table ($_POST['description'][$i] and $_POST['id'][$i]) instead of variables and I cannot use arrays in a prepared statement. I will have to find some other way to harden this statement against SQL injection.
Submit Buttons are stylized
User can now edit their table entries.
Added About us page.
Added Contact Us page.
Added lots of comments to the code, cleaning up the code in the process.
Re-arranged the HTML tables so they are easier to view.
Re-named the files to names that make more sense and updated the links accordingly.
To-Do List:
Password reset page
Harden Save.php against SQL injection
Add error message in login.php if passwords do not match. Right now typing in the Correct username but wrong password gives a blank white screen.