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

version» Context lines:

Roxen.git/server/config_interface/sites/config_left_item.pike:386:    // from the configuration interface server. Most of the time    // it's a really bad idea. Basically, protect the user. :-)    if(   #ifndef YES_I_KNOW_WHAT_I_AM_DOING    (c != id->conf) &&   #endif    config_perm( "Add Module" ) )    {    pre+=sprintf("<gbutton frame-image='&usr.left-buttonframe;' "    "width='&usr.left-buttonwidth;' bgcolor='&usr.left-buttonbg;' " -  "href='%sadd_module.pike?config=%s'> %s </gbutton>", +  "href='%sadd_module.pike?config=%s&amp;&usr.set-wiz-id;'> %s </gbutton>",    pre_site_url,    Roxen.http_encode_url( c->name ),    LOCALE(251, "Add Module"))+    sprintf("<br />\n"    "<img src='/internal-roxen-unit' width=1 height=1/><br />"    "<gbutton frame-image='&usr.left-buttonframe;' "    "width='&usr.left-buttonwidth;' "    "bgcolor='&usr.left-buttonbg;' " -  "href='%sdrop_module.pike?config=%s'> %s </gbutton><br />\n", +  "href='%sdrop_module.pike?config=%s&amp;&usr.set-wiz-id;'> %s </gbutton><br />\n",    pre_site_url,    Roxen.http_encode_url( c->name ),    LOCALE(252, "Drop Module"));    }    return pre;   }      mapping|string parse( RequestID id )   {    string site;    if( !id->misc->path_info ) id->misc->path_info = "";    sscanf( id->misc->path_info, "/%[^/]/", site );    array(string) path = ((id->misc->path_info||"")/"/")-({""});    return Roxen.http_string_answer(    selected_item( site, roxen.find_configuration( site ), id,    (((sizeof(path)>=2)?path[1]:"")/"!")[0],    ((sizeof(path)>=3)?path[2]:"")));   }