rendered paste body<?
$q = mysql_query("SELECT * FROM general_settings WHERE `id` = '1'");
$r = mysql_fetch_array($q);
$id = "1";
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0" style="border-left: #ACA073 3px solid">
<tr>
<td> <span class="pageheaders">General Settings<? print $stat ?></span></td>
</tr>
</table>
<br />
<form id="form1" name="form1" method="post" action="">
<table width="100%" border="0" cellspacing="0" cellpadding="4">
<tr>
<td width="50%" valign="top" bgcolor="#EDEBD6"><div align="left"><strong>Blog Name</strong><br />
This is the name of your blog or website, whatever you want to call it. </div></td>
<td width="50%" valign="middle" bgcolor="#EDEBD6"><div align="left">
<input name="blog_name" type="text" id="blog_name" value="<?=$r['blog_name']; ?>" size="50" />
</div></td>
</tr>
<tr>
<td valign="top"><div align="left"><strong>Blog Slogan</strong><br>
This will be shown on the web site and in the title of the page e.g sitename.com - 'my lovely blog!'
</div></td>
<td valign="middle"><div align="left">
<input name="blog_slogan" type="text" id="blog_slogan" value="<?=$r['blog_slogan']; ?>" size="50" />
</div></td>
</tr>
<tr>
<td valign="top" bgcolor="#EDEBD6"><div align="left"><strong>Blog URL</strong><br />
The full URL to your blog/website. ( inculde trailing slash / ) </div></td>
<td valign="middle" bgcolor="#EDEBD6"><div align="left">
<input name="blog_url" type="text" id="blog_url" value="<?=$r['blog_url']; ?>" size="50" />
</div></td>
</tr>
<tr>
<td valign="top"><div align="left"><strong>Contact Email</strong><br />
This address will be the address that the contact form gets mailed to. </div></td>
<td valign="middle"><div align="left">
<input name="contact_email" type="text" id="contact_email" value="<?=$r['contact_email']; ?>" size="50" />
</div></td>
</tr>
<tr>
<td valign="top" bgcolor="#EDEBD6"><div align="left"><strong>Allow Registration</strong><br>
You can turn user registration on and off.
</div></td>
<td valign="middle" bgcolor="#EDEBD6"><div align="left">
<label>
<select name="allow_register" id="allow_register">
<option value="1" <? if($r['allow_register'] == '1') { print "selected"; } ?>>Enable Registration</option>
<option value="0" <? if($r['allow_register'] == '0') { print "selected"; } ?>>Disable Registration</option>
</select>
</label>
</div></td>
</tr>
<tr>
<td valign="top"><div align="left"><strong>User Comments</strong><br>
Can non-registered users post new comments?
</div></td>
<td valign="middle"><div align="left">
<label>
<select name="allow_comments" id="allow_comments">
<option value="1" <? if($r['allow_comments'] == '1') { print "selected"; } ?>>Enable Commenting</option>
<option value="0" <? if($r['allow_comments'] == '0') { print "selected"; } ?>>Disable Commenting</option>
</select>
</label>
</div></td>
</tr>
<tr>
<td valign="top" bgcolor="#EDEBD6"><div align="left"><strong>Upload Dir Path</strong><br />
This is the <em>path</em> to the <em>/inc/uploads/</em> directory for uploading images. ( inculde trailing slash / ) </div></td>
<td valign="middle" bgcolor="#EDEBD6"><div align="left">
<input name="upload_dir" type="text" id="upload_dir" value="<?=$r['upload_dir']; ?>" size="50" />
</div></td>
</tr>
<tr>
<td valign="top"><div align="left"><strong>Gallery Upload Dir Path </strong><br />
The <em>path</em> the <em>/inc/uploads/gallery/</em> directory. ( inculde trailing slash / ) </div></td>
<td valign="middle"><div align="left">
<input name="gallery_dir" type="text" id="gallery_dir" value="<?=$r['gallery_dir']; ?>" size="50" />
</div></td>
</tr>
<tr>
<td valign="top" bgcolor="#EDEBD6"><div align="left">
<label>
<input name="id" type="hidden" id="id" value="1" />
<input name="formGo" type="hidden" id="formGo" value="update.general" />
</label>
</div></td>
<td valign="middle" bgcolor="#EDEBD6"><div align="left">
<label>
<input name="upate" type="submit" id="upate" value="Update General Settings" />
</label>
</div></td>
</tr>
</table>
</form>