Fortera Global
Intermediate OT User
- Joined
- Nov 20, 2015
- Messages
- 1,181
- Solutions
- 2
- Reaction score
- 117
I'm trying one code to: player will need write recovery key in some field for continue..
something like this:
Edited:
something like this:
Edited:
PHP:
$main_content .= '<TD WIDTH=10%><input required name="key" type=text min="2" max="10"></TD>';
$rec_key = trim($_REQUEST['key']);
$temp_account = new Account();
$account_key = $temp_account->getCustomField('key');
if(empty($account_key))
{
$main_content .= 'Administrator, recovery key is empty';
}else
{
if(!$account_key == $rec_key)
{
$main_content .= 'Administrator, recovery key could not be found';
}else
{
$temp_account->find($config['site']['charactertrade']['secret_account_name']);
if (!$temp_account->isLoaded())
{
$main_content .= 'Administrator, secret account could not be found';
}else
{
$main_content .= 'something here';
}
}
Last edited by a moderator: