Roxen.git / server / config_interface / sites / add_module.pike

version» Context lines:

Roxen.git/server/config_interface/sites/add_module.pike:1: - // $Id: add_module.pike,v 1.84 2006/02/07 10:52:52 jonasw Exp $ + // $Id: add_module.pike,v 1.85 2006/05/31 15:32:56 mast Exp $      #include <config_interface.h>   #include <module.h>   #include <module_constants.h>   #include <roxen.h>      int no_reload()   {    if( sizeof( already_added ) )    return 1; // Reloading this script now would destroy state.
Roxen.git/server/config_interface/sites/add_module.pike:834:    }    }       [string cf_form, int num] = initial_form( id, conf, modules );    if( !num || id->variables["ok.x"] )    {    // set initial variables from form variables...    if( num ) Roxen.parse_rxml( cf_form, id );    foreach( modules, string mod )    conf->call_high_start_callbacks( conf->find_module( replace(mod,"!","#") ), -  roxen.find_module( (mod/"!")[0] ) ); +  roxen.find_module( (mod/"!")[0] ), +  1);    already_added = ([ ]);    conf->save( ); // save it all in one go    conf->forcibly_added = ([]);    return Roxen.http_redirect(    site_url(id,conf->name)+"-!-/"+modules[-1]+"/" ,    id);    }    return page_base(id,"<table>"+    map( modules, lambda( string q ) {    return "<input type='hidden' "