شبكة تجريبيةتجريبي
8

ربط Hot Spot

محاولات الدخول (24 ساعة)
156
مقبولة
145
مرفوضة
11
كلمة المرور غير صحيحة. (11)
الأجهزة
156

أجهزة MikroTik

جهاز MikroTikمجلد الصفحاتآخر نشرمفتاح الربط
— لم تُنشر 9e0e2399…
— لم تُنشر 1c62a93f…
— لم تُنشر 49990676…
— لم تُنشر 2585a6fb…
— لم تُنشر e0e2f48f…
— لم تُنشر a1965ee7…
— لم تُنشر 1a1f225b…
— لم تُنشر 32951e46…
— لم تُنشر 75ef4fe3…
— لم تُنشر 33113ebd…
— لم تُنشر 84c9768d…
— لم تُنشر eabaf952…
— لم تُنشر 78fccf0f…
— لم تُنشر 56eaa601…

كود الربط

<!-- login.html — مكان إعلانات الصفحة (اختياري، تُدار من «إعلانات الصفحة») -->
<div id="sn-ads"></div>

<!-- login.html — قبل </body> -->
<script>
  window.SN_MT = {
    linkLogin: '$(link-login-only)',
    linkOrig: '$(link-orig)',
    chapId: '$(chap-id)',
    chapChallenge: '$(chap-challenge)',
    mac: '$(mac)',
    ip: '$(ip)',
    error: '$(error)'
  };
</script>
<script src="sn-config.js"></script>
<script src="try.js"></script>
<script>
  // form: نموذج الدخول في صفحتك، code: حقل رقم الكرت، password: حقل كلمة المرور (اختياري)
  document.getElementById('form').onsubmit = function (e) {
    e.preventDefault();
    SNHotspot.login({
      code: document.getElementById('code').value,
      password: document.getElementById('password') ? document.getElementById('password').value : '',
      onLoading: function (busy) { /* إظهار/إخفاء مؤشر التحميل */ },
      onError: function (err) {
        // err.code: رمز السبب، err.message: رسالة جاهزة بالعربية، err.needPassword: الكرت يتطلب كلمة مرور
        document.getElementById('message').textContent = err.message;
      }
    });
  };
</script>
<!-- status.html — قبل </body> -->
<script>
  window.SN_MT = { username: '$(username)', mac: '$(mac)' };
</script>
<script src="sn-config.js"></script>
<script src="try.js"></script>
<script>
  SNHotspot.status({
    onResult: function (res) {
      if (!res.ok) { return; }
      var i = res.info; // كرت: category, expires_at, remaining_time, remaining_data, used_time, used_data, speed
                        // مشترك: name, plan, expires_at, remaining_data
      if (i.remaining_time != null) { document.getElementById('time-left').textContent = SNHotspot.formatDuration(i.remaining_time); }
      if (i.remaining_data != null) { document.getElementById('data-left').textContent = SNHotspot.formatBytes(i.remaining_data); }
    }
  });
</script>
<!-- قائمة الأسعار من النظام (اختياري) -->
<script>
  SNHotspot.info(function (res) {
    if (!res.ok) { return; }
    // res.network, res.phone, res.whatsapp, res.currency
    // res.categories[]: name, price, price_text, time, validity, data, speed, color
    var html = '';
    for (var k = 0; k < res.categories.length; k++) {
      var c = res.categories[k];
      html += '<li>' + c.name + ' — ' + c.price_text + '</li>';
    }
    document.getElementById('prices').innerHTML = html;
  });
</script>

الإعداد

رابط النظام
https://madix.org/try
ملف المكتبة
try.js
تحديث المكتبة
2026-12-05 16:25
مهلة الاتصال
8 ثانية
عند تعذّر الوصول
دخول مباشر عبر جهاز MikroTik
مستخدمو MikroTik المحليون
يدخلون مباشرة عبر الجهاز
إعدادات Hot Spot

دوال المكتبة

SNHotspot.login(options)
SNHotspot.status(options)
SNHotspot.info(callback)
SNHotspot.renderAds('#sn-ads')
SNHotspot.ads(callback)
SNHotspot.submitLogin(user, pass)
SNHotspot.normalize(code)
SNHotspot.formatBytes(bytes)
SNHotspot.formatDuration(seconds)