Login   Register  
PHP Classes
elePHPant
Icontem

File: phpsecureweb/accountsList.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Bulent Tezcan  >  phpsecureweb  >  phpsecureweb/accountsList.php  >  Download  
File: phpsecureweb/accountsList.php
Role: Application script
Content type: text/plain
Description: lists accounts
Class: phpsecureweb
Allow users certain rights, login with password.
Author: By
Last change:
Date: 11 years ago
Size: 1,349 bytes
 

Contents

Class file image Download
<?php
    
/*
    * @author Bulent Tezcan. bulent@greenpepper.ca
    */

    
require_once "Security.class.php";

    require_once 
"Accounts.class.php";

    
session_start();

    
$Accounts = new Accounts();
    
$mySecurity = new Security( );
    
    
#
    # This should be added in every script. Ofcourse the action name
    # will be different for each script.
    #
    
if ($mySecurity-> isNotAllowedTo('Add Account') and
            
$mySecurity-> isNotAllowedTo('Delete Account') and
            
$mySecurity-> isNotAllowedTo('Modify Account') and
            
$mySecurity-> isNotAllowedTo('View Account'))
    {
        if (
$mySecurity-> isAllowedTo('Show Admin Menu'))
            
$mySecurity-> GotoThisPage"adminmenu.php" );
        else
            
$mySecurity-> GotoThisPage"login.php" );
    }

    
ob_start( );

    include 
"header.inc.php";
    
    
$FormElements $_POST['form_selectlisttype'];
    
    if (
$FormElements['B_cancel'])
    {
        
$mySecurity-> GotoThisPage"adminmenu.php" );
    }

    if (
$_GET['selectlisttype'] and !$FormElements['selectlisttype'])
        
$FormElements['selectlisttype'] = $_GET['selectlisttype'];

    
    echo 
$Accounts->SendExpiredForm($FormElements);
    
    if (
is_array($FormElements) or ($_GET['nowstage'] and $_GET['nowpage']) )
        
$Accounts->ListAccounts($FormElements['selectlisttype']);
    
    include 
"donate.inc.php";

    include 
"footer.inc.php";

    
ob_end_flush( );

    return 
true;
?>