[
'active' => ($tab == 'setup') ? true : false,
'text' => ''.html_print_image('images/gm_setup.png', true, ['title' => __('Options')]).'',
],
'offline' => [
'active' => ($tab == 'offline') ? true : false,
'text' => ''.html_print_image('images/box.png', true, ['title' => __('Offline update manager')]).'',
],
'online' => [
'active' => ($tab == 'online') ? true : false,
'text' => ''.html_print_image('images/op_gis.png', true, ['title' => __('Online update manager')]).'',
],
];
if (license_free()) {
$buttons['messages'] = [
'active' => ($tab == 'messages') ? true : false,
'text' => ''.html_print_image('images/email_mc.png', true, ['title' => __('Update manager messages')]).'',
];
}
switch ($tab) {
case 'setup':
$title = __('Update manager » Setup');
break;
case 'offline':
$title = __('Update manager » Offline');
break;
case 'online':
$title = __('Update manager » Online');
break;
case 'messages':
$title = __('Update manager » Messages');
break;
}
ui_print_page_header(
$title,
'images/gm_setup.png',
false,
'',
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 'messages':
include $config['homedir'].'/godmode/update_manager/update_manager.messages.php';
break;
case 'online':
default:
include $config['homedir'].'/godmode/update_manager/update_manager.online.php';
break;
}