summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root@cacert1.it-sls.de>2012-03-28 09:25:05 +0200
committerroot <root@cacert1.it-sls.de>2012-03-28 09:25:05 +0200
commit442a088c4c547a7324e82c518f0d8100936c89e0 (patch)
treef2202d67ff4a747339bbcb196af9e6a469eaf0e8
parentb5f8cc47f7d807d4c54b626ceb3cdf59d6fac314 (diff)
downloadcacert-devel-442a088c4c547a7324e82c518f0d8100936c89e0.tar.gz
cacert-devel-442a088c4c547a7324e82c518f0d8100936c89e0.tar.xz
cacert-devel-442a088c4c547a7324e82c518f0d8100936c89e0.zip
bug-1023 added method for board ... hopefully ... ;-)
-rw-r--r--includes/wot.inc.php9
-rw-r--r--pages/wot/6.php3
2 files changed, 9 insertions, 3 deletions
diff --git a/includes/wot.inc.php b/includes/wot.inc.php
index 2264498..19f56a4 100644
--- a/includes/wot.inc.php
+++ b/includes/wot.inc.php
@@ -579,8 +579,10 @@ function AssureBoxLine($type,$text)
<?
}
-function AssureMethodLine($text,$methods,$remark)
+function AssureMethodLine($text,$methods,$remark,$flag)
{
+ if ($flag = 1)
+ {
?>
<tr>
<td class="DataTD"><?=$text?></td>
@@ -596,6 +598,11 @@ function AssureMethodLine($text,$methods,$remark)
</td>
</tr>
<?
+ } else {
+?>
+ <input type="hidden" name="<?=$val?>" value="<?=$_POST['method']?>">
+<?
+ }
}
function AssureInboxLine($type,$field,$value,$description)
diff --git a/pages/wot/6.php b/pages/wot/6.php
index fe13f4f..c242280 100644
--- a/pages/wot/6.php
+++ b/pages/wot/6.php
@@ -54,8 +54,7 @@ function makecap()
AssureBoxLine("certify",sprintf(_("I certify that %s %s %s has appeared in person"), $fname, $mname, $lname));
AssureInboxLine("location",_("Location"),array_key_exists('location',$_SESSION['_config'])?$_SESSION['_config']['location']:"","");
AssureInboxLine("date",_("Date"),array_key_exists('date',$_SESSION['_config'])?$_SESSION['_config']['date']:"","<br/>"._("Only fill this in if you assured the person on a different day"));
- if($_SESSION['profile']['ttpadmin'] == 1)
- AssureMethodLine(_("Method"),$methods,_("Only tick the next box if the Assurance was face to face."));
+ AssureMethodLine(_("Method"),$methods,_("Only tick the next box if the Assurance was face to face."),$_SESSION['profile']['ttpadmin']);
AssureBoxLine("assertion",_("I believe that the assertion of identity I am making is correct, complete and verifiable. I have seen original documentation attesting to this identity. I accept that the CAcert Arbitrator may call upon me to provide evidence in any dispute, and I may be held responsible."));
AssureBoxLine("rules",_("I have read and understood the Assurance Policy and the Assurance Handbook and am making this Assurance subject to and in compliance with the policy and handbook."));
AssureTextLine(_("Policy"),"<a href=\"/policy/AssurancePolicy.php\" target=\"_NEW\">"._("Assurance Policy")."</a> - <a href=\"http://wiki.cacert.org/AssuranceHandbook2\" target=\"_NEW\">"._("Assurance Handbook")."</a>");