Subversion-Projekte lars-tiefland.openvz_admin

Revision

Revision 168 | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 168 Revision 172
Zeile 1... Zeile 1...
1
<?php
1
<?php
2
    //$Id: auth.php 168 2011-07-10 19:11:02Z lars $
2
    //$Id: auth.php 172 2011-08-14 19:58:26Z lars $
3
    /**
3
    /**
4
     *     @package    openvz_admin
4
     *     @package    openvz_admin
5
     *     @author        Lars Tiefland <ltiefland@gmail.com> 
5
     *     @author        Lars Tiefland <ltiefland@gmail.com> 
6
     **/
6
     **/
7
    function authenticiate()
7
    function authenticiate()
Zeile 24... Zeile 24...
24
        authenticiate();
24
        authenticiate();
25
    }
25
    }
26
    else
26
    else
27
    {
27
    {
28
        $u_name = $_SERVER["PHP_AUTH_USER"];
28
        $u_name = $_SERVER["PHP_AUTH_USER"];
29
        if ( strtolower( $u_name ) == "guest" )
-
 
30
        {
-
 
31
            require ( "email.php" );
-
 
32
            $pw = "";
-
 
33
        }
-
 
34
        else
-
 
35
        {
-
 
36
            $pw = $_SERVER["PHP_AUTH_PW"];
29
        $pw = $_SERVER["PHP_AUTH_PW"];
37
        }
-
 
38
        $user = new User( $u_name, $pw );
30
        $user = new User( $u_name, $pw );
39
        if ( is_null( $user->u_id ) )
31
        if ( is_null( $user->u_id ) )
40
        {
32
        {
41
            authenticiate();
33
            authenticiate();
42
        }
34
        }