Location: PHPKode > projects > Ninja Blog > posttheme.php
<?php require('sas.php'); ?>
<?php include ('config.php'); ?>

<!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">
<head>
<title>Logged in - Dashboard</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="styles/<?php echo $style ?>/admin.css" />
</head>

<style type="text/css">* html { overflow-x: hidden; }</style>
</head>
<body>
<div id="wphead">
<h1><?php echo $title ?> <span>(<a href="index.php">View site &raquo;</a>)</span></h1>

</div>
<div id="user_info"><p>Hello. [<a href="login.php?logout=1" title="Log out of this account">Sign Out</a>, <a href="profile.php">My Account</a>] </p></div>

<ul id="adminmenu">

	<li><a href='login.php' >Dashboard</a></li>
	<li><a href='post.php'>Write</a></li>
	<li><a href='personal.php' >Personal Settings</a></li>
	<li><a href='links.php'>Pages</a></li>
	<li><a href='theme.php' class="current">Theme</a></li>
	</ul>

<div class="wrap">

<h2>Theme Settings</h2>
<?php
$newdata ='<?php $style = "'.$_POST['style'].'"; ?>';
$myFile = "themeconfig.php";
$fh = fopen($myFile, 'w') or die("There has been an error.");
fwrite($fh, $newdata);
fclose($fh);
?>
Your theme data has been updated, <?php echo $name; ?>.
<div id="footer"><p>
Ninja Blog - Based on WordPress<Br />
&copy; 2007-09 <a href="http://www.ninjadesigns.co.uk">Ninja Designs</a> (Creative commons)
</p>

</div>
</body>
</html>
Return current item: Ninja Blog