[URGENT] BETA MODE

MasterJiq

Member
Jul 8, 2016
385
23
create it with PHP just like on your index.php
Code:
$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');
}
 

JynX

Posting Freak
Feb 6, 2016
710
438
Make a table called "beta_keys" with 2 columns (key, user_id).
Make an input for beta key and name it whatever you want to.
Now you'll want to code a check to see if the BETA key exists and that the user_id is null if it is null add their user_id to the table.
Then you can code a check to see if their user id is in the beta_keys table.

Edit:
  • Changed there to their
  • Changed user_d to user_id
 
Last edited:

JynX

Posting Freak
Feb 6, 2016
710
438
better 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 this
 

Zaka

Programmer
Feb 9, 2012
471
121
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
Personally I think your way is much better since IP's can be spoofed aswell.
 

MasterJiq

Member
Jul 8, 2016
385
23
@Mynamelololo please help us to get detailed of this. If you just quite, just close this thread. Fuckyou
my code to help you:
Code:
$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
}

Someone can help create the sql for him.
 

Users who are viewing this thread

Top