if (tool::securePost('remove')) { $accessInst->removeUser(tool::securePost('remove')); } if (tool::securePost('add')) { $accessInst->addUser(tool::securePost('add')); } } else { $toolInst->errorStatus("not allowed in this demo. Sorry ;)"); } } if (tool::securePost('action') == "update") { $recordType = "edit"; $accessInst->fill(tool::securePostAll()); if (!DEMO_MODE) { if ($accessInst->update()) { $accessInst->clear(); $recordType = "new"; } } else { $toolInst->errorStatus("not allowed in this demo. Sorry ;)"); } } if (tool::securePost('action') == "new") { $accessInst->fill(tool::securePostAll()); if ($accessInst->insert()) { $accessInst->clear(); $recordType = "new"; } else { $recordType = "edit"; } }