vitalix
Пользователь
Код:
$new[$config_name] = ( isset($_POST[$config_name]) ) ? $_POST[$config_name] : $default_config[$config_name];
if ($config_name == 'cookie_name')
{
$cookie_name = str_replace('.', '_', $new['cookie_name']);
}
if( isset($_POST['submit']) )
{
$sql = "UPDATE " . BB_CONFIG . " SET
config_value = '" . str_replace("\'", "''", $new[$config_name]) . "'
WHERE config_name = '$config_name'";
if( !DB()->sql_query($sql) )
{
message_die(GENERAL_ERROR, "Failed to update RSS configuration for $config_name", "", __LINE__, __FILE__, $sql);
}
}
}