Improve system security and help prevent unauthorized access to your account.';
$myhelp .= '
Read the StartUp guide at Anti Hacker Settings page.';
$myhelp .= '
Visit the plugin site for more details.';
$screen->add_help_tab(array(
'id' => 'wptuts-overview-tab',
'title' => __('Overview', 'plugin_domain'),
'content' => '
' . $myhelp . '
', )); return $contextual_help; } } } } function findip() { $ip = ''; if (!empty($_SERVER['HTTP_CLIENT_IP'])) { $ip = $_SERVER['HTTP_CLIENT_IP']; } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) { $ip = $_SERVER['HTTP_X_FORWARDED_FOR']; } else { $ip = $_SERVER['REMOTE_ADDR']; } $ip = trim($ip); if (!empty($ip)) return $ip; else return 'unknow'; } function whitelisted($ip, $amy_whitelist) { for ($i = 0; $i < count($amy_whitelist); $i++) { if (trim($amy_whitelist[$i]) == $ip) return 1; } return 0; } function successful_login($user_login) { global $amy_whitelist; //global $my_login_only_whitelist; //global $my_radio_all_logins; global $ip; global $admin_email; if ( ! whitelisted($ip, $amy_whitelist)) { $dt = date("Y-m-d H:i:s"); $dom = $_SERVER['SERVER_NAME']; $msg = 'This email was sent from your website '.$dom. ' by the AntiHacker plugin.