From 81fe9e390fb2ed9c4c47cf3d25552bdc2a832dc8 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 31 Oct 2004 01:25:51 +0000 Subject: [PATCH] bug updates --- www/wot.php | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/www/wot.php b/www/wot.php index d82d532..b647a4f 100644 --- a/www/wot.php +++ b/www/wot.php @@ -203,6 +203,17 @@ if($_SESSION['profile']['admin'] == 1) $query .= ",\n`method`='".mysql_escape_string($_POST['method'])."'"; mysql_query($query); + if($_SESSION['profile']['id'] < 150) + { + $query = "insert into `notary` set `from`='".$_SESSION['profile']['id']."', + `to`='".$_SESSION['profile']['id']."', + `points`='2', + `location`='".mysql_escape_string($_POST['location'])."', + `date`='".mysql_escape_string($_POST['date'])."', + `method`='Administrative Increase'"; + mysql_query($query); + $_SESSION['profile']['id'] += 2; + } if($_SESSION['_config']['notarise']['language'] != "") { @@ -211,8 +222,8 @@ setlocale(LC_ALL, $_SESSION['_config']['translations'][$userlang]); } - $body = _("You are receiving this email because you have been assured by another member of the CAcert community.")."\n\n"; - $body .= _(sprintf("You were issued %s points and you now have %s points in total.", $_POST['points'], ($_POST['points'] + $drow['total'])))."\n\n"; + $body = sprintf(_("You are receiving this email because you have been assured by %s %s (%s)."), $_SESSION['profile']['fname'], $_SESSION['profile']['lname'], $_SESSION['profile']['email'])."\n\n"; + $body .= sprintf(_("You were issued %s points and you now have %s points in total."), $_POST['points'], ($_POST['points'] + $drow['total']))."\n\n"; if(($drow['total'] + $_POST['points']) < 100 && ($drow['total'] + $_POST['points']) >= 50) { @@ -232,8 +243,8 @@ putenv("LANG=".$_SESSION['_config']['language']); setlocale(LC_ALL, $_SESSION['_config']['language']); - $body = _("You are receiving this email because you have assured another member of the CAcert community.")."\n\n"; - $body .= _(sprintf("You issued them %s points and they now have %s points in total.", $_POST['points'], ($_POST['points'] + $drow['total'])))."\n\n"; + $body = sprintf(_("You are receiving this email because you have assured %s %s (%s)."), $_SESSION['_config']['notarise']['fname'], $_SESSION['_config']['notarise']['lname'], $_SESSION['_config']['notarise']['email'])."\n\n"; + $body .= sprintf(_("You issued them %s points and they now have %s points in total."), $_POST['points'], ($_POST['points'] + $drow['total']))."\n\n"; $body .= _("Best Regards")."\n"; $body .= _("CAcert Support Team");