pike.git / lib / modules / Search.pmod / Filter.pmod / Word.pmod

version» Context lines:

pike.git/lib/modules/Search.pmod/Filter.pmod/Word.pmod:1:   // This file is part of Roxen Search   // Copyright © 2001 Roxen IS. All rights reserved.   // - // $Id: Word.pmod,v 1.2 2001/07/12 22:50:40 nilsson Exp $ + // $Id: Word.pmod,v 1.3 2001/08/07 12:34:09 js Exp $      // Filter for text/plain      inherit Search.Filter.Base;      constant contenttypes = ({ "application/msword", "application/vnd.ms-word" });   constant fields = ({ "body","title", "keywords"});      Output filter(Standards.URI uri, string|Stdio.File data, string content_type)   {
pike.git/lib/modules/Search.pmod/Filter.pmod/Word.pmod:17:    if(objectp(data))    data=data->read();       string s=Process.popen(sprintf(""));       string fn=tmp_filename();    object f=Stdio.File(fn,"wcb");    f->write(data);    f->close();    -  string text=Process.popen(combine_path(__FILE__, "bin/wvware/wvdump")+" "+fn+" -"); +  string text=Process.popen(combine_path(__FILE__, "../../../../bin/wvdump")+" "+fn+" -");    rm(fn);       string md="", body="";    array a=text/"\n----------";       if(sizeof(a)>1)    {    md=a[0];    body=a[1];    }