A system for general public to click a photo of a traffic violation anywhere and report it. The system also rewards the users once there report is approved by the admin.
- Home Page
- Report Page
- Pay Challan Page
- Login/Register Page
- Contact Page
- About Page
- Admin Dashboard
- Challans Generation Page
- Challan List Page
- My Rewards Page
- My Reports Page
- Login & Register
- Admin and user login partition
- Working contact page (Built using phpmailer)
- Fully functional reporting/challan system
- Live search for the challans on pay challan
- Admin functionalities for approval and challan generation
Visitors can see home, contact, about, login and register, pay challan pages only
Users can visit all the visitor pages and also the report page, my reports and my rewards where they can report, see there reports and rewards
Admins can visit all the user pages and additionally they have access to dashboard where they can approve reports generate challan page, wherein they can generate challan and all challans where they can see all challans.
To run the project you need two additional dependencies
- php7.4-cli
- php-mysqli
You can install them directly using sudo apt install php7.4-cli php-mydqli
on linux.
- Clone the repository
git clone https://github.com/saiteja13427/incentivised-traffic-violation-reporting-system.git
- Edit env.php and add your db password (for database connection), sender email, sender email password, admin email(reciever email), admin name.
- Start a php server using
php -S localhost:8000
and visit http://localhost:8000/views/index.php - The program will automatically create required database and tables.
- The program will by default create 1 admin and 1 user account
Admin Credentials: Username: admin Password: admin User Credentials: Username: user Password: user
- The project will be ready for use.
- Run it on a server and navigate to views/home.php to start
- You can login using respective roles to see the additional features for those roles.