Project

General

Profile

Bug #18520 » indexed_search_7969_t3_43-44.patch

Administrator Admin, 2011-01-18 13:57

View differences:

indexed_search/class.external_parser.php 2010-04-09 15:27:01.000000000 +0200
// PDF
if ($indexerConfig['pdftools']) {
$pdfPath = rtrim($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 = rtrim($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(sprintf($this->sL('LLL:EXT:indexed_search/locallang.xml:catdocNotFound'), $catdocPath), 3);
......
// ppthtml
if ($indexerConfig['ppthtml']) {
$ppthtmlPath = rtrim($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(sprintf($this->sL('LLL:EXT:indexed_search/locallang.xml:ppthtmlNotFound'), $ppthtmlPath), 3);
......
// Xlhtml
if ($indexerConfig['xlhtml']) {
$xlhtmlPath = rtrim($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(sprintf($this->sL('LLL:EXT:indexed_search/locallang.xml:xlhtmlNotFound'), $xlhtmlPath), 3);
......
case 'odt': // Oasis OpenDocument Text
if ($indexerConfig['unzip']) {
$unzipPath = rtrim($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(sprintf($this->sL('LLL:EXT:indexed_search/locallang.xml:unzipNotFound'), $unzipPath), 3);
} else $this->pObj->log_setTSlogMessage($this->sL('LLL:EXT:indexed_search/locallang.xml:unzipDisabled'), 1);
break;
case 'rtf':
// Catdoc
// unrtf
if ($indexerConfig['unrtf']) {
$unrtfPath = rtrim($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(sprintf($this->sL('LLL:EXT:indexed_search/locallang.xml:unrtfNotFound'), $unrtfPath), 3);
(5-5/7)