login file? It isn't as simple at that, here's my class core and index.Open the login file, change sha1 to MD5
<?php
class LightCore {
public function getServerStat($var) {
global $db, $core;
$this->query = "SELECT `" . $var . "` FROM `server_status`";
if($this->result = $db->query($this->query)) {
while($this->data = $this->result->fetch_row()) {
$this->return = $this->data[0];
return $this->return;
}
}
else {
$db->databaseError($db->error);
}
}
}
?>
<?php
require_once "required.php";
if(!isset($_GET["novote"]) && $light->thehabbos_enabled) {
$vote_uri = str_replace('/', '!', WWW);
header ("Location: http://votingapi.com/vote.php?username=" . $light->thehabbos_username . "&api=" . $vote_uri . "!?novote");
}
$tpl->assign('loginError', null);
$tpl->assign('title', 'Welcome to the best Retro on the web');
if ($users->isLogged()) {
header ("Location: /me");
}
if (isset($_POST["credentials_username"]) && isset($_POST["credentials_password"])) {
$u = $db->real_escape_string($_POST["credentials_username"]);
$p = $users->userHash($_POST["credentials_password"], $u);
if ($users->validCredentials($u, $p)) {
$_SESSION["Username"] = $users->userVar($u, 'username');
$_SESSION["HashedPassword"] = $p;
header ("Location: " . WWW . "/me");
}
else {
$tpl->assign('LoginError', 'Invalid username or password.');
}
}
// Initialize HTML Output
$tpl->draw('index-top');
$tpl->draw('index');
$tpl->draw('footer');
?>