Removed useless function
This commit is contained in:
parent
6ddb1f8c6a
commit
aa1d44b120
|
@ -415,17 +415,6 @@ class user
|
|||
{
|
||||
$this->tools->profiler_start("Require login");
|
||||
if(!$this->authenticated()) {
|
||||
if(get_option("intrusion_save")) {
|
||||
if(get_option("intrusion_save_info")) {
|
||||
$params = ["page" => $this->tools->get_page_url(), "ip" => $this->tools->get_ip(), "date" => date("d/m/Y"), "hour" => date("H:i.s"), "server_var" => json_encode($_SERVER)];
|
||||
} else {
|
||||
$params = ["page" => $this->tools->get_page_url(), "ip" => "redacted", "date" => date("d/m/Y"), "hour" => date("H:i.s"), "server_var" => json_encode(["redacted" => "true"])];
|
||||
}
|
||||
$this->db->insert(
|
||||
"intrusions",
|
||||
$params
|
||||
);
|
||||
}
|
||||
if($redirect) {
|
||||
$this->tools->redirect(get_option("web_url"));
|
||||
} else {
|
||||
|
|
|
@ -297,17 +297,6 @@ PRIMARY KEY (`id`)
|
|||
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
EOL);
|
||||
$db->exec(<<<"EOL"
|
||||
CREATE TABLE IF NOT EXISTS `{$prefix}_intrusions` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`page` varchar(999) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`date` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`hour` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`ip` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`server_var` varchar(9999) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
)ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
EOL);
|
||||
$db->exec(<<<"EOL"
|
||||
CREATE TABLE IF NOT EXISTS `{$prefix}_log` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`action` varchar(100) NOT NULL,
|
||||
|
@ -541,8 +530,6 @@ function initOptions($name, $visible, $developer, $password, $report_email, $own
|
|||
'web_url' => $url,
|
||||
'use_custom_error_sound' => 0,
|
||||
'use_custom_error_image' => 0,
|
||||
'intrusion_save' => 1,
|
||||
'intrusion_save_info' => 0,
|
||||
'log_save_ip' => 1,
|
||||
'cron_job_code' => str_replace(".", "", bin2hex(random_bytes(10)).base64_encode(openssl_random_pseudo_bytes(30))),
|
||||
'cron_job_enabled' => 1,
|
||||
|
|
Loading…
Reference in New Issue