?> </h1> <?php $recordType = "new"; $accessInst = new access(); ####################################################################### ## perform action if (tool::securePost('id')) { $accessInst->activate(tool::securePost('id')); if (!DEMO_MODE) { 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 ;)");