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.21 1996/12/05 14:20:13 per Exp $"; + string cvs_version = "$Id: mainconfig.pike,v 1.22 1996/12/05 16:01:58 per Exp $";   inherit "roxenlib";   inherit "config/draw_things";      #include <confignode.h>   #include <module.h>      #define dR "00" - #define dG "10" + #define dG "06"   #define dB "30"      #define bdR "00"   #define bdG "50"   #define bdB "90"       - #define BODY "<body "+(roxen->QUERY(BG)?"background=image/background.gif ":"")+"bgcolor=#"+dR+dG+dB+" text=#ffffff link=#ffffaa vlink=#ffffaa alink=#f0e0f0>" + #define BODY "<body "+(roxen->QUERY(BG)?"background=/image/background.gif ":"")+"bgcolor=#"+dR+dG+dB+" text=#ffffff link=#ffffaa vlink=#ffffaa alink=#f0e0f0>"      #define TABLEP(x, y) (id->supports->tables ? x : y)   #define PUSH(X) do{res+=({(X)});}while(0)      int bar=time(1);      class Node {    inherit "struct/node";       mixed original;
Roxen.git/server/base_server/mainconfig.pike:864:   int nunfolded(object o)   {    int i;    if(o = o->down)    do { i+=!o->folded; } while(o=o->next);    return i;   }         object module_font = Font()->load("base_server/config/font"); - object button_font = module_font; + object button_font = Font()->load("base_server/config/button_font");      mapping auto_image(string in, object id)   {    string key, value;    array trans = ({ (int)("0x"+dR),(int)("0x"+dG),(int)("0x"+dB) });    mapping r;    mixed e;    object i;       if(r=cache_lookup("config_images", in)) return r;
Roxen.git/server/base_server/mainconfig.pike:964:    string tmp;    // Is it an image?    if(sscanf(id->not_query, "/image/%s", tmp))    return file_image(tmp) || (["data":"No such image"]);       object o;    int i;       id->since = 0; // We do not want 'get-if-modified-since' to work here.    -  +     // Permisson denied by address?    if(id->remoteaddr)    if(strlen(roxen->QUERY(ConfigurationIPpattern)) &&    !glob(roxen->QUERY(ConfigurationIPpattern),id->remoteaddr))    return stores("Permission denied.\n");       // Permission denied by userid?    if(!id->misc->read_allow)    {    if(!(strlen(roxen->QUERY(ConfigurationPassword))
Roxen.git/server/base_server/mainconfig.pike:1344:    o->change(-1);    else if(!o->changed)    o->change(1);    }    break;    }    return std_redirect(o, id);    }       PUSH(default_head("Roxen server configuration", root->changed?o->path(1):0)); +  PUSH("<blockquote>\n");   // PUSH("<table width=\"100%\" cellpadding=0 cellspacing=0>\n");   // PUSH("<tr><td>\n");    PUSH("\n"+display_tabular_header( o )+"\n");    PUSH("<br>");   // PUSH("</td></tr><tr><td width=\"100%\" bgcolor=#000000><br>");       if(o->up != root && o->up)    PUSH("<a href=\""+ o->up->path(1)+"?"+(bar++)+"\">"    "<img src=/auto/back alt='[Up]' align=left hspace=0 border=0></a>\n");   
Roxen.git/server/base_server/mainconfig.pike:1412:    BUTTON(save, "Save", left);       BUTTON(restart, "Restart", left);    BUTTON(shutdown,"Shutdown", left);          PUSH("<img border=0 alt=\"\" hspacing=0 vspacing=0 src=/auto/button/rm/%20>");    PUSH("</nobr><br clear=all>");   // PUSH("<a href=$docurl>"+roxen->real_version +"</a>"    PUSH("</body>\n"); +  PUSH("</blockquote>\n");    return stores(res*"");   }