From 868ff702d5bb47157ad4e56e27484d70911872fe Mon Sep 17 00:00:00 2001 From: Wytze van der Raay Date: Wed, 26 Jun 2013 11:00:43 +0000 Subject: [PATCH] Fix for http://bugs.cacert.org/view.php?id=1134 "Delete the board flag thourougly in all parts of our software" --- www/wot.php | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) diff --git a/www/wot.php b/www/wot.php index 35ee564..1b84f51 100644 --- a/www/wot.php +++ b/www/wot.php @@ -328,14 +328,7 @@ $iecho= "c"; `location`='".mysql_escape_string(stripslashes($_POST['location']))."', `date`='".mysql_escape_string(stripslashes($_POST['date']))."', `when`=NOW()"; - if($_SESSION['profile']['board'] == 1 && intval($_POST['expire']) > 0) - { - $query .= ",\n`method`='Temporary Increase'"; - $query .= ",\n`expire`=DATE_ADD(NOW(), INTERVAL '".intval($_POST['expire'])."' DAY)"; - $query .= ",\n`sponsor`='".intval($_POST['sponsor'])."'"; - } 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')) { + if($_SESSION['profile']['ttpadmin'] == 1 && ($_POST['method'] == 'Trusted 3rd Parties' || $_POST['method'] == 'Trusted Third Parties')) { $query .= ",\n`method`='TTP-Assisted'"; } mysql_query($query); @@ -389,9 +382,6 @@ $iecho= "c"; $body .= "https://www.cacert.org/wot.php?id=13\n\n"; } - if($_SESSION['profile']['board'] == 1 && intval($_POST['expire']) > 0) - $body .= sprintf(_("Please Note: this is a temporary increase for %s days only. After that time your points will be reduced to 150 points."), intval($_POST['expire']))."\n\n"; - $body .= _("Best regards")."\n"; $body .= _("CAcert Support Team"); @@ -405,20 +395,11 @@ $iecho= "c"; else $body .= sprintf(_("You issued %s points and they now have %s points in total."), $newpoints, ($newpoints + $drow['total']))."\n\n"; - if($_SESSION['profile']['board'] == 1 && intval($_POST['expire']) > 0) - $body .= sprintf(_("Please Note: this is a temporary increase for %s days only. After that time their points will be reduced to 150 points."), intval($_POST['expire']))."\n\n"; $body .= _("Best regards")."\n"; $body .= _("CAcert Support Team"); sendmail($_SESSION['profile']['email'], "[CAcert.org] "._("You've Assured Another Member."), $body, "support@cacert.org", "", "", "CAcert Support"); - if($_SESSION['profile']['board'] == 1 && intval($_POST['expire']) > 0) - { - $body = sprintf("%s %s (%s) has issued a temporary increase to 200 points for %s %s (%s) for %s days. This action was sponsored by %s %s (%s).", $_SESSION['profile']['fname'], $_SESSION['profile']['lname'], $_SESSION['profile']['email'], $_SESSION['_config']['notarise']['fname'], $_SESSION['_config']['notarise']['lname'], $_SESSION['_config']['notarise']['email'], intval($_POST['expire']), $sponsor['fname'], $sponsor['lname'], $sponsor['email'])."\n\n"; - - sendmail("cacert-board@lists.cacert.org", "[CAcert.org] Temporary Increase Issued.", $body, "website@cacert.org", "", "", "CAcert Website"); - } - showheader(_("My CAcert.org Account!")); echo "

"._("Shortly you and the person you were assuring will receive an email confirmation. There is no action on your behalf required to complete this.")."

"; ?>