diff --git a/pages/account/55.php b/pages/account/55.php
new file mode 100644
index 0000000..1293f5c
--- /dev/null
+++ b/pages/account/55.php
@@ -0,0 +1,84 @@
+ /*
+ LibreSSL - CAcert web application
+ Copyright (C) 2004-2008 CAcert Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; version 2 of the License.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+*/ ?>
+
+?>
+
+
+
+
+ =_("Date")?> |
+ =_("Test")?> |
+ =_("Variant")?> |
+
+
+ $query = "SELECT `CP`.`pass_date`, `CT`.`type_text`, `CV`.`test_text` ".
+ " FROM `cats_passed` AS CP, `cats_variant` AS CV, `cats_type` AS CT ".
+ " WHERE `CP`.`variant_id`=`CV`.`id` AND `CV`.`type_id`=`CT`.`id` AND `CP`.`user_id` ='".(int)intval($_SESSION['profile']['id'])."'".
+ " ORDER BY `CP`.`pass_date`";
+
+ $res = mysql_query($query);
+
+ $HaveTest=0;
+ while($row = mysql_fetch_array($res, MYSQL_NUM))
+ {
+ if ($row[1] == "Assurer Challenge") {
+ $HaveTest=1;
+ }
+?>
+
+ =$row[0]?> |
+ =$row[1]?> |
+ =$row[2]?> |
+
+ }
+?>
+
+
+
+
+
+ $query = 'SELECT `u`.id, `u`.`assurer`, SUM(`points`) FROM `users` AS `u`, `notary` AS `n` '.
+ ' WHERE `u`.`id` = \''.(int)intval($_SESSION['profile']['id']).'\' AND `n`.`to` = `u`.`id` AND `expire` < now() '.
+ ' GROUP BY `u`.id, `u`.`assurer`';
+ $res = mysql_query($query);
+ if (!res) {
+ print ''._('Internal Error').' | '."\n";
+ } else {
+ $row = mysql_fetch_array($res, MYSQL_NUM);
+
+ if ($HaveTest && $row[1] && ($row[2]>=100)) {
+?> =_("You have passed the Assurer Challenge and collected at least 100 Assurance Points, you are an Assurer.")?> |
+ } elseif (($row[2]>=100) && !$HaveTest) {
+?> =_("You have at least 100 Assurance Points, if you want to become an assurer try the ").'Assurer Challenge!'?> |
+ } elseif ($HaveTest && ($row[2]<100)) {
+?> =_("You have passed the Assurer Challenge, but to become an Assurer you still have to reach 100 Assurance Points!")?> |
+ } elseif ($HaveTest && !$row[1] && ($row[2]>=100)) {
+?> =_("There is an internal inconsistence in your account's data, please contact ").'cacert-support@lists.cacert.org!'?> |
+ }
+ }
+?>
+
+
+