$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; } echo $out; } } $debug = true; include_once("error.php"); include_once("dblib.php"); $api = php_sapi_name(); if ( $api == 'cli' ) { echo "Nur im Browser benutzen\n"; exit(-1); }; $err = new error($api); $zeichen = array("","UTF-8","ISO-8859-1","ISO-8859-15","Windows-1252","ASCII"); function lager($sel,$db) { if (!$db) return ''; $sql = "select w.description as lager,b.description as platz,b.id from "; $sql .= "bin b left join warehouse w on w.id=b.warehouse_id "; $sql .= "order by b.warehouse_id,b.id"; $bin=$db->getall($sql); echo "\t