bug 782: change the layout on account/12.php and account/5.php, added error check...
authorINOPIAE <inopiae@cacert.org>
Tue, 18 Jun 2013 20:20:22 +0000 (22:20 +0200)
committerINOPIAE <inopiae@cacert.org>
Tue, 18 Jun 2013 20:20:22 +0000 (22:20 +0200)
includes/account.php
pages/account/12.php
pages/account/5.php

index 1bf6961..3d7a277 100644 (file)
        if($oldid == 12 && array_key_exists('change',$_REQUEST) && $_REQUEST['change'] != "")
        {
                showheader(_("My CAcert.org Account!"));
+               vardump $_REQUEST;
                foreach($_REQUEST as $id => $val)
                {
                        if(substr($id,0,14)=="check_comment_")
                $disablelogin = 0;
        }
 
-       mysql_query("update `emailcerts` set `disablelogin`='$disablelogin', `description`='description' where `id`='".$_REQUEST['certid']."' and `memid`='".$_SESSION['profile']['id']."'");
+       mysql_query("update `emailcerts` set `disablelogin`='$disablelogin', `description`='$description' where `id`='".$_REQUEST['certid']."' and `memid`='".$_SESSION['profile']['id']."'");
 
  }
        if($oldid == 13 && $process != "")
        if($oldid == 18 && array_key_exists('change',$_REQUEST) && $_REQUEST['change'] != "")
        {
                showheader(_("My CAcert.org Account!"));
+               vardump $_REQUEST;
                foreach($_REQUEST as $id => $val)
                {
                        if(substr($id,0,14)=="check_comment_")
        if($oldid == 22 && array_key_exists('change',$_REQUEST) && $_REQUEST['change'] != "")
        {
                showheader(_("My CAcert.org Account!"));
+               vardump $_REQUEST;
                foreach($_REQUEST as $id => $val)
                {
                        if(substr($id,0,14)=="check_comment_")
index 6d4e86e..6d85cdc 100644 (file)
@@ -51,7 +51,7 @@
        {
 ?>
   <tr>
-    <td colspan="6" class="DataTD"><?=_("No certificates are currently listed.")?></td>
+    <td colspan="8" class="DataTD"><?=_("No certificates are currently listed.")?></td>
   </tr>
 <? } else {
        while($row = mysql_fetch_assoc($res))
@@ -96,7 +96,7 @@
   </tr>
 <? } ?>
   <tr>
-    <td class="DataTD" colspan="6"><?=_("From here you can delete pending requests, or revoke valid certificates.")?></td>
+    <td class="DataTD" colspan="8"><?=_("From here you can delete pending requests, or revoke valid certificates.")?></td>
   </tr>
 </table>
 <input type="hidden" name="oldid" value="<?=$id?>"/>
index bfd049c..9607850 100644 (file)
@@ -40,7 +40,7 @@
                        `emailcerts`.`id`,
                        `emailcerts`.`CN`,
                        `emailcerts`.`serial`,
-                       emailcerts.disablelogin as `disablelogin`,
+                       `emailcerts`.`disablelogin` as `disablelogin`,
                        `emailcerts`.`description`
                        from `emailcerts`
                        where `emailcerts`.`memid`='".$_SESSION['profile']['id']."'