forked from xziino/ff14-mitigator
22 lines
752 B
PHP
22 lines
752 B
PHP
<?php
|
|
|
|
define('DEV_MODE', true); // set to false in production
|
|
define('CLIENT_ID', 'a1d27cba-b7f8-48dd-aefd-4697b457cc67');
|
|
define('REDIRECT_URI', 'http://localhost:8080/auth/callback.php');
|
|
define('AUTHORIZE_URI','https://www.fflogs.com/oauth/authorize');
|
|
define('TOKEN_URI', 'https://www.fflogs.com/oauth/token');
|
|
define('GRAPHQL_URI', 'https://www.fflogs.com/api/v2/user');
|
|
|
|
function session_start_safe(): void {
|
|
if (session_status() === PHP_SESSION_NONE) {
|
|
session_set_cookie_params([
|
|
'lifetime' => 0,
|
|
'path' => '/',
|
|
'secure' => false, // set to true in production (HTTPS)
|
|
'httponly' => true,
|
|
'samesite' => 'Lax',
|
|
]);
|
|
session_start();
|
|
}
|
|
}
|