PHP Classes

File: users.php

Recommend this page to a friend!
  Classes of Roman Shneer  >  PHP Web Application Firewall  >  users.php  >  Download  
File: users.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Web Application Firewall
Block malicious requests using a white list
Author: By
Last change: Fixed mobile css
Date: 5 years ago
Size: 1,513 bytes


Class file image Download
 * script for user management
 * License: GNU
 * Copyright 2016 WebAppFirewall RomanShneer <>

$WU=new WafUser;
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
<html xmlns="" xml:lang="en" lang="en">
<?php require_once "include/head.php"; ?>
<?php include_once 'include/header.php';?>
        <h1 class='title'>Users Management</h1>
        <div class='box users_page'>
                <table width='100%' class="tbl">
                            <th>&nbsp;<?php if($WU->isEditor()):?><a href='edituser.php?id=0' class='green_btn'>Add User</a><?php endif;?></th></tr>
            <?php foreach($users as $u):?>
                            <td><?php echo $u['email']?></td>
                            <td><?php echo ($u['editor'])?'Yes':'No';?></td>
                            <td><?php echo ($u['status'])?'Yes':'No';?></td>
                                    <?php if($WU->isEditor()):?>
<a href='edituser.php?id=<?php echo $u['id'];?>' class='green_btn'>Edit</a>
                                    <?php endif;?>&nbsp;
            <?php endforeach;?>
        <div class="box">
                <small>Only Editor can edit users and control permissions map.<br>Non Editor user can view statistics </small>

For more information send a message to info at phpclasses dot org.