That was bug in myaac, the fix is here:
A free and open-source Automatic Account Creator (AAC) written in PHP - Fix config.account_premium_days for TFS 1.4+ · slawkens/myaac@b7e33c5
github.com
Remove columns you added, then clear cache in admin panel and/or restart your web server (depends what cache engine you are using). Do both to ensure it will work.
thanks for support.
but i tried put "365" or "99999" in "premium_ends_at" db to test i dont give premium.
my distro use "premdays", this fix is to use "premium_ends_at" right?
in my create account:
if($config['account_premium_days'] && $config['account_premium_days'] > 0) {
$new_account->setCustomField('premdays', $config['account_premium_days']);
$new_account->setCustomField('lastday', time());
}
but the premdays field keep 0, in onfig.php is 7
(i'm using apache2, i restarted it, cleaned the cache.. and restart the VM too. didnt work)
--
edit: in a new test, creating new account with premium POINTS, its work.
in config.php:
'account_premium_days' => 7, // default premium days on new account
'account_premium_points' => 12, // default premium points on new account
then copy the line of premium points and changed to premium days to have no mistakes..
if($config['account_premium_days']) {
$new_account->setCustomField('premdays', $config['account_premium_days']);
}
if($config['account_premium_points']) {
$new_account->setCustomField('premium_points', $config['account_premium_points']);
}
its equal.. but the premium points is added but days not