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

version» Context lines:

Roxen.git/server/config_interface/sites/add_module.pike:550:    ModuleInfo mi = roxen.find_module( (mod/"!")[0] );    RoxenModule moo = conf->find_module( replace(mod,"!","#") );    foreach( indices(moo->query()), string v )    {    if( moo->getvar( v )->get_flags() & VAR_INITIAL )    {    num++;    res += "<tr><td colspan='3'><h2>"    +LOCALE(1,"Initial variables for ")+    Roxen.html_encode_string(mi->get_name())+"</h2></td></tr>" -  "<emit source='module-variables' configuration=\""+conf->name+"\"" +  "<emit source='module-variables' " +  " configuration=\""+conf->name+"\"" +  " module=\""+mod+#"\"/> +  <emit noset='1' source='module-variables' " +  " configuration=\""+conf->name+"\""    " module=\""+mod+#"\"> -  <tr><td width='50'></td><td width=20%><b>&_.name;</b></td><td><eval>&_.form:none;</eval></td></tr> -  <tr><td></td><td colspan=2>&_.doc:none;<p>&_.type_hint;</td></tr> +  <tr> +  <td width='150' valign='top' colspan='2'><b>&_.name;</b></td> +  <td valign='top'><eval>&_.form:none;</eval></td></tr> +  <tr> + <td width='30'><img src='/internal-roxen-unit' width=50 height=1 alt='' /></td> +  <td colspan=2>&_.doc:none;</td></tr>   </emit>";    break;    }    }    }    return ({res,num});   }      mapping already_added = ([]);   
Roxen.git/server/config_interface/sites/add_module.pike:577:    id->misc->do_not_goto = 1;    foreach( modules, string mod )    {    if( already_added[mod] )    mod = already_added[ mod ];    if( !has_value(mod, "!") || !conf->find_module( replace(mod,"!","#") ) )    {    RoxenModule mm = conf->enable_module( mod,0,0,1 );    if( !mm || !conf->otomod[mm] )    { -  report_error("Failed to enable "+mod+"\n" ); +  report_error(LOCALE(0,"Failed to enable %s")+"\n");    return Roxen.http_redirect( site_url(id,conf->name), id );    }    conf->call_low_start_callbacks( mm,    roxen.find_module( (mod/"!")[0] ),    conf->modules[ mod ] );    modules = replace( modules, mod,    (already_added[mod]=(mod/"!")[0]+"!"+    (conf->otomod[mm]/"#")[-1]) );    }    remove_call_out( roxen.really_save_it );