Bug #18520 » indexed_search_7969_t3_42.patch
indexed_search/class.external_parser.php 2010-10-06 12:26:28.000000000 +0200 | ||
---|---|---|
// PDF
|
||
if ($indexerConfig['pdftools']) {
|
||
$pdfPath = ereg_replace("\/$",'',$indexerConfig['pdftools']).'/';
|
||
if (ini_get('safe_mode') || (@is_file($pdfPath.'pdftotext'.$exe) && @is_file($pdfPath.'pdfinfo'.$exe))) {
|
||
if (ini_get('safe_mode') || ini_get('open_basedir') || (@is_file($pdfPath.'pdftotext'.$exe) && @is_file($pdfPath.'pdfinfo'.$exe))) {
|
||
$this->app['pdfinfo'] = $pdfPath.'pdfinfo'.$exe;
|
||
$this->app['pdftotext'] = $pdfPath.'pdftotext'.$exe;
|
||
// PDF mode:
|
||
... | ... | |
// Catdoc
|
||
if ($indexerConfig['catdoc']) {
|
||
$catdocPath = ereg_replace("\/$",'',$indexerConfig['catdoc']).'/';
|
||
if (ini_get('safe_mode') || @is_file($catdocPath.'catdoc'.$exe)) {
|
||
if (ini_get('safe_mode') || ini_get('open_basedir') || @is_file($catdocPath.'catdoc'.$exe)) {
|
||
$this->app['catdoc'] = $catdocPath.'catdoc'.$exe;
|
||
$extOK = TRUE;
|
||
} else $this->pObj->log_setTSlogMessage("'catdoc' tool for reading Word-files was not found in path '".$catdocPath."catdoc'",3);
|
||
... | ... | |
// ppthtml
|
||
if ($indexerConfig['ppthtml']) {
|
||
$ppthtmlPath = ereg_replace('\/$','',$indexerConfig['ppthtml']).'/';
|
||
if (ini_get('safe_mode') || @is_file($ppthtmlPath.'ppthtml'.$exe)){
|
||
if (ini_get('safe_mode') || ini_get('open_basedir') || @is_file($ppthtmlPath.'ppthtml'.$exe)){
|
||
$this->app['ppthtml'] = $ppthtmlPath.'ppthtml'.$exe;
|
||
$extOK = TRUE;
|
||
} else $this->pObj->log_setTSlogMessage("'ppthtml' tool for reading Powerpoint-files was not found in path '".$ppthtmlPath."ppthtml'",3);
|
||
... | ... | |
// Xlhtml
|
||
if ($indexerConfig['xlhtml']) {
|
||
$xlhtmlPath = ereg_replace('\/$','',$indexerConfig['xlhtml']).'/';
|
||
if (ini_get('safe_mode') || @is_file($xlhtmlPath.'xlhtml'.$exe)){
|
||
if (ini_get('safe_mode') || ini_get('open_basedir') || @is_file($xlhtmlPath.'xlhtml'.$exe)){
|
||
$this->app['xlhtml'] = $xlhtmlPath.'xlhtml'.$exe;
|
||
$extOK = TRUE;
|
||
} else $this->pObj->log_setTSlogMessage("'xlhtml' tool for reading Excel-files was not found in path '".$xlhtmlPath."xlhtml'",3);
|
||
... | ... | |
case 'odt': // Oasis OpenDocument Text
|
||
if ($indexerConfig['unzip']) {
|
||
$unzipPath = preg_replace('/\/$/','',$indexerConfig['unzip']).'/';
|
||
if (ini_get('safe_mode') || @is_file($unzipPath.'unzip'.$exe)) {
|
||
if (ini_get('safe_mode') || ini_get('open_basedir') || @is_file($unzipPath.'unzip'.$exe)) {
|
||
$this->app['unzip'] = $unzipPath.'unzip'.$exe;
|
||
$extOK = TRUE;
|
||
} else $this->pObj->log_setTSlogMessage("'unzip' tool for reading OpenOffice.org-files was not found in path '".$unzipPath."unzip'",3);
|
||
... | ... | |
// Catdoc
|
||
if ($indexerConfig['unrtf']) {
|
||
$unrtfPath = ereg_replace("\/$",'',$indexerConfig['unrtf']).'/';
|
||
if (ini_get('safe_mode') || @is_file($unrtfPath.'unrtf'.$exe)) {
|
||
if (ini_get('safe_mode') || ini_get('open_basedir') || @is_file($unrtfPath.'unrtf'.$exe)) {
|
||
$this->app['unrtf'] = $unrtfPath.'unrtf'.$exe;
|
||
$extOK = TRUE;
|
||
} else $this->pObj->log_setTSlogMessage("'unrtf' tool for reading RTF-files was not found in path '".$unrtfPath."unrtf'",3);
|