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!

Web [Tut] MapleStory Cms/ Registration Page

Joined
Apr 12, 2008
Messages
998
Reaction score
612
Re: [GUIDE]MapleStory Cms/ Registration Page

Every time i try to start the web server my wireless "loses" range, whenever i turn it off, it acts normal.
>.>
 
Junior Spellweaver
Joined
Apr 22, 2008
Messages
128
Reaction score
0
Re: [GUIDE]MapleStory Cms/ Registration Page

Help, i changed everything, but hamachi and my ip just dont work on other com, i can see the web with bth my ip and my hamachi.
 
Newbie Spellweaver
Joined
Apr 22, 2008
Messages
6
Reaction score
0
Re: [GUIDE]MapleStory Cms/ Registration Page

Im getting that f*king error when I try to put wampserver online any help plz?
 

Attachments

You must be registered for see attachments list
Newbie Spellweaver
Joined
Apr 14, 2008
Messages
6
Reaction score
0
Re: [GUIDE]MapleStory Cms/ Registration Page

Im getting that f*king error when I try to put wampserver online any help plz?

I've had the same problem.
The way it got fixed is I reformatted my computer.
 
Newbie Spellweaver
Joined
Apr 22, 2008
Messages
6
Reaction score
0
Re: [GUIDE]MapleStory Cms/ Registration Page

So the anly way to solve the problem i to reinstall my OS?
 
Elite Diviner
Joined
Jul 15, 2005
Messages
404
Reaction score
2
Re: [GUIDE]MapleStory Cms/ Registration Page

i cant use this guide if i use a password for my sql? this sux
 
Newbie Spellweaver
Joined
May 20, 2008
Messages
5
Reaction score
0
Re: [GUIDE]MapleStory Cms/ Registration Page

How do you change the website address to something else, not the hamachi ip?
 
Newbie Spellweaver
Joined
May 18, 2008
Messages
9
Reaction score
0
Re: [GUIDE]MapleStory Cms/ Registration Page

i can't dl wamp the page wont load can some1 mirror it?
 
Initiate Mage
Joined
May 27, 2008
Messages
3
Reaction score
0
Re: [GUIDE]MapleStory Cms/ Registration Page

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in C:\wamp\www\config.php on line 7
Cant connect to the database

That error is on the registration page.
 
Initiate Mage
Joined
May 29, 2008
Messages
2
Reaction score
0
Re: [GUIDE]MapleStory Cms/ Registration Page

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in C:\wamp\www\config.php on line 7
Cant connect to the database
i got this error
 
Newbie Spellweaver
Joined
May 4, 2008
Messages
23
Reaction score
0
Re: [GUIDE]MapleStory Cms/ Registration Page

thx for the guide rly helpful now ppl dont have 2 msg me on hamachi 2 get an acc
 
Newbie Spellweaver
Joined
Nov 30, 2004
Messages
16
Reaction score
0
Re: [GUIDE]MapleStory Cms/ Registration Page

How do you get the password encrypted to SH1 before adding it to database? (anyone know)?
 
Junior Spellweaver
Joined
May 27, 2008
Messages
196
Reaction score
0
Re: [GUIDE]MapleStory Cms/ Registration Page

