1
0
Fork 0
git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/gnuviech.info/gnuviechadmin/trunk@27 a67ec6bc-e5d5-0310-a910-815c51eb3124
This commit is contained in:
Jan Dittberner 2003-12-20 14:36:28 +00:00
parent 2b0cbdf707
commit 056a13699e
7 changed files with 43 additions and 12 deletions

9
php/commonfoot.php Normal file
View file

@ -0,0 +1,9 @@
<div>
<hr/>
<a href="start.php"><?php print (_("To start page")); ?></a>
</div>
<div class="copyright">
&copy; 2003 Jan Dittberner
</div>
</body>
</html>

7
php/commonhead.php Normal file
View file

@ -0,0 +1,7 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>GNU-Viech Administration tool</title>
<link rel="stylesheet" href="format.css" type="text/css"/>
</head>
<body>

View file

@ -29,4 +29,7 @@ else {
db_close($dbh); db_close($dbh);
?> ?>
</div> </div>
<a href="registerdomain.php"><?php print(_("Add domain")); ?></a> <a href="registerdomain.php"><?php print(_("Add domain")); ?></a>
<?php
include("commonfoot.php");
?>

8
php/format.css Normal file
View file

@ -0,0 +1,8 @@
table.userhead {
background:#FF8080;
width:100%;
}
.copyright {
font-size:8px;
}

View file

@ -3,4 +3,5 @@ require("wantauth.php");
require("tools.php"); require("tools.php");
session_start(); session_start();
include("userhead.php"); include("userhead.php");
include("commonfoot.php");
?> ?>

View file

@ -22,24 +22,24 @@ if (pg_num_rows($result) == 0) {
} }
pg_close($dbh); pg_close($dbh);
include("commonhead.php");
?> ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <div>
<html>
<head>
<title>GNU-Viech Administration tool</title>
</head>
<body>
<?php <?php
if (! $logged_in) { if (! $logged_in) {
echo _("You're not known to the system.")."<br/>"; print("<p>" . _("You're not known to the system.") . "<br/>");
echo _("Please go back and try again."); print(_("Please go back and try again.") . "</p>");
} else { } else {
include("userhead.php"); include("userhead.php");
// echo _("Session with ID: ").session_id()."<br/>"; // echo _("Session with ID: ").session_id()."<br/>";
// echo _("UID: ").$_SESSION["userid"]."<br/>"; // echo _("UID: ").$_SESSION["userid"]."<br/>";
print("<p>");
printf(_("You may now see your <a href=\"%s\">Domain list</a>."), printf(_("You may now see your <a href=\"%s\">Domain list</a>."),
"domainlist.php"); "domainlist.php");
print("</p>");
} }
?> ?>
</body> </div>
</html> <?php
include("commonfoot.php");
?>

View file

@ -1,5 +1,8 @@
<?php
include("commonhead.php");
?>
<div> <div>
<table> <table class="userhead">
<tr><td> <tr><td>
<img src="images/gnu.png" width="45" height="43" alt="small GNU head"/> <img src="images/gnu.png" width="45" height="43" alt="small GNU head"/>
</td><td> </td><td>