login.php
1.77 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<?php
require_once "WEB-INF/php/inc.php";
$title = "Resin Admin Login";
display_header("login.php", $title, null);
if ($error) {
echo "<h3 class='fail'>Error: $error</h3>";
}
?><form method="POST" action="j_security_check?j_uri=status.php">
<table border='0'>
<tr>
<th>Username: </th>
<td>
<input name="j_username" width="40"></input>
</td>
</tr>
<tr>
<th>Password: </th>
<td>
<input name="j_password" width="40" type="password"></input>
</td>
</tr>
<tr>
<td>
<input type="submit"></input>
</td>
<td></td>
</tr>
</table>
</form>
<?php
$digest_username = null;
include "digest.php";
if (! empty($digest)) {
?>
<?php
/** XXX:
<p>
The following can now be added to the file
<code><b>resin.conf</b></code>
to enable administration functionality.
</p>
<pre>
<resin xmlns="http://caucho.com/ns/resin">
<management>
<user name="<?= $digest_username ?>" password="<?= $digest ?>"/>
</management>
...
</resin>
</pre>
*/
?>
<p>
The following can now be set in the resin.conf file
to enable administration functionality.
</p>
<pre>
<resin xmlns="http://caucho.com">
<management path="admin">
<user name="<?= $digest_username ?>" password="<?= $digest ?>"/>
...
</management>
...
</resin>
</pre>
<p>
By default, access to the administration application is limited
to the localhost. The default behaviour can be changed in the
resin.conf file. To enable access to clients other than localhost:
</p>
<pre>
<resin:set var="resin_admin_external" value="true"/>
</pre>
<p>
Once the file has been updated, you can
<a href="<?= $login_uri ?>">continue to the administration area</a>.
</p>
<p>
When prompted, use the username and password you provided.
</p>
<?php
}
display_footer("login.php");
?>