summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2015-03-03 22:22:07 +0100
committerBenny Baumann <BenBE@geshi.org>2015-03-03 22:22:07 +0100
commitb037d8ce2fde8ced7ad9c7c5dd0689a9ac42f8d2 (patch)
tree69433438d0a639e0f5daad5227672750e73762f1
parent7fd0b20438735aea8206d27517cd72d8bb2310cd (diff)
downloadcacert-devel-bug-1253.tar.gz
cacert-devel-bug-1253.tar.xz
cacert-devel-bug-1253.zip
bug 1253: Added some more places with color:red to use the error indicator style insteadbug-1253
-rw-r--r--includes/account.php8
-rw-r--r--includes/keygen.php6
-rw-r--r--pages/advertising/1.php2
3 files changed, 8 insertions, 8 deletions
diff --git a/includes/account.php b/includes/account.php
index 6dacf2d..df0d843 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -1362,7 +1362,7 @@ function buildSubjectFromSession() {
showheader(_("My CAcert.org Account!"));
if($_SESSION['_config']['user']['pword1'] == "" || $_SESSION['_config']['user']['pword1'] != $_SESSION['_config']['user']['pword2'])
{
- echo '<h3 style="color:red">', _("Failure: Pass Phrase not Changed"),
+ echo '<h3 class="error_fatal">', _("Failure: Pass Phrase not Changed"),
'</h3>', "\n";
echo _("New Pass Phrases specified don't match or were blank.");
} else {
@@ -1380,15 +1380,15 @@ function buildSubjectFromSession() {
}
if(strlen($_SESSION['_config']['user']['pword1']) < 6) {
- echo '<h3 style="color:red">',
+ echo '<h3 class="error_fatal">',
_("Failure: Pass Phrase not Changed"), '</h3>', "\n";
echo _("The Pass Phrase you submitted was too short.");
} else if($score < 3) {
- echo '<h3 style="color:red">',
+ echo '<h3 class="error_fatal">',
_("Failure: Pass Phrase not Changed"), '</h3>', "\n";
printf(_("The Pass Phrase you submitted failed to contain enough differing characters and/or contained words from your name and/or email address. Only scored %s points out of 6."), $score);
} else if($rc <= 0) {
- echo '<h3 style="color:red">',
+ echo '<h3 class="error_fatal">',
_("Failure: Pass Phrase not Changed"), '</h3>', "\n";
echo _("You failed to correctly enter your current Pass Phrase.");
} else {
diff --git a/includes/keygen.php b/includes/keygen.php
index 15dee8a..270a569 100644
--- a/includes/keygen.php
+++ b/includes/keygen.php
@@ -24,7 +24,7 @@ if (array_key_exists('HTTP_USER_AGENT',$_SERVER) && strstr($_SERVER['HTTP_USER_A
'manually created certificate requests instead.')?></p>
</noscript>
- <div id="noActiveX" style="color:red">
+ <div id="noActiveX" class="error_fatal">
<p><?=_('Could not initialize ActiveX object required for certificate generation.')?></p>
<p><?=_('You have to enable ActiveX for this to work. On Windows Vista, Windows 7 and '.
'later versions you have to add this website to the list of trusted sites '.
@@ -41,7 +41,7 @@ if (array_key_exists('HTTP_USER_AGENT',$_SERVER) && strstr($_SERVER['HTTP_USER_A
</p>
</div>
- <form method="post" style="display:none" action="account.php"
+ <form method="post" style="display:none;" action="account.php"
id="CertReqForm">
<input type="hidden" name="oldid" value="<?=intval($id)?>" />
<input type="hidden" id="CSR" name="CSR" />
@@ -72,7 +72,7 @@ if (array_key_exists('HTTP_USER_AGENT',$_SERVER) && strstr($_SERVER['HTTP_USER_A
// the maximum is 2048, then only 1024, 1536 and 2048 bits may
// be specified as key size.
echo _('Step')?>: <span id="keySizeStep"></span></p>
- <p style="color:red"><?php
+ <p class="error_fatal"><?php
printf(_('Please note that RSA key sizes smaller than %d bit '.
'will not be accepted by CAcert.'),
2048)?>
diff --git a/pages/advertising/1.php b/pages/advertising/1.php
index 5de2ad3..a7c781e 100644
--- a/pages/advertising/1.php
+++ b/pages/advertising/1.php
@@ -15,7 +15,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ ?>
-<? global $errmsg, $link, $title, $months; if($errmsg != "") { ?><p style="color:red"><?=$errmsg?></p><? } ?>
+<? global $errmsg, $link, $title, $months; if($errmsg != "") { ?><p class="error_fatal"><?=$errmsg?></p><? } ?>
<form method="post" action="advertising.php" ACCEPTCHARSET="utf-8">
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper">
<tr>