aboutsummaryrefslogtreecommitdiffhomepage
path: root/install
diff options
context:
space:
mode:
Diffstat (limited to 'install')
-rw-r--r--install/index.php31
1 files changed, 29 insertions, 2 deletions
diff --git a/install/index.php b/install/index.php
index 975b997f..b21cec52 100644
--- a/install/index.php
+++ b/install/index.php
@@ -225,7 +225,11 @@ php composer.phar install</code></pre></li>
225 <p> 225 <p>
226 Database engine: 226 Database engine:
227 <ul> 227 <ul>
228 <li><label for="sqlite">SQLite</label> <input name="db_engine" type="radio" checked="" id="sqlite" value="sqlite" /></li> 228 <li><label for="sqlite">SQLite</label> <input name="db_engine" type="radio" checked="" id="sqlite" value="sqlite" />
229 <div id="pdo_sqlite" class='messages error install'>
230 <p>You have to enable <a href="http://php.net/manual/ref.pdo-sqlite.php">pdo_sqlite extension</a>.</p>
231 </div>
232 </li>
229 <li> 233 <li>
230 <label for="mysql">MySQL</label> <input name="db_engine" type="radio" id="mysql" value="mysql" /> 234 <label for="mysql">MySQL</label> <input name="db_engine" type="radio" id="mysql" value="mysql" />
231 <ul id="mysql_infos"> 235 <ul id="mysql_infos">
@@ -263,26 +267,49 @@ php composer.phar install</code></pre></li>
263 </p> 267 </p>
264 </fieldset> 268 </fieldset>
265 269
266 <input type="submit" value="Install wallabag" name="install" /> 270 <input type="submit" id="install_button" value="Install wallabag" name="install" />
267 </form> 271 </form>
268 </div> 272 </div>
269 <script> 273 <script>
270 $("#mysql_infos").hide(); 274 $("#mysql_infos").hide();
271 $("#pg_infos").hide(); 275 $("#pg_infos").hide();
276
277 <?php
278 if (!extension_loaded('pdo_sqlite')) : ?>
279 $("#install_button").hide();
280 <?php
281 else :
282 ?>
283 $("#pdo_sqlite").hide();
284 <?php
285 endif;
286 ?>
287
272 $("input[name=db_engine]").click(function() 288 $("input[name=db_engine]").click(function()
273 { 289 {
274 if ( $("#mysql").prop('checked')) { 290 if ( $("#mysql").prop('checked')) {
275 $("#mysql_infos").show(); 291 $("#mysql_infos").show();
276 $("#pg_infos").hide(); 292 $("#pg_infos").hide();
293 $("#pdo_sqlite").hide();
294 $("#install_button").show();
277 } 295 }
278 else { 296 else {
279 if ( $("#postgresql").prop('checked')) { 297 if ( $("#postgresql").prop('checked')) {
280 $("#mysql_infos").hide(); 298 $("#mysql_infos").hide();
281 $("#pg_infos").show(); 299 $("#pg_infos").show();
300 $("#pdo_sqlite").hide();
301 $("#install_button").show();
282 } 302 }
283 else { 303 else {
284 $("#mysql_infos").hide(); 304 $("#mysql_infos").hide();
285 $("#pg_infos").hide(); 305 $("#pg_infos").hide();
306 <?php
307 if (!extension_loaded('pdo_sqlite')) : ?>
308 $("#pdo_sqlite").show();
309 $("#install_button").hide();
310 <?php
311 endif;
312 ?>
286 } 313 }
287 } 314 }
288 }); 315 });