1 (edited by Meilad 2005-10-21 12:33)

Topic: !!***!!!!


Re: !!***!!!!

Well, for recent discussions I refer you to the file extern.php. Open up that file in a text editor and read the usage instructions at the top.

About the login box. It should be to basically just add the HTML code of the login box from the forum. Something like this:

// Try to determine if the data in HTTP_REFERER is valid (if not, we redirect to index.php after login)
$redirect_url = (isset($_SERVER['HTTP_REFERER']) && preg_match('#^'.preg_quote($pun_config['o_base_url']).'/(.*?)\.php#i', $_SERVER['HTTP_REFERER'])) ? $_SERVER['HTTP_REFERER'] : 'index.php';

<form method="post" action="login.php?action=in">
    <input type="hidden" name="form_sent" value="1">
    <input type="hidden" name="redirect_url" value="<?php echo $redirect_url ?>">

    Username: <input type="text" name="req_username" size="25" maxlength="25"></td>
    Password: <input type="password" name="req_password" size="16" maxlength="16"></td>
    <input type="submit" name="login" value="Login">
"Programming is like sex: one mistake and you have to support it for the rest of your life."