<?
/* This part is for command operations only, usualy you should not touch it */
setlocale(LC_ALL, 'de_CH.UTF8');
header('Content-Type: text/html; charset=utf-8');
$debugMode = 1;
ini_set('max_execution_time',36000000);
if($debugMode==1):
error_reporting(E_ALL);
ini_set("display_errors", 1);
else:
error_reporting (E_ALL ^ E_NOTICE);
ini_set("display_errors", 0);
endif;
define("LINE_BREAK", "\n\n<br/>");
$argsNum = count($_SERVER['argv']);
if($argsNum>1):
$wikisArray[0]['xmlSource'] = $_SERVER['argv'][1];
$wikisArray[0]['indexName'] = $_SERVER['argv'][2];
$wikisArray[0]['maintenanceScript'] = $_SERVER['argv'][3];
if(isset($_SERVER['argv'][4])):
$GuiFlag = $_SERVER['argv'][4];
else:
$GuiFlag = 0;
endif;
if(isset($_SERVER['argv'][5])):
$wikisArray[0]['incrementUpdate']= (int)$_SERVER['argv'][5];
else:
$wikisArray[0]['incrementUpdate']= 0;
endif;
if(isset($_SERVER['argv'][6])):
$wikisArray[0]['useFiles'] = $_SERVER['argv'][6];
else:
$wikisArray[0]['useFiles'] = "";
endif;
if(isset($_SERVER['argv'][7])):
$wikisArray[0]['mediaDir'] = $_SERVER['argv'][7];
else:
$wikisArray[0]['mediaDir'] = "";
endif;
else:
/* This part is for you! Configure multiple Wiki-instances if needed, see examples below */
$GuiFlag = 0;
$wikisArray[0]['xmlSource'] = "/var/www/zend/sources/internal_current.xml";
$wikisArray[0]['indexName'] = "my_wiki";
$wikisArray[0]['maintenanceScript'] = "/var/www/mediawiki-1.20.4/maintenance/dumpBackup.php";
$wikisArray[0]['mediaDir'] = "/var/www/mediawiki-1.20.4/images/";
endif;
@preg_match_all("/(Windows)(.*?)/", $_SERVER['OS'], $matched, PREG_SET_ORDER);
/* an index dir above web root */
$indexDirName = "my_wiki";
$PhpExecutionStringUnix = "/usr/bin/php -c /etc/php.ini";
$PhpExecutionStringWindows = "c:\\xampp\\php\\php.exe ";
$email = "";
/* file formats which will be indexed */
$additionalFileFormatsArray = array('pdf','docx','xlsx','pptx','sql','vnd','txt','xml','xmlx','csv');
if(count($matched) > 0 ):
/* modify this to fit your needs, if you are on windows */
$webServerUser = "";
$webServerUserGroup = "";
$zendFrameworkLibraryPath = "C:\\xampp\\htdocs/ZF/library";
$zendLogPath = "C:\\xampp\\htdocs\\".$indexDirName."\\";
$applicationPath = "C:\\xampp\\htdocs";
else:
/* modify this to fit your needs, if you are on unix */
$webServerUser = "apache";
$webServerUserGroup = "apache";
$zendFrameworkLibraryPath = "/var/www/zend/ZendFramework-1.11.15/library";
$zendLogPath = "/var/www/zend/".$indexDirName."/";
$applicationPath = "/var/www/zend/";
endif;
?>