@@ -37,14 +37,14 @@ |
||
| 37 | 37 | header('Content-Type:text/html;charset=utf-8'); |
| 38 | 38 | |
| 39 | 39 | $data = array('title' => $config['cops_title_default'], |
| 40 | - 'version' => VERSION, |
|
| 41 | - 'opds_url' => $config['cops_full_url'] . 'feed.php', |
|
| 42 | - 'customHeader' => '', |
|
| 43 | - 'template' => getCurrentTemplate(), |
|
| 44 | - 'server_side_rendering' => useServerSideRendering(), |
|
| 45 | - 'current_css' => getCurrentCss(), |
|
| 46 | - 'favico' => $config['cops_icon'], |
|
| 47 | - 'getjson_url' => 'getJSON.php?' . addURLParameter(getQueryString(), 'complete', 1)); |
|
| 40 | + 'version' => VERSION, |
|
| 41 | + 'opds_url' => $config['cops_full_url'] . 'feed.php', |
|
| 42 | + 'customHeader' => '', |
|
| 43 | + 'template' => getCurrentTemplate(), |
|
| 44 | + 'server_side_rendering' => useServerSideRendering(), |
|
| 45 | + 'current_css' => getCurrentCss(), |
|
| 46 | + 'favico' => $config['cops_icon'], |
|
| 47 | + 'getjson_url' => 'getJSON.php?' . addURLParameter(getQueryString(), 'complete', 1)); |
|
| 48 | 48 | if (preg_match('/Kindle/', $_SERVER['HTTP_USER_AGENT'])) { |
| 49 | 49 | $data['customHeader'] = '<style media="screen" type="text/css"> html { font-size: 75%; -webkit-text-size-adjust: 75%; -ms-text-size-adjust: 75%; }</style>'; |
| 50 | 50 | } |
@@ -237,8 +237,7 @@ |
||
| 237 | 237 | $db = new PDO('sqlite:' . Base::getDbFileName($i)); |
| 238 | 238 | $result = $db->prepare('select books.path || "/" || data.name || "." || lower (format) as fullpath from data join books on data.book = books.id'); |
| 239 | 239 | $result->execute(); |
| 240 | - while ($post = $result->fetchObject()) |
|
| 241 | - { |
|
| 240 | + while ($post = $result->fetchObject()) { |
|
| 242 | 241 | if (!is_file (Base::getDbDirectory($i) . $post->fullpath)) { |
| 243 | 242 | echo '<p>' . Base::getDbDirectory($i) . $post->fullpath . '</p>'; |
| 244 | 243 | } |