Roxen.git/
server/
etc/
modules/
Roxen.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2002-04-09
2002-04-09 15:26:57 by Marcus Wellhardh <wellhard@roxen.com>
c2bd8cdef818275dbbe3dd1955cbda1cccd42e8f (
7
lines) (+
6
/-
1
)
[
Show
|
Annotate
]
Branch:
5.2
Added entity roxen.license-type.
Rev: server/etc/modules/Roxen.pmod:1.139
1:
// This is a roxen pike module. Copyright © 1999 - 2001, Roxen IS. //
-
// $Id: Roxen.pmod,v 1.
138
2002/04/
08
15:
37
:
51
js
Exp $
+
// $Id: Roxen.pmod,v 1.
139
2002/04/
09
15:
26
:
57
wellhard
Exp $
#include <roxen.h> #include <config.h>
2995:
return ENCODE_RXML_TEXT(c->id->misc->site_prefix_path, type); case "unique-id": return ENCODE_RXML_TEXT(roxenp()->create_unique_id(), type);
+
+
case "license-type":
+
object key = c->id->conf->getvar("license")->get_key();
+
return ENCODE_RXML_TEXT(key?key->type():"none", type);
} mixed val = c->misc->scope_roxen[var]; if (zero_type(val)) return RXML.nil;