diff --git a/.htaccess b/.htaccess index 5c4ff2f25..fd106bd24 100644 --- a/.htaccess +++ b/.htaccess @@ -1,8 +1,8 @@ Options +FollowSymLinks RewriteEngine On -RewriteRule "^(css|resources|scripts)/(.*)$" src/$1/$2 [L] +RewriteRule "^(css|resources|scripts|locale)/(.*)$" src/$1/$2 [L] RewriteRule "^((.*)bar.xml|favicon.ico|robots.txt)$" src/$1 [L] -RewriteCond %{REQUEST_FILENAME} !index.php|tests/.*$|src/(favicon.ico$|robots.txt$|yioopbar.xml$|(css|scripts|resources/.*$)) +RewriteCond %{REQUEST_FILENAME} !index.php|tests/.*$|src/(favicon.ico$|robots.txt$|yioopbar.xml$|(css|scripts|resources/.*$|locale/.*$)) RewriteRule ^ index.php [L] diff --git a/src/controllers/components/SystemComponent.php b/src/controllers/components/SystemComponent.php index ac70aec78..592b2b046 100755 --- a/src/controllers/components/SystemComponent.php +++ b/src/controllers/components/SystemComponent.php @@ -1128,10 +1128,14 @@ EOD; "check"=>"curl_multi_init", "type"=>"function"], [ "name" => "GD Graphics Library", "check"=>"imagecreate", "type"=>"function"], - [ "name" => "PDO SQLite3 Library", - "check"=>"\PDO", "type"=>"class"], [ "name" => "Multibyte Character Library", "check"=>"mb_internal_encoding", "type"=>"function"], + [ "name" => "PDO SQLite3 Library", + "check"=>"\PDO", "type"=>"class"], + [ "name" => + "Process Creation Functions (popen, pclose, and exec". + " needed for crawling)", + "check"=>"popen", "type"=>"function"], ]; $optional_items = [ /* as an example of what this array could contain... @@ -1151,7 +1155,7 @@ EOD; } if ($check_flag) { $missing_required .= $comma.$item["name"]; - $comma = ", "; + $comma = ",<br />"; } } if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID < 50400) { @@ -1179,7 +1183,8 @@ EOD; if ($missing_required != "") { $out .= $br. - tl('system_component_missing_required', $missing_required); + tl('system_component_missing_required'). "<br />". + $missing_required; $br = "<br />"; } @@ -1202,7 +1207,8 @@ EOD; if ($missing_optional != "") { $out .= $br. - tl('system_component_missing_optional', $missing_optional); + tl('system_component_missing_optional') . "<br />". + $missing_optional; $br = "<br />"; } diff --git a/src/css/search.css b/src/css/search.css index 3942b89d2..b06dee885 100755 --- a/src/css/search.css +++ b/src/css/search.css @@ -1239,7 +1239,7 @@ ul.in-list li margin: 0.2in 0 0 5.5in; padding: 0; position: relative; - top: -1.3in; + top: -1.4in; } .html-rtl .serp-stats { @@ -1249,7 +1249,7 @@ ul.in-list li margin: 0.2in 5.5in 0 0; padding: 0; position: relative; - top: -1.3in; + top: -1.4in; } .news-results { diff --git a/src/library/Utility.php b/src/library/Utility.php index 49613f329..c69df5fcd 100755 --- a/src/library/Utility.php +++ b/src/library/Utility.php @@ -1845,6 +1845,7 @@ function readMessage() function mimeType($file_name) { $mime_type = "unknown"; + $last_chars = "-1"; if (!file_exists($file_name)) { return $mime_type; } @@ -1866,7 +1867,7 @@ function mimeType($file_name) ".png" => "image/png" ]; if (isset($mime_types[$last_chars])) { - $mime_type = $mime_types['$last_chars']; + $mime_type = $mime_types[$last_chars]; } } diff --git a/src/locale/ar/configure.ini b/src/locale/ar/configure.ini index c3e961b69..5af680d52 100755 --- a/src/locale/ar/configure.ini +++ b/src/locale/ar/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "كان هناك ملفتعريف ; SystemComponent.php line: 1107 system_component_describe_robot = "يرجى وصف الروبوت الخاص بك" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "بي إتش بي 4لإصدار 5.3 أو أحدث" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "configs/config.php ليس ملقم ويب للكتابة." ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "دليل العمل يجب أن يكون قابل للكتابة من قبل ملقم ويب." ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "pnp.ini ملف post_max_size متغيرينبغي أن يكون مالا يقل عن 32 م" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "مطلوب ما يلي العناصر في عداد المفقودين: %s" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "كانت العناصر الاختيارية التالية مفقودة: %s" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "تمرير الاختيار." ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "استخدام configs/local_config.php حتى تغيير دليل العمل أعلاه قد لا تعمل." ; ; MachineController.php line: 193 diff --git a/src/locale/bn/configure.ini b/src/locale/bn/configure.ini index 1bac163a1..addf784cb 100755 --- a/src/locale/bn/configure.ini +++ b/src/locale/bn/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "" ; SystemComponent.php line: 1107 system_component_describe_robot = "" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "" ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "" ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "" ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "" ; ; MachineController.php line: 193 diff --git a/src/locale/de/configure.ini b/src/locale/de/configure.ini index 2d7ec4dc0..dff35bbcb 100755 --- a/src/locale/de/configure.ini +++ b/src/locale/de/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "" ; SystemComponent.php line: 1107 system_component_describe_robot = "" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "" ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "" ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "" ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "" ; ; MachineController.php line: 193 diff --git a/src/locale/en_US/configure.ini b/src/locale/en_US/configure.ini index 7183d37e8..f73dc1aeb 100644 --- a/src/locale/en_US/configure.ini +++ b/src/locale/en_US/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "There was a Problem Updating Pro ; SystemComponent.php line: 1107 system_component_describe_robot = "Please Describe Your Robot" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "PHP Version 5.4 or Newer" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "configs/config.php not web server writable." ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "Work directory needs to be writable by web server. " ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "php.ini file variable post_max_size should be at least 2M" ; -; SystemComponent.php line: 1181 -system_component_missing_required = "The following required items were missing: %s" -; -; SystemComponent.php line: 1204 -system_component_missing_optional = "The following optional items were missing: %s" +; SystemComponent.php line: 1185 +system_component_missing_required = "The following required items were missing:" ; ; SystemComponent.php line: 1209 +system_component_missing_optional = "The following optional items were missing:" +; +; SystemComponent.php line: 1215 system_component_check_passed = "Check Passed." ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "Using configs/LocalConfig.php so changing work directory above may not work." ; ; MachineController.php line: 193 diff --git a/src/locale/es/configure.ini b/src/locale/es/configure.ini index 94c2e2b53..1b023833b 100755 --- a/src/locale/es/configure.ini +++ b/src/locale/es/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "Hubo un problema al actualizar e ; SystemComponent.php line: 1107 system_component_describe_robot = "Por favor describa su robot" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "PHP Version 5.4 o la Más Reciente" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "configs/config.php el servidor web no es escribible." ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "Directorio de trabajo tiene que ser escribible por el servidor web" ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "La variable post_max_size del archivo php.ini deber�a ser de al menos 32M" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "Los siguientes elementos necesarios (requeridos), no estaban: %s" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "Los siguientes elementos opcionales, no estaban: %s" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "Entrada Aprobada" ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "" ; ; MachineController.php line: 193 diff --git a/src/locale/fa/configure.ini b/src/locale/fa/configure.ini index c64fa7ef4..7b979d355 100755 --- a/src/locale/fa/configure.ini +++ b/src/locale/fa/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "در به روز رسانی پر ; SystemComponent.php line: 1107 system_component_describe_robot = "لطفن رباتتان را توصیف کنید" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "PHP نسخهٔ ۳.۵ یا جدیدتر" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "وب سرور نمی‌تواند در configs/config.php بنویسد." ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "وب سرور باید بتواند در پوشهٔ کار بنویسد." ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "متغیر post_max_size در php.ini باید حداقل ۲ مگابایت باشد. " ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "موارد لازم زیر خالی هستند: %s" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "موارد اختیاری زیر خالی هستند: %s" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "در بررسی مشکلی پیدا نشد." ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "از configs/local_config.php استفاده می‌شود، بنابراین ممکن است تغییر بالا عمل نکند." ; ; MachineController.php line: 193 diff --git a/src/locale/fr_FR/configure.ini b/src/locale/fr_FR/configure.ini index 78baa0745..e64ca4abc 100755 --- a/src/locale/fr_FR/configure.ini +++ b/src/locale/fr_FR/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "" ; SystemComponent.php line: 1107 system_component_describe_robot = "" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "" ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "" ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "" ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "" ; ; MachineController.php line: 193 diff --git a/src/locale/he/configure.ini b/src/locale/he/configure.ini index 2553dc4c7..4964fdc54 100755 --- a/src/locale/he/configure.ini +++ b/src/locale/he/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "בעיה עם עדכון הפר ; SystemComponent.php line: 1107 system_component_describe_robot = "" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "" ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "" ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "" ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "" ; ; MachineController.php line: 193 diff --git a/src/locale/hi/configure.ini b/src/locale/hi/configure.ini index 4d2dc43b3..f2ce7ce14 100755 --- a/src/locale/hi/configure.ini +++ b/src/locale/hi/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "" ; SystemComponent.php line: 1107 system_component_describe_robot = "" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "" ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "" ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "" ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "" ; ; MachineController.php line: 193 diff --git a/src/locale/in_ID/configure.ini b/src/locale/in_ID/configure.ini index 3a9d36577..4f978946e 100755 --- a/src/locale/in_ID/configure.ini +++ b/src/locale/in_ID/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "" ; SystemComponent.php line: 1107 system_component_describe_robot = "" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "" ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "" ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "" ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "" ; ; MachineController.php line: 193 diff --git a/src/locale/it/configure.ini b/src/locale/it/configure.ini index e57fcdce7..051cc1b8e 100755 --- a/src/locale/it/configure.ini +++ b/src/locale/it/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "C'è stato un problem ; SystemComponent.php line: 1107 system_component_describe_robot = "Descrivi il tuo Robot" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "PHP Versione 5.4 o maggiore" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "File configs/config.php non scrivibile dal web server." ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "La Cartella di Lavoro deve essere scrivibile dal web server. " ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "La variabile post_max_size nel file php.ini dovrebbe essere minimo 32M" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "I seguenti oggetti richiesti sono mancanti: %s" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "I seguenti oggetti opzionali sono mancanti: %s" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "Controllo passato." ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "Usando configs/local_config.php la Cartella di Lavoro sopra potrebbe non funzionare." ; ; MachineController.php line: 193 diff --git a/src/locale/ja/configure.ini b/src/locale/ja/configure.ini index 164d9cdcf..56d232ec5 100755 --- a/src/locale/ja/configure.ini +++ b/src/locale/ja/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "プロフィールの変更で ; SystemComponent.php line: 1107 system_component_describe_robot = "ロボットの説明してください。" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "" ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "" ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "" ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "" ; ; MachineController.php line: 193 diff --git a/src/locale/kn/configure.ini b/src/locale/kn/configure.ini index 9a389c7b9..1140c7dc2 100755 --- a/src/locale/kn/configure.ini +++ b/src/locale/kn/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "" ; SystemComponent.php line: 1107 system_component_describe_robot = "" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "configs/config.php ವೆಬ್ ಸರ್ವರ್ ನಿಂದ ಬರೆಯಲು ಸಶಕ್ತವಲ್ಲ" ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "ಕಾರ್ಯ ನಿರ್ದೇಶಿಕೆ ವೆಬ್ ಸರ್ವರ್ ನಿಂದ ಬರೆಯಲು ಸಶಕ್ತವಾಗಿರಬೇಕು" ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "php.ini ಕಡಿತದ ಚರಾಂಶ post_max_size ಕನಿಷ್ಠ ಪಕ್ಷ ೧೬ ಎಂ.ಬಿ. ಇರಬೇಕು" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "ಬರುವ ಅವಶ್ಯಕವಸ್ತುಗಳು ತಪ್ಪಿಹೋಗಿದ್ದಾವೆ:" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "ಬರುವ ಕಡ್ಡಾಯವಲ್ಲದ ವಸ್ತುಗಳು ತಪ್ಪಿಹೋಗಿದ್ದಾವೆ:" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "ಪರಿಶೀಲನೆ ತೇರ್ಗಡೆಯಾಗಿದೆ" ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "configs/local_config.php ಉಪಯೋಗದಲ್ಲಿದೆ, ಅದರಿಂದ ಮೇಲಿನ ಕಾರ್ಯ ನಿರ್ದೇಶಿಕೆಯನ್ನು ಬದಲಾವಣೆ ನಿಷ್ಕ್ರಿಯವಾಗಬಹುದು " ; ; MachineController.php line: 193 diff --git a/src/locale/ko/configure.ini b/src/locale/ko/configure.ini index 57125691e..65fc62432 100755 --- a/src/locale/ko/configure.ini +++ b/src/locale/ko/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "프로필을 업데이트하는 ; SystemComponent.php line: 1107 system_component_describe_robot = "당신의 로봇을 기술해 주십시요." ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "" ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "" ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "" ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "" ; ; MachineController.php line: 193 diff --git a/src/locale/nl/configure.ini b/src/locale/nl/configure.ini index b763ade30..12c2c5d83 100644 --- a/src/locale/nl/configure.ini +++ b/src/locale/nl/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "Er was een probleem updaten prof ; SystemComponent.php line: 1107 system_component_describe_robot = "Beschrijf uw Robot" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "PHP versie 5.4 of nieuwer" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "configs / config.php niet webserver beschrijfbaar." ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "Werk map moet beschrijfbaar door web-server te zijn." ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "php.ini bestand variabele post_max_size moet minstens 2M" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "De volgende benodigde onderdelen ontbraken: %s" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "De volgende optionele onderdelen ontbraken: %s" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "Controleer Geslaagd." ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "Met behulp van configs / local_config.php dus veranderende werk directory hierboven kan niet werken." ; ; MachineController.php line: 193 diff --git a/src/locale/pl/configure.ini b/src/locale/pl/configure.ini index 57490fb9a..7d86b7203 100755 --- a/src/locale/pl/configure.ini +++ b/src/locale/pl/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "" ; SystemComponent.php line: 1107 system_component_describe_robot = "" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "" ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "" ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "" ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "" ; ; MachineController.php line: 193 diff --git a/src/locale/pt/configure.ini b/src/locale/pt/configure.ini index 7cba7ad61..0e4048a79 100755 --- a/src/locale/pt/configure.ini +++ b/src/locale/pt/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "" ; SystemComponent.php line: 1107 system_component_describe_robot = "" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "" ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "" ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "" ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "" ; ; MachineController.php line: 193 diff --git a/src/locale/ru/configure.ini b/src/locale/ru/configure.ini index a9e1d2af9..6400c69f2 100755 --- a/src/locale/ru/configure.ini +++ b/src/locale/ru/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "" ; SystemComponent.php line: 1107 system_component_describe_robot = "" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "" ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "" ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "" ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "" ; ; MachineController.php line: 193 diff --git a/src/locale/te/configure.ini b/src/locale/te/configure.ini index f5456afb4..9fc825998 100644 --- a/src/locale/te/configure.ini +++ b/src/locale/te/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "ప్రొఫైల్ నవ ; SystemComponent.php line: 1107 system_component_describe_robot = "మీ రోబోట్ ని దయచేసి వివరించండి" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "PHP వెర్షన్ 5.4 లేదా ఇంకా క్రొత్తది" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "" ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "" ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "క్రింది అవసరమైన అంశాలు మిస్ అయినవి: %s" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "క్రింది ఆప్షనల్ అంశాలు మిస్ అయినవి: %s" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "" ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "" ; ; MachineController.php line: 193 diff --git a/src/locale/th/configure.ini b/src/locale/th/configure.ini index 336e93a60..87d758c3b 100755 --- a/src/locale/th/configure.ini +++ b/src/locale/th/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "" ; SystemComponent.php line: 1107 system_component_describe_robot = "" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "" ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "" ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "" ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "" ; ; MachineController.php line: 193 diff --git a/src/locale/tr/configure.ini b/src/locale/tr/configure.ini index 73f6481a5..43f02c763 100755 --- a/src/locale/tr/configure.ini +++ b/src/locale/tr/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "" ; SystemComponent.php line: 1107 system_component_describe_robot = "" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "" ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "" ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "" ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "" ; ; MachineController.php line: 193 diff --git a/src/locale/vi_VN/configure.ini b/src/locale/vi_VN/configure.ini index 8de727ba9..b3d495dc9 100755 --- a/src/locale/vi_VN/configure.ini +++ b/src/locale/vi_VN/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "Có sự trở ngaị về ; SystemComponent.php line: 1107 system_component_describe_robot = "Diễn tả rô bô của bạn" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "" ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "" ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "Kiểm tra được thông qua" ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "" ; ; MachineController.php line: 193 diff --git a/src/locale/zh_CN/configure.ini b/src/locale/zh_CN/configure.ini index 0a75def55..9cc594431 100755 --- a/src/locale/zh_CN/configure.ini +++ b/src/locale/zh_CN/configure.ini @@ -1341,28 +1341,28 @@ system_component_configure_no_change_profile = "" ; SystemComponent.php line: 1107 system_component_describe_robot = "" ; -; SystemComponent.php line: 1157 +; SystemComponent.php line: 1161 system_component_php_version = "PHP版本" ; -; SystemComponent.php line: 1165 +; SystemComponent.php line: 1169 system_component_no_write_config_php = "PHP未寫入" ; -; SystemComponent.php line: 1170 +; SystemComponent.php line: 1174 system_component_no_write_work_dir = "未寫入目錄" ; -; SystemComponent.php line: 1175 +; SystemComponent.php line: 1179 system_component_post_size_small = "張貼小容量" ; -; SystemComponent.php line: 1181 +; SystemComponent.php line: 1185 system_component_missing_required = "缺少必要項目" ; -; SystemComponent.php line: 1204 +; SystemComponent.php line: 1209 system_component_missing_optional = "缺少選擇項目" ; -; SystemComponent.php line: 1209 +; SystemComponent.php line: 1215 system_component_check_passed = "通過檢查" ; -; SystemComponent.php line: 1214 +; SystemComponent.php line: 1220 system_component_using_local_config = "使用當地語言" ; ; MachineController.php line: 193 diff --git a/src/scripts/suggest.js b/src/scripts/suggest.js index f85ba4e13..8402fbfd0 100644 --- a/src/scripts/suggest.js +++ b/src/scripts/suggest.js @@ -382,7 +382,7 @@ function updateLocalStorage() var freq, k = 0; var sorted_locale_terms = new Array(); if (localStorage) { - if (locale_terms[store_term] == null) { + if (locale_terms && locale_terms[store_term] == null) { locale_terms[store_term] = 1; } else { freq = parseInt(locale_terms[store_term]); @@ -699,7 +699,10 @@ function spellCheck() clutter the top area so also don't suggest */ if (!corrected_spell || thesaurus_results) {return; } - var csrf_token = elt("csrf-token").value; + var logged_in = elt("csrf-token"); + if (logged_in) { + var csrf_token = elt("csrf-token").value; + } var its_value = elt("its-value").value; var query = elt("query-field").value; @@ -730,9 +733,13 @@ function spellCheck() return; } if (corrected_query.trim() != query) { - var token_name = csrf_name; - var spell_link = "?" + token_name + "=" + csrf_token + "&q=" - +corrected_query; + if (logged_in) { + var token_name = csrf_name; + var spell_link = "?" + token_name + "=" + csrf_token + "&q=" + + corrected_query; + } else { + var spell_link = "?q=" + corrected_query; + } corrected_spell.innerHTML = "<b>" + local_strings.spell +": <a rel='nofollow' href='" + spell_link + "'>" + corrected_query + "</a></b>";