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

ربط Hot Spot

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

أجهزة MikroTik

جهاز MikroTikمجلد الصفحاتآخر نشرمفتاح الربط
— لم تُنشر 98b5c37c…
— لم تُنشر 5bebb73d…
— لم تُنشر 94dc1720…
— لم تُنشر 0d2ec5c3…
— لم تُنشر f2a0be35…
— لم تُنشر d54c0f75…
— لم تُنشر 49670cc5…
— لم تُنشر 53a9a436…
— لم تُنشر c47b7c42…
— لم تُنشر 651db7e0…
— لم تُنشر e64e41f1…
— لم تُنشر beaa78c3…
— لم تُنشر faf08b95…
— لم تُنشر 17bfa534…

كود الربط

<!-- 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)