cacert-webdb/pages/wot/6.php

142 lines
7.4 KiB
PHP
Raw Normal View History

2004-10-16 00:28:17 +00:00
<? /*
Copyright (C) 2004 by Duane Groth <duane_at_CAcert_dot_org>
This file is part of CAcert.
CAcert has been released under the CAcert Source License
which can be found included with these source files or can
be downloaded from the internet from the following address:
http://www.cacert.org/src-lic.php
CAcert is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the License for more details.
*/ ?>
<?
$row = $_SESSION['_config']['notarise'];
2004-10-16 16:22:33 +00:00
2006-04-17 12:02:09 +00:00
if($_SESSION['profile']['ttpadmin'] == 1 && $_SESSION['profile']['board'] == 1)
{
$methods = array("Face to Face Meeting", "Trusted 3rd Parties", "Thawte Points Transfer", "Administrative Increase", "CT Magazine - Germany");
} else if($_SESSION['profile']['ttpadmin'] == 1) {
$methods = array("Face to Face Meeting", "Trusted 3rd Parties");
}
$cap = "/cap.php?";
$name = $row['fname']." ".$row['mname']." ".$row['lname']." ".$row['suffix'];
2005-07-14 19:56:28 +00:00
$_SESSION['_config']['wothash'] = md5($name."-".$row['dob']);
while(strstr($name, " "))
$name = str_replace(" ", " ", $name);
$cap .= "name=".urlencode($name);
$cap .= "&dob=".urlencode($row['dob']);
$cap .= "&email=".urlencode($row['email']);
$name = $_SESSION['profile']['fname']." ".$_SESSION['profile']['mname']." ".$_SESSION['profile']['lname']." ".$_SESSION['profile']['suffix'];
while(strstr($name, " "))
$name = str_replace(" ", " ", $name);
$cap .= "&assurer=".urlencode($name);
$cap .= "&date=now";
$cap .= "&maxpoints=".maxpoints();
2004-10-16 00:28:17 +00:00
?>
<? if($_SESSION['_config']['error'] != "") { ?><div color="orange">ERROR: <?=$_SESSION['_config']['error']?></div><? unset($_SESSION['_config']['error']); } ?>
<form method="post" action="wot.php">
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper" width="600">
2004-10-16 00:28:17 +00:00
<tr>
2004-10-24 01:46:49 +00:00
<td colspan="2" class="title"><?=_("Assurance Confirmation")?></td>
2004-10-16 00:28:17 +00:00
</tr>
2004-11-30 23:31:18 +00:00
<? if($_SESSION['_config']['alreadydone'] == 1) { ?>
<tr>
2005-03-12 19:40:24 +00:00
<td class="DataTD" colspan="2" align="left" style="color: red;"><b><?=_("PLEASE NOTE: You have already assured this person before! If this is unintentional please DO NOT CONTINUE with this assurance.")?></b></td>
2004-11-30 23:31:18 +00:00
</tr>
2006-08-15 23:10:49 +00:00
<? } if(100 - $_SESSION['_config']['pointsalready'] - maxpoints() <= 0) { ?>
2004-12-02 22:35:23 +00:00
<tr>
2005-03-12 19:40:24 +00:00
<td class="DataTD" colspan="2" align="left" style="color: red;"><b><? printf(_("This person already has %s assurance points. Any points you give this person may be rounded down, or they may not even get any points. If you have less then 150 points you will still receive 2 points for assuring them."), $_SESSION['_config']['pointsalready']); ?></b></td>
2004-12-02 22:35:23 +00:00
</tr>
2005-03-12 19:40:24 +00:00
<? } if($_SESSION['_config']['verified'] <= 0) { ?>
<tr>
<td class="DataTD" colspan="2" align="left" style="color: red;"><b><?=_("You are about to assure a person that isn't currently verified. If you continue and they do not verify their account within 48 hours the account could automatically be removed by the system.")?></b></td>
2004-11-30 23:31:18 +00:00
</tr>
<? } ?>
2004-10-16 00:28:17 +00:00
<tr>
2005-06-09 15:21:55 +00:00
<td class="DataTD" colspan="2" align="left"><? printf(_("Please check the following details match against what you witnessed when you met %s in person. You MUST NOT proceed unless you are sure the details are correct. Gross negligence may cause you to be liable."), $row['fname']); ?></td>
2004-10-16 00:28:17 +00:00
</tr>
<tr>
<td class="DataTD"><?=_("Name")?>:</td>
<td class="DataTD"><?=$row['fname']?> <?=$row['mname']?> <?=$row['lname']?> <?=$row['suffix']?></td>
2004-10-16 00:28:17 +00:00
</tr>
<tr>
<td class="DataTD"><?=_("Date of Birth")?>:</td>
<td class="DataTD"><?=$row['dob']?> (<?=_("YYYY-MM-DD")?>)</td>
</tr>
2006-04-17 12:02:09 +00:00
<? if($_SESSION['profile']['ttpadmin'] == 1) { ?>
2004-10-16 00:28:17 +00:00
<tr>
<td class="DataTD"><?=_("Method")?>:</td>
<td class="DataTD"><select name="method">
2004-10-16 16:22:33 +00:00
<? foreach($methods as $val) { ?>
<option value="<?=$val?>"<? if($val == $_POST['method']) echo " selected"; ?>><?=$val?></option>
<? } ?>
</select>
2004-10-16 00:28:17 +00:00
</td>
</tr>
2004-10-21 04:22:14 +00:00
<tr>
<td class="DataTD" colspan="2"><?=_("Only tick the next box if the Assurance was face to face.")?></td>
2004-10-21 04:22:14 +00:00
</tr>
<? } ?>
2004-10-16 00:28:17 +00:00
<tr>
<td class="DataTD"><input type="checkbox" name="certify" value="1"<? if($_POST['certify'] == 1) echo " checked"; ?>></td>
2005-06-09 15:21:55 +00:00
<td class="DataTD"><? printf(_("I certify that %s %s %s has appeared in person"), $row['fname'], $row['mname'], $row['lname']); ?></td>
2004-10-16 00:28:17 +00:00
</tr>
<tr>
<td class="DataTD"><?=_("Location")?>:</td>
2005-03-18 16:08:22 +00:00
<td class="DataTD"><input type="text" name="location" value="<?=$_SESSION['_config']['location']?>"></td>
2004-10-16 00:28:17 +00:00
</tr>
<tr>
<td class="DataTD"><?=_("Date")?>:</td>
2005-03-18 16:08:22 +00:00
<td class="DataTD"><input type="text" name="date" value="<?=$_SESSION['_config']['date']?>"><br><?=_("Only fill this in if you assured the person on a different day")?></td>
2004-10-16 00:28:17 +00:00
</tr>
2006-04-17 12:02:09 +00:00
<? if($_SESSION['profile']['board'] == 1 && $_SESSION['_config']['pointsalready'] <= 150) { ?>
<tr>
<td class="DataTD" colspan="2"><?=_("Issuing a temporary increase will automatically boost their points to 200 points for a nomindated amount of days, after which the person will be reduced to 150 points regardless of the amount of points they had previously. Regardless of method chosen above it will be recorded in the system as an Administrative Increase and there is a maximum amount of 45 days that points can be issued for.")?></td>
</tr>
<tr>
<td class="DataTD"><nobr><?=_("Temporary Increase")?>:</nobr><br><nobr><?=_("Number of days")?></nobr></td>
<td class="DataTD"><input type="text" name="expire" value="<?=$_POST['expire']?>"></td>
</tr>
2005-01-03 01:03:03 +00:00
<tr>
<td class="DataTD"><nobr><?=_("Sponsoring Member")?>:</td>
<td class="DataTD"><select name="sponsor">
<?
2005-02-16 18:11:53 +00:00
$query = "select * from `users` where `board`='1' and `id`!='".$_SESSION['profile']['id']."'";
2005-01-03 01:03:03 +00:00
$res = mysql_query($query);
while($row = mysql_fetch_assoc($res))
{
?>
<option value="<?=$row['id']?>"<? if($row['id'] == $_POST['sponsor']) echo " selected"; ?>><?=$row['fname']." ".$row['lname']?></option>
<? } ?>
</select>
</td>
</tr>
<? } ?>
2004-10-16 00:28:17 +00:00
<tr>
<td class="DataTD"><input type="checkbox" name="assertion" value="1"<? if($_POST['assertion'] == 1) echo " checked"; ?>></td>
2004-10-24 01:46:49 +00:00
<td class="DataTD"><?=_("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 CAcert may challenge this assurance and call upon me to prove the basis for it, and that I may be held responsible if I cannot provide such proof.")?></td>
2004-10-16 00:28:17 +00:00
</tr>
<tr>
<td class="DataTD"><input type="checkbox" name="rules" value="1"<? if($_POST['rules'] == 1) echo " checked"; ?>></td>
2004-10-24 01:46:49 +00:00
<td class="DataTD"><?=_("I have read and understood the Rules For Assurers and am making this assurance subject to and in compliance with these rules.")?></td>
2004-10-16 00:28:17 +00:00
</tr>
<tr>
<td class="DataTD"><?=_("Points")?>:<br><nobr>(Max <?=maxpoints()?>)</nobr></td>
2006-08-14 08:26:42 +00:00
<td class="DataTD"><input type="text" name="points" value=""></td>
2004-10-16 00:28:17 +00:00
</tr>
<tr>
2005-07-01 13:12:14 +00:00
<td class="DataTD"><?=_("WoT Form")?>:</td>
<td class="DataTD"><a href="<?=$cap?>" target="_NEW">A4 - <?=_("WoT Form")?></a> <a href="<?=$cap?>&format=letter" target="_NEW">US - <?=_("WoT Form")?></a></td>
</tr>
2004-10-16 00:28:17 +00:00
<tr>
2006-08-16 19:35:58 +00:00
<td class="DataTD" colspan="2"><input type="submit" name="process" value="<?=_("I am sure of myself")?>"> <input type="submit" name="cancel" value="<?=_("Cancel")?>"></td>
2004-10-16 00:28:17 +00:00
</tr>
</table>
2005-12-04 21:04:05 +00:00
<input type="hidden" name="pagehash" value="<?=$_SESSION['_config']['wothash']?>">
2004-10-16 00:28:17 +00:00
<input type="hidden" name="oldid" value="<?=$id?>">
</form>