checkid()) { $error = $err->errstr(); include("index.php"); exit(); } $mem->resetlast(); header("Location: main.php"); exit; ?>