chore: rename plugin to mx autologin
This commit is contained in:
+3
-3
@@ -71,7 +71,7 @@ final class Http
|
||||
return '<!doctype html><html lang="pl"><head><meta charset="utf-8">'
|
||||
. '<meta name="viewport" content="width=device-width, initial-scale=1">'
|
||||
. '<meta http-equiv="refresh" content="0;url=' . $safeUrl . '">'
|
||||
. '<title>Serwer poczty</title></head><body>'
|
||||
. '<title>Zaloguj do serwera poczty</title></head><body>'
|
||||
. '<script>(function(){var target=' . $jsonUrl . ';'
|
||||
. 'try{if(window.top){window.top.location.replace(target);return;}}catch(e){}'
|
||||
. 'window.location.replace(target);}());</script>'
|
||||
@@ -84,8 +84,8 @@ final class Http
|
||||
$safe = htmlspecialchars($message, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
|
||||
$body = '<!doctype html><html lang="pl"><head><meta charset="utf-8">'
|
||||
. '<meta name="viewport" content="width=device-width, initial-scale=1">'
|
||||
. '<title>Serwer poczty</title></head><body>'
|
||||
. '<h1>Serwer poczty</h1><p>' . $safe . '</p>'
|
||||
. '<title>Zaloguj do serwera poczty</title></head><body>'
|
||||
. '<h1>Zaloguj do serwera poczty</h1><p>' . $safe . '</p>'
|
||||
. '</body></html>';
|
||||
self::sendResponse($status, [
|
||||
'Content-Type' => 'text/html; charset=UTF-8',
|
||||
|
||||
@@ -3,8 +3,8 @@ declare(strict_types=1);
|
||||
|
||||
final class Settings
|
||||
{
|
||||
public const BASE_DIR = '/usr/local/hitme_plugins/mail-login';
|
||||
public const PLUGIN_DIR = '/usr/local/directadmin/plugins/mail-login';
|
||||
public const BASE_DIR = '/usr/local/hitme_plugins/mx_autologin';
|
||||
public const PLUGIN_DIR = '/usr/local/directadmin/plugins/mx_autologin';
|
||||
public const SECRET_DIR = self::BASE_DIR . '/secrets';
|
||||
public const LOG_DIR = self::BASE_DIR . '/logs';
|
||||
public const STATE_DIR = self::BASE_DIR . '/state';
|
||||
|
||||
Reference in New Issue
Block a user