mirror of
https://github.com/hotspotbilling/phpnuxbill.git
synced 2025-02-22 22:43:35 +08:00
adding gitignore, fix readme, add info to cron
This commit is contained in:
parent
979475b312
commit
a895c8ad6c
3 changed files with 57 additions and 11 deletions
4
.gitignore
vendored
4
.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
|
||||
----
|
||||
|
||||
[
|
||||
@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
|
||||
by Ismail Marzuqi
|
||||
|
||||
New Features:
|
||||
===================================================
|
||||
----
|
||||
- New Coding (ORM & Smarty)
|
||||
- New Design (responsive)
|
||||
- NEW API Mikrotik (PEAR2_Net_RouterOS)
|
||||
|
@ -17,7 +34,7 @@ New Features:
|
|||
and many more...
|
||||
|
||||
STEPS: Installation
|
||||
===================================================
|
||||
----
|
||||
Auto Installer:
|
||||
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
|
||||
|
@ -37,8 +54,17 @@ To install manually, follow this steps-
|
|||
5. Import database. Database file is located here- system/install/phpmixbill.sql
|
||||
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
|
||||
====================================================
|
||||
----
|
||||
Most current web servers with PHP & MySQL installed will be capable of running PHPMixBill v5.0.
|
||||
|
||||
Minimum Requirements
|
||||
|
@ -55,5 +81,19 @@ copyright
|
|||
License
|
||||
----
|
||||
|
||||
GNU General Public License version 2 or later; see LICENSE.txt
|
||||
@donate PayPal: iesien22@yahoo.com / Bank Mandiri: 130.00.1024957.4
|
||||
GNU General Public License version 2 or later
|
||||
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'){
|
||||
$date_now = strtotime(date("Y-m-d H:i:s"));
|
||||
$expiration = strtotime($ds['expiration'].' '.$ds['time']);
|
||||
|
||||
echo $ds['expiration']." : ".$ds['username'];
|
||||
if ($date_now >= $expiration){
|
||||
echo " : EXPIRED \r\n";
|
||||
$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();
|
||||
$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
|
||||
$u->status = 'off';
|
||||
$u->save();
|
||||
}
|
||||
}else
|
||||
echo " : ACTIVE \r\n";
|
||||
}else{
|
||||
$date_now = strtotime(date("Y-m-d H:i:s"));
|
||||
$expiration = strtotime($ds['expiration'].' '.$ds['time']);
|
||||
|
||||
echo $ds['expiration']." : ".$ds['username'];
|
||||
if ($date_now >= $expiration){
|
||||
echo " : EXPIRED \r\n";
|
||||
$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();
|
||||
$m = ORM::for_table('tbl_routers')->where('name',$ds['routers'])->find_one();
|
||||
|
@ -102,7 +105,8 @@ foreach ($d as $ds){
|
|||
|
||||
$u->status = 'off';
|
||||
$u->save();
|
||||
}
|
||||
}else
|
||||
echo " : ACTIVE \r\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue