11,6 → 11,23 |
*/ |
|
class Theme { |
|
function showSigninForm() { |
global $_SESSION; |
global $auth; |
|
$ID = $auth->getUserID($_SESSION["sign"], $_SESSION["hash"]); |
if ($ID===0) { |
$return = "<div id='yousign'><form action='process.php' method='post'>"; |
$return .= _("Login:")." <input type='text' name='login'> "; |
$return .= _("Password:")." <input type='password' name='passwd'>"; |
$return .= "<input type='submit' value='"._("Enter")."'></form></div>"; |
} else { |
$member = $auth->getUserInfo($ID); |
$return = "<div id='yousign'>".$member["RealName"]." [<a href='exit.php'>"._("Exit")."</a>]</div>"; |
} |
return $return; |
} |
} |
|
?> |