1

(30 replies, posted in Archive)

Au passage j'ai mis un post scotché : http://punbb-fr.ircme.net ça commence pas mal smile

You're welcome

Don't know :s

Look in the login.php how does punbb register cookies and try to do the same...

Hum, if you want you use the cookie of punbb (it use a cookie, is'nt it ?) to log into your website by a form like that :

<form method="post" action="login.php?action=in" id="login" onsubmit="return process_form(this)">
    <input type="hidden" name="form_sent" value="1">
    <input type="hidden" name="redirect_url" value="http://you/index.php">
    <table class="punmain" cellspacing="1" cellpadding="4">
        <tr class="punhead">
            <td class="punhead" colspan="2">Connexion</td>
        </tr>

        <tr>
            <td class="puncon1right" style="width: 140px; white-space: nowrap"><b>Nom d'utilisateur</b>  </td>
            <td class="puncon2"> <input type="text" name="req_username" size="25" maxlength="25"></td>
        </tr>
        <tr>
            <td class="puncon1right" style="width: 140px; white-space: nowrap"><b>Mot de passe</b>  </td>
            <td class="puncon2"> <input type="password" name="req_password" size="16" maxlength="16"></td>
        </tr>

        <tr>
            <td class="puncon1right" style="width: 140px; white-space: nowrap">Actions  </td>
            <td class="puncon2">
                <br>  <input type="submit" name="login" value="Connexion"><br><br>
                 <a href="register.php">Toujours pas enregistré?</a><br>
                 <a href="login.php?action=forget">Mot-de-passe perdu?</a><br><br>
            </td>

        </tr>
    </table>
</form>

pointing on your login.php

The Javascript fonction is

function process_form(theform)
{
    var element_names = new Object()
    element_names["req_username"] = "Nom d\'utilisateur"
    element_names["req_password"] = "Mot de passe"

    // Check for required elements
    if (document.images) {
        for (i = 0; i < theform.length; ++i) {
            if (theform.elements[i].name.substring(0, 4) == "req_") {
                if ((theform.elements[i].type=="text" || theform.elements[i].type=="textarea" || theform.elements[i].type=="password" || theform.elements[i].type=="file") && theform.elements[i].value=='') {
                    alert("\"" + element_names[theform.elements[i].name] + "\" doit être ecrit")
                    return false
                }
            }
        }
    }

    // Disable any submit buttons we find
    if (document.all || document.getElementById) {
        for (i = 0; i < theform.length; ++i) {
            var elem = theform.elements[i]
            if (elem.type.toLowerCase() == "submit")
                elem.disabled = true
        }
        return true
    }

    return true
}

I think you can if you modify a bit your login.php smile

6

(0 replies, posted in PunBB 1.2 show off)

Hi !

I just made a PunBB forum for french users of it, http://punbb-fr.ircme.net

This forum is not official smile

Xiutecutli

7

(8 replies, posted in Archive)

Bonjour ^_^

J'ai fait un forum de support francophone pour punbb, voici son adresse :

http://punbb-fr.ircme.net

Venez nombreux pour débuter la communauté francophone punbb !

Xiutecutli

Ps : ce forum n'est pas officiel

[edit: Sticky enlevé, ca n'a effectivement rien d'officiel]