getContext()->getRequest(); $userid = addslashes(trim($request->getParameter('id'))); $type = $request->getParameter('type'); $sql = "select permission from lkt_admin where name = '$userid'"; $r = $db->select($sql); echo json_encode(unserialize($r[0]->permission)); return; } public function execute(){ } public function getRequestMethods(){ return Request :: NONE; } } ?>