Problem with login page

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

  • wap_king
    replied
    kool thanx much

    Leave a comment:


  • Ponick
    replied
    PHP Code:

    ////////////////////////////////////////////Session expiry time

    function getsxtm()
    {
       
    $getdata mysql_fetch_array(mysql_query("SELECT value FROM ibwf_settings WHERE name='sesexp'"));
       return 
    $getdata[0];
    }


    $tm time();
          
    $xtm $tm + (getsxtm()*60);
          
    $did $u.$tm;
          
    $res mysql_query("INSERT INTO ibwf_ses SET id='".md5($did)."', uid='".getuid_nick($u)."', expiretm='".$xtm."'");

    $sid md5($did); 
    this code is common for lava but you have to make this supportable with yor sql :p

    Leave a comment:


  • wap_king
    replied
    Originally posted by Ponick View Post
    $sid = $unick.$mytime.$p;

    its may be
    PHP Code:

    $mytime
    =time();
     
    $sid $u.$mytime

    mysql_query("update users set ts ='$ts' where username='$thelogin'"); are you sure about this? :P :P
    lol it can but i dont want it like tht lol its not my coding either

    hey ponick if you could me a sid coding like wats on lava login page tht wud be cool

    Leave a comment:


  • Ponick
    replied
    $sid = $unick.$mytime.$p;

    its may be
    PHP Code:

    $mytime
    =time();
     
    $sid $u.$mytime

    mysql_query("update users set ts ='$ts' where username='$thelogin'"); are you sure about this? :P :P

    Leave a comment:


  • wap_king
    replied
    Originally posted by Ponick View Post
    PHP Code:
     if ($_GET["spy"]=="1")
    {
    $u $_GET["u"];

    $p $_GET["p"];


    Already got that i jus need sid coding now

    Leave a comment:


  • Ponick
    replied
    PHP Code:
     if ($_GET["spy"]=="1")
    {
    $u $_GET["u"];

    $p $_GET["p"];

    Leave a comment:


  • wap_king
    replied
    hey i got it recode the page and got it now i need sid how do i do that?

    Leave a comment:


  • wap_king
    replied
    nothing wrong with sql...try sumting else and it worked so ama figure out whats wrong and fix it......

    Leave a comment:


  • something else
    replied
    what does the debug line say ? if it comes back something like:
    Debug: spy: 1
    User: something_else
    pass: random
    Usercheck:
    passcheck

    then you know there is a problem with your sql

    Leave a comment:


  • wap_king
    replied
    that was the first thing that was there actually

    Leave a comment:


  • wap_king
    replied
    Originally posted by something else View Post
    just
    $u = $_GET["u"];

    $p = $_GET["p"];


    that whats there and its telling me Password is Incorrect...

    Leave a comment:


  • something else
    replied
    or just debug your work to find the error eg:

    PHP Code:
    echo "Debug: spy: $spy <br/>User: $u<br/> pass: $p <br/>Usercheck: $n[0] <br/> passcheck $s[0]"

    Leave a comment:


  • something else
    replied
    just
    $u = $_GET["u"];

    $p = $_GET["p"];

    Leave a comment:


  • wap_king
    replied
    and put what?

    Leave a comment:


  • something else
    replied
    try removing if ($_GET['spy']=='1'){ }

    Leave a comment:

Working...
X