Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

help needed about v14 web

Newbie Spellweaver
Joined
Feb 18, 2009
Messages
47
Reaction score
0
hola icant find a v14 register web anywhere for my server
no idea if its eleased for noobs lol
anyways idont know how to make account on my server ineed a website to make 1 LOL!!!!!!!
im noob help please
 
Newbie Spellweaver
Joined
Nov 5, 2009
Messages
83
Reaction score
7
Try This

Code:
<li><h1>Fill Out All Fields</h1></li>
<?php
    $MD5Code = "kikugalanet";        // Your Neuz MD5 Code
    $dbAddr = 'USERNAMEHERE-PC\SQLEXPRESS';        // Your MSSQL Host IP The Sql Works For Me
    $dbUser = 'sa';            // Your Database user
    $dbPass = 'YourPasswordHere';        // Your Database User password
    $dbName = "ACCOUNT_DBF";        // Your Account Database
    $server_name = "Flyff";    // Define your Servername here
    $reg_allow = 1;            // To turn on registering a write "1"
    if(!extension_loaded("mssql")) {
        echo "The required module is not enabled on your MSSQL server. Please enable it.";
        exit();
    }
    
    $link = mssql_connect($dbAddr, $dbUser, $dbPass) or die ("Could not connect to the database. Please check your settings.");
    mssql_select_db($dbName, $link);
?>

<!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" dir="ltr" lang="en">
<head>
    <title><?php echo ('..:: '.$server_name.' - Registration ::..'); ?></title>
</head>
<body>
<?php
if ($reg_allow == 1) {
    
    function cleanFormData($text) {
        $data = strtolower($text);
        $data = trim($text);
        $data = htmlentities($text);
        $data = strip_tags($text);
        return $data;
    }

    if(isset($_POST['submit'])) {
        $userName = cleanFormData($_POST['user']);    // Username
        $userPass = cleanFormData($_POST['pass']);    // Password non-encrypted
        $userPass2 = cleanFormData($_POST['pass2']);    // Password non-encrypted
        $captcha = cleanFormData($_POST['captcha']);    // Password non-encrypted
        
        $checkUserName = mssql_query("SELECT account FROM ACCOUNT_TBL WHERE account='".$userName."'");
        
        if(empty($userName) || empty($userPass) || empty($userPass2) || empty($captcha)) {
            echo "Please complete all fields!";
        exit();
        }elseif(mssql_num_rows($checkUserName) >= 1) {
            echo "The username <b>".$_POST['user']."</b> is already in use.";
        exit();
        }elseif($_POST['pass'] != $_POST['pass2']) {
            echo "Passwords do not match.";
        exit();
        }elseif($_POST['captcha'] != $_POST['captcha_check']) {
            echo "Captcha is not true.";
        exit();
        } else {
            $passHash = md5($MD5Code . $userPass);
            
            // Create a new stored prodecure
            $stmt = mssql_init("createaccount", $link);
            
            // Bind the field names
            mssql_bind($stmt, '@account', $userName, SQLVARCHAR, false, false, 15);
            mssql_bind($stmt, '@password', $passHash, SQLVARCHAR, false, false, 15);
            
            // Execute
            mssql_execute($stmt) or die ("Something is wrong on the execution");
            
            // Free statement
            mssql_free_statement($stmt);
            
            echo "The Account <b>".$_POST['user']."</b> was successfully created!<br><br>We wish you much fun playing.";
        }
    } else {
$zahl1 = rand(10,20); //First Number 10-20
$zahl2 = rand(1,10);  //Second number 1-10
$operator = rand(1,2); // + Or --
if($operator == "1"){
   $operatorzeichen = " + ";
   $ergebnis = $zahl1 + $zahl2;
}else{
   $operatorzeichen = " - ";
   $ergebnis = $zahl1 - $zahl2;
}
$rechnung = $zahl1.$operatorzeichen.$zahl2." = ?";
echo'
<form method="post">
    <table border="0" cellpadding="0" cellspacing="0" >
        <tr><td width="75">Username:</td><td><input type="text" name="user" size="15" maxlenght="15" /></td></tr>
        <tr><td>Password:</td><td><input type="password" name="pass" size="15" /></td></tr>
        <tr><td><font size="-2">Password<br>(repeat)<font></td><td><input type="password" name="pass2" size="15" /></td></tr>
        <tr><td>'.$rechnung.'</td><td><input type="text" name="captcha" size="15" /></td></tr>
    <input type="hidden" name="captcha_check" value="'.$ergebnis.'">
    </table>
    <br>
        <tr><td></td><td><input type="submit" name="submit" value="Register" /></td></tr>
</form>';
    }
}
else
{
echo 'Currently, no registrations are available!';
exit();
}
?>
</body>
</html>
 
