Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 14:19

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

Advertisement



FlyFF PServer Registrations-Page

Discussion on FlyFF PServer Registrations-Page within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2010
Posts: 6
Received Thanks: 0
Cool FlyFF PServer Registrations-Page

Hi, ich glaube ich bin hier falsch, aber egal
Also, zu meiner Frage. Ich habe einen eigenen FlyFF PServer. Aber es sollen ja auch andere Leute drauf spielen können. Jezzz hab ich die Frage: Wie macht man am besten eine Registrations-Page für meinen PServer. Er läuft über Hamachi. Ich hab auch schon ein bisschen gegoogelt, hab aba nix gefunden =(

LG

P.S.: Threas war sinnlos Habs schon geschafft <.< Kann bitte geclosed werden
merlin6335 is offline  
Old 04/20/2010, 20:40   #2
 
elite*gold: 0
Join Date: Mar 2010
Posts: 20
Received Thanks: 2
gib mir mal bitte nen link wo du das gefunden hast...wie es funkt
fabih is offline  
Old 04/21/2010, 14:03   #3
 
elite*gold: 0
Join Date: Aug 2009
Posts: 825
Received Thanks: 400
hier ist ein register

Quote:
register.php
Quote:

Zitat:



Code:
<?php
$ip = $_SERVER['REMOTE_ADDR'];
$time = date("l dS of F Y h:i:s A");
$script = $_SERVER[PATH_TRANSLATED];
$fp = fopen ("[WEB]SQL_Injection.txt", "a+");
$sql_inject_1 = array(";","'","%",'"'); #Whoth need replace
$sql_inject_2 = array("", "","","""); #To wont replace
$GET_KEY = array_keys($_GET); #array keys from $_GET
$POST_KEY = array_keys($_POST); #array keys from $_POST
$COOKIE_KEY = array_keys($_COOKIE); #array keys from $_COOKIE
/*begin clear $_GET */
for($i=0;$i<count($GET_KEY);$i++)
{
$real_get[$i] = $_GET[$GET_KEY[$i]];
$_GET[$GET_KEY[$i]] = str_replace($sql_inject_1, $sql_inject_2, HtmlSpecialChars($_GET[$GET_KEY[$i]]));
if($real_get[$i] != $_GET[$GET_KEY[$i]])
{
fwrite ($fp, "IP: $ip\r\n");
fwrite ($fp, "Method: GET\r\n");
fwrite ($fp, "Value: $real_get[$i]\r\n");
fwrite ($fp, "Script: $script\r\n");
fwrite ($fp, "Time: $time\r\n");
fwrite ($fp, "==================================\r\n");
}
}
/*end clear $_GET */
/*begin clear $_POST */
for($i=0;$i<count($POST_KEY);$i++)
{
$real_post[$i] = $_POST[$POST_KEY[$i]];
$_POST[$POST_KEY[$i]] = str_replace($sql_inject_1, $sql_inject_2, HtmlSpecialChars($_POST[$POST_KEY[$i]]));
if($real_post[$i] != $_POST[$POST_KEY[$i]])
{
fwrite ($fp, "IP: $ip\r\n");
fwrite ($fp, "Method: POST\r\n");
fwrite ($fp, "Value: $real_post[$i]\r\n");
fwrite ($fp, "Script: $script\r\n");
fwrite ($fp, "Time: $time\r\n");
fwrite ($fp, "==================================\r\n");
}
}
/*end clear $_POST */
/*begin clear $_COOKIE */
for($i=0;$i<count($COOKIE_KEY);$i++)
{
$real_cookie[$i] = $_COOKIE[$COOKIE_KEY[$i]];
$_COOKIE[$COOKIE_KEY[$i]] = str_replace($sql_inject_1, $sql_inject_2, HtmlSpecialChars($_COOKIE[$COOKIE_KEY[$i]]));
if($real_cookie[$i] != $_COOKIE[$COOKIE_KEY[$i]])
{
fwrite ($fp, "IP: $ip\r\n");
fwrite ($fp, "Method: COOKIE\r\n");
fwrite ($fp, "Value: $real_cookie[$i]\r\n");
fwrite ($fp, "Script: $script\r\n");
fwrite ($fp, "Time: $time\r\n");
fwrite ($fp, "==================================\r\n");
}
}

/*end clear $_COOKIE */
fclose ($fp);
?>
<?php
ini_set('display_errors', 0);
$connection = mssql_connect('xxx', 'xxx', 'xxx'); //Change YOURHOST and YOURPASSWORD

if(!connection || !mssql_select_db('ACCOUNT_DBF', $connection))
{
die('Unable to connect or select database!');
}

$checkusername = $_POST['Username'];
$query = mssql_query("SELECT account FROM ACCOUNT_TBL WHERE account = '$checkusername'");
$result = mssql_fetch_row($query);

if(isset($_POST['submit'])){
if($_POST['Username'] == ""){
$error = '<font color="red"><b>Please enter a username.</b></font>';
}
else if($result[0] == $checkusername){
$error = '<font color="red"><b>This username already exists. Please choose another one.</b></font>';
}
else if($_POST['Password'] == ""){
$error = '<font color="red"><b>Please enter a password.</b></font>';
}
else{
$password = md5('kikugalanet' . $_POST['Password']);
$stmt = mssql_init('webCreateAcc', $connection);
mssql_bind($stmt, '@account', $checkusername, SQLVARCHAR, false, false, 15);
mssql_bind($stmt, '@password', $password, SQLVARCHAR, false, false, 36);
mssql_bind($stmt, '@birthday', $checkusername, SQLVARCHAR, false, false, 120);
mssql_bind($stmt, '@email', $checkusername, SQLVARCHAR, false, false, 120);
mssql_execute($stmt) or die ("Could not complete the registration. Please try again.");
mssql_free_statement($stmt);
$error = '<font color="green"><b>Registration complete!</b></font>';
}
}

echo '<form action="register.php" method="post">';
echo 'Username:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="text" name="Username" /><br /><br />';
echo 'Password:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="password" name="Password" /><br /><br />';
echo '<input type="submit" name="submit" value="Register" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp ;& nbsp';
echo '</form>';
echo $error;

?>
Nilsator2 is offline  
Thanks
1 User
Old 10/02/2010, 15:24   #4
 
elite*gold: 0
Join Date: Oct 2007
Posts: 32
Received Thanks: 2
hm wo muss ich da welche daten eingeben?
lightro is offline  
Reply

Tags
flyff, hamachi, homepage, pserver


Similar Threads Similar Threads
Flyff P-Server Home-Page
08/06/2010 - Flyff Private Server - 4 Replies
Hallo E*Pvpers.. Ich habe mal eine Frage.. hat Vllt. jemand eine Fertige HP die ich für meinen Neuen P-Server nehmen könnte ? :) Ich brauche dringend eine denn paar Freunde wollen mal den Server Testen und die können sich niergend-Wo Registrieren
Registrations Page
10/10/2009 - Metin2 Private Server - 0 Replies
Hi, ich habe leider vergessen mir den Link zum VTut der Accountpage erstellung zu speichern. Wenn mir jemand den Link zum VTut schickt bekommt er ein Danke! MfG Kevin



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


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

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