[Help]Register Page >.<

Newbie Spellweaver
Joined
Nov 19, 2006
Messages
44
Reaction score
0
i got the old LG server files like hmmm 5-6 months ago
and server work good and online
i got router i opened all ports
and Register page not work i tried so many register pages.....
nothing not work..
someone can give me working register page and little guide... im so angry the server took me 1-2 month
and trying make the register page work took me 2 weeks :rip:
so please help!!!

*sorry on my bad english*
 
Do u have windows autencification ur someting if u have change it to sql server and at sql server 2005 change at remote control ur pc name and make everything online there and use at remote connection there both and go to kekku;s serverfiles and download there the tutorial.rar its a good rar there is how to make ur register page works to.
 
Upvote 0
ok i will try but i thinck its not the server problem coz my server work perfect
 
Upvote 0
i solve problem but now i cant put Register Page Online
i mean its work in LocalHost
and on my No-Ip it doesent...
i using BR DB

Help!! :/
 
Upvote 0
bump!
plz its realy important the Register page not working with my My no-Ip only on LocalHost
 
Upvote 0
Enable port 80 on router and if u have appserv then go to appserv folder at :c then Apache then bin then u see 2 icons open them both and run them and btw dont beg to much u alway gotta wait till u get answer not everybody gets answer directlyso next time try to wait plz and if u look all the posts u posted its amazing woahh so much doublepost actualy i gotta get infraction >/>
 
Last edited:
Upvote 0
i opened the port 80...
and i use Wamp
this post is 7 days and i didnt get answer
 
Upvote 0
you got alot of them...

look install WAMP then goto C:\wamp\www
and make the foloders and put in what ever you where told to
 
Upvote 0
i said the register work!! but on LocalHost man..
i got problem i cant get with no-ip..
 
Upvote 0
Open Apache Monitor and make sure the service is running. The only port you need to forward is 80~80.

What I did was this:

{Look for this line}

$conn = mssql_connect($DBHost, $DBUser, $DBPass);
mssql_select_db($DB);

change [mssql to msql]

This will show that you cannot connect, to the page at all. So..

change [msql back to mssql]

Your page should work again. At least, it did for me. Finally. ^^
 
Upvote 0
i open apache monitor only 1 service work(wampapache)
and i dont understand what the point to change to msql and then change back to mssql O.O
 
