Jump to content

php name block


primefalcon

Recommended Posts

In trying to write up the following script

<?php include("banned.php") ?> <p/><br/><table class="fore" align="center"><tr><td><?php$address = $_SERVER['REMOTE_ADDR']?><?php$badname  = array("example1");?><?phpif ($rs_name == in_array($badname)){	echo "<br/><br/><center>		<font color='orange' size='4'>This name has been Blocked from the registry submitter<br/>If you are the owner of this account<br/>Please use the contact us form to verify you are the account owner<p/>Account verification requires in-game verification	</font>	</center>";	exit(); }?><?php$con = mysql_connect("erased for my own security");if (!$con)  {  die('Could not connect: ' . mysql_error());  }mysql_select_db("runeregistry", $con);$sql="INSERT INTO user_submit (rs_name,ip_address,url,description)VALUES('$_POST[rs_name]','$address','$_POST[url]','$_POST[description]')";if (!mysql_query($sql,$con))  {  die('Error: ' . mysql_error());  }echo "<center><b>Thank you for registering.</b><br/>We will add your entry as soon as possible.<p/>Please note, if you do not have a website or blog,<br/>you can easily create a blog <b>free</b> by clicking the link on the left<br/>or by clicking <a href='http://runescaperegistry.com/rrblog'><b>This Link</b></a>.<p/>After you create a blog with us, let us know if you want the link added to your Runescape Registry listing!<br/>Your blog doesn't have to be Runescape related. Just have some fun!!!<br/>However, only websites related to Runescape in some way can be posted on this registry.</center>";mysql_close($con)?>

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...