Roxen.git / server / etc / modules / Variable.pmod / module.pmod

version» Context lines:

Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1: - // $Id: module.pmod,v 1.72 2001/11/12 21:32:05 mast Exp $ + // $Id: module.pmod,v 1.73 2001/11/21 15:49:34 grubba Exp $      #include <module.h>   #include <roxen.h>      // Locale macros   //<locale-token project="roxen_config"> LOCALE </locale-token>      #define LOCALE(X,Y) \    ([string](mixed)Locale.translate("roxen_config",roxenp()->locale->get(),X,Y))   
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1596:    Roxen.html_encode_string(split->path[1..])+"' /><br />";    mapping opts = ([]);    string a,b;    foreach( (split->fragment||"")/";", string x )    {    sscanf( x, "%s=%s", a, b );    opts[a]=b;    }    res += "IP#: <input size=15 type=text name='"+prefix+"ip' value='"+    Roxen.html_encode_string(opts->ip||"")+"' /> "; -  res += LOCALE(0,"Bind this port: "); +  res += LOCALE(510,"Bind this port: ");    res += "<select name='"+prefix+"bind'>";    if( (int)opts->nobind )    {    res += -  ("<option value='1'>"+LOCALE(0,"Yes")+"</option>" -  "<option selected='t' value='0'>"+LOCALE(0,"No")+"</option>"); +  ("<option value='1'>"+LOCALE("yes","Yes")+"</option>" +  "<option selected='t' value='0'>"+LOCALE("no","No")+"</option>");    }    else    {    res += -  ("<option selected='t' value='1'>"+LOCALE(0,"Yes")+"</option>" -  "<option value='0'>"+LOCALE(0,"No")+"</option>"); +  ("<option selected='t' value='1'>"+LOCALE("yes","Yes")+"</option>" +  "<option value='0'>"+LOCALE("no","No")+"</option>");    }    res += "</select>";    return res;    }       string transform_from_form( string v, mapping va )    {    if( v == "" ) return "http://*/";    v = v[strlen(path())..];    if( strlen( va[v+"path"] ) && va[v+"path"][-1] != '/' )