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 /* Plugin Name: CODARABY Plugin URI: https://wp-araby.com Description: CODARA..
Decoded Output download
<?php
/*
Plugin Name: CODARABY
Plugin URI: https://wp-araby.com
Description: CODARABY - . .
Version: 1.1
Author: Yassine Bekouri
Author URI: https://wp-araby.com/about-us
Text Domain: codaraby
Domain Path: /languages/
*/
require_once "data.php";
class codaraby_ME88E8795 {
public $plugin_file=__FILE__;
public $responseObj;
public $licenseMessage;
public $showMessage=false;
public $slug="codaraby";
function __construct() {
add_action( 'admin_print_styles', [ $this, 'SetAdminStyle' ] );
$licenseKey=get_option("codaraby_lic_Key","");
$liceEmail=get_option( "codaraby_lic_email","");
CE88E8795::addOnDelete(function(){
delete_option("codaraby_lic_Key");
});
if(CE88E8795::CheckWPPlugin($licenseKey,$liceEmail,$this->licenseMessage,$this->responseObj,__FILE__)){
add_action( 'admin_menu', [$this,'ActiveAdminMenu'],99999);
add_action( 'admin_post_codaraby_el_deactivate_license', [ $this, 'action_deactivate_license' ] );
if ( !defined( 'ABSPATH' ) ) {
exit;
}
define( 'EXPCOD_PATH', plugin_dir_path( __FILE__ ) );
define( 'EXPCOD_URL', plugin_dir_url( __FILE__ ) );
define( 'EXPCOD_DIRNAME', dirname( plugin_basename( __FILE__ ) ) );
define( 'EXPCOD_CAPABILITY', 'manage_options' );
define( 'EXPCOD_FILE', __FILE__ );
define( 'WDLF_VERSION','1.0.2' );
if ( !class_exists( 'CodExpressCheckout' ) ) {
include_once EXPCOD_PATH . 'classes/class-codexpress.php';
include_once EXPCOD_PATH . 'google-sheets/advanced-form-integration.php';
}
require EXPCOD_PATH . 'classes/Autoload-remote.php';
function codexp(){
return CodExpressCheckout::instance();
}
function expcod_load_textdomain(){
load_plugin_textdomain( 'cod-express-checkout', false, EXPCOD_DIRNAME . '/languages' );
}
add_action( 'init', 'expcod_load_textdomain' );
require EXPCOD_PATH . 'classes/Autoload.php';
$Expcod_Ajax = new Expcod_Ajax();
if ( !is_admin() ) {
if(is_active()){
$Expcod_Front = new Expcod_Front();
}
function enqueue_custom_form_styles() {
wp_enqueue_style( 'custom-form-css', plugins_url( '/assets/css/custom.css', __FILE__ ) );
}
add_action( 'wp_enqueue_scripts', 'enqueue_custom_form_styles' );
} else {
$Expcod_Admin = new Expcod_Admin();
}
require EXPCOD_PATH . 'classes/version-2.php';
require EXPCOD_PATH . 'classes/add-to-cart-sc.php';
if(isset($_POST['wdk-import-locations'])){
require EXPCOD_PATH . 'classes/includes/locations/'.$_POST['wdk-import-locations'].'.php';
}
}else{
if(!empty($licenseKey) && !empty($this->licenseMessage)){
$this->showMessage=true;
}
update_option("codaraby_lic_Key","") || add_option("codaraby_lic_Key","");
add_action( 'admin_post_codaraby_el_activate_license', [ $this, 'action_activate_license' ] );
add_action( 'admin_menu', [$this,'InactiveMenu']);
}
}
function SetAdminStyle() {
wp_register_style( "codarabyLic", plugins_url("style.css",$this->plugin_file),10);
wp_enqueue_style( "codarabyLic" );
}
function ActiveAdminMenu(){
add_options_page(
"codaraby",
"codaraby",
"activate_plugins",
$this->slug,
[$this, "Activated"]
);
}
function InactiveMenu() {
add_menu_page( "codaraby", "codaraby", 'activate_plugins', $this->slug, [$this,"LicenseForm"], "dashicons-admin-network" );
}
function action_activate_license(){
check_admin_referer( 'el-license' );
$licenseKey=!empty($_POST['el_license_key'])?$_POST['el_license_key']:"";
$licenseEmail=!empty($_POST['el_license_email'])?$_POST['el_license_email']:"";
update_option("codaraby_lic_Key",$licenseKey) || add_option("codaraby_lic_Key",$licenseKey);
update_option("codaraby_lic_email",$licenseEmail) || add_option("codaraby_lic_email",$licenseEmail);
update_option('_site_transient_update_plugins','');
wp_safe_redirect(admin_url( 'admin.php?page='.$this->slug));
}
function action_deactivate_license() {
check_admin_referer( 'el-license' );
$message="";
if(CE88E8795::RemoveLicenseKey(__FILE__,$message)){
update_option("codaraby_lic_Key","") || add_option("codaraby_lic_Key","");
update_option('_site_transient_update_plugins','');
}
wp_safe_redirect(admin_url( 'admin.php?page='.$this->slug));
}
function Activated(){
?>
<form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>">
<input type="hidden" name="action" value="codaraby_el_deactivate_license"/>
<div class="el-license-container">
<h3 class="el-license-title"><i class="dashicons-before dashicons-cart"></i> <?php _e(" ",$this->slug);?> </h3>
<hr>
<ul class="el-license-info">
<li>
<div>
<span class="el-license-info-title"><?php _e(" ",$this->slug);?></span>
<?php if ( $this->responseObj->is_valid ) : ?>
<span class="el-license-valid"><?php _e("",$this->slug);?></span>
<?php else : ?>
<span class="el-license-valid"><?php _e(" ",$this->slug);?></span>
<?php endif; ?>
</div>
</li>
<li>
<div>
<span class="el-license-info-title"><?php _e(" ",$this->slug);?></span>
<?php echo $this->responseObj->license_title; ?>
</div>
</li>
<li>
<div>
<span class="el-license-info-title"><?php _e(" ",$this->slug);?></span>
<?php echo $this->responseObj->expire_date;
if(!empty($this->responseObj->expire_renew_link)){
?>
<a target="_blank" class="el-blue-btn" href="<?php echo $this->responseObj->expire_renew_link; ?>"> </a>
<?php
}
?>
</div>
</li>
<li>
<div>
<span class="el-license-info-title"><?php _e(" ",$this->slug);?></span>
<?php
echo $this->responseObj->support_end;
if(!empty($this->responseObj->support_renew_link)){
?>
<a target="_blank" class="el-blue-btn" href="<?php echo $this->responseObj->support_renew_link; ?>">Renew</a>
<?php
}
?>
</div>
</li>
<li>
<div>
<span class="el-license-info-title"><?php _e(" ",$this->slug);?></span>
<span class="el-license-key"><?php echo esc_attr( substr($this->responseObj->license_key,0,9)."XXXXXXXX-XXXXXXXX".substr($this->responseObj->license_key,-9) ); ?></span>
</div>
</li>
</ul>
<div class="el-license-active-btn">
<?php wp_nonce_field( 'el-license' ); ?>
<?php submit_button(' '); ?>
</div>
</div>
</form>
<?php
}
function LicenseForm() {
?>
<form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>">
<input type="hidden" name="action" value="codaraby_el_activate_license"/>
<div class="el-license-container">
<h3 class="el-license-title"><i class="dashicons-before dashicons-cart"></i> <?php _e(" CODARABY",$this->slug);?></h3>
<hr>
<?php
if(!empty($this->showMessage) && !empty($this->licenseMessage)){
?>
<div class="notice notice-error is-dismissible">
<p><?php echo _e($this->licenseMessage,$this->slug); ?></p>
</div>
<?php
}
?>
<div class="el-license-field">
<label for="el_license_key"><?php _e(" ",$this->slug);?></label>
<input type="text" class="regular-text code" name="el_license_key" size="50" placeholder="xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx" required="required">
</div>
<div class="el-license-field">
<label for="el_license_key"><?php _e(" ",$this->slug);?></label>
<?php
$purchaseEmail = get_option( "codaraby_lic_email", get_bloginfo( 'admin_email' ));
?>
<input type="text" class="regular-text code" name="el_license_email" size="50" value="<?php echo $purchaseEmail; ?>" placeholder="" required="required">
</div>
<div class="el-license-active-btn">
<?php wp_nonce_field( 'el-license' ); ?>
<?php submit_button(' '); ?>
</div>
</div>
</form>
<?php
}
}
new codaraby_ME88E8795(); ?>
Did this file decode correctly?
Original Code
<?php
/*
Plugin Name: CODARABY
Plugin URI: https://wp-araby.com
Description: CODARABY - . .
Version: 1.1
Author: Yassine Bekouri
Author URI: https://wp-araby.com/about-us
Text Domain: codaraby
Domain Path: /languages/
*/
require_once "data.php";
class codaraby_ME88E8795 {
public $plugin_file=__FILE__;
public $responseObj;
public $licenseMessage;
public $showMessage=false;
public $slug="codaraby";
function __construct() {
add_action( 'admin_print_styles', [ $this, 'SetAdminStyle' ] );
$licenseKey=get_option("codaraby_lic_Key","");
$liceEmail=get_option( "codaraby_lic_email","");
CE88E8795::addOnDelete(function(){
delete_option("codaraby_lic_Key");
});
if(CE88E8795::CheckWPPlugin($licenseKey,$liceEmail,$this->licenseMessage,$this->responseObj,__FILE__)){
add_action( 'admin_menu', [$this,'ActiveAdminMenu'],99999);
add_action( 'admin_post_codaraby_el_deactivate_license', [ $this, 'action_deactivate_license' ] );
if ( !defined( 'ABSPATH' ) ) {
exit;
}
define( 'EXPCOD_PATH', plugin_dir_path( __FILE__ ) );
define( 'EXPCOD_URL', plugin_dir_url( __FILE__ ) );
define( 'EXPCOD_DIRNAME', dirname( plugin_basename( __FILE__ ) ) );
define( 'EXPCOD_CAPABILITY', 'manage_options' );
define( 'EXPCOD_FILE', __FILE__ );
define( 'WDLF_VERSION','1.0.2' );
if ( !class_exists( 'CodExpressCheckout' ) ) {
include_once EXPCOD_PATH . 'classes/class-codexpress.php';
include_once EXPCOD_PATH . 'google-sheets/advanced-form-integration.php';
}
require EXPCOD_PATH . 'classes/Autoload-remote.php';
function codexp(){
return CodExpressCheckout::instance();
}
function expcod_load_textdomain(){
load_plugin_textdomain( 'cod-express-checkout', false, EXPCOD_DIRNAME . '/languages' );
}
add_action( 'init', 'expcod_load_textdomain' );
require EXPCOD_PATH . 'classes/Autoload.php';
$Expcod_Ajax = new Expcod_Ajax();
if ( !is_admin() ) {
if(is_active()){
$Expcod_Front = new Expcod_Front();
}
function enqueue_custom_form_styles() {
wp_enqueue_style( 'custom-form-css', plugins_url( '/assets/css/custom.css', __FILE__ ) );
}
add_action( 'wp_enqueue_scripts', 'enqueue_custom_form_styles' );
} else {
$Expcod_Admin = new Expcod_Admin();
}
require EXPCOD_PATH . 'classes/version-2.php';
require EXPCOD_PATH . 'classes/add-to-cart-sc.php';
if(isset($_POST['wdk-import-locations'])){
require EXPCOD_PATH . 'classes/includes/locations/'.$_POST['wdk-import-locations'].'.php';
}
}else{
if(!empty($licenseKey) && !empty($this->licenseMessage)){
$this->showMessage=true;
}
update_option("codaraby_lic_Key","") || add_option("codaraby_lic_Key","");
add_action( 'admin_post_codaraby_el_activate_license', [ $this, 'action_activate_license' ] );
add_action( 'admin_menu', [$this,'InactiveMenu']);
}
}
function SetAdminStyle() {
wp_register_style( "codarabyLic", plugins_url("style.css",$this->plugin_file),10);
wp_enqueue_style( "codarabyLic" );
}
function ActiveAdminMenu(){
add_options_page(
"codaraby",
"codaraby",
"activate_plugins",
$this->slug,
[$this, "Activated"]
);
}
function InactiveMenu() {
add_menu_page( "codaraby", "codaraby", 'activate_plugins', $this->slug, [$this,"LicenseForm"], "dashicons-admin-network" );
}
function action_activate_license(){
check_admin_referer( 'el-license' );
$licenseKey=!empty($_POST['el_license_key'])?$_POST['el_license_key']:"";
$licenseEmail=!empty($_POST['el_license_email'])?$_POST['el_license_email']:"";
update_option("codaraby_lic_Key",$licenseKey) || add_option("codaraby_lic_Key",$licenseKey);
update_option("codaraby_lic_email",$licenseEmail) || add_option("codaraby_lic_email",$licenseEmail);
update_option('_site_transient_update_plugins','');
wp_safe_redirect(admin_url( 'admin.php?page='.$this->slug));
}
function action_deactivate_license() {
check_admin_referer( 'el-license' );
$message="";
if(CE88E8795::RemoveLicenseKey(__FILE__,$message)){
update_option("codaraby_lic_Key","") || add_option("codaraby_lic_Key","");
update_option('_site_transient_update_plugins','');
}
wp_safe_redirect(admin_url( 'admin.php?page='.$this->slug));
}
function Activated(){
?>
<form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>">
<input type="hidden" name="action" value="codaraby_el_deactivate_license"/>
<div class="el-license-container">
<h3 class="el-license-title"><i class="dashicons-before dashicons-cart"></i> <?php _e(" ",$this->slug);?> </h3>
<hr>
<ul class="el-license-info">
<li>
<div>
<span class="el-license-info-title"><?php _e(" ",$this->slug);?></span>
<?php if ( $this->responseObj->is_valid ) : ?>
<span class="el-license-valid"><?php _e("",$this->slug);?></span>
<?php else : ?>
<span class="el-license-valid"><?php _e(" ",$this->slug);?></span>
<?php endif; ?>
</div>
</li>
<li>
<div>
<span class="el-license-info-title"><?php _e(" ",$this->slug);?></span>
<?php echo $this->responseObj->license_title; ?>
</div>
</li>
<li>
<div>
<span class="el-license-info-title"><?php _e(" ",$this->slug);?></span>
<?php echo $this->responseObj->expire_date;
if(!empty($this->responseObj->expire_renew_link)){
?>
<a target="_blank" class="el-blue-btn" href="<?php echo $this->responseObj->expire_renew_link; ?>"> </a>
<?php
}
?>
</div>
</li>
<li>
<div>
<span class="el-license-info-title"><?php _e(" ",$this->slug);?></span>
<?php
echo $this->responseObj->support_end;
if(!empty($this->responseObj->support_renew_link)){
?>
<a target="_blank" class="el-blue-btn" href="<?php echo $this->responseObj->support_renew_link; ?>">Renew</a>
<?php
}
?>
</div>
</li>
<li>
<div>
<span class="el-license-info-title"><?php _e(" ",$this->slug);?></span>
<span class="el-license-key"><?php echo esc_attr( substr($this->responseObj->license_key,0,9)."XXXXXXXX-XXXXXXXX".substr($this->responseObj->license_key,-9) ); ?></span>
</div>
</li>
</ul>
<div class="el-license-active-btn">
<?php wp_nonce_field( 'el-license' ); ?>
<?php submit_button(' '); ?>
</div>
</div>
</form>
<?php
}
function LicenseForm() {
?>
<form method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>">
<input type="hidden" name="action" value="codaraby_el_activate_license"/>
<div class="el-license-container">
<h3 class="el-license-title"><i class="dashicons-before dashicons-cart"></i> <?php _e(" CODARABY",$this->slug);?></h3>
<hr>
<?php
if(!empty($this->showMessage) && !empty($this->licenseMessage)){
?>
<div class="notice notice-error is-dismissible">
<p><?php echo _e($this->licenseMessage,$this->slug); ?></p>
</div>
<?php
}
?>
<div class="el-license-field">
<label for="el_license_key"><?php _e(" ",$this->slug);?></label>
<input type="text" class="regular-text code" name="el_license_key" size="50" placeholder="xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx" required="required">
</div>
<div class="el-license-field">
<label for="el_license_key"><?php _e(" ",$this->slug);?></label>
<?php
$purchaseEmail = get_option( "codaraby_lic_email", get_bloginfo( 'admin_email' ));
?>
<input type="text" class="regular-text code" name="el_license_email" size="50" value="<?php echo $purchaseEmail; ?>" placeholder="" required="required">
</div>
<div class="el-license-active-btn">
<?php wp_nonce_field( 'el-license' ); ?>
<?php submit_button(' '); ?>
</div>
</div>
</form>
<?php
}
}
new codaraby_ME88E8795();
Function Calls
None |
Stats
MD5 | a34528fc548ac67c92a87114ced89a2b |
Eval Count | 0 |
Decode Time | 59 ms |