adding gitignore, fix readme, add info to cron
This commit is contained in:
parent
979475b312
commit
a895c8ad6c
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1,3 @@
|
|||||||
/system/config.php
|
/system/config.php
|
||||||
|
.DS_Store
|
||||||
|
.vscode/
|
52
README.md
52
README.md
@ -1,12 +1,29 @@
|
|||||||
# PHP Mikrotik Billing
|
# PHP Mikrotik Billing
|
||||||
----
|
----
|
||||||
|
|
||||||
[
|
@ibnux notes:
|
||||||
|
----
|
||||||
|
> The project maybe has been abandoned
|
||||||
|
> maybe the dev busy
|
||||||
|
> and nobody donate to him
|
||||||
|
> i will try to update as far as i can
|
||||||
|
> any Modification will be update in here
|
||||||
|
|
||||||
|
### iBNuX Todos
|
||||||
|
|
||||||
|
- Self registration, user must have voucher before registration
|
||||||
|
- SMS Notification for expired account
|
||||||
|
- PUSH Notification using onesignal
|
||||||
|
- embedable for mikrotik login template
|
||||||
|
----
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
www.phpmixbill.com
|
www.phpmixbill.com
|
||||||
by Ismail Marzuqi
|
by Ismail Marzuqi
|
||||||
|
|
||||||
New Features:
|
New Features:
|
||||||
===================================================
|
----
|
||||||
- New Coding (ORM & Smarty)
|
- New Coding (ORM & Smarty)
|
||||||
- New Design (responsive)
|
- New Design (responsive)
|
||||||
- NEW API Mikrotik (PEAR2_Net_RouterOS)
|
- NEW API Mikrotik (PEAR2_Net_RouterOS)
|
||||||
@ -17,7 +34,7 @@ New Features:
|
|||||||
and many more...
|
and many more...
|
||||||
|
|
||||||
STEPS: Installation
|
STEPS: Installation
|
||||||
===================================================
|
----
|
||||||
Auto Installer:
|
Auto Installer:
|
||||||
1. Unzip the contents of the zip file to a folder on your computer.
|
1. Unzip the contents of the zip file to a folder on your computer.
|
||||||
2. Upload the Entire phpmixbill_v5.0 folder to your website / server
|
2. Upload the Entire phpmixbill_v5.0 folder to your website / server
|
||||||
@ -37,8 +54,17 @@ To install manually, follow this steps-
|
|||||||
5. Import database. Database file is located here- system/install/phpmixbill.sql
|
5. Import database. Database file is located here- system/install/phpmixbill.sql
|
||||||
6. For security, Delete the install directory inside sysfrm folder.
|
6. For security, Delete the install directory inside sysfrm folder.
|
||||||
|
|
||||||
|
CRON JOBS
|
||||||
|
----
|
||||||
|
Run Every 4 Hours
|
||||||
|
```sh
|
||||||
|
crontab -e
|
||||||
|
0 0,4,8,12,16,20 * * * /usr/bin/php -f /path/to/phpmixbill/system/cron.php
|
||||||
|
```
|
||||||
|
Every system have different configuration for crontab
|
||||||
|
|
||||||
System Requirements
|
System Requirements
|
||||||
====================================================
|
----
|
||||||
Most current web servers with PHP & MySQL installed will be capable of running PHPMixBill v5.0.
|
Most current web servers with PHP & MySQL installed will be capable of running PHPMixBill v5.0.
|
||||||
|
|
||||||
Minimum Requirements
|
Minimum Requirements
|
||||||
@ -55,5 +81,19 @@ copyright
|
|||||||
License
|
License
|
||||||
----
|
----
|
||||||
|
|
||||||
GNU General Public License version 2 or later; see LICENSE.txt
|
GNU General Public License version 2 or later
|
||||||
@donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4
|
see LICENSE file
|
||||||
|
|
||||||
|
Donate to first Developer
|
||||||
|
----
|
||||||
|
|
||||||
|
PayPal: iesien22@yahoo.com
|
||||||
|
Bank Mandiri: 130.00.1024957.4
|
||||||
|
|
||||||
|
Donate to ibnux
|
||||||
|
----
|
||||||
|
|
||||||
|
[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=6RBNGRJMZVV7C)
|
||||||
|
BCA: 5410454825
|
||||||
|
Mandiri: 163-000-1855-793
|
||||||
|
a.n Ibnu Maksum
|
@ -32,8 +32,9 @@ foreach ($d as $ds){
|
|||||||
if($ds['type'] == 'Hotspot'){
|
if($ds['type'] == 'Hotspot'){
|
||||||
$date_now = strtotime(date("Y-m-d H:i:s"));
|
$date_now = strtotime(date("Y-m-d H:i:s"));
|
||||||
$expiration = strtotime($ds['expiration'].' '.$ds['time']);
|
$expiration = strtotime($ds['expiration'].' '.$ds['time']);
|
||||||
|
echo $ds['expiration']." : ".$ds['username'];
|
||||||
if ($date_now >= $expiration){
|
if ($date_now >= $expiration){
|
||||||
|
echo " : EXPIRED \r\n";
|
||||||
$u = ORM::for_table('tbl_user_recharges')->where('id',$ds['id'])->find_one();
|
$u = ORM::for_table('tbl_user_recharges')->where('id',$ds['id'])->find_one();
|
||||||
$c = ORM::for_table('tbl_customers')->where('id',$ds['customer_id'])->find_one();
|
$c = ORM::for_table('tbl_customers')->where('id',$ds['customer_id'])->find_one();
|
||||||
$m = ORM::for_table('tbl_routers')->where('name',$ds['routers'])->find_one();
|
$m = ORM::for_table('tbl_routers')->where('name',$ds['routers'])->find_one();
|
||||||
@ -66,12 +67,14 @@ foreach ($d as $ds){
|
|||||||
//update database user dengan status off
|
//update database user dengan status off
|
||||||
$u->status = 'off';
|
$u->status = 'off';
|
||||||
$u->save();
|
$u->save();
|
||||||
}
|
}else
|
||||||
|
echo " : ACTIVE \r\n";
|
||||||
}else{
|
}else{
|
||||||
$date_now = strtotime(date("Y-m-d H:i:s"));
|
$date_now = strtotime(date("Y-m-d H:i:s"));
|
||||||
$expiration = strtotime($ds['expiration'].' '.$ds['time']);
|
$expiration = strtotime($ds['expiration'].' '.$ds['time']);
|
||||||
|
echo $ds['expiration']." : ".$ds['username'];
|
||||||
if ($date_now >= $expiration){
|
if ($date_now >= $expiration){
|
||||||
|
echo " : EXPIRED \r\n";
|
||||||
$u = ORM::for_table('tbl_user_recharges')->where('id',$ds['id'])->find_one();
|
$u = ORM::for_table('tbl_user_recharges')->where('id',$ds['id'])->find_one();
|
||||||
$c = ORM::for_table('tbl_customers')->where('id',$ds['customer_id'])->find_one();
|
$c = ORM::for_table('tbl_customers')->where('id',$ds['customer_id'])->find_one();
|
||||||
$m = ORM::for_table('tbl_routers')->where('name',$ds['routers'])->find_one();
|
$m = ORM::for_table('tbl_routers')->where('name',$ds['routers'])->find_one();
|
||||||
@ -102,7 +105,8 @@ foreach ($d as $ds){
|
|||||||
|
|
||||||
$u->status = 'off';
|
$u->status = 'off';
|
||||||
$u->save();
|
$u->save();
|
||||||
}
|
}else
|
||||||
|
echo " : ACTIVE \r\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user