Re: Simplesamlphp plugin for fudforum |
Thu, 28 August 2014 13:43 |
|
Hi,
If use:
..
$user_id = external_get_user_by_auth($emailsimple, 'pass');
$ses_id = external_fud_login($user_id);
external_fud_status('Busy doing laundry...');
I have the error.
If I use to login use:
$forum_id = get_id_by_email($emailsimple)
return usr_reg_get_full($forum_id);
(as openid plugin) it works. So for me it's OK.
|
|
Re: Simplesamlphp plugin for fudforum |
Tue, 26 August 2014 18:32 |
|
Hi naudefj thanks for your reply. Yes the problem is name conflict.
But db_close is not defined in simplesamlphp. Is defined in fudforum/index.php and in FUDforum/include/theme/default/db.inc
db.inc is required by forum_login.php
This file are fudforum file that I have not modify.
$GLOBALS['DBHOST_DBTYPE'] = 'pdo_mysql';
I'll try to modify db.inc and forum_login.php using a namespace.
|
|
Re: Simplesamlphp plugin for fudforum |
Tue, 26 August 2014 12:43 |
|
Sounds like a function name conflict. Both FUDforum and simplesamlphp have a DB_CLOSE().
You'll have to rename one of them or implement namespaces.
|
|
Simplesamlphp plugin for fudforum |
Mon, 11 August 2014 16:30 |
|
Hi,
I write a plugin for login in fudforum by simplesamlphp.
In my code I have:
....
$user_id=external_get_user_by_auth($emailsimple,$password);
$ses_id = external_fud_login($user_id);
as I read in a link. (Sorry if I don't write the link, but I cannot post the link)
and can't work.
In apache log I have the error:
[Mon Aug 11 02:14:36 2014] [error] [client IP] PHP Fatal error: Cannot redeclare db_close() (previously declared in /var/www/html/fudforum/index.php:29) in /var/www/FUDforum/include/theme/default/db.inc on line 18, referer: (address of my fudforum install)
How can I fix this problem? I install as fudforum:
FUDforum_3.0.5
Regards
Antonio
|
|