• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[HELP] Premium trial for new accounts

krithion2424

New Member
Joined
Apr 20, 2008
Messages
73
Reaction score
1
Is there a way to give players a 3 day premium trial when they create a new account? I use ZnoteACC for theforgottenserver 1.0. I believe the zip file I downloaded was ZnoteACC-master
 
In register.php:
https://github.com/Znote/ZnoteAAC/blob/master/register.php#L92-98

Change it with this:
PHP:
$register_data = array(
    'name'    =>    $_POST['username'],
    'password'    =>    $_POST['password'],
    'email'        =>    $_POST['email'],
    'ip'    =>    ip2long(getIP()),
    'premdays' => 3,
    'created'    =>    time()
);
Znote, I have a question for you. My ACC works fine when I connect to it using my ip like this (xx.xxx.xxx.xx.com). The page loads and I am able to create accounts/characters. When I try to have other players connect they get a blank page error. They are able to connect to my server to play the game, but they cannot connect to my website. Is there something in the znote config or the server config that I need to change? I believe it is set to localhost in the znote config.
 
Back
Top