Commit 61453208 authored by Ralf Becker's avatar Ralf Becker

Allow to create own entrypoint / index.php with unmodified z-push sources

If you use composer or upstream git repo as sub-project you cant modify config.php to your needs.
Patch allows to create an own index.php as follows:
<?php
define('ZPUSH_CONFIG', __DIR__.'/config.php');
$_SERVER['SCRIPT_FILENAME'] = realpath(__DIR__.'/../vendor/zarafa/zpush2/index.php');
chdir('../vendor/zarafa/zpush2');
include('../vendor/zarafa/zpush2/src/index.php');
parent 1e51bf35
...@@ -120,7 +120,8 @@ include_once('lib/default/searchprovider.php'); ...@@ -120,7 +120,8 @@ include_once('lib/default/searchprovider.php');
include_once('lib/request/request.php'); include_once('lib/request/request.php');
include_once('lib/request/requestprocessor.php'); include_once('lib/request/requestprocessor.php');
include_once('config.php'); if (!defined('ZPUSH_CONFIG')) define('ZPUSH_CONFIG', 'config.php');
include_once(ZPUSH_CONFIG);
include_once('version.php'); include_once('version.php');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment