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("
%s | %s |
",
+ _("Domain name"), _("Status"));
+ while ($row=pg_fetch_array($result)) {
+ printf("%s | %s |
",
+ $row["domainname"], get_domainstatustype_name($row["status"]));
+ }
+ print("
");
+}
+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);