From 07517ae563097e04e91ea3fae2c2ca1cf2309b86 Mon Sep 17 00:00:00 2001 From: Jacek Kowalski <Jacek@jacekk.info> Date: Mon, 16 Dec 2019 20:48:17 +0000 Subject: [PATCH] Użycie API REST do pobierania danych z Biblioteki Narodowej --- test.php | 19 +++++++++++++------ 1 files changed, 13 insertions(+), 6 deletions(-) diff --git a/test.php b/test.php index 2aef5c7..815f15f 100644 --- a/test.php +++ b/test.php @@ -31,9 +31,16 @@ <tr> <th class="head" colspan="2">Baza danych</th> </tr> -<tr> <th>Ustawienia bazy<br />(/includes/db2.php)</th> <td><?php echo NT; ?></td> </tr> -<tr> <th>Rozszerzenie MySQL</th> <td><?php -if(!extension_loaded('mysql')) { +<tr> <th>Ustawienia bazy<br />(/includes/config.php)</th> <td><?php echo NT; ?></td> </tr> +<tr> <th>Rozszerzenie PDO</th> <td><?php +if(!extension_loaded('pdo')) { + echo FAIL; + $mysql = FALSE; +} +else echo OK; +?></td> </tr> +<tr> <th>Rozszerzenie PDO MySQL</th> <td><?php +if(!extension_loaded('pdo_mysql')) { echo FAIL; $mysql = FALSE; } @@ -79,13 +86,13 @@ echo SFAIL; $curl = FALSE; } else echo OK; ?></td> </tr> -<tr> <th>LibraryThing API key<br />(/includes/ksiazki.php)</th> <td><?php +<tr> <th>LibraryThing API key<br />(/includes/config.php)</th> <td><?php if($curl === FALSE) echo NT; -elseif(!empty(ksiazki::$LT_API)) +elseif(!empty(config::$lt_api)) echo OK; else - echo FAIL; + echo SFAIL; ?></td> </tr> <tr> <th>Uprawnienia dla katalogu<br /> /covers</th> <td><?php -- Gitblit v1.9.1