From 0ea2a52fe228fd482f4cb4ce9440c22b8c37d9da Mon Sep 17 00:00:00 2001 From: nveid <nveid@ispconfig3> Date: Mon, 29 Aug 2011 06:29:57 -0400 Subject: [PATCH] Reference: http://www.howtoforge.com/forums/showthread.php?t=53938 --- server/server.php | 8 +++++--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/server/server.php b/server/server.php index c171d48..967d13a 100644 --- a/server/server.php +++ b/server/server.php @@ -1,5 +1,4 @@ <?php - /* Copyright (c) 2007-2011, Till Brehm, projektfarm Gmbh All rights reserved. @@ -28,8 +27,11 @@ EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -require('lib/config.inc.php'); -require('lib/app.inc.php'); +// $script_path allows development work of using a symbolic link farm +// to use along side git or svn +$script_path = dirname($_SERVER["SCRIPT_FILENAME"]); +require("$script_path/lib/config.inc.php"); +require("$script_path/lib/app.inc.php"); set_time_limit(0); ini_set('error_reporting', E_ALL & ~E_NOTICE); -- Gitblit v1.9.1