From 2540dc0f8670650293dfa789f567662e6dbef3e7 Mon Sep 17 00:00:00 2001 From: Wytze van der Raay Date: Thu, 17 Jan 2013 14:55:28 +0000 Subject: [PATCH] Fix for http://bugs.cacert.org/view.php?id=888 "to add new assurance method TTP" --- includes/wot.inc.php | 2 ++ www/wot.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/wot.inc.php b/includes/wot.inc.php index edc442a..6b3bcc8 100644 --- a/includes/wot.inc.php +++ b/includes/wot.inc.php @@ -364,6 +364,8 @@ break; case 'Unknown': // to be revoked in the future? limit to max 50 pts? case 'Trusted Third Parties': // to be revoked in the future? limit to max 35 pts? + case 'TTP-Assisted': // TTP assurances, limit to 35 + case 'TOPUP': // TOPUP to be delevoped in the future, limit to 30 case '': // to be revoked in the future? limit to max 50 pts? case 'Face to Face Meeting': // normal assurances, limit to 35/50 pts in the future? break; diff --git a/www/wot.php b/www/wot.php index c6c0568..a8506cb 100644 --- a/www/wot.php +++ b/www/wot.php @@ -293,7 +293,7 @@ $iecho= "c"; } else if($_SESSION['profile']['board'] == 1) { $query .= ",\n`method`='".mysql_escape_string(stripslashes($_POST['method']))."'"; } else if($_SESSION['profile']['ttpadmin'] == 1 && ($_POST['method'] == 'Trusted 3rd Parties' || $_POST['method'] == 'Trusted Third Parties')) { - $query .= ",\n`method`='Trusted Third Parties'"; + $query .= ",\n`method`='TTP-Assisted'"; } mysql_query($query); fix_assurer_flag($_SESSION['_config']['notarise']['id']);