/
TwixoffStudio
/
streamlive
Обзор
Документация
Войти
/
TwixoffStudio
/
streamlive
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
auth/oauth_start.php
18 строк
541 B
OinktechLLC
Harden auth redirects and mobile layout
21 июл 2026, 12:50
21 июл 2026, 12:50
fec4178
Код
Авторство
О чём код?
<?php require_once __DIR__ . '/../includes/functions.php'; require_once __DIR__ . '/../includes/auth.php'; require_once __DIR__ . '/../includes/oauth.php'; $providerName = $_GET['provider'] ?? ''; $client = OAuthClient::find($providerName); if (isset($_GET['next'])) { $_SESSION['login_next'] = normalize_auth_redirect_target($_GET['next'], '/dashboard.php'); } if (!$client) { http_response_code(404); die('Провайдер не настроен или отключён'); } header('Location: ' . $client->authorizeUrl()); exit;