mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-15 20:49:41 +01:00
The final problem 🧣
This commit is contained in:
@@ -137,7 +137,7 @@ else
|
||||
{
|
||||
|
||||
//
|
||||
//Delete all user files [only one user]
|
||||
//Delete all user files [only one user]
|
||||
//
|
||||
if (ig('deletefiles'))
|
||||
{
|
||||
@@ -250,7 +250,7 @@ else
|
||||
//posts search ..
|
||||
if (ig('search_id'))
|
||||
{
|
||||
//get search filter
|
||||
//get search filter
|
||||
$filter = get_filter(g('search_id'), 'file_search', false, 'filter_uid');
|
||||
$deletelink = basename(ADMIN_PATH) . '?cp=' . basename(__file__, '.php') . '&deletefiles=' . g('search_id');
|
||||
$is_search = true;
|
||||
@@ -277,7 +277,7 @@ else
|
||||
{
|
||||
//display files or display pics and files only in search
|
||||
$img_types = ['gif','jpg','png','bmp','jpeg','GIF','JPG','PNG','BMP','JPEG'];
|
||||
$query['WHERE'] = $query['WHERE'] . (empty($query['WHERE']) ? '' : ' AND ') . "f.type NOT IN ('" . implode("', '", $img_types) . "')";
|
||||
$query['WHERE'] = (empty($query['WHERE']) ? '' : $query['WHERE'] . ' AND ') . "f.type NOT IN ('" . implode("', '", $img_types) . "')";
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -303,7 +303,7 @@ else
|
||||
}
|
||||
|
||||
|
||||
//pager
|
||||
//pager
|
||||
$currentPage = ig('page') ? g('page', 'int') : 1;
|
||||
$Pager = new Pagination($files_acp_perpage, $nums_rows, $currentPage);
|
||||
$start = $Pager->getStartRow();
|
||||
|
||||
@@ -94,24 +94,25 @@ switch ($case):
|
||||
) && ! preg_match('/^https?:\/\//', $installed_plugins[$row['plg_name']]['extra_info']['settings_page']);
|
||||
|
||||
|
||||
foreach (['plugin_title', 'plugin_description'] as $localizedInfo)
|
||||
foreach (['plugin_title', 'plugin_description'] as $localized_info)
|
||||
{
|
||||
if (is_array($installed_plugins[$row['plg_name']]['extra_info'][$localizedInfo]))
|
||||
if (! empty($installed_plugins[$row['plg_name']]['extra_info'][$localized_info]) &&
|
||||
is_array($installed_plugins[$row['plg_name']]['extra_info'][$localized_info]))
|
||||
{
|
||||
if (! empty($installed_plugins[$row['plg_name']]['extra_info'][$localizedInfo][$config['language']]))
|
||||
if (! empty($installed_plugins[$row['plg_name']]['extra_info'][$localized_info][$config['language']]))
|
||||
{
|
||||
$installed_plugins[$row['plg_name']]['extra_info'][$localizedInfo] =
|
||||
shorten_text($installed_plugins[$row['plg_name']]['extra_info'][$localizedInfo][$config['language']], 100);
|
||||
$installed_plugins[$row['plg_name']]['extra_info'][$localized_info] =
|
||||
shorten_text($installed_plugins[$row['plg_name']]['extra_info'][$localized_info][$config['language']], 100);
|
||||
}
|
||||
elseif (! empty($installed_plugins[$row['plg_name']]['extra_info'][$localizedInfo]['en']))
|
||||
elseif (! empty($installed_plugins[$row['plg_name']]['extra_info'][$localized_info]['en']))
|
||||
{
|
||||
$installed_plugins[$row['plg_name']]['extra_info'][$localizedInfo] =
|
||||
shorten_text($installed_plugins[$row['plg_name']]['extra_info'][$localizedInfo]['en'], 100);
|
||||
$installed_plugins[$row['plg_name']]['extra_info'][$localized_info] =
|
||||
shorten_text($installed_plugins[$row['plg_name']]['extra_info'][$localized_info]['en'], 100);
|
||||
}
|
||||
else
|
||||
{
|
||||
$installed_plugins[$row['plg_name']]['extra_info'][$localizedInfo] =
|
||||
shorten_text($installed_plugins[$row['plg_name']]['extra_info'][$localizedInfo][0], 100);
|
||||
$installed_plugins[$row['plg_name']]['extra_info'][$localized_info] =
|
||||
shorten_text($installed_plugins[$row['plg_name']]['extra_info'][$localized_info][0], 100);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user