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

19
modules/users/views/scripts/profile/index.phtml Executable file → Normal file
View File

@ -13,12 +13,17 @@ YAHOO.util.Event.onDOMReady(function () {
<h2><?php echo $this->translate('Account info') ?></h2>
<?php if ($this->targetUser->id == $this->user->id): ?>
<div class="linksTopRight">
<a href="javascript:void(0);" onclick="COMMID.general.editAccountInfo();">
<?php echo $this->translate('Edit') ?>
</a>&nbsp;|&nbsp;
<a href="javascript:void(0);" onclick="COMMID.general.changePassword()" >
<?php echo $this->translate('Change Password') ?>
</a>
<? if ($this->canEditAccountInfo): ?>
<a href="javascript:void(0);" onclick="COMMID.general.editAccountInfo();">
<?php echo $this->translate('Edit') ?>
</a>
<? endif ?>
<? if ($this->canChangePassword && (!$this->yubikey->enabled || !$this->yubikey->force)): ?>
&nbsp;|&nbsp;
<a href="javascript:void(0);" onclick="COMMID.general.changePassword()" >
<?php echo $this->translate('Change Password') ?>
</a>
<? endif ?>
<img id="loadingAccountInfo" src="<?php echo $this->base ?>/images/progress.gif" style="visibility:hidden" />
</div>
<?php endif ?>
@ -34,7 +39,7 @@ YAHOO.util.Event.onDOMReady(function () {
<?php if ($this->targetUser->id && $this->targetUser->id == $this->user->id): ?>
<div class="accountForm">
<div class="linksTopRight" >
<?php if ($this->user->role == Users_Model_User::ROLE_REGISTERED): ?>
<?php if ($this->user->role == Users_Model_User::ROLE_REGISTERED && $this->canEditAccountInfo): ?>
<a href="<?php echo $this->base ?>/users/profilegeneral/confirmdelete">
<?php echo $this->translate('Delete Account') ?>
</a>