PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-content
/
plugins
/
wp-all-export-pro
/
actions
<?php function pmxe_wp_ajax_save_functions(){ if ( ! check_ajax_referer( 'wp_all_export_secure', 'security', false )){ exit( json_encode(array('html' => esc_html__('Security check', 'wp_all_export_plugin'))) ); } if ( ! current_user_can( PMXE_Plugin::$capabilities ) ){ exit( json_encode(array('html' => esc_html__('Security check', 'wp_all_export_plugin'))) ); } $uploads = wp_upload_dir(); $functions = $uploads['basedir'] . DIRECTORY_SEPARATOR . WP_ALL_EXPORT_UPLOADS_BASE_DIRECTORY . DIRECTORY_SEPARATOR . 'functions.php'; $input = new PMXE_Input(); $post = $input->post('data', ''); $response = wp_remote_post('https://phpcodechecker.com/api', array( 'body' => array( 'code' => $post ) )); if (is_wp_error($response)) { $error_message = $response->get_error_message(); exit(json_encode(array('result' => false, 'msg' => $error_message))); die; } else { $body = json_decode(wp_remote_retrieve_body($response), true); if ($body['errors'] === 'TRUE') { exit(json_encode(array('result' => false, 'msg' => $body['syntax']['message']))); die; } elseif($body['errors'] === 'FALSE') { if (strpos($post, "<?php") === false || strpos($post, "?>") === false) { exit(json_encode(array('result' => false, 'msg' => __('PHP code must be wrapped in "<?php" and "?>"', 'wp_all_export_plugin')))); die; } else { file_put_contents($functions, $post); } } elseif(empty($body)){ file_put_contents($functions, $post); } } exit(json_encode(array('result' => true, 'msg' => __('File has been successfully updated.', 'wp_all_export_plugin')))); die; }
[-] pmxe_before_export.php
[edit]
[-] gform_pre_handle_confirmation.php
[edit]
[-] wp_ajax_wpae_generate_token.php
[edit]
[-] wp_ajax_save_functions.php
[edit]
[-] wp_ajax_dismiss_export_warnings.php
[edit]
[-] wp_ajax_get_xml_spec.php
[edit]
[-] pmxe_exported_post.php
[edit]
[-] wp_ajax_dismiss_warnings.php
[edit]
[-] admin_head.php
[edit]
[-] wp_loaded.php
[edit]
[-] wp_ajax_wpae_realtime_export_status.php
[edit]
[-] wp_ajax_wpae_preview.php
[edit]
[-] wp_ajax_send_feedback.php
[edit]
[-] wp_ajax_generate_zapier_api_key.php
[edit]
[-] pmxe_after_export.php
[edit]
[-] wp_ajax_dismiss_review_modal.php
[edit]
[-] wp_ajax_wpae_filtering_count.php
[edit]
[-] wpmu_new_blog.php
[edit]
[-] wp_insert_comment.php
[edit]
[-] wp_ajax_wpae_remove_token.php
[edit]
[-] user_register.php
[edit]
[-] wp_ajax_save_scheduling.php
[edit]
[+]
..
[-] admin_menu.php
[edit]
[-] admin_init.php
[edit]
[-] wp_ajax_wpae_filtering.php
[edit]
[-] init.php
[edit]
[-] wp_ajax_wpae_available_rules.php
[edit]
[-] woocommerce_order_status_completed.php
[edit]
[-] wp_ajax_scheduling_dialog_content.php
[edit]
[-] admin_notices.php
[edit]
[-] wp_ajax_wpallexport.php
[edit]