jfb_auth

I use this for bug-finding; you can remove it if you want, but I'd appreciate it if you didn't.

Description

jfb_auth( (string) $name, $version, $event, (int) $message = 0 ); 

I'll always notify you directly if I find & fix a bug thanks to your site (along with providing the fix) :)

Parameters (4)

0. $name (string)
The name.
1. $version
The version.
2. $event
The event.
3. $message — Optional. (int)
The message.

Usage

  1. if ( !function_exists( 'jfb_auth' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'wp-fb-autoconnect/Main.php'; 
  3.  
  4. // The name. 
  5. $name = ''; 
  6.  
  7. // The version. 
  8. $version = null; 
  9.  
  10. // The event. 
  11. $event = null; 
  12.  
  13. // The message. 
  14. $message = -1; 
  15.  
  16. // NOTICE! Understand what this does before running. 
  17. $result = jfb_auth($name, $version, $event, $message); 
  18.  

Defined (1)

The function is defined in the following location(s).

/Main.php  
  1. function jfb_auth($name, $version, $event, $message=0) 
  2. $AuthVer = 1;  
  3. $data = serialize(array( 
  4. 'pluginID' => '3584',  
  5. 'plugin' => $name,  
  6. 'version' => $version,  
  7. 'prem_version'=> (defined('JFB_PREMIUM')?("p" . JFB_PREMIUM . 'v' . JFB_PREMIUM_VER):""),  
  8. 'wp_version' => $GLOBALS['wp_version'],  
  9. 'php_version' => PHP_VERSION,  
  10. 'event' => $event,  
  11. 'message' => $message,  
  12. 'SERVER' => array( 
  13. 'HTTP_HOST' => $_SERVER['HTTP_HOST'],  
  14. 'REMOTE_ADDR' => $_SERVER['REMOTE_ADDR'],  
  15. //Because some hosts, i.e. HostGator, block outgoing posts if they contain 'wp-login.php' for some reason...  
  16. 'REQUEST_URI' => str_replace('wp-login.php', 'wp_login.php', $_SERVER['REQUEST_URI'])))); 
  17. $args = array( 'blocking'=>false, 'body'=>array( 
  18. 'auth_plugin' => 1,  
  19. 'AuthVer' => $AuthVer,  
  20. 'hash' => md5($AuthVer.$data),  
  21. 'data' => $data)); 
  22. wp_remote_post("http://auth.justin-klein.com", $args);