bug 1394: applied text changes according to bug description
[cacert-devel.git] / pages / account / 51.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($_SESSION['profile']['tverify'] <= 0) { echo _("You don't have access to this area."); } else { ?>
19 <?
20 $uid = intval($_GET['photoid']);
21 $query = "select * from `tverify` where `id`='$uid' and `modified`=0";
22 $res = mysql_query($query);
23 if(mysql_num_rows($res) > 0) { ?>
24 <img src="account.php?id=51&amp;photoid=<?=$uid ?>&amp;img=show" border="0" width="800">
25 <? } else {
26 $query = "select * from `tverify` where `id`='$uid' and `modified`=1";
27 $res = mysql_query($query);
28 if(mysql_num_rows($res) > 0)
29 {
30 echo _("This UID has already been voted on.");
31 } else {
32 echo _("Unable to locate a valid request for that UID.");
33 }
34 } } ?>