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