$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"; $db=@DB::connect($ERPdns); if (!DB::isError($db)) { $sql="select id,pricegroup from pricegroup"; $pgs=$db->getall($sql); } function pg($sel) { global $pgs; echo "\t