Add privacy to options tabs so we can get back to it.
This commit is contained in:
parent
e3d2b14b69
commit
601df481ed
|
@ -44,6 +44,7 @@ $tabs['medband'] = translate('MediumBW');
|
|||
$tabs['lowband'] = translate('LowBW');
|
||||
$tabs['users'] = translate('Users');
|
||||
$tabs['control'] = translate('Control');
|
||||
$tabs['privacy'] = translate('Privacy');
|
||||
|
||||
if (isset($_REQUEST['tab']))
|
||||
$tab = validHtmlStr($_REQUEST['tab']);
|
||||
|
@ -53,7 +54,6 @@ else
|
|||
$focusWindow = true;
|
||||
|
||||
xhtmlHeaders(__FILE__, translate('Options'));
|
||||
|
||||
?>
|
||||
<body>
|
||||
<?php echo getNavBarHTML(); ?>
|
||||
|
@ -194,6 +194,14 @@ foreach ( array_map('basename', glob('skins/'.$skin.'/css/*', GLOB_ONLYDIR)) as
|
|||
}
|
||||
// Have to do this
|
||||
header('Location: '.$redirect);
|
||||
} else if ($tab == 'privacy') {
|
||||
if (canView('System')) {
|
||||
$redirect = '?view=privacy';
|
||||
} else {
|
||||
$redirect = '?view=error';
|
||||
}
|
||||
// Have to do this
|
||||
header('Location: '.$redirect);
|
||||
} else if ( $tab == 'servers' ) {
|
||||
?>
|
||||
<form name="serversForm" method="post" action="?">
|
||||
|
|
Loading…
Reference in New Issue