|
|
|
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
|
| |
|
|
|
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 |
$AccessLeveldefault AccessLevel |
| string |
$Realmname of the Realm |
|
|
|
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
|
|
|
|
|
|
|
|
| PHPDoc 1.0beta |