User management system.
PHP Other
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
actions
classes
forms
password_compat
services
LICENSE
RELEASES.md
body.php
config.backup.php
include.php
index.php
install.php
javascript.js
readme.md
request.php
start.php
style.css

readme.md

User Manager

Status: unsupported. You are free to push requests or fork the project, but I will not keep writing code myself in the near future.

This project was created to get a secure, integrated and extensible PHP library for handling the users. It manages the users so you can focus on building your web page.

Table of contents

  1. Requisites
  2. Installation
  3. Using it
  4. Configuration
  5. Personalization
  6. Credit

Requisites

Installation

  1. Include the folder wherever you want.

  2. Access install.php from the browser. Follow the installation.

  3. Include these two bits of PHP code in every page you want to use the module.

  • Include this file the first thing of every page, it should have the proper path to the include.php in the root of UserManager:

    <? include "UserManager/include.php"; ?>

  • Include this exact code as is the first bit of your html tag. Don't worry, we already made sure it has the correct path:

    <?php include $UMBody; ?>

Use it

We did almost everything for you, but you still need to do a bit. You must include the buttons or links where you think they suit better inside your html structure. For your convenience, we created some classes to simplify this to you and here's the actions when clicked:

UserButton: When there's no user logged in, the text will be log in, and when there's a user logged in, it'll display Profile, and their corresponding actions.

LoginButton: The log in form appears.

RegisterButton: The registering form shows up.

ProfileButton: The user's main links appear, including a "LogoutButton".

SettingsButton: Edit the user's settings.

EditButton: Edit the user's profile data.

LogoutButton: The user logs out.

A couple of examples:

  • <button class = "UserButton"></button>

  • <a class = "LoginButton">Log In</a>

Advanced

To fine-tune your application, you can (and are encouraged to) modify these files:

config.php: after installation and change it to tailor your page better. You'll find more information there.

style.css: style the forms to better suit your page's style.

Credit

While this project is so far personal, to get here I found these answers useful:

Faq