summaryrefslogtreecommitdiff
path: root/pages/account
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2014-03-20 04:25:50 +0100
committerMichael Tänzer <neo@nhng.de>2014-03-20 04:25:50 +0100
commit8872049b1d43ce98f528b9360e778bddd989067b (patch)
tree3730edd55156750fcef82d8d02323b73c3c9a39b /pages/account
parent8df925a3427bb53432bd7cff8344e69e0c6c8526 (diff)
downloadcacert-devel-8872049b1d43ce98f528b9360e778bddd989067b.tar.gz
cacert-devel-8872049b1d43ce98f528b9360e778bddd989067b.tar.xz
cacert-devel-8872049b1d43ce98f528b9360e778bddd989067b.zip
bug 807: PHP doesn't allow arrays in constants, let's use a class instead
Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'pages/account')
-rw-r--r--pages/account/10.php4
-rw-r--r--pages/account/16.php4
-rw-r--r--pages/account/20.php4
-rw-r--r--pages/account/3.php4
4 files changed, 8 insertions, 8 deletions
diff --git a/pages/account/10.php b/pages/account/10.php
index 82e4c87..317fc0e 100644
--- a/pages/account/10.php
+++ b/pages/account/10.php
@@ -61,10 +61,10 @@
<p class="attach_ul"><?=_("Hash algorithm used when signing the certificate:")?></p>
<ul class="no_indent">
<?
-foreach (HASH_ALGORITHMS as $algorithm => $display_string) {
+foreach (HashAlgorithms::display_strings() as $algorithm => $display_string) {
?>
<li>
- <input type="radio" id="hash_alg_<?=$algorithm?>" name="hash_alg" value="<?=$algorithm?>" <?=(DEFAULT_HASH_ALGORITHM === $algorithm)?'checked="checked"':''?> />
+ <input type="radio" id="hash_alg_<?=$algorithm?>" name="hash_alg" value="<?=$algorithm?>" <?=(HashAlgorithms::$default === $algorithm)?'checked="checked"':''?> />
<label for="hash_alg_<?=$algorithm?>"><?=$display_string?></label>
</li>
<?
diff --git a/pages/account/16.php b/pages/account/16.php
index d2c9787..2a9d734 100644
--- a/pages/account/16.php
+++ b/pages/account/16.php
@@ -71,9 +71,9 @@ if (array_key_exists('emails',$_SESSION['_config']) && is_array($_SESSION['_conf
<td class="DataTD" colspan="2" align="left">
<?=_("Hash algorithm used when signing the certificate:")?><br />
<?
- foreach (HASH_ALGORITHMS as $algorithm => $display_string) {
+ foreach (HashAlgorithms::display_strings() as $algorithm => $display_string) {
?>
- <input type="radio" id="hash_alg_<?=$algorithm?>" name="hash_alg" value="<?=$algorithm?>" <?=(DEFAULT_HASH_ALGORITHM === $algorithm)?'checked="checked"':''?> />
+ <input type="radio" id="hash_alg_<?=$algorithm?>" name="hash_alg" value="<?=$algorithm?>" <?=(HashAlgorithms::$default === $algorithm)?'checked="checked"':''?> />
<label for="hash_alg_<?=$algorithm?>"><?=$display_string?></label><br />
<?
} ?>
diff --git a/pages/account/20.php b/pages/account/20.php
index f91440e..470b59a 100644
--- a/pages/account/20.php
+++ b/pages/account/20.php
@@ -55,10 +55,10 @@
<p class="attach_ul"><?=_("Hash algorithm used when signing the certificate:")?></p>
<ul class="no_indent">
<?
-foreach (HASH_ALGORITHMS as $algorithm => $display_string) {
+foreach (HashAlgorithms::display_strings() as $algorithm => $display_string) {
?>
<li>
- <input type="radio" id="hash_alg_<?=$algorithm?>" name="hash_alg" value="<?=$algorithm?>" <?=(DEFAULT_HASH_ALGORITHM === $algorithm)?'checked="checked"':''?> />
+ <input type="radio" id="hash_alg_<?=$algorithm?>" name="hash_alg" value="<?=$algorithm?>" <?=(HashAlgorithms::$default === $algorithm)?'checked="checked"':''?> />
<label for="hash_alg_<?=$algorithm?>"><?=$display_string?></label>
</li>
<?
diff --git a/pages/account/3.php b/pages/account/3.php
index 7ce4267..bfe8f1a 100644
--- a/pages/account/3.php
+++ b/pages/account/3.php
@@ -119,9 +119,9 @@ if($_SESSION['profile']['points'] >= 50)
<td class="DataTD" colspan="2" align="left">
<?=_("Hash algorithm used when signing the certificate:")?><br />
<?
- foreach (HASH_ALGORITHMS as $algorithm => $display_string) {
+ foreach (HashAlgorithms::display_strings() as $algorithm => $display_string) {
?>
- <input type="radio" id="hash_alg_<?=$algorithm?>" name="hash_alg" value="<?=$algorithm?>" <?=(DEFAULT_HASH_ALGORITHM === $algorithm)?'checked="checked"':''?> />
+ <input type="radio" id="hash_alg_<?=$algorithm?>" name="hash_alg" value="<?=$algorithm?>" <?=(HashAlgorithms::$default === $algorithm)?'checked="checked"':''?> />
<label for="hash_alg_<?=$algorithm?>"><?=$display_string?></label><br />
<?
} ?>