diff --git a/api.php b/api.php index 6449edd..61781ff 100644 --- a/api.php +++ b/api.php @@ -18,7 +18,7 @@ define('SITE_URL', 'https://' . ($_SERVER['HTTP_HOST'] ?? 'intra.noxus.fi')); // Sähköpostiasetukset (fallback) define('MAIL_FROM', 'noreply@noxus.fi'); -define('MAIL_FROM_NAME', 'Noxus Intra'); +define('MAIL_FROM_NAME', 'Noxus HUB'); // Varmista data-kansio (tiedostoja varten) if (!file_exists(DATA_DIR)) mkdir(DATA_DIR, 0755, true); @@ -1258,7 +1258,7 @@ switch ($action) { break; } $url = "https://api.telegram.org/bot{$botToken}/sendMessage"; - $data = ['chat_id' => $chatId, 'text' => '✅ Noxus Intra Telegram-hälytys toimii!', 'parse_mode' => 'Markdown']; + $data = ['chat_id' => $chatId, 'text' => '✅ Noxus HUB Telegram-hälytys toimii!', 'parse_mode' => 'Markdown']; $ch = curl_init($url); curl_setopt_array($ch, [CURLOPT_POST => true, CURLOPT_POSTFIELDS => json_encode($data), CURLOPT_HTTPHEADER => ['Content-Type: application/json'], CURLOPT_RETURNTRANSFER => true, CURLOPT_TIMEOUT => 5]); $resp = curl_exec($ch); @@ -1610,7 +1610,7 @@ switch ($action) { } } if (!$branding) { - $branding = ['found' => false, 'nimi' => 'Noxus Intra', 'primary_color' => '#0f3460', 'subtitle' => 'Hallintapaneeli', 'logo_url' => '']; + $branding = ['found' => false, 'nimi' => 'Noxus HUB', 'primary_color' => '#0f3460', 'subtitle' => 'Hallintapaneeli', 'logo_url' => '']; } // Tarkista onko yrityksellä integraatioita päällä $hasIntegrations = false; @@ -1660,13 +1660,13 @@ switch ($action) { dbSaveToken($user['id'], $token); $resetUrl = SITE_URL . '/?reset=' . $token; $html = '
Hei ' . htmlspecialchars($user['nimi'] ?: $user['username']) . ',
'; $html .= 'Sait tämän viestin koska salasanan palautusta pyydettiin tilillesi.
'; $html .= ''; $html .= 'Linkki on voimassa 1 tunnin. Jos et pyytänyt salasanan vaihtoa, voit jättää tämän viestin huomiotta.
'; $html .= 'Klikkaa "Hae postit" hakeaksesi sähköpostit.
- @@ -1792,7 +1802,7 @@ diff --git a/migrate.php b/migrate.php index c291379..b0ec205 100644 --- a/migrate.php +++ b/migrate.php @@ -1,6 +1,6 @@