|
Revision 2112, 2.7 kB
(checked in by anarcat, 9 months ago)
|
integrate patch for linking to domains directly in domain listing.
Patch from: Sebastien Grenier
Closes: #1097
|
| Line | |
|---|
| 1 |
<?php |
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
|
|---|
| 26 |
|
|---|
| 27 |
|
|---|
| 28 |
|
|---|
| 29 |
|
|---|
| 30 |
require_once("../class/config.php"); |
|---|
| 31 |
|
|---|
| 32 |
if (!$admin->enabled) { |
|---|
| 33 |
__("This page is restricted to authorized staff"); |
|---|
| 34 |
exit(); |
|---|
| 35 |
} |
|---|
| 36 |
|
|---|
| 37 |
include("head.php"); |
|---|
| 38 |
?> |
|---|
| 39 |
</head> |
|---|
| 40 |
<body> |
|---|
| 41 |
<h3><?php __("Manage installed domains"); ?></h3> |
|---|
| 42 |
<?php |
|---|
| 43 |
if ($error) { |
|---|
| 44 |
echo "<p class=\"error\">$error</p>"; |
|---|
| 45 |
} |
|---|
| 46 |
|
|---|
| 47 |
$c=$admin->dom_list(); |
|---|
| 48 |
|
|---|
| 49 |
?> |
|---|
| 50 |
<p> |
|---|
| 51 |
<?php __("Here is the list of the domains installed on this server. You can remove a domain if it does not exist or does not point to our server anymore. You can also set the 'Lock' flag on a domain so that the user will not be able to change any DNS parameter or delete this domain from his account."); ?> |
|---|
| 52 |
</p> |
|---|
| 53 |
|
|---|
| 54 |
<p><a href="<?php echo $_SERVER["SCRIPT_NAME"]; ?>"><?php __("Update this page"); ?></a></p> |
|---|
| 55 |
|
|---|
| 56 |
<form method="post" action="adm_dodom.php"> |
|---|
| 57 |
<table border="0" cellpadding="4" cellspacing="0"> |
|---|
| 58 |
<tr><th><?php __("Action"); ?></th><th><?php __("Domain"); ?></th><th><?php __("Member"); ?></th><th>Lock</th></tr> |
|---|
| 59 |
<?php |
|---|
| 60 |
$col=1; |
|---|
| 61 |
for($i=0;$i<count($c);$i++) { |
|---|
| 62 |
$col=3-$col; |
|---|
| 63 |
?> |
|---|
| 64 |
|
|---|
| 65 |
<tr class="lst<?php echo $col; ?>"> |
|---|
| 66 |
<td><a href="adm_domlock.php?domain=<?php echo urlencode($c[$i][domaine]); ?>"><?php |
|---|
| 67 |
if ($c[$i][noerase]) __("Unlock"); else __("Lock"); ?></a></td> |
|---|
| 68 |
<td><a href="http://<?php echo $c[$i][domaine]; ?>" target="_blank"><?php echo $c[$i][domaine]; ?></a></td> |
|---|
| 69 |
<td><?php echo $c[$i][login]; ?></td> |
|---|
| 70 |
<td><?php if ($c[$i][noerase]) { |
|---|
| 71 |
echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Domain")."\" />"; |
|---|
| 72 |
} ?></td> |
|---|
| 73 |
</tr> |
|---|
| 74 |
<?php |
|---|
| 75 |
} |
|---|
| 76 |
?> |
|---|
| 77 |
</table> |
|---|
| 78 |
</form> |
|---|
| 79 |
|
|---|
| 80 |
</body> |
|---|
| 81 |
</html> |
|---|
| 82 |
|
|---|