Commit 8e9a5fdf authored by nveid's avatar nveid

More Changes/fixes to allow linkfarm setups off a repo.

parent 0ea2a52f
......@@ -28,8 +28,9 @@ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
require('lib/config.inc.php');
require('lib/app.inc.php');
define('SCRIPT_PATH', dirname($_SERVER["SCRIPT_FILENAME"]));
require(SCRIPT_PATH."/lib/config.inc.php");
require(SCRIPT_PATH."/lib/app.inc.php");
set_time_limit(0);
......
......@@ -95,7 +95,7 @@ class remoteaction_core_module {
* stop a service, a admin stopped some days before! To avoid this, we ignore
* the status (it is only for the interface to show) and use our own maxid
*/
include_once (dirname(__FILE__) . "/../lib/remote_action.inc.php");
include_once (SCRIPT_PATH."/lib/remote_action.inc.php");
/*
* Get all actions this server should execute
......@@ -243,4 +243,4 @@ class remoteaction_core_module {
//$this->_actionDone($action['action_id'], 'ok');
}
}
?>
\ No newline at end of file
?>
......@@ -27,11 +27,9 @@
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
// $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");
define('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);
......
File mode changed from 100644 to 100755
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