$request = $json["request"]; $response = null; if ($request == "getAllAccount") { $response = getUserList($json["userId"], $json["raw"], false); } else { if ($request == "getAllAccountReady") { $response = getUserList($json["userId"], $json["raw"], true); } else { if ($request == "save") { $response = saveUser($json["data"]); } else { if ($request == "createUser") { $response = createUser($json["raw"]); } else { if ($request == "saveGroups") { $response = saveGroups($json["data"]); } else { if ($request == "removeUserFromGroup") { $response = removeUserFromGroup($json["data"]); } else { if ($request == "addUserToGroup") { $response = addUserToGroup($json["data"]); } else { if ($request == "getUsersUngroup") { $response = getUsersUngroup($json["data"]); } else { if ($request == "removeGroup") { $response = removeGroup($json["data"]); } else { if ($request == "createGroup") { $response = createGroup($json["data"]);
formFiles(); break; case 'edit': formFiles(1); break; case 'save': saveFiles(); break; case 'saveedit': saveFiles(1); break; case 'savegroup': saveGroups(); break; case 'saveeditgr': saveGroups(1); break; case 'updategroup': updateGroups(1); break; case 'delete': deleteFiles(); break; case 'deletegroup': deleteGroups(); break; case 'default': defaultFile(); break; default: showFiles();