diff --git a/README.md b/README.md index 0fb8b98b..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. @@ -102,10 +106,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) diff --git a/system/controllers/register.php b/system/controllers/register.php index 13aeb2c9..27cab2f0 100644 --- a/system/controllers/register.php +++ b/system/controllers/register.php @@ -19,12 +19,14 @@ $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'); - $phonenumber = _post('username'); + if(!empty($config['sms_url'])){ + $phonenumber = $username; + } $msg = ''; if (Validator::Length($username, 35, 2) == false) { $msg .= 'Username should be between 3 to 55 characters' . '
'; @@ -73,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; 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