mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 15:37:02 +02:00
Replaced most each() calls with foreach() in preparation to support php 8
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
@ -123,7 +123,7 @@
|
||||
<tr>
|
||||
<th colspan="2"><?php print $text_message_disposition; ?></th>
|
||||
</tr>
|
||||
<?php while(list($k, $v) = each($health['counters'])) {
|
||||
<?php foreach($health['counters'] as $k => $v) {
|
||||
if(!is_numeric($k)) { ?>
|
||||
<tr>
|
||||
<td><?php $a = preg_replace("/^_piler\:/", "", $k); if(isset($$a)) { print $$a; } else { print $k; } ?></td>
|
||||
|
@ -36,7 +36,7 @@
|
||||
<label class="control-label" for="ldap_type"><?php print $text_ldap_type; ?>:</label>
|
||||
<div class="controls">
|
||||
<select name="ldap_type" id="ldap_type" onchange="Piler.fix_ldap_display();" class="span4">
|
||||
<?php while(list($k, $v) = each($ldap_types)) { ?>
|
||||
<?php foreach($ldap_types as $k => $v) { ?>
|
||||
<option value="<?php print $v; ?>"<?php if(isset($a['ldap_type']) && $a['ldap_type'] == $v) { ?> selected="selected"<?php } ?>><?php print $v; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
|
@ -91,7 +91,7 @@
|
||||
<div class="controls">
|
||||
<select class="ruleselect" name="folder_id">
|
||||
<option value="0">-</option>
|
||||
<?php while(list($k,$v) = each($folders)) { ?>
|
||||
<?php foreach($folders as $k => $v) { ?>
|
||||
<option value="<?php print $k; ?>"><?php print $v; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
|
Reference in New Issue
Block a user