Login   Register  
PHP Classes
elePHPant
Icontem

File: functions.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Voznyak Nazar  >  MVC Membership System  >  functions.php  >  Download  
File: functions.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary functions
Class: MVC Membership System
Membership system using the MVC design pattern
Author: By
Last change: isPartner function added
Date: 2003-12-29 23:58
Size: 709 bytes
 

Contents

Class file image Download
<?

    
// check if any administrator is currently logged
    
function isAdminLogged() {
      if (!isset(
$_SESSION['username']) || !isset($_SESSION['password']) || $_SESSION['group']!='admin'
      return 
false;
      else return 
true;
    }

    
// check if any member is currently logged
    
function isMemberLogged() {
      if (!isset(
$_SESSION['username']) || !isset($_SESSION['password']) || $_SESSION['group']!='member'
       return 
false
       else return 
true;
    }

    
// check if any partner is currently logged
    
function isPartnerLogged() {
      if (!isset(
$_SESSION['username']) || !isset($_SESSION['password']) || $_SESSION['group']!='partner'
       return 
false
       else return 
true;
    }

?>