Upvote 0
bump 4 days no answare.......
i use wamp its good some ppls with router made it work just me didnt..
i made the port 80....
this is my register script
<div align="center">
<?PHP
$mssql_user = "sa";
$mssql_pass = "123456";
$mssql_database = "GunzDB";
$mssql_host = "MOSHE\GUNZSERV";
$conn = mssql_connect($mssql_host, $mssql_user, $mssql_pass);
mssql_select_db($mssql_database);
?>
<FORM METHOD=POST ACTION="<?php echo $_SERVER['PHP_SELF']; ?>?op=register&act=register">
<table cellspacing=0 border=0>
<tr>
<td colspan=2 style="border: 1px solid #003300; background: #DDDDDD;"><CENTER>
<A HREF="<?php echo $_SERVER['PHP_SELF']; ?>">Create New Account </A>
</CENTER></td>
</tr>
<tr>
<td style="border-left: 1px solid #003300"> User ID:</td>
<td style="border-right: 1px solid #003300"><INPUT TYPE="text" NAME="login" ></td>
</tr>
<tr>
<td style="border-left: 1px solid #003300"> Password:</td>
<td style="border-right: 1px solid #003300"><INPUT TYPE="password" NAME="senha1"> </td>
</tr>
<tr>
<td style="border-left: 1px solid #003300"> Retype Password: </td>
<td style="border-right: 1px solid #003300"><INPUT TYPE="password" NAME="senha2"> </td>
</tr>
<tr>
<td style="border-left: 1px solid #003300"> Email:</td>
<td style="border-right: 1px solid #003300"><INPUT TYPE="text" NAME="email"> </td>
</tr>
<tr>
<td style="border-left: 1px solid #003300"> Name: </td>
<td style="border-right: 1px solid #003300"><input name="name" type="text" id="name"></td>
</tr>
<tr>
<td style="border-left: 1px solid #003300">Age:</td>
<td style="border-right: 1px solid #003300"><input name="age" type="text" id="age"></td>
</tr>
<tr>
<td style="border-left: 1px solid #003300">Country:</td>
<td style="border-right: 1px solid #003300"><select name="country">
<option value="">Country...</option>
<option value="IL">Israel</option>
</select></td>
</tr>
<tr>
<td style="border-left: 1px solid #003300">Sex:</td>
<td style="border-right: 1px solid #003300"><select name="sex" id="sex">
<option value="0">Male</option>
<option value="1">Female</option>
</select> </td>
</tr>
<tr>
<td style="border: 1px solid #003300; border-top: 0px;" colspan=2><CENTER><INPUT NAME="Cadastrar" VALUE="Register" TYPE="submit">
<input type="reset" name="Reset" value="Reset">
</CENTER></td>
</tr>
</table>
</FORM>
<?php
if ($_GET['act'] == 'register')
{
$user = anti_injection($_POST['login']);
$pass1 = anti_injection($_POST['senha1']);
$pass2 = anti_injection($_POST['senha2']);
$email = anti_injection($_POST['email']);
$age = anti_injection($_POST['age']);
$country = anti_injection($_POST['country']);
$name = anti_injection($_POST['name']);
$sex = anti_injection($_POST['sex']);
if (valida(Array($user,$pass1,$pass2,$email,$name,$age)) == true)
{
if ($pass1 == $pass2)
{
if (ereg("([0-9,a-z,A-Z])", $user))
{
if (ereg("^([0-9,a-z,A-Z]+)([.,_]([0-9,a-z,A-Z]+))*[@]([0-9,a-z,A-Z]+)([.,_,-]([0-9,a-z,A-Z]+))*[.]([0-9,a-z,A-Z]){2}([0-9,a-z,A-Z])?$", $email))
{
$query = mssql_query("SELECT UserID FROM Account WHERE UserID='$user'");
$num_rows = mssql_num_rows($query);
if ($num_rows == 0)
{
$query = mssql_query("SELECT * FROM Account WHERE EMail='$email'");
$num_rows = mssql_num_rows($query);
if ($num_rows == 0)
{
$query = mssql_query("DECLARE @RC int DECLARE @UserID varchar(20) DECLARE @Password varchar(20) DECLARE @Cert tinyint DECLARE @Name varchar(30) DECLARE @Age smallint DECLARE @Country char(3) DECLARE @Sex tinyint DECLARE @Email varchar(50) DECLARE @Ret int EXECUTE @RC = spWebInsertAccount @UserID = '$user' ,@Password = '$pass1' ,@Cert = '1' ,@Name = '$name' ,@Age = '$age' ,@Country = '$country' ,@Sex = '$sex' ,@Email = '$email' ,@Ret = '1'");
if (!$query)
{
echo ":: Error on account register try later ::<br>";
}
else
{
echo ":: Account made succesfully ::<br>";
}

}
}
else
{
echo ":: Email in use ::<br>";
}
}
else
{
echo ":: User in use ::<br>";
}
}
else
{
echo ":: Invalid Email ::<br>";
}
}
else
{
echo ":: Only use Numbers and Letters in User ID ::<br>";
}
}
else
{
echo ":: Password not equal with other ::<br>";
}
}


$query = mssql_query("SELECT AID FROM Account");
$num_rows = mssql_num_rows($query);
echo "Number Accounts: ".$num_rows."<br>";
$query1 = mssql_query("SELECT CID From Character");
$num_rows2 = mssql_num_rows($query1);
echo "There are $num_rows2 characters made<br />";
// Funo Anti Injection

