From 68c90575ad3355ed629377129eedf671f6dcab46 Mon Sep 17 00:00:00 2001 From: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com> Date: Tue, 26 Jul 2022 09:05:34 +0200 Subject: [PATCH 1/4] Remove Discord Iframe replace with simple link --- src/install/assets/install.html.twig | 48 +++++++++++++--------------- 1 file changed, 23 insertions(+), 25 deletions(-) diff --git a/src/install/assets/install.html.twig b/src/install/assets/install.html.twig index cb156f6ee..ba97064fe 100644 --- a/src/install/assets/install.html.twig +++ b/src/install/assets/install.html.twig @@ -12,11 +12,10 @@
Database configuration
-

FOSSBilling stores data in a SQL database. You should already have an existing database before this step. If you do not have a database prepared, you should do that now.

-

The installer will create all the required tables in your database after correct connection details are provided.

-

NOTE: Please make sure your database name does not include a hyphen '-' as this will create an error.

+

FOSSBilling stores data in a SQL database. You should already have an existing database before this step. If you do not have database prepared, you should do that now.

+

Installer will create all required tables in your database after correct connection details are provided.

How to create a database?

-

Depending on your hosting provider a database can be created in different ways.

+

Depending on your hosting provider database can be created in different ways.

Best way is to check the documentation available with your webhosting account. You can contact their support if you really get stuck.

@@ -40,8 +39,7 @@
-
Join our Discord Server
- +
Join our Discord Server
{% endblock %} @@ -76,7 +74,7 @@
  • 3. Administrator
  • 4. Finish
  • - +
    @@ -102,7 +100,7 @@ - + {% for ext, loaded in extensions %} @@ -126,10 +124,10 @@ {% endfor %} - +
    {{ php_safe_mode ? 'ON' : 'OFF'}} {% if php_safe_mode %}PHP safe mode should be OFF{% endif %}
    PHP extension: {{ ext }}{% if not writable %}Please make sure that directory exists and is writable.{%endif%}
    - + {% if tos %}
    @@ -138,14 +136,14 @@
    - I agree + I agree
    {% endif %}
    - + -
    +
    @@ -181,10 +179,10 @@
    - +
    - +
    @@ -193,7 +191,7 @@
    - +
    @@ -201,7 +199,7 @@
    - +
    @@ -256,7 +254,7 @@ $(function() { errorSteps:[], // array of step numbers to highlighting as error steps labelNext:'Next', // label for Next button labelPrevious:'Previous', // label for Previous button - labelFinish:'Finish', // label for Finish button + labelFinish:'Finish', // label for Finish button // Events onLeaveStep: function(o, c){ if(c.fromStep < c.toStep) { return validateSteps(c.fromStep); } else { return true; } }, // triggers when leaving a step onShowStep: function(o, c){ return showStep(c.toStep); }, // triggers when showing a step @@ -279,12 +277,12 @@ $(function() { //$('.leftNav').css('width', '980px'); return false; } - + function showStep(stepnumber){ $('.step').hide(); $('.step.step-'+stepnumber).fadeIn(); } - + function validateSteps(stepnumber){ var url = '{{constant("BB_URL_INSTALL")}}install.php?a='; var data = $('#installer').serialize(); @@ -296,12 +294,12 @@ $(function() { return false; } } - + if(stepnumber == 2){ if(isEmpty('db_host')) return false; if(isEmpty('db_name')) return false; if(isEmpty('db_user')) return false; - + $.ajax({ async: false, type: "POST", @@ -316,7 +314,7 @@ $(function() { }); return ok; } - + if(stepnumber == 3){ if(isEmpty('admin_name')) return false; if(isEmpty('admin_email')) return false; @@ -343,7 +341,7 @@ $(function() { } return true; } - + function isEmpty(id) { if(!$('#'+id).val()) { @@ -354,6 +352,6 @@ $(function() { return false; } } - + {% endblock %} From 01b74f7939397996742575f3737b026a5884d3a3 Mon Sep 17 00:00:00 2001 From: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com> Date: Tue, 26 Jul 2022 09:06:07 +0200 Subject: [PATCH 2/4] Fix bug "DB name can't contain hypen" #189 --- src/install/install.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/install/install.php b/src/install/install.php index 1e6b57c8a..e17315aae 100644 --- a/src/install/install.php +++ b/src/install/install.php @@ -273,7 +273,7 @@ final class Box_Installer error_log($e->getMessage()); } - $pdo->query("USE $db;"); + $pdo->query("USE `$db`;"); return $pdo; } From bc0d82f82454e53912afb00a0b6aed7b37a2eaae Mon Sep 17 00:00:00 2001 From: "John @ S4" <64874788+John-S4@users.noreply.github.com> Date: Tue, 26 Jul 2022 00:01:06 +0300 Subject: [PATCH 3/4] Undo #190 This reverts commit 921650bb0e4251276556463cb8d31b7cfc40882f. From f09f841d2fd07887959e9b8e4db06836c4cbd88f Mon Sep 17 00:00:00 2001 From: Jaap Marcus <9754650+jaapmarcus@users.noreply.github.com> Date: Tue, 26 Jul 2022 09:15:42 +0200 Subject: [PATCH 4/4] Also reverted rephrasing add those back again --- src/install/assets/install.html.twig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/install/assets/install.html.twig b/src/install/assets/install.html.twig index ba97064fe..ed7a89f03 100644 --- a/src/install/assets/install.html.twig +++ b/src/install/assets/install.html.twig @@ -12,10 +12,10 @@
    Database configuration
    -

    FOSSBilling stores data in a SQL database. You should already have an existing database before this step. If you do not have database prepared, you should do that now.

    -

    Installer will create all required tables in your database after correct connection details are provided.

    +

    FOSSBilling stores data in a SQL database. You should already have an existing database before this step. If you do not have a database prepared, you should do that now.

    +

    The installer will create all the required tables in your database after correct connection details are provided.

    How to create a database?

    -

    Depending on your hosting provider database can be created in different ways.

    +

    Depending on your hosting provider a database can be created in different ways.

    Best way is to check the documentation available with your webhosting account. You can contact their support if you really get stuck.