Mynamelololo
New Member
- Sep 26, 2015
- 8
- 0
How do you put a FluxRP hotel into beta mode, and how do I give a user beta access?
$query = mysqli_query('SELECT * FROM allowed_beta WHERE ip = "' . $_SERVER['REMOTE_ADDR'] . '"')->fetch_assoc();
if (isset($query))
{
continue code to able access;
}
else
{
die('access denied');
}
Problem with IP's is that they change unless you have a static IP and therefore not reliablebetter using IP Address, if that users doesn't logged in ?
How is that more reliable than what I explained above? Mine is just checking if data exists in a table to allow the user entry? This would literally take like 5 minutes to do. Your way is silly and not needed for something like thisbetter using IP Address, if that users doesn't logged in ?
Personally I think your way is much better since IP's can be spoofed aswell.How is that more reliable than what I explained above? Mine is just checking if data exists in a table to allow the user entry? This would literally take like 5 minutes to do. Your way is silly and not needed for something like this
$Query = mysqli_query('SELECT * FROM allowed_beta WHERE ip = "'.$_SERVER['REMOTE_ADDR'].'"');
$Check = mysqli_num_rows($Query);
if ($Check == 0)
{
die ('Only beta access allowed');
}
else
{
// your page content on index.php and end with
}