Login   Register  
PHP Classes
elePHPant
Icontem

File: phpsecureweb/adminmenu.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/adminmenu.php  >  Download  
File: phpsecureweb/adminmenu.php
Role: Application script
Content type: text/plain
Description: shows the admin menu
Class: phpsecureweb
Allow users certain rights, login with password.
Author: By
Last change:
Date: 2002-10-29 03:50
Size: 745 bytes
 

Contents

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

    
require_once "AdminFunctions.class.php";
    require_once 
"Security.class.php";
    
    
$mySecurity = new Security( );

    
#
    # This should be added in every script. Ofcourse the action name
    # will be different for each script.
    #
    
if ($mySecurity-> isNotAllowedTo('Show Admin Menu'))
    {
        
$mySecurity-> GotoLoginPage( );
        return 
false;
    }

    
ob_start( );

    include 
"header.inc.php";
    
    
$myAdminFunctions = new AdminFunctions( );

    
$FormElements $_POST["form_adminmenu"];

    
$FormElements['__error'] = "";

    
$myAdminFunctions-> ShowAdminMenu($FormElements);

    include 
"donate.inc.php";

    include 
"footer.inc.php";

    
ob_end_flush( );

    return 
true;
?>