source: trunk/www/db_po/edit_po.php@ 19598

Last change on this file since 19598 was 18802, checked in by Daniela Dorner, 8 years ago
adapted to change of column fValidFrom in DB
  • Property svn:executable set to *
File size: 1.7 KB
Line 
1<?php
2{
3 ini_set("display_errors", "On");
4 ini_set("mysql.trace_mode", "On");
5
6 echo (file_get_contents("index-header.html"));
7
8 //call get_progs() at startup
9 printf("<script type=\"text/javascript\" >\n");
10 printf("window.onload = function () { get_progs(\"\",\"edit\"); }\n");
11 printf("</script>\n");
12
13 include ("include.php");
14 if (!isset($_SERVER['PHP_AUTH_USER']) && !isset($_SERVER['PHP_AUTH_PW']))
15 {
16 header('WWW-Authenticate: Basic realm="Edit FACT Configuration Database"');
17 header('HTTP/1.0 401 Unauthorized');
18 return;
19 }
20 else
21 {
22 //echo "The password is not yet evaluated, but the username is inserted into the DB.<br>";
23 if (!CheckUsernameAndPassword($_SERVER['PHP_AUTH_USER'], $_SERVER['PHP_AUTH_PW'], GetLDAPOptions()))
24 {
25 header('WWW-Authenticate: Basic realm="Edit FACT Configuration Database"');
26 header('HTTP/1.0 401 Unauthorized');
27 return;
28 }
29 }
30
31 include("db.php");
32 printf("With this page, you can <u>edit</u> the DB <b>%s</b>.\n", $db);
33 printf("For view, please go <a href='view_po.php'>here</a>.<br><br>\n");
34 printf("<table border='0'><tbody>\n");
35 printf("<tr>\n");
36 //printf("<td valign='top' id='progfield'></td>\n");
37 //printf("<td valign='top' id='keyfield'></td>\n");
38 printf("<td valign='top'>\n");
39 printf("<div id='progfield'></div><br>\n");
40 printf("<div id='keyfield'></div>\n");
41 printf("</td>\n");
42 //field for table with values
43 printf("<td valign='top' id='valuefield1'></td>\n");
44 printf("</tr>\n</tbody></table>\n");
45
46 echo (file_get_contents("index-footer.html"));
47
48 ini_set("display_errors", "Off");
49 ini_set("mysql.trace_mode", "Off");
50}
51?>
Note: See TracBrowser for help on using the repository browser.