Log Out

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Log Out

    does ny1 know the codes of LOGOUT in lavalair script which helps to log out from all recent records of the sile by an user?

    #2
    yeah just put a logout link to your main page it logs you out
    <span style="font-size:36pt;line-height:100%">
    visit my new forum wapsite on your mobile phone today.
     wapfire.freehostia.com
    </span>

    Comment


      #3
      if you want make a logout page with would you like to logout? with links saying yes no
      <span style="font-size:36pt;line-height:100%">
      visit my new forum wapsite on your mobile phone today.
       wapfire.freehostia.com
      </span>

      Comment


        #4
        if you want make a logout page with would you like to logout? with links saying yes no[/b]

        Comment


          #5
          ok.post ur codes methew26

          Comment


            #6
            Heam dont have cods mate is not a coder -lol- wants to be a coder but is not ...tell me whaer you whont to redirect the logaut page and maibe cant make a code for that stuf

            Comment


              #7
              All you have to do is make a new page to direct to, and on that page write a logged out message. Aslo add a sql code that delete&#39;s the users session.. It will be the ibwf_sid table where you should delete it, or if u use the funmobile one it will be ibwf_ses...

              Comment


                #8
                i am a coder and id o have the code mate ill give it to you if y want
                <span style="font-size:36pt;line-height:100%">
                visit my new forum wapsite on your mobile phone today.
                 wapfire.freehostia.com
                </span>

                Comment


                  #9
                  I&#39;ll accept the code from anybody, just post it.

                  Comment


                    #10
                    lol Mate is a good joke if you are a coder why all the time you need another to install a databse and make the cod for you

                    Comment


                      #11
                      ok matthew26 plz post ur codes for log out option.thanks

                      Comment


                        #12
                        phoenix i didnt get what u said

                        Comment


                          #13
                          Place this code in the index.php and put link on the main of the index.php



                          echo "<a href=\"index.php?action=logout&amp;sid=$sid\">".$l ogout."logout</a>
                          ";




                          ////////////////////////////////////////// logout
                          else if($action=="logout")
                          {
                          $uid =getuid_sid($sid);
                          if($uid>0)
                          {
                          addonline(getuid_sid($sid),"logout","");
                          }
                          echo "<card id=\"main\" title=\"Log Out\">";
                          echo "<p align=\"center\">";
                          $nick = getnick_sid($sid);

                          echo "Good Bye $nick!

                          Thnaks alot for your visit
                          Bring all your friends on your next trip

                          ";
                          mysql_query("DELETE FROM ibwf_ses WHERE uid=&#39;".$uid."&#39;");
                          mysql_query("DELETE FROM ibwf_online WHERE userid=&#39;".$uid."&#39;");

                          $bro=("$REMOTE_ADDR");
                          $usr = explode (&#39;/&#39;, $HTTP_USER_AGENT);
                          $phone = ("$usr[0]");

                          echo "<a href=\"http://surfwap.com/?site=ht650\">$nick Get Free Downloads for your $phone HERE</a>
                          ";
                          echo "<a href=\"index.php\"><img src=\"images/home.gif\" alt=\"*\"/>";
                          echo "Home</a>";
                          echo "</p>";
                          echo "</card>";
                          }

                          Comment


                            #14
                            here is my code for logout

                            Code:
                            else if($action=="logout")
                            {
                              $who = $_GET["who"];
                              $user = getnick_uid($who);
                              echo "<card id=\"main\" title=\"Logout\">";
                              echo "<p align=\"center\">";
                              $uid = getuid_sid($sid);
                              if($who!=$uid){ 
                              echo "[b]<img src=\"../images/notok.gif\" alt=\"x\"/>
                            Error!!!
                            Permission Denied...[/b]
                            ";
                              echo "
                            $user, U Cannot Log Someone Out
                            This Is An Attempt To Breach Site Security
                            If U Are Caught Trying This Again U Will Be Banned
                            ";
                              echo "
                            <a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"../images/home.gif\" alt=\"\"/>Ok!</a>";
                              echo "</p>";
                              }else{
                              echo "
                            ";
                              $res = mysql_query("DELETE FROM ibwf_ses WHERE uid=&#39;".$who."&#39;");
                              if($res)
                              {
                              addonline($who,"Logging Out","");
                              echo "<img src=\"../images/ok.gif\" alt=\"O\"/>[b]$user[/b]
                            U Hav Successfully Logged Out Pls Come Back Soon :o)";
                              }else{
                              echo "<img src=\"../images/notok.gif\" alt=\"X\"/>Error Logging Out";
                              }
                              echo "<a href=\"index.php\"><img src=\"../images/home.gif\" alt=\"\"/>ok!</a>";
                              echo "</p>";
                              }
                              echo "</card>";
                            }
                            then put this where ever u want the logout link

                            Code:
                            echo "<a href=\"index.php?action=logout&amp;sid=$sid&amp;who=$uid\">Logout</a>";

                            Comment


                              #15
                              hypetype n linkrx7 thanks a lot,i thought i didnt get codes,coz u both posted in a few weeks

                              Comment

                              Working...
                              X