diff options
author | Michael Tänzer <neo@nhng.de> | 2014-04-29 16:13:59 +0200 |
---|---|---|
committer | Michael Tänzer <neo@nhng.de> | 2014-04-29 16:13:59 +0200 |
commit | bb11f3a0645a6b96767c9c318fa239a12c3351e5 (patch) | |
tree | 2dba41fa37855e6f1165c89d91c04c1bc18d6f3d /pages/wot/10.php | |
parent | 4f555bd41ae6340c21f199512090e1e47d08fa3a (diff) | |
parent | 1a119ab85f3bd5b352223ceef6ba8f29151130b2 (diff) | |
download | cacert-devel-bb11f3a0645a6b96767c9c318fa239a12c3351e5.tar.gz cacert-devel-bb11f3a0645a6b96767c9c318fa239a12c3351e5.tar.xz cacert-devel-bb11f3a0645a6b96767c9c318fa239a12c3351e5.zip |
Merge branch 'bug-1221' into bug-1138
Conflicts:
includes/account.php
includes/general.php
includes/loggedin.php
includes/notary.inc.php
pages/account/43.php
pages/account/55.php
pages/wot/10.php
www/index.php
www/wot.php
Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'pages/wot/10.php')
-rw-r--r-- | pages/wot/10.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pages/wot/10.php b/pages/wot/10.php index e490af9..c7e1ff1 100644 --- a/pages/wot/10.php +++ b/pages/wot/10.php @@ -24,7 +24,7 @@ <td colspan="5" class="title"><?=_("Assurer Ranking")?></td> </tr> <tr> -<? +<?// the rank calculation is not adjusted to the new deletion method $query = "SELECT `users`. *, count(*) AS `list` FROM `users`, `notary` WHERE `users`.`id` = `notary`.`from` AND `notary`.`from` != `notary`.`to` AND `from`='".intval($_SESSION['profile']['id'])."' GROUP BY `notary`.`from`"; @@ -64,11 +64,11 @@ <td class="DataTD"><b><?=_("Method")?></b></td> </tr> <? - $query = "select * from `notary` where `deleted`=0 and `to`='".intval($_SESSION['profile']['id'])."'"; + $query = "select `id`, `date`, `from`, `points`, `location`, `method` from `notary` where `to`='".intval($_SESSION['profile']['id'])."' and `deleted`=0"; $res = mysql_query($query); while($row = mysql_fetch_assoc($res)) { - $fromuser = mysql_fetch_assoc(mysql_query("select * from `users` where `id`='".intval($row['from'])."'")); + $fromuser = mysql_fetch_assoc(mysql_query("select `fname`, `lname` from `users` where `id`='".intval($row['from'])."'")); ?> <tr> <td class="DataTD"><?=$row['id']?></td> @@ -114,11 +114,11 @@ if ($thawte) </tr> <? $points = 0; - $query = "select * from `notary` where `from`='".intval($_SESSION['profile']['id'])."' and `deleted`=0 and `to`!='".intval($_SESSION['profile']['id'])."'"; + $query = "select `id`, `date`, `points`, `to`, `location`, `method` from `notary` where `from`='".intval($_SESSION['profile']['id'])."' and `to`!='".intval($_SESSION['profile']['id'])."' and `deleted`=0" ; $res = mysql_query($query); while($row = mysql_fetch_assoc($res)) { - $fromuser = mysql_fetch_assoc(mysql_query("select * from `users` where `id`='".intval($row['to'])."'")); + $fromuser = mysql_fetch_assoc(mysql_query("select `fname`, `lname` from `users` where `id`='".intval($row['to'])."'")); $points += $row['points']; $name = trim($fromuser['fname']." ".$fromuser['lname']); if($name == "") |