Esempio n. 1
0
<form action="<?php 
echo htmlspecialchars(absolute_url(url_for('oauth2_add')));
?>
" method="post">
<table class="login_form">
  <tr class="signup-with">
    <th><?php 
echo ht("Login with:");
?>
</th>
    <td>
      <input type="hidden" name="submit" value="1">

      <?php 
$openids = get_default_oauth2_providers();
foreach ($openids as $key => $data) {
    ?>
        <button type="submit" name="oauth2" class="oauth2 oauth2-submit" value="<?php 
    echo htmlspecialchars($key);
    ?>
"><span class="oauth2 <?php 
    echo htmlspecialchars($key);
    ?>
"><?php 
    echo htmlspecialchars($data);
    ?>
</span></button>
      <?php 
}
?>
Esempio n. 2
0
echo ht("Added");
?>
</th>
    <th><?php 
echo ht("Delete");
?>
</th>
  </tr>
</thead>
<tbody>
<?php 
$count = 0;
foreach ($oauth2 as $identity) {
    // try and guess the provider
    $provider = $identity['provider'];
    $provider_titles = get_default_oauth2_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]) : 'Unknown';
    ?>
</span></td>
    <td><?php 
    echo htmlspecialchars(url_for($identity['uid']));
    ?>