function dpProEventCalendar_getDaily() { $nonce = $_POST['postEventsNonce']; //if ( ! wp_verify_nonce( $nonce, 'ajax-get-events-nonce' ) ) // die ( 'Busted!'); if (!is_numeric($_POST['date'])) { die; } $timestamp = $_POST['date']; $currDate = date("Y-m-d", $timestamp); $calendar = $_POST['calendar']; $is_admin = $_POST['is_admin']; $category = $_POST['category']; $event_id = $_POST['event_id']; $author = $_POST['author']; if ($is_admin && strtolower($is_admin) !== "false") { $is_admin = true; } else { $is_admin = false; } require_once 'classes/base.class.php'; $dpProEventCalendar = new DpProEventCalendar($is_admin, $calendar, $timestamp, null, '', $category, $event_id, $author); echo "<!--" . date_i18n(get_option('date_format'), $timestamp) . ">!]-->"; die($dpProEventCalendar->dailyCalendarLayout()); }