Ejemplo n.º 1
0
 public static function getAllNetworks()
 {
     $networks = array();
     foreach (Social_Auth::$config["networks"] as $network => $params) {
         if ($params['enabled']) {
             $networks[${$network}] = array('connected' => false);
             if (Social_Auth::isNetworkConnected(${$network})) {
                 $networks[$network]['connected'] = true;
             }
         }
     }
     return $networks;
 }
Ejemplo n.º 2
0
</head>

<body style="padding: 40px 15px;">
<script>
var window_opener = window.opener;
try {
    if(typeof(window_opener.jqcc) == 'undefined') {
        window_opener = window_opener.window.opener;
        opener.close();
    }
} catch(e){
}
<?php 
if (isset($_GET["network"]) && $_GET["network"]) {
    $network = trim(strip_tags($_GET["network"]));
    if (!$socialAuth->isNetworkConnected($network)) {
        ?>
        window_opener.postMessage("alert^<?php 
        echo ucfirst($network);
        ?>
 has not been configured correctly.",'*');
<?php 
    } else {
        ?>
        window_opener.postMessage('cc_reinitializeauth','*');

<?php 
    }
    ?>
    window.close();
<?php 
Ejemplo n.º 3
0
    <!-- Custom Css Styles Start-->
    <style>
        .hidden {
            display: none;
        }
    </style>
    <!-- Custom Css Styles End -->
</head>

<body style="padding: 40px 15px;">
<script>
var window_opener = window.opener;
<?php 
if (isset($_GET["network"]) && $_GET["network"]) {
    $network = trim(strip_tags($_GET["network"]));
    if (!$socialAuth->isNetworkConnected($network) && CROSS_DOMAIN != '1') {
        ?>
        window_opener.alert("<?php 
        echo ucfirst($network);
        ?>
 has not been configured correctly.");
<?php 
    } else {
        if (!$socialAuth->isNetworkConnected($network)) {
            ?>
    window_opener.postMessage("alert^<?php 
            echo ucfirst($network);
            ?>
 has not been configured correctly.",'*');
<?php 
        } else {