diff --git a/library/attach_mod/includes/functions_admin.php b/library/attach_mod/includes/functions_admin.php index 2f0b0a4c..6c6dc14a 100644 --- a/library/attach_mod/includes/functions_admin.php +++ b/library/attach_mod/includes/functions_admin.php @@ -260,11 +260,11 @@ function search_attachments($order_by, &$total_rows) { if ($search_count_smaller != '') { - $where_sql[] = ' (a.download_count < ' . (int) $search_count_smaller . ') '; + $where_sql[] = ' (a.download_count <= ' . (int) $search_count_smaller . ') '; } else if ($search_count_greater != '') { - $where_sql[] = ' (a.download_count > ' . (int) $search_count_greater . ') '; + $where_sql[] = ' (a.download_count >= ' . (int) $search_count_greater . ') '; } } @@ -273,18 +273,18 @@ function search_attachments($order_by, &$total_rows) { if ($search_size_smaller != '') { - $where_sql[] = ' (a.filesize < ' . (int) $search_size_smaller . ') '; + $where_sql[] = ' (a.filesize <= ' . (int) $search_size_smaller . ') '; } else if ($search_size_greater != '') { - $where_sql[] = ' (a.filesize > ' . (int) $search_size_greater . ') '; + $where_sql[] = ' (a.filesize >= ' . (int) $search_size_greater . ') '; } } // Search Attachment Time if ($search_days_greater != '') { - $where_sql[] = ' (a.filetime < ' . ( TIMENOW - ((int) $search_days_greater * 86400)) . ') '; + $where_sql[] = ' (a.filetime <= ' . ( TIMENOW - ((int) $search_days_greater * 86400)) . ') '; } // Search Forum @@ -350,4 +350,4 @@ function limit_array($array, $start, $pagelimit) } return $limit_array; -} \ No newline at end of file +} diff --git a/library/language/en/main.php b/library/language/en/main.php index bbf07ddd..aab68b87 100644 --- a/library/language/en/main.php +++ b/library/language/en/main.php @@ -2212,11 +2212,11 @@ $lang['FILECOMMENT'] = 'File Comment'; // Control Panel -> Search $lang['SEARCH_WILDCARD_EXPLAIN'] = 'Use * as a wildcard for partial matches'; -$lang['SIZE_SMALLER_THAN'] = 'Attachment size smaller than (bytes)'; -$lang['SIZE_GREATER_THAN'] = 'Attachment size greater than (bytes)'; -$lang['COUNT_SMALLER_THAN'] = 'Download count is smaller than'; -$lang['COUNT_GREATER_THAN'] = 'Download count is greater than'; -$lang['MORE_DAYS_OLD'] = 'More than this many days old'; +$lang['SIZE_SMALLER_THAN'] = 'Attachment size smaller than (or equal) (in bytes)'; +$lang['SIZE_GREATER_THAN'] = 'Attachment size greater than (or equal) (in bytes)'; +$lang['COUNT_SMALLER_THAN'] = 'Download count is smaller than (or equal)'; +$lang['COUNT_GREATER_THAN'] = 'Download count is greater than (or equal)'; +$lang['MORE_DAYS_OLD'] = 'More than (or equal) this many days old'; $lang['NO_ATTACH_SEARCH_MATCH'] = 'No Attachments met your search criteria'; // Control Panel -> Statistics diff --git a/library/language/ru/main.php b/library/language/ru/main.php index b2316b96..8dee1be3 100644 --- a/library/language/ru/main.php +++ b/library/language/ru/main.php @@ -2212,11 +2212,11 @@ $lang['FILECOMMENT'] = 'Комментарий к файлу'; // Control Panel -> Search $lang['SEARCH_WILDCARD_EXPLAIN'] = 'Используйте *, если не знаете точного названия'; -$lang['SIZE_SMALLER_THAN'] = 'Приложение меньше чем (в байтах)'; -$lang['SIZE_GREATER_THAN'] = 'Приложение больше чем (в байтах)'; -$lang['COUNT_SMALLER_THAN'] = 'Количество скачиваний меньше чем'; -$lang['COUNT_GREATER_THAN'] = 'Количество скачиваний больше чем'; -$lang['MORE_DAYS_OLD'] = 'Старее, чем это количество дней'; +$lang['SIZE_SMALLER_THAN'] = 'Приложение меньше чем (либо равно) (в байтах)'; +$lang['SIZE_GREATER_THAN'] = 'Приложение больше чем (либо равно) (в байтах)'; +$lang['COUNT_SMALLER_THAN'] = 'Количество скачиваний меньше чем (либо равно)'; +$lang['COUNT_GREATER_THAN'] = 'Количество скачиваний больше чем (либо равно)'; +$lang['MORE_DAYS_OLD'] = 'Старее, чем (либо равно) это количество дней'; $lang['NO_ATTACH_SEARCH_MATCH'] = 'Не найдено ни одного приложения, которое бы отвечало Вашему поиску'; // Control Panel -> Statistics diff --git a/library/language/uk/main.php b/library/language/uk/main.php index 6d8f01a7..da049488 100644 --- a/library/language/uk/main.php +++ b/library/language/uk/main.php @@ -2212,11 +2212,11 @@ $lang['FILECOMMENT'] = 'Коментар до файлу'; // Control Panel -> Search $lang['SEARCH_WILDCARD_EXPLAIN'] = 'Використовуйте *, якщо не знаєте точної назви'; -$lang['SIZE_SMALLER_THAN'] = 'Додаток менше ніж (в байтах)'; -$lang['SIZE_GREATER_THAN'] = 'Додаток більше ніж (в байтах)'; -$lang['COUNT_SMALLER_THAN'] = 'Кількість скачувань менше ніж'; -$lang['COUNT_GREATER_THAN'] = 'Кількість скачувань більше ніж'; -$lang['MORE_DAYS_OLD'] = 'Старіше, ніж ця кількість днів'; +$lang['SIZE_SMALLER_THAN'] = 'Додаток менше ніж (або дорівнює) (в байтах)'; +$lang['SIZE_GREATER_THAN'] = 'Додаток більше ніж (або дорівнює) (в байтах)'; +$lang['COUNT_SMALLER_THAN'] = 'Кількість скачувань менше ніж (або дорівнює)'; +$lang['COUNT_GREATER_THAN'] = 'Кількість скачувань більше ніж (або дорівнює)'; +$lang['MORE_DAYS_OLD'] = 'Старіше, ніж (або дорівнює) ця кількість днів'; $lang['NO_ATTACH_SEARCH_MATCH'] = 'Не знайдено жодного додатка, яке б відповідало Вашому пошуку'; // Control Panel -> Statistics