Prblm In Login

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

    Prblm In Login

    sum users cnt login in my site n they use browser like motorola,sonyerricson.nokia 7610 cnt enter! m using lavalair script help any1

    #2
    change the login.php and it has been posted here in many places

    Comment


      #3
      so its wap, whats ur url its worth checking if it passes the validation of the pages
      Want something coded email me at sales@webnwaphost.com for a prices.




      Comment


        #4
        ok i will change login php thnx

        Comment


          #5
          i had change login php bt still i got dat prblm again plz cn any give me login.php fro lavalair

          Comment


            #6
            i had change login php bt still i got dat prblm again plz cn any give me login.php fro lavalair[/b]
            well site url and then al do a validation check and tell yu whats up with it cant do that without yu nopt givin me the url
            Want something coded email me at sales@webnwaphost.com for a prices.




            Comment


              #7
              i had change login php bt still i got dat prblm again plz cn any give me login.php fro lavalair[/b]
              Code:
              <?php
              /*
              IrisBlaze wap forum
              by Ra&#39;ed Shabana
              */
              
              header("Content-type: text/vnd.wap.wml");
              header("Cache-Control: no-store, no-cache, must-revalidate");
              echo("<?xml version=\"1.0\"?>");
              echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
              ?>
              <wml>
              <?php
              include("config.php");
              include("core.php");
              connectdb();
              $bcon = connectdb();
              if (!$bcon)
              {
                  echo "<card id=\"main\" title=\"lavalair.net (ERROR!)\">";
                  echo "<p align=\"center\">";
                  echo "<img src=\"images/exit.gif\" alt=\"*\"/>
              ";
                  echo "ERROR! cannot connect to database
              
              ";
                  echo "This error happens usually when backing up the database, please be patient, The site will be up any minute
              
              ";
                  echo "[b]THANK YOU VERY MUCH[/b]";
                  echo "</p>";
                  echo "</card>";
                  echo "</wml>";
                  exit();
              }
              $uid = $_GET["loguid"];
              $pwd = $_GET["logpwd"];
              
              $tolog = false;
               echo "<card id=\"main\" title=\"lavalair.net\">";
                echo "<p align=\"center\">[size="1"]";
                echo "<img src=\"images/logo.gif\" alt=\"*\"/>
              ";
                echo "THIS IS <a href=\"http://lavalair.net\">lavalair.net</a>
              ";
                echo "Bookmark THIS page to avoid repeating the login proccess in the future
              
              ";
                
                $uinf = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name=&#39;".$uid."&#39;"));
                if($uinf[0]==0)
                {
                  //Check for user ID
                  echo "<img src=\"images/notok.gif\" alt=\"X\"/>UserID doesn&#39;t exist
              
              ";
                }else{
                  //check for pwd
                  $epwd = md5($pwd);
                  $uinf = mysql_fetch_array(mysql_query("SELECT COUNT(*) FROM ibwf_users WHERE name=&#39;".$uid."&#39; AND pass=&#39;".$epwd."&#39;"));
                  if($uinf[0]==0)
                  {
                    echo "<img src=\"images/notok.gif\" alt=\"X\"/>Incorrect Password
              
              ";
                  }else{
                    $tm = time();
                    $xtm = $tm + (getsxtm()*60);
                    $did = $uid.$tm;
                    $res = mysql_query("INSERT INTO ibwf_ses SET id=&#39;".md5($did)."&#39;, uid=&#39;".getuid_nick($uid)."&#39;, expiretm=&#39;".$xtm."&#39;");
                    
                    if($res)
                    {
                      $tolog=true;
                      echo "<img src=\"images/ok.gif\" alt=\"+\"/>Logged in successfully as $uid
              ";
                      $idn = getuid_nick($uid);
                      
                          $lact = mysql_fetch_array(mysql_query("SELECT lastact FROM ibwf_users WHERE id=&#39;".$idn."&#39;"));
                           mysql_query("UPDATE ibwf_users SET lastvst=&#39;".$lact[0]."&#39; WHERE id=&#39;".$idn."&#39;");
                    }else{
                      //is user already logged in?
                      $logedin = mysql_fetch_array(mysql_query("SELECT (*) FROM ibwf_ses WHERE uid=&#39;".$getuid_nick($uid)."&#39;"));
                      if($logedin[0]>0)
                      {
                        //yip, so let&#39;s just update the expiration time
                        $xtm = time() + (getsxtm()*60);
                        $res = mysql_query("UPDATE ibwf_ses SET expiretm=&#39;".$xtm."&#39; WHERE uid=&#39;".getuid_nick($uid)."&#39;");
                        
                        if($res)
                        {
                          $tolog=true;
                          echo "<img src=\"images/ok.gif\" alt=\"+\"/>Logged in successfully as $uid
              ";
                          
              
                         
                          
                        }else{
                          echo "<img src=\"images/point.gif\" alt=\"!\"/>Can&#39;t login at the time, plz try later
              "; //no chance this could happen unless there&#39;s error in mysql connection
                          
                        }
                        
                      }
                      
                    }
                    echo "
              We are glad to have you with us, if you have any questions or querries check your CPanel then point your browser to F.A.Qs for the most common questions and answers
              
              ";
                  }
                }
                
                if($tolog)
              {
                $sid = md5($did);
                  echo "<a href=\"index.php?action=main&amp;sid=$sid\"><img src=\"images/home.gif\" alt=\"*\"/>";
              echo "Enter lavalair</a>
              
              ";
              echo "Don&#39;t forget to tell everyone you know about this great online community";
              }else{
              echo "<a href=\"index.php\"><img src=\"images/home.gif\" alt=\"*\"/>";
              echo "Home</a>";
              }
              echo "[/size]</p>";
                echo "</card>";
              
              ?>
              </wml>

              Comment

              Working...
              X