Initial 2005 state
This commit is contained in:
+25
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
|
||||
/*echo "<h1>Down for maintenance!</h1>";
|
||||
exit;*/
|
||||
|
||||
|
||||
$con = mysql_connect("localhost","mop_admin","droids");
|
||||
if (!$con)
|
||||
{
|
||||
die('Could not connect: ' . mysql_error());
|
||||
}
|
||||
mysql_select_db("mop_rpg", $con);
|
||||
|
||||
//Get user IP
|
||||
if($_SERVER['HTTP_X_FORWARDED_FOR']!="")
|
||||
{
|
||||
$ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$ip=$_SERVER['REMOTE_ADDR'];
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user