Hi Guys anyone has one free rakion web or one web just for register? i need this 4 my private server...:blink:
Printable View
Hi Guys anyone has one free rakion web or one web just for register? i need this 4 my private server...:blink:
algo simple espero que te sirva
----
something simple hope that you will serve
index.php
Code:<?php
# MYSQL CONFIG
$db_usuario = "root";
$db_password = "*****";
$db_database = "rakion_db";
$db_host = "127.0.0.1:3306";
mysql_connect($db_host,$db_usuario,$db_password);
mysql_select_db($db_database);
$usuario = $_POST['t_usuario'];
$password = $_POST['t_password'];
$confir = "mal";
$error = "";
if($usuario != "" & $password != "")
{
$rt = mysql_query("SELECT * FROM user WHERE id='".$usuario."'");
$cb = mysql_num_rows($rt);
if($cb <= "0")
{
mysql_query("INSERT INTO user VALUES('".$usuario."', '".$password."', 0, 0)");
$confir = "ok";
}
else
{
$error = "la cuenta que intenta registrar ya existe";
$confir = "mal";
}
}
?>
<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1' />
<title>Rakion - Register</title>
</head>
<body>
<div align='center'>
<?
if($usuario == "" & $password == "")
{
echo "
<form action='index.php' method='post' enctype='multipart/form-data' name='register' id='register'>
<table width='256' height='147' border='0' cellpadding='0' cellspacing='0'>
<tr>
<td height='36'><div align='right'>Usuario:</div></td>
<td>
<div align='center'><input name='t_usuario' type='text' id='t_usuario' size='0' maxlength='15' />
</div>
</td>
</tr>
<tr>
<td><div align='right'>Password:</div></td>
<td>
<div align='center'><input name='t_password' type='password' id='t_password' size='0' maxlength='15' />
</div>
</td>
</tr>
<tr>
<td width='156'> </td>
<td width='202'><div align='center'>
<input name='b_regist' type='submit' id='b_regist' value='Registrat' />
</div></td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
</table>
</form>";
}
else
{
if($confir == "ok")
{
echo "La Cuenta $usuario se a registrado corectamente..!!";
}
else
{
echo $error;
}
}
?>
</div>
</body>
</html>