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

version» Context lines:

Roxen.git/server/config_interface/sites/add_module.pike:635:    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_start_callbacks( conf->find_module( replace(mod,"!","#") ),    roxen.find_module( (mod/"!")[0] ),    conf->modules[ mod ] );    already_added = ([ ]);    conf->save( ); // save it all in one go -  return Roxen.http_redirect( site_url(id,conf->name)+"-!-/"+modules[-1]+"/" , +  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' "    "name='module_to_add' "    "value='"+q+"' />";    } )*"\n"    +"<input type='hidden' name='config' "    "value='"+conf->name+"' />"+cf_form+"</table><p><cf-ok />");