This repository has been archived on 2026-05-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
unalike/login/index.php
T

13 lines
302 B
PHP

<?php
include "../api_key.php";
$scope = implode("+", [ "identify", "public" ]);
$params = array(
"client_id={$client_id}",
"redirect_uri={$callback_uri}",
"response_type=code",
"scope={$scope}",
);
$url = "https://osu.ppy.sh/oauth/authorize?" . implode("&", $params);
header("Location: {$url}");