Auto login script help
Hey all,
I'm working with this program called Form Tools (formtools.org) and am trying to configure an auto-login script. If anyone has used the program before, it requires you to log in before doing anything -- including as a user.
I picked up a simple script off their forums, but it's not working, and there's little activity over there.
<?php
session_start();
header("Cache-control: private");
require("global/library.php");
$_POST["username"] = $_GET["username"];
$_POST["password"] = $_GET["password"];
login();
?>That's the code... then the link is just:
http://MYURL/form_tools/auto_login.php?username=guest&password=guest
But... the error is:
Quote: Fatal error: Call to undefined function: login() in /home/MYUSER/public_html/form_tools/auto_login.php on line 11
I've searched the files for the login() function ... but can't find it.
If anyone has any idea, I'd appreciate it. Thanks.