require "function.php"; $TITEL=$lang['access_TITLE']; function head() { global $lang; ?> } function center() { global $conn, $language,$dddd,$lang; $client_id="737615945244-r3qqfpekrvo27t0jg6qjgospeumgbaek.apps.googleusercontent.com"; $client_secret="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"; $redirect_uri="https://profyer.com/auth.php"; if(isset($_GET["action"])){ if($_GET["action"]=="retinfo"){ $aaa=json_decode($_GET["u_info"], true); print_r($aaa); die; } } if(isset($_GET["action"])){ if($_GET["action"]=="rettoken"){ $params = array( "access_token" => $_GET["access_token"], "id_token" => $_GET["id_token"], "token_type" => "Bearer", "expires_in" => 3599 ); $info = file_get_contents("https://www.googleapis.com/oauth2/v1/userinfo?" . http_build_query($params)); print_r($info); die; } } if(!isset($_GET["code"])) { $params = array( "redirect_uri" => $redirect_uri, "client_id" => $client_id, "response_type" => "code", "scope" => "https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile", "state" => "3" ); $params1 = array( 'client_id' => '409556495360235', 'redirect_uri' => 'https://profyer.com/fbauth.php', 'scope' => 'email', 'response_type' => 'code', 'state' => '3' ); } ?>