I would be ever grateful to get this to work...
Below is the first 21 of 261 lines.
When I go to website/lxadmin.php?admin=password, to access the admin page, I get an
error message. [You must supply your password]
The lxadmin.php should recognize the password value on lxconfig.php and it isn't.
Here is the code on lxconfig.php
//Your password for LX
$password = "1234567";
Here's the code on lxadmin.php
<?php
include 'lxconfig.php';
if($admin)
{
if ($admin != $password)
{
exit("Incorrect password");
}
}
if(!$admin)
{
exit("You must supply your password");
}
if($batchcheck)
{
MYSQL_CONNECT($dbserver,$dbuser,$dbpass) OR DIE("Unable to connect to database");
@mysql_select_db($dbname) or die("Unable to select database");
To test admin.php I deleted the below code and was able to log into lxadmin.php?admin (with no password) but then anyone could because I can't password protect the file in cpanel.
if($admin)
{
if ($admin != $password)
{
exit("Incorrect password");
}
}
if(!$admin)
{
exit("You must supply your password");
Thanks in advance,
Roy