All pastes #435301 Raw Edit

paulOr

public php v1 · immutable
·published 2007-04-11 21:46 UTC
rendered paste body
###################################################### 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 = "<br> &nbsp; Settings have been updated successfully.";	} else {		$stat = "<br> &nbsp; There has been a slight error, please try again.";	}}