Hey,
Since this is my first post here, I'd like to say hello
I'm a complete noob in the php world, but I have to set up a database and some config files to make an experiment working.
My config file is for configuring the login and pass for my server, database and the GUI login panel.
This is the config file
This is the part of the index.php for the login panel
I did not write this myself, I got it from the net. Everything seems to work fine except the login.
I tried to change the md5 pass to a non encrypted password, but this failed misserably.
EDIT: I got no error messages.
Can someone help me out?
thx
Since this is my first post here, I'd like to say hello
I'm a complete noob in the php world, but I have to set up a database and some config files to make an experiment working.
My config file is for configuring the login and pass for my server, database and the GUI login panel.
This is the config file
PHP:
//$sHost should be the MYSQL host of the database, by default localhost
$sHost = "localhost";
//$sUser should be the user of the database
$sUser = "root";
//$sPass should be the password of the database user supplied before
$sPass = "root";
//$sDatabase should be the database name where the tables should be installed in
$sDatabase = "database_name";
//$sPanelUsername should be the username you want to login to the panel
$sPanelUsername = "Panel_Username";
//$sPanelPassword should be the password you want to login to the panel
$sPanelPassword = "PanelPass"; //MD5(Password)
This is the part of the index.php for the login panel
PHP:
//LOGIN
if (isset($_GET['login'])) {
if (isset($_POST["password"])) {
if ((md5($_POST["password"]) == $sPanelPassword) && ($_POST["username"] == $sPanelUsername)) {
$_SESSION["password"] = $sPanelPassword;
$_SESSION["username"] = $sPanelUsername;
//Logged in, Proceed..
header('Location: ?stats');
}
}
Print file_get_contents("inc/login.html");
exit;
}
I did not write this myself, I got it from the net. Everything seems to work fine except the login.
I tried to change the md5 pass to a non encrypted password, but this failed misserably.
EDIT: I got no error messages.
Can someone help me out?
thx
Last edited: