Jack van Rock wrote:
Hello,
I want to write a script which automatically logs the user in the wiki.
The reason why I want to
write such a script is that the wiki becomes a part of the big website
which has an own internal
area for the users. Both sytsems are sepereated. But I want the user to
log in only one time. So
I need this script.
I have the right username and the right password. That is why checking
of the username and password
is not nessecary.
This is my attempt of the script. But it doens't work:
<?php
$_GET['action'] = "login";
$_GET['lgname'] = "Admin";
$_GET['lgpassword'] = "Admin";
require_once("api.php");
?>
Maybe it helps you to understand what I want to have.
Thanks in advance!
Jack
Don't use that methods. Use an auth plugin.