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.70 2001/11/01 14:58:53 grubba Exp $ + // $Id: module.pmod,v 1.71 2001/11/05 13:37:49 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:1579:    res += "<select name='"+prefix+"prot'>";    foreach( sort(indices( roxenp()->protocols )), string p )    {    if( p == split->scheme )    res += "<option selected='t'>"+p+"</option>";    else    res += "<option>"+p+"</option>";    }    res += "</select>";    -  res += "://<input type=string name='"+prefix+"host' value='"+ +  res += "://<input type=text name='"+prefix+"host' value='"+    Roxen.html_encode_string(split->host)+"' />"; -  res += ":<input type=string size=6 name='"+prefix+"port' value='"+ +  res += ":<input type=text size=6 name='"+prefix+"port' value='"+    split->port+"' />";    -  res += "/<input type=string name='"+prefix+"path' value='"+ +  res += "/<input type=text name='"+prefix+"path' value='"+    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=string name='"+prefix+"ip' value='"+ +  res += "IP#: <input size=15 type=text name='"+prefix+"ip' value='"+    Roxen.html_encode_string(opts->ip||"")+"' /> ";    res += LOCALE(0,"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>");    }    else