Improved register_globals, improved HTML compliance

This commit is contained in:
root 2008-09-03 16:12:17 +00:00
parent cbf2ae79a0
commit 41bba82d32

View file

@ -30,7 +30,7 @@
UNIX_TIMESTAMP(`expire`) - UNIX_TIMESTAMP() as `timeleft`, UNIX_TIMESTAMP(`expire`) - UNIX_TIMESTAMP() as `timeleft`,
UNIX_TIMESTAMP(`expire`) as `expired`, UNIX_TIMESTAMP(`expire`) as `expired`,
`expire` as `expires`, `id`, `level`, `expire` as `expires`, `id`, `level`,
`email`,`keyid` from `gpg` where `memid`='".$_SESSION[profile][id]."' `email`,`keyid` from `gpg` where `memid`='".intval($_SESSION['profile']['id'])."'
ORDER BY `issued` desc"; ORDER BY `issued` desc";
$res = mysql_query($query); $res = mysql_query($query);
if(mysql_num_rows($res) <= 0) if(mysql_num_rows($res) <= 0)
@ -52,16 +52,16 @@
<tr> <tr>
<? if($verified == _("Valid")) { ?> <? if($verified == _("Valid")) { ?>
<td class="DataTD"><?=$verified?></td> <td class="DataTD"><?=$verified?></td>
<td class="DataTD"><a href="gpg.php?id=3&cert=<?=$row[id]?>"><?=$row['email']?></a></td> <td class="DataTD"><a href="gpg.php?id=3&amp;cert=<?=$row['id']?>"><?=$row['email']?></a></td>
<? } else if($verified == _("Pending")) { ?> <? } else if($verified == _("Pending")) { ?>
<td class="DataTD"><?=$verified?></td> <td class="DataTD"><?=$verified?></td>
<td class="DataTD"><?=$row['email']?></td> <td class="DataTD"><?=$row['email']?></td>
<? } else { ?> <? } else { ?>
<td class="DataTD"><?=$verified?></td> <td class="DataTD"><?=$verified?></td>
<td class="DataTD"><a href="account.php?id=6&cert=<?=$row[id]?>"><?=$row['email']?></a></td> <td class="DataTD"><a href="gpg.php?id=3&amp;cert=<?=$row['id']?>"><?=$row['email']?></a></td>
<? } ?> <? } ?>
<td class="DataTD"><?=$row[expires]?></td> <td class="DataTD"><?=$row['expires']?></td>
<td class="DataTD"><a href="gpg.php?id=3&cert=<?=$row[id]?>"><?=$row[keyid]?></a></td> <td class="DataTD"><a href="gpg.php?id=3&amp;cert=<?=$row['id']?>"><?=$row['keyid']?></a></td>
</tr> </tr>
<? } ?> <? } ?>