r4255 move "gateways" part of the path to racktables_gwdir variable
authorDenis Ovsienko <infrastation@yandex.ru>
Thu, 24 Feb 2011 12:20:51 +0000 (12:20 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Thu, 24 Feb 2011 12:20:51 +0000 (12:20 +0000)
wwwroot/inc/gateways.php
wwwroot/inc/init.php

index 1a7a568f3faa8a0b7f97d5682a2246bdd0c7a288..72ed8bd3269934cded6158d8626ec783036e4202 100644 (file)
@@ -74,7 +74,7 @@ $gwpushxlator = array
 function queryGateway ($gwname, $questions)
 {
        global $racktables_gwdir;
-       $execpath = "${racktables_gwdir}/gateways/{$gwname}/main";
+       $execpath = "${racktables_gwdir}/{$gwname}/main";
        $dspec = array
        (
                0 => array ("pipe", "r"),
index d9a3b6abf61fc382843c99ccc1b94d6c70523f7c..5c0ec2032f2b396108912b21547d55864850963d 100644 (file)
@@ -17,7 +17,7 @@ require_once 'database.php';
 // care to set, something would be working anyway.
 $user_auth_src = 'database';
 $require_local_account = TRUE;
-$racktables_gwdir = '..';
+$racktables_gwdir = '../gateways';
 
 // (re)connects to DB, stores PDO object in $dbxlink global var
 function connectDB()