<?php
declare(strict_types=1);
require_once __DIR__ . '/../app/init.php';
app_require_login();
$cid = app_integer($_GET['company_id'] ?? app_context_company_id() ?? 0);
app_redirect($cid > 0 ? 'portal.php?company_id=' . $cid : 'portal.php');
