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 = '
'; - $html .= '

Noxus Intra

'; + $html .= '

Noxus HUB

'; $html .= '

Hei ' . htmlspecialchars($user['nimi'] ?: $user['username']) . ',

'; $html .= '

Sait tämän viestin koska salasanan palautusta pyydettiin tilillesi.

'; $html .= '

Vaihda salasana

'; $html .= '

Linkki on voimassa 1 tunnin. Jos et pyytänyt salasanan vaihtoa, voit jättää tämän viestin huomiotta.

'; $html .= '
'; - sendMail($user['email'], 'Salasanan palautus - Noxus Intra', $html); + sendMail($user['email'], 'Salasanan palautus - Noxus HUB', $html); } echo json_encode(['success' => true, 'message' => 'Jos käyttäjätunnus löytyy ja sillä on sähköposti, palautuslinkki lähetetään.']); break; diff --git a/db.php b/db.php index 983a4ec..88300e7 100644 --- a/db.php +++ b/db.php @@ -1,6 +1,6 @@ false, 'company_id' => '', - 'nimi' => 'Noxus Intra', + 'nimi' => 'Noxus HUB', 'primary_color' => '#0f3460', 'subtitle' => 'Hallintapaneeli', 'logo_url' => '', diff --git a/index.html b/index.html index b56a0c4..ceb6873 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - Noxus Intra + Noxus HUB @@ -11,7 +11,7 @@ @@ -59,7 +60,7 @@
-

Noxus Intra

+

Noxus HUB

Hallintapaneeli
@@ -1142,9 +1143,18 @@

Klikkaa "Hae postit" hakeaksesi sähköpostit.

-
- 0 tikettiä - +
+ 0 tikettiä + + Näytä + + /sivu +
@@ -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 @@