Source code taken from cacert-20130716.tar.bz2
[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 require_once("../includes/lib/l10n.php");
20 ?>
21 <?
22 if(array_key_exists('error',$_SESSION['_config']) && $_SESSION['_config']['error'] != "")
23 {
24 ?><font color="orange" size="+1">
25 <? echo _("ERROR").": ".$_SESSION['_config']['error'] ?>
26 </font>
27 <?unset($_SESSION['_config']['error']);
28 }
29 ?>
30 <? if(array_key_exists('noemailfound',$_SESSION['_config']) && $_SESSION['_config']['noemailfound'] == 1) { ?>
31 <form method="post" action="wot.php">
32 <input type="hidden" name="email" value="<?=sanitizeHTML($_POST['email'])?>"><br>
33 <select name="reminder-lang">
34 <?
35 if($_SESSION['_config']['reminder-lang'] == "")
36 $_SESSION['_config']['reminder-lang'] = L10n::get_translation();
37 foreach(L10n::$translations as $key => $val)
38 {
39 echo "<option value='$key'";
40 if($key == $_SESSION['_config']['reminder-lang'])
41 echo " selected";
42 echo ">$val</option>\n";
43 }
44 ?>
45 </select><br>
46 <input type="hidden" name="oldid" value="<?=$id?>">
47 <input type="submit" name="reminder" value="<?=_("Send reminder notice")?>">
48 </form>
49 <? unset($_SESSION['_config']['noemailfound']); } ?>
50 <form method="post" action="wot.php" name="form1">
51 <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
52 <tr>
53 <td colspan="2" class="title"><?=_("Assure Someone")?></td>
54 </tr>
55 <tr>
56 <td class="DataTD"><?=_("Email")?>:</td>
57 <? if(array_key_exists('remindersent',$_SESSION['_config']) && $_SESSION['_config']['remindersent'] == 1) { unset($_SESSION['_config']['remindersent']) ?>
58 <td class="DataTD"><input type="text" name="email" id="email" value=""></td>
59 <? } else { ?>
60 <td class="DataTD"><input type="text" name="email" id="email" value="<?=array_key_exists('email',$_POST)?sanitizeHTML($_POST['email']):""?>"></td>
61 <? } ?>
62 </tr>
63 <tr>
64 <td class="DataTD" colspan="2"><input type="submit" name="process" value="<?=_("Next")?>"></td>
65 </tr>
66 </table>
67 <input type="hidden" name="oldid" value="<?=$id?>">
68 </form>
69 <SCRIPT LANGUAGE="JavaScript">
70 //<![CDATA[
71 function my_init()
72 {
73 document.getElementById("email").focus();
74 }
75
76 window.onload = my_init();
77 //]]>
78 </script>