This commit is contained in:
parent
d3dce07eb6
commit
24491b1c86
1 changed files with 10 additions and 5 deletions
15
www/wot.php
15
www/wot.php
|
@ -33,12 +33,14 @@
|
||||||
$id = $oldid;
|
$id = $oldid;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(($id == 5 || $oldid == 5 || $id == 6 || $oldid == 6) && $_SESSION['profile']['points'] < 100)
|
if(($id == 5 || $oldid == 5 || $id == 6 || $oldid == 6))
|
||||||
{
|
{
|
||||||
showheader(_("My CAcert.org Account!"));
|
if (!is_assurer($_SESSION['profile']['id'])) {
|
||||||
echo "<p>"._("You don't have access to view these pages.")."</p>";
|
showheader(_("My CAcert.org Account!"));
|
||||||
showfooter();
|
echo "<p>".get_assurer_reason($_SESSION['profile']['id'])."</p>";
|
||||||
exit;
|
showfooter();
|
||||||
|
exit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($oldid == 6 && intval($_SESSION['_config']['notarise']['id']) <= 0)
|
if($oldid == 6 && intval($_SESSION['_config']['notarise']['id']) <= 0)
|
||||||
|
@ -295,6 +297,8 @@
|
||||||
$query .= ",\n`method`='Trusted Third Parties'";
|
$query .= ",\n`method`='Trusted Third Parties'";
|
||||||
}
|
}
|
||||||
mysql_query($query);
|
mysql_query($query);
|
||||||
|
fix_assurer_flag($_SESSION['_config']['notarise']['id']);
|
||||||
|
|
||||||
if($_SESSION['profile']['points'] < 150)
|
if($_SESSION['profile']['points'] < 150)
|
||||||
{
|
{
|
||||||
$addpoints = 0;
|
$addpoints = 0;
|
||||||
|
@ -310,6 +314,7 @@
|
||||||
`method`='Administrative Increase',
|
`method`='Administrative Increase',
|
||||||
`when`=NOW()";
|
`when`=NOW()";
|
||||||
mysql_query($query);
|
mysql_query($query);
|
||||||
|
// No need to fix_assurer_flag here, this should only happen for assurers...
|
||||||
$_SESSION['profile']['points'] += $addpoints;
|
$_SESSION['profile']['points'] += $addpoints;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue