* Andreas Oesterreicher < andreas.oesterreicher@technikum-wien.at >
* Rudolf Hangl < rudolf.hangl@technikum-wien.at >
* Gerald Simane-Sequens < gerald.simane-sequens@technikum-wien.at >
*/
require_once('../../config/vilesci.config.inc.php');
require_once('../../include/basis_db.class.php');
if (!$db = new basis_db())
die('Es konnte keine Verbindung zum Server aufgebaut werden.');
require_once('../../include/functions.inc.php');
// Variablen setzen
if (isset($_GET['uid']))
$uid=$_GET['uid'];
if (isset($_GET['aktiv']))
$aktiv=$_GET['aktiv'];
else
$aktiv='f';
// Benutzer daktivieren
if ($aktiv=='t')
if (isset($uid))
{
$qry = "UPDATE tbl_benutzer SET aktiv=FALSE WHERE uid='$uid';";
if(!$result = $db->db_query($qry))
die ($db->db_last_error());
}
else
die('UID ist nicht gesetzt.');
// LDAP Verbindung
$ds=ldap_connect(LDAP_SERVER); // must be a valid LDAP server!
//echo "connect result is " . $ds . "
";
if ($ds)
{
//echo "Binding ...";
if (!$r=ldap_bind($ds)) // this is an "anonymous" bind, typically
die("
| UID | Titel | Nachname | Vorname | Vornamen | TitelPost | Aktiv | Aktion | |||
|---|---|---|---|---|---|---|---|---|---|---|
| ".$row->uid." | "; echo "".$row->titelpre." | "; echo "".$row->nachname." | "; echo "".$row->vorname." | "; echo "".$row->vornamen." | "; echo "".$row->titelpost." | "; echo "Edit | "; //echo ""; //echo "Delete | "; echo "|||