source: extensions/oAuth/include/test/examples/social_hub/logout_all.php @ 20293

Last change on this file since 20293 was 20293, checked in by mistic100, 12 years ago

first commit of oAuth plugin, still in developpement

File size: 547 bytes
Line 
1<?php
2        // config and whatnot
3    $config = dirname(__FILE__) . '/../../hybridauth/config.php';
4    require_once( "../../hybridauth/Hybrid/Auth.php" );
5
6        try{
7                $hybridauth = new Hybrid_Auth( $config );
8
9                // logout the user from $provider
10                $hybridauth->logoutAllProviders(); 
11
12                // return to login page
13                $hybridauth->redirect( "login.php" );
14    }
15        catch( Exception $e ){
16                echo "<br /><br /><b>Oh well, we got an error :</b> " . $e->getMessage();
17
18                echo "<hr /><h3>Trace</h3> <pre>" . $e->getTraceAsString() . "</pre>"; 
19        }
Note: See TracBrowser for help on using the repository browser.