diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c5b4135..4aac06d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ # CHANGELOG +## 2023.7.28 + +- Fix link buy Voucher +- Add email field to registration form +- Change registration design Form +- Add Setting to disable Voucher +- Fix Title for PPPOE plans +- Fix Plugin Cache ## 2023.6.20 - Hide time for Created date. diff --git a/README.md b/README.md index 31ffadfd..d19af204 100644 --- a/README.md +++ b/README.md @@ -31,7 +31,7 @@ Most current web servers with PHP & MySQL installed will be capable of running P Minimum Requirements - Linux or Windows OS -- PHP Version 7.2+ +- PHP Version 7.4 - Both PDO & MySQLi Support - GD2 Image Library - CURL support diff --git a/system/controllers/order.php b/system/controllers/order.php index c2c9a09a..016c2c4c 100644 --- a/system/controllers/order.php +++ b/system/controllers/order.php @@ -56,6 +56,7 @@ switch ($action) { } else { r2(U . "order/package/", 's', Lang::T("You have no unpaid transaction")); } + break; case 'view': $trxid = $routes['2'] * 1; $trx = ORM::for_table('tbl_payment_gateway') diff --git a/system/controllers/pluginmanager.php b/system/controllers/pluginmanager.php index d160c01f..c3f11a45 100644 --- a/system/controllers/pluginmanager.php +++ b/system/controllers/pluginmanager.php @@ -20,7 +20,7 @@ if ($admin['user_type'] != 'Admin') { } $cache = File::pathFixer('system/cache/plugin_repository.json'); -if (file_exists($cache) && time() - filemtime($cache) > (24 * 60 * 60)) { +if (file_exists($cache) && time() - filemtime($cache) < (24 * 60 * 60)) { $json = json_decode(file_get_contents($cache), true); } else { $data = file_get_contents($plugin_repository); diff --git a/system/controllers/register.php b/system/controllers/register.php index f554be4d..5f41f97f 100644 --- a/system/controllers/register.php +++ b/system/controllers/register.php @@ -20,12 +20,15 @@ switch ($do) { case 'post': $otp_code = _post('otp_code'); $username = alphanumeric(_post('username'),"+_."); + $email = _post('email'); $fullname = _post('fullname'); $password = _post('password'); $cpassword = _post('cpassword'); $address = _post('address'); if(!empty($config['sms_url'])){ $phonenumber = $username; + }else if(strlen($username)<21){ + $phonenumber = $username; } $msg = ''; if (Validator::Length($username, 35, 2) == false) { @@ -37,6 +40,9 @@ switch ($do) { if (!Validator::Length($password, 35, 2)) { $msg .= 'Password should be between 3 to 35 characters' . '
'; } + if (!Validator::Email($email)) { + $msg .= 'Email is not Valid
'; + } if ($password != $cpassword) { $msg .= $_L['PasswordsNotMatch'] . '
'; } @@ -53,6 +59,7 @@ switch ($do) { $ui->assign('username', $username); $ui->assign('fullname', $fullname); $ui->assign('address', $address); + $ui->assign('email', $email); $ui->assign('phonenumber', $phonenumber); $ui->assign('notify', '
+
+ +
+ +

Voucher activation menu will be hidden

+
+
Telegram Notification
@@ -155,17 +165,19 @@ add dst-host=*.tawk.to {$_L['You_can_use_html_tag']}
-
-
- -
-
-
/ip hotspot walled-garden
-add dst-host={$_domain}
-add dst-host=*.{$_domain}
+ +
+
+ +
+
+ +
/ip hotspot walled-garden
+            add dst-host={$_domain}
+            add dst-host=*.{$_domain}
diff --git a/ui/ui/register-otp.tpl b/ui/ui/register-otp.tpl index 917f1023..49896d18 100644 --- a/ui/ui/register-otp.tpl +++ b/ui/ui/register-otp.tpl @@ -58,6 +58,11 @@ +
+ + +
diff --git a/ui/ui/register-rotp.tpl b/ui/ui/register-rotp.tpl index d01cca02..a9a99e6c 100644 --- a/ui/ui/register-rotp.tpl +++ b/ui/ui/register-rotp.tpl @@ -63,11 +63,11 @@
- + {$_L['Cancel']}
- {$_L['Cancel']} +
diff --git a/ui/ui/register.tpl b/ui/ui/register.tpl index 8e88d9d1..849c1c01 100644 --- a/ui/ui/register.tpl +++ b/ui/ui/register.tpl @@ -43,19 +43,25 @@
1. {$_L['Register_Member']}
-
- +
+
- + +
+
+ +
- +
@@ -67,21 +73,23 @@
- +
- +
+
+
-
-
diff --git a/ui/ui/sections/header.tpl b/ui/ui/sections/header.tpl index 2da993e0..187b5dad 100644 --- a/ui/ui/sections/header.tpl +++ b/ui/ui/sections/header.tpl @@ -129,10 +129,12 @@
{if $_bill['type'] == 'Hotspot' && $_bill['status'] == 'on'} {/if}
-
+ {if $_c['disable_voucher'] != 'yes'} +

{$_L['Voucher_Activation']}

@@ -134,7 +145,7 @@
- + {$_L['Order_Voucher']} @@ -147,6 +158,7 @@
+ {/if} {include file="sections/user-footer.tpl"} \ No newline at end of file diff --git a/version.json b/version.json index 0503f161..1d34fd01 100644 --- a/version.json +++ b/version.json @@ -1,3 +1,3 @@ { - "version": "2023.6.20" + "version": "2023.7.28" } \ No newline at end of file