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 final class PhabricatorPeopleUsernameMailEngine extends PhabricatorPeopleMailEngi..
Decoded Output download
<?php
final class PhabricatorPeopleUsernameMailEngine
extends PhabricatorPeopleMailEngine {
private $oldUsername;
private $newUsername;
public function setNewUsername($new_username) {
$this->newUsername = $new_username;
return $this;
}
public function getNewUsername() {
return $this->newUsername;
}
public function setOldUsername($old_username) {
$this->oldUsername = $old_username;
return $this;
}
public function getOldUsername() {
return $this->oldUsername;
}
public function validateMail() {
return;
}
protected function newMail() {
$sender = $this->getSender();
$sender_username = $sender->getUsername();
$sender_realname = $sender->getRealName();
$old_username = $this->getOldUsername();
$new_username = $this->getNewUsername();
$body = sprintf(
"%s
%s
%s
",
pht(
'%s (%s) has changed your %s username.',
$sender_username,
$sender_realname,
PlatformSymbols::getPlatformServerName()),
pht(
'Old Username: %s',
$old_username),
pht(
'New Username: %s',
$new_username));
return id(new PhabricatorMetaMTAMail())
->setSubject(
pht(
'[%s] Username Changed',
PlatformSymbols::getPlatformServerName()))
->setBody($body);
}
}
?>
Did this file decode correctly?
Original Code
<?php
final class PhabricatorPeopleUsernameMailEngine
extends PhabricatorPeopleMailEngine {
private $oldUsername;
private $newUsername;
public function setNewUsername($new_username) {
$this->newUsername = $new_username;
return $this;
}
public function getNewUsername() {
return $this->newUsername;
}
public function setOldUsername($old_username) {
$this->oldUsername = $old_username;
return $this;
}
public function getOldUsername() {
return $this->oldUsername;
}
public function validateMail() {
return;
}
protected function newMail() {
$sender = $this->getSender();
$sender_username = $sender->getUsername();
$sender_realname = $sender->getRealName();
$old_username = $this->getOldUsername();
$new_username = $this->getNewUsername();
$body = sprintf(
"%s\n\n %s\n %s\n",
pht(
'%s (%s) has changed your %s username.',
$sender_username,
$sender_realname,
PlatformSymbols::getPlatformServerName()),
pht(
'Old Username: %s',
$old_username),
pht(
'New Username: %s',
$new_username));
return id(new PhabricatorMetaMTAMail())
->setSubject(
pht(
'[%s] Username Changed',
PlatformSymbols::getPlatformServerName()))
->setBody($body);
}
}
Function Calls
None |
Stats
MD5 | 3e9b7a5916a6c1e1e8507b1f94af82a0 |
Eval Count | 0 |
Decode Time | 100 ms |