Packageindex Classtrees Modulegroups Elementlist Report XML Files

File: c:/web/jpeto2/jpeto/jpeto_authentication.php
JPETo - James's Publishing & Editing Tool - jpeto_system

jpeto_authentication

jpeto_authentication

this class provides the authentication functionality

 

private class jpeto_authentication

this class provides the authentication functionality

 

Public Method Summary

void

jpeto_authentication([ integer $AccessLevel, string $Realm, string $ExtraCondition ])

Tries to authenticate a user for the given AccessLevel & optional ExtraCondition

Private Method Summary

void

authenticate()

Displays the Browsers built-in authentication popup
void

block()

Blocks the current request. sends HTTP/1.0 401 Error and exits

Private Field Summary

integer

$AccessLevel

default AccessLevel
string

$Realm

name of the Realm

Included files Summary, Type: include_once

jpeto/jpeto_config.php Warning: documentation is missing.
jpeto/jpeto_user.php Warning: documentation is missing.

Public Method Details

jpeto_authentication

public void jpeto_authentication( [ integer $AccessLevel, string $Realm, string $ExtraCondition ] )

  Tries to authenticate a user for the given AccessLevel & optional ExtraCondition

Parameter
integer $AccessLevel = >>2<<
string $Realm = >>"JPETo Protected Area"<<
the name of the realm
string $ExtraCondition = >>""<<
Boolean Expression (hide $ and " characters!) with the following Syntax: $Var1 == \"Value\"

Example: $auth = new jpeto_authentication(2, "JPETo TMS Interface", "$user->Profile[\"p_u_tms_Admin\"]==1");
You may access all properties the object $user (instance of jpeto_user) here, all other objects & functions should be accesses "GLOBAL"
Returns void


Private Method Details

authenticate

private void authenticate( )

  Displays the Browsers built-in authentication popup

Returns void


block

private void block( )

  Blocks the current request. sends HTTP/1.0 401 Error and exits

Returns void


Private Field Details

$AccessLevel

private integer $AccessLevel

>>10<<

default AccessLevel


$Realm

private string $Realm

>>"JPETo Access Protected Area"<<

name of the Realm


Included Files, Type: include_once

jpeto/jpeto_config.php

include_once( jpeto/jpeto_config.php )



jpeto/jpeto_user.php

include_once( jpeto/jpeto_user.php )




Packageindex Classtrees Modulegroups Elementlist Report XML Files
PHPDoc 1.0beta