É óbvio que nunca vai funcionar!
Experimenta por o login.php assim (se não surtir o efeito que querias experimenta com o update como te disseram, não li o tópico todo):
<?php
include_once("config.php");
checkLoggedIn("no");
$title="Konica Minolta - OPS COACH 2012";
if(isset($_POST["submit"])) {
field_validator("password", $_POST["password"], "string", 4, 15);
if($messages){
doIndex();
exit;
}
if( !($row = checkPass($_POST["password"])) ) {
$messages[]="Por favor, tente inserir novamente.";
}
if($messages){
doIndex();
exit;
}
$visita=date("Y-m-d H:i:s");
$query="INSERT INTO ops_users ($password->lastvisitDate) VALUES('$visita')";
cleanMemberSession($row["password"]);
header("Location: index2.php");
} else {
doIndex();
}
function doIndex() {
global $messages;
global $title;
?>
<html>
<head>
<title><?php print $title; ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
input.redondo {
border: 2px solid #2a34d9;
-moz-border-radius: 10px;
-webkit-border-radius: 10px;
border-radius: 10px;
-moz-box-shadow: 2px 2px 3px #666;
-webkit-box-shadow: 2px 2px 3px #666;
box-shadow: 2px 2px 3px #666;
font-size: 15px;
padding: 4px 7px;
outline: 0;
-webkit-appearance: none;
background:#005497;
color:#FFF;
}
input.redondo:focus { border-color: #005497; }
input.redondo:hover { background:#005497; }
input.redondo:active { background:#005497; }
body {
/* IE10 Consumer Preview */
background-image: -ms-radial-gradient(center, circle closest-corner, #FFFFFF 0%, #E3E3E3 100%);
/* Mozilla Firefox */
background-image: -moz-radial-gradient(center, circle closest-corner, #FFFFFF 0%, #E3E3E3 100%);
/* Opera */
background-image: -o-radial-gradient(center, circle closest-corner, #FFFFFF 0%, #E3E3E3 100%);
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(radial, center center, 0, center center, 506, color-stop(0, #FFFFFF), color-stop(1, #E3E3E3));
/* Webkit (Chrome 11+) */
background-image: -webkit-radial-gradient(center, circle closest-corner, #FFFFFF 0%, #E3E3E3 100%);
/* W3C Markup, IE10 Release Preview */
background-image: radial-gradient(circle closest-corner at center, #FFFFFF 0%, #E3E3E3 100%);
font-family: "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}
.imgtopo {
margin-left:28.5%;
}
.imginput {
margin-left:28.5%;
}
</style>
</head>
<?php doCSS(); ?>
<body>
<div class="imgtopo">
<img src="logo_fundo_topo.png" />
</div>
<div class="imginput">
<img src="logo_fundo_baixo.png" align="left" />
<b>CÓDIGO:</b>
<form action="<?php print $_SERVER["PHP_SELF"]; ?>" method="POST">
<input type="password" name="password" class="redondo" maxlength="10">
<input name="submit" type="submit" value=">">
</form>
</div>
<center><?php
if($messages) { displayErrors($messages); }
?></center>
</body>
</html>
<?php
}
?>