Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
<?php /** * Passbolt ~ Open source password manager for teams * Copyright (c) Passbolt S..
Decoded Output download
<?php
/**
* Passbolt ~ Open source password manager for teams
* Copyright (c) Passbolt SA (https://www.passbolt.com)
*
* Licensed under GNU Affero General Public License version 3 of the or any later version.
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Passbolt SA (https://www.passbolt.com)
* @license https://opensource.org/licenses/AGPL-3.0 AGPL License
* @link https://www.passbolt.com Passbolt(tm)
* @since 2.13.0
* @see AdminUserSetupCompleteEmailRedactor
*/
use App\Model\Entity\User;
use App\Utility\Purifier;
use App\View\Helper\AvatarHelper;
use Cake\Routing\Router;
if (PHP_SAPI === 'cli') {
Router::fullBaseUrl($body['fullBaseUrl']);
}
/** @var User $user */
$user = $body['user'];
/** @var User $user */
$admin = $body['admin'];
/** @var User $invitedBy */
$invitedBy = $body['invitedBy'];
/** @var string $invitedWhen */
$invitedWhen = $body['invitedWhen'];
/** @var bool $invitedByYou */
$invitedByYou = $body['invitedByYou'];
echo $this->element('Email/module/avatar', [
'url' => AvatarHelper::getAvatarUrl(),
'text' => $this->element('Email/module/avatar_text', [
'user' => $user,
'datetime' => $user['modified'],
'text' => __(
'{0} just activated their account on passbolt!',
Purifier::clean($user['profile']['first_name']),
)
])
]);
$text = ' ' . __('The user is now active on passbolt and you can share passwords with them.');
$text .= ' ';
if ($invitedByYou) {
$text .= __('This user was invited by you {0}.', $invitedWhen);
} else if ($user['username'] === $invitedBy['username']) {
$text .= __('This user signed up themselves, since the public registration is enabled.');
} else {
$text .= __('This user was invited by {0} {1}.', Purifier::clean($invitedBy['profile']['first_name']), $invitedWhen);
}
$text .= '<br/>';
echo $this->element('Email/module/text', [
'text' => $text
]);
echo $this->element('Email/module/button', [
'url' => Router::url("/app/users", true),
'text' => __('view users')
]);
?>
Did this file decode correctly?
Original Code
<?php
/**
* Passbolt ~ Open source password manager for teams
* Copyright (c) Passbolt SA (https://www.passbolt.com)
*
* Licensed under GNU Affero General Public License version 3 of the or any later version.
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Passbolt SA (https://www.passbolt.com)
* @license https://opensource.org/licenses/AGPL-3.0 AGPL License
* @link https://www.passbolt.com Passbolt(tm)
* @since 2.13.0
* @see AdminUserSetupCompleteEmailRedactor
*/
use App\Model\Entity\User;
use App\Utility\Purifier;
use App\View\Helper\AvatarHelper;
use Cake\Routing\Router;
if (PHP_SAPI === 'cli') {
Router::fullBaseUrl($body['fullBaseUrl']);
}
/** @var User $user */
$user = $body['user'];
/** @var User $user */
$admin = $body['admin'];
/** @var User $invitedBy */
$invitedBy = $body['invitedBy'];
/** @var string $invitedWhen */
$invitedWhen = $body['invitedWhen'];
/** @var bool $invitedByYou */
$invitedByYou = $body['invitedByYou'];
echo $this->element('Email/module/avatar', [
'url' => AvatarHelper::getAvatarUrl(),
'text' => $this->element('Email/module/avatar_text', [
'user' => $user,
'datetime' => $user['modified'],
'text' => __(
'{0} just activated their account on passbolt!',
Purifier::clean($user['profile']['first_name']),
)
])
]);
$text = ' ' . __('The user is now active on passbolt and you can share passwords with them.');
$text .= ' ';
if ($invitedByYou) {
$text .= __('This user was invited by you {0}.', $invitedWhen);
} else if ($user['username'] === $invitedBy['username']) {
$text .= __('This user signed up themselves, since the public registration is enabled.');
} else {
$text .= __('This user was invited by {0} {1}.', Purifier::clean($invitedBy['profile']['first_name']), $invitedWhen);
}
$text .= '<br/>';
echo $this->element('Email/module/text', [
'text' => $text
]);
echo $this->element('Email/module/button', [
'url' => Router::url("/app/users", true),
'text' => __('view users')
]);
Function Calls
None |
Stats
MD5 | e31c2d0f1317602c820ddcba058fe57e |
Eval Count | 0 |
Decode Time | 105 ms |