Ejemplo n.º 1
0
     */
    $success = $client->Finalize($success);
}
/*
 * If the exit variable is true, the script must not output anything
 * else and exit immediately
 */
if ($client->exit) {
    exit;
}
if ($success) {
    /*
     * The Output function call is here just for debugging purposes
     * It is not necessary to call it in real applications
     */
    $client->Output();
} else {
    /* 
     * If there was an unexpected error, display to the user
     * some useful information
     */
    ?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>OAuth client error</title>
</head>
<body>
<h1>OAuth client error</h1>
<pre>Error: <?php 
    echo HtmlSpecialChars($client->error);