fixed alphabetical order of function in index.php
parent
34290f9cff
commit
58532aa98a
|
@ -1565,6 +1565,27 @@ function import_overboard($db, $settings)
|
|||
echo "$html_string";
|
||||
}
|
||||
|
||||
// If enabled, inserts an invisible link, leading to the bot tarpit
|
||||
function lay_trap($settings)
|
||||
{
|
||||
if ( ($settings['enable_bot_trap'] == TRUE) ) {
|
||||
$triggers = array(
|
||||
'tr', 'login', 'wellknown',
|
||||
'wp-login', 'wp-json', 'wp',
|
||||
'products', 'wp-users', 'wp-admin',
|
||||
'wp-adminer', 'adminer', 'php-myadmin',
|
||||
'wp-uploads', 'wp-content', 'wp-config',
|
||||
'wp-includes', 'static', 'img',
|
||||
'images', 'uploads', 'styles',
|
||||
'style', 'server-info', 'private_key',
|
||||
'server-status'
|
||||
);
|
||||
$count_triggers = count($triggers) - 1;
|
||||
$fake_link = $triggers[rand(0, $count_triggers)];
|
||||
echo "<div style=\"display:none\"><a href=/$fake_link></a></div>";
|
||||
}
|
||||
}
|
||||
|
||||
// Log an event to the db. Also, delete the overflow of logs as
|
||||
// defined in the config file.
|
||||
function log_event($db, $settings, $type, $text, $ip)
|
||||
|
@ -3189,27 +3210,6 @@ function show_subs_count($db, $css, $settings)
|
|||
echo "$html_string";
|
||||
}
|
||||
|
||||
// If enabled, inserts an invisible link, leading to the bot tarpit
|
||||
function lay_trap($settings)
|
||||
{
|
||||
if ( ($settings['enable_bot_trap'] == TRUE) ) {
|
||||
$triggers = array(
|
||||
'tr', 'login', 'wellknown',
|
||||
'wp-login', 'wp-json', 'wp',
|
||||
'products', 'wp-users', 'wp-admin',
|
||||
'wp-adminer', 'adminer', 'php-myadmin',
|
||||
'wp-uploads', 'wp-content', 'wp-config',
|
||||
'wp-includes', 'static', 'img',
|
||||
'images', 'uploads', 'styles',
|
||||
'style', 'server-info', 'private_key',
|
||||
'server-status'
|
||||
);
|
||||
$count_triggers = count($triggers) - 1;
|
||||
$fake_link = $triggers[rand(0, $count_triggers)];
|
||||
echo "<div style=\"display:none\"><a href=/$fake_link></a></div>";
|
||||
}
|
||||
}
|
||||
|
||||
// Show the existing subs to a user, without the count
|
||||
function show_subs_no_count($db, $css)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue