Plugin Directory

Changeset 3762754


Ignore:
Timestamp:
10/24/2026 05:13:14 AM (10 hours ago)
Author:
randem06
Message:

Version 9.0.06

Location:
botbanish-firewall-client/trunk
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • botbanish-firewall-client/trunk/BotBanish.php

    r3648298 r3762754  
    44   Plugin URI: https://botbanish.com
    55   description: A firewall to detect and eliminate bots, users and spiders that are attempting to do harm to your system performing brute force attacks, attempt to create accounts or probing for vulerabilities on your site. We Don't Report Abuse - WE STOP IT!!!
    6    Version: 9.0.05
     6   Version: 9.0.06
    77   Tested up to: 7.0.4
    88   Author: Randem Systems
    … …  
    354354        // Check this user after they log on
    355355
    356 //      $user_info = array('name' => $user_obj->data->name,
    357         $user_info = array('name' => $username,
    358                                         'username' => $user_obj->data->user_login,
    359                                         'display_name' => $user_obj->data->display_name,
    360                                         'first' => $user_obj->data->first_name,
    361                                         'last' => $user_obj->data->last_name,
    362                                         'email' => $user_obj->data->user_email,
     356        $user_info = array('name' => isset($user_obj->data->name) ? $user_obj->data->name : '',
     357                                        'username' => isset($user_obj->data->user_login) ? $user_obj->data->user_login : '',
     358                                        'display_name' => isset($user_obj->data->display_name) ? $user_obj->data->display_name : '',
     359                                        'first' => isset($user_obj->data->first_name) ? $user_obj->data->first_name : '',
     360                                        'last' => isset($user_obj->data->last_name) ? $user_obj->data->last_name : '',
     361                                        'email' => isset($user_obj->data->user_email) ? $user_obj->data->user_email : '',
    363362                                        'address' => '',
    364363                                        'phone' => '',
  • botbanish-firewall-client/trunk/bot/Analytics/BotBanishDownload.php

    r3588666 r3762754  
    11<?php
    22///////////////////////////////////////////////////////////////////////////////////////////////////////
    3 // BotBanish 7.1.06
     3// BotBanish 9.0.06
    44// Randem Systems: https://randemsystems.support
    55// BotBanish File Download Protection Script
    6 // Date: 04/12/2026
     6// Date: 08/29/2026
    77//
    88// Server Usage: https://botbanish.com/BotBanish/bot_vx.x.xx/Analytics/BotBanishDownload.php?filename=YOURFILENAME&user_id=xxxxx&system=SYSTEM&area=FILEFOLDER
    … …  
    2424        $botbanish_system = BotBanishCheckSystem();             // Will not return if system not found
    2525
    26         BotBanishTraceIt('BotBanishDownload - Start', $botbanish_system, true, false, false);
     26//      BotBanishTraceIt('BotBanishDownload - Start', $botbanish_system, true, false, false);
    2727
    2828        switch ($botbanish_system['system']) {
    … …  
    5959        $area = isset($_GET['area']) ? $_GET['area'] : $BotBanishSettings['BOTBANISH_USER_HOST'];
    6060
    61         BotBanishTraceIt('$area - Start', $area , true, false, false);
     61//      BotBanishTraceIt('$area - Start', $area , true, false, false);
    6262
    6363        $path = '/data/' . $area . '/';
    … …  
    8282        // Check for the existance of the file asked to download
    8383
    84         BotBanishTraceIt('file_exists - Start', $file_location . $file_name, true, false, false);
     84//      BotBanishTraceIt('file_exists - Start', $file_location . $file_name, true, false, false);
    8585
    8686        if (!file_exists($file_location . $file_name))
    … …  
    126126        //==================================================================
    127127
    128         BotBanishTraceIt('BotBanishCheckForHacker - Start', $file_name, true, false, false);
     128//      BotBanishTraceIt('BotBanishCheckForHacker - Start', $file_name, true, false, false);
    129129
    130130        $download_types = array(
    … …  
    160160                }
    161161
    162                 BotBanishTraceIt('BotBanishCheckForHacker - End', $file_name, true, false, false);
     162//              BotBanishTraceIt('BotBanishCheckForHacker - End', $file_name, true, false, false);
    163163
    164164                if (!$found)
  • botbanish-firewall-client/trunk/bot/Include/BotBanish_Install.php

    r3588666 r3762754  
    11<?php
    22///////////////////////////////////////////////////////////////////////////////////////////////////////
    3 // BotBanish 9.0.00
     3// BotBanish 9.0.06
    44// Randem Systems: https://randemsystems.support
    55// BotBanish Website / WordPress / OpenCart Installation Configuration
    6 // Date: 06/21/2026
     6// Date: 08/23/2026
    77// Usage: http://userdomain.com/BotBanish/bot_v4.x.xx/Server/Install/install.php
    88// Usage: http://userdomain.com/BotBanish/bot/Client/Install/install.php
    … …  
    190190                                'BOTBANISH_WEBMASTER_EMAIL' => $webmaster_email,
    191191                                'BOTBANISH_TIMEZONE' => $modSettings['default_timezone'],
    192                                 'BOTBANISH_POST_CODE' => 0,
    193                                 'BOTBANISH_SEND_EMAIL_ALERTS' => 0,
    194                                 'BOTBANISH_UPDATE_HTML_ACTIVE' => 0,
    195192                                'BOTBANISH_UPDATE_HTML_FOLDER' => $BotBanishSettings['BOTBANISH_ROOT_FOLDER'],
    196                                 'BOTBANISH_UPDATE_HTACCESS' => 1,
    197193                        );
    198194
    … …  
    218214                                        'BOTBANISH_WEBMASTER_EMAIL' => 'support@' . $_SERVER['SERVER_NAME'],
    219215                                        'BOTBANISH_TIMEZONE' => isset($_SERVER['TZ']) ? $_SERVER['TZ'] : date_default_timezone_get(),
    220                                         'BOTBANISH_POST_CODE' => 0,
    221                                         'BOTBANISH_SEND_EMAIL_ALERTS' => 1,
    222                                         'BOTBANISH_UPDATE_HTML_ACTIVE' => 0,
    223216                                        'BOTBANISH_UPDATE_HTML_FOLDER' => $BotBanishSettings['BOTBANISH_ROOT_FOLDER'],
    224                                         'BOTBANISH_UPDATE_HTACCESS' => 1,
    225217                                );
    226218
    … …  
    242234                                        'BOTBANISH_WEBMASTER_EMAIL' => 'support@' . $_SERVER['SERVER_NAME'],
    243235                                        'BOTBANISH_TIMEZONE' => isset($_SERVER['TZ']) ? $_SERVER['TZ'] : date_default_timezone_get(),
    244                                         'BOTBANISH_POST_CODE' => 0,
    245                                         'BOTBANISH_SEND_EMAIL_ALERTS' => 1,
    246                                         'BOTBANISH_UPDATE_HTML_ACTIVE' => 0,
    247236                                        'BOTBANISH_UPDATE_HTML_FOLDER' => $BotBanishSettings['BOTBANISH_ROOT_FOLDER'],
    248                                         'BOTBANISH_UPDATE_HTACCESS' => 1,
    249237                                );
    250238                        }
    … …  
    252240        }
    253241
    254         $screenData['BOTBANISH_DB_PREFIX'] = ($BotBanishSettings['BOTBANISH_INSTALL_TYPE'] == 'Server') ? 'bbs_' : 'bbc_';
    255 
     242//      $screenData['BOTBANISH_DB_PREFIX'] = ($BotBanishSettings['BOTBANISH_INSTALL_TYPE'] == 'Server') ? 'bbs_' : 'bbc_';
     243
     244        $data = array(
     245                                'BOTBANISH_POST_CODE' => 0,
     246                                'BOTBANISH_SEND_EMAIL_ALERTS' => 0,
     247                                'BOTBANISH_UPDATE_HTML_ACTIVE' => 0,
     248                                'BOTBANISH_UPDATE_HTACCESS' => 1,
     249                                'BOTBANISH_DB_PREFIX' => ($BotBanishSettings['BOTBANISH_INSTALL_TYPE'] == 'Server') ? 'bbs_' : 'bbc_',
     250                        );
     251                       
     252        $screenData = array_merge($screenData, $data);
     253       
    256254        foreach ($screenData as $key => $value) {
    257255
    … …  
    565563                                                        </tr>
    566564                                                        <tr>
    567                                                                 <td align="right">' . $BotBanishText['Timezone'] . ': </td><td>' . timezone_select_droplist('BOTBANISH_TIMEZONE', '', $screenData['BOTBANISH_TIMEZONE'], 50) . '</td>
     565                                                                <td align="right">' . $BotBanishText['Timezone'] . ': </td><td>' . timezone_select_droplist('BOTBANISH_TIMEZONE', '', $screenData['BOTBANISH_TIMEZONE'], 80) . '</td>
    568566                                                        </tr>
    569567                                                        <tr>
  • botbanish-firewall-client/trunk/bot/Subs/BotBanish_FileUpload.php

    r3620033 r3762754  
    11<?php
    22///////////////////////////////////////////////////////////////////////////////////////////////////////
    3 // BotBanish 9.0.03
     3// BotBanish 9.0.06
    44// Randem Systems: https://randemsystems.support
    55// BotBanish Autoload Functions
    6 // Date: 07/22/2026
     6// Date: 09/29/2026
    77// Usage: Upload a file to the server
    88//
    … …  
    6868                                               
    6969                                                if (file_exists($file)) {
    70 
    71                                                         unlink($file);
     70                                                        BotBanishDeleteFile($file);
    7271                                                        $flag = $flag || $x;
    7372                                                }
  • botbanish-firewall-client/trunk/bot/Subs/BotBanish_Subs_ClientCountry.php

    r3620033 r3762754  
    11<?php
    22///////////////////////////////////////////////////////////////////////////////////////////////////////
    3 // BotBanish 9.0.03
     3// BotBanish 9.0.06
    44// Randem Systems: https://randemsystems.support
    55// BotBanish Server Country Subroutines
    6 // Date: 07/22/2026
     6// Date: 09/09/2026
    77// Usage:
    88//
    … …  
    129129                }
    130130        }
    131 
     131       
     132        if (!isset($geoInfo['country_info'])) {
     133               
     134                $country_info = array();
     135                $country_info['country'] = 'Unknown';
     136                $country_info['country_code'] = '';
     137                $geoInfo = array('geo_data' => array(), 'country_info' => $country_info);
     138        }
     139       
    132140        return $geoInfo;
    133141}
  • botbanish-firewall-client/trunk/bot/Subs/BotBanish_Subs_File.php

    r3611311 r3762754  
    11<?php
    22///////////////////////////////////////////////////////////////////////////////////////////////////////
    3 // BotBanish 8.0.00
     3// BotBanish 9.0.06
    44// Randem Systems: https://randemsystems.support
    55// BotBanish Common File Subroutines
    6 // Date: 06/19/2026
     6// Date: 09/11/2026
    77// Usage:
    88//
    … …  
    6767        else
    6868                $bytes = file_put_contents($filename, $str);
     69}
     70
     71function BotBanishDeleteFile($filename) {
     72       
     73        BotBanishRestoreErrorHandler();
     74       
     75        try {
     76       
     77                if (file_exists($filename))     
     78                        unlink($filename);
     79               
     80        } catch (Exception $e) {
     81       
     82                $x = 1;
     83        };
     84       
     85        BotBanishSetErrorHandler();
    6986}
    7087
  • botbanish-firewall-client/trunk/bot/Subs/BotBanish_Subs_Log.php

    r3599912 r3762754  
    11<?php
    22///////////////////////////////////////////////////////////////////////////////////////////////////////
    3 // BotBanish 8.0.00
     3// BotBanish 9.0.06
    44// Randem Systems: https://randemsystems.support
    55// BotBanish Log file Subroutines
    6 // Date: 05/13/2026
     6// Date: 08/25/2026
    77// Usage:
    88//
    … …  
    493493        $row['http_referer'] = BotBanishEliminateData($row['http_referer']);
    494494
     495        $BotBanishSession = BotBanishGetSession();
    495496        $country_info = $BotBanishSession->getSessionKey('countryinfo');
    496497        $geo_data = $BotBanishSession->getSessionKey('geodata');
  • botbanish-firewall-client/trunk/bot/Subs/BotBanish_Subs_Maintenance.php

    r3588666 r3762754  
    11<?php
    22///////////////////////////////////////////////////////////////////////////////////////////////////////
    3 // BotBanish 8.0.00
     3// BotBanish 9.0.06
    44// Randem Systems: https://randemsystems.support
    55// BotBanish Server Database Maintenance Sub-routines
    6 // Date: 05/13/2026
     6// Date: 09/11/2026
    77// Usage: BotBanish_Subs_Maintenance.php
    88//
    … …  
    1313
    1414        $self = basename($_SERVER['PHP_SELF']);
    15         define('BOTBANISH_DIR', realpath(dirname($_SERVER['SCRIPT_FILENAME']) . '../'));
    16         $filename = BOTBANISH_DIR . '/Include/BotBanish_PreIncludes.php';
     15        define('BOTBANISH_DIR', realpath(dirname($_SERVER['SCRIPT_FILENAME']) . '/../') . '/');
     16        $filename = BOTBANISH_DIR . 'Include/BotBanish_PreIncludes.php';
    1717        include $filename;
    1818
    … …  
    4242
    4343        foreach ($files as $file)
    44                 unlink($file);
     44                BotBanishDeleteFile($file);
    4545}
    4646
    … …  
    227227                $truncate_days = $date - ($day * $BotBanishSettings['BOTBANISH_RETAIN_DAYS']); // Default 10 days
    228228
     229                $BotBanishCache = new BotBanishCache;
    229230                $BotBanishCache->cleanCacheFolder($days);
    230231        }
  • botbanish-firewall-client/trunk/bot/Subs/BotBanish_Subs_UserSpamDenial.php

    r3599912 r3762754  
    11<?php
    22///////////////////////////////////////////////////////////////////////////////////////////////////////
    3 // BotBanish 8.0.00
     3// BotBanish 9.0.06
    44// Randem Systems: https://randemsystems.support
    55// BotBanish User SPAM Denial
    6 // Date: 04/30/2026
     6// Date: 09/06/2026
    77//
    88// Function: Deny fake users
    … …  
    2222function BotBanishValidateUser($ip, $args = array()) {
    2323
    24         require $BotBanishSettings['BOTBANISH+SUBS_DIR'] . 'BotBanish_Subs_Logs.php';
     24        global $BotBanishSettings;
     25       
     26        require $BotBanishSettings['BOTBANISH_SUBS_DIR'] . 'BotBanish_Subs_Log.php';
    2527
    2628        $action = array('terminate' => false, 'error' => '', 'args' => $row);
  • botbanish-firewall-client/trunk/readme.txt

    r3648298 r3762754  
    44Requires at least: 6.8
    55Tested up to: 7.0.4
    6 Stable tag: 9.0.05
     6Stable tag: 9.0.06
    77Requires PHP: 8.2
    88Donate link: https://square.link/u/jy0LWKCQ
Note: See TracChangeset for help on using the changeset viewer.