in list of alternc accounts, show who is the creator/reseller that created the account
This commit is contained in:
parent
a3bbdcf38f
commit
4701274c2e
|
@ -73,7 +73,17 @@ if (!is_array($r)) {
|
||||||
if ($mem->user["admlist"]==0) { // Normal (large) mode
|
if ($mem->user["admlist"]==0) { // Normal (large) mode
|
||||||
?>
|
?>
|
||||||
<table cellspacing="0" cellpadding="4">
|
<table cellspacing="0" cellpadding="4">
|
||||||
<tr><th colspan="5"> </th><th><?php __("Username"); ?></th><th><?php echo _("Surname")." "._("First Name")."<br />("._("Email address").")"; ?></th><th><?php __("Account type") ?></th><th><?php __("Last login"); ?></th><th><?php __("Last fail"); ?></th><th><?php __("Last ip"); ?><th><?php __('Expiry') ?></th></tr>
|
<tr>
|
||||||
|
<th colspan="5"> </th>
|
||||||
|
<th><?php __("Username"); ?></th>
|
||||||
|
<th><?php echo _("Surname")." "._("First Name")."<br />("._("Email address").")"; ?></th>
|
||||||
|
<th><?php __("Created by") ?></th>
|
||||||
|
<th><?php __("Account type") ?></th>
|
||||||
|
<th><?php __("Last login"); ?></th>
|
||||||
|
<th><?php __("Last fail"); ?></th>
|
||||||
|
<th><?php __("Last ip"); ?></th>
|
||||||
|
<th><?php __('Expiry') ?></th>
|
||||||
|
</tr>
|
||||||
<?php
|
<?php
|
||||||
reset($r);
|
reset($r);
|
||||||
|
|
||||||
|
@ -111,6 +121,7 @@ while (list($key,$val)=each($r))
|
||||||
|
|
||||||
<td <?php if ($val["su"]) echo "style=\"color: red\""; ?>><?php echo $val["login"] ?></td>
|
<td <?php if ($val["su"]) echo "style=\"color: red\""; ?>><?php echo $val["login"] ?></td>
|
||||||
<td><a href="mailto:<?php echo $val["mail"]; ?>"><?php echo $val["nom"]." ".$val["prenom"] ?></a> </td>
|
<td><a href="mailto:<?php echo $val["mail"]; ?>"><?php echo $val["nom"]." ".$val["prenom"] ?></a> </td>
|
||||||
|
<td><?php echo $val["parentlogin"] ?></td>
|
||||||
<td><?php echo $val["type"] ?></td>
|
<td><?php echo $val["type"] ?></td>
|
||||||
<td><?php echo $val["lastlogin"] ?></td>
|
<td><?php echo $val["lastlogin"] ?></td>
|
||||||
<td><?php echo $val["lastfail"] ?></td>
|
<td><?php echo $val["lastfail"] ?></td>
|
||||||
|
|
|
@ -95,7 +95,7 @@ class m_admin {
|
||||||
$err->raise("admin",1);
|
$err->raise("admin",1);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$db->query("SELECT * FROM membres WHERE uid='$uid';");
|
$db->query("SELECT m.*, parent.login as parentlogin FROM membres as m LEFT JOIN membres as parent ON (parent.uid = m.creator) WHERE m.uid='$uid';");
|
||||||
if ($db->num_rows()) {
|
if ($db->num_rows()) {
|
||||||
$db->next_record();
|
$db->next_record();
|
||||||
$c=$db->Record;
|
$c=$db->Record;
|
||||||
|
|
Loading…
Reference in New Issue