bug 782: Show the footer and exit after the form so it is actually
authorMichael Tänzer <neo@nhng.de>
Tue, 11 Jun 2013 23:32:45 +0000 (01:32 +0200)
committerMichael Tänzer <neo@nhng.de>
Tue, 11 Jun 2013 23:32:45 +0000 (01:32 +0200)
displayed

Signed-off-by: Michael Tänzer <neo@nhng.de>
pages/account/6.php

index e3bc139..0f7144d 100644 (file)
 
 <p><?=_("Your certificate:")?></p>
 <pre><?=$cert?></pre>
-<?
-               showfooter();
-               exit;
-       }
-?>
 
 <form method="post" action="account.php">
 <table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
     <td colspan="2" class="title"><?=_("Information about the certificte")?></td>
   </tr>
 <?
-       $res = mysql_query($query);
-       if(mysql_num_rows($res) > 0)
-       {
-       while($row = mysql_fetch_assoc($res))
-       {
-               if($row['timeleft'] > 0)
-                       $verified = _("Valid");
-               if($row['timeleft'] < 0)
-                       $verified = _("Expired");
-               if($row['expired'] == 0)
-                       $verified = _("Pending");
-               if($row['revoked'] > 0)
-                       $verified = _("Revoked");
-               if($row['revoked'] == 0)
-                       $row['revoke'] = _("Not Revoked");
+       if($row['timeleft'] > 0)
+               $verified = _("Valid");
+       if($row['timeleft'] < 0)
+               $verified = _("Expired");
+       if($row['expired'] == 0)
+               $verified = _("Pending");
+       if($row['revoked'] > 0)
+               $verified = _("Revoked");
+       if($row['revoked'] == 0)
+               $row['revoke'] = _("Not Revoked");
 ?>
   <tr>
     <td class="DataTD"><?=_("Renew/Revoke/Delete")?></td>
     <td class="DataTD"><?=_("Comment")?></td>
     <td class="DataTD"><input type="text" name="description" maxlength="100" size=100 value="<?=htmlspecialchars($row['description'])?>"></td>
   </tr>
-    <? } ?>
   <tr>
     <td class="DataTD" colspan="2"><input type="submit" name="change" value="<?=_("Change settings")?>"> </td>
 
   </tr>
-<? } ?>
 </table>
 <input type="hidden" name="oldid" value="6">
 <input type="hidden" name="certid" value="<?=$certid?>">
 </form>
+
+<?
+       showfooter();
+       exit;
+}
\ No newline at end of file