This project is a PHP web application designed for managing access to a university using QR codes. It supports different types of users, including students, employees, agents, and visitors, providing a secure and efficient way to control access.
- User authentication for admins, agents, students, employees, and visitors.
- QR code generation for access control.
- Access logging and management.
- Database management using phpMyAdmin.
- PHP 8.2.4 or higher
- MariaDB 10.4.28 or higher
- phpMyAdmin 5.2.1 or higher
-
Clone the repository:
git clone https://github.com/embarki34/BBA_hacktivia.git
-
Navigate to the project directory:
cd university-access-management
-
Set up the database:
- Import the provided SQL dump into your MariaDB database using phpMyAdmin or the command line:
mysql -u yourusername -p yourpassword codemaster < path/to/sql_dump.sql
- Import the provided SQL dump into your MariaDB database using phpMyAdmin or the command line:
-
Configure the database connection:
- Update the database connection details in the configuration file (e.g.,
config.php
).
- Update the database connection details in the configuration file (e.g.,
-
Start your local server (e.g., using XAMPP or MAMP).
-
Open your web browser and navigate to the project URL (e.g.,
http://localhost/university-access-management
).
- Admins can log in using the default credentials (
username: admin, password: admin
). - Admins can manage agents, students, employees, and visitors.
- Agents can log in and manage access requests.
- Students, employees, and visitors can log in using their credentials and view their access status.
The database includes the following tables:
access
admin
agent
employee
student
visitor
Refer to the SQL dump for the complete schema.
- Fork the repository.
- Create a new branch:
git checkout -b feature-branch
- Make your changes.
- Commit your changes:
git commit -m 'Add some feature'
- Push to the branch:
git push origin feature-branch
- Open a pull request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to all the contributors and supporters.
- Inspired by various access management systems and security protocols.