⌈⌋ branch:  freshcode


Artifact [bf8091cffb]

Artifact bf8091cffb047c8a666a2b0d2dc76e0cf8bd8685:

  • File page_login.php — part of check-in [2e1e35664b] at 2014-06-25 06:10:43 on branch trunk — Initial website implementation: project submit, index listing, projects/ page, and moderation flags. (user: mario size: 827)

<?php
/**
 * OpenID login.
 *
 *
 *
 */


// initiate verification
if ($_POST->has("login_url")) {

    include_once("openid.php");

    $openid = new LightOpenID(HTTP_HOST);
    $openid->identity = $_POST->uri["login_url"];
    $openid->optional = array("namePerson/friendly");
    exit(header("Location: " . $openid->authUrl()));
}


// else display form
include("layout_header.php");
?> <section id=main> <?php
?>

<h3>Login</h3>

<p>Please provide an OpenID handle.</p>

<p>
<form action="" method=POST class=box>
  <input type=text name=login_url size=50 value="" placeholder="http://name.openid.xy/">
  <br>
  <input type=submit value=Login>
</form>
</p>

<p>There are intentionally no user accounts on freshcode.club,
but this prerequisite also helps eschew spam submissions.</p>

<?php
include("layout_bottom.php");
?>