mirror of
git://f0xx.org/android_cast
synced 2026-07-29 05:58:14 +03:00
orchestration beginning
This commit is contained in:
@@ -30,6 +30,8 @@ return [
|
||||
],
|
||||
],
|
||||
'session_name' => 'ac_crash_sess',
|
||||
// Shared login cookie across crashes, build, and other consoles under this path
|
||||
'session_cookie_path' => '/app/androidcast_project',
|
||||
// When true, upload API may include a short error hint (do not enable on public prod long-term)
|
||||
'debug' => false,
|
||||
// Phase 1 RBAC: anonymous uploads and legacy rows attach to this company
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
require_once dirname(__DIR__, 2) . '/platform/shared_session.php';
|
||||
|
||||
if (!function_exists('session_start')) {
|
||||
http_response_code(500);
|
||||
header('Content-Type: text/plain; charset=utf-8');
|
||||
@@ -27,10 +29,7 @@ if (!is_file($configPath)) {
|
||||
}
|
||||
$config = require $configPath;
|
||||
|
||||
session_name($config['session_name'] ?? 'ac_crash_sess');
|
||||
if (session_status() !== PHP_SESSION_ACTIVE) {
|
||||
session_start();
|
||||
}
|
||||
platform_start_session($config['session_name'] ?? 'ac_crash_sess', $config['session_cookie_path'] ?? '/app/androidcast_project');
|
||||
|
||||
require_once __DIR__ . '/Database.php';
|
||||
require_once __DIR__ . '/Rbac.php';
|
||||
|
||||
@@ -75,6 +75,15 @@
|
||||
<span class="nav-label" data-i18n="nav.tickets">Tickets</span>
|
||||
</a>
|
||||
</li>
|
||||
<li>
|
||||
<a href="/app/androidcast_project/build/"
|
||||
class="nav-link"
|
||||
aria-label="Builder"
|
||||
title="Builder">
|
||||
<span class="nav-icon nav-icon--git" aria-hidden="true"></span>
|
||||
<span class="nav-label">Builder</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="nav-locale">
|
||||
<div class="locale-picker" data-i18n-title="lang.label" title="Language">
|
||||
|
||||
Reference in New Issue
Block a user