In CLI mode, do not depend on the current directory: the script can be run from anywhere.

SVN:trunk[1414]
This commit is contained in:
Denis Flaven
2011-08-01 16:13:37 +00:00
parent d09db3a920
commit 781ec7e33a
2 changed files with 5 additions and 3 deletions

View File

@@ -28,12 +28,13 @@
// - reconciliation is made on the first column
//
// Known issues
// - ALMOST impossible to troubleshoot when an externl key has a wrong value
// - ALMOST impossible to troubleshoot when an external key has a wrong value
// - no character escaping in the xml output (yes !?!?!)
// - not outputing xml when a wrong input is given (class, attribute names)
//
require_once('../approot.inc.php');
if (!defined('__DIR__')) define('__DIR__', dirname(__FILE__));
require_once(__DIR__.'/../approot.inc.php');
require_once(APPROOT.'/application/application.inc.php');
require_once(APPROOT.'/application/webpage.class.inc.php');
require_once(APPROOT.'/application/csvpage.class.inc.php');