|
You last visited: Today at 16:20
Advertisement
Request Register-Page Or account Creator
Discussion on Request Register-Page Or account Creator within the CO2 Private Server forum part of the Conquer Online 2 category.
11/02/2008, 10:31
|
#1
|
elite*gold: 0
Join Date: Oct 2008
Posts: 342
Received Thanks: 66
|
Request Register-Page Or account Creator
Well i moved on ini´s but now i cant use my MySQL Register-Page Does someone know how to make one?
Would be awesome ^^
Regarts,
XNano
|
|
|
11/02/2008, 14:54
|
#2
|
elite*gold: 0
Join Date: Feb 2008
Posts: 1,590
Received Thanks: 154
|
Learn PHP, or learn some socket **** in C# and make a basic .NET account creator.
|
|
|
11/02/2008, 22:00
|
#3
|
elite*gold: 0
Join Date: Oct 2008
Posts: 342
Received Thanks: 66
|
|
|
|
11/02/2008, 22:18
|
#4
|
elite*gold: 0
Join Date: Sep 2008
Posts: 348
Received Thanks: 141
|
get it
PHP Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Web Account créator</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<label>Compte :
<input type="text" name="name" id="name" />
</label>
<br />
<label>Valider
<input type="submit" name="valid" id="valid" value="Valider" />
</label>
</form>
<?php
if (isset($_POST['valid']))
{
if (file_exists($name.".acc")) {
echo "Account already exist.";
} else {
$fd = fopen("E:/".$name.".acc", "x+");
fwrite($fd,"[Account]\r\nAccName=$name\r\nPassword=\r\nLogonCount=0\r\nLogonType=2\r\nFlags=0\r\nCharacter=");
}
}
?>
</body>
</html>
You can change where the .acc is created on line
PHP Code:
$fd = fopen("E:/".$name.".acc", "x+");
If u like it press Thanks That not mine  - Spike -
|
|
|
11/02/2008, 22:58
|
#5
|
elite*gold: 0
Join Date: Oct 2008
Posts: 342
Received Thanks: 66
|
thank you soo much my friend ima try it now n post if it work
|
|
|
11/04/2008, 00:07
|
#6
|
elite*gold: 20
Join Date: Jan 2008
Posts: 1,042
Received Thanks: 252
|
Quote:
Originally Posted by E*PvPers
get it
PHP Code:
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Web Account créator</title> </head>
<body> <form id="form1" name="form1" method="post" action=""> <label>Compte : <input type="text" name="name" id="name" /> </label> <br /> <label>Valider <input type="submit" name="valid" id="valid" value="Valider" /> </label> </form> <?php $name = $_POST['name']; if (isset($_POST['valid'])) { if (file_exists($name.".acc")) { echo "Account already exist."; } else { $fd = fopen("E:/".$name.".acc", "x+"); fwrite($fd,"[Account]\r\nAccName=$name\r\nPassword=\r\nLogonCount=0\r\nLogonType=2\r\nFlags=0\r\nCharacter="); } } ?> </body> </html>
You can change where the .acc is created on line
PHP Code:
$fd = fopen("E:/".$name.".acc", "x+");
If u like it press Thanks That not mine  - Spike -
|
That won´t work because $name is not defined, Add $name = $_POST['name']; after <?php
|
|
|
11/04/2008, 01:31
|
#7
|
elite*gold: 0
Join Date: Jul 2007
Posts: 442
Received Thanks: 105
|
heres a really simple on that works.It was made for the old samhaven source credits go to lolmaster
Quote:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Web Account créator</title>
</head>
<body>
<form id="form1" name="form1" method="post" action="">
<label>ACCOUNT ID!
<input type="text" name="name" id="name" />
</label>
<br />
<label>SUBMIT!
<input type="submit" name="SUBMIT" id="valid" value="Register!" />
</label>
</form>
<?php
if (isset($_POST['valid']))
{
if (file_exists($name.".acc")) {
echo "Account already exist.";
} else {
$fd = fopen("C:/Source/bin/debug/Accounts/".$name.".acc", "x+");
fwrite($fd,"[Account]\r\nAccName=$name\r\nPassword=\r\nLogonCount=0\r\n LogonType=2\r\nFlags=8\r\nCharacter=");
}
}
?>
</body>
</html>
|
|
|
|
11/04/2008, 01:48
|
#8
|
elite*gold: 0
Join Date: Jul 2007
Posts: 442
Received Thanks: 105
|
well heres the site i got it from
|
|
|
11/04/2008, 15:05
|
#9
|
elite*gold: 0
Join Date: Feb 2008
Posts: 217
Received Thanks: 26
|
PHP Code:
<html> <head> <title>Register.</title> </head> <body> <center> <h1>Register to play. Password will be set on first login.</h1> <form action="register.php?register=yes" method="post"> <b>Username:</b> <input type="text" name="user"><br> <input type="submit" value="Register"> </form> </center> </body> </html>
<?php //connect to the database.
$dbhost = 'localhost'; //keep as localhost $dbuser = 'root'; //keep as root $dbpass = ''; //enter in your password for your database. $dbname = 'coproj'; //probabally coproj
$conn = mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($dbname);
$user = $_POST['user'];
mysql_query("INSERT INTO accounts (AccountID, LogonType, LogonCount) VALUES ('$user','2','1')"); if ($_GET['register'] == "yes") { echo "Thank you for registering you may now play."; } ?>
Simple as it gets takes 5 minutes to learn in php..  ..
|
|
|
11/04/2008, 15:59
|
#10
|
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
|
Quote:
Originally Posted by demonscim
PHP Code:
<html>
<head>
<title>Register.</title>
</head>
<body>
<center>
<h1>Register to play. Password will be set on first login.</h1>
<form action="register.php?register=yes" method="post">
<b>Username:</b> <input type="text" name="user"><br>
<input type="submit" value="Register">
</form>
</center>
</body>
</html>
<?php
//connect to the database.
$dbhost = 'localhost'; //keep as localhost
$dbuser = 'root'; //keep as root
$dbpass = ''; //enter in your password for your database.
$dbname = 'coproj'; //probabally coproj
$conn = mysql_connect($dbhost, $dbuser, $dbpass);
mysql_select_db($dbname);
$user = $_POST['user'];
mysql_query("INSERT INTO accounts (AccountID, LogonType, LogonCount) VALUES ('$user','2','1')");
if ($_GET['register'] == "yes") {
echo "Thank you for registering you may now play.";
}
?>
Simple as it gets takes 5 minutes to learn in php..  ..
|
well learn to read now lol he said INI not mysql lol
|
|
|
11/04/2008, 19:19
|
#11
|
elite*gold: 0
Join Date: May 2008
Posts: 203
Received Thanks: 87
|
This one looks better xD.
Register.php
Code:
<?php
include("config.php");
?>
<style type="text/css">
<!--
.style1 {font-family: Arial, Helvetica, sans-serif}
-->
</style>
<div id="right">
<div class="post">
<?php
$my_connection = mysql_connect($db['info']['host'], $db['info']['user'], $db['info']['pass']);
$my_database = mysql_select_db($db['info']['name']);
?>
<form action="?op=register" method="post">
<div align="center">
<h2><span class="style1">Account creator<br>
Registration Form</span> <br />
</h2>
</div>
<table width="338" border="0" align="center">
<tr>
<td width="132" height="20" class="b01">Username:</td>
<td width="196"><label>
<input name="user" type="text" class="liteoption" id="user" size="15" maxlength="15" />
</label></td>
</tr>
<tr>
<td height="25" class="b01">Password:</td>
<td><input name="pass1" type="password" class="liteoption" id="pass1" size="15" maxlength="15" /></td>
</tr>
<tr>
<td height="24" class="b01">Re-type Password: </td>
<td><input name="pass2" type="password" class="liteoption" id="pass2" size="15" maxlength="15" /></td>
</tr>
</table>
<p align="center">
<input name="submit" type="submit" class="liteoption" value="Register" />
</p>
<p align="center"> </p>
</form>
<div align="center">
<?php
mysql_select_db($my_database);
$res = mysql_query("SELECT count(*) FROM accounts;");
$val = mysql_fetch_array($res);
echo "Total Accounts: ".$val[0]."<br />";
?>
<div align="center">
<?php
mysql_select_db($my_database);
$res2 = mysql_query("SELECT count(*) FROM characters;");
$val2 = mysql_fetch_array($res2);
echo "Total Characters: ".$val2[0]."<br />";
?>
<div align="center">
<?php
if(isset($_POST['submit'])) {
if(!$_POST['user'] || !$_POST['pass1'] || !$_POST['pass2']) {
die('You must fill in all of the fields!<BR>');
}
if(!get_magic_quotes_gpc()) {
$user = addslashes($_POST['user']);
$pass = md5($_POST['pass1']);
} else {
$user = $_POST['user'];
$pass = md5($_POST['pass1']);
}
$pass2 = md5($_POST['pass2']);
$check = mysql_query("SELECT * FROM accounts WHERE AccountID = '$user'");
$check2 = mysql_num_rows($check);
if($check2 != '0') {
die("Username: '".$user."' is in use!");
}
if($pass != $pass2) {
die('Passwords do not match!');
}
$insert_member = mysql_query("INSERT INTO accounts (AccountID, LogonType) VALUES ('$user', '2')");
if($insert_member) {
echo("<p class='b01'>Registration Complete! Click <a href=index.php>here</a> to go back to the Home page.");
} else {
echo("<p class='b01'>Registration Failed!</p>");
}}
?>
</div>
</div>
<div class="post">
<ul>
</ul>
</div>
</div>
Config.php
Code:
<?php
$db['info']['user'] = "root"; //Your Username for MySQL
$db['info']['pass'] = "root"; //Your Password for MySQL
$db['info']['host'] = "localhost"; //Your host
$db['info']['name'] = "coproj"; //Your database name
|
|
|
11/04/2008, 21:30
|
#12
|
elite*gold: 0
Join Date: Jul 2007
Posts: 442
Received Thanks: 105
|
as he stated NO MYSQL
|
|
|
11/04/2008, 21:48
|
#13
|
elite*gold: 20
Join Date: Jun 2006
Posts: 3,296
Received Thanks: 925
|
Quote:
Originally Posted by justprownage
This one looks better xD.
Register.php
Code:
<?php
include("config.php");
?>
<style type="text/css">
<!--
.style1 {font-family: Arial, Helvetica, sans-serif}
-->
</style>
<div id="right">
<div class="post">
<?php
$my_connection = mysql_connect($db['info']['host'], $db['info']['user'], $db['info']['pass']);
$my_database = mysql_select_db($db['info']['name']);
?>
<form action="?op=register" method="post">
<div align="center">
<h2><span class="style1">Account creator<br>
Registration Form</span> <br />
</h2>
</div>
<table width="338" border="0" align="center">
<tr>
<td width="132" height="20" class="b01">Username:</td>
<td width="196"><label>
<input name="user" type="text" class="liteoption" id="user" size="15" maxlength="15" />
</label></td>
</tr>
<tr>
<td height="25" class="b01">Password:</td>
<td><input name="pass1" type="password" class="liteoption" id="pass1" size="15" maxlength="15" /></td>
</tr>
<tr>
<td height="24" class="b01">Re-type Password: </td>
<td><input name="pass2" type="password" class="liteoption" id="pass2" size="15" maxlength="15" /></td>
</tr>
</table>
<p align="center">
<input name="submit" type="submit" class="liteoption" value="Register" />
</p>
<p align="center"> </p>
</form>
<div align="center">
<?php
mysql_select_db($my_database);
$res = mysql_query("SELECT count(*) FROM accounts;");
$val = mysql_fetch_array($res);
echo "Total Accounts: ".$val[0]."<br />";
?>
<div align="center">
<?php
mysql_select_db($my_database);
$res2 = mysql_query("SELECT count(*) FROM characters;");
$val2 = mysql_fetch_array($res2);
echo "Total Characters: ".$val2[0]."<br />";
?>
<div align="center">
<?php
if(isset($_POST['submit'])) {
if(!$_POST['user'] || !$_POST['pass1'] || !$_POST['pass2']) {
die('You must fill in all of the fields!<BR>');
}
if(!get_magic_quotes_gpc()) {
$user = addslashes($_POST['user']);
$pass = md5($_POST['pass1']);
} else {
$user = $_POST['user'];
$pass = md5($_POST['pass1']);
}
$pass2 = md5($_POST['pass2']);
$check = mysql_query("SELECT * FROM accounts WHERE AccountID = '$user'");
$check2 = mysql_num_rows($check);
if($check2 != '0') {
die("Username: '".$user."' is in use!");
}
if($pass != $pass2) {
die('Passwords do not match!');
}
$insert_member = mysql_query("INSERT INTO accounts (AccountID, LogonType) VALUES ('$user', '2')");
if($insert_member) {
echo("<p class='b01'>Registration Complete! Click <a href=index.php>here</a> to go back to the Home page.");
} else {
echo("<p class='b01'>Registration Failed!</p>");
}}
?>
</div>
</div>
<div class="post">
<ul>
</ul>
</div>
</div>
Config.php
Code:
<?php
$db['info']['user'] = "root"; //Your Username for MySQL
$db['info']['pass'] = "root"; //Your Password for MySQL
$db['info']['host'] = "localhost"; //Your host
$db['info']['name'] = "coproj"; //Your database name
|
INI not MySQL and CO Passwords do not use md5...
|
|
|
 |
