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.10 1996/12/02 14:36:47 per Exp $"; + string cvs_version = "$Id: mainconfig.pike,v 1.11 1996/12/02 14:43:02 per Exp $";   inherit "roxenlib";   inherit "config/draw_things";      #include <confignode.h>   #include <module.h>      #define BODY (roxen->variables->BG[VAR_VALUE]?"<body background=/image/background.jpg bgcolor=#f0e0a0 text=#000000 link=#0000f0 vlink=#0000f0 alink=#00f000>":"<body>")   //#define BODY "<body bgcolor=#ffeeaa text=#000000 link=#0000f0 vlink=#0000f0 alink=#00f000>"      #define TABLEP(x, y) (id->supports->tables ? x : y)
Roxen.git/server/base_server/mainconfig.pike:535:    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"+    "<table width=500><tr><td width=500>"    "<h2>Select a module to add from the list below</h2>" });       foreach(mods, q)    { -  if(b = module_nomore(a, a[q][2], node->config())) +  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/"+    q+" width=500>")+ "<br>"+a[q][1] + "<p>"    "<i>A module of the same type is already enabled ("+ b->name    + "). <a href=\"/(delete)" + node->descend(b->name, 1)->path(1)    + "?"+(bar++)+    "\">Disable that module</a> if you want this one insted</i>"