####################################################
## Updating General Settings
####################################################
if($_POST['formGo'] == 'update.general') {
$q = mysql_query("UPDATE `general_settings` SET
`blog_name` = '$blog_name',
`blog_slogan` = '$blog_slogan',
`blog_url` = '$blog_url',
`contact_email` = '$contact_email',
`allow_register` = '$allow_register',
`allow_comments` = '$allow_comments',
`upload_dir` = '$upload_dir',
`gallery_dir` = '$gallery_dir' WHERE `id` = '1'");
if($q) {
$stat = "
Settings have been updated successfully.";
} else {
$stat = "
There has been a slight error, please try again.";
}
}