|
|
|
@ -54,10 +54,42 @@ if ($function === 'oauth') {
|
|
|
|
|
<?php require '/src/views/head.php' ?>
|
|
|
|
|
<?php require '/src/views/public/head.php' ?>
|
|
|
|
|
|
|
|
|
|
<main>
|
|
|
|
|
LOGIN: <?php echo $login_method ?>
|
|
|
|
|
<br>
|
|
|
|
|
FUNCTION: <?php echo $function ?>
|
|
|
|
|
<main id="login">
|
|
|
|
|
<div class="content">
|
|
|
|
|
<br>
|
|
|
|
|
<?php if ($function === 'view'): ?>
|
|
|
|
|
<?php if ($login_method === null): ?>
|
|
|
|
|
|
|
|
|
|
<h4><?php l('login.login_with_fediverse', 'Log In using your Fediverse account') ?></h4>
|
|
|
|
|
<div class="center login-buttons">
|
|
|
|
|
<div class="_">
|
|
|
|
|
<a href="/login/mastodon" class="button button-primary bg-mastodon">
|
|
|
|
|
<div><img src="https://masto.nobigtech.es/favicon.ico"/>
|
|
|
|
|
<?php l('login.login_mastodon', 'I use Mastodon') ?>
|
|
|
|
|
</div>
|
|
|
|
|
</a>
|
|
|
|
|
<sub><?php l('login.dont_have_mastodon', 'Don\'t have Mastodon?') ?>
|
|
|
|
|
<a href="https://joinmastodon.org/communities/general"><?php l('login.choose_community', 'choose a community') ?></a></sub>
|
|
|
|
|
<br><br>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<?php elseif ($login_method === 'mastodon'): ?>
|
|
|
|
|
|
|
|
|
|
<h4><?php l('login.login_with_mastodon', 'Log In using Mastodon') ?></h4>
|
|
|
|
|
<div class="columns">
|
|
|
|
|
<label for="instanceURL"><?php l('login.select_instance', 'Select your instance') ?></label>
|
|
|
|
|
<input class="u-full-width" type="text" placeholder="example.org" id="instanceURL" />
|
|
|
|
|
<div class="right">
|
|
|
|
|
<input onclick="API.mastodon.registerInstance(null)" class="button-primary u-full-width bg-mastodon"
|
|
|
|
|
type="submit" value="<?php l('all.continue', 'Continue') ?> >>" />
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<?php endif ?>
|
|
|
|
|
<?php endif ?>
|
|
|
|
|
<br>
|
|
|
|
|
</div>
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
|
|
<?php require '/src/js/api.php' ?>
|
|
|
|
|