configuration.tpl
2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<h1>System Configuration</h1>
<form action="index.php?step_name=configuration" method="post">
<h3>Server Settings</h3>
<div class="error">
<?php
foreach ($errors as $error){
echo $error.'<br />';
}
?>
</div>
<table>
<tr>
<td><label for='host'>Host: </label></td>
<td><input name='host' id='host' size='60' value='<?php echo $server['host']; ?>' /></td>
</tr>
<tr>
<td><label for='port'>Port: </label></td>
<td><input name='port' id='port' size='5' value='<?php echo $server['port']; ?>' /></td>
</tr>
<tr>
<td><label for='root_url'>Root Url: </label></td>
<td><input name='root_url' id='root_url' size='60' value='<?php echo $server['root_url']; ?>' /></td>
</tr>
<tr>
<td><label for='file_system_root'>File System Root: </label></td>
<td><input name='file_system_root' id='file_system_root' size='60' value='<?php echo $server['file_system_root']; ?>' /></td>
</tr>
<tr>
<td><label for='yes'>SSL Enabled: </label></td>
<td>
<label for='yes'>Yes: </label><input type='radio' name='ssl_enabled' id='yes' value='yes' <?php echo $server['ssl_enabled'] == 'yes' ? 'CHECKED' : ''; ?> />
<label for='no'>No: </label><input type='radio' name='ssl_enabled' id='no' value='no' <?php echo $server['ssl_enabled'] == 'no' ? 'CHECKED' : ''; ?> />
</td>
</tr>
</table>
<br />
<h3>Paths and Permissions</h3>
<table>
<?php
foreach ($paths as $key => $path){
$row = '<tr>';
$row .= "<td><div class='{$path['class']}'></div></td>\n";
$row .= "<td><label for='{$path['setting']}'>{$path['name']}: </label></td>\n";
$row .= "<td><input name='{$path['setting']}' id='{$path['setting']}' size='60' value='{$path['path']}' /></td>\n";
$row .= '<td class="error">';
$row .= (isset($path['msg'])) ? $path['msg'] : '';
$row .= "</td>\n";
$row .= "</tr>\n";
echo $row;
}
?>
</table>
<div class="buttons">
<input type="submit" name="Previous" value="Previous"/>
<input type="submit" name="Next" value="Next"/>
</div>
</form>