Further automated improvements
This commit is contained in:
parent
297dca7f2c
commit
76c4fe480c
@ -45,6 +45,7 @@ trait Start
|
||||
if ($this->getWebAPITemplate() === 'legacy') {
|
||||
$this->setWebAPITemplate($settings->getTemplates()->getHtmlTemplate());
|
||||
}
|
||||
$app = null;
|
||||
if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
|
||||
$stdout = getStdout();
|
||||
$prepare = Lang::$current_lang['apiChooseManualAuto'].PHP_EOL;
|
||||
|
@ -113,6 +113,7 @@ class DoHConnector implements Connector
|
||||
}
|
||||
$flags = \STREAM_CLIENT_CONNECT | \STREAM_CLIENT_ASYNC_CONNECT;
|
||||
$timeout = $socketContext->getConnectTimeout();
|
||||
$e = null;
|
||||
foreach ($uris as $builtUri) {
|
||||
try {
|
||||
$streamContext = \stream_context_create($socketContext->withoutTlsContext()->toStreamContextArray());
|
||||
|
@ -20,7 +20,7 @@ final class ProcessRunner extends RunnerAbstract
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function start(string $session, int $request): void
|
||||
public static function start(string $session, int $startupId): void
|
||||
{
|
||||
if (\PHP_SAPI === "cli") {
|
||||
$binary = \PHP_BINARY;
|
||||
@ -48,7 +48,7 @@ final class ProcessRunner extends RunnerAbstract
|
||||
$runner,
|
||||
'madeline-ipc',
|
||||
\escapeshellarg($session),
|
||||
$request
|
||||
$startupId
|
||||
]);
|
||||
Logger::log("Starting process with $command");
|
||||
|
||||
|
@ -22,7 +22,7 @@ final class WebRunner extends RunnerAbstract
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public static function start(string $session, int $id): void
|
||||
public static function start(string $session, int $startupId): void
|
||||
{
|
||||
if (!isset($_SERVER['SERVER_NAME'])) {
|
||||
return;
|
||||
@ -75,7 +75,7 @@ final class WebRunner extends RunnerAbstract
|
||||
}
|
||||
|
||||
$params = [
|
||||
'argv' => ['madeline-ipc', $session, $id],
|
||||
'argv' => ['madeline-ipc', $session, $startupId],
|
||||
'cwd' => Magic::getcwd()
|
||||
];
|
||||
|
||||
|
@ -35,6 +35,7 @@ trait Templates
|
||||
private function webEcho(string $message = ''): \Generator
|
||||
{
|
||||
$auth = yield $this->getAuthorization();
|
||||
$form = null;
|
||||
if ($auth === MTProto::NOT_LOGGED_IN) {
|
||||
if (isset($_POST['type'])) {
|
||||
if ($_POST['type'] === 'phone') {
|
||||
|
Loading…
Reference in New Issue
Block a user