Roxen.git/
server/
modules/
tags/
sizer.pike
Branch:
Tag:
Non-build tags
All tags
No tags
2001-03-06
2001-03-06 14:05:31 by Johan Sundström <oyasumi@gmail.com>
4694458fba52cc3d26c0cfae2817b01ea876647c (
8
lines) (+
5
/-
3
)
[
Show
|
Annotate
]
Branch:
5.2
Works with any InternalLoc.
Rev: server/modules/tags/sizer.pike:1.12
1:
constant thread_safe=1;
-
constant cvs_version = "$Id: sizer.pike,v 1.
11
2001/03/06 14:
00
:
14
jhs Exp $";
+
constant cvs_version = "$Id: sizer.pike,v 1.
12
2001/03/06 14:
05
:
31
jhs Exp $";
#include <module.h> inherit "module";
220:
string d = dirname( page ); if( strlen(f) > 4 && (f[1] == '_') ) {
-
if(
sscanf(
f
, "
/_
%
*s/cimg%*[^/]/%s
",
f
)
== 3 )
+
string
internal = replace
(
id->conf->query("InternalLoc"),
"%"
, "%%")
;
-
+
if( sscanf( f, internal + "cimg%*[^/]/%s", f ) == 2 )
{ if( mapping ar = roxen.argcache->lookup( f ) ) {
236:
return "Cimg from data"+sz; } }
-
else if(sscanf( f, "
/_%*s/
graphic_text%*[^$]$%s", f ) ==
3
)
+
else if(sscanf( f,
internal +
"graphic_text%*[^$]$%s", f ) ==
2
)
{ mapping ar = roxen.argcache->lookup( f ); if( ar[""] ) return "Gtext (\""+ar[""]+"\")";