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: 303 All time: 7,392 This week: 131Up
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  
Name: Abhishek Shukla <contact>
Classes: 5 packages by
Country: India India
Age: ???
All time rank: 65440 in India India
Week rank: 180 Up21 in India India Up

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

  Files folder image Files (23)  /  example3  
File Role Description
Files folder imageimages (11 files)
  Accessible without login Plain text file contact.php Aux. example script
  Accessible without login Plain text file index.html Data prevents indexing of db folder
  Accessible without login Plain text file login.php Aux. Template script
  Accessible without login Plain text file style.css Data CSS
  Accessible without login Plain text file template.php Aux. Template script

  Files folder image Files (23)  /  example3  /  images  
File Role Description
  Accessible without login Image file img01.gif Photo example script
  Accessible without login Image file img02.gif Photo example script
  Accessible without login Image file img03.gif Photo example script
  Accessible without login Image file img04.gif Photo example script
  Accessible without login Image file img05.gif Photo example script
  Accessible without login Image file img07.gif Photo example script
  Accessible without login Image file img08.gif Photo example script
  Accessible without login Image file img09.gif Photo example script
  Accessible without login Image file img10.gif Photo example script
  Accessible without login Image file img11.gif Photo example script
  Accessible without login Image file spacer.gif Photo example script

  Files folder image Files (23)  /  users  
File Role Description
  Accessible without login Plain text file index.html Data prevents indexing of db folder
  Accessible without login Plain text file users.dat Data XML User Database

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:303
This week:0
All time:7,392
This week:131Up
 User Ratings  
 
 All time
Utility:91%StarStarStarStarStar
Consistency:91%StarStarStarStarStar
Documentation:83%StarStarStarStarStar
Examples:91%StarStarStarStarStar
Tests:-
Videos:-
Overall:72%StarStarStarStar
Rank:178