fix(support): /donate redirect ke oxpoe.xyz, hapus sisa teks aktivasi & nomor
All checks were successful
CI / test (push) Successful in 1m57s
All checks were successful
CI / test (push) Successful in 1m57s
- /donate, /donasi, /public/donasi -> 302 https://oxpoe.xyz - locale id/en: teks kode aktivasi diganti netral, nomor kontak dihapus - README: Gitea utama, Forgejo mirror read-only - hapus nomor dari scripts/test-admin.js
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
> 🪞 **Repositori utama:** [Gitea](https://gitea.oxpoe.xyz/oxpoe/open-isp). — rilis & unduhan ada di sana. GitHub hanya cermin kode.
|
||||
> 🪞 **Repositori utama:** [Gitea](https://gitea.oxpoe.xyz/oxpoe/open-isp) — rilis & unduhan ada di sana. **Forgejo** (forgejo.oxpoe.xyz) hanya **mirror read-only**.
|
||||
|
||||
<p align="center">
|
||||
<img src="docs/assets/banner.png" alt="OPEN-ISP" width="100%">
|
||||
|
||||
@@ -1973,13 +1973,8 @@ function ensureDonationOrderQrisUnique(baseAmount, donorPhone, donorName, notes)
|
||||
|
||||
// Halaman Publik Donasi QRIS Statis
|
||||
app.get(['/donasi', '/donate', '/public/donasi'], (req, res) => {
|
||||
const settings = getSettingsWithCache();
|
||||
res.render('donate', {
|
||||
settings,
|
||||
company: settings.company_header || 'OPEN-ISP',
|
||||
lang: req.session?.lang || 'id',
|
||||
t: res.locals.t || ((k, d) => d)
|
||||
});
|
||||
// Halaman dukungan dialihkan ke situs eksternal agar bisa dikustomisasi.
|
||||
return res.redirect(302, 'https://oxpoe.xyz');
|
||||
});
|
||||
|
||||
// Endpoint Buat Pesanan Donasi dengan Kode Unik
|
||||
|
||||
@@ -1283,20 +1283,20 @@
|
||||
"st_visible": "Visible",
|
||||
"st_hidden": "Hide",
|
||||
"st_locked": "Lock",
|
||||
"pass_label": "Activation Code (Free)",
|
||||
"pass_ph": "Enter the activation password before saving",
|
||||
"pass_hint": "Sidebar menu status changes are saved only if the activation password is correct.",
|
||||
"no_pass": "No activation code yet?",
|
||||
"get_donation": "Get a FREE activation code on the OPEN-ISP Support page",
|
||||
"or_contact": "or contact",
|
||||
"pass_label": "Menu activation",
|
||||
"pass_ph": "Not required",
|
||||
"pass_hint": "Not required.",
|
||||
"no_pass": "Menus can be shown/hidden from this page.",
|
||||
"get_donation": "Support OPEN-ISP development",
|
||||
"or_contact": "",
|
||||
"donation_page": "Free Activation Code (OPEN-ISP Support)",
|
||||
"save": "Save Sidebar Settings",
|
||||
"only_admin": "Only the main admin can change sidebar menu status.",
|
||||
"notes": "Notes",
|
||||
"note_lock": "If a Locked menu is clicked from the sidebar, the system shows how to get a FREE activation code or contact",
|
||||
"note_lock": "A locked menu stays closed until enabled from this page.",
|
||||
"note1": "Hidden status removes the menu from the sidebar and denies direct URL access.",
|
||||
"note2": "Locked status keeps the menu visible but cannot be opened until changed on this page.",
|
||||
"note3": "Menu status changes can only be saved after entering the correct activation password."
|
||||
"note3": ""
|
||||
},
|
||||
"acsdev": {
|
||||
"title": "Device Detail",
|
||||
|
||||
@@ -1283,20 +1283,20 @@
|
||||
"st_visible": "Tampil",
|
||||
"st_hidden": "Sembunyikan",
|
||||
"st_locked": "Kunci",
|
||||
"pass_label": "Kode Aktivasi (Gratis)",
|
||||
"pass_ph": "Masukkan password aktivasi sebelum menyimpan",
|
||||
"pass_hint": "Perubahan status menu sidebar hanya akan disimpan jika password aktivasi benar.",
|
||||
"no_pass": "Belum punya kode aktivasi?",
|
||||
"get_donation": "Dapatkan kode aktivasi GRATIS di halaman Dukungan OPEN-ISP",
|
||||
"or_contact": "atau hubungi",
|
||||
"pass_label": "Aktivasi menu",
|
||||
"pass_ph": "Tidak diperlukan",
|
||||
"pass_hint": "Tidak diperlukan.",
|
||||
"no_pass": "Menu bisa ditampilkan/disembunyikan dari halaman ini.",
|
||||
"get_donation": "Dukung pengembangan OPEN-ISP",
|
||||
"or_contact": "",
|
||||
"donation_page": "Kode Aktivasi Gratis (Dukungan OPEN-ISP)",
|
||||
"save": "Simpan Pengaturan Sidebar",
|
||||
"only_admin": "Hanya admin utama yang dapat mengubah status menu sidebar.",
|
||||
"notes": "Catatan",
|
||||
"note_lock": "Jika menu berstatus Kunci diklik dari sidebar, sistem menampilkan cara mengambil kode aktivasi GRATIS atau menghubungi",
|
||||
"note_lock": "Menu berstatus Kunci tidak dapat dibuka sampai diaktifkan.",
|
||||
"note1": "Status Sembunyikan akan menghilangkan menu dari sidebar dan menolak akses URL langsung.",
|
||||
"note2": "Status Kunci tetap menampilkan menu, tetapi tidak bisa dibuka sampai statusnya diubah di halaman ini.",
|
||||
"note3": "Perubahan status menu hanya dapat disimpan setelah memasukkan password aktivasi yang benar."
|
||||
"note3": ""
|
||||
},
|
||||
"acsdev": {
|
||||
"title": "Detail Perangkat",
|
||||
|
||||
@@ -48,7 +48,7 @@ function testIsAdminNumber(number) {
|
||||
// Test beberapa nomor
|
||||
const testNumbers = [
|
||||
'6281947215703',
|
||||
'081947215703',
|
||||
|
||||
'083807665697',
|
||||
'082218094778',
|
||||
'081234567890' // Nomor test yang bukan admin
|
||||
|
||||
Reference in New Issue
Block a user