diff --git a/php/images/gnu.png b/php/images/gnu.png new file mode 100644 index 0000000..d4efb33 Binary files /dev/null and b/php/images/gnu.png differ diff --git a/php/start.php b/php/start.php index 758e3cc..185d0e0 100644 --- a/php/start.php +++ b/php/start.php @@ -34,8 +34,9 @@ if (! $logged_in) { echo _("You're not known to the system.")."
"; echo _("Please go back and try again."); } else { - echo _("Session with ID: ").session_id()."
"; - echo _("UID: ").$_SESSION["userid"]."
"; + include("userhead.php"); + // echo _("Session with ID: ").session_id()."
"; + // echo _("UID: ").$_SESSION["userid"]."
"; printf(_("You may now see your Domain list."), "domainlist.php"); } diff --git a/php/userhead.php b/php/userhead.php new file mode 100644 index 0000000..0f1122d --- /dev/null +++ b/php/userhead.php @@ -0,0 +1,31 @@ +
+ +
+small GNU head + +

+"); + +$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); +$row=pg_fetch_array($result); +printf("%s %s, %s %s, %s %s, %s %s", $row["firstname"], $row["lastname"], + $row["address1"], $row["address2"], $row["zipcode"], $row["town"], + $row["state"], $row["cname"]); + +db_close($dbh); +?> +

+
\ No newline at end of file diff --git a/php/usertypes.php b/php/usertypes.php index 6b31de7..3b3e896 100644 --- a/php/usertypes.php +++ b/php/usertypes.php @@ -4,4 +4,21 @@ define("cUSRADMIN",255); define("cUSRWEB",128); define("cUSRMAIL",64); define("cUSRNONE",0); + +function get_usertype_name($usertype) { + switch ($usertype) { + case cUSRADMIN: + return _("Administrator"); + break; + case cUSRWEB: + return _("Web user"); + break; + case cUSRMAIL: + return _("Mail user"); + break; + case cUSRNONE: + default: + return _("Unknown user type"); + } +} ?> \ No newline at end of file