From 2b0cbdf707eae890860362ba980bd5d6fabfa64e Mon Sep 17 00:00:00 2001 From: Jan Dittberner Date: Sat, 20 Dec 2003 14:23:33 +0000 Subject: [PATCH] Domain list git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/gnuviech.info/gnuviechadmin/trunk@26 a67ec6bc-e5d5-0310-a910-815c51eb3124 --- php/domainlist.php | 32 +++++++++++++++++++++++++++++++- php/domainstatustypes.php | 26 ++++++++++++++++++++++++++ php/registerdomain.php | 6 ++++++ php/userhead.php | 1 + 4 files changed, 64 insertions(+), 1 deletion(-) create mode 100644 php/domainstatustypes.php create mode 100644 php/registerdomain.php diff --git a/php/domainlist.php b/php/domainlist.php index 67c94a5..e471c86 100644 --- a/php/domainlist.php +++ b/php/domainlist.php @@ -1,2 +1,32 @@ \ No newline at end of file +require("wantauth.php"); +require("tools.php"); +session_start(); +include("userhead.php"); +include("domainstatustypes.php"); +?> +
+" . _("You don't have any domains registered.") . "

"); +} +else { + print("

" . _("Here is a list of your currently registered domains.") . "

"); + printf("", + _("Domain name"), _("Status")); + while ($row=pg_fetch_array($result)) { + printf("", + $row["domainname"], get_domainstatustype_name($row["status"])); + } + print("
%s%s
%s%s
"); +} +db_close($dbh); +?> +
+ \ No newline at end of file diff --git a/php/domainstatustypes.php b/php/domainstatustypes.php new file mode 100644 index 0000000..afcee41 --- /dev/null +++ b/php/domainstatustypes.php @@ -0,0 +1,26 @@ + \ No newline at end of file diff --git a/php/registerdomain.php b/php/registerdomain.php new file mode 100644 index 0000000..7dcbeb9 --- /dev/null +++ b/php/registerdomain.php @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/php/userhead.php b/php/userhead.php index 0f1122d..25cc18f 100644 --- a/php/userhead.php +++ b/php/userhead.php @@ -17,6 +17,7 @@ printf(_("Logged in as %s (%s)"), $row["name"], get_usertype_name($row["type"])); print("
"); +$_SESSION["client"]=$row["client"]; $query=sprintf("SELECT client.*, country.name AS cname FROM client, country WHERE client.id=%d AND country.id=client.country", $row["client"]); $result=pg_query($dbh, $query);