* Add enclair_db option to UserDB.pm. Allows logging of enclair password
[interchange.git] / code / UI_Tag / directive_value.coretag
1 # Copyright 2002-2007 Interchange Development Group and others
2
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.  See the LICENSE file for details.
7
8 # $Id: directive_value.coretag,v 1.4 2007-03-30 23:40:54 pajamian Exp $
9
10 UserTag directive_value order      name unparse
11 UserTag directive_value PosNumber  2
12 UserTag directive_value Version    $Revision: 1.4 $
13 UserTag directive_value Routine    <<EOR
14 sub {
15         my($name,$unparse) = @_;
16         my ($value, $parsed) = UI::Primitive::read_directive($name);
17         if($unparse) {
18                 $parsed =~ s/\@\@([A-Z]\w+?)\@\@/$Global::Variable->{$1}/g;
19                 $parsed =~ s/__([A-Z]\w+?)__/$Vend::Cfg->{Variable}{$1}/g;
20         }
21         return ($parsed || $value);
22 }
23 EOR