use Friendica\App;
use Friendica\BaseObject;
+use Friendica\Core\Config;
use Friendica\Util\ExAuth;
if (sizeof($_SERVER["argv"]) == 0) {
dba::connect($db_host, $db_user, $db_pass, $db_data);
unset($db_host, $db_user, $db_pass, $db_data);
+Config::load();
+
$oAuth = new ExAuth();
$oAuth->readStdin();
dba::connect($db_host, $db_user, $db_pass, $db_data);
unset($db_host, $db_user, $db_pass, $db_data);
+Config::load();
+
if ($_SERVER["argc"] == 2) {
switch ($_SERVER["argv"][1]) {
case "dryrun":
$a = new App(dirname(__DIR__));
BaseObject::setApp($a);
-if (x($a->config, 'php_path')) {
- $phpath = $a->config['php_path'];
-} else {
- $phpath = 'php';
-}
+@include '.htconfig.php';
+
+$phpath = $a->getConfigValue('config', 'php_path', 'php');
echo 'Directory: src' . PHP_EOL;
$Iterator = new RecursiveDirectoryIterator('src');