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

version» Context lines:

Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1037:   }      // =====================================================================   // String   // =====================================================================   class String   //! String variable   {    inherit Variable;    constant type = "String"; -  int width = 40; +  int width = 60;    //! The width of the input field. Used by overriding classes.       string diff( int render )    {    if(!render)    return "("+Roxen.html_encode_string( default_value() )+")";    }       array(string) verify_set_from_form( mixed new )    {
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1136:            // =====================================================================   // Password   // =====================================================================   class Password   //! Password variable (uses crypt_password)   {    inherit String; -  int width = 20; +  int width = 40;    constant type = "Password";       int(0..1) set_from_form( RequestID id )    {    mapping val;    if( sizeof( val = get_form_vars(id)) &&    val[""] && strlen(val[""]) ) {    set( crypt_password( val[""] ) );    return 1;    }
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1168:    additional_args->type="password";    return input(path(), "", 30, additional_args);    }   }      class File   //! A filename   {    inherit String;    constant type = "File"; -  int width = 50; +  int width = 60;       string read( )    //! Read the file as a string.    {    return Stdio.read_bytes( query() );    }       Stat stat()    //! Stat the file    {
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1196:    }   #endif      }      class Location   //! A location in the virtual filesystem   {    inherit String;    constant type = "Location"; -  int width = 50; +  int width = 60;       array verify_set( string value )    {    if( !strlen( value ) || !((<'~','/'>)[value[-1]]) )    return ({    LOCALE(330,"You most likely want an ending '/' on this variable"),    value    });    return ::verify_set( value );    }   }      class URL   //! A URL.   {    inherit String;    constant type = "URL"; -  int width = 50; +  int width = 60;       array verify_set_from_form( string new_value )    {    return verify_port( new_value );    }   }      class Directory   //! A Directory.   {    inherit String;    constant type = "Directory"; -  int width = 50; +  int width = 60;       array verify_set( string value )    {   #ifdef __NT__    value = replace( value, "\\", "/" );   #endif    if( strlen(value) && value[-1] != '/' )    value += "/";    if( !strlen( value ) )    return ::verify_set( value );
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:1852:   }      // =====================================================================   // List baseclass   // =====================================================================   class List   //! Many of one type types   {    inherit Variable;    constant type="List"; -  int width = 40; +  int width = 60;       array(string|array(string)) verify_set(mixed to)    {    if (stringp(to)) {    // Backward compatibility junk...    return ({ "Compatibility: "    "Converted from TYPE_STRING to TYPE_STRING_LIST.\n",    map(to/",", global.String.trim_all_whites),    });    }