For those getting the header errors:
Go into your ftp.php file and add a double slash (//) to lines 128-132 (they start with header), 149, 150, 154, 155 (these start with cookie), and 157 (starts with header.)
Here's a better view of what to change, if you've changed how the lines are:
PHP Code:
//header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Headers
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
And
PHP Code:
if ($cookie_username == $username && md5($cookie_password) == md5($password)) // Create cookie on login
{
if ($auto_login)
{
setcookie("cookie_username", $username, time()+31536000);
setcookie("cookie_password", md5($cookie_password), time()+31536000);
}
else
{
setcookie("cookie_username", $username);
setcookie("cookie_password", md5($cookie_password));
}
header("Location: $PHP_SELF");
}
That entire thing should change to the following (same thing, but with the double-slash (comment code)):
PHP Code:
//header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Headers
//header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
//header("Cache-Control: no-store, no-cache, must-revalidate");
//header("Cache-Control: post-check=0, pre-check=0", false);
//header("Pragma: no-cache");
And
PHP Code:
if ($cookie_username == $username && md5($cookie_password) == md5($password)) // Create cookie on login
{
if ($auto_login)
{
//setcookie("cookie_username", $username, time()+31536000);
//setcookie("cookie_password", md5($cookie_password), time()+31536000);
}
else
{
//setcookie("cookie_username", $username);
//setcookie("cookie_password", md5($cookie_password));
}
//header("Location: $PHP_SELF");
}
respectively.
In fact, you might be able to comment out that entire if statement, but I'm just removing lines as they're called.
I'm no guru in PHP (working on that), but after doing that the error messages went away, and the hack still worked fine for me. I wouldn't mind seeing a fix by someone who really know it, or Erwin himself.
Oh, and I'm also having problems with making a login name work, but no clue how to fix that.