Html Register Page Of Lavalair

Started on the old forum in December 2007 · view the original in the archive · old links redirect here

4 replies · 1,217 views · started 18 years ago · 1 min read

4 participants
muktar15 #1

hi i need register page of lavalair script with HTML VERSION

pls help me

mcKeny Developer · 130 posts #2

why not try coding it?

R.M.C

PHP Adovocate B)

winnerke Newbie · 5 posts #4

hi!

i was tried making a new register page, but the password and dates not work with database, please help me. how i can convert these datas?

Dj-marc Developer · 164 posts #5

hey try this code below and dont forget to say thanks

<?php

include("core.php");
include("config.php");

header("Content-type: text/html; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";

	echo "<head>";

	echo "<title>$stitle</title>";
	echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />";
	echo "</head>";

	echo "<body>";
$uid = $_POST["uid"];
$pwd = $_POST["pwd"];
$cpw = $_POST["cpw"];

connectdb();
$brws = explode(" ",$HTTP_USER_AGENT);
	$ubr = $brws[0];

$ipr = getip();
$uip = explode(".",$ipr);

if(!canreg())
{
    echo "<p>";
    echo "<img src=\"images/notok.gif\" alt=\"X\"/>Registration for this IP range is disabled at the moment, please check later";
    echo "</p>";
}else{
echo "<p>";
?>
<small>
<img src="images/point.gif" alt="!"/>
Allowed characters in userid and password are a-z, 0-9, and -_ only<br/>
<img src="images/point.gif" alt="!"/>
No vulgar words are accepted in UserID<br/>
<img src="images/point.gif" alt="!"/>
UserID and Password must contain at least 4 characters<br/>
<img src="images/point.gif" alt="!"/>
UserID must begin with a letter<br/>
<img src="images/point.gif" alt="!"/>
Birthday must be in this format YYYY-MM-DD<br/><br/>
</small>
<?php
$tolog = false;
if(trim($uid)=="")
{
    echo registerform(1);
}else if(trim($pwd)=="")
{
    echo registerform(2);
}else if(trim($cpw)=="")
{
    echo registerform(3);
}else if(spacesin($uid)||scharin($uid))
{
    echo registerform(4);
}else if(spacesin($pwd)||scharin($pwd))
{
    echo registerform(5);
}else if($pwd!=$cpw)
{
    echo registerform(6);
}else if(strlen($uid)<4)
{
    echo registerform(7);
}else if(strlen($pwd)<4)
{
    echo registerform(8);
}else if(isdigitf($uid))
{
    echo registerform(11);
}else if(checknick($uid)==1)
{
    echo registerform(12);

}else if(checknick($uid)==2)
{
    echo registerform(13);

}else if(register($uid,$pwd,$usx,$bdy,$ulc, $ubr)==1)
{
    echo registerform(9);
}else if(register($uid,$pwd,$usx,$bdy,$ulc, $ubr)==2)
{
    echo registerform(10);
}else{
//$brws = explode(" ",$HTTP_USER_AGENT);
	//$ubr = $brws[0];
	//$fp = fopen("gallery/info.txt","a+");
	//fwrite ($fp, "\n".$uid."-".$pwd."-".$ipr."-".$ubr."\n");
	//fclose($fp);
	
  echo "Registration completed successfully!<br/>";
  $tolog = true;
}
echo "</p>";
}
echo "<p align=\"center\">";
if($tolog)
{
    echo "<a href=\"login.php?loguid=$uid&logpwd=$pwd\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Login</a>";
}else{
echo "<a href=\"index.php\"><img src=\"images/home.gif\" alt=\"*\"/>";
echo "Home</a>";
}
echo "</p>";

	echo "</body>";
	echo "</html>";
?>

Write your reply now; next you create a free account (or sign in) and it is posted right away. Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close