Different55

Neko function loader

Oct 1st, 2013
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. // Load functions from libraries.
  2. get_client_ip = $loader.loadprim("mod_neko@get_client_ip",0); // Gets IP of Client and returns a string.
  3. set_return_code = $loader.loadprim("mod_neko@set_return_code",1); // Sets the HTTP return code.
  4. get_params = $loader.loadprim("mod_neko@get_params",0); // Gets POST and GET data and returns a list.
  5. get_http_method = $loader.loadprim("mod_neko@get_http_method",0); // Returns HTTP method used by client (GET, POST, etc)
  6. log_message = $loader.loadprim("mod_neko@log_message",1); // Writes message to apache log.
  7. redirect = $loader.loadprim("mod_neko@redirect",1); // Redirects client to somewhere else.
  8. flush = $loader.loadprim("mod_neko@cgi_flush",0); // Flush any data waiting to be written and send it off to the client.
  9. get_cookies = $loader.loadprim("mod_neko@get_cookies",0); // Returns a cookie list as (name, value)
  10. set_cookie = $loader.loadprim("mod_neko@set_cookie",2); // Sets a cookie. (Name, value)
Advertisement
Add Comment
Please, Sign In to add comment