Location: PHPKode > projects > PHP-Comics > php-comics/admin_settings.php
<?php
	include('inc/inc.php');
	if(isset($_POST['Submit']))
	{
		DB::setSetting("ComicsDirectory",$_POST['comics']);
		DB::setSetting("CoversDirectory",$_POST['covers']);
		DB::setSetting("CacheDirectory",$_POST['cache']);
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr">
<head>
	<title>PHP Comics: Admin Settings</title>
	<link rel="stylesheet" type="text/css" href="css/main.css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/admin.js"></script>
</head>
<body>
<form action="" method="post">
<?=site::showsidemenu();?>
<h1>Admin Settings</h1>
<table>
	<tr>
		<td>Comics Directory</td>
		<td><input type="text" name="comics" size="100" value="<?=DB::Setting("ComicsDirectory",0)?>" /></td>
	<tr>
		<td>Covers Directory</td>
		<td><input type="text" name="covers" size="100" value="<?=DB::Setting("CoversDirectory",0)?>" /></td>
	</tr>
	<tr>
		<td>Cache Directory</td>
		<td><input type="text" name="cache" size="100" value="<?=DB::Setting("CacheDirectory",0)?>" /></td>
	</tr>
</table>
<input type="submit" name="Submit" value="Save Settings" />
</form>
</body>
</html>
Return current item: PHP-Comics