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.104 1998/04/24 08:40:14 per Exp $"; + string cvs_version = "$Id: mainconfig.pike,v 1.105 1998/07/04 13:17:10 grubba 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);
Roxen.git/server/base_server/mainconfig.pike:1475:       /* Shutdown Roxen... */    case "shutdown":    return roxen->shutdown();       /* Restart Roxen, somewhat more nice. */    case "restart":    return roxen->restart();       /* Rename a configuration. Not Yet Used... */ + #if 0    case "rename":    if(o->type == NODE_CONFIGURATION)    {    mv("configurations/"+o->data->name,    "configurations/"+id->variables->name);    o->data->name=id->variables->name;    }    break; -  + #endif /* 0 */       /* This only asks "do you really want to...", it does not delete    * the node */    -  +  /* Clear any memory caches associated with this configuration */ +  case "zapcache": +  object c = o->config(); +  if (c && c->clear_memory_caches) +  { +  c->clear_memory_caches(); +  } +  break; +     case "delete":    PUSH(default_head("Roxen Configuration")+    status_row(o));   // PUSH("<hr noshade>");       switch(o->type)    {    case NODE_CONFIGURATION:    PUSH("<font size=\"+2\">Do you really want to delete the configuration "+    o->data->name + ", all its modules and their copies?"
Roxen.git/server/base_server/mainconfig.pike:1797:    if(o->changed)    BUTTON(unfoldmodified, "Unfold modified", left);       if(nfolded(o))    BUTTON(unfoldlevel, "Unfold level", left);   // else if(nfoldedr(o))   // BUTTON(unfoldall, "Unfold all", left);       PUSH_BUTTONS(1);    +  if (more_mode) { +  BUTTON(zapcache, "Clear module caches", left); +  } +     if(!more_mode)    BUTTON(morevars, "More options", left);    else    BUTTON(nomorevars, "Fewer options", left);       if((o->changed||root->changed))    BUTTON(save, "Save", left);   // BUTTON(restart, "Restart", left);   // BUTTON(shutdown,"Shutdown", left);       PUSH_BUTTONS(0);      // PUSH("<br clear=all>");   // PUSH("<p align=right><font size=-1 color=blue><a href=\"$docurl\"><font color=blue>"+roxen->real_version +"</font></a></font></p>");   // PUSH("</table>");    PUSH("</body>\n");    return stores(res*"");   }