<?php 
include_once ("_dirinfo.php");

include_once (PATH_TO_ROOT."init.php");
include_once (PATH_TO_ROOT."_ajaxManipulators/_class/class.formData.php");



$db->changeDatabase($_POST['database']);

$tableName = $_POST['RMtable'];
$manipulator = new FormDataManipulator($db,$tableName);
$comm = $_POST['action'].'Action';

if(method_exists($manipulator,$comm))
	echo $manipulator->$comm();
else 
{
	
	Echo '{success:false,error:"Unknown action!"}';	
	
}

?>