Add privacy to options tabs so we can get back to it.
This commit is contained in:
parent
1561adbef9
commit
03897bf68e
|
@ -44,8 +44,9 @@ $tabs['medband'] = translate('MediumBW');
|
||||||
$tabs['lowband'] = translate('LowBW');
|
$tabs['lowband'] = translate('LowBW');
|
||||||
$tabs['users'] = translate('Users');
|
$tabs['users'] = translate('Users');
|
||||||
$tabs['control'] = translate('Control');
|
$tabs['control'] = translate('Control');
|
||||||
|
$tabs['privacy'] = translate('Privacy');
|
||||||
|
|
||||||
if ( isset($_REQUEST['tab']) )
|
if (isset($_REQUEST['tab']))
|
||||||
$tab = validHtmlStr($_REQUEST['tab']);
|
$tab = validHtmlStr($_REQUEST['tab']);
|
||||||
else
|
else
|
||||||
$tab = 'system';
|
$tab = 'system';
|
||||||
|
@ -53,7 +54,6 @@ else
|
||||||
$focusWindow = true;
|
$focusWindow = true;
|
||||||
|
|
||||||
xhtmlHeaders(__FILE__, translate('Options'));
|
xhtmlHeaders(__FILE__, translate('Options'));
|
||||||
|
|
||||||
?>
|
?>
|
||||||
<body>
|
<body>
|
||||||
<?php echo getNavBarHTML(); ?>
|
<?php echo getNavBarHTML(); ?>
|
||||||
|
@ -62,7 +62,7 @@ xhtmlHeaders(__FILE__, translate('Options'));
|
||||||
<nav id="sidebar">
|
<nav id="sidebar">
|
||||||
<ul class="nav nav-pills flex-column h-100">
|
<ul class="nav nav-pills flex-column h-100">
|
||||||
<?php
|
<?php
|
||||||
foreach ( $tabs as $name=>$value ) {
|
foreach ($tabs as $name=>$value) {
|
||||||
?>
|
?>
|
||||||
<li class="nav-item form-control-sm my-1"><a class="nav-link<?php echo $tab == $name ? ' active' : '' ?>" href="?view=<?php echo $view ?>&tab=<?php echo $name ?>"><?php echo $value ?></a></li>
|
<li class="nav-item form-control-sm my-1"><a class="nav-link<?php echo $tab == $name ? ' active' : '' ?>" href="?view=<?php echo $view ?>&tab=<?php echo $name ?>"><?php echo $value ?></a></li>
|
||||||
<?php
|
<?php
|
||||||
|
@ -194,6 +194,14 @@ foreach ( array_map('basename', glob('skins/'.$skin.'/css/*', GLOB_ONLYDIR)) as
|
||||||
}
|
}
|
||||||
// Have to do this
|
// Have to do this
|
||||||
header('Location: '.$redirect);
|
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' ) {
|
} else if ( $tab == 'servers' ) {
|
||||||
?>
|
?>
|
||||||
<form name="serversForm" method="post" action="?">
|
<form name="serversForm" method="post" action="?">
|
||||||
|
|
Loading…
Reference in New Issue