<?php

//if(isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER ['HTTP_X_REQUESTED_WITH']  == 'XMLHttpRequest') {	
	require( dirname(__FILE__) . '/../../../../wp-config.php' );
	if (!(is_user_logged_in() && current_user_can('edit_posts')))
		die("Athentication failed!");

	include_once('../RCCWP_Options.php');
	if($_POST)
	foreach($_POST as $key => $value) {
		$key = trim(urldecode($key));
		$value = trim(urldecode($value));
		//if($value == 1) $value = 'true';
		//	elseif($value == 0) $value = 'false';
		RCCWP_Options::Set($key, $value);
	}
//}
?>