PHP Classes

Simple XML User System: Manage users storing their records in XML files

Recommend this page to a friend!
     
  Info   Example   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 72%Total: 304 All time: 7,387 This week: 51Up
Version License PHP version Categories
simple-user-system 1.1Free for non-comm...5XML, PHP 5, User Management
Description 

Author

This class can manage users storing their records in XML files.

It can perform several operations to manipulate user records that are stored in XML files.

Currently it can create a new user record, get, update and delete user records with a given identifier, show a login form and authenticate a user with a given password, etc..

Picture of Abhishek Shukla
  Performance   Level  

 

Example

<?php

require_once("class.simpleusersystem.php");

session_start();

$login=New simple_usersystem();

$thisuser=$login->login_form();


$menu="<h3><a href=\"?\">Home</a> | <a href=\"?p=p2\">Page 2</a>
| <a href=\"?p=profile\">Profile</a> | <a href=\"?p=contact\">Contact</a>
| <a href=\"?logout=y\">Logout</a></h3>"
;



$home="<h2>Home Page</h2>
This is a test home page for Simple User System class by Abhishek Shukla.
<br/>"
;

$p2="<h2>Page 2</h2>This is a Page 2.";

$contact="<h2>Contact</h2>This is Contact Page.";

//homepage
   
$content=$home;
   
//other pages
if(isset($_GET['p'])) {
    switch(
$_GET['p']){
        Case
"p2";
       
$content=$p2;
        break;
   
        Case
"contact";
       
$content=$contact;
        break;
   
        Case
"profile";
       
$login->adminurl="?p=profile&";
       
$content=$login->user_profile($thisuser);
        break;
    }
}

$login->renderHTML($login->usertool.$menu.$content);


  Files folder image Files (23)  
File Role Description
Files folder imageexample3 (5 files, 1 directory)
Files folder imageusers (2 files)
Plain text file class.simpleusersystem.php Class simpleusersystem
Accessible without login Plain text file example1.php Example Example One
Accessible without login Plain text file example2.php Example Example Two
Accessible without login Plain text file example3.php Example Example Three
Accessible without login Plain text file index.html Doc. Documentation

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:304
This week:0
All time:7,387
This week:51Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:83%StarStarStarStarStar
Examples:91%StarStarStarStarStar
Tests:-
Videos:-
Overall:72%StarStarStarStar
Rank:192