Revision 6c07db48
Added by Phil Davis about 10 years ago
usr/local/www/wizard.php | ||
---|---|---|
78 | 78 |
} |
79 | 79 |
|
80 | 80 |
if (!is_array($pkg)) { |
81 |
print_info_box_np(sprintf(gettext("ERROR: Could not parse %s/wizards/%s file."),$g['www_path'],$xml));
|
|
81 |
print_info_box_np(sprintf(gettext("ERROR: Could not parse %s/wizards/%s file."), $g['www_path'], $xml));
|
|
82 | 82 |
die; |
83 | 83 |
} |
84 | 84 |
|
... | ... | |
135 | 135 |
|
136 | 136 |
function update_config_field($field, $updatetext, $unset, $arraynum, $field_type) { |
137 | 137 |
global $config; |
138 |
$field_split = explode("->",$field); |
|
138 |
$field_split = explode("->", $field);
|
|
139 | 139 |
foreach ($field_split as $f) { |
140 | 140 |
$field_conv .= "['" . $f . "']"; |
141 | 141 |
} |
... | ... | |
200 | 200 |
<script type="text/javascript"> |
201 | 201 |
//<![CDATA[ |
202 | 202 |
|
203 |
function FieldValidate(userinput, regexp, message) |
|
204 |
{ |
|
203 |
function FieldValidate(userinput, regexp, message) { |
|
205 | 204 |
if (!userinput.match(regexp)) { |
206 | 205 |
alert(message); |
207 | 206 |
} |
... | ... | |
768 | 767 |
sort($timezonelist); |
769 | 768 |
|
770 | 769 |
/* kill carriage returns */ |
771 |
for ($x=0; $x<count($timezonelist); $x++) {
|
|
770 |
for ($x = 0; $x < count($timezonelist); $x++) {
|
|
772 | 771 |
$timezonelist[$x] = str_replace("\n", "", $timezonelist[$x]); |
773 | 772 |
} |
774 | 773 |
|
... | ... | |
876 | 875 |
$aliases = ""; |
877 | 876 |
$addrisfirst = 0; |
878 | 877 |
$aliasesaddr = ""; |
879 |
if ($config['aliases']['alias'] <> "" and is_array($config['aliases']['alias'])) |
|
878 |
if ($config['aliases']['alias'] <> "" and is_array($config['aliases']['alias'])) {
|
|
880 | 879 |
foreach ($config['aliases']['alias'] as $alias_name) { |
881 | 880 |
if ($isfirst == 1) { |
882 | 881 |
$aliases .= ","; |
... | ... | |
884 | 883 |
$aliases .= "'" . $alias_name['name'] . "'"; |
885 | 884 |
$isfirst = 1; |
886 | 885 |
} |
886 |
} |
|
887 | 887 |
?> |
888 | 888 |
|
889 | 889 |
var customarray=new Array(<?php echo $aliases; ?>); |
... | ... | |
891 | 891 |
window.onload = function () { |
892 | 892 |
|
893 | 893 |
<?php |
894 |
$counter=0;
|
|
894 |
$counter = 0;
|
|
895 | 895 |
foreach ($inputaliases as $alias) { |
896 | 896 |
echo "var oTextbox$counter = new AutoSuggestControl(document.getElementById(\"$alias\"), new StateSuggestions(customarray));\n"; |
897 | 897 |
$counter++; |
Also available in: Unified diff
Code spacing
and other random stuff I noticed.
I think this finishes messing with code style. The codebase should match
the developer style guide closely enough that 99.9% of changes will not
feel the need to also massage the formatting.