Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

public function mo_sps_load_hooks() { if (is_multisite()) { ..

Decoded Output download

<?      public function mo_sps_load_hooks() 
    { 
        if (is_multisite()) { 
            goto kd; 
        } 
        add_action("admin_menu", array($this, "mo_sps_admin_menu")); 
        goto mh; 
        kd: 
        add_action("network_admin_menu", array($this, "mo_sps_admin_menu")); 
        mh: 
        register_deactivation_hook(__FILE__, array($this, "mo_sps_deactivate")); 
        add_action("init", [mediaObserver::getObserver(), "mo_sps_media_observer"], 0); 
        add_action("admin_menu", [$this, "mo_sps_admin_menu"]); 
        add_action("admin_enqueue_scripts", [$this, "mo_sps_settings_style"]); 
        add_action("admin_enqueue_scripts", [$this, "mo_sps_settings_scripts"]); 
        add_action("admin_init", [adminController::getController(), "mo_sps_admin_controller"]); 
        add_action("init", [adminObserver::getObserver(), "mo_sps_admin_observer"]); 
        add_action("wp_ajax_mo_sps_sync_file", [adminObserver::getObserver(), "mo_sps_sync_file"]); 
        add_action("wp_ajax_mo_sps_get_url_content", [adminObserver::getObserver(), "mo_sps_get_url_content"]); 
        add_action("wp_ajax_nopriv_mo_sps_get_url_content", [adminObserver::getObserver(), "mo_sps_get_url_content"]); 
        add_action("wp_ajax_mo_sps_sync_specific_file", [adminObserver::getObserver(), "mo_sps_sync_specific_file"]); 
        add_shortcode("MO_SHAREPOINT_LIBRARY", [mediaObserver::getObserver(), "mo_sps_embed_shortcode_sharepoint_library"]); 
        add_shortcode("MO_SHAREPOINT_UPLOAD", [mediaObserver::getObserver(), "mo_sps_shortcode_upload_in_sharepoint_library"]); 
        add_action("wp_ajax_mo_doc_lib_upload", [mediaObserver::getObserver(), "mo_doc_lib_upload_api_handler"]); 
        add_action("wp_ajax_nopriv_mo_doc_lib_upload", [mediaObserver::getObserver(), "mo_doc_lib_upload_api_handler"]); 
        add_action("wp_ajax_mo_azure_sync_ajax_submit", array(mediaLibrarySync::getController(), "mo_sps_get_drives")); 
        add_action("wp_ajax_mo_sps_media_ajax_submit", array(mediaLibrarySync::getController(), "mo_sps_media_ajax_submit")); 
        add_shortcode("MO_SHAREPOINT_DISPLAY_FILE_LIST", [mediaObserver::getObserver(), "mo_sps_embed_shortcode_sharepoint_file_list"]); 
        add_shortcode("MO_SHAREPOINT_VIDEO", [mediaObserver::getObserver(), "mo_sps_embed_shortcode_sharepoint_video"]); 
        add_shortcode("MO_SHAREPOINT_NEWS", [mediaObserver::getObserver(), "mo_sps_embed_shortcode_sharepoint_news"]); 
        add_shortcode("MO_SHAREPOINT_EVENTS", [mediaObserver::getObserver(), "mo_sps_embed_shortcode_sharepoint_events"]); 
        add_shortcode("MO_SHAREPOINT_UPLOAD_DOCUMENT", [mediaObserver::getObserver(), "mo_sps_shortcode_Upload_wordpress_to_sharepoint_library"]); 
        register_activation_hook(__FILE__, array(dbWrapper::getSPSWrapper(), "mo_sps_create_media_table")); 
        add_action("wp_ajax_mo_doc_lib_embed", [mediaObserver::getObserver(), "mo_doc_lib_embed_api_handler"]); 
        add_action("wp_ajax_nopriv_mo_doc_lib_embed", [mediaObserver::getObserver(), "mo_doc_lib_embed_api_handler"]); 
        add_filter("wp_get_attachment_url", [$this, "mo_sps_get_attachment_url"], 1000, 2); 
        add_filter("wp_prepare_attachment_for_js", [$this, "mo_sps_get_image_for_attachment"], 100, 3); 
        add_filter("http_request_timeout", array($this, "mo_sps_bump_request_timeout")); 
        add_filter("cron_schedules", [SyncMOSPS::getObserver(), "mo_sps_cron_custom_schedule"]); 
        add_action("mo_sps_sync_doc_action", [SyncMOSPS::getObserver(), "mo_sps_sync_doc_action"], 10, 2); 
        add_action("mo_sps_folder_sync_action", [SyncMOSPS::getObserver(), "mo_sps_folder_sync_action"], 10, 1); 
        add_action("rest_api_init", array($this, "my_plugin_register_routes")); 
        add_filter("woocommerce_order_get_downloadable_items", array($this, "mo_sps_handle_woocommerce_downloadable_item")); 
        register_uninstall_hook(__FILE__, "mo_sps_uninstall"); 
    } ?>

Did this file decode correctly?

Original Code

    public function mo_sps_load_hooks()
    {
        if (is_multisite()) {
            goto kd;
        }
        add_action("\141\144\155\x69\156\137\x6d\145\x6e\x75", array($this, "\x6d\157\137\x73\x70\163\137\141\x64\155\x69\156\x5f\x6d\x65\156\165"));
        goto mh;
        kd:
        add_action("\156\145\164\167\157\x72\153\137\x61\x64\x6d\x69\x6e\137\x6d\145\156\x75", array($this, "\155\x6f\x5f\163\x70\163\137\x61\144\x6d\x69\156\137\155\145\x6e\x75"));
        mh:
        register_deactivation_hook(__FILE__, array($this, "\155\157\137\x73\160\x73\x5f\x64\x65\141\x63\x74\151\x76\x61\164\145"));
        add_action("\151\156\151\164", [mediaObserver::getObserver(), "\x6d\157\x5f\x73\160\x73\137\155\145\x64\151\141\x5f\x6f\x62\163\x65\162\x76\x65\162"], 0);
        add_action("\x61\144\x6d\151\156\137\155\145\156\165", [$this, "\x6d\x6f\x5f\163\160\x73\137\141\x64\x6d\x69\x6e\x5f\x6d\x65\x6e\165"]);
        add_action("\x61\x64\x6d\151\x6e\137\x65\156\161\165\145\165\x65\137\x73\x63\x72\x69\160\x74\x73", [$this, "\x6d\x6f\137\x73\x70\163\x5f\x73\145\164\164\x69\x6e\147\163\137\163\164\x79\154\145"]);
        add_action("\x61\144\x6d\x69\x6e\137\x65\156\x71\x75\145\165\145\x5f\163\143\162\151\160\x74\x73", [$this, "\155\157\137\x73\160\x73\137\163\145\164\164\151\x6e\x67\163\137\163\x63\x72\x69\160\164\163"]);
        add_action("\141\x64\x6d\151\x6e\137\151\156\x69\164", [adminController::getController(), "\x6d\x6f\x5f\163\x70\x73\137\141\144\155\x69\x6e\x5f\143\x6f\x6e\x74\162\157\x6c\x6c\x65\x72"]);
        add_action("\151\x6e\x69\x74", [adminObserver::getObserver(), "\x6d\157\137\x73\x70\163\x5f\x61\x64\155\x69\156\137\x6f\x62\163\x65\x72\166\x65\162"]);
        add_action("\x77\160\137\141\x6a\x61\x78\x5f\155\x6f\x5f\x73\160\163\137\163\171\x6e\143\x5f\x66\x69\154\145", [adminObserver::getObserver(), "\155\157\137\x73\x70\x73\137\x73\171\x6e\x63\137\146\x69\x6c\x65"]);
        add_action("\167\160\137\x61\x6a\141\x78\x5f\x6d\157\x5f\x73\x70\163\x5f\147\145\x74\x5f\165\x72\154\137\x63\x6f\156\164\145\x6e\164", [adminObserver::getObserver(), "\x6d\x6f\x5f\x73\x70\x73\x5f\x67\145\x74\137\165\162\x6c\x5f\x63\157\156\x74\x65\x6e\164"]);
        add_action("\167\160\137\141\152\141\x78\137\156\157\x70\x72\x69\166\137\155\157\x5f\163\160\163\137\147\x65\x74\137\165\162\154\137\143\x6f\x6e\x74\x65\156\164", [adminObserver::getObserver(), "\155\x6f\x5f\x73\160\x73\137\147\145\x74\137\165\x72\x6c\x5f\143\157\156\x74\145\156\x74"]);
        add_action("\x77\x70\x5f\x61\152\x61\x78\137\155\x6f\137\163\160\163\137\x73\x79\156\x63\137\x73\160\145\143\x69\x66\x69\x63\137\x66\151\x6c\x65", [adminObserver::getObserver(), "\x6d\157\137\163\x70\x73\x5f\163\x79\x6e\x63\x5f\163\160\x65\x63\x69\146\x69\x63\137\146\x69\x6c\145"]);
        add_shortcode("\x4d\x4f\137\123\x48\x41\x52\x45\x50\117\111\x4e\x54\x5f\114\x49\x42\122\x41\122\131", [mediaObserver::getObserver(), "\x6d\x6f\x5f\163\x70\163\x5f\145\x6d\142\145\144\x5f\x73\x68\x6f\x72\164\x63\x6f\x64\x65\137\163\x68\141\162\x65\160\157\x69\x6e\164\137\154\x69\x62\x72\x61\x72\x79"]);
        add_shortcode("\x4d\117\x5f\x53\110\101\122\x45\x50\117\111\x4e\x54\137\125\x50\114\x4f\101\104", [mediaObserver::getObserver(), "\155\x6f\x5f\x73\x70\163\x5f\163\x68\157\162\x74\143\x6f\x64\x65\137\x75\x70\x6c\157\141\144\x5f\x69\x6e\x5f\x73\150\141\162\145\160\157\x69\156\164\x5f\154\151\142\162\141\x72\171"]);
        add_action("\167\x70\x5f\141\152\141\x78\137\155\157\x5f\x64\157\143\137\154\151\142\x5f\x75\160\154\157\141\x64", [mediaObserver::getObserver(), "\155\157\137\x64\x6f\143\137\x6c\151\142\x5f\165\x70\x6c\157\x61\144\137\141\x70\151\x5f\x68\x61\x6e\144\154\145\162"]);
        add_action("\167\160\137\x61\152\x61\x78\137\x6e\x6f\x70\x72\151\x76\x5f\x6d\157\x5f\144\157\x63\x5f\154\x69\x62\137\x75\160\154\x6f\x61\144", [mediaObserver::getObserver(), "\x6d\157\x5f\x64\157\x63\137\x6c\151\142\137\x75\x70\x6c\x6f\141\x64\137\x61\160\x69\x5f\x68\x61\156\x64\x6c\x65\162"]);
        add_action("\x77\x70\137\141\152\141\x78\x5f\155\x6f\x5f\x61\172\x75\x72\145\137\163\x79\x6e\143\137\x61\152\141\170\x5f\163\x75\142\155\151\x74", array(mediaLibrarySync::getController(), "\x6d\x6f\137\163\x70\x73\137\x67\x65\164\137\x64\162\x69\x76\145\163"));
        add_action("\167\x70\137\x61\152\x61\170\137\155\157\x5f\163\160\x73\137\x6d\x65\x64\x69\141\137\141\x6a\x61\x78\x5f\x73\x75\142\155\151\164", array(mediaLibrarySync::getController(), "\155\x6f\137\x73\x70\x73\x5f\155\x65\144\x69\x61\137\x61\x6a\141\x78\x5f\163\x75\x62\x6d\151\164"));
        add_shortcode("\x4d\x4f\137\x53\x48\101\x52\x45\120\117\x49\x4e\124\x5f\104\111\123\120\x4c\x41\x59\137\106\x49\114\105\x5f\114\x49\123\124", [mediaObserver::getObserver(), "\155\x6f\x5f\163\160\x73\137\x65\x6d\x62\145\x64\x5f\x73\x68\x6f\162\x74\x63\157\144\x65\137\163\x68\x61\162\x65\160\x6f\151\156\164\137\146\151\x6c\145\x5f\x6c\x69\163\x74"]);
        add_shortcode("\115\x4f\x5f\123\x48\x41\x52\x45\x50\x4f\x49\116\124\x5f\x56\111\104\x45\x4f", [mediaObserver::getObserver(), "\x6d\157\x5f\x73\160\x73\137\x65\x6d\x62\x65\x64\x5f\x73\x68\157\162\164\143\x6f\x64\x65\x5f\x73\150\x61\x72\x65\160\157\151\156\164\x5f\166\151\x64\145\x6f"]);
        add_shortcode("\115\117\x5f\x53\110\x41\122\x45\x50\117\x49\x4e\124\x5f\x4e\x45\127\123", [mediaObserver::getObserver(), "\155\x6f\x5f\x73\x70\x73\x5f\145\155\142\x65\144\137\x73\150\x6f\x72\164\x63\157\144\145\137\x73\x68\x61\162\145\160\x6f\x69\156\164\137\x6e\x65\167\x73"]);
        add_shortcode("\115\117\x5f\123\x48\101\x52\x45\120\117\111\116\x54\x5f\x45\126\105\116\x54\x53", [mediaObserver::getObserver(), "\x6d\x6f\137\x73\x70\x73\x5f\x65\155\x62\145\x64\x5f\163\x68\157\x72\x74\x63\x6f\144\x65\137\x73\150\x61\x72\145\160\157\x69\156\x74\137\x65\x76\x65\156\x74\163"]);
        add_shortcode("\x4d\x4f\x5f\123\110\101\x52\x45\120\x4f\111\x4e\124\x5f\x55\x50\x4c\117\101\x44\x5f\104\117\103\125\115\105\x4e\124", [mediaObserver::getObserver(), "\x6d\157\137\163\x70\163\137\x73\150\x6f\162\164\x63\157\144\x65\x5f\x55\160\154\x6f\x61\144\x5f\167\x6f\162\144\160\x72\145\x73\163\x5f\164\x6f\x5f\163\x68\x61\x72\145\160\157\x69\156\x74\137\x6c\151\x62\x72\x61\162\x79"]);
        register_activation_hook(__FILE__, array(dbWrapper::getSPSWrapper(), "\x6d\157\137\163\x70\x73\137\x63\162\145\x61\x74\x65\x5f\155\145\144\x69\141\137\x74\141\142\x6c\145"));
        add_action("\167\x70\137\141\152\141\170\x5f\x6d\x6f\x5f\x64\x6f\143\x5f\154\x69\x62\x5f\145\155\x62\145\x64", [mediaObserver::getObserver(), "\x6d\157\137\x64\x6f\x63\x5f\154\151\142\x5f\x65\x6d\142\x65\x64\x5f\x61\160\151\x5f\x68\141\156\144\154\145\162"]);
        add_action("\x77\x70\137\x61\152\x61\170\x5f\156\x6f\x70\x72\151\x76\137\155\157\137\144\x6f\x63\137\154\x69\142\x5f\x65\155\x62\x65\x64", [mediaObserver::getObserver(), "\155\157\137\144\157\143\x5f\154\x69\142\x5f\x65\155\142\145\144\137\141\160\x69\x5f\150\x61\x6e\144\154\x65\162"]);
        add_filter("\x77\160\137\x67\x65\x74\x5f\141\x74\x74\141\143\x68\155\x65\x6e\x74\137\x75\162\x6c", [$this, "\x6d\157\137\163\160\x73\x5f\x67\145\164\x5f\141\164\164\141\143\150\x6d\x65\156\164\137\165\162\154"], 1000, 2);
        add_filter("\x77\160\137\x70\x72\145\x70\x61\162\145\x5f\x61\164\x74\x61\143\x68\155\145\x6e\x74\x5f\146\x6f\162\137\x6a\x73", [$this, "\155\x6f\137\x73\160\x73\x5f\147\x65\164\137\151\155\x61\147\145\x5f\146\x6f\x72\x5f\x61\x74\x74\141\143\x68\155\145\156\164"], 100, 3);
        add_filter("\x68\x74\x74\160\137\162\145\x71\x75\x65\x73\x74\x5f\x74\151\155\145\x6f\165\164", array($this, "\x6d\x6f\137\163\160\163\137\142\165\155\x70\x5f\x72\145\x71\x75\x65\163\x74\137\x74\x69\155\145\x6f\x75\x74"));
        add_filter("\143\x72\157\x6e\137\163\x63\x68\145\x64\165\154\145\x73", [SyncMOSPS::getObserver(), "\155\157\x5f\x73\x70\x73\x5f\143\x72\x6f\156\137\x63\x75\x73\x74\x6f\155\137\x73\x63\150\x65\x64\x75\154\x65"]);
        add_action("\x6d\x6f\x5f\163\160\x73\x5f\163\171\156\143\137\144\x6f\143\137\141\x63\x74\151\x6f\x6e", [SyncMOSPS::getObserver(), "\x6d\x6f\137\x73\x70\163\137\163\x79\156\x63\x5f\x64\x6f\x63\137\x61\143\164\151\157\x6e"], 10, 2);
        add_action("\155\x6f\x5f\x73\x70\163\137\146\x6f\154\144\x65\x72\x5f\x73\171\156\143\x5f\141\143\x74\151\x6f\x6e", [SyncMOSPS::getObserver(), "\x6d\x6f\x5f\x73\160\x73\x5f\x66\157\x6c\144\145\x72\137\x73\x79\x6e\143\x5f\141\x63\164\x69\157\156"], 10, 1);
        add_action("\x72\145\x73\x74\137\x61\160\151\137\x69\156\151\x74", array($this, "\155\x79\x5f\160\x6c\x75\147\x69\156\137\162\145\x67\x69\163\164\x65\x72\137\162\157\x75\x74\x65\163"));
        add_filter("\167\157\x6f\x63\x6f\x6d\155\145\162\x63\x65\x5f\x6f\162\x64\x65\162\x5f\147\145\x74\137\x64\x6f\x77\x6e\x6c\x6f\141\144\141\x62\x6c\x65\137\x69\164\145\155\163", array($this, "\155\x6f\137\163\160\163\x5f\x68\x61\x6e\x64\x6c\145\x5f\167\157\x6f\x63\x6f\x6d\x6d\145\162\143\x65\x5f\144\x6f\167\156\154\157\x61\x64\141\x62\x6c\145\137\x69\164\145\x6d"));
        register_uninstall_hook(__FILE__, "\155\157\x5f\x73\160\163\137\x75\x6e\151\x6e\x73\x74\141\154\x6c");
    }

Function Calls

None

Variables

None

Stats

MD5 08db393e4ee8106b03e71db69c85da07
Eval Count 0
Decode Time 45 ms