bug 888: fix for new ttp method "TTP-Assisted"
authorINOPIAE <inopiae@cacert.org>
Sun, 2 Dec 2012 17:40:05 +0000 (18:40 +0100)
committerINOPIAE <inopiae@cacert.org>
Sun, 2 Dec 2012 17:40:05 +0000 (18:40 +0100)
includes/wot.inc.php
www/wot.php

index edc442a..6563778 100644 (file)
                        case 'Trusted Third Parties':        // to be revoked in the future? limit to max 35 pts?
                        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?
+                       case 'TTP-Assisted':         // TTP assurances, limit to 35
+                       case 'TOPUP':        // TOPUP to be delevoped in the future, limit to 30
                                break;
                        default:                                // should never happen ... ;-)
                                $points = 0;
index c6c0568..a8506cb 100644 (file)
@@ -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']);