diff --git a/pages/wot/6.php b/pages/wot/6.php index 993b081..8227e2f 100644 --- a/pages/wot/6.php +++ b/pages/wot/6.php @@ -14,6 +14,8 @@ */ ?>
ERROR:
@@ -36,10 +38,10 @@ : + + + + diff --git a/www/wot.php b/www/wot.php index 8132fec..7bf2602 100644 --- a/www/wot.php +++ b/www/wot.php @@ -156,7 +156,14 @@ if($oldid == 6) { - if($_POST['certify'] != 1 || $_POST['assertion'] != 1 || $_POST['rules'] != 1) + if($_POST['assertion'] != 1 || $_POST['rules'] != 1) + { + $id = $oldid; + unset($oldid); + $_SESSION['_config']['error'] = _("You failed to check all boxes to validate your adherence to the rules and policies of CAcert"); + } + + if($_POST['certify'] != 1 && $_SESSION['profile']['admin'] != 1) { $id = $oldid; unset($oldid); @@ -164,7 +171,7 @@ } } - if($oldid == 6) + if($oldid == 6 && $_SESSION['profile']['admin'] != 1) { if($_POST['location'] == "" || $_POST['date'] == "") { @@ -193,6 +200,8 @@ `points`='".intval($_POST['points'])."', `location`='".mysql_escape_string($_POST['location'])."', `date`='".mysql_escape_string($_POST['date'])."'"; + if($_SESSION['profile']['admin'] == 1) + $query .= ",\n`method`='".mysql_escape_string($_POST['method'])."'"; mysql_query($query); if($_SESSION['_config']['notarise']['language'] != "")