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 namespace MiniOrange\OAuth\Helper; use Magento\Customer\Model\CustomerFactor..
Decoded Output download
<?php
namespace MiniOrange\OAuth\Helper;
use Magento\Customer\Model\CustomerFactory;
use Magento\Customer\Model\Session;
use Magento\Framework\App\Cache\Frontend\Pool;
use Magento\Framework\App\Cache\TypeListInterface;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\App\Config\Storage\WriterInterface;
use Magento\Framework\Filesystem\Driver\File;
use Magento\Framework\Url;
use Magento\Framework\UrlInterface;
use Magento\Framework\View\Asset\Repository;
use Magento\User\Model\UserFactory;
use Psr\Log\LoggerInterface;
use MiniOrange\OAuth\Helper\OAuthConstants;
use MiniOrange\OAuth\Helper\Curl;
use MiniOrange\OAuth\Helper\Data;
use MiniOrange\OAuth\Helper\Exception\InvalidOperationException;
use MiniOrange\OAuth\Helper\OAuth\lib\AESEncryption;
use Magento\Framework\App\Filesystem\DirectoryList;
use Magento\Framework\Controller\ResultFactory;
use Magento\Framework\View\Result\PageFactory;
use Magento\Framework\Message\ManagerInterface;
use Magento\Store\Model\ScopeInterface;
class OAuthUtility extends Data
{
protected $adminSession;
protected $customerSession;
protected $authSession;
protected $cacheTypeList;
protected $cacheFrontendPool;
protected $fileSystem;
protected $reinitableConfig;
protected $logger;
protected $resource;
protected $_websiteCollectionFactory;
protected $helperBackend;
protected $_logger;
protected $fileFactory;
protected $productMetadata;
protected $_response;
protected $resultFactory;
protected $pageFactory;
protected $messageManager;
public function __construct(ScopeConfigInterface $bY, UserFactory $aD, CustomerFactory $vs, UrlInterface $oR, WriterInterface $Aw, Repository $sr, \Magento\Backend\Helper\Data $I5, Url $GO, \MiniOrange\OAuth\Model\MiniorangeOauthClientAppsFactory $VC, \Magento\Backend\Model\Session $ty, Session $b3, \Magento\Backend\Model\Auth\Session $UE, TypeListInterface $Rd, Pool $da, LoggerInterface $AL, \Magento\Store\Model\ResourceModel\Website\CollectionFactory $zK, File $R1, \Magento\Framework\App\Response\Http\FileFactory $ov, \Magento\Framework\App\Config\ReinitableConfigInterface $gx, \Magento\Framework\App\ResourceConnection $ab, \MiniOrange\OAuth\Logger\Logger $FP, \Magento\Framework\App\ProductMetadataInterface $hc, \Magento\Framework\App\ResponseInterface $ey, ResultFactory $gs, PageFactory $dS, ManagerInterface $XH)
{
$this->adminSession = $ty;
$this->customerSession = $b3;
$this->authSession = $UE;
$this->cacheTypeList = $Rd;
$this->cacheFrontendPool = $da;
$this->fileSystem = $R1;
$this->logger = $AL;
$this->_logger = $FP;
$this->reinitableConfig = $gx;
$this->resource = $ab;
$this->fileFactory = $ov;
$this->productMetadata = $hc;
$this->_websiteCollectionFactory = $zK;
$this->_response = $ey;
$this->resultFactory = $gs;
$this->pageFactory = $dS;
$this->messageManager = $XH;
parent::__construct($bY, $aD, $vs, $oR, $Aw, $sr, $I5, $GO, $VC);
}
public function log_debug($LY = '', $pJ = null)
{
if (is_object($LY)) {
goto Gx3;
}
$this->customlog("MO OAuth AllInclusive : " . $LY);
goto FGS;
Gx3:
$this->customlog("MO OAuth AllInclusive : " . print_r($pJ, true));
FGS:
if (!($pJ != null)) {
goto L_1;
}
$this->customlog("MO OAuth AllInclusive : " . var_export($pJ, true));
L_1:
}
public function base64url_encode($UH)
{
return rtrim(strtr(base64_encode($UH), "+/", "-_"), "=");
}
public function ccl()
{
$JH = $this->getStoreConfig(OAuthConstants::CUSTOMER_KEY);
$jb = $this->getStoreConfig(OAuthConstants::API_KEY);
$Z_ = Curl::ccl($JH, $jb);
return $Z_;
}
public function update_status($Ks)
{
$JH = $this->getStoreConfig(OAuthConstants::CUSTOMER_KEY);
$jb = $this->getStoreConfig(OAuthConstants::API_KEY);
$Z_ = Curl::update_status($JH, $jb, $Ks, $this->getBaseUrl());
return $Z_;
}
public function vml($Ks)
{
$JH = $this->getStoreConfig(OAuthConstants::CUSTOMER_KEY);
$jb = $this->getStoreConfig(OAuthConstants::API_KEY);
$Z_ = Curl::vml($JH, $jb, $Ks, $this->getBaseUrl());
return $Z_;
}
public function getHiddenPhone($Em)
{
$LW = "xxxxxxx" . substr($Em, strlen($Em) - 3);
return $LW;
}
public function isBlank($pY)
{
if (!(!isset($pY) || empty($pY))) {
goto Y0s;
}
return true;
Y0s:
return false;
}
public function isCurlInstalled()
{
if (in_array("curl", get_loaded_extensions())) {
goto cgC;
}
return 0;
goto KJ0;
cgC:
return 1;
KJ0:
}
public function getAdminUserById($fi)
{
$user = $this->adminFactory->create()->load($fi);
return $user;
}
public function validatePhoneNumber($Em)
{
if (!preg_match(MoIDPConstants::PATTERN_PHONE, $Em, $sc)) {
goto W7q;
}
return true;
goto Rne;
W7q:
return false;
Rne:
}
public function getHiddenEmail($Q8)
{
if (!(!isset($Q8) || trim($Q8) === '')) {
goto v3A;
}
return '';
v3A:
$kB = strlen($Q8);
$pG = substr($Q8, 0, 1);
$cD = strrpos($Q8, "@");
$l_ = substr($Q8, $cD - 1, $kB);
$hq = 1;
Hh3:
if (!($hq < $cD)) {
goto Ec1;
}
$pG = $pG . "x";
FGo:
$hq++;
goto Hh3;
Ec1:
$lK = $pG . $l_;
return $lK;
}
public function getAdminSession()
{
return $this->adminSession;
}
public function setAdminSessionData($Wi, $pY)
{
return $this->adminSession->setData($Wi, $pY);
}
public function getAdminSessionData($Wi, $LA = false)
{
return $this->adminSession->getData($Wi, $LA);
}
public function setSessionData($Wi, $pY)
{
return $this->customerSession->setData($Wi, $pY);
}
public function getSessionData($Wi, $LA = false)
{
return $this->customerSession->getData($Wi, $LA);
}
public function setSessionDataForCurrentUser($Wi, $pY)
{
if ($this->customerSession->isLoggedIn()) {
goto AB2;
}
if ($this->authSession->isLoggedIn()) {
goto PW7;
}
goto dho;
AB2:
$this->setSessionData($Wi, $pY);
goto dho;
PW7:
$this->setAdminSessionData($Wi, $pY);
dho:
}
public function isOAuthConfigured()
{
$Kw = $this->getStoreConfig(OAuthConstants::AUTHORIZE_URL);
return $this->isBlank($Kw) ? false : true;
}
public function micr()
{
$Q8 = $this->getStoreConfig(OAuthConstants::CUSTOMER_EMAIL);
$Wi = $this->getStoreConfig(OAuthConstants::CUSTOMER_KEY);
return true;
}
public function mclv()
{
$nY = $this->getStoreConfig(OAuthConstants::TOKEN);
$fJ = AESEncryption::decrypt_data($this->getStoreConfig(OAuthConstants::OAUTH_CKL), $nY);
$n4 = $this->getStoreConfig(OAuthConstants::OAUTH_LK);
return true;
}
public function mius()
{
$JH = $this->getStoreConfig(OAuthConstants::CUSTOMER_KEY);
$jb = $this->getStoreConfig(OAuthConstants::API_KEY);
$nY = $this->getStoreConfig(OAuthConstants::TOKEN);
$Ks = AESEncryption::decrypt_data($this->getStoreConfig(OAuthConstants::OAUTH_LK), $nY);
$Z_ = Curl::mius($JH, $jb, $Ks);
return $Z_;
}
public function isUserLoggedIn()
{
return $this->customerSession->isLoggedIn() || $this->authSession->isLoggedIn();
}
public function getCurrentAdminUser()
{
return $this->authSession->getUser();
}
public function getCurrentUser()
{
return $this->customerSession->getCustomer();
}
public function getAdminLoginUrl()
{
return $this->getAdminUrl("adminhtml/auth/login");
}
public function getAdminPageUrl()
{
return $this->getAdminBaseUrl();
}
public function getCustomerLoginUrl()
{
return $this->getUrl("customer/account/login");
}
public function getIsTestConfigurationClicked()
{
return $this->getStoreConfig(OAuthConstants::IS_TEST);
}
public function flushCache($Bg = '')
{
$LS = ["db_ddl"];
foreach ($LS as $xj) {
$this->cacheTypeList->cleanType($xj);
sA6:
}
Y2L:
foreach ($this->cacheFrontendPool as $Gw) {
$Gw->getBackend()->clean();
vOE:
}
Uga:
}
public function getFileContents($t0)
{
return $this->fileSystem->fileGetContents($t0);
}
public function putFileContents($t0, $UH)
{
$this->fileSystem->filePutContents($t0, $UH);
}
public function getLogoutUrl()
{
if (!$this->customerSession->isLoggedIn()) {
goto RaG;
}
return $this->getUrl("customer/account/logout");
RaG:
if (!$this->authSession->isLoggedIn()) {
goto k8k;
}
return $this->getAdminUrl("adminhtml/auth/logout");
k8k:
return "/";
}
public function getCallBackUrl()
{
return $this->getBaseUrl() . OAuthConstants::CALLBACK_URL;
}
public function removeSignInSettings()
{
$this->setStoreConfig(OAuthConstants::SHOW_CUSTOMER_LINK, 0);
$this->setStoreConfig(OAuthConstants::SHOW_ADMIN_LINK, 0);
}
public function reinitConfig()
{
$this->reinitableConfig->reinit();
}
public function getCurrentUrl()
{
return $this->urlInterface->getCurrentUrl();
}
public function getAutoCreateAdmin()
{
return $this->getStoreConfig(OAuthConstants::AUTO_CREATE_ADMIN);
}
public function getAutoCreateCustomer()
{
return $this->getStoreConfig(OAuthConstants::AUTO_CREATE_CUSTOMER);
}
public function logInfo($LY)
{
$this->logger->info($LY);
}
public function updateColumnInTable($RZ, $vV, $d7, $Mz, $QL)
{
$this->log_debug("updateColumnInTable" . $vV);
$lp = $this->resource->getConnection();
if (!($lp->tableColumnExists($RZ, $vV) === false)) {
goto j6x;
}
$lp->addColumn($RZ, $vV, array("type" => "text", "nullable" => false, "length" => 255, "after" => null, "comment" => $vV));
j6x:
$this->resource->getConnection()->update($RZ, [$vV => $d7], [$Mz . " = ?" => $QL]);
}
public function getWebsiteCollection()
{
$jc = $this->_websiteCollectionFactory->create();
return $jc;
}
public function isAutoRedirectEnabled($QG)
{
$TF = $this->getStoreConfig(OAuthConstants::AUTO_REDIRECT_APP);
if ($TF == $QG) {
goto fPq;
}
return 0;
goto Trj;
fPq:
return $this->getStoreConfig(OAuthConstants::AUTO_REDIRECT);
Trj:
}
public function isAllPageAutoRedirectEnabled($QG)
{
$TF = $this->getStoreConfig(OAuthConstants::AUTO_REDIRECT_APP);
if ($TF == $QG) {
goto QRM;
}
return 0;
goto JzD;
QRM:
return $this->getStoreConfig(OAuthConstants::ALL_PAGE_AUTO_REDIRECT);
JzD:
}
public function checkIfFlowStartedFromBackend($pc)
{
$NC = $this->helperBackend->getAreaFrontName();
if (!str_contains($pc, $NC)) {
goto pCg;
}
$this->log_debug("checkIfFlowStartedFromBackend: true");
return true;
pCg:
$this->log_debug("checkIfFlowStartedFromBackend: false");
return false;
}
public function customlog($ir)
{
$this->isLogEnable() ? $this->_logger->debug($ir) : NULL;
}
public function isCustomLogExist()
{
if ($this->fileSystem->isExists("../var/log/mo_oauth.log")) {
goto NSU;
}
if ($this->fileSystem->isExists("var/log/mo_oauth.log")) {
goto f_4;
}
goto wjE;
NSU:
return 1;
goto wjE;
f_4:
return 1;
wjE:
return 0;
}
public function deleteCustomLogFile()
{
if ($this->fileSystem->isExists("../var/log/mo_oauth.log")) {
goto FQB;
}
if ($this->fileSystem->isExists("var/log/mo_oauth.log")) {
goto e1f;
}
goto ECB;
FQB:
$this->fileSystem->deleteFile("../var/log/mo_oauth.log");
goto ECB;
e1f:
$this->fileSystem->deleteFile("var/log/mo_oauth.log");
ECB:
}
public function isLogEnable()
{
return $this->getStoreConfig(OAuthConstants::ENABLE_DEBUG_LOG);
}
public function create_log_file($kE, $Z_)
{
return $this->fileFactory->create($kE, $Z_, DirectoryList::VAR_DIR);
}
public function get_magento_version()
{
return $this->productMetadata->getVersion();
}
public function check_versi($Zv)
{
return $this->get_versi() == $Zv;
}
public function get_versi()
{
$S1 = OAuthConstants::LICENSE_PLAN;
return $S1 === "magento_oauth_enterprise_plan" ? 3 : ($S1 === "magento_oauth_premium_plan" ? 2 : ($S1 === "magento_oauth_standard_plan" ? 1 : 0));
}
public function redirectURL($mp)
{
return $this->_response->setRedirect($mp)->sendResponse();
}
public function errorPageRedirection($VU)
{
try {
$this->messageManager->addErrorMessage($VU);
$mo = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);
$mo->setUrl($this->urlInterface->getUrl("noroute"));
return $mo;
} catch (\Exception $Vb) {
$this->messageManager->addError(__("An error occurred. Please try again."));
$this->_redirect("*/*/");
}
}
public function getDefaultErrorPage()
{
return $this->urlInterface->getUrl("noroute");
}
public function daycounter()
{
return 100;
}
}
?>
Did this file decode correctly?
Original Code
<?php
namespace MiniOrange\OAuth\Helper;
use Magento\Customer\Model\CustomerFactory;
use Magento\Customer\Model\Session;
use Magento\Framework\App\Cache\Frontend\Pool;
use Magento\Framework\App\Cache\TypeListInterface;
use Magento\Framework\App\Config\ScopeConfigInterface;
use Magento\Framework\App\Config\Storage\WriterInterface;
use Magento\Framework\Filesystem\Driver\File;
use Magento\Framework\Url;
use Magento\Framework\UrlInterface;
use Magento\Framework\View\Asset\Repository;
use Magento\User\Model\UserFactory;
use Psr\Log\LoggerInterface;
use MiniOrange\OAuth\Helper\OAuthConstants;
use MiniOrange\OAuth\Helper\Curl;
use MiniOrange\OAuth\Helper\Data;
use MiniOrange\OAuth\Helper\Exception\InvalidOperationException;
use MiniOrange\OAuth\Helper\OAuth\lib\AESEncryption;
use Magento\Framework\App\Filesystem\DirectoryList;
use Magento\Framework\Controller\ResultFactory;
use Magento\Framework\View\Result\PageFactory;
use Magento\Framework\Message\ManagerInterface;
use Magento\Store\Model\ScopeInterface;
class OAuthUtility extends Data
{
protected $adminSession;
protected $customerSession;
protected $authSession;
protected $cacheTypeList;
protected $cacheFrontendPool;
protected $fileSystem;
protected $reinitableConfig;
protected $logger;
protected $resource;
protected $_websiteCollectionFactory;
protected $helperBackend;
protected $_logger;
protected $fileFactory;
protected $productMetadata;
protected $_response;
protected $resultFactory;
protected $pageFactory;
protected $messageManager;
public function __construct(ScopeConfigInterface $bY, UserFactory $aD, CustomerFactory $vs, UrlInterface $oR, WriterInterface $Aw, Repository $sr, \Magento\Backend\Helper\Data $I5, Url $GO, \MiniOrange\OAuth\Model\MiniorangeOauthClientAppsFactory $VC, \Magento\Backend\Model\Session $ty, Session $b3, \Magento\Backend\Model\Auth\Session $UE, TypeListInterface $Rd, Pool $da, LoggerInterface $AL, \Magento\Store\Model\ResourceModel\Website\CollectionFactory $zK, File $R1, \Magento\Framework\App\Response\Http\FileFactory $ov, \Magento\Framework\App\Config\ReinitableConfigInterface $gx, \Magento\Framework\App\ResourceConnection $ab, \MiniOrange\OAuth\Logger\Logger $FP, \Magento\Framework\App\ProductMetadataInterface $hc, \Magento\Framework\App\ResponseInterface $ey, ResultFactory $gs, PageFactory $dS, ManagerInterface $XH)
{
$this->adminSession = $ty;
$this->customerSession = $b3;
$this->authSession = $UE;
$this->cacheTypeList = $Rd;
$this->cacheFrontendPool = $da;
$this->fileSystem = $R1;
$this->logger = $AL;
$this->_logger = $FP;
$this->reinitableConfig = $gx;
$this->resource = $ab;
$this->fileFactory = $ov;
$this->productMetadata = $hc;
$this->_websiteCollectionFactory = $zK;
$this->_response = $ey;
$this->resultFactory = $gs;
$this->pageFactory = $dS;
$this->messageManager = $XH;
parent::__construct($bY, $aD, $vs, $oR, $Aw, $sr, $I5, $GO, $VC);
}
public function log_debug($LY = '', $pJ = null)
{
if (is_object($LY)) {
goto Gx3;
}
$this->customlog("\x4d\117\40\117\x41\165\x74\x68\x20\x41\x6c\154\x49\x6e\x63\154\x75\x73\151\166\x65\x20\72\x20" . $LY);
goto FGS;
Gx3:
$this->customlog("\115\x4f\40\x4f\101\x75\164\150\x20\101\x6c\x6c\x49\x6e\143\x6c\165\163\x69\166\145\x20\72\x20" . print_r($pJ, true));
FGS:
if (!($pJ != null)) {
goto L_1;
}
$this->customlog("\115\x4f\x20\x4f\101\165\164\x68\40\101\x6c\154\111\x6e\143\x6c\x75\163\151\x76\145\40\x3a\40" . var_export($pJ, true));
L_1:
}
public function base64url_encode($UH)
{
return rtrim(strtr(base64_encode($UH), "\x2b\x2f", "\55\x5f"), "\75");
}
public function ccl()
{
$JH = $this->getStoreConfig(OAuthConstants::CUSTOMER_KEY);
$jb = $this->getStoreConfig(OAuthConstants::API_KEY);
$Z_ = Curl::ccl($JH, $jb);
return $Z_;
}
public function update_status($Ks)
{
$JH = $this->getStoreConfig(OAuthConstants::CUSTOMER_KEY);
$jb = $this->getStoreConfig(OAuthConstants::API_KEY);
$Z_ = Curl::update_status($JH, $jb, $Ks, $this->getBaseUrl());
return $Z_;
}
public function vml($Ks)
{
$JH = $this->getStoreConfig(OAuthConstants::CUSTOMER_KEY);
$jb = $this->getStoreConfig(OAuthConstants::API_KEY);
$Z_ = Curl::vml($JH, $jb, $Ks, $this->getBaseUrl());
return $Z_;
}
public function getHiddenPhone($Em)
{
$LW = "\x78\x78\170\170\x78\x78\x78" . substr($Em, strlen($Em) - 3);
return $LW;
}
public function isBlank($pY)
{
if (!(!isset($pY) || empty($pY))) {
goto Y0s;
}
return true;
Y0s:
return false;
}
public function isCurlInstalled()
{
if (in_array("\x63\x75\162\154", get_loaded_extensions())) {
goto cgC;
}
return 0;
goto KJ0;
cgC:
return 1;
KJ0:
}
public function getAdminUserById($fi)
{
$user = $this->adminFactory->create()->load($fi);
return $user;
}
public function validatePhoneNumber($Em)
{
if (!preg_match(MoIDPConstants::PATTERN_PHONE, $Em, $sc)) {
goto W7q;
}
return true;
goto Rne;
W7q:
return false;
Rne:
}
public function getHiddenEmail($Q8)
{
if (!(!isset($Q8) || trim($Q8) === '')) {
goto v3A;
}
return '';
v3A:
$kB = strlen($Q8);
$pG = substr($Q8, 0, 1);
$cD = strrpos($Q8, "\x40");
$l_ = substr($Q8, $cD - 1, $kB);
$hq = 1;
Hh3:
if (!($hq < $cD)) {
goto Ec1;
}
$pG = $pG . "\x78";
FGo:
$hq++;
goto Hh3;
Ec1:
$lK = $pG . $l_;
return $lK;
}
public function getAdminSession()
{
return $this->adminSession;
}
public function setAdminSessionData($Wi, $pY)
{
return $this->adminSession->setData($Wi, $pY);
}
public function getAdminSessionData($Wi, $LA = false)
{
return $this->adminSession->getData($Wi, $LA);
}
public function setSessionData($Wi, $pY)
{
return $this->customerSession->setData($Wi, $pY);
}
public function getSessionData($Wi, $LA = false)
{
return $this->customerSession->getData($Wi, $LA);
}
public function setSessionDataForCurrentUser($Wi, $pY)
{
if ($this->customerSession->isLoggedIn()) {
goto AB2;
}
if ($this->authSession->isLoggedIn()) {
goto PW7;
}
goto dho;
AB2:
$this->setSessionData($Wi, $pY);
goto dho;
PW7:
$this->setAdminSessionData($Wi, $pY);
dho:
}
public function isOAuthConfigured()
{
$Kw = $this->getStoreConfig(OAuthConstants::AUTHORIZE_URL);
return $this->isBlank($Kw) ? false : true;
}
public function micr()
{
$Q8 = $this->getStoreConfig(OAuthConstants::CUSTOMER_EMAIL);
$Wi = $this->getStoreConfig(OAuthConstants::CUSTOMER_KEY);
return true;
}
public function mclv()
{
$nY = $this->getStoreConfig(OAuthConstants::TOKEN);
$fJ = AESEncryption::decrypt_data($this->getStoreConfig(OAuthConstants::OAUTH_CKL), $nY);
$n4 = $this->getStoreConfig(OAuthConstants::OAUTH_LK);
return true;
}
public function mius()
{
$JH = $this->getStoreConfig(OAuthConstants::CUSTOMER_KEY);
$jb = $this->getStoreConfig(OAuthConstants::API_KEY);
$nY = $this->getStoreConfig(OAuthConstants::TOKEN);
$Ks = AESEncryption::decrypt_data($this->getStoreConfig(OAuthConstants::OAUTH_LK), $nY);
$Z_ = Curl::mius($JH, $jb, $Ks);
return $Z_;
}
public function isUserLoggedIn()
{
return $this->customerSession->isLoggedIn() || $this->authSession->isLoggedIn();
}
public function getCurrentAdminUser()
{
return $this->authSession->getUser();
}
public function getCurrentUser()
{
return $this->customerSession->getCustomer();
}
public function getAdminLoginUrl()
{
return $this->getAdminUrl("\x61\144\155\x69\156\x68\164\155\154\x2f\141\x75\x74\x68\57\x6c\157\147\151\x6e");
}
public function getAdminPageUrl()
{
return $this->getAdminBaseUrl();
}
public function getCustomerLoginUrl()
{
return $this->getUrl("\x63\165\x73\x74\157\155\x65\x72\57\141\x63\143\x6f\165\x6e\x74\57\x6c\x6f\x67\151\x6e");
}
public function getIsTestConfigurationClicked()
{
return $this->getStoreConfig(OAuthConstants::IS_TEST);
}
public function flushCache($Bg = '')
{
$LS = ["\x64\x62\137\144\x64\154"];
foreach ($LS as $xj) {
$this->cacheTypeList->cleanType($xj);
sA6:
}
Y2L:
foreach ($this->cacheFrontendPool as $Gw) {
$Gw->getBackend()->clean();
vOE:
}
Uga:
}
public function getFileContents($t0)
{
return $this->fileSystem->fileGetContents($t0);
}
public function putFileContents($t0, $UH)
{
$this->fileSystem->filePutContents($t0, $UH);
}
public function getLogoutUrl()
{
if (!$this->customerSession->isLoggedIn()) {
goto RaG;
}
return $this->getUrl("\143\x75\163\x74\x6f\x6d\x65\162\x2f\x61\x63\143\x6f\x75\x6e\x74\57\154\157\147\x6f\x75\x74");
RaG:
if (!$this->authSession->isLoggedIn()) {
goto k8k;
}
return $this->getAdminUrl("\x61\x64\155\x69\156\x68\164\155\x6c\57\141\x75\x74\x68\57\154\x6f\147\157\x75\x74");
k8k:
return "\57";
}
public function getCallBackUrl()
{
return $this->getBaseUrl() . OAuthConstants::CALLBACK_URL;
}
public function removeSignInSettings()
{
$this->setStoreConfig(OAuthConstants::SHOW_CUSTOMER_LINK, 0);
$this->setStoreConfig(OAuthConstants::SHOW_ADMIN_LINK, 0);
}
public function reinitConfig()
{
$this->reinitableConfig->reinit();
}
public function getCurrentUrl()
{
return $this->urlInterface->getCurrentUrl();
}
public function getAutoCreateAdmin()
{
return $this->getStoreConfig(OAuthConstants::AUTO_CREATE_ADMIN);
}
public function getAutoCreateCustomer()
{
return $this->getStoreConfig(OAuthConstants::AUTO_CREATE_CUSTOMER);
}
public function logInfo($LY)
{
$this->logger->info($LY);
}
public function updateColumnInTable($RZ, $vV, $d7, $Mz, $QL)
{
$this->log_debug("\165\x70\x64\141\x74\x65\103\x6f\x6c\165\x6d\156\111\x6e\124\141\x62\154\x65" . $vV);
$lp = $this->resource->getConnection();
if (!($lp->tableColumnExists($RZ, $vV) === false)) {
goto j6x;
}
$lp->addColumn($RZ, $vV, array("\164\171\x70\145" => "\x74\145\170\164", "\x6e\x75\154\154\x61\142\154\x65" => false, "\154\145\x6e\147\x74\150" => 255, "\141\x66\x74\145\162" => null, "\x63\157\155\155\145\156\164" => $vV));
j6x:
$this->resource->getConnection()->update($RZ, [$vV => $d7], [$Mz . "\x20\x3d\40\x3f" => $QL]);
}
public function getWebsiteCollection()
{
$jc = $this->_websiteCollectionFactory->create();
return $jc;
}
public function isAutoRedirectEnabled($QG)
{
$TF = $this->getStoreConfig(OAuthConstants::AUTO_REDIRECT_APP);
if ($TF == $QG) {
goto fPq;
}
return 0;
goto Trj;
fPq:
return $this->getStoreConfig(OAuthConstants::AUTO_REDIRECT);
Trj:
}
public function isAllPageAutoRedirectEnabled($QG)
{
$TF = $this->getStoreConfig(OAuthConstants::AUTO_REDIRECT_APP);
if ($TF == $QG) {
goto QRM;
}
return 0;
goto JzD;
QRM:
return $this->getStoreConfig(OAuthConstants::ALL_PAGE_AUTO_REDIRECT);
JzD:
}
public function checkIfFlowStartedFromBackend($pc)
{
$NC = $this->helperBackend->getAreaFrontName();
if (!str_contains($pc, $NC)) {
goto pCg;
}
$this->log_debug("\143\150\x65\143\153\x49\x66\x46\154\x6f\x77\x53\164\x61\x72\164\x65\x64\106\162\x6f\x6d\x42\141\x63\153\x65\156\144\72\40\164\x72\x75\x65");
return true;
pCg:
$this->log_debug("\143\150\145\143\153\111\146\106\154\x6f\x77\123\x74\141\x72\164\145\144\x46\162\x6f\x6d\102\x61\x63\153\x65\x6e\144\72\40\146\141\154\163\x65");
return false;
}
public function customlog($ir)
{
$this->isLogEnable() ? $this->_logger->debug($ir) : NULL;
}
public function isCustomLogExist()
{
if ($this->fileSystem->isExists("\56\x2e\57\166\141\x72\57\x6c\x6f\x67\57\155\x6f\137\x6f\x61\165\164\x68\x2e\154\x6f\x67")) {
goto NSU;
}
if ($this->fileSystem->isExists("\x76\141\162\57\154\x6f\147\57\x6d\x6f\137\x6f\x61\165\x74\x68\x2e\154\x6f\147")) {
goto f_4;
}
goto wjE;
NSU:
return 1;
goto wjE;
f_4:
return 1;
wjE:
return 0;
}
public function deleteCustomLogFile()
{
if ($this->fileSystem->isExists("\x2e\56\57\x76\x61\162\x2f\154\157\147\57\x6d\x6f\x5f\x6f\x61\165\164\x68\56\154\x6f\x67")) {
goto FQB;
}
if ($this->fileSystem->isExists("\166\141\x72\57\154\x6f\x67\x2f\155\157\137\157\141\165\x74\x68\56\x6c\x6f\x67")) {
goto e1f;
}
goto ECB;
FQB:
$this->fileSystem->deleteFile("\x2e\x2e\x2f\x76\141\x72\57\154\157\x67\57\x6d\157\x5f\x6f\141\x75\x74\x68\x2e\154\x6f\x67");
goto ECB;
e1f:
$this->fileSystem->deleteFile("\x76\x61\162\57\154\x6f\x67\57\155\x6f\137\x6f\x61\165\x74\x68\56\154\157\x67");
ECB:
}
public function isLogEnable()
{
return $this->getStoreConfig(OAuthConstants::ENABLE_DEBUG_LOG);
}
public function create_log_file($kE, $Z_)
{
return $this->fileFactory->create($kE, $Z_, DirectoryList::VAR_DIR);
}
public function get_magento_version()
{
return $this->productMetadata->getVersion();
}
public function check_versi($Zv)
{
return $this->get_versi() == $Zv;
}
public function get_versi()
{
$S1 = OAuthConstants::LICENSE_PLAN;
return $S1 === "\x6d\141\147\x65\x6e\x74\x6f\x5f\157\x61\x75\x74\x68\x5f\145\x6e\x74\x65\162\160\x72\151\163\145\137\x70\154\141\x6e" ? 3 : ($S1 === "\x6d\x61\x67\x65\x6e\x74\x6f\x5f\157\141\x75\x74\150\x5f\x70\162\x65\155\x69\165\155\137\x70\154\141\156" ? 2 : ($S1 === "\155\x61\x67\x65\x6e\164\157\x5f\157\x61\165\x74\150\x5f\163\x74\141\156\144\141\x72\x64\x5f\160\154\x61\x6e" ? 1 : 0));
}
public function redirectURL($mp)
{
return $this->_response->setRedirect($mp)->sendResponse();
}
public function errorPageRedirection($VU)
{
try {
$this->messageManager->addErrorMessage($VU);
$mo = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);
$mo->setUrl($this->urlInterface->getUrl("\x6e\157\162\157\165\x74\145"));
return $mo;
} catch (\Exception $Vb) {
$this->messageManager->addError(__("\x41\x6e\x20\x65\x72\x72\157\162\x20\x6f\x63\x63\x75\x72\x72\145\144\56\40\x50\x6c\145\x61\163\x65\40\164\x72\171\x20\x61\147\x61\x69\156\56"));
$this->_redirect("\52\57\52\x2f");
}
}
public function getDefaultErrorPage()
{
return $this->urlInterface->getUrl("\156\x6f\x72\x6f\165\x74\x65");
}
public function daycounter()
{
return 100;
}
}
Function Calls
None |
Stats
MD5 | 05928d652dd43bbc0019182c8e1e5fd8 |
Eval Count | 0 |
Decode Time | 56 ms |