// $Id: confedit.php,v 0.10 2006/02/06 11:34:30 hli Exp $
if (!isset($_SERVER['PHP_AUTH_USER'])) {
Header("WWW-Authenticate: Basic realm=\"Configurations-Editor\"");
Header("HTTP/1.0 401 Unauthorized");
echo "Sie müssen sich autentifizieren\n";
exit;
} else {
include "conf.php";
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