Giter Club home page Giter Club logo

ci-acl's Introduction

CI-ACL

Simple Codeigniter ACL and Login System

##UPDATE

This has been tested on Codeigniter 3 and works fine.

PHP 5.3 (Should be OK for php 5.2) Codeigniter 2.1.2 (Should be OK for any version 2 branch)

This is a very simple Role Based Access Control List RBACL and Login system which does not require a database.

The use case for this is where you have a website with one or a couple of people requiring access to say update the blog or news.

These set of classes allows you to have an authentication system without the heavy load.

It does not have register user, lost password or remember me. IT IS A SIMPLE BUT SECURE auth system that does not require a database backend.

It allows you to generate roles for users on a per controller/object bases. I have taken the idea from the Drupal ACL but much simpler method.

You added users and their roles in the application/config/login.php file.

You add permissions in the application/config/acl.php file.

I've added an example controller for ACL and a login controller for mmmmm... the login.

Read through the config files which I have documented.

public functions available

libraries/acl.php

has_permission($controller, $required_permissions = array(), $author_id = NULL)

is_logged_in()

libraries/simple_user_login.php

validate($redirect) // Validate login form. Set login landing page in application/config/login.php

logout($redirect) // Set logout landing page in application/config/login.php

hash_password($password) // Set salt in the config file application/config/login.php

ci-acl's People

Contributors

dollardad avatar

Watchers

James Cloos avatar raheemmiyasin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.