diff --git a/pages/account/3.php b/pages/account/3.php
index 25c62fc..5bfa085 100644
--- a/pages/account/3.php
+++ b/pages/account/3.php
@@ -40,161 +40,133 @@
=_("Address")?>
-
- $query = "select * from `email` where `memid`='".intval($_SESSION['profile']['id'])."' and `deleted`=0 and `hash`=''";
- $res = mysql_query($query);
- while($row = mysql_fetch_assoc($res))
- { ?>
-
-
- =sanitizeHTML($row['email'])?>
-
- }
-if($_SESSION['profile']['points'] >= 50)
-{
- $fname = $_SESSION['profile']['fname'];
- $mname = $_SESSION['profile']['mname'];
- $lname = $_SESSION['profile']['lname'];
- $suffix = $_SESSION['profile']['suffix'];
-?>
-
-
-
- =_("No Name")?>
- if($fname && $lname) { ?>
-
- =_("Include")?> '=$fname." ".$lname?>'
+
+ $query = "select * from `email` where `memid`='" . intval($_SESSION[ 'profile' ][ 'id' ] ) . "' and `deleted`=0 and `hash`=''";
+ $res = mysql_query($query );
+ while ($row = mysql_fetch_assoc($res))
+ { ?>
+
+
+ =sanitizeHTML($row['email'])?>
+
+ }
+ if ($_SESSION[ 'profile' ][ 'points' ] >= 50 )
+ {
+ $fname = $_SESSION[ 'profile' ][ 'fname' ];
+ $mname = $_SESSION[ 'profile' ][ 'mname' ];
+ $lname = $_SESSION[ 'profile' ][ 'lname' ];
+ $suffix = $_SESSION[ 'profile' ][ 'suffix' ];
+ ?>
+
+
+
+ = _("No Name") ?>
+ if ($fname && $lname ) { ?>
+
+ = _("Include") ?> '= $fname . " " . $lname ?>'
+ } ?>
+ if ($fname && $mname && $lname ) { ?>
+
+ = _("Include") ?> '= $fname . " " . $mname . " " . $lname ?> '
+ } ?>
+ if ($fname && $lname && $suffix ) { ?>
+
+ = _("Include") ?> '= $fname . " " . $lname . " " . $suffix ?> '
+ } ?>
+ if ($fname && $mname && $lname && $suffix ) { ?>
+
+ = _("Include") ?> '= $fname . " " . $mname . " " . $lname . " " . $suffix ?>'
+ } ?>
+
+
} ?>
- if($fname && $mname && $lname) { ?>
-
- =_("Include")?> '=$fname." ".$mname." ".$lname?>'
- } ?>
- if($fname && $lname && $suffix) { ?>
-
- =_("Include")?> '=$fname." ".$lname." ".$suffix?>'
- } ?>
- if($fname && $mname && $lname && $suffix) { ?>
-
- =_("Include")?> '=$fname." ".$mname." ".$lname." ".$suffix?>'
- } ?>
-
-
- } ?>
-
-
-
-
-
- =_("Enable certificate login with this certificate")?>
- =_("By allowing certificate login, this certificate can be used to login into this account at https://secure.cacert.org/ .")?>
-
-
-
-
- =_("Optional comment, only used in the certificate overview")?>
-
-
-
-
-
-
-
-
-
- =_("Show advanced options")?>
-
-
+
+
+
+
+
+ = _("Enable certificate login with this certificate") ?>
+ = _("By allowing certificate login, this certificate can be used to login into this account at https://secure.cacert.org/ .") ?>
+
+
+
+
+ = _("Optional comment, only used in the certificate overview") ?>
+
+
+
-if($_SESSION['profile']['points'] >= 50)
-{
-?>
-
-
- =_("Sign by class 1 root certificate")?>
- =_("Sign by class 3 root certificate")?>
- =str_replace("\n", " \n", wordwrap(_("Please note: If you use a certificate signed by the class 3 root, the class 3 root certificate needs to be imported into your email program as well as the class 1 root certificate so your email program can build a full trust path chain."), 125))?>
-
-
+ if($_SESSION['profile']['points'] >= 50)
+ {
+ ?>
+
+
+ =_("Sign by class 1 root certificate")?>
+ = _("Sign by class 3 root certificate") ?>
+ = str_replace("\n", " \n", wordwrap(_("Please note: If you use a certificate signed by the class 3 root, the class 3 root certificate needs to be imported into your email program as well as the class 1 root certificate so your email program can build a full trust path chain."), 125 ) ) ?>
+
+
} ?>
-
-
- =_("Hash algorithm used when signing the certificate:")?>
-
- foreach (HashAlgorithms::getInfo() as $algorithm => $display_info) {
- ?>
- />
- =$display_info['name']?>=$display_info['info']?' - '.$display_info['info']:''?>
-
- }
- ?>
-
-
+
+
+ = _("Hash algorithm used when signing the certificate:") ?>
+
+ foreach (HashAlgorithms::getInfo() as $algorithm => $display_info ) {
+ ?>
+ />
+ = $display_info[ 'name' ] ?>= $display_info[ 'info' ] ? ' - ' . $display_info[ 'info' ] : '' ?>
+
+ }
+ ?>
+
+
- if($_SESSION['profile']['points'] >= 100 && $_SESSION['profile']['codesign'] > 0) { ?>
-
-
-
-
-
- =_("Code Signing")?>
- =_("Please note: By ticking this box you will automatically have your name included in the certificate.")?>
-
-
- } ?>
+ if ($_SESSION[ 'profile' ][ 'points' ] >= 100 && $_SESSION[ 'profile' ][ 'codesign' ] > 0 ) { ?>
+
+
+
+
+
+ = _("Code Signing") ?>
+ = _("Please note: By ticking this box you will automatically have your name included in the certificate.") ?>
+
+
+ } ?>
-
-
-
-
-
- =_("Add Single Sign On ID Information")?>
- =str_replace("\n", " \n", wordwrap(_("By adding Single Sign On (SSO) ID information to your certificates this could be used to track you, you can also issue certificates with no email addresses that are useful only for Authentication. Please see a more detailed description on our WIKI about it."), 125))?>
- =_("SSO WIKI Entry")?>
-
-
+
+
+
+
+
+ = _("Add Single Sign On ID Information") ?>
+ = str_replace("\n", " \n", wordwrap(_("By adding Single Sign On (SSO) ID information to your certificates this could be used to track you, you can also issue certificates with no email addresses that are useful only for Authentication. Please see a more detailed description on our WIKI about it."), 125 ) ) ?>
+ = _("SSO WIKI Entry") ?>
+
+
-
-
- =_("Optional Client CSR, no information on the certificate will be used")?>
-
-
-
+
+
+ = _("Optional Client CSR, no information on the certificate will be used") ?>
+
+
+
+
+
+
+
+
+ = sprintf(_("I accept the CAcert Community Agreement (%s)."), "CCA ") ?>
+ = _("Please note: You need to accept the CCA to proceed.") ?>
+
+
-
-
-
-
-
- =sprintf(_("I accept the CAcert Community Agreement (%s)."),"CCA ")?>
- =_("Please note: You need to accept the CCA to proceed.")?>
-
-
-
- " />
-
-
-
+
+ "/>
+
+
+
-
-