eaiovnaovbqoebvqoeavibavo setClientId($clientID); $Client->setClientSecret($clientSecret); $Client->setRedirectUri($redirectURL); $Client->addScope('profile'); $Client->addScope('email'); if (isset($_GET['code'])) { $token = $Client->fetchAccessTokenWithAuthCode($_GET['code']); $Client->setAccessToken($token); $gauth = new Google_Service_Oauth2($Client); $google_info = $gauth->userinfo->get(); if ($google_info->hd == "cegetsemani.edu.gt") { session_start(); $_SESSION['CEGA_correo'] = $google_info->email; $_SESSION['CEGA_nombre'] = $google_info->name; $_SESSION['CEGA_imagen'] = $google_info->picture; echo "_"; echo ''; echo ""; } else { echo "_"; echo ''; echo ""; } } ?> Login CEG