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