\n"); printf("window.onload = function () { get_progs(\"\",\"edit\"); }\n"); printf("\n"); include ("include.php"); if (!isset($_SERVER['PHP_AUTH_USER']) && !isset($_SERVER['PHP_AUTH_PW'])) { header('WWW-Authenticate: Basic realm="Edit FACT Configuration Database"'); header('HTTP/1.0 401 Unauthorized'); return; } else { //echo "The password is not yet evaluated, but the username is inserted into the DB.
"; if (!CheckUsernameAndPassword($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'], GetLDAPOptions())) { header('WWW-Authenticate: Basic realm="Edit FACT Configuration Database"'); header('HTTP/1.0 401 Unauthorized'); return; } } include("db.php"); printf("With this page, you can edit the DB %s.\n", $db); printf("For view, please go here.

\n"); printf("\n"); printf("\n"); //printf("\n"); //printf("\n"); printf("\n"); //field for table with values printf("\n"); printf("\n
\n"); printf("

\n"); printf("
\n"); printf("
\n"); echo (file_get_contents("index-footer.html")); ini_set("display_errors", "Off"); ini_set("mysql.trace_mode", "Off"); } ?>