/* LibreSSL - CAcert web application Copyright (C) 2004-2008 CAcert Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; version 2 of the License. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ ?> if(!array_key_exists('notarise',$_SESSION['_config'])) { echo "Error: No user data found."; exit; } $row = $_SESSION['_config']['notarise']; if(!array_key_exists('pointsalready',$_SESSION['_config'])) $_SESSION['_config']['pointsalready']=0; if($_SESSION['profile']['ttpadmin'] == 1 && $_SESSION['profile']['board'] == 1) { $methods = array("Face to Face Meeting", "Trusted Third Parties", "Thawte Points Transfer", "Administrative Increase", "CT Magazine - Germany"); } else if($_SESSION['profile']['ttpadmin'] == 1) { $methods = array("Face to Face Meeting", "Trusted Third Parties"); } $cap = "/cap.php?"; $name = $row['fname']." ".$row['mname']." ".$row['lname']." ".$row['suffix']; $_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(); $maxpoints = maxpoints(); if($maxpoints > 100) $maxpoints = 100; if(array_key_exists('error',$_SESSION['_config']) && $_SESSION['_config']['error'] != "") { ?>ERROR: =$_SESSION['_config']['error']?> unset($_SESSION['_config']['error']); } ?>