forked from ibnux/phpmixbill-mikrotik-login-template
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 29a6671
Showing
46 changed files
with
9,420 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
Mikrotik Template Login for [PHPMIXBILL](https://github.com/ibnux/phpmixbill) | ||
---- | ||
|
||
###.:English:. | ||
This Template is for Mikrotik Login Hotspot, just put all File inside hotspot folder in Mikrotik, overwrite all. You need to have [PHPMIXBILL](https://github.com/ibnux/phpmixbill) installed somewhere. | ||
|
||
You need to edit this file, find **TODO**, and follow instruction: | ||
|
||
- billing.js | ||
- login.html | ||
- status.html | ||
- logout.html | ||
- remove **errors.txt** rename **errors.en.txt** to **errors.txt** | ||
|
||
replace **background.jpg** file with your own background | ||
|
||
Delete folder remove! | ||
|
||
###.:Indonesia:. | ||
Template ini untuk Login Hotspot Mikrotik, upload dan timpa semua file ke folder hotspot, pastikan anda juga telah memasang [PHPMIXBILL](https://github.com/ibnux/phpmixbill) di suatu server. | ||
|
||
Sebelum digunakan edit dulu file dibawah, Cari **TODO** dan ikuti petunjuknya: | ||
|
||
- billing.js | ||
- login.html | ||
- status.html | ||
- logout.html | ||
- hapus **errors.txt**, ganti nama **errors.en.txt** ke **errors.txt** | ||
|
||
Ganti **background.jpg** dengan Background anda sendiri | ||
|
||
hapus folder remove! | ||
|
||
Explanation | Penjelasan | ||
---- | ||
|
||
![MacDown logo](remove/info.png) | ||
|
||
CREDITS | ||
---- | ||
Masjid Agung Banten Wallpaper taken from [www.bantenwisata.com](http://www.bantenwisata.com/2015/09/masjid-agung-banten.html) | ||
|
||
Template created using [Bootstrap v3.3.7](http://getbootstrap.com) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<html> | ||
<head> | ||
<title>mikrotik hotspot > redirect</title> | ||
<meta http-equiv="refresh" content="2; url=$(link-redirect)"> | ||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> | ||
<meta http-equiv="pragma" content="no-cache"> | ||
<meta http-equiv="expires" content="-1"> | ||
<style type="text/css"> | ||
<!-- | ||
textarea,input,select { | ||
background-color: #FDFBFB; | ||
border: 1px #BBBBBB solid; | ||
padding: 2px; | ||
margin: 1px; | ||
font-size: 14px; | ||
color: #808080; | ||
} | ||
|
||
body{ color: #737373; font-size: 12px; font-family: verdana; } | ||
|
||
a, a:link, a:visited, a:active { color: #AAAAAA; text-decoration: none; font-size: 12px; } | ||
a:hover { border-bottom: 1px dotted #c1c1c1; color: #AAAAAA; } | ||
img {border: none;} | ||
td { font-size: 12px; color: #7A7A7A; } | ||
|
||
--> | ||
</style> | ||
<script language="JavaScript"> | ||
<!-- | ||
function startClock() { | ||
$(if popup == 'true') | ||
open('$(link-status)', 'hotspot_status', 'toolbar=0,location=0,directories=0,status=0,menubars=0,resizable=1,width=290,height=200'); | ||
$(endif) | ||
location.href = unescape('$(link-redirect-esc)'); | ||
} | ||
//--> | ||
</script> | ||
</head> | ||
<body onLoad="startClock()"> | ||
<table width="100%" height="100%"> | ||
<tr> | ||
<td align="center" valign="middle"> | ||
You are logged in | ||
<br><br> | ||
If nothing happens, click <a href="$(link-redirect)">here</a></td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
/* | ||
* billing.js | ||
* Maret 2017 | ||
* @ibnux | ||
*/ | ||
|
||
function getBillingInfo(host){ | ||
$.get( host+"Announcement.html", function( data ) { | ||
$( "#Announcement" ).html( data ); | ||
getVoucherInfo(host); | ||
}); | ||
} | ||
|
||
function getVoucherInfo(host){ | ||
$.get( host+"Order_Voucher.html", function( data ) { | ||
$( "#voucherInformation" ).html( data ); | ||
}); | ||
} | ||
// TODO: | ||
// Change url to your phpmixbill url, to folder pages | ||
// Ganti url ke alamat server phpmixbill, ke folder pages | ||
getBillingInfo("http://127.0.0.1/phpmixbill_v5.0/pages/"); |
Oops, something went wrong.