Thanks so much for your responnse Andy.
My form post to the / of my website to have an access to my global auth function.
FORM --> / --> ( WebSite/Forum/Wiki/ ...... )
This is my function :
// if i receive my two values after an post
if( (isset($_POST['req_username'])) && (isset($_POST['req_password'])) )
{
$login = trim($_POST['req_username']);
$password = trim($_POST['req_password']);
// auth me to punbb
define ('PUN_ROOT', $_SERVER['DOCUMENT_ROOT'].'forum/');
include_once(PUN_ROOT.'include/fluxbb.user.class.php');
$user = new FluxBBUser();
if (! $user->login($login, $password))
{
$error = $user->getError();
// if error, register (just to the dev, after, the register will be take offof this part
if (! $user->register($login, $password, $email))
{
$error = $user->getError();
}
}
// to auth me to the forum
define ('DOKU_INC', $_SERVER['DOCUMENT_ROOT'].'wiki/');
include_once($_SERVER['DOCUMENT_ROOT'].'/wiki/conf/dokuwiki.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/wiki/inc/init.php');
include_once($_SERVER['DOCUMENT_ROOT'].'/wiki/inc/auth.php');
auth_login($login, $password);
// redirect me to the current location before post
header('location: '.$_POST['redirect_url']);
So, i can't post my form to doku.php because DokuWiki isn't in my website, it's just a folder.
And my session name are different, between website, forum and i think too about DokuWiki.
After, i will remove button logon, logoff function to manage the wiki with my website.
My website (and the wiki) :
http://www3.franceserv.fr/wiki/
If i use mysql auth backend, how the wiki will know an authentification with my function please ?