Vaihda brändäys: Noxus Intra → Noxus HUB © Empor Oy 2026
Kaikki viittaukset "Noxus Intra" vaihdettu muotoon "Noxus HUB" koko koodikannassa. Footer ja login-sivu näyttävät nyt "Noxus HUB © Empor Oy 2026". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
10
api.php
10
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 = '<div style="font-family:sans-serif;max-width:500px;margin:0 auto;">';
|
||||
$html .= '<h2 style="color:#0f3460;">Noxus Intra</h2>';
|
||||
$html .= '<h2 style="color:#0f3460;">Noxus HUB</h2>';
|
||||
$html .= '<p>Hei ' . htmlspecialchars($user['nimi'] ?: $user['username']) . ',</p>';
|
||||
$html .= '<p>Sait tämän viestin koska salasanan palautusta pyydettiin tilillesi.</p>';
|
||||
$html .= '<p><a href="' . $resetUrl . '" style="display:inline-block;background:#0f3460;color:#fff;padding:12px 24px;border-radius:8px;text-decoration:none;font-weight:600;">Vaihda salasana</a></p>';
|
||||
$html .= '<p style="color:#888;font-size:0.9em;">Linkki on voimassa 1 tunnin. Jos et pyytänyt salasanan vaihtoa, voit jättää tämän viestin huomiotta.</p>';
|
||||
$html .= '</div>';
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user