$ERPftpuser || $_SERVER['PHP_AUTH_PW']<>$ERPftppwd) { Header("WWW-Authenticate: Basic realm=\"My Realm\""); Header("HTTP/1.0 401 Unauthorized"); echo "Sie müssen sich autentifizieren\n"; exit; } require_once "DB.php"; function unit($sel) { global $dbP; $sql="select name from units order by sortkey"; $pgs=$dbP->getall($sql); if ($sel=='') $sel=$pgs[0][0]; if ($pgs) foreach ($pgs as $row) { echo "\t