Suggestion for some improvments
ez |
|
---|---|
I think Ajax should be as clean as possible... Why do you ask..
Because ajax responses needs to be FAST It is usually an action that the user is waiting for (so an UserInterface thing) If you need rights: just do: $plug_admin = sed_auth('plug', 'Yourplug', 'A'); Language file: require_once(sed_langfile('Yourplug')); I think $cfg is available, not sure about $usr.. maybe try: global $usr ==- I say: Keep it EZ -==
|