diff --git a/addhost.php b/addhost.php index de9a46e1f..d57089186 100755 --- a/addhost.php +++ b/addhost.php @@ -12,6 +12,8 @@ * See COPYING for more details. */ +chdir(dirname($argv[0])); + include("includes/defaults.inc.php"); include("config.php"); include("includes/functions.php"); diff --git a/adduser.php b/adduser.php index 34ea943c7..23257cc96 100755 --- a/adduser.php +++ b/adduser.php @@ -1,6 +1,8 @@ #!/usr/bin/env php