A free, self-hostable news aggregator…
Warn during install if document root does not point to ./p (#9010)
Gerard Alvear Porras9f90d4f4011c
diff --git a/README.fr.md b/README.fr.mdindex 752cac0f1..fbedbc01d 100644--- a/README.fr.md+++ b/README.fr.md@@ -236,11 +236,11 @@ Voir le [dépôt dédié à ces extensions](https://github.com/FreshRSS/Extensio| فارسی (fa) | ■■■■■■■■■・ 99% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffa+%2F%28TODO%7CDIRTY%29%24%2F) || Suomi (fi) | ■■■■■■■■■・ 92% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffi+%2F%28TODO%7CDIRTY%29%24%2F) || Français (fr) | ■■■■■■■■■■ 100% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffr+%2F%28TODO%7CDIRTY%29%24%2F) |-| עברית (he) | ■■■■・・・・・・ 42% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fhe+%2F%28TODO%7CDIRTY%29%24%2F) |+| עברית (he) | ■■■■・・・・・・ 41% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fhe+%2F%28TODO%7CDIRTY%29%24%2F) || Magyar (hu) | ■■■■■■■■■・ 99% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fhu+%2F%28TODO%7CDIRTY%29%24%2F) || Bahasa Indonesia (id) | ■■■■■■■■・・ 89% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fid+%2F%28TODO%7CDIRTY%29%24%2F) || Italiano (it) | ■■■■■■■■■・ 99% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fit+%2F%28TODO%7CDIRTY%29%24%2F) |-| 日本語 (ja) | ■■■■■■■■・・ 88% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fja+%2F%28TODO%7CDIRTY%29%24%2F) |+| 日本語 (ja) | ■■■■■■■■・・ 87% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fja+%2F%28TODO%7CDIRTY%29%24%2F) || 한국어 (ko) | ■■■■■■■■・・ 81% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fko+%2F%28TODO%7CDIRTY%29%24%2F) || Latviešu (lv) | ■■■■■■■■・・ 82% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Flv+%2F%28TODO%7CDIRTY%29%24%2F) || Nederlands (nl) | ■■■■■■■■■・ 99% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fnl+%2F%28TODO%7CDIRTY%29%24%2F) |@@ -250,9 +250,9 @@ Voir le [dépôt dédié à ces extensions](https://github.com/FreshRSS/Extensio| Português (Portugal) (pt-PT) | ■■■■■■■■・・ 81% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fpt-PT+%2F%28TODO%7CDIRTY%29%24%2F) || Русский (ru) | ■■■■■■■■■・ 99% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fru+%2F%28TODO%7CDIRTY%29%24%2F) || Slovenčina (sk) | ■■■■■■■■・・ 81% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fsk+%2F%28TODO%7CDIRTY%29%24%2F) |-| Türkçe (tr) | ■■■■■■■■■■ 100% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ftr+%2F%28TODO%7CDIRTY%29%24%2F) |+| Türkçe (tr) | ■■■■■■■■■・ 99% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ftr+%2F%28TODO%7CDIRTY%29%24%2F) || Українська (uk) | ■■■■■■■■■・ 99% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fuk+%2F%28TODO%7CDIRTY%29%24%2F) |-| 简体中文 (zh-CN) | ■■■■■■■■■・ 97% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fzh-CN+%2F%28TODO%7CDIRTY%29%24%2F) |+| 简体中文 (zh-CN) | ■■■■■■■■■・ 96% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fzh-CN+%2F%28TODO%7CDIRTY%29%24%2F) || 正體中文 (zh-TW) | ■■■■■■■■■・ 96% | [contribuer](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fzh-TW+%2F%28TODO%7CDIRTY%29%24%2F) |</translations>diff --git a/README.md b/README.mdindex 51f2bd0da..e8175cc79 100644--- a/README.md+++ b/README.md@@ -132,11 +132,11 @@ See the [repository dedicated to those extensions](https://github.com/FreshRSS/E| فارسی (fa) | ■■■■■■■■■・ 99% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffa+%2F%28TODO%7CDIRTY%29%24%2F) || Suomi (fi) | ■■■■■■■■■・ 92% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffi+%2F%28TODO%7CDIRTY%29%24%2F) || Français (fr) | ■■■■■■■■■■ 100% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ffr+%2F%28TODO%7CDIRTY%29%24%2F) |-| עברית (he) | ■■■■・・・・・・ 42% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fhe+%2F%28TODO%7CDIRTY%29%24%2F) |+| עברית (he) | ■■■■・・・・・・ 41% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fhe+%2F%28TODO%7CDIRTY%29%24%2F) || Magyar (hu) | ■■■■■■■■■・ 99% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fhu+%2F%28TODO%7CDIRTY%29%24%2F) || Bahasa Indonesia (id) | ■■■■■■■■・・ 89% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fid+%2F%28TODO%7CDIRTY%29%24%2F) || Italiano (it) | ■■■■■■■■■・ 99% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fit+%2F%28TODO%7CDIRTY%29%24%2F) |-| 日本語 (ja) | ■■■■■■■■・・ 88% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fja+%2F%28TODO%7CDIRTY%29%24%2F) |+| 日本語 (ja) | ■■■■■■■■・・ 87% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fja+%2F%28TODO%7CDIRTY%29%24%2F) || 한국어 (ko) | ■■■■■■■■・・ 81% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fko+%2F%28TODO%7CDIRTY%29%24%2F) || Latviešu (lv) | ■■■■■■■■・・ 82% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Flv+%2F%28TODO%7CDIRTY%29%24%2F) || Nederlands (nl) | ■■■■■■■■■・ 99% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fnl+%2F%28TODO%7CDIRTY%29%24%2F) |@@ -146,9 +146,9 @@ See the [repository dedicated to those extensions](https://github.com/FreshRSS/E| Português (Portugal) (pt-PT) | ■■■■■■■■・・ 81% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fpt-PT+%2F%28TODO%7CDIRTY%29%24%2F) || Русский (ru) | ■■■■■■■■■・ 99% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fru+%2F%28TODO%7CDIRTY%29%24%2F) || Slovenčina (sk) | ■■■■■■■■・・ 81% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fsk+%2F%28TODO%7CDIRTY%29%24%2F) |-| Türkçe (tr) | ■■■■■■■■■■ 100% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ftr+%2F%28TODO%7CDIRTY%29%24%2F) |+| Türkçe (tr) | ■■■■■■■■■・ 99% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Ftr+%2F%28TODO%7CDIRTY%29%24%2F) || Українська (uk) | ■■■■■■■■■・ 99% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fuk+%2F%28TODO%7CDIRTY%29%24%2F) |-| 简体中文 (zh-CN) | ■■■■■■■■■・ 97% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fzh-CN+%2F%28TODO%7CDIRTY%29%24%2F) |+| 简体中文 (zh-CN) | ■■■■■■■■■・ 96% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fzh-CN+%2F%28TODO%7CDIRTY%29%24%2F) || 正體中文 (zh-TW) | ■■■■■■■■■・ 96% | [contribute](https://github.com/search?q=repo%3AFreshRSS%2FFreshRSS+path%3Aapp%2Fi18n%2Fzh-TW+%2F%28TODO%7CDIRTY%29%24%2F) |</translations>diff --git a/app/i18n/cs/install.php b/app/i18n/cs/install.phpindex 640b13432..ad5935ecd 100644--- a/app/i18n/cs/install.php+++ b/app/i18n/cs/install.php@@ -63,6 +63,10 @@ return array('ok' => 'All database tables exist.', // TODO),'database-title' => 'Database', // TODO+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'Nelze nalézt požadovanou knihovnu pro procházení DOM.','ok' => 'Máte požadovanou knihovnu pro procházení DOM.',diff --git a/app/i18n/de/install.php b/app/i18n/de/install.phpindex 0d1dc30cf..ccbf47a50 100644--- a/app/i18n/de/install.php+++ b/app/i18n/de/install.php@@ -63,6 +63,10 @@ return array('ok' => 'Alle Datenbanktabellen sind vorhanden.',),'database-title' => 'Datenbank',+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'Ihnen fehlt die benötigte Bibliothek zum Durchsuchen des DOM.','ok' => 'Sie haben die benötigte Bibliothek zum Durchsuchen des DOM.',diff --git a/app/i18n/el/install.php b/app/i18n/el/install.phpindex b2cb6027e..bbc5b2c2f 100644--- a/app/i18n/el/install.php+++ b/app/i18n/el/install.php@@ -63,6 +63,10 @@ return array('ok' => 'Όλοι οι πίνακες της βάσης δεδομένων υπάρχουν.',),'database-title' => 'Βάση δεδομένων',+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'Δεν βρέθηκε η απαιτούμενη βιβλιοθήκη για περιήγηση στο DOM.','ok' => 'Βρέθηκε η απαιτούμενη βιβλιοθήκη για περιήγηση στο DOM.',diff --git a/app/i18n/en-US/install.php b/app/i18n/en-US/install.phpindex e7f748b59..2d1beefdd 100644--- a/app/i18n/en-US/install.php+++ b/app/i18n/en-US/install.php@@ -63,6 +63,10 @@ return array('ok' => 'All database tables exist.', // IGNORE),'database-title' => 'Database', // IGNORE+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // IGNORE+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // IGNORE+ ),'dom' => array('nok' => 'Cannot find the required library to browse the DOM.', // IGNORE'ok' => 'You have the required library to browse the DOM.', // IGNOREdiff --git a/app/i18n/en/install.php b/app/i18n/en/install.phpindex 4f0099af0..78a257a97 100644--- a/app/i18n/en/install.php+++ b/app/i18n/en/install.php@@ -63,6 +63,10 @@ return array('ok' => 'All database tables exist.',),'database-title' => 'Database',+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.',+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.',+ ),'dom' => array('nok' => 'Cannot find the required library to browse the DOM.','ok' => 'You have the required library to browse the DOM.',diff --git a/app/i18n/es/install.php b/app/i18n/es/install.phpindex 94edce360..2cd2660de 100644--- a/app/i18n/es/install.php+++ b/app/i18n/es/install.php@@ -63,6 +63,10 @@ return array('ok' => 'Todas las tablas de la base de datos existen.',),'database-title' => 'Base de datos',+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'No se ha podido localizar la librería necesaria para explorar la DOM.','ok' => 'Dispones de la librería necesaria para explorar la DOM.',diff --git a/app/i18n/fa/install.php b/app/i18n/fa/install.phpindex 252e196af..77143e419 100644--- a/app/i18n/fa/install.php+++ b/app/i18n/fa/install.php@@ -63,6 +63,10 @@ return array('ok' => 'همه جدولهای پایگاه داده وجود دارند.',),'database-title' => 'پایگاه داده',+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'کتابخانه مورد نیاز برای مرور DOM را نمیتوان پیدا کرد.','ok' => 'شما کتابخانه مورد نیاز برای مرور DOM را دارید.',diff --git a/app/i18n/fi/install.php b/app/i18n/fi/install.phpindex 898bbdb92..bf3debb06 100644--- a/app/i18n/fi/install.php+++ b/app/i18n/fi/install.php@@ -63,6 +63,10 @@ return array('ok' => 'All database tables exist.', // TODO),'database-title' => 'Database', // TODO+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'DOM-rakenteen selaamiseen tarvittavaa kirjastoa ei löydy.','ok' => 'DOM-rakenteen selaamiseen tarvittava kirjasto löytyy.',diff --git a/app/i18n/fr/install.php b/app/i18n/fr/install.phpindex eb6fe72c6..ed9026c5e 100644--- a/app/i18n/fr/install.php+++ b/app/i18n/fr/install.php@@ -63,6 +63,10 @@ return array('ok' => 'Toutes les tables de la base de données existent.',),'database-title' => 'Base de données',+ 'docroot' => array(+ 'nok' => 'Le répertoire racine de votre serveur Web ne semble pas pointer vers le dossier <code>./p/</code>. D’autres dossiers tels que <code>./data/</code> risquent d’être exposés publiquement.',+ 'ok' => 'Le répertoire racine de votre serveur Web pointe correctement vers le dossier <code>./p/</code>.',+ ),'dom' => array('nok' => 'Impossible de trouver la librairie requise pour parcourir le DOM.','ok' => 'Vous disposez de la librairie requise pour parcourir le DOM.',diff --git a/app/i18n/he/install.php b/app/i18n/he/install.phpindex 5d5616458..9c0f59cb5 100644--- a/app/i18n/he/install.php+++ b/app/i18n/he/install.php@@ -63,6 +63,10 @@ return array('ok' => 'All database tables exist.', // TODO),'database-title' => 'Database', // TODO+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'הספרייה הנדרשת לסיור ב DOM אינה מותקנת (php-xml package)','ok' => 'הספרייה הנדרשת לסיור ב DOM מותקנת',diff --git a/app/i18n/hu/install.php b/app/i18n/hu/install.phpindex cd508de10..d0de8d916 100644--- a/app/i18n/hu/install.php+++ b/app/i18n/hu/install.php@@ -63,6 +63,10 @@ return array('ok' => 'Minden adatbázis tábla létezik.',),'database-title' => 'Adatbázis',+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'A DOM böngészéséhez nem található a könyvtár.','ok' => 'A DOM böngészésére való könyvtár telepítve van.',diff --git a/app/i18n/id/install.php b/app/i18n/id/install.phpindex cde661eed..a5507f4e9 100644--- a/app/i18n/id/install.php+++ b/app/i18n/id/install.php@@ -63,6 +63,10 @@ return array('ok' => 'All database tables exist.', // TODO),'database-title' => 'Database', // TODO+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'Tidak dapat menemukan pustaka yang diperlukan untuk menelusuri DOM.','ok' => 'Anda memiliki pustaka yang diperlukan untuk menelusuri DOM.',diff --git a/app/i18n/it/install.php b/app/i18n/it/install.phpindex 5d67b7d83..6ec28d4c1 100644--- a/app/i18n/it/install.php+++ b/app/i18n/it/install.php@@ -63,6 +63,10 @@ return array('ok' => 'Tutte le tavole del database esistono.',),'database-title' => 'Database', // IGNORE+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'Manca una libreria richiesta per leggere DOM.','ok' => 'Libreria richiesta per leggere DOM presente.',diff --git a/app/i18n/ja/install.php b/app/i18n/ja/install.phpindex 860cf7666..0d19264f3 100644--- a/app/i18n/ja/install.php+++ b/app/i18n/ja/install.php@@ -63,6 +63,10 @@ return array('ok' => 'All database tables exist.', // TODO),'database-title' => 'Database', // TODO+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'DOMを検索するライブラリが見つかりませんでした。','ok' => 'DOMを検索するライブラリが見つかりました。',diff --git a/app/i18n/ko/install.php b/app/i18n/ko/install.phpindex f2bd7a233..d2d5d5a8a 100644--- a/app/i18n/ko/install.php+++ b/app/i18n/ko/install.php@@ -63,6 +63,10 @@ return array('ok' => 'All database tables exist.', // TODO),'database-title' => 'Database', // TODO+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'DOM을 다룰 수 있는 라이브러리를 찾을 수 없습니다 (php-xml 패키지).','ok' => 'DOM을 다룰 수 있는 라이브러리가 설치되어 있습니다.',diff --git a/app/i18n/lv/install.php b/app/i18n/lv/install.phpindex ee467c5a2..c1bf698ba 100644--- a/app/i18n/lv/install.php+++ b/app/i18n/lv/install.php@@ -63,6 +63,10 @@ return array('ok' => 'All database tables exist.', // TODO),'database-title' => 'Database', // TODO+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'Nevar atrast nepieciešamo bibliotēku, lai pārlūkotu DOM (php-xml pakete).','ok' => 'Jums ir nepieciešamā bibliotēka, lai pārlūkotu DOM.',diff --git a/app/i18n/nl/install.php b/app/i18n/nl/install.phpindex a8fe496f5..5c146e353 100644--- a/app/i18n/nl/install.php+++ b/app/i18n/nl/install.php@@ -63,6 +63,10 @@ return array('ok' => 'Alle databanktabelen bestaan.',),'database-title' => 'Databank',+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'U mist een benodigde bibliotheek om te bladeren in de DOM.','ok' => 'U hebt de benodigde bibliotheek om te bladeren in de DOM.',diff --git a/app/i18n/oc/install.php b/app/i18n/oc/install.phpindex 8c9e4f314..02531a747 100644--- a/app/i18n/oc/install.php+++ b/app/i18n/oc/install.php@@ -63,6 +63,10 @@ return array('ok' => 'All database tables exist.', // TODO),'database-title' => 'Database', // TODO+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'Impossible de trobar una bibliotèca per percórrer lo DOM.','ok' => 'Avètz la bibliotèca per percórrer lo DOM.',diff --git a/app/i18n/pl/install.php b/app/i18n/pl/install.phpindex 06def250f..7b4d47270 100644--- a/app/i18n/pl/install.php+++ b/app/i18n/pl/install.php@@ -63,6 +63,10 @@ return array('ok' => 'Wszystkie tabele bazy danych istnieją.',),'database-title' => 'Baza danych',+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'Nie znaleziono wymaganej biblioteki do korzystania z DOM-u.','ok' => 'Znaleziono wymaganą bibliotekę do korzystania z DOM-u.',diff --git a/app/i18n/pt-BR/install.php b/app/i18n/pt-BR/install.phpindex 06c1b0f1b..dbe69b6c9 100644--- a/app/i18n/pt-BR/install.php+++ b/app/i18n/pt-BR/install.php@@ -63,6 +63,10 @@ return array('ok' => 'Todas as tabelas do banco de dados existem.',),'database-title' => 'Banco de Dados',+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'Não foi possível encontrar uma biblioteca necessária para navegar pelo DOM (php-xml).','ok' => 'Você tem a biblioteca necessária para navegar pelo DOM.',diff --git a/app/i18n/pt-PT/install.php b/app/i18n/pt-PT/install.phpindex 10215222f..ecdd51698 100644--- a/app/i18n/pt-PT/install.php+++ b/app/i18n/pt-PT/install.php@@ -63,6 +63,10 @@ return array('ok' => 'All database tables exist.', // TODO),'database-title' => 'Database', // TODO+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'Não foi possível encontrar uma biblioteca necessária para navegar pelo DOM (php-xml).','ok' => 'Tem a biblioteca necessária para navegar pelo DOM.',diff --git a/app/i18n/ru/install.php b/app/i18n/ru/install.phpindex 774432dcd..ac1033aa0 100644--- a/app/i18n/ru/install.php+++ b/app/i18n/ru/install.php@@ -63,6 +63,10 @@ return array('ok' => 'Все таблицы базы данных существуют.',),'database-title' => 'База данных',+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'У вас не установлена необходимая библиотека для просмотра DOM (пакет php-xml).','ok' => 'У вас установлена необходимая библиотека для просмотра DOM.',diff --git a/app/i18n/sk/install.php b/app/i18n/sk/install.phpindex 4640c1eee..9ddd0fb65 100644--- a/app/i18n/sk/install.php+++ b/app/i18n/sk/install.php@@ -63,6 +63,10 @@ return array('ok' => 'All database tables exist.', // TODO),'database-title' => 'Database', // TODO+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'Nepodarilo sa nájsť požadovanú knižnicu na prehliadanie DOM.','ok' => 'Našla sa požadovaná knižnica na prehliadanie DOM.',diff --git a/app/i18n/tr/install.php b/app/i18n/tr/install.phpindex 1cece5e10..f01316800 100644--- a/app/i18n/tr/install.php+++ b/app/i18n/tr/install.php@@ -63,6 +63,10 @@ return array('ok' => 'Veritabanı tabloları mevcut.',),'database-title' => 'Veritabanı',+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'DOM’u taramak için gerekli kütüphane bulunamadı.','ok' => 'DOM’u taramak için gerekli kütüphaneniz var.',diff --git a/app/i18n/uk/install.php b/app/i18n/uk/install.phpindex ebe2595dd..ae229d449 100644--- a/app/i18n/uk/install.php+++ b/app/i18n/uk/install.php@@ -63,6 +63,10 @@ return array('ok' => 'Усі таблиці наявні в базі даних.',),'database-title' => 'База даних',+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => 'Не вдалося знайти необхідну бібліотеку роботи з DOM.','ok' => 'У вас є необхідна бібліотека роботи з DOM.',diff --git a/app/i18n/zh-CN/install.php b/app/i18n/zh-CN/install.phpindex c5a51d5c9..934af5895 100644--- a/app/i18n/zh-CN/install.php+++ b/app/i18n/zh-CN/install.php@@ -63,6 +63,10 @@ return array('ok' => 'All database tables exist.', // TODO),'database-title' => 'Database', // TODO+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => '找不到用于浏览 DOM 的库(php-xml 包)','ok' => '已找到用于浏览 DOM 的库',diff --git a/app/i18n/zh-TW/install.php b/app/i18n/zh-TW/install.phpindex 177f5e8b7..7f1d287e0 100644--- a/app/i18n/zh-TW/install.php+++ b/app/i18n/zh-TW/install.php@@ -63,6 +63,10 @@ return array('ok' => '資料表狀態完整。',),'database-title' => '資料庫',+ 'docroot' => array(+ 'nok' => 'Your web server document root does not seem to point to the <code>./p/</code> folder. Other folders such as <code>./data/</code> may be publicly accessible.', // TODO+ 'ok' => 'Your web server document root correctly points to the <code>./p/</code> folder.', // TODO+ ),'dom' => array('nok' => '無法找到瀏覽 DOM 所需的函式庫。','ok' => '您擁有瀏覽 DOM 所需的函式庫。',diff --git a/app/install.php b/app/install.phpindex 3abd652e8..3b42345e9 100644--- a/app/install.php+++ b/app/install.php@@ -502,6 +502,7 @@ function printStep1(): void {printStep1Template('tmp', $res['tmp'], [TMP_PATH, $processUsername]);printStep1Template('users', $res['users'], [USERS_PATH, $processUsername]);printStep1Template('favicons', $res['favicons'], [DATA_PATH . '/favicons', $processUsername]);+ printStep1Template('docroot', $res['docroot']);?><?php if (freshrss_already_installed() && $res['all'] == 'ok') { ?>diff --git a/lib/lib_install.php b/lib/lib_install.phpindex c3e323dea..a8a78d44d 100644--- a/lib/lib_install.php+++ b/lib/lib_install.php@@ -49,6 +49,11 @@ function checkRequirements(string $dbType = '', bool $checkPhp = true, bool $che$users = is_dir(USERS_PATH) && touch(USERS_PATH . '/index.html');$favicons = is_dir(DATA_PATH) && touch(DATA_PATH . '/favicons/index.html');$tokens = is_dir(DATA_PATH) && touch(DATA_PATH . '/tokens/index.html');+ // An unknown or incorrect document root might web-expose folders such as `./data`.+ // An empty `DOCUMENT_ROOT` outside of a Web server context (e.g. CLI, cron) is ignored because `realpath('')` resolves to the current directory.+ $documentRoot = $_SERVER['DOCUMENT_ROOT'] ?? null;+ $docRootPath = is_string($documentRoot) && $documentRoot !== '' ? realpath($documentRoot) : false;+ $docRootOk = $documentRoot === '' || ($docRootPath !== false && $docRootPath === realpath(PUBLIC_PATH));$result = [];if ($checkPhp) {@@ -79,6 +84,7 @@ function checkRequirements(string $dbType = '', bool $checkPhp = true, bool $che'users' => $users ? 'ok' : 'ko','favicons' => $favicons ? 'ok' : 'ko','tokens' => $tokens ? 'ok' : 'ko',+ 'docroot' => $docRootOk ? 'ok' : 'warn',];}