Newbie Spellweaver
Joined
Feb 18, 2009
Messages
47
Reaction score
0
try this

Code:
<li><h1>fill out all fields</h1></li>
<?php
    $md5code = "kikugalanet";        // your neuz md5 code
    $dbaddr = 'usernamehere-pc\sqlexpress';        // your mssql host ip the sql works for me
    $dbuser = 'sa';            // your database user
    $dbpass = 'yourpasswordhere';        // your database user password
    $dbname = "account_dbf";        // your account database
    $server_name = "flyff";    // define your servername here
    $reg_allow = 1;            // to turn on registering a write "1"
    if(!extension_loaded("mssql")) {
        echo "the required module is not enabled on your mssql server. Please enable it.";
        exit();
    }
    
    $link = mssql_connect($dbaddr, $dbuser, $dbpass) or die ("could not connect to the database. Please check your settings.");
    mssql_select_db($dbname, $link);
?>

<!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" dir="ltr" lang="en">
<head>
    <title><?php echo ('..:: '.$server_name.' - registration ::..'); ?></title>
</head>
<body>
<?php
if ($reg_allow == 1) {
    
    function cleanformdata($text) {
        $data = strtolower($text);
        $data = trim($text);
        $data = htmlentities($text);
        $data = strip_tags($text);
        return $data;
    }

    if(isset($_post['submit'])) {
        $username = cleanformdata($_post['user']);    // username
        $userpass = cleanformdata($_post['pass']);    // password non-encrypted
        $userpass2 = cleanformdata($_post['pass2']);    // password non-encrypted
        $captcha = cleanformdata($_post['captcha']);    // password non-encrypted
        
        $checkusername = mssql_query("select account from account_tbl where account='".$username."'");
        
        if(empty($username) || empty($userpass) || empty($userpass2) || empty($captcha)) {
            echo "please complete all fields!";
        exit();
        }elseif(mssql_num_rows($checkusername) >= 1) {
            echo "the username <b>".$_post['user']."</b> is already in use.";
        exit();
        }elseif($_post['pass'] != $_post['pass2']) {
            echo "passwords do not match.";
        exit();
        }elseif($_post['captcha'] != $_post['captcha_check']) {
            echo "captcha is not true.";
        exit();
        } else {
            $passhash = md5($md5code . $userpass);
            
            // create a new stored prodecure
            $stmt = mssql_init("createaccount", $link);
            
            // bind the field names
            mssql_bind($stmt, '@account', $username, sqlvarchar, false, false, 15);
            mssql_bind($stmt, '@password', $passhash, sqlvarchar, false, false, 15);
            
            // execute
            mssql_execute($stmt) or die ("something is wrong on the execution");
            
            // free statement
            mssql_free_statement($stmt);
            
            echo "the account <b>".$_post['user']."</b> was successfully created!<br><br>we wish you much fun playing.";
        }
    } else {
$zahl1 = rand(10,20); //first number 10-20
$zahl2 = rand(1,10);  //second number 1-10
$operator = rand(1,2); // + or --
if($operator == "1"){
   $operatorzeichen = " + ";
   $ergebnis = $zahl1 + $zahl2;
}else{
   $operatorzeichen = " - ";
   $ergebnis = $zahl1 - $zahl2;
}
$rechnung = $zahl1.$operatorzeichen.$zahl2." = ?";
echo'
<form method="post">
    <table border="0" cellpadding="0" cellspacing="0" >
        <tr><td width="75">username:</td><td><input type="text" name="user" size="15" maxlenght="15" /></td></tr>
        <tr><td>password:</td><td><input type="password" name="pass" size="15" /></td></tr>
        <tr><td><font size="-2">password<br>(repeat)<font></td><td><input type="password" name="pass2" size="15" /></td></tr>
        <tr><td>'.$rechnung.'</td><td><input type="text" name="captcha" size="15" /></td></tr>
    <input type="hidden" name="captcha_check" value="'.$ergebnis.'">
    </table>
    <br>
        <tr><td></td><td><input type="submit" name="submit" value="register" /></td></tr>
</form>';
    }
}
else
{
echo 'currently, no registrations are available!';
exit();
}
?>
</body>
</html>
kiss!!!!
 
Back
Top