Moved FTP signature to its own table, so we can use it more securely around JCB (even in the global settings). Improved the Linked view option in admin-views.
This commit is contained in:
@ -1032,7 +1032,26 @@ class Get
|
||||
$component->php_dashboard_methods = '';
|
||||
$component->dashboard_tab = '';
|
||||
}
|
||||
|
||||
// add the update FTP server sig
|
||||
if ($component->add_update_server == 1 && is_numeric($component->update_server_ftp) && $component->update_server_ftp > 0)
|
||||
{
|
||||
$component->update_server_ftp = ComponentbuilderHelper::getVar('ftp', (int) $component->update_server_ftp, 'id', 'signature');
|
||||
}
|
||||
else
|
||||
{
|
||||
$component->update_server_ftp = 0;
|
||||
}
|
||||
// add the sales FTP server sig
|
||||
if ($component->add_sales_server == 1 && is_numeric($component->sales_server_ftp) && $component->sales_server_ftp > 0)
|
||||
{
|
||||
$component->sales_server_ftp = ComponentbuilderHelper::getVar('ftp', (int) $component->sales_server_ftp, 'id', 'signature');
|
||||
}
|
||||
else
|
||||
{
|
||||
$component->sales_server_ftp = 0;
|
||||
$component->add_sales_server = 0;
|
||||
}
|
||||
|
||||
// return the found component data
|
||||
return $component;
|
||||
}
|
||||
|
Reference in New Issue
Block a user