mirror of
https://github.com/e107inc/e107.git
synced 2025-08-06 14:46:56 +02:00
Cleanup
This commit is contained in:
@@ -889,7 +889,7 @@ class eIPHandler
|
|||||||
// do other checks - main IP check is in _construct()
|
// do other checks - main IP check is in _construct()
|
||||||
if($this->actionCount)
|
if($this->actionCount)
|
||||||
{
|
{
|
||||||
$ip = $this->getip(); // This will be in normalised IPV6 form
|
$ip = $this->getIP(); // This will be in normalised IPV6 form
|
||||||
|
|
||||||
if ($ip !== e107::LOCALHOST_IP && ($ip !== e107::LOCALHOST_IP2) && ($ip !== $this->serverIP)) // Check host name, user email to see if banned
|
if ($ip !== e107::LOCALHOST_IP && ($ip !== e107::LOCALHOST_IP2) && ($ip !== $this->serverIP)) // Check host name, user email to see if banned
|
||||||
{
|
{
|
||||||
@@ -1049,7 +1049,7 @@ class eIPHandler
|
|||||||
}
|
}
|
||||||
if (!$ban_ip)
|
if (!$ban_ip)
|
||||||
{
|
{
|
||||||
$ban_ip = $this->getip();
|
$ban_ip = $this->getIP();
|
||||||
}
|
}
|
||||||
$ban_ip = preg_replace('/[^\w@\.:]*/', '', urldecode($ban_ip)); // Make sure no special characters
|
$ban_ip = preg_replace('/[^\w@\.:]*/', '', urldecode($ban_ip)); // Make sure no special characters
|
||||||
if (!$ban_ip)
|
if (!$ban_ip)
|
||||||
@@ -1636,8 +1636,8 @@ class banlistManager
|
|||||||
// Now run through the database updating times
|
// Now run through the database updating times
|
||||||
$numRet = 0;
|
$numRet = 0;
|
||||||
$pref['ban_durations'] = e107::getPref('ban_durations');
|
$pref['ban_durations'] = e107::getPref('ban_durations');
|
||||||
$ourDb = e107::getDB(); // Should be able to use $sql, $sql2 at this point
|
$ourDb = e107::getDb(); // Should be able to use $sql, $sql2 at this point
|
||||||
$writeDb = e107::getDB('sql2');
|
$writeDb = e107::getDb('sql2');
|
||||||
|
|
||||||
foreach ($ipAction as $ipKey => $ipInfo)
|
foreach ($ipAction as $ipKey => $ipInfo)
|
||||||
{
|
{
|
||||||
|
@@ -517,7 +517,7 @@ class e_plugin
|
|||||||
$toRemove = array();
|
$toRemove = array();
|
||||||
|
|
||||||
$save = false;
|
$save = false;
|
||||||
if ($rows = $sql->retrieve("plugin", "*", "plugin_id != '' ORDER by plugin_path ", true))
|
if ($rows = $sql->retrieve("plugin", "*", "plugin_id != 0 ORDER by plugin_path ", true))
|
||||||
{
|
{
|
||||||
|
|
||||||
foreach($rows as $row)
|
foreach($rows as $row)
|
||||||
|
Reference in New Issue
Block a user