2003-11-23 21:44:06 +01:00
|
|
|
<?php
|
2003-12-20 15:23:33 +01:00
|
|
|
require("wantauth.php");
|
|
|
|
require("tools.php");
|
2004-03-08 18:42:14 +01:00
|
|
|
$dbh=db_open();
|
2003-12-20 15:23:33 +01:00
|
|
|
session_start();
|
|
|
|
include("userhead.php");
|
|
|
|
include("domainstatustypes.php");
|
|
|
|
?>
|
|
|
|
<div>
|
|
|
|
<?php
|
|
|
|
$query=sprintf("SELECT * FROM domain WHERE client=%d",
|
|
|
|
$_SESSION["client"]);
|
2004-05-10 21:46:56 +02:00
|
|
|
$result=db_query($dbh, $query);
|
2003-12-20 15:23:33 +01:00
|
|
|
|
2004-05-10 21:46:56 +02:00
|
|
|
$rows=db_num_rows($result);
|
2003-12-20 15:23:33 +01:00
|
|
|
if ($rows==0) {
|
|
|
|
print("<p>" . _("You don't have any domains registered.") . "</p>");
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
print("<p>" . _("Here is a list of your currently registered domains.") . "</p>");
|
|
|
|
printf("<table><tr><th>%s</th><th>%s</th></tr>",
|
|
|
|
_("Domain name"), _("Status"));
|
2004-05-10 21:46:56 +02:00
|
|
|
while ($row=db_fetch_array($result)) {
|
2003-12-20 15:23:33 +01:00
|
|
|
printf("<tr><td>%s</td><td>%s</td></tr>",
|
|
|
|
$row["domainname"], get_domainstatustype_name($row["status"]));
|
|
|
|
}
|
|
|
|
print("</table>");
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</div>
|
2003-12-20 15:36:28 +01:00
|
|
|
<a href="registerdomain.php"><?php print(_("Add domain")); ?></a>
|
|
|
|
<?php
|
|
|
|
include("commonfoot.php");
|
2004-05-10 21:46:56 +02:00
|
|
|
?>
|