<?
require 'inc/config.php3'; // Variablen Deklaration
require "$inc_path/db_connect.php3"; // Datenbank Verbindung
require "$inc_path/auth.php3"; // Authentifizierung
require "$inc_path/updatelog.php3"; // Update logging
require "$inc_path/user_track.php3"; // User Logging
if ($artikellock == 'on') {
$artikellock = 1;
} else {
$artikellock = 0;
}
if ($mail == 'on') {
$mail = 1;
} else {
$mail = 0;
}
if ($aktiv == 'on') {
$aktiv = 1;
} else {
$aktiv = 0;
}
if ( ($status == 'Superuser') || ($status == 'Projekt Administrator') || ($status == 'Bereich Administrator') || ($status == 'Dokument Administrator') ){
$zeitstempel = time();
update_dokument($dokument, $dokName, $dokBeschreibung, $aktiv, $mail, $artikellock);
}
require 'inc/db_disconnect.php3';
header("Location: dokument.php3?projekt=$projekt&bereich=$bereich");
exit;
?>