language updates

This commit is contained in:
root 2004-10-16 16:22:33 +00:00
parent e9b301a4b1
commit fe331f3442
2 changed files with 17 additions and 6 deletions

View file

@ -14,6 +14,8 @@
*/ ?> */ ?>
<? <?
$row = $_SESSION['_config']['notarise']; $row = $_SESSION['_config']['notarise'];
$methods = array("Face to Face Meeting", "Trusted 3rd Parties", "Thawte Points Transfer", "Administrative Increase");
?> ?>
<? if($_SESSION['_config']['error'] != "") { ?><div color="orange">ERROR: <?=$_SESSION['_config']['error']?></div><? unset($_SESSION['_config']['error']); } ?> <? if($_SESSION['_config']['error'] != "") { ?><div color="orange">ERROR: <?=$_SESSION['_config']['error']?></div><? unset($_SESSION['_config']['error']); } ?>
<form method="post" action="wot.php"> <form method="post" action="wot.php">
@ -36,9 +38,9 @@
<tr> <tr>
<td class="DataTD"><?=_("Method")?>:</td> <td class="DataTD"><?=_("Method")?>:</td>
<td class="DataTD"><select name="method"> <td class="DataTD"><select name="method">
<option value="Face to Face Meeting">Face to Face Meeting</option> <? foreach($methods as $val) { ?>
<option value="Trusted 3rd Parties">Trusted 3rd Parties</option> <option value="<?=$val?>"<? if($val == $_POST['method']) echo " selected"; ?>><?=$val?></option>
<option value="Thawte Points Transfer">Thawte Points Transfer</option> <? } ?>
</select> </select>
</td> </td>
</tr> </tr>

View file

@ -156,7 +156,14 @@
if($oldid == 6) 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; $id = $oldid;
unset($oldid); unset($oldid);
@ -164,7 +171,7 @@
} }
} }
if($oldid == 6) if($oldid == 6 && $_SESSION['profile']['admin'] != 1)
{ {
if($_POST['location'] == "" || $_POST['date'] == "") if($_POST['location'] == "" || $_POST['date'] == "")
{ {
@ -193,6 +200,8 @@
`points`='".intval($_POST['points'])."', `points`='".intval($_POST['points'])."',
`location`='".mysql_escape_string($_POST['location'])."', `location`='".mysql_escape_string($_POST['location'])."',
`date`='".mysql_escape_string($_POST['date'])."'"; `date`='".mysql_escape_string($_POST['date'])."'";
if($_SESSION['profile']['admin'] == 1)
$query .= ",\n`method`='".mysql_escape_string($_POST['method'])."'";
mysql_query($query); mysql_query($query);
if($_SESSION['_config']['notarise']['language'] != "") if($_SESSION['_config']['notarise']['language'] != "")