Topic: validating the wiki part on mini-portal
mark here is the right code for who online?
//
// Generate the whos online block
//
function generate_whosonline()
{
global $pun_config, $lang_common, $pun_user, $db;
if ($pun_user['is_guest'])
{
if (basename($_SERVER['PHP_SELF']) == 'login.php')
{
$loginid = 'login0';
}
else
{
$loginid = 'login';
}
require PUN_ROOT.'lang/'.$pun_user['language'].'/login.php';
return 'Welcome Guest!<br />
Please login.<br />
<form id="'.$loginid.'" method="post" action="login.php?action=in"
onsubmit="return process_form(this)">
<div>
<input type="hidden" name="form_sent" value="1" />
<input type="hidden" name="redirect_url" value="index.php" />
<label><strong>Username</strong><br /><input type="text" name="req_username" size="13" maxlength="25" tabindex="1" /><br /></label>
<label><strong>Password</strong><br /><input type="password" name="req_password" size="13" maxlength="16" tabindex="2" /><br /></label>
<p><a href="register.php" tabindex="4">'.$lang_login['Not registered'].'</a><br />
<a href="login.php?action=forget" tabindex="5">'.$lang_login['Forgotten pass'].'</a></p>
<p><input type="submit" name="login" value="Login" tabindex="3" /></p>
</div></form>';
Don't be stupid and help ! We are the stupid one's !!!