diff --git a/public/include/classes/statistics.class.php b/public/include/classes/statistics.class.php index f3924f13..b86acd72 100644 --- a/public/include/classes/statistics.class.php +++ b/public/include/classes/statistics.class.php @@ -189,7 +189,8 @@ class Statistics { a.username AS username, a.donate_percent AS donate_percent, a.email AS email, - ROUND(COUNT(s.id) * POW(2," . $this->config['difficulty'] . ") / 600 / 1000,2) AS hashrate + ROUND(COUNT(s.id) * POW(2," . $this->config['difficulty'] . ") / 600 / 1000,2) AS hashrate, + ( SELECT COUNT(id) FROM " . $this->share->getTableName() . " WHERE a.username = SUBSTRING_INDEX( s.username, '.', 1 ) ) AS shares FROM " . $this->user->getTableName() . " AS a LEFT JOIN " . $this->share->getTableName() . " AS s ON a.username = SUBSTRING_INDEX( s.username, '.', 1 ) diff --git a/public/templates/mmcFE/admin/user/default.tpl b/public/templates/mmcFE/admin/user/default.tpl index 92809395..86c52e48 100644 --- a/public/templates/mmcFE/admin/user/default.tpl +++ b/public/templates/mmcFE/admin/user/default.tpl @@ -17,6 +17,7 @@ ID Username E-Mail + Shares   Hashrate   Est. Donation   Est. Payout    @@ -30,6 +31,7 @@ {$USERS[user].id} {$USERS[user].username} {$USERS[user].email} + {$USERS[user].shares} {$USERS[user].hashrate} {$USERS[user].payout.est_donation|number_format:"8"} {$USERS[user].payout.est_payout|number_format:"8"} @@ -49,6 +51,7 @@ ID Username E-Mail + Shares   Hashrate Est. Donation Est. Payout