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.31 2000/11/19 23:34:03 nilsson Exp $ + // $Id: module.pmod,v 1.32 2000/11/20 07:04:01 per Exp $      #include <module.h>   #include <roxen.h>      // Locale macros   //<locale-token project="roxen_config"> LOCALE </locale-token>      #if constant(Locale.translate)   #define LOCALE(X,Y) \    ([string](mixed)Locale.translate("roxen_config",roxenp()->locale->get(),X,Y))
Roxen.git/server/etc/modules/Variable.pmod/module.pmod:642:   #endif      }      class Location   //! A location in the virtual filesystem   {    inherit String;    constant type = "Location";    constant width = 50; +  +  array verify_set( string value ) +  { +  if( !strlen( value ) || !((<'~','/'>)[value[-1]]) ) +  return ({ +  "You most likely want an ending '/' on this variable", +  value +  }); +  return ::verify_set( value );    } -  + }      class URL   //! A URL.   {    inherit String;    constant type = "URL";    constant width = 50;       array verify_set( string new_value )    {