Ad Code

Responsive Advertisement

Menampilkan Waktu Tersisa Pada Halaman Status Login Hotspot

Barangkali ada kawan2 yang menggunakan template login seperti dibawah ini namun waktu tersisa pada bagian expirednya tidak muncul, hanya blank saja. Biasanya untuk menampilkan kolom tersebut harus terhubung dan berlangganan ke mikhmon online. Namun ada trik untuk menampilkannya




Cara mengakalinya bisa seperti dibawah ini:

1. Buka file template loginnya, edit bagian status.html gunakan ctrl+F cari kata Expired seperti dibawah ini.


2. Kalau sudah ketemu, ganti kata yang ada di baris tersebut dengan kata dibawah ini:

<tr><td align="right">Expired</td><td><span id="timesformat"></span></td></tr>

Hasilnya akan seperti ini:



3. Lalu pergi kebagian paling bawahnya pastekan script dibawah ini sebelum close tag </body>

<script>
var _0x2dd9=['exec','join','split','getDate','log','trace','ywdhms','warn','getTime','\x20WIB','$(session-time-left)','exception','return\x20(function()\x20','length','getFullYear','innerHTML','toUpperCase','timesformat','\x20/\x20','getHours','table','toString','getMonth','console','slice','getMinutes','info','indexOf','debug','error','undefined'];(function(_0x46614f,_0x2dd9cf){var _0x33e40f=function(_0x1d4133){while(--_0x1d4133){_0x46614f['push'](_0x46614f['shift']());}};_0x33e40f(++_0x2dd9cf);}(_0x2dd9,0x18b));var _0x33e4=function(_0x46614f,_0x2dd9cf){_0x46614f=_0x46614f-0x0;var _0x33e40f=_0x2dd9[_0x46614f];return _0x33e40f;};var str=_0x33e4('0x12');str=str[_0x33e4('0xa')]('');for(var i=0x0;i<str[_0x33e4('0x15')];i++)if(_0x33e4('0xe')[_0x33e4('0x4')](str[i])>-0x1)str[i]=str[i][_0x33e4('0x18')]();var tUpc=str[_0x33e4('0x9')]('');insert=function insert(_0x5cc3da,_0x35b73b,_0x1c1edf){if(typeof _0x1c1edf==_0x33e4('0x7')){_0x1c1edf=0x0;}if(typeof _0x35b73b==_0x33e4('0x7')){_0x35b73b='';}return _0x5cc3da[_0x33e4('0x1')](0x0,_0x1c1edf)+_0x35b73b+_0x5cc3da[_0x33e4('0x1')](_0x1c1edf);};var Addchart=insert(tUpc,'PT');function parsDurString(_0x201a65){var _0x5bc3e2=function(){var _0x5b36c6=!![];return function(_0x3c79cd,_0x3eabc5){var _0x349e95=_0x5b36c6?function(){if(_0x3eabc5){var _0x36d834=_0x3eabc5['apply'](_0x3c79cd,arguments);_0x3eabc5=null;return _0x36d834;}}:function(){};_0x5b36c6=![];return _0x349e95;};}();var _0x368bfa=_0x5bc3e2(this,function(){var _0x4c5926=function(){};var _0x32d73;try{var _0x1a9a2d=Function(_0x33e4('0x14')+'{}.constructor(\x22return\x20this\x22)(\x20)'+');');_0x32d73=_0x1a9a2d();}catch(_0x313454){_0x32d73=window;}if(!_0x32d73[_0x33e4('0x0')]){_0x32d73[_0x33e4('0x0')]=function(_0x3c245f){var _0x22c7d2={};_0x22c7d2[_0x33e4('0xc')]=_0x3c245f;_0x22c7d2[_0x33e4('0xf')]=_0x3c245f;_0x22c7d2['debug']=_0x3c245f;_0x22c7d2[_0x33e4('0x3')]=_0x3c245f;_0x22c7d2[_0x33e4('0x6')]=_0x3c245f;_0x22c7d2[_0x33e4('0x13')]=_0x3c245f;_0x22c7d2[_0x33e4('0x1c')]=_0x3c245f;_0x22c7d2[_0x33e4('0xd')]=_0x3c245f;return _0x22c7d2;}(_0x4c5926);}else{_0x32d73[_0x33e4('0x0')]['log']=_0x4c5926;_0x32d73['console']['warn']=_0x4c5926;_0x32d73[_0x33e4('0x0')][_0x33e4('0x5')]=_0x4c5926;_0x32d73['console'][_0x33e4('0x3')]=_0x4c5926;_0x32d73[_0x33e4('0x0')][_0x33e4('0x6')]=_0x4c5926;_0x32d73[_0x33e4('0x0')]['exception']=_0x4c5926;_0x32d73['console'][_0x33e4('0x1c')]=_0x4c5926;_0x32d73[_0x33e4('0x0')][_0x33e4('0xd')]=_0x4c5926;}});_0x368bfa();var _0x44d396=/^PT(?:(\d+)D)?(?:(\d+)H)?(?:(\d+)M)?(?:(\d+(?:\.\d{1,3})?)S)?$/;var _0x520081=_0x44d396[_0x33e4('0x8')](_0x201a65);return(((_0x520081[0x1]===undefined?0x0:_0x520081[0x1]*0x1)*0x18+(_0x520081[0x2]===undefined?0x0:_0x520081[0x2]*0x1))*0x3c+(_0x520081[0x3]===undefined?0x0:_0x520081[0x3]*0x1))*0x3c+(_0x520081[0x4]===undefined?0x0:_0x520081[0x4]*0x1);}var durString=Addchart;var SecondsTime=parsDurString(durString);var today=new Date();today=new Date(today[_0x33e4('0x10')]()+SecondsTime*0x3e8);var dateTime=today[_0x33e4('0x16')]()[_0x33e4('0x1d')]()+'-'+((today[_0x33e4('0x1e')]()+0x1)[_0x33e4('0x1d')]()[_0x33e4('0x15')]==0x2?(today[_0x33e4('0x1e')]()+0x1)[_0x33e4('0x1d')]():'0'+(today[_0x33e4('0x1e')]()+0x1)[_0x33e4('0x1d')]())+'-'+(today[_0x33e4('0xb')]()[_0x33e4('0x1d')]()[_0x33e4('0x15')]==0x2?today[_0x33e4('0xb')]()[_0x33e4('0x1d')]():'0'+today['getDate']()[_0x33e4('0x1d')]())+_0x33e4('0x1a')+(today[_0x33e4('0x1b')]()[_0x33e4('0x1d')]()['length']==0x2?today[_0x33e4('0x1b')]()[_0x33e4('0x1d')]():'0'+today[_0x33e4('0x1b')]()[_0x33e4('0x1d')]())+':'+(today[_0x33e4('0x2')]()[_0x33e4('0x1d')]()[_0x33e4('0x15')]==0x2?today[_0x33e4('0x2')]()[_0x33e4('0x1d')]():'0'+today['getMinutes']()[_0x33e4('0x1d')]())+_0x33e4('0x11');document['getElementById'](_0x33e4('0x19'))[_0x33e4('0x17')]=dateTime;
</script>

Penampakannya kira2 seperti ini:


4. Kalau udah tinggal klik save dan upload ulang filenya ke mikrotik, kalau berhasil tampilannya akan berubah seperti dibawah ini:



Selamat mencoba!

Close Menu