summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2013-06-18 22:20:22 +0200
committerINOPIAE <inopiae@cacert.org>2013-06-18 22:20:22 +0200
commit62aa3b3984bd7f616054ecf66836524f0effbba8 (patch)
tree18195d866b760391af685ac43c9e153b16a322d1
parent752a538d83eb4f4d5699e09fb66f015c3d3482f9 (diff)
downloadcacert-devel-62aa3b3984bd7f616054ecf66836524f0effbba8.tar.gz
cacert-devel-62aa3b3984bd7f616054ecf66836524f0effbba8.tar.xz
cacert-devel-62aa3b3984bd7f616054ecf66836524f0effbba8.zip
bug 782: change the layout on account/12.php and account/5.php, added error check in account.php
-rw-r--r--includes/account.php5
-rw-r--r--pages/account/12.php4
-rw-r--r--pages/account/5.php2
3 files changed, 7 insertions, 4 deletions
diff --git a/includes/account.php b/includes/account.php
index 1bf6961..3d7a277 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -1023,6 +1023,7 @@
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_")
@@ -1216,7 +1217,7 @@
$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 != "")
@@ -1821,6 +1822,7 @@
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_")
@@ -2179,6 +2181,7 @@
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_")
diff --git a/pages/account/12.php b/pages/account/12.php
index 6d4e86e..6d85cdc 100644
--- a/pages/account/12.php
+++ b/pages/account/12.php
@@ -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?>"/>
diff --git a/pages/account/5.php b/pages/account/5.php
index bfd049c..9607850 100644
--- a/pages/account/5.php
+++ b/pages/account/5.php
@@ -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']."'