<!-- EXTENSION: settings -->

<?php if($_SESSION['user'] == sha1($administrator_name)) { ?>

	<?php quick_help(txt('settings', 'Über diese Einstellungen können Sie allgemeine Informationen über Ihre Website angeben und das Redaktionssystem konfigurieren – zum Beispiel diese Erklärungen deaktivieren oder aktivieren.')); ?>
	
	<div style="clear: left"></div>

	<div id="content-menu">
		<ul>
			<li class="<?php if($_GET['area'] == 'system') echo 'active'; ?>"><a href="index.php?backend=settings&amp;area=system"><strong><?php echo txt('settings', 'System'); ?></strong></a></li>
			<li class="<?php if($_GET['area'] == 'template') echo 'active'; ?>"><a href="index.php?backend=settings&amp;area=template"><strong><?php echo txt('settings', 'Seitenvorlage'); ?></strong></a></li>
			<li class="<?php if($_GET['area'] == 'widgets') echo 'active'; ?>"><a href="index.php?backend=settings&amp;area=widgets"><strong><?php echo txt('settings', 'Widgets'); ?></strong></a></li>
			<li class="<?php if($_GET['area'] == 'modules') echo 'active'; ?>"><a href="index.php?backend=settings&amp;area=modules"><strong><?php echo txt('settings', 'Module'); ?></strong></a></li>
			<li class="<?php if($_GET['area'] == 'extensions') echo 'active'; ?>"><a href="index.php?backend=settings&amp;area=extensions"><strong><?php echo txt('settings', 'Erweiterungen'); ?></strong></a></li>
			<li class="<?php if($_GET['area'] == 'plugins') echo 'active'; ?>"><a href="index.php?backend=settings&amp;area=plugins"><strong><?php echo txt('settings', 'Plugins'); ?></strong></a></li>
		</ul>
	</div>
	
	<div style="clear: left"></div>
	
	<?php
		$settings_template = $system_data['folder']['extensions'] . 'settings/' . $_GET['area'] . '.tpl';
		if(file_exists($settings_template)) include($settings_template);
		
		$package_areas = array('widgets', 'modules', 'extensions', 'plugins');
	?>

	<?php if(in_array($_GET['area'], $package_areas)) { ?>
		<hr>
		
		<p style="text-align: right" class="small"><?php echo txt('settings', 'Pakete') . ': ' . $package_count; ?> / <a style="color: inherit" href="index.php?backend=settings&amp;area=<?php echo $_GET['area'] . (isset($_GET['show_system_packages']) ? '' : '&amp;show_system_packages'); ?>"><?php echo isset($_GET['show_system_packages']) ? txt('settings', 'Systempakete verbergen') : txt('settings', 'Systempakete anzeigen'); ?></a></p>
		
		<div style="clear: both"></div>
		
		<?php if(is_writeable($system_data['folder'][$_GET['area']])) { ?>
			<h4><?php echo txt('settings', 'Paket hochladen (ZIP-Datei)'); ?></h4>
			
			<form accept-charset="utf-8" enctype="multipart/form-data" method="post" action="index.php?backend=settings&amp;area=<?php echo $_GET['area']; ?>">
				<p><input type="file" name="wmep-file"> <input type="submit" name="upload-wmep-file" value="<?php echo txt('settings', 'Hochladen'); ?>"></p>
			</form>
		<?php } ?>
	<?php } ?>
	
<?php } ?>