Source code taken from cacert-20130716.tar.bz2
[cacert-devel.git] / pages / wot / 8.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 <? if(array_key_exists('error',$_SESSION['_config']) && $_SESSION['_config']['error'] != "") { ?><font color="#ff0000">ERROR: <?=$_SESSION['_config']['error']?></font><? unset($_SESSION['_config']['error']); } ?>
19 <form method="post" action="wot.php">
20 <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
21 <tr>
22 <td colspan="2" class="title"><?=_("My Listing")?></td>
23 </tr>
24 <tr>
25 <td class="DataTD"><?=_("Directory Listing")?>:</td>
26 <td class="DataTD" align="left">
27 <select name="listme">
28 <option value="0"><?=_("I don't want to be listed")?></option>
29 <option value="1"<? if($_SESSION['profile']['listme'] == 1) echo " selected"; ?>><?=_("I want to be listed")?></option>
30 </select>
31 </td>
32 </tr>
33 <tr>
34 <td class="DataTD"><?=_("Contact information")?>:</td>
35 <td class="DataTD"><textarea name="contactinfo" cols="40" rows="5" wrap="virtual"><?=$_SESSION['profile']['contactinfo']?></textarea></td>
36 </tr>
37 <tr>
38 <td class="DataTD" colspan="2"><input type="submit" name="process" value="<?=_("Update")?>"></td>
39 </tr>
40 </table>
41 <input type="hidden" name="oldid" value="<?=$id?>">
42 <input type="hidden" name="csrf" value="<?=make_csrf('chgcontact')?>" />
43 </form>
44 <p><?=_("Please note: All html will be stripped from the contact information box, a link to an email form will automatically be inserted to ensure your privacy.")?></p>