"Delete the board flag thourougly in all parts of our software"
This commit is contained in:
parent
5170cef358
commit
868ff702d5
1 changed files with 1 additions and 20 deletions
21
www/wot.php
21
www/wot.php
|
@ -328,14 +328,7 @@ $iecho= "c";
|
||||||
`location`='".mysql_escape_string(stripslashes($_POST['location']))."',
|
`location`='".mysql_escape_string(stripslashes($_POST['location']))."',
|
||||||
`date`='".mysql_escape_string(stripslashes($_POST['date']))."',
|
`date`='".mysql_escape_string(stripslashes($_POST['date']))."',
|
||||||
`when`=NOW()";
|
`when`=NOW()";
|
||||||
if($_SESSION['profile']['board'] == 1 && intval($_POST['expire']) > 0)
|
if($_SESSION['profile']['ttpadmin'] == 1 && ($_POST['method'] == 'Trusted 3rd Parties' || $_POST['method'] == 'Trusted Third Parties')) {
|
||||||
{
|
|
||||||
$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')) {
|
|
||||||
$query .= ",\n`method`='TTP-Assisted'";
|
$query .= ",\n`method`='TTP-Assisted'";
|
||||||
}
|
}
|
||||||
mysql_query($query);
|
mysql_query($query);
|
||||||
|
@ -389,9 +382,6 @@ $iecho= "c";
|
||||||
$body .= "https://www.cacert.org/wot.php?id=13\n\n";
|
$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 .= _("Best regards")."\n";
|
||||||
$body .= _("CAcert Support Team");
|
$body .= _("CAcert Support Team");
|
||||||
|
|
||||||
|
@ -405,20 +395,11 @@ $iecho= "c";
|
||||||
else
|
else
|
||||||
$body .= sprintf(_("You issued %s points and they now have %s points in total."), $newpoints, ($newpoints + $drow['total']))."\n\n";
|
$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 .= _("Best regards")."\n";
|
||||||
$body .= _("CAcert Support Team");
|
$body .= _("CAcert Support Team");
|
||||||
|
|
||||||
sendmail($_SESSION['profile']['email'], "[CAcert.org] "._("You've Assured Another Member."), $body, "support@cacert.org", "", "", "CAcert Support");
|
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!"));
|
showheader(_("My CAcert.org Account!"));
|
||||||
echo "<p>"._("Shortly you and the person you were assuring will receive an email confirmation. There is no action on your behalf required to complete this.")."</p>";
|
echo "<p>"._("Shortly you and the person you were assuring will receive an email confirmation. There is no action on your behalf required to complete this.")."</p>";
|
||||||
?><form method="post" action="wot.php">
|
?><form method="post" action="wot.php">
|
||||||
|
|
Loading…
Reference in a new issue