Skip to content

Latest commit

 

History

History
117 lines (85 loc) · 3.88 KB

README.md

File metadata and controls

117 lines (85 loc) · 3.88 KB

php user manager 2.1

updated 01/01/2014

This repo contains an open source LAMP user management system with an integrated iOS application

It is designed with the ARCV paradigm (Application-Router-Controller-View).


new in 2.1

  • mobile API for remote login, data retreival, profile editing, password changing
  • integrated iOS application

Database Features

  • auto initialization
  • update logging

User Features

  • 2-step registration
  • sign in via email and password
  • user data edit page
  • forgot password function

Mobile Features

  • remote registration
  • remote login and data retreival
  • remote forgot password
  • remote data editing

Security Features

  • activation after email verification
  • encrypted email links
  • brute force cracking deterence
  • php 5.4 password_hash & password_verify
  • inaccessable core files
  • immune to SQL injection
  • seperated logs for database updates, sql errors, and other errors
  • masterlog path for realtime monitoring

NOTE: POST data is not encrypted, SSL should be integrated into the web app and into the iOS app to ensure communication security


ARCV Design

Application - app.php
~ The application file contains all data specific to the application, including domain info, database credentials, database configurations, encryption keys, regex validations, email templates, and common strings. The only file that requires editing for deployment of included functionality.

Router - root/index.php
~ The index file handles general templating and contains a router for all paths.

Controller - controller.php
~ Paths that utilize POST data, take parameters, or perform multiple functions have a controller function located in the controller file.

View - inc/
~ All modular HTML/PHP segments are contained in view files.


Requirements

~ Server running PHP 5.4+ (may work with earlier versions, but not tested)
~ MySQL Database v5.5 (may work with other versions, but not tested)


Installation

  1. Create a new MySQL database

  2. Rename 'app-default.php' to 'app.php'

  3. Open 'app.php' and customize the data

  4. Set up a new domain path pointing to the folder 'your_site/root/'

  5. Upload all php-user-manager files to the folder 'your_site'


php-user-manager is licensed under the BSD 2-clause Open Source license

Copyright (c) 2014, Sebastian Bierman-Lytle All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.