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>';
My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

Re: validating the wiki part on mini-portal

You're missing at least two closing }s that I see.

Re: validating the wiki part on mini-portal

i  know i was posting apart of the code  for mark..lol..
but i will post the complete code so that people can correct there portal...lol


Q

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!

4

Re: validating the wiki part on mini-portal

for me?
it aint my mod hmm

Re: validating the wiki part on mini-portal

lmao>>

My stuff or my style might sux, but atleast I'm willing to help when I can.
Don't be stupid and help ! We are the stupid one's !!!