87e926 | 2001-06-22 | Martin Nilsson | |
|
587711 | 2001-08-09 | Fredrik Noring | |
|
87e926 | 2001-06-22 | Martin Nilsson | |
|
e1d715 | 2000-11-24 | Johan Schön | |
|
df57a2 | 2001-01-02 | Johan Schön | | constant contenttypes = ({ });
|
e1d715 | 2000-11-24 | Johan Schön | |
|
587711 | 2001-08-09 | Fredrik Noring | | constant tmp_filename = Search.TmpFile.tmp_filename;
|
3384f5 | 2001-08-09 | Fredrik Noring | |
|
28d6b8 | 2001-08-08 | Martin Nilsson | |
|
300e4c | 2001-05-17 | Johan Schön | | class Output
{
|
28d6b8 | 2001-08-08 | Martin Nilsson | |
|
300e4c | 2001-05-17 | Johan Schön | | mapping(string:string) fields=([]);
|
8c5dc6 | 2001-08-01 | Johan Schön | |
|
feb96a | 2001-05-31 | Johan Schön | |
|
28d6b8 | 2001-08-08 | Martin Nilsson | |
|
feb96a | 2001-05-31 | Johan Schön | | int document_size;
|
28d6b8 | 2001-08-08 | Martin Nilsson | |
|
300e4c | 2001-05-17 | Johan Schön | | mapping(string:string) uri_anchors=([]);
|
28d6b8 | 2001-08-08 | Martin Nilsson | |
|
300e4c | 2001-05-17 | Johan Schön | | array(Standards.URI|string) links=({});
|
28d6b8 | 2001-08-08 | Martin Nilsson | |
|
300e4c | 2001-05-17 | Johan Schön | | void fix_relative_links(Standards.URI base_uri)
{
for(int i=0; i<sizeof(links); i++)
|
34df36 | 2001-05-29 | Johan Schön | | {
|
300e4c | 2001-05-17 | Johan Schön | | links[i]=Standards.URI(links[i], base_uri);
|
34df36 | 2001-05-29 | Johan Schön | | if(links[i]->fragment)
links[i]->fragment=0;
}
|
300e4c | 2001-05-17 | Johan Schön | | }
}
|
28d6b8 | 2001-08-08 | Martin Nilsson | |
|
300e4c | 2001-05-17 | Johan Schön | | Output filter(Standards.URI uri, string|Stdio.File data,
|
e262e5 | 2001-06-05 | Per Hedbor | | string content_type, mixed ... more);
|
32e8b5 | 2001-06-28 | Johan Schön | |
|
94b610 | 2001-08-08 | Fredrik Noring | | string my_popen(array(string) args)
{
Stdio.File pipe0 = Stdio.File();
Stdio.File pipe1 = pipe0->pipe(Stdio.PROP_IPC);
if(!pipe1)
if(!pipe1) error("my_popen failed (couldn't create pipe).\n");
Process.create_process(args, ([ "env":getenv(), "stdout":pipe1 ]));
pipe1->close();
string result = pipe0->read();
if(!result)
error("my_popen failed with error "+pipe0->errno()+".\n");
pipe0->close();
return result;
|
32e8b5 | 2001-06-28 | Johan Schön | | }
|