Commit 1deeb6d8 authored by Benjamin Sonntag's avatar Benjamin Sonntag
Browse files

adding 'connect as' link in the domain list, (I craved for ... and today I...

adding 'connect as' link in the domain list, (I craved for ... and today I remembered I have commit right ;) ), and removed a _parent target in another link
parent 6a1e676c
...@@ -52,7 +52,7 @@ $c=$admin->dom_list(); ...@@ -52,7 +52,7 @@ $c=$admin->dom_list();
<form method="post" action="adm_dodom.php"> <form method="post" action="adm_dodom.php">
<table border="0" cellpadding="4" cellspacing="0"> <table border="0" cellpadding="4" cellspacing="0">
<tr><th><?php __("Action"); ?></th><th><?php __("Domain"); ?></th><th><?php __("Member"); ?></th><th>Lock</th></tr> <tr><th><?php __("Action"); ?></th><th><?php __("Domain"); ?></th><th><?php __("Member"); ?></th><th><?php __("Connect as"); ?><th>Lock</th></tr>
<?php <?php
$col=1; $col=1;
for($i=0;$i<count($c);$i++) { for($i=0;$i<count($c);$i++) {
...@@ -64,6 +64,12 @@ for($i=0;$i<count($c);$i++) { ...@@ -64,6 +64,12 @@ for($i=0;$i<count($c);$i++) {
if ($c[$i]["noerase"]) __("Unlock"); else __("Lock"); ?></a></td> if ($c[$i]["noerase"]) __("Unlock"); else __("Lock"); ?></a></td>
<td><a href="http://<?php echo $c[$i][domaine]; ?>" target="_blank"><?php echo $c[$i]["domaine"]; ?></a></td> <td><a href="http://<?php echo $c[$i][domaine]; ?>" target="_blank"><?php echo $c[$i]["domaine"]; ?></a></td>
<td><?php echo $c[$i]["login"]; ?></td> <td><?php echo $c[$i]["login"]; ?></td>
<td>
<?php if($admin->checkcreator($c[$i]['uid'])) {
?>
<a href="adm_login.php?id=<?php echo $c[$i]["uid"];?>"><?php __("Connect as"); ?></a>
<?php } ?>
</td>
<td><?php if ($c[$i]["noerase"]) { <td><?php if ($c[$i]["noerase"]) {
echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Domain")."\" />"; echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Domain")."\" />";
} ?></td> } ?></td>
......
...@@ -132,7 +132,7 @@ while (list($key,$val)=each($r)) ...@@ -132,7 +132,7 @@ while (list($key,$val)=each($r))
else { else {
if($admin->checkcreator($val['uid'])) { if($admin->checkcreator($val['uid'])) {
?> ?>
<a href="adm_login.php?id=<?php echo $val["uid"];?>" target="_parent"><?php __("Connect as"); ?></a> <a href="adm_login.php?id=<?php echo $val["uid"];?>"><?php __("Connect as"); ?></a>
<?php } } ?> <?php } } ?>
</td> </td>
<?php <?php
......
...@@ -826,7 +826,7 @@ EOF; ...@@ -826,7 +826,7 @@ EOF;
*/ */
function dom_list() { function dom_list() {
global $db; global $db;
$db->query("SELECT m.login,d.domaine,d.gesdns,d.gesmx,d.noerase FROM domaines d LEFT JOIN membres m ON m.uid=d.compte ORDER BY domaine;"); $db->query("SELECT m.uid,m.login,d.domaine,d.gesdns,d.gesmx,d.noerase FROM domaines d LEFT JOIN membres m ON m.uid=d.compte ORDER BY domaine;");
while ($db->next_record()) { while ($db->next_record()) {
$c[]=$db->Record; $c[]=$db->Record;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment