6c53d00ca8814f68ce6ab58fcf8b578ce348b704
[cacert-devel.git] / pages / wot / 5.php
1 <? /*
2 LibreSSL - CAcert web application
3 Copyright (C) 2004-2008 CAcert Inc.
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; version 2 of the License.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18 include_once("../includes/shutdown.php");
19 ?>
20 <?
21 if(array_key_exists('error',$_SESSION['_config']) && $_SESSION['_config']['error'] != "")
22 {
23 if(array_key_exists('reminderset',$_SESSION['_config']) && $_SESSION['_config']['remindersent'] == 1)
24 {
25 ?><font color="orange" size="+1"><?
26 }
27 else
28 {
29 ?><font color="orange" size="+1"><?=_("ERROR")?>: <?
30 }
31 echo $_SESSION['_config']['error']."</font>";
32 unset($_SESSION['_config']['error']);
33 }
34 ?>
35 <? if(array_key_exists('noemailfound',$_SESSION['_config']) && $_SESSION['_config']['noemailfound'] == 1) { ?>
36 <form method="post" action="wot.php">
37 <input type="hidden" name="email" value="<?=sanitizeHTML($_POST['email'])?>"><br>
38 <select name="reminder-lang">
39 <?
40 if($_SESSION['_config']['reminder-lang'] == "")
41 $_SESSION['_config']['reminder-lang'] = $_SESSION['profile']['language'];
42 foreach($_SESSION['_config']['translations'] as $key => $val)
43 {
44 echo "<option value='$key'";
45 if($key == $_SESSION['_config']['reminder-lang'])
46 echo " selected";
47 echo ">$val</option>\n";
48 }
49 ?>
50 </select><br>
51 <input type="hidden" name="oldid" value="<?=$id?>">
52 <input type="submit" name="reminder" value="<?=_("Send reminder notice")?>">
53 </form>
54 <? unset($_SESSION['_config']['noemailfound']); } ?>
55 <form method="post" action="wot.php" name="form1">
56 <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
57 <tr>
58 <td colspan="2" class="title"><?=_("Assure Someone")?></td>
59 </tr>
60 <tr>
61 <td class="DataTD"><?=_("Email")?>:</td>
62 <? if(array_key_exists('remindersent',$_SESSION['_config']) && $_SESSION['_config']['remindersent'] == 1) { unset($_SESSION['_config']['remindersent']) ?>
63 <td class="DataTD"><input type="text" name="email" id="email" value=""></td>
64 <? } else { ?>
65 <td class="DataTD"><input type="text" name="email" id="email" value="<?=array_key_exists('email',$_POST)?sanitizeHTML($_POST['email']):""?>"></td>
66 <? } ?>
67 </tr>
68 <tr>
69 <td class="DataTD" colspan="2"><input type="submit" name="process" value="<?=_("Next")?>"></td>
70 </tr>
71 </table>
72 <input type="hidden" name="oldid" value="<?=$id?>">
73 </form>
74 <SCRIPT LANGUAGE="JavaScript">
75 //<![CDATA[
76 function my_init()
77 {
78 document.getElementById("email").focus();
79 }
80
81 window.onload = my_init();
82 //]]>
83 </script>