#!/usr/bin/env php
Warning: Undefined variable $path in /home/www/crm/scripts/accountancy/export-thirdpartyaccount.php on line 28

Warning: Undefined property: stdClass::$COMPANY_SHOW_ADDRESS_SELECTLIST in /home/www/crm/htdocs/societe/class/societe.class.php on line 741
Access denied.
You try to access to a page, area or feature of a disabled module or without being in an authenticated session or that is not allowed to your user.

It seems that Dolibarr is not used through an authenticated session. Take a look at Dolibarr setup documentation to know how to manage authentications (htaccess, mod_auth or other...).