function anti_injection($sql)
{
$sql = preg_replace(sql_regcase("/(from|select|insert|delete|where|drop table|show tables|#|\*|--|\\\\)/"),"",$sql);
$sql = trim($sql);
$sql = strip_tags($sql);
$sql = addslashes($sql);
return $sql;
}

// Verificar Campos Vazios

function valida($campos){
foreach($campos as $c){
if(empty($c)){
echo ":: All fields needed ::<br>";
return false;
}else{
return true;
}
}
}
?>
</div>

Cranking.php
<?php
$srvip = "*my ip here*";
$srvport = "6000";
$mssql_user = "sa";
$mssql_pass = "123456";
$mssql_database = "GunzDB";
$mssql_host = "MOSHE\GUNZSERV";
$conn = mssql_connect($mssql_host, $mssql_user, $mssql_pass);
mssql_select_db($mssql_database);
?>
<link rel="stylesheet" type="text/css" href="style.css">
<?php
$query = mssql_query("SELECT TOP 10 * FROM Clan order by Name Desc");


?>
<style type="text/css">
<!--
.style28 {font-size: 10px}
.style29 {color: #000000; font-weight: ; font-size: 10px; }
.style1 { font-size: 10px;
font-weight: ;
}
-->
</style>
<table width="150" border="0">
<tr >
<th colspan="8" scope="row"><span class="style28">Clan Rankings</span></th>
</tr>
<tr>
<th width="24" scope="row"><span class="style28"><strong>#</strong></span></th>
<td width="24"><span class="style28"><strong>Name</strong></span></td>
<td width="23"><span class="style28"><strong>Win</strong></span></td>
<td width="23"><span class="style28"><strong>Looses</strong></span></td>


</tr>
<?php
for($i=0;$i < mssql_num_rows($query);++$i)
{
$row = mssql_fetch_row($query);
$rank = $i+1;

?>
<tr>
<th scope="row"><span class="style28"><strong><?php echo "$rank";?></strong></span></th>
<td><span class="style28"><strong><?php echo "$row[1]" ;?></strong></span></td>
<td><span class="style28"><strong><?php echo "$row[6]";?></strong></span></td>
<td><span class="style28"><strong><?php echo "$row[13]";?></strong></span></td>
</tr>
<?php }?>
</table>
players.php
<?php
$srvip = "*my ip here*";
$srvport = "6000";
$mssql_user = "sa";
$mssql_pass = "123456";
$mssql_database = "GunzDB";
$mssql_host = "MOSHE\GUNZSERV";
$conn = mssql_connect($mssql_host, $mssql_user, $mssql_pass);
mssql_select_db($mssql_database);
?>
<link rel="stylesheet" type="text/css" href="style.css">
<?php
$query = mssql_query("SELECT TOP 10 * FROM Character order by xP Desc");


?>
<style type="text/css">
<!--
.style28 {font-size: 10px}
.style29 {color: #000000; font-weight: ; font-size: 10px; }
.style1 { font-size: 10px;
font-weight: ;
}
-->
</style>
<table width="250" border="0">
<tr >
<th colspan="0" scope="row"><span class="style28">Top Player List </span></th>
</tr>
<tr>
<th width="24" scope="row"><span class="style28"><strong>#</strong></span></th>
<td width="24"><span class="style28"><strong>Name</strong></span></td>
<td width="23"><span class="style28"><strong>Level</strong></span></td>

</tr>
<?php
for($i=0;$i < mssql_num_rows($query);++$i)
{
$row = mssql_fetch_row($query);
$rank = $i+1;

?>
<tr>
<th scope="row"><span class="style28"><strong><?php echo "$rank";?></strong></span></th>
<td><span class="style28"><strong><?php echo "$row[2]" ;?></strong></span></td>
<td><span class="style28"><strong><?php echo "$row[3]";?></strong></span></td>
</tr>
<?php }?>
</table>
 
Upvote 0
Back