<?php
function getLogin_content( ){
$content = <<<'EOD'
<div class="section_header" >Login</div>
<div class="content_section_text" style="min-height: 350px;" >
<div class="two-col-panel">
<div>Login Name</div>
<div><input id="login_name" type="text" $login_name_value ></div>
<div>Password</div>
<div><input id="login_pwd" type="password" ></div>
<div></div>
<div>
<button class="btn_exec" onclick="btn_clk_nav(this, 'btn_login')" >Login</button>
</div>
</div>
</div>
EOD;
//$content = str_replace('$header_cont', $header_cont, $content);
return $content;
}
function authenticate( $username, $hashed_pwd_client, $svr_nonce ){
//TODO:
// get the username and password from somewhere.
$hashed_pwd_correct = hash('sha256', 'biggles'.$svr_nonce );
return $hashed_pwd_correct == $hashed_pwd_client;
}
?>