bug updates

pull/1/head
root 20 years ago
parent cc3ce6920c
commit 81fe9e390f

@ -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");

Loading…
Cancel
Save