Hi,
after joining a user did not change my approach.
I have outsourced the login procedure to the CMS and combined it into one function:
PHP Code:
function do_login_vb(){
$vbpath = '/var/www/die_seite2_de/forum';
define('CSRF_PROTECTION', false);
require_once($vbpath . '/includes/vb5/autoloader.php');
vB5_Autoloader::register($vbpath);
// Script is only executed up to this point!
vB5_Frontend_Application::init('config.php');
// Attempting to include the config file, but unfortunately they only issue an error message
#vB5_Frontend_Application::init('/var/www/die_seite2_de/forum/config.php');
#vB5_Frontend_Application::init('/var/www/die_seite2_de/forum/core/includes/config.php');
$username = 'xxxxxxx';
$password = 'xxxxxxx';
$api = Api_InterfaceAbstract::instance();
$loginInfo = $api->callApi('user', 'login', array($username, $password));
// Only one test edition
echo "<pre>loginInfo: " .print_r( $loginInfo, true ). "</pre><hr>";
}
When you call the forum that is integrated in the CMS, the following message is displayed:
Quote:
Couldn't read config file config.php.
|
Anyone any idea how I can fix the message?
Or what is the cause?
Thank you in advance.