d2d936 | 1997-08-24 | Peter Bortas | | |
5c2217 | 1998-07-20 | David Hedbor | | * $Id: requeststatus.pike,v 1.3 1998/07/20 20:37:43 neotron Exp $
|
d2d936 | 1997-08-24 | Peter Bortas | | */
inherit "wizard";
constant name= "Status//Access / request status";
|
513726 | 1997-11-19 | Henrik Grubbström (Grubba) | | constant doc = ("Shows the amount of data handled since last restart.");
|
d2d936 | 1997-08-24 | Peter Bortas | |
constant more=0;
mixed page_0(object id, object mc)
{
|
5c2217 | 1998-07-20 | David Hedbor | | return sprintf("<h1>Server Overview</h1>"
"This is the summary status of all virtual servers. "
"Click <b>[Next->]</b> to see the statistics for each "
"indiviual server, or <b>[Cancel]</b> to return to the "
"previous menu.<p>%s",
roxen->full_status());
}
mixed page_1(object id)
{
string res="";
foreach(Array.sort_array(roxen->configurations,
lambda(object a, object b) {
return lower_case(a->name) > lower_case(b->name);
}), object o)
res += sprintf("<h2>%s<br>%s</h2>\n", o->name,
replace(o->status(), "<table>", "<table cellpadding=4>"));
return res;
|
d2d936 | 1997-08-24 | Peter Bortas | | }
mixed handle(object id) { return wizard_for(id,0); }
|
513726 | 1997-11-19 | Henrik Grubbström (Grubba) | |
|