PATH:
home
/
letacommog
/
laindinois
/
wp-content
/
plugins
/
wp-all-export2
/
actions
<?php use Wpae\Scheduling\Interval\ScheduleTime; use Wpae\Scheduling\Scheduling; /** * @throws Exception */ function pmxe_wp_ajax_save_scheduling() { if (!check_ajax_referer('wp_all_export_secure', 'security', false)) { exit(__('Security check', 'wp_all_export_plugin')); } if (!current_user_can(PMXE_Plugin::$capabilities)) { exit(__('Security check', 'wp_all_export_plugin')); } $elementId = $_POST['element_id']; $post = $_POST; foreach($post['scheduling_times'] as $schedulingTime) { if(!preg_match('/^(0?[1-9]|1[012])(:[0-5]\d)[APap][mM]$/', $schedulingTime) && $schedulingTime != '') { header('HTTP/1.1 400 Bad request', true, 400); die('Invalid times provided'); } } try{ $scheduling = Scheduling::create(); $scheduling->handleScheduling($elementId, $post); } catch (\Wpae\Scheduling\Exception\SchedulingHttpException $e) { header('HTTP/1.1 503 Service unavailable', true, 503); echo json_encode(array('success' => false)); die; } $export = new PMXE_Export_Record(); $export->getById($elementId); $export->set(array('options' => array_merge($export->options, $post))); $export->save(); echo json_encode(array('success' => true)); die; } /** * @return bool */ function convertStringToBoolean($string) { return ($string == 'true' || $string == 1 || $string === true) ? true : false; }
[+]
..
[-] admin_init.php
[edit]
[-] init.php
[edit]
[-] wp_ajax_wpae_filtering.php
[edit]
[-] wp_ajax_wpae_preview.php
[edit]
[-] wp_loaded.php
[edit]
[-] admin_menu.php
[edit]
[-] pmxe_before_export.php
[edit]
[-] wpmu_new_blog.php
[edit]
[-] wp_ajax_dismiss_warnings.php
[edit]
[-] wp_ajax_scheduling_dialog_content.php
[edit]
[-] wp_ajax_dismiss_export_warnings.php
[edit]
[-] admin_head.php
[edit]
[-] pmxe_after_export.php
[edit]
[-] admin_notices.php
[edit]
[-] wp_ajax_wpae_upgrade_notice.php
[edit]
[-] wp_ajax_redirect_after_addon_installed.php
[edit]
[-] wp_ajax_generate_zapier_api_key.php
[edit]
[-] pmxe_exported_post.php
[edit]
[-] wp_ajax_wpallexport.php
[edit]
[-] wp_ajax_save_scheduling.php
[edit]
[-] wp_ajax_wpae_available_rules.php
[edit]
[-] wp_ajax_wpae_filtering_count.php
[edit]