public static function authInit() { $storage = new Hybrid_Storage(); header('X-Hybridauth-Version: ' . $storage->config("version")); header('X-Hybridauth-Time: ' . time()); header('X-Hybridauth-Init: ' . strlen(json_encode($storage->config("CONFIG")))); if (!WSL_Hybrid_Endpoint::$initDone) { WSL_Hybrid_Endpoint::$initDone = TRUE; // Check if Hybrid_Auth session already exist if (!$storage->config("CONFIG")) { WSL_Hybrid_Endpoint::dieError("406 Not Acceptable", "The session identifier is missing.<br />For more information refer to WSL <a href='http://miled.github.io/wordpress-social-login/troubleshooting.html' target='_blank'>Troubleshooting</a>. <img style='width: 35px; height: 35px; position: absolute; bottom: 20px; right: 20px;' src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL4AAAC+CAYAAACLdLWdAAAAIHRFWHRTUFJEAGltYWdlLW5hMDIucHJ2LmRmdy5zcHJkLm5ldOQepWYAABYTSURBVHja7Z0J2E3VGse3eQqRIVMyRzLLEKXiFslUVKZKHkMylIiuSlIpSilDxA1pUCgZmoQSSgMlXHQzh8hYhmTd9d/f3t9d1j3f5+xz9jln7e/8f8/zPj2+ztlnn73fs/Za7/q/72tZhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQkKQTVoeaQWlFZZWU1ozaf+Q1lRaDefvBZ3XZeMlI0Eju7Ry0npKe0XacmlbpO2XdlqaSMdOOa/b7LwP7+8urbRzXEKMIZO0AtL6SftA2nZpZ8/j4JHYDuf490kr5HwuIXEnl7T+0pZJO+HFiTNlyiSyZ88ucubMKbJlyxbJj+BP53MH8ElA4kVFaf+SdjA956xUqZK47777xMSJE8WCBQvEd999J7Zt2yZOnDghdM6ePWv//ZdffrFft3DhQjFp0iTRt29fUb58+fP9CA4651OFt4bEglrS5kn7O5QDlihRQgwePFi89957Yu/evcJP9uzZI+bNmyeGDBkiihcvntYPAOuHudKu5K0ifoCF6huh5u0XXnihePDBB8Xy5cvF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xECBhkBNs2weEbuKaJI3bt3F5dffrneTSOUoSjpcGdRTkhcwPz5HiulctshK34ForZbKVlBN1jceSUJBjvAHaRNlva1lUYqXYSGJ8sSKyUjqAGdnZgMQqKoofiQlSKGw+IYCdwbnREb+vC9Vkq1AeymbrNS9OJo/Dtb2jgrJVe4Ih2dZASyOE8H3bJYPvY+JYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIIYQQQgghhBBCCCGEEEIIISTQ/BfJWilyNG3IOAAAAABJRU5ErkJggg==' />"); } # Init Hybrid_Auth try { Hybrid_Auth::initialize($storage->config("CONFIG")); } catch (Exception $e) { WSL_Hybrid_Endpoint::dieError('500 Internal Server Error', 'An error occurred while attempting to initialize Hybridauth'); } } }
* (c) 2011-2014 Mohamed Mrassi and contributors | http://wordpress.org/extend/plugins/wordpress-social-login/ */ // ------------------------------------------------------------------------ // WSL End Point // ------------------------------------------------------------------------ /** * If for whatever reason you want to debug apis call made by hybridauth during the auth process, you can add the block of code below. * * <code> * include_once( '/path/to/file/wp-load.php' ); * define( 'WORDPRESS_SOCIAL_LOGIN_DEBUG_API_CALLS', true ); * add_action( 'wsl_log_provider_api_call', 'wsl_watchdog_wsl_log_provider_api_call', 10, 8 ); * do_action( 'wsl_log_provider_api_call', 'ENDPOINT', 'Hybridauth://endpoint', null, null, null, null, $_SERVER["QUERY_STRING"] ); * </code> */ //- Re-parse the QUERY_STRING for custom endpoints. if (defined('WORDPRESS_SOCIAL_LOGIN_CUSTOM_ENDPOINT') && !isset($_REQUEST['hauth_start'])) { $_SERVER["QUERY_STRING"] = 'hauth_done=' . WORDPRESS_SOCIAL_LOGIN_CUSTOM_ENDPOINT . '&' . str_ireplace('?', '&', $_SERVER["QUERY_STRING"]); parse_str($_SERVER["QUERY_STRING"], $_REQUEST); } //- Hybridauth required includes require_once "Hybrid/Storage.php"; require_once "Hybrid/Error.php"; require_once "Hybrid/Auth.php"; require_once "Hybrid/Exception.php"; require_once "Hybrid/Endpoint.php"; //- Custom WSL endpoint class require_once "endpoints/WSL_Endpoint.php"; //- Entry point to the End point WSL_Hybrid_Endpoint::process();