//when we send the action to individuals we want the form for editiing files if ($action == 'getFilteredData') { $key = getRequest("key"); $result = retrieveFilteredData($key); echo json_encode($result); exit; } if ($action == 'users') { $session->save("content", "user/users.php"); include_page('home.php'); exit; } if ($action == 'deleteTag') { $id = getRequest('id'); if ($id) { echo json_encode(File::deleteTagById($id)); } exit; } if ($action == 'addTag') { $pid = getRequest('pid'); $fid = getRequest('fid'); $type = getRequest('type'); if ($pid && $fid) { echo json_encode(File::addTag($pid, $fid, $type)); } exit; } if ($action == 'updateFile') { $file = getRequest('file'); $file = json_decode($file);