aboutsummaryrefslogtreecommitdiffhomepage
path: root/install/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'install/index.php')
-rwxr-xr-xinstall/index.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/install/index.php b/install/index.php
index 3231a944..ec050b4b 100755
--- a/install/index.php
+++ b/install/index.php
@@ -547,6 +547,9 @@ php composer.phar install</code></pre></li>
547 </li> 547 </li>
548 <li> 548 <li>
549 <label for="mysql">MySQL</label> <input name="db_engine" type="radio" id="mysql" value="mysql" /> 549 <label for="mysql">MySQL</label> <input name="db_engine" type="radio" id="mysql" value="mysql" />
550 <div id="pdo_mysql" class='messages notice install'>
551 <p>All fields have to be filled.</p>
552 </div>
550 <ul id="mysql_infos"> 553 <ul id="mysql_infos">
551 <li><label for="mysql_server">Server</label> <input type="text" placeholder="localhost" id="mysql_server" name="mysql_server" /></li> 554 <li><label for="mysql_server">Server</label> <input type="text" placeholder="localhost" id="mysql_server" name="mysql_server" /></li>
552 <li><label for="mysql_database">Database</label> <input type="text" placeholder="wallabag" id="mysql_database" name="mysql_database" /></li> 555 <li><label for="mysql_database">Database</label> <input type="text" placeholder="wallabag" id="mysql_database" name="mysql_database" /></li>
@@ -556,6 +559,9 @@ php composer.phar install</code></pre></li>
556 </li> 559 </li>
557 <li> 560 <li>
558 <label for="postgres">PostgreSQL</label> <input name="db_engine" type="radio" id="postgres" value="postgres" /> 561 <label for="postgres">PostgreSQL</label> <input name="db_engine" type="radio" id="postgres" value="postgres" />
562 <div id="pdo_postgres" class='messages notice install'>
563 <p>All fields have to be filled.</p>
564 </div>
559 <ul id="pg_infos"> 565 <ul id="pg_infos">
560 <li><label for="pg_server">Server</label> <input type="text" placeholder="localhost" id="pg_server" name="pg_server" /></li> 566 <li><label for="pg_server">Server</label> <input type="text" placeholder="localhost" id="pg_server" name="pg_server" /></li>
561 <li><label for="pg_database">Database</label> <input type="text" placeholder="wallabag" id="pg_database" name="pg_database" /></li> 567 <li><label for="pg_database">Database</label> <input type="text" placeholder="wallabag" id="pg_database" name="pg_database" /></li>
@@ -593,6 +599,9 @@ php composer.phar install</code></pre></li>
593 599
594 $(".details").hide(); 600 $(".details").hide();
595 601
602 $("#pdo_postgres").hide();
603 $("#pdo_mysql").hide();
604
596 <?php 605 <?php
597 if (!isPassing()) : ?> 606 if (!isPassing()) : ?>
598 $('.technical').hide(); 607 $('.technical').hide();
@@ -619,20 +628,26 @@ php composer.phar install</code></pre></li>
619 { 628 {
620 if ( $("#mysql").prop('checked')) { 629 if ( $("#mysql").prop('checked')) {
621 $("#mysql_infos").show(); 630 $("#mysql_infos").show();
631 $("#pdo_mysql").show();
622 $("#pg_infos").hide(); 632 $("#pg_infos").hide();
633 $("#pdo_postgres").hide();
623 $("#pdo_sqlite").hide(); 634 $("#pdo_sqlite").hide();
624 $("#install_button").show(); 635 $("#install_button").show();
625 } 636 }
626 else { 637 else {
627 if ( $("#postgres").prop('checked')) { 638 if ( $("#postgres").prop('checked')) {
628 $("#mysql_infos").hide(); 639 $("#mysql_infos").hide();
640 $("#pdo_mysql").hide();
629 $("#pg_infos").show(); 641 $("#pg_infos").show();
642 $("#pdo_postgres").show();
630 $("#pdo_sqlite").hide(); 643 $("#pdo_sqlite").hide();
631 $("#install_button").show(); 644 $("#install_button").show();
632 } 645 }
633 else { 646 else {
634 $("#mysql_infos").hide(); 647 $("#mysql_infos").hide();
635 $("#pg_infos").hide(); 648 $("#pg_infos").hide();
649 $("#pdo_postgres").hide();
650 $("#pdo_mysql").hide();
636 <?php 651 <?php
637 if (!extension_loaded('pdo_sqlite')) : ?> 652 if (!extension_loaded('pdo_sqlite')) : ?>
638 $("#pdo_sqlite").show(); 653 $("#pdo_sqlite").show();