setClientId("");
$client->setClientSecret("");
$client->setRedirectUri('http://localhost:8000/redirect.php');
$client->addScope("email");
$client->addScope("profile");
$url = $client->createAuthUrl();
?>
Innova
var email = {$email};
document.getElementById(\"EMAIL_ID\").value=email;
";
}
}
function GetUsername()
{
if(!empty($_GET['username']))
{
$username = "\"".$_GET['username']."\"";
echo
"
";
}
}
if(empty($_GET['error']))
exit();
$error = $_GET["error"];
switch($error)
{
case 'INVALID_EMAIL':
echo '
';
break;
case 'INVALID_USERNAME':
echo '
';
GetEmail();
break;
case 'INVALID_PASSWORD':
echo '
';
GetEmail();
GetUsername();
break;
case 'USERNAME_TAKEN':
echo '
';
GetEmail();
break;
case 'EMAIL_TAKEN':
echo '
';
GetUsername();
break;
default:
break;
}
?>