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: miniOrange Google Drive Addon * Plugin URI: http://miniorang..
Decoded Output download
<?php
/**
* Plugin Name: miniOrange Google Drive Addon
* Plugin URI: http://miniorange.com
* Description: Google Drive Addon to sync the media files from Google Drive
* Version: 1.0.0
* Author: miniOrange
* License: GPL2
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
namespace MoGoogleDriveSync;
use MoGoogleDriveSync\Helper\PluginConstants;
use MoGoogleDriveSync\Helper\Utils;
use MoGoogleDriveSync\Handler\GoogleAuthorizationHandler;
use MoGoogleDriveSync\Handler\GoogleDriveMediaProcessingHandler;
use MoGoogleDriveSync\Helper\Instance;
use MoGoogleDriveSync\Services\DBUtils;
use MoGoogleDriveSync\Services\GoogleDriveDBUtils;
use MoGoogleDriveSync\Services\AuditDB;
define("PLUGIN_DIR", __DIR__);
require_once __DIR__ . "/vendor/autoload.php";
require_once __DIR__ . "/Helper/views/View.php";
require_once ABSPATH . "wp-admin/includes/image-edit.php";
class GoogleDriveSync
{
private static $instance;
private $google_media_handler;
private $pmpro;
private $auditdb;
use Instance;
public static function instance()
{
if (isset(self::$instance)) {
goto vA;
}
$qS = __CLASS__;
self::$instance = new $qS();
self::$instance->mo_google_drive_sync_loadhooks();
self::$instance->auditdb = AuditDB::instance();
self::$instance->google_media_handler = GoogleDriveMediaProcessingHandler::instance();
vA:
return self::$instance;
}
public function mo_google_drive_sync_loadhooks()
{
register_activation_hook(__FILE__, array($this, "mo_sf_sync_plugin_init"));
add_action("admin_menu", array($this, "register_my_custom_menu_page"));
add_action("admin_enqueue_scripts", array($this, "mo_google_drive_sync_styles"));
add_action("admin_enqueue_scripts", array($this, "mo_google_drive_sync_scripts"));
add_action("init", array($this, "mo_google_drive_sync_save"), 10);
add_action("mo_sf_sync_gd_one_time_pull", array($this, "mo_sf_sync_start_gd_media_processing"), 10);
add_action("mo_sf_process_next_batch", array($this, "mo_sf_sync_handle_gd_processing"), 10);
add_action("mo_sf_processing_aborted", function () {
error_log("Processing has been aborted.");
});
add_action("mo_sf_sync_add_media_object_for_processing", array($this, "mo_sf_sync_add_media_object_for_processing_handler"), 20, 2);
$this->mo_google_drive_sync_handle_auth_code();
add_action("process_media_processing_object_event", array($this, "handle_media_processing_event"), 10, 1);
}
function handle_media_processing_event($Wq)
{
error_log("MOGDSYNC::Processing media for post_id: " . $Wq["post_id"]);
$this->google_media_handler->mo_sf_sync_handle_media_processing_object($Wq, true);
}
public function mo_sf_sync_plugin_init()
{
$Nf = new GoogleDriveDBUtils();
$Nf->mo_sf_sync_create_google_drive_handler_db();
$this->mo_sf_sync_audit_log();
}
public function mo_sf_sync_audit_log()
{
$wV = AuditDB::instance();
$wV->mo_sf_sync_create_audit_log_table();
}
function register_my_custom_menu_page()
{
add_menu_page("MiniOrange Google Drive" . __("Configure Google Drive Credentials", "miniorange-google-drive-api-addon"), "miniOrange Google Drive Addon", "administrator", "mo-google-drive-addon", array($this, "mo_sf_sync_google_addon_page"), plugin_dir_url(__FILE__) . "images/miniorange.png");
}
public function mo_google_drive_sync_handle_auth_code()
{
$Mg = GoogleAuthorizationHandler::instance();
$Mg->mo_sf_sync_handle_google_auth_code();
}
public function mo_google_drive_sync_scripts($rP)
{
if (!($rP !== "toplevel_page_mo-google-drive-addon")) {
goto qn;
}
return;
qn:
wp_enqueue_script("mo_sf_sync_js", plugins_url("/Helper/views/includes/js/mo_google_drive_script.min.js", __FILE__));
}
public function mo_google_drive_sync_styles($rP)
{
if (!($rP !== "toplevel_page_mo-google-drive-addon")) {
goto Y3;
}
return;
Y3:
$gP = plugins_url("/Helper/views/includes/css/mo_google_drive_style.min.css", __FILE__);
wp_enqueue_style("mo_sf_sync_css", $gP);
}
public function mo_sf_sync_google_addon_page()
{
mo_google_drive_display_view();
}
public function mo_sf_sync_add_media_object_for_processing_handler($nM, $Bf = null)
{
$Cn = ini_get("max_execution_time");
$Xq = ini_get("memory_limit");
set_time_limit(0);
ini_set("memory_limit", PluginConstants::GD_PROCESSING_M_LIMIT);
error_log("MOGDSYNC::MEDIA PROCESSING OBJECT => " . print_r($nM, true));
if (!(!isset($nM["image"]) && !isset($nM["video"]))) {
goto aj;
}
$this->auditdb->mo_sf_sync_update_recent_audit_log_record_for_records($nM["post_id"], $nM["salesforce_id"]);
return;
aj:
if (isset($Bf) && "real_time_sync" === $Bf) {
goto Tw;
}
$Nf = new GoogleDriveDBUtils();
$Sq = $Nf->mo_google_drive_sync_insert_record_in_db($nM);
return;
goto kM;
Tw:
$Wq = array();
$Wq["post_id"] = $nM["post_id"];
$Wq["salesforce_id"] = $nM["salesforce_id"];
$Wq["image"] = isset($nM["image"]) ? $nM["image"] : '';
$Wq["video"] = isset($nM["video"]) ? $nM["video"] : '';
$M4 = time() + 10;
wp_schedule_single_event($M4, "process_media_processing_object_event", array($Wq));
kM:
ini_set("memory_limit", $Xq);
set_time_limit($Cn);
}
public function mo_google_drive_sync_save()
{
if (isset($_POST["option"])) {
goto ss;
}
return;
ss:
$bj = sanitize_text_field(wp_unslash($_POST["option"]));
switch ($bj) {
case "mo_google_drive_sync_client_config_option":
if (!(isset($_POST["nonce_"]) && !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["nonce_"])), "mo_google_drive_sync_client_config_option"))) {
goto zN;
}
return;
zN:
$Wm = isset($_POST["client_id"]) ? sanitize_text_field(wp_unslash($_POST["client_id"])) : "user";
$r7 = isset($_POST["client_secret"]) ? sanitize_text_field(wp_unslash($_POST["client_secret"])) : '';
$mM = home_url();
$kD = array(PluginConstants::GOOGLE_API_CLIENT_ID => $Wm, PluginConstants::GOOGLE_API_CLIENT_SECRET => $r7, PluginConstants::GOOGLE_API_REDIRECT_URI => $mM);
update_option(PluginConstants::GOOGLE_API_CONFIG_OBJECT, $kD);
Utils::mo_sf_sync_show_success_message("Client Credentials are saved.");
goto Fg;
case "mo_sf_sync_google_drive_one_time_pull":
$za = sanitize_text_field(wp_unslash($_POST["gd_sync_operation"]));
$MZ = array();
$MZ["operation"] = $za;
if ("PULL" === $za) {
goto TA;
}
if ("ABORT" === $za) {
goto dH;
}
if ("CLEAR" === $za) {
goto cU;
}
goto Mk;
TA:
error_log("INSIDE PULL");
$A7["data"] = "Sync Started !";
update_option("mo_sf_sync_gd_one_time_pull", $A7);
do_action("mo_sf_sync_gd_one_time_pull");
goto Mk;
dH:
$A7["data"] = "Sync Aborted !";
update_option("mo_sf_sync_gd_one_time_pull", $A7);
set_transient("mo_sf_sync_gd_cron_disabled", true, 24 * 60 * 60);
goto Mk;
cU:
$Nf = new GoogleDriveDBUtils();
$Nf->mo_google_drive_sync_delete_records_from_db();
Mk:
goto Fg;
}
d3:
Fg:
}
public function mo_sf_sync_start_gd_media_processing()
{
error_log("MOGDSYNC::CONTROL INSIDE THE mo_sf_sync_start_gd_media_processing");
if (!get_transient("mo_sf_sync_gd_cron_disabled")) {
goto db;
}
delete_transient("mo_sf_sync_gd_cron_disabled");
db:
$this->mo_sf_sync_handle_gd_processing();
}
public function mo_sf_sync_handle_gd_processing()
{
$Nf = new GoogleDriveDBUtils();
$Sq = $Nf->mo_google_drive_sync_get_records_from_db();
if (empty($Sq)) {
goto EV;
}
$A7 = array();
$A7["operation"] = "INITITATE";
$A7["data"] = "Sync Started !";
update_option("mo_sf_sync_gd_one_time_pull", $A7);
goto WP;
EV:
error_log("MOGDSYNC::NO MORE RECORDS TO PROCESS");
$A7 = array();
$A7["operation"] = "COMPLETE";
$A7["data"] = "Sync Completed !";
update_option("mo_sf_sync_gd_one_time_pull", $A7);
error_log("MOGDSYNC::mo_sf_sync_gd_one_time_pull OPTIONS => " . print_r(get_option("mo_sf_sync_gd_one_time_pull"), true));
return;
WP:
error_log("MOGDSYNC::NUMBER OF RECORDS TO PROCESS => " . count($Sq));
$Xq = ini_get("memory_limit");
ini_set("memory_limit", PluginConstants::GD_PROCESSING_M_LIMIT);
foreach ($Sq as $t7) {
$t7 = (array) $t7;
$Wq = array();
$Wq["post_id"] = $t7["wp_post_id"];
$Wq["salesforce_id"] = $t7["salesforce_id"];
$Wq["image"] = isset($t7["photo_folder_id"]) ? $t7["photo_folder_id"] : '';
$Wq["video"] = isset($t7["video_folder_id"]) ? $t7["video_folder_id"] : '';
$this->google_media_handler->mo_sf_sync_handle_media_processing_object($Wq);
$Nf->mo_google_drive_sync_delete_record_from_db($t7["wp_post_id"]);
tj:
}
RV:
if (get_transient("mo_sf_sync_gd_cron_disabled")) {
goto Kf;
}
wp_schedule_single_event(time() + 1, "mo_sf_process_next_batch");
goto U5;
Kf:
error_log("MOGDSYNC::ABORT THE GOOGLE DRIVE CRON");
$A7 = array();
$A7["operation"] = "ABORT";
$A7["data"] = "Sync Aborted !";
update_option("mo_sf_sync_gd_one_time_pull", $A7);
ini_set("memory_limit", $Xq);
return;
U5:
$A7 = array();
$A7["operation"] = "COMPLETE";
$A7["data"] = "Sync Completed !";
update_option("mo_sf_sync_gd_one_time_pull", $A7);
ini_set("memory_limit", $Xq);
}
public function mo_sf_abort_processing()
{
$M4 = wp_next_scheduled("mo_sf_process_next_batch");
if (!$M4) {
goto b6;
}
wp_unschedule_event($M4, "mo_sf_process_next_batch");
do_action("mo_sf_processing_aborted");
b6:
}
}
GoogleDriveSync::instance();
?>
Did this file decode correctly?
Original Code
<?php
/**
* Plugin Name: miniOrange Google Drive Addon
* Plugin URI: http://miniorange.com
* Description: Google Drive Addon to sync the media files from Google Drive
* Version: 1.0.0
* Author: miniOrange
* License: GPL2
* License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
namespace MoGoogleDriveSync;
use MoGoogleDriveSync\Helper\PluginConstants;
use MoGoogleDriveSync\Helper\Utils;
use MoGoogleDriveSync\Handler\GoogleAuthorizationHandler;
use MoGoogleDriveSync\Handler\GoogleDriveMediaProcessingHandler;
use MoGoogleDriveSync\Helper\Instance;
use MoGoogleDriveSync\Services\DBUtils;
use MoGoogleDriveSync\Services\GoogleDriveDBUtils;
use MoGoogleDriveSync\Services\AuditDB;
define("\x50\x4c\x55\107\x49\x4e\137\104\111\x52", __DIR__);
require_once __DIR__ . "\x2f\x76\x65\x6e\x64\157\x72\57\x61\165\x74\x6f\154\157\141\144\56\160\150\x70";
require_once __DIR__ . "\57\110\x65\154\x70\x65\x72\57\166\151\145\x77\x73\57\126\151\145\167\56\160\x68\x70";
require_once ABSPATH . "\167\160\55\x61\144\155\151\156\57\151\x6e\143\154\165\x64\145\x73\x2f\151\x6d\141\147\x65\55\145\x64\151\164\x2e\x70\150\160";
class GoogleDriveSync
{
private static $instance;
private $google_media_handler;
private $pmpro;
private $auditdb;
use Instance;
public static function instance()
{
if (isset(self::$instance)) {
goto vA;
}
$qS = __CLASS__;
self::$instance = new $qS();
self::$instance->mo_google_drive_sync_loadhooks();
self::$instance->auditdb = AuditDB::instance();
self::$instance->google_media_handler = GoogleDriveMediaProcessingHandler::instance();
vA:
return self::$instance;
}
public function mo_google_drive_sync_loadhooks()
{
register_activation_hook(__FILE__, array($this, "\155\157\137\x73\x66\x5f\163\x79\x6e\x63\137\x70\154\x75\x67\x69\156\137\151\x6e\151\x74"));
add_action("\141\144\155\151\156\x5f\155\x65\x6e\x75", array($this, "\162\145\x67\151\x73\164\x65\x72\137\155\x79\x5f\143\x75\x73\x74\x6f\155\x5f\x6d\145\x6e\165\137\160\141\x67\x65"));
add_action("\141\144\155\x69\x6e\137\145\x6e\x71\165\145\x75\145\x5f\163\x63\162\151\x70\164\163", array($this, "\155\157\137\x67\x6f\157\x67\x6c\145\137\144\162\151\166\145\x5f\x73\x79\x6e\143\137\163\x74\171\x6c\145\x73"));
add_action("\141\144\155\151\156\x5f\x65\156\x71\165\145\165\145\137\x73\143\162\151\x70\164\x73", array($this, "\155\157\137\147\157\x6f\147\x6c\x65\137\x64\x72\151\x76\x65\x5f\x73\171\156\143\x5f\x73\x63\162\151\x70\x74\x73"));
add_action("\151\156\151\164", array($this, "\155\157\x5f\x67\x6f\x6f\x67\x6c\x65\x5f\x64\x72\x69\x76\x65\x5f\x73\x79\156\143\x5f\x73\x61\166\x65"), 10);
add_action("\x6d\157\x5f\x73\x66\137\x73\171\x6e\x63\137\x67\144\x5f\157\156\145\x5f\164\151\x6d\x65\137\160\x75\154\154", array($this, "\x6d\x6f\137\x73\146\x5f\163\171\x6e\x63\137\x73\x74\x61\162\164\137\147\x64\137\x6d\145\144\x69\141\x5f\160\x72\157\x63\145\163\163\151\156\147"), 10);
add_action("\x6d\157\x5f\163\x66\137\x70\162\x6f\x63\145\163\x73\x5f\x6e\145\x78\164\137\142\141\x74\143\x68", array($this, "\x6d\x6f\x5f\163\146\x5f\x73\171\156\143\x5f\x68\141\156\x64\x6c\145\137\x67\144\x5f\160\162\157\143\145\163\163\151\156\147"), 10);
add_action("\x6d\157\x5f\x73\x66\137\160\162\x6f\x63\145\x73\163\151\156\x67\137\141\x62\157\x72\164\x65\144", function () {
error_log("\x50\x72\157\x63\x65\163\163\x69\x6e\x67\40\x68\141\163\x20\x62\x65\x65\156\40\141\142\x6f\x72\x74\145\144\56");
});
add_action("\155\157\x5f\163\146\137\x73\x79\156\x63\137\x61\x64\x64\137\155\x65\144\151\141\x5f\x6f\x62\x6a\x65\143\x74\x5f\146\x6f\162\x5f\160\162\157\143\x65\163\163\x69\156\x67", array($this, "\155\157\137\x73\x66\137\x73\x79\x6e\143\x5f\141\144\144\137\x6d\x65\144\151\141\x5f\157\142\x6a\145\x63\x74\137\x66\157\162\x5f\x70\162\157\x63\145\163\163\x69\x6e\147\137\150\141\x6e\x64\x6c\x65\x72"), 20, 2);
$this->mo_google_drive_sync_handle_auth_code();
add_action("\160\162\x6f\143\145\x73\163\x5f\155\x65\144\151\141\x5f\160\x72\157\143\x65\163\x73\151\x6e\x67\x5f\x6f\142\152\145\143\x74\x5f\x65\166\x65\x6e\x74", array($this, "\150\x61\156\144\x6c\145\137\x6d\145\144\151\141\x5f\160\x72\157\143\145\163\x73\x69\x6e\x67\137\145\x76\145\156\x74"), 10, 1);
}
function handle_media_processing_event($Wq)
{
error_log("\x4d\117\x47\x44\123\131\x4e\x43\x3a\x3a\x50\x72\x6f\x63\x65\x73\x73\151\x6e\147\40\x6d\145\x64\151\141\40\x66\x6f\x72\x20\x70\x6f\163\x74\137\x69\x64\72\x20" . $Wq["\x70\157\163\x74\137\x69\144"]);
$this->google_media_handler->mo_sf_sync_handle_media_processing_object($Wq, true);
}
public function mo_sf_sync_plugin_init()
{
$Nf = new GoogleDriveDBUtils();
$Nf->mo_sf_sync_create_google_drive_handler_db();
$this->mo_sf_sync_audit_log();
}
public function mo_sf_sync_audit_log()
{
$wV = AuditDB::instance();
$wV->mo_sf_sync_create_audit_log_table();
}
function register_my_custom_menu_page()
{
add_menu_page("\115\x69\156\x69\x4f\x72\141\x6e\x67\x65\x20\x47\157\x6f\147\154\x65\x20\104\x72\x69\166\145" . __("\x43\x6f\x6e\146\151\x67\165\162\145\40\x47\x6f\x6f\147\x6c\x65\x20\104\162\151\166\x65\x20\103\162\x65\144\145\x6e\164\151\141\154\163", "\x6d\x69\x6e\151\x6f\162\x61\156\147\145\55\x67\x6f\157\147\x6c\x65\55\144\162\x69\166\x65\x2d\x61\160\151\55\141\144\x64\157\x6e"), "\x6d\x69\x6e\151\117\162\141\156\147\x65\x20\x47\x6f\x6f\x67\x6c\145\40\104\162\x69\166\145\40\101\x64\144\x6f\x6e", "\x61\144\x6d\151\x6e\x69\163\x74\162\141\x74\157\162", "\155\x6f\x2d\147\x6f\157\147\154\x65\55\144\162\x69\x76\x65\55\x61\x64\144\157\156", array($this, "\x6d\157\x5f\x73\x66\137\163\x79\x6e\143\x5f\147\x6f\x6f\x67\x6c\145\x5f\141\x64\144\x6f\x6e\x5f\160\141\x67\145"), plugin_dir_url(__FILE__) . "\x69\155\x61\x67\145\163\x2f\155\151\156\151\x6f\162\141\156\147\x65\x2e\x70\x6e\x67");
}
public function mo_google_drive_sync_handle_auth_code()
{
$Mg = GoogleAuthorizationHandler::instance();
$Mg->mo_sf_sync_handle_google_auth_code();
}
public function mo_google_drive_sync_scripts($rP)
{
if (!($rP !== "\x74\x6f\x70\x6c\145\166\x65\x6c\137\160\141\x67\145\x5f\155\157\x2d\x67\157\x6f\x67\x6c\145\x2d\x64\162\x69\x76\x65\x2d\x61\x64\144\x6f\x6e")) {
goto qn;
}
return;
qn:
wp_enqueue_script("\155\x6f\x5f\x73\x66\x5f\163\171\x6e\x63\137\x6a\163", plugins_url("\x2f\x48\x65\154\160\145\162\x2f\166\151\145\x77\163\x2f\x69\x6e\143\154\x75\144\x65\163\x2f\x6a\x73\x2f\x6d\157\x5f\147\x6f\157\x67\154\x65\137\144\x72\x69\166\145\137\163\143\162\151\160\164\x2e\x6d\151\x6e\x2e\152\163", __FILE__));
}
public function mo_google_drive_sync_styles($rP)
{
if (!($rP !== "\x74\x6f\160\154\x65\166\x65\154\x5f\x70\141\147\x65\x5f\x6d\157\x2d\x67\157\157\147\x6c\x65\55\144\162\151\x76\x65\55\141\144\144\x6f\x6e")) {
goto Y3;
}
return;
Y3:
$gP = plugins_url("\x2f\110\x65\x6c\x70\145\162\x2f\x76\151\145\167\163\x2f\x69\156\143\x6c\165\144\145\x73\x2f\143\163\x73\57\155\157\137\x67\x6f\x6f\147\154\145\137\x64\162\x69\166\x65\137\x73\x74\171\154\x65\x2e\155\151\156\56\143\163\x73", __FILE__);
wp_enqueue_style("\155\x6f\137\163\146\137\163\x79\x6e\143\137\143\163\x73", $gP);
}
public function mo_sf_sync_google_addon_page()
{
mo_google_drive_display_view();
}
public function mo_sf_sync_add_media_object_for_processing_handler($nM, $Bf = null)
{
$Cn = ini_get("\x6d\141\x78\137\145\170\x65\143\x75\x74\151\x6f\156\137\x74\151\x6d\145");
$Xq = ini_get("\x6d\145\155\x6f\x72\171\x5f\154\151\x6d\x69\164");
set_time_limit(0);
ini_set("\x6d\145\155\157\x72\x79\137\154\151\155\151\164", PluginConstants::GD_PROCESSING_M_LIMIT);
error_log("\115\117\107\104\x53\x59\x4e\103\x3a\x3a\115\x45\104\x49\101\40\120\122\117\x43\105\x53\x53\x49\116\x47\40\117\102\112\x45\103\x54\x20\75\76\x20" . print_r($nM, true));
if (!(!isset($nM["\151\x6d\x61\147\x65"]) && !isset($nM["\x76\151\144\145\x6f"]))) {
goto aj;
}
$this->auditdb->mo_sf_sync_update_recent_audit_log_record_for_records($nM["\x70\x6f\163\164\137\151\x64"], $nM["\x73\x61\154\145\163\x66\157\x72\x63\145\x5f\x69\144"]);
return;
aj:
if (isset($Bf) && "\x72\145\x61\x6c\x5f\164\x69\155\x65\137\x73\171\156\143" === $Bf) {
goto Tw;
}
$Nf = new GoogleDriveDBUtils();
$Sq = $Nf->mo_google_drive_sync_insert_record_in_db($nM);
return;
goto kM;
Tw:
$Wq = array();
$Wq["\x70\157\x73\x74\137\151\144"] = $nM["\x70\157\x73\164\137\151\x64"];
$Wq["\163\141\x6c\x65\x73\x66\157\x72\143\x65\x5f\151\x64"] = $nM["\163\x61\x6c\x65\163\x66\157\162\x63\x65\137\151\x64"];
$Wq["\x69\x6d\141\147\x65"] = isset($nM["\151\155\141\x67\x65"]) ? $nM["\x69\x6d\141\x67\145"] : '';
$Wq["\x76\151\144\145\157"] = isset($nM["\166\151\144\145\157"]) ? $nM["\x76\x69\x64\145\x6f"] : '';
$M4 = time() + 10;
wp_schedule_single_event($M4, "\x70\162\157\143\145\163\163\137\155\x65\x64\151\141\x5f\160\162\x6f\x63\145\163\163\151\x6e\x67\x5f\157\x62\152\x65\143\x74\x5f\145\166\145\156\164", array($Wq));
kM:
ini_set("\155\x65\155\157\162\171\137\x6c\151\155\151\x74", $Xq);
set_time_limit($Cn);
}
public function mo_google_drive_sync_save()
{
if (isset($_POST["\157\160\x74\151\157\x6e"])) {
goto ss;
}
return;
ss:
$bj = sanitize_text_field(wp_unslash($_POST["\x6f\x70\164\x69\x6f\156"]));
switch ($bj) {
case "\155\157\137\x67\x6f\x6f\147\154\145\137\144\162\x69\166\145\x5f\163\171\x6e\x63\137\x63\x6c\x69\145\156\x74\137\x63\x6f\x6e\x66\151\147\x5f\x6f\160\164\x69\157\x6e":
if (!(isset($_POST["\x6e\x6f\x6e\143\x65\x5f"]) && !wp_verify_nonce(sanitize_text_field(wp_unslash($_POST["\156\157\156\143\145\x5f"])), "\155\157\137\x67\157\x6f\x67\154\x65\137\144\x72\151\166\145\137\163\171\156\x63\x5f\143\154\x69\145\x6e\164\x5f\x63\157\156\146\x69\147\x5f\157\x70\164\x69\x6f\156"))) {
goto zN;
}
return;
zN:
$Wm = isset($_POST["\x63\x6c\151\x65\x6e\x74\x5f\151\x64"]) ? sanitize_text_field(wp_unslash($_POST["\x63\x6c\x69\x65\156\x74\x5f\x69\144"])) : "\165\163\145\x72";
$r7 = isset($_POST["\143\154\x69\145\x6e\x74\x5f\x73\145\143\162\x65\164"]) ? sanitize_text_field(wp_unslash($_POST["\x63\154\x69\x65\156\x74\x5f\x73\145\x63\162\145\x74"])) : '';
$mM = home_url();
$kD = array(PluginConstants::GOOGLE_API_CLIENT_ID => $Wm, PluginConstants::GOOGLE_API_CLIENT_SECRET => $r7, PluginConstants::GOOGLE_API_REDIRECT_URI => $mM);
update_option(PluginConstants::GOOGLE_API_CONFIG_OBJECT, $kD);
Utils::mo_sf_sync_show_success_message("\103\154\151\145\x6e\x74\40\103\x72\145\x64\x65\156\164\151\141\x6c\x73\x20\141\x72\x65\40\163\x61\166\145\144\56");
goto Fg;
case "\155\x6f\x5f\x73\x66\x5f\x73\171\x6e\x63\137\147\157\157\x67\154\145\137\144\x72\x69\x76\x65\137\x6f\156\x65\x5f\x74\x69\x6d\x65\x5f\x70\165\x6c\154":
$za = sanitize_text_field(wp_unslash($_POST["\147\x64\137\x73\x79\156\143\137\x6f\x70\145\x72\x61\164\x69\x6f\x6e"]));
$MZ = array();
$MZ["\157\160\145\x72\141\164\151\x6f\x6e"] = $za;
if ("\120\125\x4c\114" === $za) {
goto TA;
}
if ("\x41\102\x4f\x52\x54" === $za) {
goto dH;
}
if ("\x43\x4c\x45\x41\122" === $za) {
goto cU;
}
goto Mk;
TA:
error_log("\111\116\x53\x49\104\x45\x20\x50\x55\x4c\x4c");
$A7["\x64\141\x74\141"] = "\x53\171\156\143\x20\123\x74\141\162\164\145\144\40\x21";
update_option("\x6d\x6f\137\163\146\x5f\x73\x79\156\x63\x5f\x67\x64\137\x6f\x6e\145\x5f\164\x69\x6d\145\137\x70\165\x6c\x6c", $A7);
do_action("\155\x6f\137\163\x66\x5f\x73\171\156\143\137\x67\x64\x5f\157\156\145\137\164\151\155\x65\137\x70\x75\154\x6c");
goto Mk;
dH:
$A7["\x64\141\164\141"] = "\123\x79\x6e\x63\x20\x41\x62\x6f\162\164\145\x64\40\x21";
update_option("\155\x6f\137\x73\x66\x5f\163\171\x6e\x63\x5f\x67\x64\137\157\x6e\145\x5f\164\x69\155\x65\x5f\x70\165\x6c\x6c", $A7);
set_transient("\x6d\157\137\x73\146\x5f\x73\x79\156\143\x5f\x67\144\137\x63\x72\157\156\x5f\x64\151\x73\141\142\x6c\x65\144", true, 24 * 60 * 60);
goto Mk;
cU:
$Nf = new GoogleDriveDBUtils();
$Nf->mo_google_drive_sync_delete_records_from_db();
Mk:
goto Fg;
}
d3:
Fg:
}
public function mo_sf_sync_start_gd_media_processing()
{
error_log("\x4d\117\107\x44\123\131\116\x43\72\x3a\103\117\x4e\124\x52\x4f\114\x20\x49\x4e\x53\x49\x44\x45\x20\124\x48\105\x20\155\x6f\x5f\x73\146\137\163\x79\156\x63\137\163\x74\141\x72\164\137\x67\x64\137\x6d\x65\x64\151\141\137\x70\162\157\x63\x65\x73\x73\151\156\147");
if (!get_transient("\155\x6f\137\163\146\x5f\x73\x79\156\143\137\147\144\x5f\143\162\x6f\156\137\144\x69\x73\x61\x62\x6c\x65\144")) {
goto db;
}
delete_transient("\x6d\x6f\137\x73\146\x5f\163\171\x6e\x63\x5f\x67\x64\137\x63\162\157\156\x5f\x64\x69\163\141\x62\154\145\144");
db:
$this->mo_sf_sync_handle_gd_processing();
}
public function mo_sf_sync_handle_gd_processing()
{
$Nf = new GoogleDriveDBUtils();
$Sq = $Nf->mo_google_drive_sync_get_records_from_db();
if (empty($Sq)) {
goto EV;
}
$A7 = array();
$A7["\157\160\x65\x72\141\164\x69\x6f\156"] = "\111\116\x49\124\x49\x54\101\x54\x45";
$A7["\x64\x61\x74\141"] = "\123\171\156\x63\40\123\164\x61\162\x74\145\144\40\41";
update_option("\155\x6f\x5f\x73\146\137\x73\171\x6e\x63\x5f\x67\144\137\x6f\156\145\x5f\x74\151\155\145\x5f\160\165\154\154", $A7);
goto WP;
EV:
error_log("\115\117\x47\x44\123\131\116\x43\72\x3a\116\117\40\x4d\x4f\122\x45\x20\x52\105\x43\117\122\104\x53\40\x54\117\x20\x50\122\x4f\x43\x45\123\123");
$A7 = array();
$A7["\x6f\160\145\162\x61\x74\151\157\156"] = "\x43\117\x4d\x50\x4c\105\124\105";
$A7["\144\141\x74\x61"] = "\x53\x79\156\x63\40\103\157\x6d\160\154\x65\x74\x65\144\x20\41";
update_option("\155\x6f\137\x73\146\x5f\x73\171\156\x63\x5f\x67\144\x5f\157\156\x65\x5f\164\151\x6d\x65\x5f\x70\x75\154\x6c", $A7);
error_log("\x4d\x4f\107\104\123\x59\x4e\x43\72\x3a\155\x6f\137\x73\146\x5f\x73\171\156\143\137\x67\144\x5f\x6f\x6e\x65\137\164\x69\x6d\x65\x5f\x70\165\x6c\154\x20\x4f\x50\x54\111\117\x4e\x53\x20\75\x3e\x20" . print_r(get_option("\155\x6f\x5f\163\x66\137\x73\171\x6e\143\x5f\147\x64\x5f\x6f\x6e\x65\137\164\x69\155\x65\137\x70\165\154\154"), true));
return;
WP:
error_log("\115\x4f\x47\104\123\x59\116\x43\72\x3a\116\x55\x4d\102\x45\122\40\117\106\40\x52\105\103\x4f\122\104\x53\40\124\x4f\x20\x50\x52\117\x43\105\123\x53\40\x3d\x3e\x20" . count($Sq));
$Xq = ini_get("\x6d\145\155\x6f\x72\x79\x5f\x6c\x69\155\x69\164");
ini_set("\155\x65\x6d\157\162\x79\x5f\x6c\x69\x6d\151\164", PluginConstants::GD_PROCESSING_M_LIMIT);
foreach ($Sq as $t7) {
$t7 = (array) $t7;
$Wq = array();
$Wq["\160\157\163\x74\137\151\x64"] = $t7["\167\160\x5f\x70\x6f\163\164\x5f\x69\x64"];
$Wq["\x73\x61\154\x65\x73\146\157\x72\x63\145\137\151\144"] = $t7["\x73\x61\154\145\x73\146\157\x72\143\145\x5f\x69\144"];
$Wq["\x69\155\x61\147\x65"] = isset($t7["\160\150\x6f\164\157\137\146\157\x6c\x64\x65\162\137\x69\144"]) ? $t7["\160\x68\x6f\164\x6f\137\146\x6f\x6c\144\145\162\x5f\151\144"] : '';
$Wq["\166\151\x64\x65\x6f"] = isset($t7["\x76\x69\144\x65\x6f\137\x66\157\154\144\x65\x72\x5f\151\x64"]) ? $t7["\x76\151\144\145\157\137\x66\157\x6c\x64\x65\162\x5f\151\144"] : '';
$this->google_media_handler->mo_sf_sync_handle_media_processing_object($Wq);
$Nf->mo_google_drive_sync_delete_record_from_db($t7["\167\160\137\160\157\163\x74\137\x69\144"]);
tj:
}
RV:
if (get_transient("\155\157\x5f\x73\x66\x5f\x73\171\x6e\143\137\x67\144\137\143\162\157\x6e\x5f\144\151\163\x61\x62\x6c\145\x64")) {
goto Kf;
}
wp_schedule_single_event(time() + 1, "\155\157\x5f\163\146\x5f\x70\162\x6f\x63\145\x73\x73\137\x6e\x65\170\164\137\x62\141\x74\x63\150");
goto U5;
Kf:
error_log("\x4d\x4f\107\104\123\131\116\103\72\x3a\101\x42\117\122\124\40\124\x48\105\x20\107\x4f\x4f\107\114\x45\40\104\x52\111\x56\x45\40\103\x52\x4f\x4e");
$A7 = array();
$A7["\157\x70\x65\x72\141\x74\x69\x6f\x6e"] = "\x41\x42\117\x52\x54";
$A7["\144\x61\x74\x61"] = "\123\x79\x6e\x63\x20\x41\x62\x6f\162\164\145\x64\x20\x21";
update_option("\x6d\157\137\163\x66\137\x73\171\156\x63\137\x67\x64\137\157\x6e\145\137\164\151\x6d\145\x5f\160\x75\154\x6c", $A7);
ini_set("\x6d\x65\155\x6f\x72\171\x5f\154\x69\x6d\x69\164", $Xq);
return;
U5:
$A7 = array();
$A7["\x6f\160\x65\x72\141\x74\151\157\x6e"] = "\103\117\115\120\x4c\105\x54\x45";
$A7["\144\x61\x74\x61"] = "\x53\171\156\x63\x20\x43\x6f\x6d\160\154\x65\x74\x65\x64\40\41";
update_option("\155\157\x5f\163\146\137\x73\171\x6e\x63\137\x67\144\x5f\x6f\x6e\x65\x5f\x74\x69\x6d\x65\x5f\160\x75\154\x6c", $A7);
ini_set("\x6d\145\155\157\x72\171\137\x6c\151\x6d\x69\x74", $Xq);
}
public function mo_sf_abort_processing()
{
$M4 = wp_next_scheduled("\x6d\157\x5f\163\x66\x5f\160\x72\x6f\x63\145\x73\x73\x5f\156\x65\x78\164\137\142\x61\164\143\150");
if (!$M4) {
goto b6;
}
wp_unschedule_event($M4, "\155\x6f\x5f\x73\146\x5f\x70\162\157\143\x65\163\163\x5f\156\145\x78\x74\x5f\142\x61\x74\x63\x68");
do_action("\155\x6f\137\163\146\x5f\160\162\x6f\143\145\x73\x73\x69\x6e\x67\137\x61\142\x6f\x72\164\145\x64");
b6:
}
}
GoogleDriveSync::instance();
Function Calls
None |
Stats
MD5 | eadd118eea225c4bb1e3ed21ab3ce3cf |
Eval Count | 0 |
Decode Time | 72 ms |