adapt to real environment
git-svn-id: file:///home/www/usr01/svn/gnuviechadmin/gnuviech.info/gnuviechadmin/trunk@33 a67ec6bc-e5d5-0310-a910-815c51eb3124
This commit is contained in:
parent
2641ac4f10
commit
f6ca9aa8a1
5 changed files with 23 additions and 19 deletions
|
@ -10,9 +10,9 @@ include("domainstatustypes.php");
|
|||
<?php
|
||||
$query=sprintf("SELECT * FROM domain WHERE client=%d",
|
||||
$_SESSION["client"]);
|
||||
$result=pg_query($dbh, $query);
|
||||
$result=db_query($dbh, $query);
|
||||
|
||||
$rows=pg_num_rows($result);
|
||||
$rows=db_num_rows($result);
|
||||
if ($rows==0) {
|
||||
print("<p>" . _("You don't have any domains registered.") . "</p>");
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ 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"));
|
||||
while ($row=pg_fetch_array($result)) {
|
||||
while ($row=db_fetch_array($result)) {
|
||||
printf("<tr><td>%s</td><td>%s</td></tr>",
|
||||
$row["domainname"], get_domainstatustype_name($row["status"]));
|
||||
}
|
||||
|
@ -31,4 +31,4 @@ else {
|
|||
<a href="registerdomain.php"><?php print(_("Add domain")); ?></a>
|
||||
<?php
|
||||
include("commonfoot.php");
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue