Fixing start time package

This commit is contained in:
iBNu Maksum 2023-06-20 14:18:10 +07:00 committed by GitHub
commit c3f1df05b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
15 changed files with 23 additions and 74 deletions

View File

@ -43,68 +43,17 @@ The problem with windows is hard to set cronjob, better Linux
## Installation ## Installation
### Git Clone [Installation instructions](https://github.com/hotspotbilling/phpnuxbill/wiki)
clone this repository or download zip or release
1. Rename **pages_template** to **pages**
2. Rename **config.sample.php** to **config.php** and make it writeable (chmod 777)
3. make writeable folder **ui/cache/** and **ui/compiled**
4. Open web and run installation
5. set [cronjob](https://github.com/hotspotbilling/phpnuxbill/wiki/Cron-Jobs) or scheduller for **system/cron.php**
6. make **config.php** unwriteable (chmod 644)
### Composer install
Go to directory you want to install
Install Composer in your system
```bash
# Debian/Ubuntu
sudo apt install composer
# Centos/Redhat
sudo yum install composer
```
install on curent directory
```bash
composer create-project hotspotbilling/phpnuxbill .
```
install on new directory
```bash
composer create-project hotspotbilling/phpnuxbill phpnuxbill
```
### Manual Installation
1. Download project from [Master Branch](https://github.com/hotspotbilling/phpnuxbill/archive/refs/heads/master.zip) or from [Release](https://github.com/hotspotbilling/phpnuxbill/releases)
2. unzip and upload it to server
3. Rename **pages_template** to **pages**
4. Rename **config.sample.php** to **config.php** and make it writeable (chmod 777)
5. make writeable folder **ui/cache/** and **ui/compiled**
6. Open web and run installation
7. set [cronjob](https://github.com/hotspotbilling/phpnuxbill/wiki/Cron-Jobs) or scheduller for **system/cron.php**
8. make **config.php** unwriteable (chmod 644)
### Docker installation
[see this repo](https://github.com/animegasan/phpnuxbill)
## UPDGRADE
for old version, below Version 6, backup **system/config.php**, delete all file except folder **pages**, upload all new files, put **config.php** in root folder (not in system folder), got to folder **/install** and run Update.
for version 6 above, just replace all files, using filezilla can choose overwrite if different file size or time.
or git pull if you use git clone
## RADIUS system ## RADIUS system
Still on development Still on development
## Community Support
- [Github Discussion](https://github.com/hotspotbilling/phpnuxbill/discussions)
- [Telegram Group](https://t.me/phpmixbill)
## Technical Support ## Technical Support
Start from Rp 500.000 or $50 Start from Rp 500.000 or $50

View File

@ -211,7 +211,7 @@ class Package
"$_L[Plan_Price] : *$_c[currency_code] " . number_format($in['price'], 2, $_c['dec_point'], $_c['thousands_sep']) . "*\n\n" . "$_L[Plan_Price] : *$_c[currency_code] " . number_format($in['price'], 2, $_c['dec_point'], $_c['thousands_sep']) . "*\n\n" .
"$_L[Username] : *$in[username]*\n" . "$_L[Username] : *$in[username]*\n" .
"$_L[Password] : **********\n\n" . "$_L[Password] : **********\n\n" .
"$_L[Created_On] :\n*" . date($_c['date_format'], strtotime($in['recharged_on'])) . " $in[time]*\n" . "$_L[Created_On] :\n*" . date($_c['date_format'], strtotime($in['recharged_on'])) . "*\n" .
"$_L[Expires_On] :\n*" . date($_c['date_format'], strtotime($in['expiration'])) . " $in[time]*\n" . "$_L[Expires_On] :\n*" . date($_c['date_format'], strtotime($in['expiration'])) . " $in[time]*\n" .
"\n\n" . "\n\n" .
"$_c[note]"; "$_c[note]";

View File

@ -101,7 +101,7 @@ switch ($action) {
<td>$plan_name</td> <td>$plan_name</td>
<td>$type</td> <td>$type</td>
<td align='right'>$price</td> <td align='right'>$price</td>
<td>$recharged_on $time </td> <td>$recharged_on</td>
<td>$expiration $time </td> <td>$expiration $time </td>
<td>$method</td> <td>$method</td>
<td>$routers</td> <td>$routers</td>
@ -270,7 +270,7 @@ EOF;
<td>$plan_name</td> <td>$plan_name</td>
<td>$type</td> <td>$type</td>
<td align='right'>$price</td> <td align='right'>$price</td>
<td>$recharged_on $time </td> <td>$recharged_on </td>
<td>$expiration $time </td> <td>$expiration $time </td>
<td>$method</td> <td>$method</td>
<td>$routers</td> <td>$routers</td>

View File

@ -263,7 +263,7 @@ switch ($action) {
"$_L[Plan_Price] : *$config[currency_code] ".number_format($in['price'],2,$config['dec_point'],$config['thousands_sep'])."*\n\n". "$_L[Plan_Price] : *$config[currency_code] ".number_format($in['price'],2,$config['dec_point'],$config['thousands_sep'])."*\n\n".
"$_L[Username] : *$in[username]*\n". "$_L[Username] : *$in[username]*\n".
"$_L[Password] : **********\n\n". "$_L[Password] : **********\n\n".
"$_L[Created_On] :\n*".date($config['date_format'], strtotime($in['recharged_on']))." $in[time]*\n". "$_L[Created_On] :\n*".date($config['date_format'], strtotime($in['recharged_on']))."*\n".
"$_L[Expires_On] :\n*".date($config['date_format'], strtotime($in['expiration']))." $in[time]*\n". "$_L[Expires_On] :\n*".date($config['date_format'], strtotime($in['expiration']))." $in[time]*\n".
"\n\n". "\n\n".
"$config[note]"; "$config[note]";
@ -738,7 +738,7 @@ switch ($action) {
"$_L[Plan_Price] : *$config[currency_code] ".number_format($in['price'],2,$config['dec_point'],$config['thousands_sep'])."*\n\n". "$_L[Plan_Price] : *$config[currency_code] ".number_format($in['price'],2,$config['dec_point'],$config['thousands_sep'])."*\n\n".
"$_L[Username] : *$in[username]*\n". "$_L[Username] : *$in[username]*\n".
"$_L[Password] : **********\n\n". "$_L[Password] : **********\n\n".
"$_L[Created_On] :\n*".date($config['date_format'], strtotime($in['recharged_on']))." $in[time]*\n". "$_L[Created_On] :\n*".date($config['date_format'], strtotime($in['recharged_on']))."*\n".
"$_L[Expires_On] :\n*".date($config['date_format'], strtotime($in['expiration']))." $in[time]*\n". "$_L[Expires_On] :\n*".date($config['date_format'], strtotime($in['expiration']))." $in[time]*\n".
"\n\n". "\n\n".
"$config[note]"; "$config[note]";

View File

@ -108,7 +108,7 @@
<tr> <tr>
<td>{$no++}</td> <td>{$no++}</td>
<td>{$expired['username']}</td> <td>{$expired['username']}</td>
<td>{date($_c['date_format'], strtotime($expired['recharged_on']))} {$expired['time']} <td>{date($_c['date_format'], strtotime($expired['recharged_on']))}
</td> </td>
<td>{date($_c['date_format'], strtotime($expired['expiration']))} {$expired['time']} <td>{date($_c['date_format'], strtotime($expired['expiration']))} {$expired['time']}
</td> </td>

View File

@ -37,7 +37,7 @@
{$_L['Username']} : <b>{$d['username']}</b><br> {$_L['Username']} : <b>{$d['username']}</b><br>
{$_L['Password']} : **********<br> {$_L['Password']} : **********<br>
<br> <br>
{$_L['Created_On']} : <b>{date($_c['date_format'], strtotime($d['recharged_on']))} {$d['time']}</b><br> {$_L['Created_On']} : <b>{date($_c['date_format'], strtotime($d['recharged_on']))}</b><br>
{$_L['Expires_On']} : <b>{date($_c['date_format'], strtotime($d['expiration']))} {$d['time']}</b><br> {$_L['Expires_On']} : <b>{date($_c['date_format'], strtotime($d['expiration']))} {$d['time']}</b><br>
============================================<br> ============================================<br>
<center>{$_c['note']}</center> <center>{$_c['note']}</center>

View File

@ -23,7 +23,7 @@
{$_L['Username']} : <b>{$in['username']}</b><br> {$_L['Username']} : <b>{$in['username']}</b><br>
{$_L['Password']} : **********<br> {$_L['Password']} : **********<br>
<br> <br>
{$_L['Created_On']} : <b>{date($_c['date_format'], strtotime($in['recharged_on']))} {$in['time']}</b><br> {$_L['Created_On']} : <b>{date($_c['date_format'], strtotime($in['recharged_on']))}</b><br>
{$_L['Expires_On']} : <b>{date($_c['date_format'], strtotime($in['expiration']))} {$in['time']}</b><br> {$_L['Expires_On']} : <b>{date($_c['date_format'], strtotime($in['expiration']))} {$in['time']}</b><br>
=====================================================<br> =====================================================<br>
<center>{$_c['note']}</center> <center>{$_c['note']}</center>

View File

@ -43,7 +43,7 @@
<td>{$ds['username']}</td> <td>{$ds['username']}</td>
<td>{$ds['namebp']}</td> <td>{$ds['namebp']}</td>
<td>{$ds['type']}</td> <td>{$ds['type']}</td>
<td>{$ds['recharged_on']} {$ds['time']}</td> <td>{$ds['recharged_on']}</td>
<td>{$ds['expiration']} {$ds['time']}</td> <td>{$ds['expiration']} {$ds['time']}</td>
<td>{$ds['method']}</td> <td>{$ds['method']}</td>
<td>{$ds['routers']}</td> <td>{$ds['routers']}</td>

View File

@ -39,7 +39,7 @@
<td class="text-center">{$ds['plan_name']}</td> <td class="text-center">{$ds['plan_name']}</td>
<td class="text-center">{$ds['type']}</td> <td class="text-center">{$ds['type']}</td>
<td class="text-right">{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</td> <td class="text-right">{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</td>
<td>{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}</td> <td>{date($_c['date_format'], strtotime($ds['recharged_on']))}</td>
<td>{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}</td> <td>{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}</td>
<td class="text-center">{$ds['method']}</td> <td class="text-center">{$ds['method']}</td>
<td class="text-center">{$ds['routers']}</td> <td class="text-center">{$ds['routers']}</td>

View File

@ -39,7 +39,7 @@
<td class="text-center">{$ds['plan_name']}</td> <td class="text-center">{$ds['plan_name']}</td>
<td class="text-center">{$ds['type']}</td> <td class="text-center">{$ds['type']}</td>
<td class="text-right">{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</td> <td class="text-right">{$_c['currency_code']} {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</td>
<td>{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}</td> <td>{date($_c['date_format'], strtotime($ds['recharged_on']))}</td>
<td>{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}</td> <td>{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}</td>
<td class="text-center">{$ds['method']}</td> <td class="text-center">{$ds['method']}</td>
<td class="text-center">{$ds['routers']}</td> <td class="text-center">{$ds['routers']}</td>

View File

@ -43,7 +43,7 @@
<td>{$ds['plan_name']}</td> <td>{$ds['plan_name']}</td>
<td class="text-right">{$_c['currency_code']} <td class="text-right">{$_c['currency_code']}
{number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</td> {number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</td>
<td>{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}</td> <td>{date($_c['date_format'], strtotime($ds['recharged_on']))}</td>
<td>{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}</td> <td>{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}</td>
<td>{$ds['method']}</td> <td>{$ds['method']}</td>
<td>{$ds['routers']}</td> <td>{$ds['routers']}</td>

View File

@ -54,7 +54,7 @@
<td>{$ds['plan_name']}</td> <td>{$ds['plan_name']}</td>
<td class="text-right">{$_c['currency_code']} <td class="text-right">{$_c['currency_code']}
{number_format($ds['price'],0,$_c['dec_point'],$_c['thousands_sep'])}</td> {number_format($ds['price'],0,$_c['dec_point'],$_c['thousands_sep'])}</td>
<td>{date($_c['date_format'], strtotime($ds['recharged_on']))} {$ds['time']}</td> <td>{date($_c['date_format'], strtotime($ds['recharged_on']))}</td>
<td>{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}</td> <td>{date($_c['date_format'], strtotime($ds['expiration']))} {$ds['time']}</td>
<td>{$ds['method']}</td> <td>{$ds['method']}</td>
<td>{$ds['routers']}</td> <td>{$ds['routers']}</td>

View File

@ -63,7 +63,8 @@
<p> <p>
{$_user['fullname']} {$_user['fullname']}
<small>Member since Nov. 2012</small> <small>{$_user['phonenumber']}</small><br>
<small>{$_user['email']}</small>
</p> </p>
</li> </li>
<li class="user-body"> <li class="user-body">

View File

@ -26,8 +26,7 @@
<td>{$ds['plan_name']}</td> <td>{$ds['plan_name']}</td>
<td>{number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</td> <td>{number_format($ds['price'],2,$_c['dec_point'],$_c['thousands_sep'])}</td>
<td>{$ds['type']}</td> <td>{$ds['type']}</td>
<td class="text-success">{date($_c['date_format'], strtotime($ds['recharged_on']))} <td class="text-success">{date($_c['date_format'], strtotime($ds['recharged_on']))}</td>
{$ds['time']}</td>
<td class="text-danger">{date($_c['date_format'], strtotime($ds['expiration']))} <td class="text-danger">{date($_c['date_format'], strtotime($ds['expiration']))}
{$ds['time']}</td> {$ds['time']}</td>
<td>{$ds['method']}</td> <td>{$ds['method']}</td>

View File

@ -70,7 +70,7 @@
<td class="small text-info text-uppercase text-normal">{$_L['Created_On']}</td> <td class="small text-info text-uppercase text-normal">{$_L['Created_On']}</td>
<td class="small mb15"> <td class="small mb15">
{if $_bill['time'] ne ''}{date($_c['date_format'], strtotime($_bill['recharged_on']))} {if $_bill['time'] ne ''}{date($_c['date_format'], strtotime($_bill['recharged_on']))}
{$_bill['time']}{/if}&nbsp;</td> {/if}&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td class="small text-danger text-uppercase text-normal">{$_L['Expires_On']}</td> <td class="small text-danger text-uppercase text-normal">{$_L['Expires_On']}</td>