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 /** * This file is a part of the miniorange-saml-20-single-sign-on plugin. * ..

Decoded Output download

<?php 
/** 
 * This file is a part of the miniorange-saml-20-single-sign-on plugin. 
 * 
 * @link https://plugins.miniorange.com/ 
 * @author miniOrange 
 * @package miniorange-saml-20-single-sign-on 
 */ 
 
 
namespace MOSAML\LicenseLibrary\Handlers; 
 
use MOSAML\LicenseLibrary\Classes\Mo_License_Constants; 
use MOSAML\LicenseLibrary\Classes\Mo_License_Dao; 
use MOSAML\LicenseLibrary\Mo_License_Config; 
use MOSAML\LicenseLibrary\Mo_License_Service; 
use MOSAML\LicenseLibrary\Utils\Mo_License_Actions_Utility; 
use MOSAML\LicenseLibrary\Views\Mo_License_Notice_Views; 
if (defined("ABSPATH")) { 
    goto Ek; 
} 
exit; 
Ek: 
class Mo_License_Actions_Handler 
{ 
    private $license_expiry_date; 
    public function __construct($bN) 
    { 
        $this->license_expiry_date = $bN; 
    } 
    public function run_license_cron() 
    { 
        if (Mo_License_Service::is_customer_license_verified()) { 
            goto DT; 
        } 
        return; 
        DT: 
        $XR = Mo_License_Dao::mo_get_option(Mo_License_Constants::LAST_CHECK_TIME_OPTION); 
        if (!$XR) { 
            goto Qr; 
        } 
        $XR = intval($XR); 
        if (!(time() - $XR < 3600 * 24 * Mo_License_Config::LICENSE_CRON_INTERVAL)) { 
            goto Hl; 
        } 
        return; 
        Hl: 
        Qr: 
        $FP = Mo_License_Actions_Utility::fetch_license_expiry_date(); 
        if (!$FP) { 
            goto V8; 
        } 
        Mo_License_Service::update_license_expiry($FP); 
        Mo_License_Dao::mo_update_option(Mo_License_Constants::LAST_CHECK_TIME_OPTION, time()); 
        V8: 
    } 
    public function dismiss_admin_license_notice() 
    { 
        if (!(current_user_can("manage_options") && !empty($_POST["option"]) && Mo_License_Constants::ADMIN_NOTICE_DISMISS_ID === $_POST["option"] && check_admin_referer(Mo_License_Constants::ADMIN_NOTICE_DISMISS_ID))) { 
            goto ZV; 
        } 
        $Yg = Mo_License_Service::get_expiry_remaining_days($this->license_expiry_date); 
        Mo_License_Dao::mo_update_option(Mo_License_Constants::EXPIRY_NOTICE_CLOSE_OPTION, $Yg); 
        ZV: 
    } 
    public function refresh_admin_widget_expiry() 
    { 
        if (!(current_user_can("manage_options") && !empty($_POST["option"]) && Mo_License_Constants::DASHBOARD_WIDGET_REFRESH_ID === $_POST["option"] && check_admin_referer(Mo_License_Constants::DASHBOARD_WIDGET_REFRESH_ID))) { 
            goto Zv; 
        } 
        Mo_License_Service::refresh_license_expiry(); 
        Zv: 
    } 
} 
 ?>

Did this file decode correctly?

Original Code

<?php
/**
 * This file is a part of the miniorange-saml-20-single-sign-on plugin.
 *
 * @link https://plugins.miniorange.com/
 * @author miniOrange
 * @package miniorange-saml-20-single-sign-on
 */


namespace MOSAML\LicenseLibrary\Handlers;

use MOSAML\LicenseLibrary\Classes\Mo_License_Constants;
use MOSAML\LicenseLibrary\Classes\Mo_License_Dao;
use MOSAML\LicenseLibrary\Mo_License_Config;
use MOSAML\LicenseLibrary\Mo_License_Service;
use MOSAML\LicenseLibrary\Utils\Mo_License_Actions_Utility;
use MOSAML\LicenseLibrary\Views\Mo_License_Notice_Views;
if (defined("\x41\x42\x53\120\x41\124\x48")) {
    goto Ek;
}
exit;
Ek:
class Mo_License_Actions_Handler
{
    private $license_expiry_date;
    public function __construct($bN)
    {
        $this->license_expiry_date = $bN;
    }
    public function run_license_cron()
    {
        if (Mo_License_Service::is_customer_license_verified()) {
            goto DT;
        }
        return;
        DT:
        $XR = Mo_License_Dao::mo_get_option(Mo_License_Constants::LAST_CHECK_TIME_OPTION);
        if (!$XR) {
            goto Qr;
        }
        $XR = intval($XR);
        if (!(time() - $XR < 3600 * 24 * Mo_License_Config::LICENSE_CRON_INTERVAL)) {
            goto Hl;
        }
        return;
        Hl:
        Qr:
        $FP = Mo_License_Actions_Utility::fetch_license_expiry_date();
        if (!$FP) {
            goto V8;
        }
        Mo_License_Service::update_license_expiry($FP);
        Mo_License_Dao::mo_update_option(Mo_License_Constants::LAST_CHECK_TIME_OPTION, time());
        V8:
    }
    public function dismiss_admin_license_notice()
    {
        if (!(current_user_can("\155\141\x6e\x61\147\x65\137\x6f\x70\164\x69\157\156\163") && !empty($_POST["\x6f\x70\164\151\157\x6e"]) && Mo_License_Constants::ADMIN_NOTICE_DISMISS_ID === $_POST["\x6f\x70\164\151\157\x6e"] && check_admin_referer(Mo_License_Constants::ADMIN_NOTICE_DISMISS_ID))) {
            goto ZV;
        }
        $Yg = Mo_License_Service::get_expiry_remaining_days($this->license_expiry_date);
        Mo_License_Dao::mo_update_option(Mo_License_Constants::EXPIRY_NOTICE_CLOSE_OPTION, $Yg);
        ZV:
    }
    public function refresh_admin_widget_expiry()
    {
        if (!(current_user_can("\155\x61\156\x61\147\145\x5f\x6f\x70\x74\151\157\x6e\x73") && !empty($_POST["\x6f\x70\x74\x69\157\x6e"]) && Mo_License_Constants::DASHBOARD_WIDGET_REFRESH_ID === $_POST["\157\x70\164\151\x6f\x6e"] && check_admin_referer(Mo_License_Constants::DASHBOARD_WIDGET_REFRESH_ID))) {
            goto Zv;
        }
        Mo_License_Service::refresh_license_expiry();
        Zv:
    }
}

Function Calls

None

Variables

None

Stats

MD5 a90cd9d4307644089c1ef4e60e29663f
Eval Count 0
Decode Time 96 ms