Location: PHPKode > projects > Particle Blogger > particle-blogger/backend/settings.php
<?php
include("../includes/global.php");
$usr->Auth(2);

// update the settings-o!
$db->execute("UPDATE " . $dbprefix . "config SET config_value = '" . dbSecure($_POST["c_sitename"]) . "' WHERE config_name = 'sitename'");
$db->execute("UPDATE " . $dbprefix . "config SET config_value = '" . dbSecure($_POST["c_description"]) . "' WHERE config_name = 'description'");
$db->execute("UPDATE " . $dbprefix . "config SET config_value = '" . dbSecure($_POST["c_mainsite"]) . "' WHERE config_name = 'mainsite'");
$db->execute("UPDATE " . $dbprefix . "config SET config_value = '" . dbSecure($_POST["c_mainurl"]) . "' WHERE config_name = 'mainurl'");
$db->execute("UPDATE " . $dbprefix . "config SET config_value = '" . dbSecure($_POST["c_serveremail"]) . "' WHERE config_name = 'serveremail'");
$db->execute("UPDATE " . $dbprefix . "config SET config_value = '" . dbSecure($_POST["c_root"]) . "' WHERE config_name = 'root'");
$db->execute("UPDATE " . $dbprefix . "config SET config_value = '" . dbSecure($_POST["c_rooturl"]) . "' WHERE config_name = 'rooturl'");
$db->execute("UPDATE " . $dbprefix . "config SET config_value = '" . dbSecure($_POST["c_defaultskin"]) . "' WHERE config_name = 'defaultskin'");
$db->execute("UPDATE " . $dbprefix . "config SET config_value = '" . dbSecure($_POST["c_dateformat"]) . "' WHERE config_name = 'dateformat'");
$db->execute("UPDATE " . $dbprefix . "config SET config_value = '" . dbSecure($_POST["c_friendlyurls"]) . "' WHERE config_name = 'friendlyurls'");
$db->execute("UPDATE " . $dbprefix . "config SET config_value = '" . dbSecure($_POST["c_fileextention"]) . "' WHERE config_name = 'fileextention'");
$db->execute("UPDATE " . $dbprefix . "config SET config_value = '" . dbSecure($_POST["c_recentposts"]) . "' WHERE config_name = 'recentposts'");
$db->execute("UPDATE " . $dbprefix . "config SET config_value = '" . dbSecure($_POST["c_homeposts"]) . "' WHERE config_name = 'homeposts'");
$db->execute("UPDATE " . $dbprefix . "config SET config_value = '" . dbSecure($_POST["c_rssposts"]) . "' WHERE config_name = 'rssposts'");
$db->execute("UPDATE " . $dbprefix . "config SET config_value = '" . dbSecure($_POST["c_rsslength"]) . "' WHERE config_name = 'rsslength'");
$db->execute("UPDATE " . $dbprefix . "config SET config_value = '" . dbSecure($_POST["c_uniqueemails"]) . "' WHERE config_name = 'uniqueemails'");
$db->execute("UPDATE " . $dbprefix . "config SET config_value = '" . dbSecure($_POST["c_diggtopic"]) . "' WHERE config_name = 'diggtopic'");

// and redirect the user
Header("Location: ../admin.php?page=settings");
?>
Return current item: Particle Blogger