database is not the same so wont work for odinms source sadly :(

k, i editted some only 80% working since other two field im unsure about
 
Newbie Spellweaver
Joined
Nov 30, 2004
Messages
16
Reaction score
0
Re: [GUIDE]MapleStory Cms/ Registration Page

I got it to work perfectly for odinms, pretty simplified tho...

Index.php:
Code:
<head>
<title>My maplestory server</title>
<!--- By SuperFun ---!>
<!--- Version 3 ---!>
<style>
*{ FONT-SIZE: 8pt; FONT-FAMILY: verdana; } b { FONT-WEIGHT: bold; } .listtitle { BACKGROUND: #425984; COLOR: #EEEEEE; white-space: nowrap; } td.list { BACKGROUND: #EEEEEE; white-space: nowrap; } </style>
</head>
<center><br><br><br><br>
<h1>My maplestory server</h1>
<table cellspacing=1 cellpadding=5>
<tr>
<td class=listtitle colspan=2>Register at my server</td></tr>
<form action="register_do.php" method="POST">
<tr><td class=list align=right>Username:</td><td class=list><input type=text name=name maxlength="30"></td></tr>
<tr><td class=list align=right>Password:</td><td class=list><input type=password name=pass maxlength="30"></td></tr>
</select>
</td></tr>
<tr><td class=listtitle align=right colspan=2><input type=submit name=submit value='Register'></td></tr>
</form>
</table>
<br>
<!--- thanks Antv912 ---!>
<?php
include('config.php');
$result = mysql_query("SELECT * FROM accounts", $db);// Account section
$num_rows = mysql_num_rows($result);
$result2 = mysql_query("SELECT * FROM characters", $db);// Character section
$num_rowsc = mysql_num_rows($result2);
echo 'Stats:<br><b>'.$num_rows.'</b> Accounts registed.<br><b>'.$num_rowsc.'</b> Characters created.';
?>
</center></body></html>

Register_do.php:
Code:
   <?php
print '<title>My maplestory server</title>';
$name = $_POST['name'];
$pass = $_POST['pass'];
include('config.php');
$sel = 'SELECT * FROM accounts WHERE name="'.$_POST['name'].'"';
if($name == ""){
echo 'No username filled in';
exit();
}elseif(mysql_num_rows(mysql_query($sel)) >= 1 ){
echo 'This username already exists!';
exit();
}elseif($pass == ""){
echo 'No password filled in';
exit();
}else{
$d = 'INSERT INTO accounts (name, password, gm) VALUES ("'.$name.'", SHA1("'.$pass.'" ), "0")';
mysql_query($d) OR die (mysql_error());
echo 'Your account has been created, you can now login.';
}
?>

But it works...

The only posts were interested in are: name, password and gm (for odinms). One could add an email checker as well, if you knew how to do it. I tried but failed, my coding skills are long gone^^
 
Junior Spellweaver
Joined
May 27, 2008
Messages
196
Reaction score
0
Re: [GUIDE]MapleStory Cms/ Registration Page

wow thx!

i was looking for the SHA1 encoding thing.. :/

hey i keep getting the error

Field 'banreason' doesn't have a default value

and same goes for the field macs... sigh :(
 
Initiate Mage
Joined
May 27, 2008
Messages
3
Reaction score
0
Re: [GUIDE]MapleStory Cms/ Registration Page

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in C:\wamp\www\config.php on line 7
Cant connect to the database
i got this error

i have the same problem, anyone know how fix it?
 
Junior Spellweaver
Joined
Sep 12, 2007
Messages
101
Reaction score
0
Re: [GUIDE]MapleStory Cms/ Registration Page

If you want your site to work, Make sure you have forwarded the port 80.
 
Junior Spellweaver
Joined
May 27, 2008
Messages
196
Reaction score
0
Re: [GUIDE]MapleStory Cms/ Registration Page

i have the same problem, anyone know how fix it?

go to config.php and write down your password there o_O

the pass to your mySQL 5.0 or 5.1
 
Newbie Spellweaver
Joined
Aug 26, 2005
Messages
58
Reaction score
1
Re: [GUIDE]MapleStory Cms/ Registration Page

u need to set the values in mysql dor the mac address and banreason to a space.. null doesnt work.. im working on it now..
 
Newbie Spellweaver
Joined
Aug 26, 2005
Messages
58
Reaction score
1
Re: [GUIDE]MapleStory Cms/ Registration Page

Got it to work with some adjustments to those using odinms with the no null value for macs and banreason..
copy and paste..

register_do.php (thks to elizabeta and ts)
Code:
<?php
print '<title>My maplestory server</title>';
$name = $_POST['name'];
$pass = $_POST['pass'];
include('config.php');
$sel = 'SELECT * FROM accounts WHERE name="'.$_POST['name'].'"';
if($name == ""){
echo 'No username filled in';
exit();
}elseif(mysql_num_rows(mysql_query($sel)) >= 1 ){
echo 'This username already exists!';
exit();
}elseif($pass == ""){
echo 'No password filled in';
exit();
}else{
$d = 'INSERT INTO accounts (name, password, banreason, macs, gm) VALUES ("'.$name.'", SHA1("'.$pass.'" ), " ", " ", "0")';
mysql_query($d) OR die (mysql_error());
echo 'Your account has been created, you can now login.';
}
?>

enjoy =)
 
Back
Top