import v2.0.0.0_RC3 | 2012-07-01

https://github.com/lucanos/CommunityID -> http://www.itadmins.net/archives/357
This commit is contained in:
2019-07-17 22:31:04 +02:00
parent 38c146901c
commit 2f397f01f7
2677 changed files with 296182 additions and 45159 deletions

View File

@ -1,16 +1,50 @@
<form action="authenticate<?php echo $this->queryString ?>" method="post" class="formGrid">
<?php echo $this->form->openIdIdentity ?>
<?php echo $this->form->password ?>
<?php if ($this->useCaptcha): ?>
<?php echo $this->form->captcha ?>
<?php endif ?>
<div class="yui-gf">
<div class="yui-u first">
<input type="submit" id="login" value="<?php echo $this->translate('Login') ?>" />
<script type="text/javascript">
var oButton = new YAHOO.widget.Button("login");
</script>
<div style="position:relative">
<? if ($this->form->getErrorMessages()): ?>
<div class="messages" style="margin-bottom:20px">
<?= implode('<br />', $this->form->getErrorMessages()) ?>
</div>
<div class="yui-u">&nbsp;</div>
</div>
</form>
<? endif ?>
<form name="openidAuthenticate" action="authenticate<?php echo $this->queryString ?>" method="post" class="formGrid">
<? if ($this->identity): ?>
<div class="yui-gf" style="padding:10px 0">
<div class="yui first"><?= $this->translate('OpenID URL') ?>:</div>
<div class="yui-u"><?= $this->escape($this->identity) ?></div>
</div>
<? else: ?>
<?= $this->form->openIdIdentity ?>
<? endif ?>
<? if ($this->yubikey->enabled && $this->yubikey->force): ?>
<?= $this->form->yubikey ?>
<? else: ?>
<?= $this->form->password ?>
<? endif ?>
<?php if ($this->useCaptcha): ?>
<?php echo $this->form->captcha ?>
<?php endif ?>
<div class="yui-gf">
<div class="yui-u first">
<input type="submit" id="login" value="<?php echo $this->translate('Login') ?>" />
<script type="text/javascript">
var oButton = new YAHOO.widget.Button("login");
</script>
</div>
<div class="yui-u">&nbsp;</div>
</div>
</form>
<? if ($this->image): ?>
<div style="position:absolute; right:-100px; top:-40px">
<img src="<?= $this->base ?>/users/signinimage/image/id/<?= $this->image->cookie ?>"
width="<?= $this->image->getWidth() ?>"
height="<?= $this->image->getHeight() ?>"
title="<?= $this->translate('This is the image that identifies your account in this computer') ?>"
alt="<?= $this->translate('This is the image that identifies your account in this computer') ?>" />
</div>
<? endif ?>
<script>
try {
document.openidAuthenticate.password.focus();
document.openidAuthenticate.yubikey.focus();
} catch(e) {
}
</script>
</div>

View File

@ -4,21 +4,20 @@
</div>
<form method="post" action="proceed<?php echo $this->queryString ?>" class="formGrid">
<input type="hidden" name="action" value="proceed">
<?php if ($this->fields): ?>
<? if ($this->showProfileForm): ?>
<br />
<?php echo $this->translate('It also requests this additional information about you:') ?><br /><br />
<?php echo $this->translate('Fields are automatically filled according to the personal info stored in your community-id account.') ?><br />
<?php echo $this->translate('Fields marked with * are required.') ?>
<br />
<br />
<br />
<?php foreach ($this->fields as $field): ?>
<?php echo $field ?>
<?php endforeach ?>
<?php if ($this->policyUrl): ?>
<?php echo $this->translate('The private policy can be found at %s',
'<a href="'.$this->policyUrl.'">'.$this->policyUrl.'</a>'); ?><br /><br />
<?php endif ?>
<div id="profileForm">
<? if ($this->showProfileForm): ?>
<div style="text-align:center; margin:20px 0; font-weight:bold">
<?= $this->translate('Please wait') ?>
<img src="<?= $this->base ?>/images/progress.gif" style="margin-left:15px" />
</div>
<? endif ?>
</div>
<?php endif ?>
<div style="margin-top:20px">
<input type="checkbox" name="forever" style="top:0" /> <?php echo $this->translate('Forever') ?>
@ -29,6 +28,11 @@
<script type="text/javascript">
var oButton1 = new YAHOO.widget.Button("allow");
var oButton2 = new YAHOO.widget.Button("deny");
<? if ($this->showProfileForm): ?>
YAHOO.util.Event.onDOMReady(function() {
COMMID.profileForm.fetch("<?= $this->queryString ?>", 0);
});
<? endif ?>
</script>
</div>
</form>