From 4701274c2e7206386c7c89ae37c3aea76b552b4a Mon Sep 17 00:00:00 2001 From: mlutfy <> Date: Wed, 28 Jan 2009 19:17:56 +0000 Subject: [PATCH] in list of alternc accounts, show who is the creator/reseller that created the account --- bureau/admin/adm_list.php | 13 ++++++++++++- bureau/class/m_admin.php | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/bureau/admin/adm_list.php b/bureau/admin/adm_list.php index e2064198..8824f71c 100644 --- a/bureau/admin/adm_list.php +++ b/bureau/admin/adm_list.php @@ -73,7 +73,17 @@ if (!is_array($r)) { if ($mem->user["admlist"]==0) { // Normal (large) mode ?>
("._("Email address").")"; ?> | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
+ | + | ("._("Email address").")"; ?> | ++ | + | + | + | + | + | "> | +diff --git a/bureau/class/m_admin.php b/bureau/class/m_admin.php index 869f5cba..9eee4b6b 100644 --- a/bureau/class/m_admin.php +++ b/bureau/class/m_admin.php @@ -95,7 +95,7 @@ class m_admin { $err->raise("admin",1); 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()) { $db->next_record(); $c=$db->Record; |