>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see .
*/
if(isset($_COOKIE['PHPSESSID'])){session_start();}
if(!isset($_SESSION['id'])){header('Location: '.BASEURL.'/login?returnto='.urlencode($_SERVER['REQUEST_URI']));}
include_once('head.php');
switch($path[2])
{
case 'privileges': include('admin_privileges.php'); break;
case 'moderate': include('admin_moderate.php'); break;
case 'federation': include('admin_federation.php'); break;
case 'filetypes': include('admin_filetypes.php'); break;
case 'licenses': include('admin_licenses.php'); break;
default:
if($privileges&PRIV_PRIVILEGES){print('Manage user privileges
');}
if($privileges&PRIV_MODERATE){print('Moderation options
');}
if($privileges&PRIV_FEDERATION){print('Manage peer federation
');}
if($privileges&PRIV_FILETYPES){print('Manage filetypes
');}
if($privileges&PRIV_LICENSES){print('Manage the license list
');}
}
?>