Revert "Updated"

This reverts commit 903b50f740.
This commit is contained in:
Roman Kelesidis 2023-10-30 17:25:42 +07:00
parent aaff47b8a9
commit 474130fd73
4 changed files with 21 additions and 21 deletions

View File

@ -260,11 +260,11 @@ function search_attachments($order_by, &$total_rows)
{ {
if ($search_count_smaller != '') 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 != '') 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 != '') 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 != '') else if ($search_size_greater != '')
{ {
$where_sql[] = ' (a.filesize >= ' . (int) $search_size_greater . ') '; $where_sql[] = ' (a.filesize > ' . (int) $search_size_greater . ') ';
} }
} }
// Search Attachment Time // Search Attachment Time
if ($search_days_greater != '') 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 // Search Forum
@ -350,4 +350,4 @@ function limit_array($array, $start, $pagelimit)
} }
return $limit_array; return $limit_array;
} }

View File

@ -2212,11 +2212,11 @@ $lang['FILECOMMENT'] = 'File Comment';
// Control Panel -> Search // Control Panel -> Search
$lang['SEARCH_WILDCARD_EXPLAIN'] = 'Use * as a wildcard for partial matches'; $lang['SEARCH_WILDCARD_EXPLAIN'] = 'Use * as a wildcard for partial matches';
$lang['SIZE_SMALLER_THAN'] = 'Attachment size smaller than (or equal) (in bytes)'; $lang['SIZE_SMALLER_THAN'] = 'Attachment size smaller than (bytes)';
$lang['SIZE_GREATER_THAN'] = 'Attachment size greater than (or equal) (in bytes)'; $lang['SIZE_GREATER_THAN'] = 'Attachment size greater than (bytes)';
$lang['COUNT_SMALLER_THAN'] = 'Download count is smaller than (or equal)'; $lang['COUNT_SMALLER_THAN'] = 'Download count is smaller than';
$lang['COUNT_GREATER_THAN'] = 'Download count is greater than (or equal)'; $lang['COUNT_GREATER_THAN'] = 'Download count is greater than';
$lang['MORE_DAYS_OLD'] = 'More than (or equal) this many days old'; $lang['MORE_DAYS_OLD'] = 'More than this many days old';
$lang['NO_ATTACH_SEARCH_MATCH'] = 'No Attachments met your search criteria'; $lang['NO_ATTACH_SEARCH_MATCH'] = 'No Attachments met your search criteria';
// Control Panel -> Statistics // Control Panel -> Statistics

View File

@ -2212,11 +2212,11 @@ $lang['FILECOMMENT'] = 'Комментарий к файлу';
// Control Panel -> Search // Control Panel -> Search
$lang['SEARCH_WILDCARD_EXPLAIN'] = 'Используйте *, если не знаете точного названия'; $lang['SEARCH_WILDCARD_EXPLAIN'] = 'Используйте *, если не знаете точного названия';
$lang['SIZE_SMALLER_THAN'] = 'Приложение меньше чем (либо равно) (в байтах)'; $lang['SIZE_SMALLER_THAN'] = 'Приложение меньше чем (в байтах)';
$lang['SIZE_GREATER_THAN'] = 'Приложение больше чем (либо равно) (в байтах)'; $lang['SIZE_GREATER_THAN'] = 'Приложение больше чем (в байтах)';
$lang['COUNT_SMALLER_THAN'] = 'Количество скачиваний меньше чем (либо равно)'; $lang['COUNT_SMALLER_THAN'] = 'Количество скачиваний меньше чем';
$lang['COUNT_GREATER_THAN'] = 'Количество скачиваний больше чем (либо равно)'; $lang['COUNT_GREATER_THAN'] = 'Количество скачиваний больше чем';
$lang['MORE_DAYS_OLD'] = 'Старее, чем (либо равно) это количество дней'; $lang['MORE_DAYS_OLD'] = 'Старее, чем это количество дней';
$lang['NO_ATTACH_SEARCH_MATCH'] = 'Не найдено ни одного приложения, которое бы отвечало Вашему поиску'; $lang['NO_ATTACH_SEARCH_MATCH'] = 'Не найдено ни одного приложения, которое бы отвечало Вашему поиску';
// Control Panel -> Statistics // Control Panel -> Statistics

View File

@ -2212,11 +2212,11 @@ $lang['FILECOMMENT'] = 'Коментар до файлу';
// Control Panel -> Search // Control Panel -> Search
$lang['SEARCH_WILDCARD_EXPLAIN'] = 'Використовуйте *, якщо не знаєте точної назви'; $lang['SEARCH_WILDCARD_EXPLAIN'] = 'Використовуйте *, якщо не знаєте точної назви';
$lang['SIZE_SMALLER_THAN'] = 'Додаток менше ніж (або дорівнює) (в байтах)'; $lang['SIZE_SMALLER_THAN'] = 'Додаток менше ніж (в байтах)';
$lang['SIZE_GREATER_THAN'] = 'Додаток більше ніж (або дорівнює) (в байтах)'; $lang['SIZE_GREATER_THAN'] = 'Додаток більше ніж (в байтах)';
$lang['COUNT_SMALLER_THAN'] = 'Кількість скачувань менше ніж (або дорівнює)'; $lang['COUNT_SMALLER_THAN'] = 'Кількість скачувань менше ніж';
$lang['COUNT_GREATER_THAN'] = 'Кількість скачувань більше ніж (або дорівнює)'; $lang['COUNT_GREATER_THAN'] = 'Кількість скачувань більше ніж';
$lang['MORE_DAYS_OLD'] = 'Старіше, ніж (або дорівнює) ця кількість днів'; $lang['MORE_DAYS_OLD'] = 'Старіше, ніж ця кількість днів';
$lang['NO_ATTACH_SEARCH_MATCH'] = 'Не знайдено жодного додатка, яке б відповідало Вашому пошуку'; $lang['NO_ATTACH_SEARCH_MATCH'] = 'Не знайдено жодного додатка, яке б відповідало Вашому пошуку';
// Control Panel -> Statistics // Control Panel -> Statistics