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.74 1997/08/20 07:46:55 per Exp $"; + string cvs_version = "$Id: mainconfig.pike,v 1.75 1997/08/21 10:50:24 per Exp $";   //inherit "roxenlib";   inherit "config/draw_things";      import Array;   import Stdio;   string status_row(object node);   string display_tabular_header(object node);   object get_template(string t);      /* Work-around for Simulate.perror */
Roxen.git/server/base_server/mainconfig.pike:17:      #define dR "ff"   #define dG "ff"   #define dB "ff"      #define bdR "00"   #define bdG "50"   #define bdB "90"       - #define BODY "<body bgcolor=white text=black link=black vlink=black alink=red>" + #define BODY "<body bgcolor=white text=black link=darkblue vlink=black alink=red>"      #define TABLEP(x, y) (id->supports->tables ? x : y)   #define PUSH(X) do{res+=({(X)});}while(0)      int bar=time(1);   multiset changed_port_servers;      class Node {    inherit "struct/node";       import Simulate;       mixed original;    int changed, moredocs; -  +     int bar=time(); -  function saver = lambda(object o) { if(o->changed) o->change(-o->changed); }; -  +  function saver;    string|array error;       void change(int i)    {    changed += i;    if(up) up->change(i);    }       private string show_me(string s)    {
Roxen.git/server/base_server/mainconfig.pike:138:    {    if(node->changed) node->save();    node=node->next;    }    if(changed && type == NODE_MODULE_COPY_VARIABLE &&    data[VAR_TYPE] == TYPE_PORTS) {    roxen->configuration_interface_obj->changed_port_servers[config()] = 1;    // A port was changed in the current server...    }    if(saver) saver(this_object(), config()); +  else change(-changed);    }   }      int restore_more_mode()   {    return !!file_stat(".more_mode");   }      object root=Node();   int expert_mode, more_mode=restore_more_mode();