OPEN-ISP v0.5 (pickle-lime) — rilis open-source perdana
Aplikasi billing & manajemen ISP (fiber optic) — PWA pelanggan, portal teknisi & kolektor, admin panel lengkap, multi-vendor OLT, RADIUS, WhatsApp/Telegram, pembayaran QRIS. Kredit & lisensi (ISC): - Base kode & repo: alijayanet/billing-rtrw oleh Alijaya Net — terima kasih banyak atas base kode dan repo yang bermanfaat. - Add-on: GoWA, LibreSpeed/OpenSpeedTest, Uptime Kuma, notification-forwarder. - Dikembangkan menjadi OPEN-ISP oleh oxpoe — https://github.com/oxpoe/open-isp
This commit is contained in:
commit
eaf05f2811
280 files changed
+123975
No files matched your search
@@ -0,0 +1,36 @@
|
||||
/**
|
||||
* Script untuk memeriksa data Mikhmon di database
|
||||
*/
|
||||
const path = require('path');
|
||||
const Database = require('better-sqlite3');
|
||||
|
||||
const dbPath = path.join(__dirname, '../database/billing.db');
|
||||
const db = new Database(dbPath);
|
||||
|
||||
console.log('=== MEMERIKSA DATA MIKHMON DI DATABASE ===\n');
|
||||
|
||||
// Cari profiles dengan Mikhmon
|
||||
const profiles = db.prepare(`
|
||||
SELECT name, onLogin
|
||||
FROM hotspot_profiles
|
||||
WHERE onLogin LIKE '%rem%'
|
||||
LIMIT 10
|
||||
`).all();
|
||||
|
||||
console.log(`Ditemukan ${profiles.length} profile dengan Mikhmon:\n`);
|
||||
|
||||
if (profiles.length === 0) {
|
||||
console.log('Tidak ada profile dengan Mikhmon di database.');
|
||||
} else {
|
||||
profiles.forEach((p, i) => {
|
||||
console.log(`--- Profile ${i + 1}: ${p.name} ---`);
|
||||
console.log('onLogin:', p.onLogin ? p.onLogin.substring(0, 150) + (p.onLogin.length > 150 ? '...' : '') : 'null');
|
||||
console.log('');
|
||||
});
|
||||
}
|
||||
|
||||
// Cek semua profiles
|
||||
const allProfiles = db.prepare('SELECT name, onLogin FROM hotspot_profiles LIMIT 20').all();
|
||||
console.log(`\nTotal profiles di database: ${allProfiles.length}`);
|
||||
|
||||
db.close();
|
||||
Reference in new issue
Block a user