Roxen.git
/
server
/
base_server
/
module.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/base_server/module.pike:1:
-
/* $Id: module.pike,v 1.
62
2000/01/
05
17
:
29
:
53
mast Exp $ */
+
/* $Id: module.pike,v 1.
63
2000/01/
07
02
:
32
:
41
mast Exp $ */
#include <module.h> #include <request_trace.h> mapping (string:mixed *) variables=([]); RoxenModule this = this_object(); mapping(string:array(int)) error_log=([]); constant is_module = 1; constant module_type = MODULE_PARSER; constant module_name = "Unnamed module";
Roxen.git/server/base_server/module.pike:649:
mapping query_if_callers() { mapping m = ([]); foreach(glob("if_*", indices( this_object())), string q) if(functionp( this_object()[q] )) m[replace(q[3..], "_", "-")] = this_object()[q]; return m; }
-
RXML.TagSet query_
tagset
()
+
RXML.TagSet query_
tag_set
()
{ return RXML.TagSet (module_identifier(), filter (rows (this_object(), glob ("Tag*", indices (this_object()))), functionp)); } mixed get_value_from_file(string path, string index, void|string pre) { Stdio.File file=Stdio.File(); if(!file->open(path,"r")) return 0; if(index[sizeof(index)-2..sizeof(index)-1]=="()") { return compile_string((pre||"")+file->read())[index[..sizeof(index)-3]](); } return compile_string((pre||"")+file->read())[index]; }