Web Account Creator

07/27/2008 14:13 Spike21#1
I made this for people that use the private server without sql.
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+"); 
07/29/2008 19:25 KraHen#2
This is really nice, I guess that it`s useful to some people out there.
08/06/2008 00:00 gerble93#3
How do i use this, please help
08/13/2008 22:14 YukiXian#4
How it works?
08/14/2008 16:45 demonscim#5
its a registration form. It creates the character files for you. its a web registration.
08/14/2008 20:40 YukiXian#6
Quote:
Originally Posted by demonscim View Post
its a registration form. It creates the character files for you. its a web registration.
Were to place it?
10/09/2008 21:58 VisionOfLife#7
where do i place it?
10/15/2008 19:36 Spike21#8
Sorry, i didn't explain how make it work.
- Install a program to turn your server into Apapche web server (Easyphp is the easiest).
- Create a php (index.php) file with my source and put it in the main web directory ("C:\Program Files\EasyPHP 2.0b1\www" if you use easy php)
- Change the code

Code:
$fd = fopen("E:/".$name.".acc", "x+");
to link it where you account folder is

If it's on "C:\CoServ\Accounts"

Change the line to

Code:
$fd = fopen("C:/CoServ/Accounts/".$name.".acc", "x+");
10/16/2008 01:19 sananya666#9
Quote:
Originally Posted by Spike21 View Post
Sorry, i didn't explain how make it work.
- Install a program to turn your server into Apapche web server (Easyphp is the easiest).
- Create a php (index.php) file with my source and put it in the main web directory ("C:\Program Files\EasyPHP 2.0b1\www" if you use easy php)
- Change the code

Code:
$fd = fopen("E:/".$name.".acc", "x+");
to link it where you account folder is

If it's on "C:\CoServ\Accounts"

Change the line to

Code:
$fd = fopen("C:/CoServ/Accounts/".$name.".acc", "x+");
Quote:
Originally Posted by YukiXian View Post
Were to place it?
@all the people who don't know where, or how to use that code, if you have a private server of your own, it would shock me greatly, to know that you have no clue what basic html is, and where to place the file after your done.. if you don't know how to do this, you shouldn't have a server.. it's explained clearly on what to do on other guides.