Assignment 3 requires the creation of a web forum. The target date for
this assignment is the 13th of May. Everyone should mail a zip file of
his/her assignment to each of the web team heads, including an sql
file of his/her database, created and exported using XAMPP's
phpMyAdmin. The forum should have the following features:
1. The database for storing the forum's data, including the table for
users' details and that for all the threads/posts on the forum should
be made using XAMPP's phpMyAdmin.
2. The main page of the forum will display a login box and a link for
new registrations, if the user is not already logged in. If the user
is already logged in, it should display the appropriate page (use PHP
sessions for this).
3. The data in the registration form should be checked on clicking the
submit button, and it should lead to the same page if there are any
errors, with appropriate error messages (The valid form data should
"auto-populate", invalid form data should not be displayed).
4. There will be two types of users on the forum: Administrators and
Members. This will determined by a field in the users table called
"usertype".
5. Member privileges: create new post, create new thread, delete his
own posts.
6. Administrator privileges: create/delete any post/thread in the
forum.
7. Every user will have the option to become an Administrator at any
point of time, provided he knows a certain pre-defined "password".
Whenever a user enters the correct password, his "usertype" field will
be updated to that corresponding to an Administrator and he will be
granted Administrator privileges.
8. The forum should have a well-defined CSS theme. Every page on the
forum should display in accordance with this theme.
9. The passwords of users should be stored in the database in MD5
encrypted format, so that nobody except the user himself can know a
particular user's password, not even an Administrator (there exists a
pre-defined PHP function for this task).
10. The PHP code should be efficient and clean, with as less SQL
queries as possible. Code should be reused wherever possible (using
the PHP include() function).
11. A "Forgot Password" feature may be implemented (which will reset a
user's password in case he forgets it), though it is not necessary.
12. The data in the tables in the database should be stored
efficiently, with appropriate primary keys for each table.
here's the link of my forum:
http://tushariitkgp.0fees.net/signin.php
my admin pass: 'iwanttobeanadmin'