Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Dekaron > Dekaron Private Server
You last visited: Today at 14:51

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[php] Login dekaron

Discussion on [php] Login dekaron within the Dekaron Private Server forum part of the Dekaron category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2008
Posts: 1,228
Received Thanks: 568
[php] Login dekaron

Hi, i download the login script from janvier. But its bugged on my xxamp so i edit it, and now its working for me with sessions.

Code:
 <?php
            $CONFIG['host'] = "localhost";
            $CONFIG['user'] = "sa";
            $CONFIG['pass'] = "password";
            $CONFIG['conn']  = mssql_connect( $CONFIG['host'], $CONFIG['user'], $CONFIG['pass']);

            function anti_injection($sql) {
                $sql = preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"),"",$sql);
                $sql = trim($sql);
                $sql = strip_tags($sql);
                $sql = addslashes($sql);
                return $sql;
            }
            
            if(isset($_GET['action']) == 'login'){
                $user = anti_injection($_POST['user']);
                $pass = anti_injection($_POST['pass']);
                $crypt_pass = md5($pass);
        
   	            $QueryA = mssql_query("SELECT * FROM account.dbo.user_profile WHERE user_id = '".$user."'"); 
                $rowA = mssql_num_rows($QueryA);

                $QueryB = mssql_query("SELECT user_pwd FROM account.dbo.user_profile WHERE user_id = '".$user."'"); 
                $rowB = mssql_fetch_row($QueryB);
            
                if($rowA == '0'){
                    echo '<br>This game account is not found in the database.';
                }if($rowB[0] != $crypt_pass){
                    echo '<br>Wrong password. Try again.';
                }else if($_GET['login'] != 'login' && $rowA == '0'){
                    echo '<br>Login Error, Please login again.';
                }else{
                    $aQuery = mssql_query("SELECT * FROM account.dbo.user_profile WHERE user_id = '".$user."'"); 
                    $aRow = mssql_fetch_row($aQuery);	
                    
                    $_SESSION['id'] = $row[0];
                    $_SESSION['user'] = $row[1];
                    
                    echo "Welkom" . $_SESSION['user'];
                }
            }else{
                if(isset($_SESSION['user'])){
                    echo "Welcome..";
                }else{
            ?>
              //FORM
            <?php
               }
            ?>
conquer93 is offline  
Old 01/08/2011, 19:12   #2
 
elite*gold: 0
Join Date: Oct 2009
Posts: 193
Received Thanks: 223
This is not a forum for site makers or etc.
lagoni is offline  
Old 01/08/2011, 23:10   #3
 
[DEV]AlphaOMEGA's Avatar
 
elite*gold: 0
Join Date: Oct 2009
Posts: 142
Received Thanks: 78
where is the problem?
how does it look what does it say lol.........
[DEV]AlphaOMEGA is offline  
Reply


Similar Threads Similar Threads
WHo want me to release login script for dekaron ?
09/10/2010 - Dekaron - 3 Replies
as title says ! :rolleyes:
reXIGNation v1.54a + dekaron = always dc on login
01/11/2010 - Dekaron - 3 Replies
HI, someone can help me? in GlobalDK, i start the game as usually using reXIGNation v1.54a launcher, selecting dekaron.exe,etc, and game loads and in the login keeps giving me "disconected from server" anytime i try to do so. got the same error using unpacked dekaron. if i try to enter without reXIGNation v1.54a it works.
[Tut]dual Login Dekaron Sea or 2moons
08/04/2009 - Dekaron Exploits, Hacks, Bots, Tools & Macros - 8 Replies
first of all you need a brain to make this work it is VERY SIMPLE. 1.Edit your dekaron SHORTCUT Icon 2.Put the code "m_cher" 3.Apply and OK 4.Have fun Warning: you need to have a strong computer or else it will just overload and may corrupt some parts of your computer.
dekaron pserver login problem...
07/07/2008 - Dekaron Private Server - 2 Replies
when i want to connect to server 2 or server 1 i cant becaus of this http://img68.imageshack.us/img68/8636/92985575bd3. jpg same problem for serv 1 and 2 becaus 3 is off right now...what im suposed to do?? plz help me i have a costoum taiwan folder for english words and for dont crushing...plzz help



All times are GMT +1. The time now is 14:51.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.