Roxen.git / server / base_server / mainconfig.pike

version» Context lines:

Roxen.git/server/base_server/mainconfig.pike:1:   inherit "config/builders"; - string cvs_version = "$Id: mainconfig.pike,v 1.55 1997/08/12 17:03:09 peter Exp $"; + string cvs_version = "$Id: mainconfig.pike,v 1.56 1997/08/12 19:25:09 peter Exp $";   inherit "roxenlib";   inherit "config/draw_things";      import Array;   import Stdio;   string status_row(object node);   string display_tabular_header(object node);      /* Work-around for Simulate.perror */   #define perror roxen_perror
Roxen.git/server/base_server/mainconfig.pike:614:    }       a=roxen->allmodules;    mods=sort_array(indices(a), lambda(string a, string b, mapping m) {    return m[a][0] > m[b][0];    }, a);       res = ({default_head("Add a module")+"\n\n"+    status_row(node)+   // display_tabular_header(node)+ -  "<table><tr><td>&nbsp<td><h2>Select a module to add" +  "<table><tr><td>&nbsp;<td><h2>Select a module to add"    " from the list below, click on it's header to add it.</h2>" });       foreach(mods, q)    {    if(b = module_nomore(q, a[q][2], node->config()))    {    if(b->sname != q)    res += ({("<p>"+    (roxen->QUERY(BS)?"<h2>"+a[q][0]+"</h2>":    "<img alt=\""+a[q][0]+"\" src=/auto/module/" +a[q][2]+"/"+
Roxen.git/server/base_server/mainconfig.pike:1164:    }    else    cnt++;    }    return res[0..strlen(res)-8];   }      string status_row(object node)   {    return ("<table width=100% bgcolor=#dddddd border=0 cellpadding=0" -  " cellspacing=0><tr><td valign=center align=left><a href=$docurl><img border=0 " -  "src=/image/roxen-small.gif></a></td><td align=right valign=top>"+ -  describe_node_path(node)+"</td><td>&nbsp</td></tr></table><br>"); +  " cellspacing=0><tr><td valign=center align=left><a href=$docurl>" +  "<img border=0 src=/image/roxen-small.gif alt=\"Roxen\"></a></td>" +  "<td align=right valign=top>"+ +  describe_node_path(node)+"</td><td>&nbsp;</td></tr></table><br>");   }      mapping logged = ([ ]);      void check_login(object id)   {    if(logged[id->remoteaddr]+1000<time())    report_notice("Administrator logged on from "+    roxen->blocking_ip_to_host(id->remoteaddr)+".");    logged[id->remoteaddr]=time(1);