Skip to content

A comprehensive user management system developed using PHP. It provides important functions for user registration, login, role management and user blocking, serving both regular users and admins.

Notifications You must be signed in to change notification settings

Iqbolshoh/php-user-admin-roles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP User Admin Roles

This repository is a user management system built using PHP. It includes functionalities for user registration, login, role management.

Login

Features

  • User Roles: Admin, and User roles with specific access controls.
  • User Authentication: Secure login and registration with password hashing.
  • File Uploads: Users can upload profile images. All images, except default.png, are securely encrypted before storage.
  • Role-Based Access: Different pages and functionalities accessible based on user roles.

Preview pages

Admin Dashboard

Admin

User Dashboard

User

Setting Up the Project

  1. Clone the repository:

    git clone https://github.com/Iqbolshoh/php-user-admin-roles.git
    cd php-user-admin-roles
  2. Import the database:

    mysql -u yourusername -p yourpassword < database.sql
  3. Configure the database connection in config.php:

    private $conn;
    
    public function __construct()
    {
        $servername = "localhost";
        $username = "root";
        $password = "";
        $dbname = "roles";
        $this->conn = new mysqli($servername, $username, $password, $dbname);
    
        if ($this->conn->connect_error) {
            die("Connection failed: " . $this->conn->connect_error);
        }
    }

Technologies Used

HTML CSS JavaScript PHP MySQL

Contributing

Contributions are welcome! If you have suggestions or want to enhance the project, feel free to fork the repository and submit a pull request.

Connect with Me

I love connecting with new people and exploring new opportunities. Feel free to reach out to me through any of the platforms below:

GitHub Telegram LinkedIn instagram WhatsApp Twitter Email