Disable possibility of defaulting to display setup-only configs

This commit is contained in:
Miles Lott 2001-12-24 00:33:53 +00:00
parent ff13d7a060
commit 99bf9a1305

View File

@ -36,6 +36,10 @@
$appname = $GLOBALS['HTTP_GET_VARS']['appname'];
$config_appname = 'phpgwapi';
break;
case '':
/* This keeps the admin from getting into what is a setup-only config */
Header('Location: '.$GLOBALS['phpgw']->link('/admin/index.php'));
break;
default:
$appname = $GLOBALS['HTTP_GET_VARS']['appname'];
$config_appname = $appname;