mail[Galette-devel] [bug #8124] V 0.63 lien déconnexion ne fonctionne pas


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by Christophe Dirlik on December 29, 2006 - 23:43:

Follow-up Comment #1, bug #8124 (project galette):

J'ai trouvé un fix pour ce problème, dans index.php, mais je ne sais si ca
vous interressera, ni comment le publier dans SVN..

        // Authentication procedure
        *bold*//first check if logout is required
        if ($_GET["logout"]=='1')
        {
                unset($_POST["ident"]);
                $_SESSION["logged_status"]=0;
        }*bold*

...
...
        $resultat = &$DB->Execute($requete);
        if (!$resultat->EOF &&
                ($resultat->fields[4] == $_POST["password"] ||
                $resultat->fields[4] == md5($_POST["password"]))
                         )
        {
                if ($resultat->fields[1]=="1")
                        $_SESSION["admin_status"]=1;
*bold*          else
                        $_SESSION["admin_status"]=0;    *bold*
                                


    _______________________________________________________

Reply to this item at:

  <http://gna.org/bugs/?8124>

_______________________________________________
  Message posté via/par Gna!
  http://gna.org/




Related Messages


Powered by MHonArc, Updated Sat Dec 30 00:00:23 2006