1
0
mirror of https://github.com/danog/MadelineProto.git synced 2024-11-30 06:18:58 +01:00

Improve UI

This commit is contained in:
Daniil Gentili 2023-07-19 16:44:38 +02:00
parent b0c4d3562f
commit 5a14961692
Signed by: danog
GPG Key ID: 8C1BE3B34B230CA7
2 changed files with 3 additions and 4 deletions

View File

@ -150,7 +150,7 @@
"dl.php_powered_by_madelineproto": "Telegram file download server (up to 4GB), powered by <a href=\"https://docs.madelineproto.xyz\" target=\"_blank\">MadelineProto</a>!<br>Click <a href=\"https://docs.madelineproto.xyz/docs/FILES.html#getting-a-download-link\" target=\"_blank\">here</a> for more info on how to setup your very own Telegram file download server!",
"dl.php_check_logs_make_sure_session_running": "The EventHandler bot or the IPC server is offline, please check logs and make sure it is running!",
"dl.php_check_logs_make_sure_session_running": "Either the associated MadelineProto EventHandler bot or the MadelineProto IPC server are offline, please check logs and make sure at least one of them is running!",
"account_banned": "!!!!!!! WARNING !!!!!!!\nTelegram's flood prevention system suspended this account.\nTo continue, manual verification is required.\nSend an email to recover@telegram.org, asking to unban the phone number %s, and shortly describe what will you do with this phone number.\nThen login again.\nIf you intentionally deleted this account, ignore this message.",

View File

@ -166,10 +166,9 @@ final class ResponseInfo
$body .= '<p>Could not use selected range.</p>';
}
if ($this->code === HttpStatus::BAD_GATEWAY) {
$body .= '<small>'.Lang::$current_lang["dl.php_check_logs_make_sure_session_running"].'</small>';
} else {
$body .= '<small>'.Lang::$current_lang["dl.php_powered_by_madelineproto"].'</small>';
$body .= "<h2 style='color:red;'>".Lang::$current_lang["dl.php_check_logs_make_sure_session_running"].'</h2>';
}
$body .= '<small>'.Lang::$current_lang["dl.php_powered_by_madelineproto"].'</small>';
$body .= '</body></html>';
return $body;
}