im looking for a login and reg script if i use lavalair and just put some downloads and inbox will it work?
Login & Register Script
Collapse
X
-
it wouldnt work with out the SQL files, unless you create new ones as its only like 2/3 pages you want the database to remember so, create the while lava SQL and delete the unwanted stuff in the scripp then it should work fine, your have a login and reg script with a main menu what you can link to anything
Comment
-
what is wrong here?i dont get the submit button
<?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 "
";
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 "
";
?>
[img]images/point.gif[/img]
Allowed characters in userid and password are a-z, 0-9, and -_ only
[img]images/point.gif[/img]
No vulgar words are accepted in UserID
[img]images/point.gif[/img]
UserID and Password must contain at least 4 characters
[img]images/point.gif[/img]
UserID must begin with a letter
[img]images/point.gif[/img]
Birthday must be in this format YYYY-MM-DD
<?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(
;
}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!
";
$tolog = true;
}
echo "</p>";
}
echo "<p align=\"center\">";
if($tolog)
{
echo "<a href=\"login.php?loguid=$uid&logpwd=$pwd\"><im g 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>";
?>Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

Comment
-
help me someone please im unable to figure out why i dnt get the submit button
Failure is not when a girls leaves you, its only when you let her go virgin. heheh!!
<span style="color:#9ACD32"><span style="font-size:36pt;line-height:100%">BEST MOBILE ADVERTISER</span></span>

Comment
-
check in core.php
$rform = "$errl
";
$rform .= "$ue UserID: <input name=\"tfuid\" format=\"*x\" maxlength=\"15\"/>
";
$rform .= "$pe Password: <input type=\"password\" name=\"tfpwd\" format=\"*x\" maxlength=\"30\"/>
";
$rform .= "$ce Password: <input type=\"password\" name=\"tfcpw\" format=\"*x\" maxlength=\"30\"/>
";
$rform .= "Birthday: <input name=\"tfbdy\" format=\"*x\" maxlength=\"30\"/>
";
$rform .= "Sex:";
$rform .= "<select name=\"opsex\" value=\"M\">";
$rform .= "<option value=\"M\">Male</option>";
$rform .= "<option value=\"F\">Female</option>";
$rform .= "</select>
";
$rform .= "Location: <input name=\"tfloc\" maxlength=\"100\"/>
";
$rform .= "<anchor>Register";
$rform .= "<go href=\"register.php\" method=\"post\">";
$rform .= "<postfield name=\"uid\" value=\"$(tfuid)\"/>";
$rform .= "<postfield name=\"pwd\" value=\"$(tfpwd)\"/>";
$rform .= "<postfield name=\"cpw\" value=\"$(tfcpw)\"/>";
$rform .= "<postfield name=\"bdy\" value=\"$(tfbdy)\"/>";
$rform .= "<postfield name=\"usx\" value=\"$(opsex)\"/>";
$rform .= "<postfield name=\"ulc\" value=\"$(tfloc)\"/>";
$rform .= "</go></anchor>";
return $rform;
Comment
-
check in core.php
$rform = "$errl
";
$rform .= "$ue UserID: <input name=\"tfuid\" format=\"*x\" maxlength=\"15\"/>
";
$rform .= "$pe Password: <input type=\"password\" name=\"tfpwd\" format=\"*x\" maxlength=\"30\"/>
";
$rform .= "$ce Password: <input type=\"password\" name=\"tfcpw\" format=\"*x\" maxlength=\"30\"/>
";
$rform .= "Birthday: <input name=\"tfbdy\" format=\"*x\" maxlength=\"30\"/>
";
$rform .= "Sex:";
$rform .= "<select name=\"opsex\" value=\"M\">";
$rform .= "<option value=\"M\">Male</option>";
$rform .= "<option value=\"F\">Female</option>";
$rform .= "</select>
";
$rform .= "Location: <input name=\"tfloc\" maxlength=\"100\"/>
";
$rform .= "<anchor>Register";
$rform .= "<go href=\"register.php\" method=\"post\">";
$rform .= "<postfield name=\"uid\" value=\"$(tfuid)\"/>";
$rform .= "<postfield name=\"pwd\" value=\"$(tfpwd)\"/>";
$rform .= "<postfield name=\"cpw\" value=\"$(tfcpw)\"/>";
$rform .= "<postfield name=\"bdy\" value=\"$(tfbdy)\"/>";
$rform .= "<postfield name=\"usx\" value=\"$(opsex)\"/>";
$rform .= "<postfield name=\"ulc\" value=\"$(tfloc)\"/>";
$rform .= "</go></anchor>";
return $rform;[/b]
he's referring to the submit button in xhtml of the register form...
put this in core.php
Code:$rform = "<form action=\"register.php\" method=\"post\">"; $rform .= "$errl "; $rform .= "$ue UserID: <input name=\"tfuid\" format=\"*x\" maxlength=\"15\"/> "; $rform .= "$pe Password: <input type=\"password\" name=\"tfpwd\" format=\"*x\" maxlength=\"30\"/> "; $rform .= "$ce Password: <input type=\"password\" name=\"tfcpw\" format=\"*x\" maxlength=\"30\"/> "; $rform .= "Birthday: <input name=\"tfbdy\" maxlength=\"30\"/> "; $rform .= "Sex:"; $rform .= "<select name=\"opsex\" value=\"M\">"; $rform .= "<option value=\"M\">Male</option>"; $rform .= "<option value=\"F\">Female</option>"; $rform .= "</select> "; $rform .= "Location: <input name=\"tfloc\" maxlength=\"100\"/> "; $rform .= "<input type=\"submit\" value=\"Register\"/>"; $rform .= "</form>"; return $rform;
Comment
Comment