Ejemplo n.º 1
0
?>
</th>
  </tr>
</thead>
<tbody>
<?php 
$count = 0;
foreach ($identities as $identity) {
    // try and guess the provider
    $provider = "openid_manual";
    foreach (get_openid_provider_formats() as $format => $key) {
        if (preg_match($format, $identity['identity'])) {
            $provider = $key;
        }
    }
    $provider_titles = get_default_openid_providers();
    ?>
  <tr class="<?php 
    echo ++$count % 2 == 0 ? "odd" : "even";
    ?>
">
    <td><span class="openid <?php 
    echo htmlspecialchars($provider);
    ?>
"><?php 
    echo isset($provider_titles[$provider]) ? htmlspecialchars($provider_titles[$provider][0]) : 'OpenID';
    ?>
</span></td>
    <td><a href="<?php 
    echo htmlspecialchars(url_for($identity['identity']));
    ?>
Ejemplo n.º 2
0
    ?>
"><span class="oauth2 <?php 
    echo htmlspecialchars($key);
    ?>
"><?php 
    echo htmlspecialchars($data);
    ?>
</span></button>
      <?php 
}
?>

      <hr>

      <?php 
$openids = get_default_openid_providers();
foreach ($openids as $key => $data) {
    ?>
        <button type="submit" name="openid" class="openid openid-submit" value="<?php 
    echo htmlspecialchars($data[1]);
    ?>
"><span class="openid <?php 
    echo htmlspecialchars($key);
    ?>
"><?php 
    echo htmlspecialchars($data[0]);
    ?>
</span></button>
      <?php 
}
?>