Roxen.git
/
server
/
modules
/
misc
/
pathinfo.pike
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/modules/misc/pathinfo.pike:2:
* PATH_INFO support for Roxen. * * Henrik Grubbström 1998-10-01 */ #include <module.h> #include <stat.h> inherit "module";
-
constant cvs_version = "$Id: pathinfo.pike,v 1.
8
1999
/
12
/
28
03
:
46
:
41
nilsson Exp $";
+
constant cvs_version = "$Id: pathinfo.pike,v 1.
9
2000
/
02
/
10
06
:
44
:
08
nilsson Exp $";
constant thread_safe = 1; // #define PATHINFO_DEBUG #ifdef PATHINFO_DEBUG # define PATHINFO_WERR(X) werror("PATHINFO: "+X+"\n"); #else # define PATHINFO_WERR(X) #endif
-
array
register_
module
()
-
{
-
return ({
MODULE_LAST
,
"PATH_INFO support"
,
-
"Support for PATH_INFO style URLs."
,
-
0, 1 })
;
-
}
+
constant
module
_
type
=
MODULE_LAST
;
+
constant
module_name =
"PATH_INFO support"
;
+
constant
module_doc
=
"Support for PATH_INFO style URLs.";
mapping|int last_resort(object id) { PATHINFO_WERR(sprintf("Checking %O...", id->not_query)); if (id->misc->path_info) { // Already been here... PATHINFO_WERR(sprintf("Been here, done that.")); return 0; }