($tab == 'setup') ? true : false,
'text' => ''.html_print_image('images/gm_setup.png', true, ['title' => __('Options')]).'',
];
if (enterprise_installed()) {
$buttons['offline'] = [
'active' => ($tab == 'offline') ? true : false,
'text' => ''.html_print_image('images/box.png', true, ['title' => __('Offline update manager')]).'',
];
}
$buttons['online'] = [
'active' => ($tab == 'online') ? true : false,
'text' => ''.html_print_image('images/op_gis.png', true, ['title' => __('Online update manager')]).'',
];
switch ($tab) {
case 'setup':
$title = __('Update manager » Setup');
break;
case 'offline':
$title = __('Update manager » Offline');
$help_header = 'update_manager_offline_tab';
break;
case 'online':
$title = __('Update manager » Online');
$help_header = 'update_manager_online_tab';
break;
}
ui_print_page_header(
$title,
'images/gm_setup.png',
false,
$help_header,
true,
$buttons
);
switch ($tab) {
case 'setup':
include $config['homedir'].'/godmode/update_manager/update_manager.setup.php';
break;
case 'offline':
include $config['homedir'].'/godmode/update_manager/update_manager.offline.php';
break;
case 'online':
default:
include $config['homedir'].'/godmode/update_manager/update_manager.online.php';
break;
}