From f35c591b80523996e39abcbcfc317218e62bb9fa Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Wed, 31 May 2023 14:44:05 +0700 Subject: [PATCH 1/5] Technical Support --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 0fb8b98b..6fb4ba37 100644 --- a/README.md +++ b/README.md @@ -102,10 +102,12 @@ or git pull if you use git clone Still on development -## Paid Support +## Technical Support Start from Rp 500.000 or $50 +If you chat me for any technical support, you need to pay, except for Donors, ask anything for free in the [discussion](/hotspotbilling/phpnuxbill/discussions) page + [Telegram](https://t.me/ibnux) [Website](https://ibnux.net/layanan) From 6db447d79f78d79165fc73ab85b18324f58a4dfb Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Wed, 31 May 2023 14:46:58 +0700 Subject: [PATCH 2/5] docker info --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6fb4ba37..0388e7c7 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ install on new directory composer create-project hotspotbilling/phpnuxbill phpnuxbill ``` -## Manual Installation +### 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 @@ -90,6 +90,10 @@ composer create-project hotspotbilling/phpnuxbill phpnuxbill 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. From d9cda04f7dc7dfde3daf9faa01e8023fc8a657a1 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Thu, 8 Jun 2023 14:43:18 +0700 Subject: [PATCH 3/5] if register not using FTP, username willnot go to phonenumber --- system/controllers/register.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/system/controllers/register.php b/system/controllers/register.php index 13aeb2c9..c89caa10 100644 --- a/system/controllers/register.php +++ b/system/controllers/register.php @@ -24,7 +24,9 @@ switch ($do) { $password = _post('password'); $cpassword = _post('cpassword'); $address = _post('address'); - $phonenumber = _post('username'); + if(!empty($config['sms_url'])){ + $phonenumber = _post('username'); + } $msg = ''; if (Validator::Length($username, 35, 2) == false) { $msg .= 'Username should be between 3 to 55 characters' . '
'; From 9115d1c41bd021be1c6e9c646ee62866ab7ee661 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Thu, 8 Jun 2023 14:46:00 +0700 Subject: [PATCH 4/5] alphanumeric --- system/controllers/register.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/controllers/register.php b/system/controllers/register.php index c89caa10..27cab2f0 100644 --- a/system/controllers/register.php +++ b/system/controllers/register.php @@ -19,13 +19,13 @@ $otpPath = 'system/cache/sms/'; switch ($do) { case 'post': $otp_code = _post('otp_code'); - $username = _post('username'); + $username = alphanumeric(_post('username'),"+_."); $fullname = _post('fullname'); $password = _post('password'); $cpassword = _post('cpassword'); $address = _post('address'); if(!empty($config['sms_url'])){ - $phonenumber = _post('username'); + $phonenumber = $username; } $msg = ''; if (Validator::Length($username, 35, 2) == false) { @@ -75,7 +75,7 @@ switch ($do) { if ($msg == '') { run_hook('register_user'); #HOOK $d = ORM::for_table('tbl_customers')->create(); - $d->username = $username; + $d->username = alphanumeric($username,"+_."); $d->password = $password; $d->fullname = $fullname; $d->address = $address; From 80e86ef6cce5d3aa51763bd111165b6968128a56 Mon Sep 17 00:00:00 2001 From: Ibnu Maksum Date: Thu, 8 Jun 2023 14:52:53 +0700 Subject: [PATCH 5/5] 2023.6.6 --- version.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/version.json b/version.json index e8709e97..77d4c45b 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,4 @@ { - "version": "2023.3.12" + "version": "2023.6.6", + "changes" : "Fixing registration without OTP, Username will not go to phonenumber" } \ No newline at end of file