Skip to content

Commit

Permalink
minor fixes for some PHP setups
Browse files Browse the repository at this point in the history
  • Loading branch information
bitslip6 committed Jan 19, 2021
1 parent 7c21d98 commit be179a6
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bitfire.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

const BITFIRE_API_FN = array('\\BitFire\\get_block_types', '\\BitFire\\get_ip_data', '\\BitFire\\get_hr_data', '\\BitFire\\make_code');
const BITFIRE_METRICS_INIT = array(10000 => 0, 11000 => 0, 12000 => 0, 13000 => 0, 14000 => 0, 15000 => 0, 16000 => 0, 17000 => 0, 18000 => 0, 19000 => 0, 20000 => 0, 21000 => 0, 22000 => 0, 23000 => 0, 24000 => 0, 25000 => 0, 26000 => 0, 70000 => 0);
const BITFIRE_VER = 116;
const BITFIRE_VER = 119;
const BITFIRE_DOMAIN = "http://api.bitslip6.com";
const BITFIRE_COMMAND = "BITFIRE_API";

Expand Down
1 change: 1 addition & 0 deletions botfilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ function agent_in_list(string $a, string $ip, array $list) : int {
foreach ($list as $k => $v) {

if (strpos($a, $k) === false) { continue; }
if ($v === "*") { return 1; }

// reverse lookup, or just return found
$r = (substr($v, 0, 2) == "AS") ?
Expand Down
2 changes: 1 addition & 1 deletion config.ini.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
),
'whitelist_enable' => 'report',
'blacklist_enable' => true,
'require_full_browser' => 'report',
'require_full_browser' => false,
'honeypot_url' => '/ztcegizz/contact',
'check_domain' => false,
'valid_domains' =>
Expand Down
1 change: 1 addition & 0 deletions util.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@ function ip_to_file($ip_num) {
* ugly AF
*/
function ip_to_country($ip) : int {
if (empty($ip)) { return 0; }
$n = ip2long($ip);
$d = file_get_contents(WAF_DIR.ip_to_file($n));
$len = strlen($d);
Expand Down
2 changes: 1 addition & 1 deletion views/dashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ <h6 class="text-uppercase mb-0">Basics</h6>

<!-- Pretitle -->
<h6 class="header-pretitle">
BitFire non-commercial: Release 1.1.6
BitFire non-commercial: Release 1.1.9
</h6>
<p style="font-size:.75rem;color:#666;">BitFire non-commercial is free to use for non commercial websites.
BitFirePro is licensed for commercial use and includes cash back guarantee if your site is compromised.</p>
Expand Down

0 comments on commit be179a6

Please sign in to comment.