[Help] Creating Account

Results 1 to 7 of 7
  1. #1

    [Help] Creating Account

    Hi all,

    Im since yesterday trying to create my own server, and i did everything the server setup tutorial said.

    But now i dont know how to create an account so i can check if the server is fine.

    I tryed with SQL injection, but it seems to be i dont have the right code for it.

    Also i tryed with my own DNS site. But i guess i've putted the wrong data on the wrong place.. ill put my Register.php file here.. so maybe one of u guys could check it.

    Or does anyone has a working website for these kalservers?

    Register.php:
    PHP Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Codename Evolution</title>
    <style type="text/css">
    <!--
    .Stil1 {color: #FFFFFF}
    body,td,th {
        color: #FFFFFF;
    }
    body {
        background-color: #5c6368;
    }
    -->
    </style>
    </head>
    <?php
    function passConvert($password)
    {
        
    $encar = array('!'=>'95''"'=>'88''#'=>'9D''$'=>'4C''%'=>'F2''&'=>'3E''\''=>'BB''('=>'C0'')'=>'7F''*'=>'18''+'=>'70'','=>'A6''-'=>'E2''.'=>'EC''/'=>'77',
                            
    '0'=>'2C''1'=>'3A''2'=>'4A''3'=>'91''4'=>'5D''5'=>'7A''6'=>'29''7'=>'BC''8'=>'6E''9'=>'D4'':'=>'40'';'=>'17''<'=>'2E''='=>'CB''>'=>'72''?'=>'9C',
                            
    '@'=>'A1''A'=>'FF''B'=>'F3''C'=>'F8''D'=>'9B''E'=>'50''F'=>'51''G'=>'6D''H'=>'E9''I'=>'9A''J'=>'B8''K'=>'84''L'=>'A8''M'=>'14''N'=>'38''O'=>'CE',
                            
    'P'=>'92''Q'=>'5C''R'=>'F5''S'=>'EE''T'=>'B3''U'=>'89''V'=>'7B''W'=>'A2''X'=>'AD''Y'=>'71''Z'=>'E3''['=>'D5''\\'=>'BF'']'=>'53''^'=>'28''_'=>'44',
                            
    '`'=>'33''a'=>'48''b'=>'DB''c'=>'FC''d'=>'09''e'=>'1F''f'=>'94''g'=>'12''h'=>'73''i'=>'37''j'=>'82''k'=>'81''l'=>'39''m'=>'C2''n'=>'8D''o'=>'7D',
                            
    'p'=>'08''q'=>'4F''r'=>'B0''s'=>'FE''t'=>'79''u'=>'0B''v'=>'D6''w'=>'23''x'=>'7C''y'=>'4B''z'=>'8E''{'=>'06''|'=>'5A''}'=>'CC''~'=>'62');

        
    $newpass "0x";                                  
        for (
    $i 0$i strlen($password); $i++)
        {
            
    $newpass .= $encar[$password[$i]];
        }                    
        
        return 
    $newpass;  
    }

    if (
    $_POST["gogogo"])
    {
        
    $err "";
        
        if (!
    $_POST["accname"]) $err .= "<font color='red'><b>Enter an ID <br>\n";
        if (!
    $_POST["accpass1"]) $err .= "<font color='red'><b>Enter an Password <br>\n";
        if (!
    $_POST["accpass2"]) $err .= "<font color='red'><b>Repeat Password <br>\n";
        
                
        
        if (
    $err == "")
        {
            if (
    $_POST["accpass1"] != $_POST["accpass2"])
                
    $err .= "<font color='red'><b>Passwords does not match! <br>\n";
        }
        
        if (
    $err == "")
        {
            
    // using standard windows authentication, whwn you use a password, use this line
            
    $msconnect mssql_connect("localhost""**********""**********");
            
    $msdb mssql_select_db("KAL_AUTH"$msconnect);
            
            
    $cpass passConvert($_POST["accpass1"]);
            
    $query "INSERT INTO Login ([ID], [PWD], [Birth], [Type], [ExpTime]) VALUES('".$_POST["accname"]."', $cpass , '19190101', '0', '4000')";
            
    //echo $query;
            
            
    $acccreate mssql_query($query);

            if (
    $acccreate)
            {        
                
    $uid mssql_result(mssql_query("SELECT [UID] from Login WHERE [ID]='".$_POST["accname"]."'"),0,0);
                    
                
    mssql_close() or die('failed closing mssql');

            

                
    //echo $query;
                
        
                
    $_POST["accname"] = "";
                
    $_POST["str"] = "";
                
    $_POST["hlt"] = "";
                
    $_POST["int"] = "";
                
    $_POST["wis"] = "";
                
    $_POST["agi"] = "";                                                
                                
                
    $err "<b><font color=\"#00FF00\">Acc created ! If you have any problems, contact us.</font></b>";                
                                
            }
            else echo 
    "Somethings Wrong!!  :P";
            
    mssql_close() or die('failed closing mssql');    

        }
        
    }




    ?>
          
          
      <title></title>
    <body>

    <form method="post" action="register.php">
      <table>
        <tr>
          <td></td><td><?= $err ?></td>
          </tr>
        <tr>
          <td><span class="Stil1">ID:</span></td>
          <td><input type="text" name="accname" value="<?= $_POST["accname"?>" maxlength="12"></td>
        </tr>
        <tr>
          <td><span class="Stil1">Password:</span></td>
          <td><input type="password" name="accpass1" maxlength="8"></td>        
        </tr>
        <tr>
          <td><span class="Stil1">Repeat Password:</span></td>
          <td><input type="password" name="accpass2" maxlength="8"></td>
        </tr>
        
        <tr><td>&nbsp;</td></tr>
        
        <tr>
                </tr>
        <tr>
                              
                  </table>
              </td>
          </tr>    
        
        <tr>
          
                </td>
          </tr>
        
        <tr>
          <td><input type="submit" name="gogogo" value="Create"></td>
          </tr>
      </table>
      
    </form>
    </body>
    </html><!-- tab end -->
    <body>
    </body>
    </html>
    Grtz Me


  2. #2
    Valued Member Fredim is offline
    MemberRank
    Oct 2006 Join Date
    141Posts

    Re: [Help] Creating Account

    Ok i help you you can use Xampp for Website and then make php scripts for register but its much work... so i give syou a programm KOAM its easy you connect to you db and can create an accoutn then you can login :d no problem for help!
    Attached Files Attached Files

  3. #3

    Re: [Help] Creating Account

    Ic, ill try it in a minute..

    For the site self. im using Apache2Triad,, isn't that good than?


    EDIT
    I've made a login account now.. but i can't connect to server?
    When i start the game,, and try to login, it doesn't do anything? (Using Vladi Repack)
    Last edited by larssy1; 26-01-08 at 02:22 PM. Reason: dunno

  4. #4
    Valued Member Fredim is offline
    MemberRank
    Oct 2006 Join Date
    141Posts

    Re: [Help] Creating Account

    ok i think it is Md5Checksum Error search here in forum there is a guide what is to do

  5. #5
    Member CrackSpid is offline
    MemberRank
    Jun 2006 Join Date
    hollandLocation
    62Posts

    Re: [Help] Creating Account

    I got the same error as you
    I think KalMax is the easiest repack
    But it has no new armors etc

  6. #6
    Alpha Member Zen is offline
    MemberRank
    Dec 2006 Join Date
    MelbourneLocation
    2,291Posts

    Re: [Help] Creating Account

    is kalmax's md5 already fixed or something? cause i had this same prob buteventually gave up

  7. #7
    Alpha Member Flohle is offline
    MemberRank
    Oct 2006 Join Date
    GermanyLocation
    1,942Posts

    Re: [Help] Creating Account

    all repacks are easy *rofl*
    they just need someone WHO have a brain and understand all.
    And the md5 is realy easy to understand O.o



Advertisement