PHP Classes

File: web/SSO/modules/openid/templates/consumer.php

Recommend this page to a friend!
  Classes of william amed   Raptor 2   web/SSO/modules/openid/templates/consumer.php   Download  
File: web/SSO/modules/openid/templates/consumer.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Raptor 2
Framework that takes routes from annotations
Author: By
Last change:
Date: 8 years ago
Size: 1,665 bytes
 

Contents

Class file image Download
<?php

$this
->data['header'] = 'OpenID Login';
$this->data['autofocus'] = 'openid-identifier';
$this->includeAtTemplateBase('includes/header.php');

?>
<style>
input.openid-identifier {
   background: url(http://stat.livejournal.com/img/openid-inputicon.gif) no-repeat;
/* background-color: #fff; */
    border-left: 1px solid #ccc;
    border-right: 1px solid #aaa;
    border-top: 1px solid #aaa;
    border-bottom: 1px solid #ccc;
    color: #555;
   background-position: 0 50%;
   padding-left: 18px;
}
fieldset {
    border-left: 1px solid #aaa;
    border-right: 1px solid #ccc;
    border-top: 1px solid #ccc;
    border-bottom: 1px solid #aaa;
    padding: 1em;
}
legend {
    padding-left: .3em;
    padding-right: .3em;
    color: #555;
}

div.error {
    padding: 1em; margin: 1em;
    background: red;
    color: white;
    border: 1px solid #600;
}
</style>


    <?php if (isset($this->data['error'])) { print "<div class=\"error\">" . $this->data['error'] . "</div>"; } ?>



    <form method="get" action="consumer.php">
        <fieldset>
            <legend>OpenID Login</legend>

            Identity&nbsp;URL:
            <input type="hidden" name="action" value="verify" />
            <input id="openid-identifier" class="openid-identifier" type="text" name="openid_url" value="http://" />
            <input type="hidden" name="AuthState" value="<?php echo htmlspecialchars($this->data['AuthState']); ?>" />
            <input type="submit" value="Login with OpenID" />
        </fieldset>
    </form>

    <p style="margin-top: 2em">
       OpenID is a free and easy way to use a single digital identity across the Internet. Enter your OpenID identity URL in the box above to authenticate.
    </p>


<?php
$this
->includeAtTemplateBase('includes/footer.php');
?>