Changeset 11598 for trunk/www/db_po


Ignore:
Timestamp:
07/26/11 10:50:28 (13 years ago)
Author:
Daniela Dorner
Message:
added ldap user authentication (not yet enabled)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/db_po/edit_po.php

    r11505 r11598  
    1010    printf("window.onload = function () { get_progs(\"\",\"10\",\"edit\"); }\n");
    1111    printf("</script>\n");
     12
     13    include ("include.php");
     14    if (!isset($_SERVER['PHP_AUTH_USER']))
     15    {
     16        header('WWW-Authenticate: Basic realm="Build Datasets"');
     17        header('HTTP/1.0 401 Unauthorized');
     18        return;
     19    }
     20    else
     21    {
     22        echo "The password is not yet evaluated, but the username is inserted into the DB.<br>";
     23        //if (!CheckUsernameAndPassword($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'], GetLDAPOptions()))
     24        //    return;
     25    }
    1226
    1327    include("db.php");
Note: See TracChangeset for help on using the changeset viewer.