Similar Threads
|
[Request]register page
02/16/2010 - CO2 Private Server - 2 Replies
for the 5165 source that pringle released on 4botters i've tryed every register pages that have been released and none of them work they insert it into the users folder but when u try to log all it says it invalid acc or password and both are right
|
[Request]register page
12/24/2009 - CO2 Private Server - 14 Replies
does anyone have a working register page for the 5165 source.
|
[REQUEST]Register page
06/29/2009 - CO2 Private Server - 4 Replies
i remember a while back someone posting the register script for BadMothaFukaz Private Server,
does any1 know where i can find it?
or if you have it can you upload it?
|
[Request] Register Page
03/07/2009 - CO2 Private Server - 2 Replies
You might think im a noob but I am needing a basic / easy register page ive been looking for a long time. I am tired of making accounts manually!
|
Account creator page wird gesucht....!!!
10/11/2008 - WoW Private Server - 2 Replies
Hallo erstmal an alle,
ich habe vor paar tagen ein Account creator page gesehen in WOTLK Design (ascent)
leider weis ich nicht mehr wo :)
wenn einer ein Account creator page hat soll er es mir PLS schreiben (wenn es geht als Link)
P.S. Wenn ich hier falsch bin PLS Verschieben.....
|
All times are GMT +1. The time now is 16:21.
|
|