hey guys my hosting company recently upgraded to version 4.3.10 without asking 😉 unfortunately my script has not worked since then and i have not been able to figure it out yet.
my script allows you to signin and upload download and leave comments to a gallery. at least it used to... now i cant sign in.
now i am a noob when it comes to php as a matter of fact this script was broken before i got to it. i just happened to fix it and play around with it. so i dont really know my *** from a hole in the ground. anyways since i can't log in i figure there is something in that code that is "broken" for the logon script so i will just copy that and if you need anything else like the whole code let me know.
/// Convert any external variables into internal ones
/// (avoids warnings on secure installations)
$admin = isset($HTTP_GET_VARS["admin"]) ? $HTTP_GET_VARS["admin"] : "";
if (! $admin) {
$admin = isset($HTTP_POST_VARS["admin"]) ? $HTTP_POST_VARS["admin"] : "";
/// Individual pages are created here ///
if ($admin) {
if (isadmin()) {
$intro = "true";
} else if ($admin == $password) {
setCookie ("pfcookie", md5($admin), time()+ 60*60*24*29, "/");
$pfcookie = md5($admin);
$intro = "true";
} else {
PrintHeader("Administrator Login");
echo "<CENTER>";
echo "<P> </P>";
echo "<FORM METHOD=POST ACTION=\"$scriptname\">";
echo "Admin Password: <INPUT NAME=admin TYPE=password SIZE=20>";
echo "<INPUT TYPE=submit VALUE=\"Enter\">";
echo "</FORM>";
exit;
}
}
if ($logout) {
if (isadmin()) {
$seconds = 60*60*24*354;
setCookie ('pfcookie', "", time() - 60*60*24*29, "/");
$pfcookie = NULL;
}
$intro = "true";
}
let me know if you need anything else THANK YOU![