]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
do not use links but POST form to change SSL settings. Proper web apps should never...
authorChristian Weiske <cweiske@cweiske.de>
Wed, 11 May 2011 04:44:49 +0000 (06:44 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 11 May 2011 04:44:49 +0000 (06:44 +0200)
data/templates/editprofile-sslclientcerts.tpl.php

index c43def456d27d08534fb8705ee70a050eefc159f..246fb733773c14f6dc569a187970871282bcc2bb 100644 (file)
  <tbody>
  <?php foreach($sslClientCerts as $cert) { ?>
   <tr <?php if ($cert->isCurrent()) { echo 'class="ssl-current"'; } ?>>
-   <td><a href="#FIXME">delete</a></td>
+   <td>
+    <form method="post" action="#FIXME">
+     <button type="submit" name="action" value="deleteClientCert">
+      <?php echo T_('delete'); ?>
+     </button>
+    </form>
+   </td>
    <td><?php echo htmlspecialchars($cert->sslSerial); ?></td>
    <td><?php echo htmlspecialchars($cert->sslName); ?></td>
    <td><?php echo htmlspecialchars($cert->sslEmail); ?></td>
   <p><?php echo T_('Your current certificate is already registered with your account.'); ?></p>
  <?php } else { ?>
   <p>
-   <a href="#FIXME">
-    <?php echo T_('Register current certificate to automatically login.'); ?>
-   </a>
+   <form method="post" action="#FIXME">
+    <button type="submit" name="action" value="registerCurrentCert">
+     <?php echo T_('Register current certificate to automatically login.'); ?>
+    </button>
+   </form>
   </p>
  <?php } ?>
 <?php } else { ?>