Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
goto VRYAx; oy8KA: function update_diavouleusi_status($diav_id) { $post = get_post($diav_..
Decoded Output download
<? goto VRYAx; oy8KA: function update_diavouleusi_status($diav_id) { $post = get_post($diav_id); $val = null; if ($post->post_status == "draft") { $val = "Draft"; } else { $curr_time = current_time("Y-m-d H:i:s"); $start_date = date("Y-m-d H:i:s", strtotime(get_field("start_date", $diav_id))); $end_date = date("Y-m-d H:i:s", strtotime(get_field("end_date", $diav_id))); if ($start_date > $curr_time) { $val = "Scheduled"; } else { if ($end_date > $curr_time) { $val = "Active"; } else { $results = get_field("multiresults", $diav_id); if ($results != null) { $val = "Completed"; } else { $val = "In processing"; } } } error_log("Currtime: " . $curr_time . " StartDate:" . $start_date . " strToTime: " . strtotime(get_field("start_date", $diav_id)) . " EndDate: " . $end_date . " Status: " . $val); } update_field("status_hidden", $val, $diav_id); return true; } goto GQldR; lMN2H: function set_diavouleusi_comment_status($diav_id, $status = "closed") { $diav = get_post($diav_id); set_post_comment_status($diav_id, $status); update_articles_comment_status($diav_id, $status); } goto Nouv2; v_sBd: function diavouleusi_excerpt($excerpt) { if ("diavouleusi" !== get_post_type()) { return $excerpt; } $post = get_post(); $extraExcerpt = "<div class="two_third tie-columns diav-content">"; $extraExcerpt .= "<span class="diav-author">" . get_diavouleusi_author($post->ID) . "</span>"; $extraExcerpt .= $excerpt; $extraExcerpt .= get_diavouleusi_themes($post->ID); $extraExcerpt .= get_diavouleusi_types($post->ID); $extraExcerpt .= "</div><div class="one_third tie-columns last diav-fields">" . get_diavouleusi_intro_fields($post->ID, 1) . "</div>"; return $extraExcerpt; } goto X7v4v; bD2Fo: function get_diavouleusi_types($diav_id) { $val = ''; $terms = get_the_terms($diav_id, "dlb_type"); if ($terms) { $val = "<div class="post-badges dlb_type">"; foreach ($terms as $term) { $val .= "<div class="post-badge">" . $term->name . "</div>"; } $val .= "</div>"; } return $val; } goto nNphe; z4Mlp: function get_diavouleusi_themes($diav_id) { $val = ''; $terms = get_the_terms($diav_id, "dlb_theme"); if ($terms) { $val = "<div class="post-badges">"; foreach ($terms as $term) { $val .= "<div class="post-badge">" . $term->name . "</div>"; } $val .= "</div>"; } return $val; } goto bD2Fo; US6aO: function gnstl_show_ownpost_comments($clauses) { if (is_admin()) { if (current_user_can("edit_others_posts")) { return $clauses; } else { $user_id = get_current_user_id(); global $wpdb; $clauses["join"] = ", " . $wpdb->base_prefix . "posts"; $clauses["where"] .= " AND " . $wpdb->base_prefix . "comments.comment_post_ID = " . $wpdb->base_prefix . "posts.ID" . " AND (" . $wpdb->base_prefix . "posts.post_author = " . $user_id . " OR " . $wpdb->base_prefix . "comments.user_id = " . $user_id . ")"; } } return $clauses; } goto l5bPI; Rgqrj: function update_all_diavouleuseis() { $timezone = new DateTimeZone("Europe/Athens"); error_log("Cron started at: " . wp_date("Y-m-d H:i:s", null, $timezone)); $args = array("post_type" => "diavouleusi", "orderby" => "post_date", "order" => "ASC", "post_status" => "publish"); $query = new WP_Query($args); $diavouleuseis = $query->posts; foreach ($diavouleuseis as $diav) { if (!has_correct_comment_status($diav->ID)) { $comment_status = calculate_comment_status($diav->ID); update_articles_comment_status($diav->ID, $comment_status); } } wp_reset_query(); error_log("Cron complete at: " . wp_date("Y-m-d H:i:s", null, $timezone)); } goto kYY1r; VRYAx: function say_hello() { $txt = "Welcome to the eConsultation platform! <em>" . date_i18n("Y-m-d H:i:s", null) . "</em>"; return $txt; } goto TFErE; GQldR: function get_diavouleusi_status($diav_id) { return get_field("status_hidden", $diav_id); } goto suj3a; Gp14y: function display_diavouleusi_articles($atts) { $attributes = shortcode_atts(array("id" => ''), $atts); print_diavouleusi_articles($attributes["id"]); } goto LuWBx; zmZdY: function calculate_diav_post_status($diav_id) { $currTime = current_time("Y-m-d H:i:s"); $startDate = strtotime(get_field("start_date", $diav_id)); $newPostDate = date("Y-m-d H:i:s", $startDate); $currPostStatus = get_post_status($diav_id); $newPostStatus = $currPostStatus; if ($currPostStatus == "publish") { if ($newPostDate > $currTime) { $newPostStatus = "future"; } } else { if ($currPostStatus == "future") { if ($newPostDate <= $currTime) { $newPostStatus = "publish"; } } } return $newPostStatus; } goto oy8KA; ZI4HF: function display_diavouleusi_types($atts) { $attributes = shortcode_atts(array("id" => ''), $atts); return get_diavouleusi_types($attributes["id"]); } goto xaucG; X7v4v: add_filter("the_excerpt", "diavouleusi_excerpt", 10, 1); goto xM0gL; g37CM: function create_diavouleusi_articles($diav_id, $post_date, $post_status, $comment_status) { $num_articles = get_field("num_articles", $diav_id); $tmpPost = get_post($diav_id); $article_args = array("post_title" => "\316\206\xcf\201\316\xb8\xcf\201\xce\xbf ", "post_type" => "article", "post_date" => $post_date, "post_status" => $post_status, "post_content" => '', "post_author" => $tmpPost->post_author, "comment_status" => $comment_status, "tags_input" => get_diavouleusi_tagname($diav_id)); $article_index = ''; for ($i = 1; $i <= $num_articles; $i++) { $article_index = sprintf("%02d", $i); $article_args["post_title"] = $article_index . " - \316\244\xce\257\xcf\x84\316\273\xce\277\317\x82 \xce\x86\317\201\316\270\xcf\201\xce\277\317\205"; $tmpArticleID = wp_insert_post($article_args); update_field("diavouleusi", $diav_id, $tmpArticleID); } } goto Vtam5; g6LeK: function update_article_link_field($field) { $post = get_post(); $field["message"] = "<a class="button" href="" . get_articles_link($post->ID) . "" target="_blank">\316\xa0\xcf\201\xce\277\316\xb2\xce\xbf\xce\273\xce\256 \317\200\xce\xb5\317\x81\xce\xb9\316\xb5\317\x87\xce\277\316\xbc\xce\xad\316\xbd\317\211\316\xbd</a>"; return $field; } goto rkZHE; us28k: function validate_end_date($valid, $value, $field, $input_name) { if ($valid !== true) { return $valid; } $startDate = $_POST["acf"]["field_60b724c57d1b9"]; $interval = date_diff(date_create($startDate), date_create($value)); if ($interval->format("%R%a") < 1) { return __("The end date should be at least <b>1 day</b> after the start date."); } return $valid; } goto FPNnq; MkiZF: function get_diav_articles_bytag($diav_id, $trashed = false) { $tag_name = get_diavouleusi_tagname($diav_id); $tag = get_term_by("name", $tag_name, "post_tag"); error_log("Line 274 tag " . $tag_name); if (!$tag) { return null; } $status = array("publish", "pending", "draft", "auto-draft", "future", "private", "inherit", "trash"); if ($trashed == true) { $status = "trashed"; } $args = array("post_type" => "article", "tag" => $tag_name, "orderby" => "post_title", "order" => "ASC", "post_status" => $status, "nopaging" => true); $query = new WP_Query($args); $posts = $query->posts; error_log("Returned posts: " . sizeof($posts)); foreach ($posts as $post) { error_log("Post ID:: " . $post->ID); } return $posts; } goto uFneL; UZiYd: function display_article_fields($atts) { $attributes = shortcode_atts(array("id" => ''), $atts); $diavouleusi = get_field("diavouleusi", $attributes["id"]); $link = get_post_permalink($diavouleusi); return "<div class="diavouleusi-actions"><a href="" . $link . "" class="button btn">\316\240\316\257\xcf\203\317\x89 \xcf\x83\xcf\204\316\xb7\xce\275 \316\224\316\xb9\xce\261\xce\xb2\316\277\xcf\x8d\xce\273\xce\265\317\x85\317\x83\xce\xb7</a></div>"; } goto lcmYP; eR9CG: add_shortcode("diavouleusi_themes", "display_diavouleusi_themes"); goto ZI4HF; kYY1r: function update_diavouleusi_starttime_event($diav_id) { error_log("SCHEDULED Task UpdateStartTime executed for " . $diav_id . " @ " . current_time("Y-m-d H:i:s")); if (has_started($diav_id)) { update_diavouleusi_status($diav_id); } else { error_log("Ignoring event"); } } goto JkIJv; FLCb6: add_action("admin_head", "genestial_css"); goto QHvnJ; NJ6Au: function gnstl_register_my_cpts() { $labels = array("name" => esc_html__("\316\224\316\271\316\xb1\316\xb2\xce\277\xcf\x85\316\273\xce\265\317\x8d\317\203\316\265\xce\271\xcf\202", "jannahchild"), "singular_name" => esc_html__("\316\x94\xce\xb9\316\261\316\262\xce\277\xcf\215\316\xbb\xce\xb5\317\x85\317\x83\xce\267", "jannahchild"), "menu_name" => esc_html__("\xce\x94\xce\xb9\316\261\xce\xb2\xce\xbf\317\205\xce\273\xce\xb5\xcf\x8d\317\x83\316\265\316\xb9\317\x82", "jannahchild"), "all_items" => esc_html__("\316\x8c\316\273\316\xb5\317\202 \xce\277\316\271 \316\224\316\271\xce\xb1\316\xb2\316\xbf\317\205\316\xbb\316\xb5\xcf\215\317\203\xce\xb5\316\xb9\xcf\x82", "jannahchild"), "add_new" => esc_html__("\xce\x9d\xce\255\xce\xb1 \316\x94\xce\xb9\316\xb1\316\xb2\xce\xbf\xcf\x8d\xce\xbb\xce\265\317\205\xcf\203\xce\267", "jannahchild"), "add_new_item" => esc_html__("\316\235\xce\255\xce\xb1 \316\x94\xce\xb9\316\xb1\316\xb2\xce\xbf\xcf\215\xce\xbb\xce\xb5\xcf\205\xcf\203\xce\xb7", "jannahchild"), "edit_item" => esc_html__("\xce\x95\xcf\200\316\265\316\276\xce\xb5\317\x81\316\xb3\xce\261\317\203\316\257\316\261 \xce\x94\xce\271\316\261\316\xb2\316\277\xcf\x8d\316\xbb\xce\265\xcf\205\317\x83\316\xb7\317\x82", "jannahchild"), "new_item" => esc_html__("\316\x9d\316\255\xce\xb1 \316\x94\xce\xb9\316\xb1\xce\262\316\xbf\xcf\215\316\273\316\265\xcf\x85\317\x83\316\267", "jannahchild"), "view_item" => esc_html__("\xce\xa0\xcf\x81\xce\xbf\316\xb2\xce\xbf\xce\273\316\256 \316\224\316\xb9\316\xb1\xce\xb2\316\xbf\317\215\xce\273\xce\265\317\205\xcf\x83\xce\267\317\x82", "jannahchild"), "view_items" => esc_html__("\316\xa0\xcf\x81\316\277\xce\xb2\xce\277\xce\xbb\xce\xae \316\x94\316\xb9\316\xb1\xce\262\316\xbf\xcf\205\316\xbb\316\265\xcf\x8d\xcf\x83\xce\265\xcf\211\316\275", "jannahchild"), "search_items" => esc_html__("\316\x91\xce\275\xce\xb1\xce\266\316\256\317\x84\316\xb7\317\203\xce\xb7 \316\224\xce\271\316\261\xce\262\316\277\xcf\215\316\273\316\265\317\205\xcf\203\xce\xb7\xcf\x82", "jannahchild"), "not_found" => esc_html__("\316\x94\316\265\316\xbd \316\262\xcf\201\316\xad\xce\270\316\xb7\xce\272\316\261\316\xbd \xce\xb1\xcf\x80\xce\xbf\317\204\316\xb5\316\xbb\xce\255\317\203\316\274\316\xb1\xcf\x84\316\xb1", "jannahchild"), "not_found_in_trash" => esc_html__("\316\224\xce\265\316\275 \xce\262\317\201\xce\255\xce\270\xce\267\xce\272\316\xb1\316\xbd \xce\261\317\x80\316\277\xcf\x84\316\265\xce\273\316\xad\317\203\316\274\316\261\317\x84\316\261 \xcf\203\xcf\x84\xce\277\316\275 \316\232\xce\254\316\xb4\316\xbf \xce\x91\317\200\316\277\xcf\x81\xcf\201\316\xb9\xce\274\316\254\xcf\x84\xcf\211\xce\275", "jannahchild"), "parent" => esc_html__("Parent Diavouleusi:", "jannahchild"), "featured_image" => esc_html__("\316\x95\316\xb9\xce\xba\317\214\xce\275\xce\261 \316\x95\316\276\317\x89\317\x86\xcf\215\xce\273\xce\xbb\xce\xbf\xcf\205", "jannahchild"), "set_featured_image" => esc_html__("\316\232\xce\xb1\316\270\xce\277\xcf\x81\316\xb9\xcf\203\316\xbc\317\214\317\202 \xce\225\316\271\316\272\xcf\214\xce\275\xce\261\317\202 \xce\225\316\xbe\xcf\211\xcf\x86\317\x8d\xce\273\316\xbb\xce\277\xcf\x85", "jannahchild"), "remove_featured_image" => esc_html__("\316\x91\xcf\206\316\261\316\257\317\201\xce\xb5\xcf\x83\xce\267 \xce\xb5\316\xb9\xce\xba\317\214\316\xbd\xce\xb1\xcf\x82 \xce\xb5\xce\276\xcf\x89\317\x86\xcf\215\316\273\xce\273\316\xbf\xcf\205", "jannahchild"), "use_featured_image" => esc_html__("\xce\xa7\317\201\316\256\317\203\316\xb7 \xcf\211\xcf\x82 \xce\xb5\xce\xb9\xce\272\317\214\316\xbd\316\261 \xce\265\xce\xbe\317\x89\xcf\206\317\x8d\xce\xbb\316\xbb\xce\xbf\xcf\x85", "jannahchild"), "archives" => esc_html__("\xce\221\317\x81\317\207\316\xb5\xce\257\316\277 \xce\x94\xce\xb9\xce\261\xce\xb2\xce\277\317\205\xce\273\316\xb5\317\215\317\x83\316\265\317\211\xce\275", "jannahchild"), "insert_into_item" => esc_html__("Insert into Diavouleusi", "jannahchild"), "uploaded_to_this_item" => esc_html__("Upload to this Diavouleusi", "jannahchild"), "filter_items_list" => esc_html__("Filter Diavouleuseis list", "jannahchild"), "items_list_navigation" => esc_html__("Diavouleuseis list navigation", "jannahchild"), "items_list" => esc_html__("\xce\x9b\316\257\xcf\x83\xcf\204\316\xb1 \316\224\316\271\316\261\316\xb2\xce\xbf\317\205\xce\273\316\265\317\x8d\xcf\203\316\xb5\xcf\211\316\275", "jannahchild"), "attributes" => esc_html__("Diavouleuseis attributes", "jannahchild"), "name_admin_bar" => esc_html__("\xce\224\316\271\xce\xb1\xce\xb2\316\277\317\x8d\xce\xbb\xce\265\317\x85\xcf\x83\316\xb7\xcf\202", "jannahchild"), "item_published" => esc_html__("\xce\227 \xce\xb4\xce\xb9\xce\xb1\316\262\xce\xbf\317\x8d\xce\xbb\xce\xb5\xcf\205\xcf\x83\xce\267 \xce\264\xce\xb7\xce\xbc\xce\xbf\xcf\203\xce\271\316\xb5\317\215\317\204\xce\xb7\316\272\xce\265", "jannahchild"), "item_published_privately" => esc_html__("\xce\x97 \xce\xb4\316\271\316\261\xce\xb2\xce\277\xcf\215\316\xbb\316\265\xcf\205\xcf\x83\316\267 \xce\264\xce\267\xce\xbc\xce\xbf\xcf\203\xce\271\xce\xb5\317\x8d\xcf\x84\316\xb7\316\272\xce\265 \316\274\316\xb5 \316\271\316\264\xce\xb9\xcf\x89\317\204\xce\271\xce\272\xce\xae \317\203\xce\256\xce\xbc\316\261\316\275\317\203\xce\xb7.", "jannahchild"), "item_reverted_to_draft" => esc_html__("\316\x97 \xce\xb4\316\271\316\261\316\262\xce\xbf\xcf\215\316\xbb\316\265\xcf\205\xcf\x83\xce\267 \xce\xb1\317\x80\316\277\316\xb8\316\267\xce\272\xce\xb5\xcf\x8d\xcf\204\316\267\316\xba\xce\265 \xcf\x83\xcf\x84\316\261 \317\x80\xcf\x81\317\x8c\xcf\x87\316\xb5\xce\xb9\xcf\x81\xce\261.", "jannahchild"), "item_scheduled" => esc_html__("\316\x97 \316\xb4\xce\xb9\316\xb1\xce\262\xce\xbf\xcf\215\316\273\316\xb5\xcf\x85\xcf\203\xce\xb7 \xcf\200\xcf\201\xce\277\316\263\xcf\x81\316\261\316\274\xce\xbc\xce\xb1\xcf\204\316\257\xcf\203\317\204\316\267\xce\xba\xce\xb5 \xce\263\xce\xb9\316\xb1 \xce\264\xce\267\xce\xbc\xce\277\xcf\203\316\257\xce\xb5\317\205\317\x83\316\267.", "jannahchild"), "item_updated" => esc_html__("\316\227 \316\264\xce\xb9\316\xb1\316\262\316\xbf\317\x8d\316\xbb\xce\265\xcf\x85\317\x83\316\xb7 \316\265\316\275\316\267\xce\xbc\xce\265\xcf\201\317\x8e\316\xb8\xce\xb7\316\272\316\xb5.", "jannahchild"), "parent_item_colon" => esc_html__("Parent Diavouleusi:", "jannahchild")); $args = array("label" => esc_html__("\xce\x94\316\271\xce\261\316\262\xce\xbf\xcf\x85\xce\273\xce\xb5\317\x8d\xcf\203\316\xb5\xce\xb9\317\202", "jannahchild"), "labels" => $labels, "description" => '', "public" => true, "publicly_queryable" => true, "show_ui" => true, "show_in_rest" => true, "rest_base" => "diavouleuseis", "rest_controller_class" => "WP_REST_Posts_Controller", "rest_namespace" => "wp/v2", "has_archive" => "diavouleuseis", "show_in_menu" => true, "show_in_nav_menus" => true, "delete_with_user" => false, "exclude_from_search" => false, "capability_type" => "post", "map_meta_cap" => true, "hierarchical" => false, "can_export" => false, "rewrite" => array("slug" => "diavouleusi", "with_front" => false), "query_var" => true, "menu_icon" => "dashicons-format-chat", "supports" => array("title", "editor", "excerpt", "custom-fields", "comments", "revisions", "author", "post-formats"), "taxonomies" => array("post_tag", "dlb_theme"), "show_in_graphql" => false); register_post_type("diavouleusi", $args); $labels = array("name" => esc_html__("\316\240\316\xb5\317\x81\xce\271\xce\xb5\xcf\x87\xcf\214\316\274\316\xb5\316\275\xce\261 \316\x94\xce\271\316\261\xce\262\xce\xbf\xcf\205\xce\273\316\265\317\215\317\x83\316\xb5\xcf\211\xce\xbd", "jannahchild"), "singular_name" => esc_html__("\316\240\316\265\317\201\316\xb9\xce\265\317\x87\317\214\xce\274\xce\xb5\316\xbd\xce\xbf \xce\224\316\xb9\xce\261\316\262\xce\xbf\317\x8d\316\xbb\316\xb5\xcf\205\317\x83\316\xb7\317\202", "jannahchild"), "menu_name" => esc_html__("\xce\240\xce\xb5\xcf\201\316\271\316\xb5\317\x87\xcf\214\xce\274\316\xb5\316\xbd\xce\xb1 \316\x94\316\xb9\xce\261\316\xb2\316\xbf\xcf\x85\316\273\xce\265\317\215\317\203\xce\xb5\xcf\211\xce\xbd", "jannahchild"), "all_items" => esc_html__("\316\x8c\xce\273\xce\261 \317\x84\316\xb1 \xce\xa0\316\265\xcf\x81\316\xb9\xce\xb5\317\x87\xcf\214\xce\xbc\316\xb5\xce\275\xce\261", "jannahchild"), "add_new" => esc_html__("\xce\x9d\xce\xad\316\277 \316\240\316\xb5\xcf\x81\xce\271\316\xb5\xcf\x87\xcf\x8c\xce\xbc\xce\xb5\316\xbd\xce\xbf \xce\x94\xce\271\xce\xb1\xce\262\xce\xbf\317\x8d\xce\273\316\265\xcf\205\xcf\x83\316\267\317\202", "jannahchild"), "add_new_item" => esc_html__("\316\235\xce\xad\xce\xbf \xce\xa0\316\xb5\317\201\316\xb9\316\xb5\xcf\207\317\214\316\xbc\316\xb5\xce\xbd\316\xbf \xce\224\316\271\xce\261\316\xb2\xce\xbf\xcf\215\316\xbb\316\265\317\x85\xcf\203\xce\xb7\317\202", "jannahchild"), "edit_item" => esc_html__("\316\225\317\x80\316\xb5\316\276\xce\xb5\317\x81\xce\263\xce\xb1\xcf\203\xce\257\xce\261 \xce\240\316\265\xcf\201\xce\271\xce\265\xcf\x87\316\xbf\316\274\xce\255\316\275\316\277\317\205", "jannahchild"), "new_item" => esc_html__("\316\x9d\316\255\xce\xbf \xce\240\xce\xb5\xcf\x81\316\271\316\xb5\xcf\x87\317\x8c\xce\xbc\316\265\xce\275\316\xbf \xce\224\xce\271\xce\261\xce\262\316\277\xcf\x8d\316\273\316\xb5\xcf\x85\317\203\316\xb7\317\x82", "jannahchild"), "view_item" => esc_html__("\316\xa0\317\x81\xce\xbf\316\262\316\277\316\273\316\xae \316\xa0\316\xb5\317\201\xce\271\xce\265\xcf\207\xce\277\xce\274\xce\255\316\275\316\xbf\xcf\x85 \316\224\316\271\316\261\xce\xb2\xce\277\317\215\316\273\316\xb5\317\205\317\203\316\xb7\xcf\x82", "jannahchild"), "view_items" => esc_html__("\316\240\317\201\316\277\316\262\316\277\xce\xbb\xce\xae \316\240\316\xb5\xcf\201\xce\271\316\xb5\xcf\x87\316\277\316\274\xce\255\316\275\317\x89\xce\275 \xce\x94\xce\271\xce\261\xce\xb2\316\277\xcf\215\316\xbb\xce\265\xcf\x85\xcf\203\316\267\317\202", "jannahchild"), "search_items" => esc_html__("\xce\221\xce\275\316\261\xce\xb6\316\xae\xcf\204\xce\267\xcf\x83\316\267 \316\240\316\xb5\xcf\201\316\271\xce\265\317\x87\xce\xbf\xce\xbc\xce\255\xce\xbd\xce\xbf\xcf\205 \xce\x94\xce\271\xce\261\316\xb2\316\277\317\x8d\xce\xbb\316\xb5\xcf\205\317\203\xce\267\xcf\202", "jannahchild"), "not_found" => esc_html__("\xce\x94\316\xb5\xce\xbd \xce\xb2\317\x81\316\255\xce\xb8\xce\267\xce\xba\316\xb1\316\275 \316\xb1\317\x80\xce\xbf\317\x84\316\xb5\316\273\316\255\xcf\x83\xce\xbc\316\xb1\xcf\204\xce\261", "jannahchild"), "not_found_in_trash" => esc_html__("\316\224\316\xb5\316\275 \xce\262\317\x81\xce\255\xce\270\316\xb7\316\272\xce\261\xce\xbd \xce\xb1\317\x80\xce\xbf\xcf\204\xce\265\316\xbb\xce\xad\317\203\xce\xbc\xce\261\xcf\204\xce\xb1 \xcf\203\xcf\x84\xce\xbf\xce\xbd \316\232\316\254\xce\xb4\316\277 \316\221\317\x80\xce\277\317\201\xcf\201\xce\xb9\316\274\xce\254\xcf\x84\317\x89\316\275", "jannahchild"), "parent" => esc_html__("Parent Article:", "jannahchild"), "featured_image" => esc_html__("Featured image for this Article", "jannahchild"), "set_featured_image" => esc_html__("Set featured image for this Article", "jannahchild"), "remove_featured_image" => esc_html__("Remove featured image for this Article", "jannahchild"), "use_featured_image" => esc_html__("Use as featured image for this Article", "jannahchild"), "archives" => esc_html__("Article archives", "jannahchild"), "insert_into_item" => esc_html__("Insert into Article", "jannahchild"), "uploaded_to_this_item" => esc_html__("Upload to this Article", "jannahchild"), "filter_items_list" => esc_html__("Filter Articles list", "jannahchild"), "items_list_navigation" => esc_html__("Articles list navigation", "jannahchild"), "items_list" => esc_html__("Articles list", "jannahchild"), "attributes" => esc_html__("Articles attributes", "jannahchild"), "name_admin_bar" => esc_html__("\316\x86\317\201\xce\270\317\201\xce\xbf\317\x85 \316\224\xce\271\316\xb1\xce\xb2\xce\xbf\xcf\215\316\xbb\316\xb5\xcf\205\xcf\x83\316\xb7\317\x82", "jannahchild"), "item_published" => esc_html__("Article published", "jannahchild"), "item_published_privately" => esc_html__("Article published privately.", "jannahchild"), "item_reverted_to_draft" => esc_html__("Article reverted to draft.", "jannahchild"), "item_scheduled" => esc_html__("Article scheduled", "jannahchild"), "item_updated" => esc_html__("Article updated.", "jannahchild"), "parent_item_colon" => esc_html__("Parent Article:", "jannahchild")); $args = array("label" => esc_html__("\xce\240\316\xb5\xcf\201\316\271\316\xb5\xcf\207\xcf\x8c\xce\274\316\xb5\xce\xbd\316\261 \xce\224\316\271\316\261\316\262\xce\xbf\317\205\316\273\316\xb5\317\x8d\317\x83\316\265\xcf\x89\xce\xbd", "jannahchild"), "labels" => $labels, "description" => '', "public" => true, "publicly_queryable" => true, "show_ui" => true, "show_in_rest" => true, "rest_base" => '', "rest_controller_class" => "WP_REST_Posts_Controller", "rest_namespace" => "wp/v2", "has_archive" => false, "show_in_menu" => true, "show_in_nav_menus" => true, "delete_with_user" => false, "exclude_from_search" => false, "capability_type" => "post", "map_meta_cap" => true, "hierarchical" => true, "can_export" => false, "rewrite" => array("slug" => "article", "with_front" => true), "query_var" => true, "menu_icon" => "dashicons-media-document", "supports" => array("title", "editor", "custom-fields", "comments", "revisions", "author"), "taxonomies" => array("post_tag"), "show_in_graphql" => false); register_post_type("article", $args); } goto PdbWc; lcmYP: add_shortcode("article_fields", "display_article_fields"); goto vr5ff; XeIbK: function display_diavouleusi_results($atts) { $attributes = shortcode_atts(array("id" => ''), $atts); if (get_diavouleusi_status($attributes["id"]) != "Completed") { return; } $resources = get_field_object("multiresults", $attributes["id"]); if ($resources) { echo "<div class="diavouleusi-results">"; echo "<h3 class="diav-heading">" . $resources["label"] . "</h3>"; if (have_rows($resources["name"])) { echo "<ul>"; while (have_rows($resources["name"])) { the_row(); $title = get_sub_field("title"); $file = get_sub_field("file"); $img = wp_get_attachment_image(get_sub_field("ID")); $filetype = wp_check_filetype($file); echo "<li><a href="" . $file . "" target="_blank" class="" . $filetype["ext"] . "">" . get_filetype_favicon($filetype["ext"]) . " " . $title . "</a></li>"; } echo "</ul>"; } echo "</div>"; } } goto HjeJD; Vtam5: function update_articles_comment_status($diav_id, $comment_status) { $posts = get_diav_articles_bytag($diav_id); if (!$posts) { return; } if (!is_valid_comment_status($comment_status)) { error_log("Invalid comment status: " . $comment_status . ". Returning..."); return; } $update_args = array("ID" => 0, "post_date" => '', "post_status" => '', "post_type" => "article", "post_title" => '', "post_name" => '', "post_modified" => '', "post_content" => '', "post_content_filtered" => '', "post_excerpt" => '', "comment_status" => $comment_status, "ping_status" => '', "post_password" => '', "to_ping" => '', "pinged" => '', "post_parent" => '', "menu_order" => '', "post_mime_type" => '', "guid" => ''); foreach ($posts as $post) { $tmpPost = null; $tmpPost = get_post($post->ID); $update_args["ID"] = $post->ID; $update_args["post_date"] = $tmpPost->post_date; $update_args["post_status"] = $tmpPost->post_status; $update_args["post_title"] = $tmpPost->post_title; $update_args["post_name"] = $tmpPost->post_name; $update_args["post_modified"] = $tmpPost->post_modified; $update_args["post_content"] = $tmpPost->post_content; $update_args["post_content_filtered"] = $tmpPost->post_content_filtered; $update_args["post_excerpt"] = $tmpPost->post_excerpt; $update_args["ping_status"] = $tmpPost->ping_status; $update_args["post_password"] = $tmpPost->post_password; $update_args["to_ping"] = $tmpPost->to_ping; $update_args["pinged"] = $tmpPost->pinged; $update_args["post_parent"] = $tmpPost->post_parent; $update_args["menu_order"] = $tmpPost->menu_order; $update_args["post_mime_type"] = $tmpPost->post_mime_type; $update_args["guid"] = $tmpPost->guid; $tmp = wp_insert_post($update_args); } } goto YCkWN; tCYtg: function display_articles_related($atts) { $attributes = shortcode_atts(array("id" => ''), $atts); $diavouleusi = get_field("diavouleusi", $attributes["id"]); print_diavouleusi_articles($diavouleusi, false); } goto ckDZM; Z2Lp0: function update_diavouleusi($post_id) { global $post_type; if ("diavouleusi" !== $post_type) { return; } error_log("In update_diavouleusi"); if (defined("REST_REQUEST") && REST_REQUEST) { return; } if (wp_is_post_revision($post_id) || wp_is_post_autosave($post_id)) { return; } $tag_name = get_diavouleusi_tagname($post_id); $tag_exists = term_exists($tag_name, "post_tag"); $tag_changed = true; if (!$tag_exists) { $tmp = wp_insert_term($tag_name, "post_tag"); if ($tmp) { error_log("TAG CREATED: " . $tag_name . " POST id: " . $post_id); } } else { $posttags = get_the_tags($post_id); if ($posttags) { foreach ($posttags as $tag) { error_log("Tag: " . $tag->name); if ($tag->name == $tag_name) { $tag_changed = false; break; } } } } error_log("TAG CHANGE: " . $tag_changed); $currPostDate = get_the_date("Y-m-d H:i:s", $post_id); $startDate = strtotime(get_field("start_date", $post_id)); $newPostDate = date("Y-m-d H:i:s", $startDate); $start_date_changed = $newPostDate != $currPostDate; $currPostStatus = get_post_status($post_id); $newPostStatus = calculate_diav_post_status($post_id); $status_changed = $newPostStatus != $currPostStatus; $tmpPost = get_post($post_id); $currCommentStatus = $tmpPost->comment_status; $newCommentStatus = calculate_comment_status($post_id); $comments_changed = $newCommentStatus != $currCommentStatus; if ($comments_changed) { error_log("Comment status changed to " . $newCommentStatus); } if ($start_date_changed || $status_changed || $comments_changed || $tag_changed) { $update_args = array("ID" => $post_id, "post_date" => $newPostDate, "post_date_gmt" => gmdate("Y-m-d H:i:s", $startDate), "comment_status" => $newCommentStatus, "post_status" => $newPostStatus, "tags_input" => $tag_name); remove_action("acf/save_post", "build_diavouleusi"); wp_update_post($update_args, false, true); add_action("acf/save_post", "build_diavouleusi"); } update_diavouleusi_status($post_id); $articlesUpdated = update_diav_articles($post_id, $newPostDate, $newPostStatus, $newCommentStatus); if ($articlesUpdated == 0) { create_diavouleusi_articles($post_id, $newPostDate, $newPostStatus, $newCommentStatus); } } goto Jvdum; QHvnJ: function plugin_dependencies_activate() { if (!is_plugin_active("advanced-custom-fields/acf.php") and current_user_can("activate_plugins")) { wp_die("Sorry, but this plugin requires the plugins "Custom Post Type UI" and "Advanced Custom Fields" to be installed and active. <br><a href="" . admin_url("plugins.php") . "">« Return to Plugins</a>"); } } goto ZpOt9; YCYlT: add_action("schedule_diavouleusi_end", "update_diavouleusi_endtime_event", 10, 3); goto NJ6Au; uOs8r: function get_diavouleusi_comment_count($diav_id) { $total = 0; $total = get_comments_number($diav_id); $articles = get_diav_articles_bytag($diav_id); foreach ($articles as $article) { $total = $total + get_comments_number($article->ID); } return $total; } goto uA183; ESXwZ: function filter_own_diavouleuseis($args, $field, $post_id) { $user_id = get_current_user_id(); if (current_user_can("edit_others_posts")) { return $args; } $args = array("author" => $user_id, "post_type" => "diavouleusi"); return $args; } goto xQzbi; HjeJD: add_shortcode("diavouleusi_results", "display_diavouleusi_results"); goto UZiYd; qz2s1: function generate_comments_xls($diav_id) { if (!$diav_id) { return null; } $comments = get_diavouleusi_comments($diav_id); if (!$comments) { return -1; } $data = array(array("CommentID", "Post", "Author", "Date", "Content")); foreach ($comments as $comment) { if ($comment->comment_approved) { $tmpPost = get_post($comment->comment_post_ID); array_push($data, array($comment->comment_ID, $tmpPost->post_title, $comment->comment_author, $comment->comment_date, $comment->comment_content)); } } $path = wp_upload_dir(); $filename = "diav" . $diav_id . "_comments.xls"; $f = fopen($path["path"] . "/" . $filename, "w"); if ($f === false) { die("Error opening the file " . $filename); } fputs($f, header("Content-Disposition: attachment; filename="{$file_name}"")); fputs($f, header("Content-Type: application/vnd.ms-excel")); $column_names = false; foreach ($data as $row) { if (!$column_names) { fputs($f, implode(" ", array_keys($row)) . "\xa"); $column_names = true; } array_walk($row, "filter_xls_data"); fputs($f, implode(" ", array_values($row)) . "
"); } fclose($f); return $path["url"] . "/" . $filename; } goto kOINK; BPvyy: add_filter("acf/update_value/name=start_date", "update_start_date", 10, 3); goto LzQsZ; DVHTb: function print_diavouleusi_articles($diav_id, $with_comments = true) { $posts = get_diav_articles_bytag($diav_id); if ($posts != null) { echo "<h3 class="diav-heading">\xce\240\xce\xb5\xcf\201\316\xb9\xce\xb5\317\207\317\214\xce\xbc\xce\265\xce\275\xce\261</h3>"; echo "<table>"; foreach ($posts as $post) { echo "<tr><td><a href="" . get_permalink($post) . "">" . $post->post_title . "</a></td>"; if ($with_comments) { echo "<td><i aria-hidden="true" class="fas fa-comments"></i> " . $post->comment_count; if ($post->comment_count == 1) { echo " \xcf\203\xcf\x87\xcf\x8c\316\xbb\316\xb9\316\xbf</td>"; } else { echo " \xcf\x83\317\207\xcf\214\xce\xbb\xce\271\xce\261</td>"; } echo "</tr>"; } } echo "</table>"; } else { echo "No posts"; } } goto g37CM; iKUR3: function register_hourly_update_diavouleuseis_event() { if (!wp_next_scheduled("update_diavouleuseis6")) { wp_schedule_event(time(), "hourly", "update_diavouleuseis6"); } } goto Rgqrj; ESPZk: function get_articles_link($diavouleusi_id) { $tagname = get_diavouleusi_tagname($diavouleusi_id); $link = get_admin_url() . "/edit.php?post_type=article&tag=" . $tagname . "&orderby=title&order=asc"; return $link; } goto EK_p8; J228e: function generate_comments_csv($diav_id) { if (!$diav_id) { return null; } $comments = get_diavouleusi_comments($diav_id); if (!$comments) { return -1; } $data = array(array("CommentID", "Post", "Author", "Date", "Content")); foreach ($comments as $comment) { if ($comment->comment_approved) { $tmpPost = get_post($comment->comment_post_ID); array_push($data, array($comment->comment_ID, $tmpPost->post_title, $comment->comment_author, $comment->comment_date, $comment->comment_content)); } } $path = wp_upload_dir(); $filename = "diav" . $diav_id . "_comments.csv"; $f = fopen($path["path"] . "/" . $filename, "w"); if ($f === false) { die("Error opening the file " . $filename); } fputs($f, "\xef\xbb\277"); foreach ($data as $row) { fputcsv($f, $row); } fclose($f); return $path["url"] . "/" . $filename; } goto qz2s1; TFErE: function gnstl_deliberate() { $chosen = say_hello(); $lang = ''; if ("en_" !== substr(get_user_locale(), 0, 3)) { $lang = " lang="en""; } printf("<p id="genestial"><span class="screen-reader-text">%s </span><span dir="ltr"%s>%s</span></p>", __("Genestial:", "gnstl-deliberate"), $lang, $chosen); } goto eH5up; LfuF0: add_action("wp_trash_post", "trash_diavouleusi_articles"); goto Lu60v; FPNnq: add_filter("acf/validate_value/name=end_date", "validate_end_date", 10, 4); goto ghhd5; VPhMM: add_filter("acf/validate_value/name=num_articles", "validate_num_articles", 10, 4); goto g6LeK; suj3a: function get_diavouleusi_author($diav_id) { $author_id = get_post_field("post_author", $diav_id); return get_the_author_meta("display_name", $author_id); } goto LCHm5; LuWBx: add_shortcode("diavouleusi_articles", "display_diavouleusi_articles"); goto pPM4h; f3oJG: function set_post_comment_status($post_id, $status = "open") { global $wpdb; $wpdb->update($wpdb->prefix . "posts", array("comment_status" => $status), array("ID" => $post_id)); } goto MkiZF; FusFu: function get_filetype_favicon($ext) { if ($ext == "pdf") { return "<i class="fas fa-file-pdf"></i>"; } else { if ($ext == "doc" || $ext == "docx") { return "<i class="fas fa-file-word"></i>"; } else { if ($ext == "xls" || $ext == "xlsx") { return "<i class="fas fa-file-excel"></i>"; } } } } goto z4Mlp; EK_p8: function get_diavouleusi_tagname($post_id) { return "diav-" . $post_id; } goto FusFu; qf2p2: function has_ended($diav_id) { $curr_time = current_time("Y-m-d H:i:s"); $end_date = date("Y-m-d H:i:s", strtotime(get_field("end_date", $diav_id))); if ($end_date <= $curr_time) { return true; } return false; } goto X9xig; nNphe: function calculate_comment_status($diav_id) { $comment_status = "closed"; $diav_status = get_diavouleusi_status($diav_id); if ($diav_status == "Active") { $comment_status = "open"; } return $comment_status; } goto uOs8r; j6uLm: function display_article_diav($atts) { $attributes = shortcode_atts(array("id" => ''), $atts); $diavouleusi = get_field("diavouleusi", $attributes["id"]); $title = get_the_title($diavouleusi); return "<div class="diav-title-inarticle">" . $title . "</div>"; } goto rTFJW; Jvdum: add_action("acf/save_post", "update_diavouleusi"); goto JFiCQ; YgADs: function update_newstatus_field($field) { $post = get_post(); $field["message"] = get_diavouleusi_status($post->ID); return $field; } goto YZtmr; uA183: function is_valid_comment_status($status) { if ($status == "closed" || status == "open") { return true; } return false; } goto zmZdY; uFneL: function get_diavouleusi_comments($diav_id) { $comments_all = get_comments(array("post_id" => $diav_id)); $articles = get_diav_articles_bytag($diav_id); foreach ($articles as $article) { $tmp_comments = null; $tmp_comments = get_comments(array("post_id" => $article->ID)); if ($tmp_comments) { foreach ($tmp_comments as $comment) { array_push($comments_all, $comment); } } } return $comments_all; } goto J228e; JkIJv: add_action("schedule_diavouleusi_start", "update_diavouleusi_starttime_event", 10, 3); goto z0j_6; kOINK: function filter_xls_data(&$str) { $str = preg_replace("/ /", "\t", $str); $str = preg_replace("/
?\xa/", "\n", $str); if (strstr($str, """)) { $str = """ . str_replace(""", """", $str) . """; } } goto DVHTb; vr5ff: function display_diavouleusi_themes($atts) { $attributes = shortcode_atts(array("id" => ''), $atts); return get_diavouleusi_themes($attributes["id"]); } goto eR9CG; RuNcy: function gnstl_register_my_taxes() { $labels = array("name" => esc_html__("\316\230\316\265\xce\274\316\261\xcf\x84\316\xb9\xce\xba\xce\255\xcf\202 \xce\x95\xce\xbd\317\x8c\317\204\xce\xb7\xcf\x84\xce\xb5\317\x82", "jannahchild"), "singular_name" => esc_html__("\xce\x98\xce\xb5\xce\xbc\316\261\xcf\204\xce\xb9\xce\272\316\256 \xce\225\316\275\317\214\xcf\x84\316\267\317\x84\xce\xb1", "jannahchild")); $args = array("label" => esc_html__("\xce\x98\316\xb5\xce\xbc\xce\261\317\x84\xce\xb9\316\272\xce\255\317\x82 \xce\225\316\275\317\214\317\204\316\267\xcf\x84\316\xb5\xcf\202", "jannahchild"), "labels" => $labels, "public" => true, "publicly_queryable" => true, "hierarchical" => true, "show_ui" => true, "show_in_menu" => true, "show_in_nav_menus" => true, "query_var" => true, "rewrite" => array("slug" => "dlb_theme", "with_front" => true), "show_admin_column" => true, "show_in_rest" => true, "show_tagcloud" => false, "rest_base" => "dlb_theme", "rest_controller_class" => "WP_REST_Terms_Controller", "rest_namespace" => "wp/v2", "show_in_quick_edit" => false, "sort" => false, "show_in_graphql" => false); register_taxonomy("dlb_theme", array("diavouleusi"), $args); $labels = array("name" => esc_html__("\316\225\xce\xaf\316\264\xce\267 \316\224\xce\271\316\261\316\262\xce\xbf\xcf\x8d\316\273\xce\265\317\x85\xcf\203\316\xb7\317\202", "jannahchild"), "singular_name" => esc_html__("\316\225\316\257\316\264\316\xbf\317\202 \xce\x94\xce\271\316\xb1\316\xb2\316\xbf\xcf\x8d\316\273\316\265\xcf\x85\xcf\x83\xce\xb7\317\202", "jannahchild")); $args = array("label" => esc_html__("\xce\225\xce\257\xce\264\xce\xb7 \xce\224\316\271\316\xb1\xce\262\xce\277\317\215\316\xbb\xce\265\xcf\x85\xcf\x83\xce\267\317\202", "jannahchild"), "labels" => $labels, "public" => true, "publicly_queryable" => true, "hierarchical" => true, "show_ui" => true, "show_in_menu" => true, "show_in_nav_menus" => true, "query_var" => true, "rewrite" => array("slug" => "dlb_type", "with_front" => true), "show_admin_column" => true, "show_in_rest" => true, "show_tagcloud" => false, "rest_base" => "dlb_type", "rest_controller_class" => "WP_REST_Terms_Controller", "rest_namespace" => "wp/v2", "show_in_quick_edit" => false, "sort" => false, "show_in_graphql" => false); register_taxonomy("dlb_type", array("diavouleusi"), $args); } goto ddMAG; I0JJi: function update_start_date($value, $post_id, $field) { $start_date = strtotime(get_field("start_date", $post_id)); $old_value = date("Y-m-d H:i:s", $start_date); $new_value = $_POST["acf"]["field_60b724c57d1b9"]; if ($old_value != $new_value) { error_log("START DATE changed from " . $old_value . " to " . $new_value . " timestamp: " . strtotime($new_value)); $timezone = "Europe/Athens"; $new_date = new DateTime($new_value, new DateTimeZone($timezone)); $new_timestamp = $new_date->format("U"); $old_timestamp = wp_next_scheduled("schedule_diavouleusi_start"); error_log("Existing schedule: " . $old_timestamp); if ($old_timestamp) { error_log("Unscheduling event"); wp_unschedule_event($old_timestamp, "schedule_diavouleusi_start", array($post_id)); } wp_schedule_single_event($new_timestamp, "schedule_diavouleusi_start", array($post_id)); } else { error_log("START DATE didnt change"); } return $value; } goto BPvyy; gigZQ: function has_correct_comment_status($diav_id) { $diav_status = get_diavouleusi_status($diav_id); $diav_post = get_post($diav_id); $comment_status = $diav_post->comment_status; if ($diav_status == "Active") { if ($comment_status == "closed") { return false; } return true; } else { if ($comment_status == "open") { return false; } return true; } } goto qf2p2; nb4GL: function delete_diavouleusi_articles($post_id) { global $post_type; if ("diavouleusi" !== $post_type) { return; } error_log("Delete articles here"); $posts = get_diav_articles_bytag($post_id); $count = 0; if ($posts) { foreach ($posts as $post) { wp_delete_post($post->ID); $count += 1; } } else { $posts_trashed = get_diav_articles_bytag($post_id, true); if ($posts_trashed) { foreach ($posts_trashed as $post_t) { wp_delete_post($post_t->ID); $count += 1; } } } error_log("Articles deleted: " . $count); $tagname_todelete = get_diavouleusi_tagname($post_id); $diav_tag = get_term_by("name", $tagname_todelete, "post_tag"); if ($diav_tag) { error_log("Term to delete: " . $tagname_todelete . " ID: " . $diav_tag->term_id); wp_delete_term($diav_tag->term_id, "post_tag"); error_log("Term deleted"); } } goto rzM8F; xQzbi: add_filter("acf/fields/post_object/query/name=diavouleusi", "filter_own_diavouleuseis", 10, 3); goto US6aO; h43LL: function gnstl_profile_admin_css() { $screen_id = isset(get_current_screen()->id) ? get_current_screen()->id : null; if ("profile" === $screen_id || "user-edit" === $screen_id) { wp_enqueue_style("profile-admin-css", "/wp-content/plugins/gnstl-deliberate/userprofile.css"); } } goto FAArC; kSeDv: add_shortcode("diavouleusi_resources", "display_diavouleusi_resources"); goto XeIbK; LCHm5: function get_diavouleusi_rss_feed($diav_id) { $link = get_site_url() . "/feed?tag=" . get_diavouleusi_tagname($diav_id) . "&post_type=diavouleusi"; return $link; } goto gigZQ; xaucG: add_shortcode("diavouleusi_types", "display_diavouleusi_types"); goto tCYtg; MrpAk: function display_diavouleusi_resources($atts) { $attributes = shortcode_atts(array("id" => ''), $atts); $resources = get_field_object("resources", $attributes["id"]); if ($resources) { if (have_rows($resources["name"])) { echo "<div class="diavouleusi-resources">"; echo "<h3 class="diav-heading">\316\xa3\317\207\316\xb5\317\204\xce\271\xce\xba\xcf\x8c \316\245\xce\273\316\271\xce\xba\317\x8c</h3>"; echo "<ul>"; while (have_rows($resources["name"])) { the_row(); $title = get_sub_field("title"); $file = get_sub_field("file"); $img = wp_get_attachment_image(get_sub_field("ID")); $filetype = wp_check_filetype($file); echo "<li><a href="" . $file . "" target="_blank" class="" . $filetype["ext"] . "">" . get_filetype_favicon($filetype["ext"]) . " " . $title . "</a></li>"; } echo "</ul>"; } echo "</div>"; } } goto kSeDv; ckDZM: add_shortcode("articles_related", "display_articles_related"); goto j6uLm; z0j_6: function update_diavouleusi_endtime_event($diav_id) { error_log("SCHEDULED Task UpdateEndTime executed for " . $diav_id . " @ " . current_time("Y-m-d H:i:s")); if (has_ended($diav_id)) { update_diavouleusi_status($diav_id); set_diavouleusi_comment_status($diav_id, "closed"); } else { error_log("Ignoring event"); } } goto YCYlT; ghhd5: function validate_num_articles($valid, $value, $field, $input_name) { if ($valid !== true) { return $valid; } if ($_POST) { if ($_POST["post_id"] != null) { error_log("Getting numArticles via $_POST " . $_POST["post_id"]); $posts = get_diav_articles_bytag($_POST["post_id"]); } } else { $currPost = get_post(); if ($currPost) { $posts = get_diav_articles_bytagget_diav_articles_bytag($currPost->ID); } else { error_log("Error getting current post ID"); return; } } $actualNumArticles = 0; if ($posts) { $actualNumArticles = sizeof($posts); } error_log("Line 688 Actual num: " . $actualNumArticles); foreach ($posts as $post) { error_log("Post ID:: " . $post->ID); } if ($actualNumArticles == 0) { return $valid; } else { if ($value > $actualNumArticles) { return __("Change number to " . $actualNumArticles . " or manually create " . ($value - $actualNumArticles) . " <a href="" . get_articles_link($_POST["post_id"]) . "" target="_blank">article(s)</a>."); } else { if ($value < $actualNumArticles) { return __("Change number to " . $actualNumArticles . " or manually delete " . ($actualNumArticles - $value) . " <a href="" . get_articles_link($_POST["post_id"]) . "" target="_blank">article(s)</a>. <br/><em>Don't delete the <b>General comments</b> article.</em>"); } else { return $valid; } } } } goto VPhMM; yGzF5: function update_article_tag($field) { $post = get_post(); if ("article" !== get_post_type()) { return $field; } $diav_id = $_POST["acf"]["field_60bc93d67c929"]; if (!$diav_id) { return $field; } error_log("DBG DiavID: " . $diav_id); $tag = get_diavouleusi_tagname($diav_id); if ($tag) { wp_set_post_tags($post->ID, array($tag), false); } error_log("Tags added"); connect_article_to_diav($post->ID, $diav_id); error_log("Synced with diavouleusi"); return $field; } goto Tnu0E; P1O7r: add_action("untrash_post", "untrash_diavouleusi_articles"); goto nb4GL; rzM8F: add_action("before_delete_post", "delete_diavouleusi_articles"); goto Gp14y; l5bPI: add_filter("comments_clauses", "gnstl_show_ownpost_comments"); goto Z2Lp0; Tnu0E: add_filter("acf/update_value/name=diavouleusi", "update_article_tag"); goto v_sBd; JJI4u: add_shortcode("diavouleusi_intro_fields", "display_diavouleusi_intro_fields"); goto MrpAk; LzQsZ: function update_end_date($value, $post_id, $field) { $end_date = strtotime(get_field("end_date", $post_id)); $old_value = date("Y-m-d H:i:s", $end_date); $new_value = $_POST["acf"]["field_60b725007d1ba"]; if ($old_value != $new_value) { error_log("END DATE changed from " . $old_value . " to " . $new_value . " timestamp: " . strtotime($new_value)); $timezone = "Europe/Athens"; $new_date = new DateTime($new_value, new DateTimeZone($timezone)); $new_timestamp = $new_date->format("U"); $old_timestamp = wp_next_scheduled("schedule_diavouleusi_end"); error_log("Existing schedule: " . $old_timestamp); if ($old_timestamp) { error_log("Unscheduling event"); wp_unschedule_event($old_timestamp, "schedule_diavouleusi_end", array($post_id)); } wp_schedule_single_event($new_timestamp, "schedule_diavouleusi_end", array($post_id)); } else { error_log("END DATE didnt change"); } return $value; } goto UVsYJ; yNeZU: function display_diavouleusi_intro_fields($atts) { $attributes = shortcode_atts(array("id" => '', "in_excerpt" => 1), $atts); echo get_diavouleusi_intro_fields($attributes["id"], $attributes["in_excerpt"]); } goto JJI4u; bmO2b: add_shortcode("diavouleusi_fields", "display_diavouleusi_fields"); goto yNeZU; Cprnd: function connect_article_to_diav($article_id, $diav_id) { $article = get_post($article_id); $diav = get_post($diav_id); if (!$diav || !$article) { error_log("No such post found"); return; } $numArticles = get_field("num_articles", $diav_id); $update_args = array("ID" => $article_id, "post_date" => $diav->post_date, "post_status" => $diav->post_status, "comment_status" => $diav->comment_status); wp_update_post($update_args); update_field("num_articles", $numArticles + 1, $diav_id); } goto lMN2H; rTFJW: add_shortcode("article_diav", "display_article_diav"); goto iKUR3; UVsYJ: add_filter("acf/update_value/name=end_date", "update_end_date", 10, 3); goto yGzF5; FAArC: add_action("admin_enqueue_scripts", "gnstl_profile_admin_css"); goto ESPZk; X9xig: function has_started($diav_id) { $curr_time = current_time("Y-m-d H:i:s"); $start_date = date("Y-m-d H:i:s", strtotime(get_field("start_date", $diav_id))); if ($start_date > $curr_time) { return false; } return true; } goto f3oJG; YZtmr: add_filter("acf/load_field/key=field_60e31013755bc", "update_newstatus_field"); goto I0JJi; eM3XR: add_filter("pre_get_posts", "gnstl_rss_feed"); goto ESXwZ; PdbWc: add_action("init", "gnstl_register_my_cpts"); goto RuNcy; YCkWN: function update_diav_articles($diav_id, $post_date, $post_status, $comment_status) { $posts = get_diav_articles_bytag($diav_id); $actualArticles = 0; if ($posts) { $actualArticles = sizeof($posts); } $expectedArticles = get_field("num_articles", $diav_id); if ($actualArticles != $expectedArticles) { return $actualArticles; } $update_args = array("ID" => 0, "post_date" => $post_date, "post_status" => $post_status, "post_type" => "article", "post_title" => "Article", "post_name" => "article", "post_modified" => current_time("Y-m-d H:i:s"), "post_content" => '', "post_content_filtered" => '', "post_excerpt" => '', "comment_status" => $comment_status, "ping_status" => '', "post_password" => '', "to_ping" => '', "pinged" => '', "post_parent" => '', "menu_order" => '', "post_mime_type" => '', "guid" => ''); foreach ($posts as $post) { $tmpPost = null; $tmpPost = get_post($post->ID); $update_args["ID"] = $post->ID; $update_args["post_title"] = $tmpPost->post_title; $update_args["post_name"] = $tmpPost->post_name; $update_args["post_content"] = $tmpPost->post_content; $update_args["post_content_filtered"] = $tmpPost->post_content_filtered; $update_args["post_excerpt"] = $tmpPost->post_excerpt; $update_args["ping_status"] = $tmpPost->ping_status; $update_args["post_password"] = $tmpPost->post_password; $update_args["to_ping"] = $tmpPost->to_ping; $update_args["post_parent"] = $tmpPost->post_parent; $update_args["menu_order"] = $tmpPost->menu_order; $update_args["post_mime_type"] = $tmpPost->post_mime_type; $update_args["guid"] = $tmpPost->guid; $tmp = wp_insert_post($update_args); update_field("diavouleusi", $diav_id, $post->ID); } return $actualArticles; } goto Cprnd; Nouv2: function get_diavouleusi_intro_fields($diav_id, $in_excerpt) { $status = get_diavouleusi_status($diav_id); $diav_link = get_post_permalink($diav_id); $rss_link = get_diavouleusi_rss_feed($diav_id); $status_class = ''; $status_icon = ''; if ($status == "Active" || $status == "\316\x91\xce\xbd\xce\277\316\xb9\316\272\xcf\204\xce\256") { $status_text = "\xce\x91\xce\xbd\xce\277\xce\xb9\xce\272\317\x84\316\256"; $status_class = ''; $status_icon = "fa-unlock"; } else { if ($status == "In processing" || $status == "\xce\xa5\317\x80\317\x8c \xce\265\xcf\x80\xce\265\316\xbe\xce\265\317\x81\316\xb3\xce\261\317\x83\xce\xaf\xce\261") { $status_text = "\316\245\317\200\xcf\x8c \316\xb5\317\x80\316\265\316\276\xce\xb5\xcf\201\xce\263\316\261\317\x83\xce\257\xce\xb1"; $status_class = "status-closed"; $status_icon = "fa-lock"; } else { if ($status == "Completed" || $status == "\316\x9f\316\273\316\277\xce\272\316\273\316\267\317\201\317\x89\xce\274\316\255\xce\xbd\xce\xb7") { $status_text = "\xce\237\xce\273\316\277\316\xba\316\273\xce\267\317\201\317\211\xce\xbc\316\xad\xce\xbd\316\267"; $status_class = "status-complete"; $status_icon = "fa-check-circle"; } } } $val = "<div class="diavouleusi-info"><ul>"; $val .= "<li class="diavouleusi-status " . $status_class . ""><i aria-hidden="true" class=" fas " . $status_icon . ""></i> \xa \x9 <span>" . $status_text . "</span></li>"; $unixtimestamp = strtotime(get_field("start_date", $diav_id)); $start_date = date_i18n("d M Y @ G:i", $unixtimestamp); $unixtimestamp2 = strtotime(get_field("end_date", $diav_id)); $end_date = date_i18n("d M Y @ G:i", $unixtimestamp2); if ($in_excerpt) { $start_pre = "<i aria-hidden="true" class="far fa-calendar-check"></i>"; $end_pre = "<i aria-hidden="true" class="far fa-calendar-times"></i>"; } else { $start_pre = "<em>\316\221\xce\xbd\316\261\xcf\x81\317\204\xce\256\316\xb8\xce\xb7\316\272\xce\265</em><br/>"; $end_pre = "<em>\xce\x91\316\xbd\316\277\316\271\316\xba\xcf\204\xce\xae \317\x83\xce\265 \317\x83\317\207\317\x8c\xce\273\xce\271\xce\261 \xcf\211\xcf\202</em><br/>"; } $val .= "<li class="diavouleusi-date">" . $start_pre . " <strong>" . $start_date . "</strong></li>"; $val .= "<li class="diavouleusi-date">" . $end_pre . " <strong>" . $end_date . "</strong></li>"; if (!$in_excerpt) { $val .= "<li class="emphasis"><i aria-hidden="true" class="fas fa-comments"></i> <span>" . get_diavouleusi_comment_count($diav_id) . " \xcf\203\xcf\x87\xcf\x8c\316\273\316\271\xce\xb1</span></li>"; } $val .= "</ul></div>"; $val .= "<div class="diavouleusi-actions"><ul>"; if ($status == "Active" || $status == "\xce\x91\xce\xbd\316\xbf\xce\xb9\xce\272\317\x84\xce\256") { $val .= "<li><a class="button" href="" . $diav_link . "/" . "#articles" . ""><i aria-hidden="true" class="fas fa-comment-medical"></i> \316\243\xcf\x85\316\274\316\xbc\xce\xb5\317\x84\xce\xbf\317\x87\xce\256</a></li>"; } $tmpCSV = generate_comments_csv($diav_id); $action_status = ''; if (!$tmpCSV || $tmpCSV < 0) { $val .= "<li><a class="button disabled" href="#"><em>\316\xa7\xcf\211\317\x81\316\xaf\317\202 \317\203\xcf\207\317\214\xce\xbb\xce\xb9\xce\xb1</em></a></li>"; } else { $val .= "<li><a class="button" href="" . $tmpCSV . ""><i aria-hidden="true" class="fas fa-file-export"></i> \316\225\316\276\xce\xb1\xce\xb3\xcf\x89\316\263\316\256 \317\x83\317\207\xce\xbf\xce\xbb\xce\257\317\211\xce\275</a></li>"; } if ($status != "Completed") { $val .= "<li><a class="button" href="" . $rss_link . "" target="_blank"><i aria-hidden="true" class="fas fa-rss"></i> \316\xa0\xce\261\xcf\x81\xce\261\316\xba\316\xbf\xce\xbb\316\xbf\317\215\316\xb8\xce\267\xcf\203\316\xb7</a></li>"; } if ($status == "Completed" && $in_excerpt) { $val = $val . "<li><a class="button button-emphasis" href="" . $diav_link . "/#results"><i aria-hidden="true" class="fas fa-poll-h"></i> \xce\x91\xcf\x80\316\xbf\317\204\316\xb5\xce\xbb\316\255\317\x83\xce\xbc\316\261\317\204\xce\261</a></li>"; } $val .= "</ul></div>"; return $val; } goto us28k; pPM4h: function display_diavouleusi_fields($atts) { $attributes = shortcode_atts(array("id" => ''), $atts); $fields = get_field_objects($attributes["id"]); if ($fields) { echo "<ul>"; foreach ($fields as $field) { if ($field["type"] != "repeater") { echo "<li><strong>" . $field["label"] . ":</strong> " . $field["value"] . "</li>"; } else { echo "<li><strong>" . $field["label"] . ":</strong>"; if (have_rows($field["name"])) { echo "<ul>"; while (have_rows($field["name"])) { the_row(); $title = get_sub_field("title"); $file = get_sub_field("file"); echo "<li><a href="" . $file . "" target="_blank">" . $title . "</a></li>"; } echo "</ul>"; } echo "</li>"; } } echo "</ul>"; } } goto bmO2b; rkZHE: add_filter("acf/load_field/key=field_60dc1e1cff1c5", "update_article_link_field"); goto YgADs; ZpOt9: register_activation_hook(__FILE__, "plugin_dependencies_activate"); goto h43LL; eH5up: function genestial_css() { echo "
<style type='text/css'>\xa\x9 #genestial {\xa float: right;\xa\x9\x9\x9padding: 5px 10px;\xa \x9margin: 0;
\x9\x9font-size: 12px;
\x9\x9\x9line-height: 1.6666;
\x9\x9}\xa\x9 .rtl #genestial {\xa float: left;
\x9}
.block-editor-page #genestial {\xa \x9display: none;\xa }
@media screen and (max-width: 782px) {\xa\x9 #genestial,\xa\x9 .rtl #genestial {\xa\x9\x9\x9 float: none;\xa\x9\x9 \x9padding-left: 0;\xa\x9 \x9 padding-right: 0;
\x9\x9}\xa }\xa </style>\xa\x9\x9"; } goto FLCb6; JFiCQ: function trash_diavouleusi_articles($post_id) { global $post_type; if ("diavouleusi" !== $post_type) { return; } error_log("Trash articles here"); $posts = get_diav_articles_bytag($post_id); if ($posts) { foreach ($posts as $post) { wp_trash_post($post->ID); } } error_log("Articles trashed"); } goto LfuF0; Lu60v: function untrash_diavouleusi_articles($post_id) { global $post_type; if ("diavouleusi" !== $post_type) { return; } error_log("Untrash articles here"); $posts = get_diav_articles_bytag($post_id, true); $count = 0; if ($posts) { foreach ($posts as $post) { wp_untrash_post($post->ID); $count += 1; } } error_log("Articles untrashed: " . $count); } goto P1O7r; xM0gL: function gnstl_rss_feed($query) { if ($query->is_feed()) { $query->set("post_type", array("post", "diavouleusi", "article")); } return $query; } goto eM3XR; ddMAG: add_action("init", "gnstl_register_my_taxes"); ?>
Did this file decode correctly?
Original Code
goto VRYAx; oy8KA: function update_diavouleusi_status($diav_id) { $post = get_post($diav_id); $val = null; if ($post->post_status == "\x64\x72\x61\146\164") { $val = "\104\x72\141\x66\164"; } else { $curr_time = current_time("\x59\55\155\55\x64\x20\110\x3a\x69\72\x73"); $start_date = date("\131\x2d\x6d\x2d\144\40\x48\72\x69\x3a\x73", strtotime(get_field("\x73\x74\141\x72\x74\x5f\x64\141\164\145", $diav_id))); $end_date = date("\131\x2d\155\55\144\x20\x48\x3a\x69\72\x73", strtotime(get_field("\145\x6e\x64\x5f\x64\141\164\145", $diav_id))); if ($start_date > $curr_time) { $val = "\123\x63\150\145\144\x75\154\x65\x64"; } else { if ($end_date > $curr_time) { $val = "\x41\143\164\151\166\145"; } else { $results = get_field("\x6d\165\x6c\x74\x69\x72\x65\163\x75\x6c\x74\x73", $diav_id); if ($results != null) { $val = "\103\157\155\x70\x6c\145\164\145\144"; } else { $val = "\111\156\x20\x70\x72\x6f\143\145\163\x73\151\156\147"; } } } error_log("\x43\165\x72\x72\164\151\x6d\x65\72\40" . $curr_time . "\x20\x53\x74\x61\x72\x74\104\x61\164\x65\72" . $start_date . "\x20\163\164\162\124\157\124\151\155\x65\72\x20" . strtotime(get_field("\163\164\x61\162\x74\137\x64\141\x74\145", $diav_id)) . "\40\105\x6e\x64\104\x61\x74\x65\72\40" . $end_date . "\40\x53\164\141\x74\165\163\x3a\x20" . $val); } update_field("\x73\x74\x61\164\165\x73\x5f\x68\151\144\x64\x65\156", $val, $diav_id); return true; } goto GQldR; lMN2H: function set_diavouleusi_comment_status($diav_id, $status = "\x63\x6c\157\x73\x65\x64") { $diav = get_post($diav_id); set_post_comment_status($diav_id, $status); update_articles_comment_status($diav_id, $status); } goto Nouv2; v_sBd: function diavouleusi_excerpt($excerpt) { if ("\x64\x69\141\x76\157\x75\154\145\165\x73\151" !== get_post_type()) { return $excerpt; } $post = get_post(); $extraExcerpt = "\x3c\144\151\166\40\x63\x6c\141\163\x73\x3d\42\164\x77\x6f\x5f\164\150\x69\162\x64\x20\164\x69\x65\x2d\x63\x6f\154\165\x6d\156\163\40\x64\x69\141\166\x2d\x63\157\156\164\x65\156\164\x22\x3e"; $extraExcerpt .= "\74\x73\x70\x61\156\40\143\x6c\141\163\163\75\x22\x64\151\141\x76\x2d\x61\165\x74\150\x6f\162\x22\76" . get_diavouleusi_author($post->ID) . "\x3c\x2f\x73\x70\141\156\x3e"; $extraExcerpt .= $excerpt; $extraExcerpt .= get_diavouleusi_themes($post->ID); $extraExcerpt .= get_diavouleusi_types($post->ID); $extraExcerpt .= "\74\57\144\x69\166\76\x3c\x64\x69\166\40\143\154\x61\x73\163\75\x22\157\x6e\x65\x5f\164\x68\151\x72\x64\x20\x74\151\x65\x2d\x63\x6f\x6c\165\155\156\163\x20\154\141\163\164\x20\144\x69\141\x76\55\146\151\145\154\x64\163\42\x3e" . get_diavouleusi_intro_fields($post->ID, 1) . "\x3c\x2f\x64\x69\x76\x3e"; return $extraExcerpt; } goto X7v4v; bD2Fo: function get_diavouleusi_types($diav_id) { $val = ''; $terms = get_the_terms($diav_id, "\144\x6c\142\137\x74\x79\160\x65"); if ($terms) { $val = "\74\x64\x69\x76\x20\x63\x6c\x61\x73\x73\x3d\x22\x70\157\x73\x74\55\x62\x61\x64\x67\145\163\40\144\154\x62\137\x74\171\160\x65\42\x3e"; foreach ($terms as $term) { $val .= "\x3c\x64\x69\x76\x20\143\154\141\x73\x73\75\x22\160\x6f\163\x74\x2d\142\141\144\x67\145\x22\76" . $term->name . "\74\57\144\151\166\x3e"; } $val .= "\74\x2f\144\x69\x76\76"; } return $val; } goto nNphe; z4Mlp: function get_diavouleusi_themes($diav_id) { $val = ''; $terms = get_the_terms($diav_id, "\x64\154\x62\137\x74\150\145\x6d\x65"); if ($terms) { $val = "\x3c\144\151\x76\40\143\x6c\141\163\x73\75\x22\x70\x6f\x73\x74\55\142\141\144\147\145\163\42\76"; foreach ($terms as $term) { $val .= "\x3c\144\151\x76\x20\143\154\x61\163\163\75\42\x70\x6f\x73\164\x2d\x62\141\144\147\x65\42\76" . $term->name . "\74\57\144\151\x76\76"; } $val .= "\x3c\57\144\x69\x76\x3e"; } return $val; } goto bD2Fo; US6aO: function gnstl_show_ownpost_comments($clauses) { if (is_admin()) { if (current_user_can("\x65\x64\x69\x74\137\x6f\164\x68\145\162\x73\137\160\157\x73\164\163")) { return $clauses; } else { $user_id = get_current_user_id(); global $wpdb; $clauses["\152\x6f\151\156"] = "\x2c\x20" . $wpdb->base_prefix . "\160\x6f\163\164\x73"; $clauses["\167\150\145\x72\145"] .= "\40\x41\116\104\40" . $wpdb->base_prefix . "\143\x6f\155\155\145\x6e\164\163\56\x63\x6f\x6d\x6d\x65\x6e\164\x5f\x70\x6f\163\164\x5f\111\x44\40\x3d\40" . $wpdb->base_prefix . "\x70\157\x73\164\163\56\x49\x44" . "\x20\x41\x4e\x44\x20\50" . $wpdb->base_prefix . "\x70\x6f\x73\164\163\x2e\x70\x6f\x73\164\137\x61\x75\164\150\157\162\40\75\x20" . $user_id . "\40\117\122\x20" . $wpdb->base_prefix . "\x63\157\x6d\x6d\145\x6e\x74\x73\x2e\165\x73\145\162\137\x69\144\x20\x3d\40" . $user_id . "\51"; } } return $clauses; } goto l5bPI; Rgqrj: function update_all_diavouleuseis() { $timezone = new DateTimeZone("\105\165\162\157\x70\145\x2f\101\164\x68\x65\156\x73"); error_log("\x43\162\157\x6e\x20\163\x74\x61\x72\x74\145\x64\40\141\164\72\40" . wp_date("\131\x2d\155\x2d\144\40\x48\72\151\x3a\x73", null, $timezone)); $args = array("\160\157\163\x74\137\x74\171\x70\145" => "\144\x69\x61\166\157\x75\154\145\x75\163\151", "\157\162\144\145\162\142\x79" => "\160\x6f\x73\x74\x5f\144\141\x74\145", "\157\x72\x64\145\x72" => "\101\123\103", "\160\x6f\x73\x74\137\163\164\x61\x74\x75\x73" => "\160\165\142\x6c\x69\163\150"); $query = new WP_Query($args); $diavouleuseis = $query->posts; foreach ($diavouleuseis as $diav) { if (!has_correct_comment_status($diav->ID)) { $comment_status = calculate_comment_status($diav->ID); update_articles_comment_status($diav->ID, $comment_status); } } wp_reset_query(); error_log("\103\x72\157\156\40\143\x6f\x6d\160\x6c\145\x74\145\x20\141\x74\x3a\x20" . wp_date("\131\55\155\55\144\40\110\72\x69\72\163", null, $timezone)); } goto kYY1r; VRYAx: function say_hello() { $txt = "\127\145\x6c\143\x6f\x6d\145\40\x74\x6f\x20\164\x68\145\40\x65\x43\x6f\156\x73\165\x6c\x74\x61\x74\x69\x6f\x6e\x20\x70\x6c\141\x74\x66\157\162\155\41\40\74\x65\x6d\x3e" . date_i18n("\131\x2d\x6d\x2d\144\x20\110\72\x69\72\163", null) . "\x3c\57\x65\155\x3e"; return $txt; } goto TFErE; GQldR: function get_diavouleusi_status($diav_id) { return get_field("\163\x74\x61\164\x75\163\137\x68\x69\144\144\145\x6e", $diav_id); } goto suj3a; Gp14y: function display_diavouleusi_articles($atts) { $attributes = shortcode_atts(array("\151\144" => ''), $atts); print_diavouleusi_articles($attributes["\x69\x64"]); } goto LuWBx; zmZdY: function calculate_diav_post_status($diav_id) { $currTime = current_time("\131\55\155\x2d\x64\40\110\72\151\72\x73"); $startDate = strtotime(get_field("\163\164\x61\162\x74\137\x64\x61\x74\x65", $diav_id)); $newPostDate = date("\x59\x2d\x6d\x2d\144\x20\110\x3a\x69\72\x73", $startDate); $currPostStatus = get_post_status($diav_id); $newPostStatus = $currPostStatus; if ($currPostStatus == "\x70\x75\142\x6c\x69\163\x68") { if ($newPostDate > $currTime) { $newPostStatus = "\146\x75\164\x75\x72\x65"; } } else { if ($currPostStatus == "\x66\165\x74\x75\x72\x65") { if ($newPostDate <= $currTime) { $newPostStatus = "\x70\165\x62\154\x69\x73\150"; } } } return $newPostStatus; } goto oy8KA; ZI4HF: function display_diavouleusi_types($atts) { $attributes = shortcode_atts(array("\151\x64" => ''), $atts); return get_diavouleusi_types($attributes["\x69\144"]); } goto xaucG; X7v4v: add_filter("\x74\150\145\x5f\145\x78\x63\145\x72\x70\164", "\144\151\141\166\x6f\165\154\145\165\163\x69\137\145\170\143\145\162\160\164", 10, 1); goto xM0gL; g37CM: function create_diavouleusi_articles($diav_id, $post_date, $post_status, $comment_status) { $num_articles = get_field("\x6e\x75\x6d\137\x61\162\164\x69\143\x6c\145\x73", $diav_id); $tmpPost = get_post($diav_id); $article_args = array("\x70\157\163\x74\x5f\164\x69\x74\x6c\x65" => "\316\206\xcf\201\316\xb8\xcf\201\xce\xbf\40", "\x70\157\163\164\137\x74\171\x70\145" => "\x61\162\x74\151\143\154\x65", "\160\157\x73\164\x5f\x64\x61\164\x65" => $post_date, "\160\157\x73\164\137\163\164\x61\x74\165\x73" => $post_status, "\x70\x6f\163\x74\x5f\143\157\x6e\x74\x65\156\x74" => '', "\x70\157\x73\164\x5f\x61\x75\x74\x68\157\x72" => $tmpPost->post_author, "\x63\x6f\155\155\145\156\x74\x5f\163\164\x61\x74\165\x73" => $comment_status, "\164\x61\x67\x73\x5f\151\156\x70\165\x74" => get_diavouleusi_tagname($diav_id)); $article_index = ''; for ($i = 1; $i <= $num_articles; $i++) { $article_index = sprintf("\x25\60\x32\144", $i); $article_args["\160\x6f\x73\x74\x5f\x74\151\164\154\145"] = $article_index . "\x20\x2d\40\316\244\xce\257\xcf\x84\316\273\xce\277\317\x82\x20\xce\x86\317\201\316\270\xcf\201\xce\277\317\205"; $tmpArticleID = wp_insert_post($article_args); update_field("\144\x69\x61\x76\x6f\x75\x6c\x65\165\x73\151", $diav_id, $tmpArticleID); } } goto Vtam5; g6LeK: function update_article_link_field($field) { $post = get_post(); $field["\x6d\145\163\163\141\x67\145"] = "\74\x61\40\143\x6c\x61\x73\x73\75\x22\142\x75\x74\x74\157\156\42\x20\150\x72\145\x66\75\42" . get_articles_link($post->ID) . "\42\x20\x74\141\162\147\x65\x74\x3d\x22\x5f\x62\154\x61\x6e\153\42\x3e\316\xa0\xcf\201\xce\277\316\xb2\xce\xbf\xce\273\xce\256\40\317\200\xce\xb5\317\x81\xce\xb9\316\xb5\317\x87\xce\277\316\xbc\xce\xad\316\xbd\317\211\316\xbd\x3c\x2f\x61\x3e"; return $field; } goto rkZHE; us28k: function validate_end_date($valid, $value, $field, $input_name) { if ($valid !== true) { return $valid; } $startDate = $_POST["\141\x63\146"]["\x66\151\x65\154\144\137\x36\60\142\x37\x32\x34\x63\x35\x37\144\x31\142\x39"]; $interval = date_diff(date_create($startDate), date_create($value)); if ($interval->format("\x25\122\x25\141") < 1) { return __("\124\150\x65\x20\145\x6e\144\40\144\141\164\145\x20\163\x68\x6f\x75\x6c\x64\x20\142\145\40\x61\164\x20\x6c\145\141\x73\x74\x20\x3c\142\76\61\x20\x64\141\x79\x3c\57\x62\76\40\141\x66\164\x65\x72\40\x74\x68\x65\x20\163\164\x61\x72\x74\x20\144\141\164\x65\x2e"); } return $valid; } goto FPNnq; MkiZF: function get_diav_articles_bytag($diav_id, $trashed = false) { $tag_name = get_diavouleusi_tagname($diav_id); $tag = get_term_by("\156\141\155\x65", $tag_name, "\160\157\163\x74\137\x74\141\x67"); error_log("\114\151\x6e\145\40\62\67\64\x20\164\x61\147\40" . $tag_name); if (!$tag) { return null; } $status = array("\x70\x75\x62\x6c\151\x73\x68", "\x70\145\156\x64\x69\156\x67", "\144\x72\x61\146\164", "\x61\x75\164\157\55\x64\162\141\146\164", "\x66\x75\x74\165\162\145", "\x70\162\x69\166\141\164\x65", "\x69\x6e\150\145\162\x69\x74", "\x74\x72\141\163\150"); if ($trashed == true) { $status = "\164\162\x61\163\x68\x65\144"; } $args = array("\160\157\x73\x74\137\164\171\160\x65" => "\141\x72\x74\x69\x63\x6c\x65", "\x74\x61\147" => $tag_name, "\x6f\x72\x64\145\162\142\171" => "\160\x6f\163\164\x5f\164\x69\164\154\145", "\x6f\x72\144\x65\x72" => "\101\x53\x43", "\160\x6f\163\x74\137\163\164\141\x74\x75\x73" => $status, "\156\157\160\141\147\x69\156\x67" => true); $query = new WP_Query($args); $posts = $query->posts; error_log("\x52\145\x74\x75\162\x6e\x65\144\x20\x70\x6f\x73\164\x73\72\x20" . sizeof($posts)); foreach ($posts as $post) { error_log("\120\157\163\164\40\x49\x44\x3a\x3a\x20" . $post->ID); } return $posts; } goto uFneL; UZiYd: function display_article_fields($atts) { $attributes = shortcode_atts(array("\151\144" => ''), $atts); $diavouleusi = get_field("\144\x69\x61\x76\x6f\x75\x6c\x65\165\x73\x69", $attributes["\151\144"]); $link = get_post_permalink($diavouleusi); return "\74\x64\151\166\x20\x63\154\x61\163\163\75\42\x64\x69\141\166\157\x75\x6c\145\x75\163\151\x2d\141\x63\x74\x69\x6f\156\163\42\76\74\141\x20\x68\x72\x65\x66\75\42" . $link . "\x22\x20\x63\x6c\141\x73\x73\x3d\x22\142\x75\164\x74\157\156\40\x62\164\x6e\42\76\316\240\316\257\xcf\203\317\x89\40\xcf\x83\xcf\204\316\xb7\xce\275\40\316\224\316\xb9\xce\261\xce\xb2\316\277\xcf\x8d\xce\273\xce\265\317\x85\317\x83\xce\xb7\x3c\x2f\141\x3e\x3c\57\x64\x69\x76\x3e"; } goto lcmYP; eR9CG: add_shortcode("\144\x69\141\166\x6f\x75\x6c\145\x75\x73\x69\x5f\164\x68\x65\x6d\145\x73", "\144\151\163\x70\x6c\141\171\x5f\x64\151\x61\166\157\165\154\145\165\163\x69\137\x74\x68\145\x6d\x65\x73"); goto ZI4HF; kYY1r: function update_diavouleusi_starttime_event($diav_id) { error_log("\123\x43\110\x45\104\x55\x4c\105\104\40\124\x61\x73\x6b\40\125\x70\144\141\x74\x65\123\x74\x61\162\x74\x54\x69\155\x65\40\145\170\145\x63\165\x74\x65\144\x20\x66\157\x72\40" . $diav_id . "\x20\100\x20" . current_time("\131\x2d\x6d\x2d\x64\40\x48\x3a\151\x3a\x73")); if (has_started($diav_id)) { update_diavouleusi_status($diav_id); } else { error_log("\x49\x67\156\157\162\x69\156\x67\40\145\x76\x65\x6e\x74"); } } goto JkIJv; FLCb6: add_action("\141\x64\x6d\151\156\137\150\x65\x61\144", "\147\145\156\x65\163\164\x69\141\154\137\x63\163\x73"); goto QHvnJ; NJ6Au: function gnstl_register_my_cpts() { $labels = array("\x6e\141\155\145" => esc_html__("\316\224\316\271\316\xb1\316\xb2\xce\277\xcf\x85\316\273\xce\265\317\x8d\317\203\316\265\xce\271\xcf\202", "\x6a\x61\x6e\156\141\150\143\x68\x69\x6c\144"), "\163\x69\156\147\165\x6c\141\162\137\x6e\141\155\145" => esc_html__("\316\x94\xce\xb9\316\261\316\262\xce\277\xcf\215\316\xbb\xce\xb5\317\x85\317\x83\xce\267", "\152\x61\156\x6e\x61\150\x63\x68\151\154\x64"), "\x6d\145\x6e\x75\x5f\x6e\141\155\145" => esc_html__("\xce\x94\xce\xb9\316\261\xce\xb2\xce\xbf\317\205\xce\273\xce\xb5\xcf\x8d\317\x83\316\265\316\xb9\317\x82", "\152\141\x6e\x6e\141\x68\x63\150\151\154\144"), "\x61\154\154\137\x69\x74\x65\x6d\x73" => esc_html__("\316\x8c\316\273\316\xb5\317\202\40\xce\277\316\271\40\316\224\316\271\xce\xb1\316\xb2\316\xbf\317\205\316\xbb\316\xb5\xcf\215\317\203\xce\xb5\316\xb9\xcf\x82", "\152\141\x6e\x6e\x61\x68\x63\150\x69\x6c\x64"), "\141\x64\x64\137\x6e\145\x77" => esc_html__("\xce\x9d\xce\255\xce\xb1\x20\316\x94\xce\xb9\316\xb1\316\xb2\xce\xbf\xcf\x8d\xce\xbb\xce\265\317\205\xcf\203\xce\267", "\x6a\141\156\x6e\x61\150\x63\150\x69\154\144"), "\x61\x64\x64\x5f\156\145\x77\x5f\151\164\x65\x6d" => esc_html__("\316\235\xce\255\xce\xb1\40\316\x94\xce\xb9\316\xb1\316\xb2\xce\xbf\xcf\215\xce\xbb\xce\xb5\xcf\205\xcf\203\xce\xb7", "\152\141\156\x6e\141\150\143\x68\151\154\144"), "\x65\x64\x69\164\137\151\164\145\x6d" => esc_html__("\xce\x95\xcf\200\316\265\316\276\xce\xb5\317\x81\316\xb3\xce\261\317\203\316\257\316\261\x20\xce\x94\xce\271\316\261\316\xb2\316\277\xcf\x8d\316\xbb\xce\265\xcf\205\317\x83\316\xb7\317\x82", "\x6a\x61\156\156\141\150\143\x68\x69\154\x64"), "\x6e\145\x77\x5f\151\164\x65\155" => esc_html__("\316\x9d\316\255\xce\xb1\x20\316\x94\xce\xb9\316\xb1\xce\262\316\xbf\xcf\215\316\273\316\265\xcf\x85\317\x83\316\267", "\x6a\141\156\156\141\150\143\x68\151\x6c\x64"), "\x76\x69\145\x77\137\x69\x74\145\x6d" => esc_html__("\xce\xa0\xcf\x81\xce\xbf\316\xb2\xce\xbf\xce\273\316\256\x20\316\224\316\xb9\316\xb1\xce\xb2\316\xbf\317\215\xce\273\xce\265\317\205\xcf\x83\xce\267\317\x82", "\152\141\156\x6e\141\150\143\150\x69\154\144"), "\166\151\x65\x77\137\151\x74\x65\155\x73" => esc_html__("\316\xa0\xcf\x81\316\277\xce\xb2\xce\277\xce\xbb\xce\xae\x20\316\x94\316\xb9\316\xb1\xce\262\316\xbf\xcf\205\316\xbb\316\265\xcf\x8d\xcf\x83\xce\265\xcf\211\316\275", "\x6a\141\156\156\x61\x68\143\150\151\x6c\x64"), "\163\145\141\x72\x63\x68\x5f\x69\164\145\x6d\x73" => esc_html__("\316\x91\xce\275\xce\xb1\xce\266\316\256\317\x84\316\xb7\317\203\xce\xb7\40\316\224\xce\271\316\261\xce\262\316\277\xcf\215\316\273\316\265\317\205\xcf\203\xce\xb7\xcf\x82", "\152\x61\x6e\156\141\150\x63\150\x69\154\x64"), "\156\157\x74\x5f\146\x6f\x75\156\144" => esc_html__("\316\x94\316\265\316\xbd\40\316\262\xcf\201\316\xad\xce\270\316\xb7\xce\272\316\261\316\xbd\40\xce\xb1\xcf\x80\xce\xbf\317\204\316\xb5\316\xbb\xce\255\317\203\316\274\316\xb1\xcf\x84\316\xb1", "\152\x61\156\x6e\141\x68\x63\150\x69\x6c\x64"), "\156\x6f\164\x5f\x66\x6f\x75\156\x64\x5f\151\156\x5f\x74\x72\141\163\x68" => esc_html__("\316\224\xce\265\316\275\40\xce\262\317\201\xce\255\xce\270\xce\267\xce\272\316\xb1\316\xbd\x20\xce\261\317\x80\316\277\xcf\x84\316\265\xce\273\316\xad\317\203\316\274\316\261\317\x84\316\261\40\xcf\203\xcf\x84\xce\277\316\275\40\316\232\xce\254\316\xb4\316\xbf\x20\xce\x91\317\200\316\277\xcf\x81\xcf\201\316\xb9\xce\274\316\254\xcf\x84\xcf\211\xce\275", "\152\x61\156\156\x61\x68\143\x68\151\x6c\x64"), "\x70\141\x72\145\156\164" => esc_html__("\120\141\162\x65\x6e\164\40\104\x69\x61\x76\157\x75\x6c\145\165\163\x69\x3a", "\x6a\x61\156\x6e\x61\150\x63\150\x69\154\144"), "\146\145\x61\164\165\162\x65\144\137\151\x6d\141\147\x65" => esc_html__("\316\x95\316\xb9\xce\xba\317\214\xce\275\xce\261\x20\316\x95\316\276\317\x89\317\x86\xcf\215\xce\273\xce\xbb\xce\xbf\xcf\205", "\x6a\x61\156\x6e\141\150\x63\150\x69\x6c\144"), "\163\145\164\x5f\x66\145\141\x74\x75\x72\x65\x64\137\x69\x6d\141\x67\x65" => esc_html__("\316\232\xce\xb1\316\270\xce\277\xcf\x81\316\xb9\xcf\203\316\xbc\317\214\317\202\x20\xce\225\316\271\316\272\xcf\214\xce\275\xce\261\317\202\x20\xce\225\316\xbe\xcf\211\xcf\x86\317\x8d\xce\273\316\xbb\xce\277\xcf\x85", "\152\x61\156\x6e\141\150\x63\150\151\154\144"), "\x72\145\155\157\166\145\x5f\146\x65\x61\164\x75\x72\x65\x64\137\x69\155\141\x67\x65" => esc_html__("\316\x91\xcf\206\316\261\316\257\317\201\xce\xb5\xcf\x83\xce\267\x20\xce\xb5\316\xb9\xce\xba\317\214\316\xbd\xce\xb1\xcf\x82\x20\xce\xb5\xce\276\xcf\x89\317\x86\xcf\215\316\273\xce\273\316\xbf\xcf\205", "\152\x61\x6e\x6e\141\150\143\150\x69\154\144"), "\165\x73\x65\137\x66\x65\141\x74\x75\162\145\144\137\151\x6d\x61\147\x65" => esc_html__("\xce\xa7\317\201\316\256\317\203\316\xb7\40\xcf\211\xcf\x82\x20\xce\xb5\xce\xb9\xce\272\317\214\316\xbd\316\261\x20\xce\265\xce\xbe\317\x89\xcf\206\317\x8d\xce\xbb\316\xbb\xce\xbf\xcf\x85", "\x6a\141\156\x6e\x61\x68\x63\150\x69\154\x64"), "\x61\162\143\x68\151\166\145\163" => esc_html__("\xce\221\317\x81\317\207\316\xb5\xce\257\316\277\x20\xce\x94\xce\xb9\xce\261\xce\xb2\xce\277\317\205\xce\273\316\xb5\317\215\317\x83\316\265\317\211\xce\275", "\152\x61\156\156\141\150\x63\x68\151\x6c\x64"), "\x69\156\x73\145\162\x74\137\x69\x6e\x74\157\137\151\x74\145\x6d" => esc_html__("\x49\x6e\x73\145\162\164\40\x69\156\x74\x6f\40\104\151\x61\166\157\x75\154\145\165\163\x69", "\x6a\x61\156\x6e\141\150\x63\150\151\154\x64"), "\165\160\154\157\x61\144\145\x64\x5f\x74\157\137\164\150\x69\x73\x5f\x69\x74\145\155" => esc_html__("\125\x70\x6c\x6f\141\x64\40\x74\x6f\x20\164\x68\151\163\x20\x44\x69\141\x76\x6f\165\154\x65\165\x73\151", "\152\141\x6e\156\141\x68\x63\150\x69\154\x64"), "\146\151\x6c\164\145\162\137\x69\x74\145\x6d\x73\137\x6c\x69\163\164" => esc_html__("\106\x69\x6c\164\145\162\x20\104\x69\141\x76\157\x75\x6c\145\165\x73\x65\x69\163\x20\x6c\x69\163\x74", "\152\x61\156\156\x61\x68\x63\150\151\x6c\x64"), "\151\164\x65\155\163\x5f\x6c\151\163\x74\x5f\x6e\x61\166\x69\x67\141\x74\x69\157\x6e" => esc_html__("\x44\x69\141\x76\x6f\165\x6c\x65\165\x73\145\x69\163\40\x6c\x69\163\x74\40\x6e\141\166\x69\147\x61\164\151\x6f\x6e", "\x6a\141\156\156\141\x68\x63\150\x69\154\144"), "\151\164\x65\155\163\137\x6c\x69\163\x74" => esc_html__("\xce\x9b\316\257\xcf\x83\xcf\204\316\xb1\40\316\224\316\271\316\261\316\xb2\xce\xbf\317\205\xce\273\316\265\317\x8d\xcf\203\316\xb5\xcf\211\316\275", "\x6a\141\156\156\x61\150\143\x68\151\x6c\144"), "\x61\x74\x74\162\x69\142\165\164\x65\x73" => esc_html__("\104\151\x61\x76\x6f\165\154\x65\165\x73\x65\x69\x73\40\141\x74\x74\162\x69\142\x75\164\145\163", "\x6a\141\x6e\x6e\x61\150\143\x68\x69\x6c\x64"), "\x6e\x61\x6d\x65\137\141\144\155\x69\156\137\142\141\x72" => esc_html__("\xce\224\316\271\xce\xb1\xce\xb2\316\277\317\x8d\xce\xbb\xce\265\317\x85\xcf\x83\316\xb7\xcf\202", "\152\x61\x6e\x6e\141\150\143\x68\151\x6c\144"), "\x69\164\145\x6d\x5f\160\x75\142\x6c\151\x73\x68\145\x64" => esc_html__("\xce\227\40\xce\xb4\xce\xb9\xce\xb1\316\262\xce\xbf\317\x8d\xce\xbb\xce\xb5\xcf\205\xcf\x83\xce\267\x20\xce\264\xce\xb7\xce\xbc\xce\xbf\xcf\203\xce\271\316\xb5\317\215\317\204\xce\xb7\316\272\xce\265", "\152\x61\156\156\141\x68\143\150\x69\154\144"), "\x69\x74\145\155\x5f\160\165\142\154\151\x73\150\145\x64\x5f\160\162\151\166\x61\164\145\154\x79" => esc_html__("\xce\x97\x20\xce\xb4\316\271\316\261\xce\xb2\xce\277\xcf\215\316\xbb\316\265\xcf\205\xcf\x83\316\267\40\xce\264\xce\267\xce\xbc\xce\xbf\xcf\203\xce\271\xce\xb5\317\x8d\xcf\x84\316\xb7\316\272\xce\265\x20\316\274\316\xb5\40\316\271\316\264\xce\xb9\xcf\x89\317\204\xce\271\xce\272\xce\xae\40\317\203\xce\256\xce\xbc\316\261\316\275\317\203\xce\xb7\56", "\x6a\x61\x6e\x6e\x61\150\143\x68\151\154\x64"), "\151\164\145\x6d\137\162\x65\166\145\x72\164\x65\x64\x5f\x74\x6f\137\144\x72\141\x66\x74" => esc_html__("\316\x97\40\xce\xb4\316\271\316\261\316\262\xce\xbf\xcf\215\316\xbb\316\265\xcf\205\xcf\x83\xce\267\40\xce\xb1\317\x80\316\277\316\xb8\316\267\xce\272\xce\xb5\xcf\x8d\xcf\204\316\267\316\xba\xce\265\x20\xcf\x83\xcf\x84\316\261\40\317\x80\xcf\x81\317\x8c\xcf\x87\316\xb5\xce\xb9\xcf\x81\xce\261\x2e", "\152\x61\x6e\x6e\141\x68\143\x68\x69\x6c\x64"), "\x69\x74\x65\155\137\x73\143\x68\x65\x64\165\154\x65\x64" => esc_html__("\316\x97\x20\316\xb4\xce\xb9\316\xb1\xce\262\xce\xbf\xcf\215\316\273\316\xb5\xcf\x85\xcf\203\xce\xb7\x20\xcf\200\xcf\201\xce\277\316\263\xcf\x81\316\261\316\274\xce\xbc\xce\xb1\xcf\204\316\257\xcf\203\317\204\316\267\xce\xba\xce\xb5\40\xce\263\xce\xb9\316\xb1\40\xce\264\xce\267\xce\xbc\xce\277\xcf\203\316\257\xce\xb5\317\205\317\x83\316\267\56", "\x6a\x61\156\156\141\150\143\150\151\154\x64"), "\151\164\145\x6d\x5f\165\x70\144\x61\x74\145\x64" => esc_html__("\316\227\40\316\264\xce\xb9\316\xb1\316\262\316\xbf\317\x8d\316\xbb\xce\265\xcf\x85\317\x83\316\xb7\40\316\265\316\275\316\267\xce\xbc\xce\265\xcf\201\317\x8e\316\xb8\xce\xb7\316\272\316\xb5\x2e", "\x6a\141\x6e\x6e\141\x68\x63\150\x69\x6c\144"), "\x70\x61\162\x65\156\x74\137\151\x74\x65\x6d\137\x63\157\154\157\156" => esc_html__("\120\141\162\145\x6e\164\40\104\151\141\166\x6f\x75\x6c\x65\165\163\x69\x3a", "\x6a\x61\x6e\156\141\x68\x63\x68\x69\154\x64")); $args = array("\154\x61\x62\x65\154" => esc_html__("\xce\x94\316\271\xce\261\316\262\xce\xbf\xcf\x85\xce\273\xce\xb5\317\x8d\xcf\203\316\xb5\xce\xb9\317\202", "\152\141\156\156\x61\150\143\150\151\154\144"), "\154\x61\142\145\154\x73" => $labels, "\144\x65\x73\x63\162\x69\160\x74\151\x6f\156" => '', "\160\x75\142\154\151\143" => true, "\160\x75\142\154\x69\x63\x6c\x79\137\161\x75\x65\162\171\x61\x62\154\x65" => true, "\163\x68\157\x77\137\x75\151" => true, "\163\x68\x6f\167\137\151\x6e\137\162\145\163\164" => true, "\x72\x65\x73\x74\137\x62\x61\x73\145" => "\x64\x69\141\166\x6f\165\154\x65\165\x73\145\151\x73", "\x72\145\x73\164\137\143\x6f\156\x74\x72\x6f\154\154\x65\x72\137\x63\x6c\x61\x73\163" => "\x57\120\x5f\122\105\x53\124\137\x50\157\x73\164\163\x5f\x43\x6f\156\x74\x72\x6f\154\x6c\145\162", "\x72\145\163\164\x5f\156\x61\155\145\163\160\141\x63\145" => "\167\160\57\x76\x32", "\150\141\x73\x5f\141\162\x63\x68\151\x76\145" => "\x64\x69\x61\166\x6f\x75\x6c\x65\165\x73\x65\x69\x73", "\x73\x68\157\167\137\x69\x6e\x5f\155\145\x6e\x75" => true, "\163\150\x6f\x77\x5f\151\156\x5f\156\x61\166\x5f\155\145\156\165\163" => true, "\x64\x65\154\x65\164\x65\137\x77\x69\164\x68\x5f\165\x73\x65\162" => false, "\145\x78\x63\x6c\165\144\x65\137\x66\162\157\x6d\137\x73\145\x61\162\143\150" => false, "\x63\x61\160\141\142\151\x6c\151\164\x79\x5f\x74\x79\x70\145" => "\160\157\163\x74", "\155\x61\x70\137\155\x65\164\x61\137\143\x61\160" => true, "\x68\x69\x65\x72\x61\162\x63\x68\x69\143\141\154" => false, "\143\141\156\x5f\x65\170\x70\157\162\x74" => false, "\162\145\x77\x72\151\x74\x65" => array("\163\x6c\x75\x67" => "\x64\x69\141\x76\157\x75\154\145\x75\x73\x69", "\167\x69\x74\150\137\x66\162\x6f\x6e\164" => false), "\x71\x75\x65\x72\x79\x5f\x76\x61\x72" => true, "\155\x65\156\165\137\151\x63\x6f\x6e" => "\144\x61\163\150\x69\143\157\156\163\x2d\146\x6f\x72\155\141\164\x2d\143\x68\141\164", "\163\x75\160\x70\x6f\162\x74\x73" => array("\164\x69\x74\x6c\145", "\145\144\x69\164\157\162", "\x65\x78\x63\145\x72\x70\x74", "\x63\x75\163\x74\x6f\155\55\146\151\145\x6c\144\x73", "\x63\157\x6d\155\145\156\164\x73", "\x72\x65\x76\151\x73\151\157\156\163", "\x61\x75\164\x68\157\162", "\160\157\163\164\x2d\146\x6f\162\x6d\141\164\x73"), "\x74\141\x78\157\x6e\157\x6d\151\145\x73" => array("\x70\157\x73\164\x5f\x74\141\x67", "\144\x6c\142\x5f\164\x68\145\x6d\x65"), "\163\x68\157\x77\x5f\x69\x6e\137\x67\162\x61\x70\x68\x71\154" => false); register_post_type("\144\151\x61\166\157\165\154\145\165\163\x69", $args); $labels = array("\156\x61\155\x65" => esc_html__("\316\240\316\xb5\317\x81\xce\271\xce\xb5\xcf\x87\xcf\214\316\274\316\xb5\316\275\xce\261\x20\316\x94\xce\271\316\261\xce\262\xce\xbf\xcf\205\xce\273\316\265\317\215\317\x83\316\xb5\xcf\211\xce\xbd", "\x6a\141\156\156\x61\x68\x63\x68\x69\154\x64"), "\163\x69\156\147\165\154\141\162\137\156\141\x6d\145" => esc_html__("\316\240\316\265\317\201\316\xb9\xce\265\317\x87\317\214\xce\274\xce\xb5\316\xbd\xce\xbf\x20\xce\224\316\xb9\xce\261\316\262\xce\xbf\317\x8d\316\xbb\316\xb5\xcf\205\317\x83\316\xb7\317\202", "\x6a\141\156\156\x61\x68\x63\150\x69\x6c\x64"), "\x6d\145\156\165\137\156\x61\x6d\145" => esc_html__("\xce\240\xce\xb5\xcf\201\316\271\316\xb5\317\x87\xcf\214\xce\274\316\xb5\316\xbd\xce\xb1\40\316\x94\316\xb9\xce\261\316\xb2\316\xbf\xcf\x85\316\273\xce\265\317\215\317\203\xce\xb5\xcf\211\xce\xbd", "\x6a\141\156\156\141\x68\143\150\x69\x6c\144"), "\141\x6c\154\137\x69\x74\x65\x6d\163" => esc_html__("\316\x8c\xce\273\xce\261\40\317\x84\316\xb1\x20\xce\xa0\316\265\xcf\x81\316\xb9\xce\xb5\317\x87\xcf\214\xce\xbc\316\xb5\xce\275\xce\261", "\x6a\x61\156\156\x61\x68\x63\150\151\x6c\x64"), "\141\x64\144\137\156\145\x77" => esc_html__("\xce\x9d\xce\xad\316\277\40\316\240\316\xb5\xcf\x81\xce\271\316\xb5\xcf\x87\xcf\x8c\xce\xbc\xce\xb5\316\xbd\xce\xbf\40\xce\x94\xce\271\xce\xb1\xce\262\xce\xbf\317\x8d\xce\273\316\265\xcf\205\xcf\x83\316\267\317\202", "\152\141\156\x6e\141\x68\x63\x68\x69\x6c\144"), "\x61\144\144\137\x6e\145\x77\x5f\151\x74\x65\155" => esc_html__("\316\235\xce\xad\xce\xbf\x20\xce\xa0\316\xb5\317\201\316\xb9\316\xb5\xcf\207\317\214\316\xbc\316\xb5\xce\xbd\316\xbf\x20\xce\224\316\271\xce\261\316\xb2\xce\xbf\xcf\215\316\xbb\316\265\317\x85\xcf\203\xce\xb7\317\202", "\x6a\141\156\156\141\150\x63\x68\151\x6c\144"), "\145\x64\151\164\137\x69\164\145\x6d" => esc_html__("\316\225\317\x80\316\xb5\316\276\xce\xb5\317\x81\xce\263\xce\xb1\xcf\203\xce\257\xce\261\x20\xce\240\316\265\xcf\201\xce\271\xce\265\xcf\x87\316\xbf\316\274\xce\255\316\275\316\277\317\205", "\152\141\x6e\156\141\150\143\150\151\154\x64"), "\x6e\145\x77\x5f\x69\164\x65\155" => esc_html__("\316\x9d\316\255\xce\xbf\40\xce\240\xce\xb5\xcf\x81\316\271\316\xb5\xcf\x87\317\x8c\xce\xbc\316\265\xce\275\316\xbf\x20\xce\224\xce\271\xce\261\xce\262\316\277\xcf\x8d\316\273\316\xb5\xcf\x85\317\203\316\xb7\317\x82", "\x6a\141\x6e\156\141\150\x63\150\x69\x6c\x64"), "\x76\x69\x65\167\x5f\151\x74\x65\x6d" => esc_html__("\316\xa0\317\x81\xce\xbf\316\262\316\277\316\273\316\xae\x20\316\xa0\316\xb5\317\201\xce\271\xce\265\xcf\207\xce\277\xce\274\xce\255\316\275\316\xbf\xcf\x85\x20\316\224\316\271\316\261\xce\xb2\xce\277\317\215\316\273\316\xb5\317\205\317\203\316\xb7\xcf\x82", "\152\141\156\156\x61\x68\143\x68\151\x6c\144"), "\x76\151\x65\x77\137\151\x74\x65\x6d\163" => esc_html__("\316\240\317\201\316\277\316\262\316\277\xce\xbb\xce\xae\40\316\240\316\xb5\xcf\201\xce\271\316\xb5\xcf\x87\316\277\316\274\xce\255\316\275\317\x89\xce\275\x20\xce\x94\xce\271\xce\261\xce\xb2\316\277\xcf\215\316\xbb\xce\265\xcf\x85\xcf\203\316\267\317\202", "\152\141\x6e\x6e\141\150\x63\150\151\154\144"), "\x73\145\141\162\143\x68\x5f\151\x74\145\x6d\x73" => esc_html__("\xce\221\xce\275\316\261\xce\xb6\316\xae\xcf\204\xce\267\xcf\x83\316\267\x20\316\240\316\xb5\xcf\201\316\271\xce\265\317\x87\xce\xbf\xce\xbc\xce\255\xce\xbd\xce\xbf\xcf\205\x20\xce\x94\xce\271\xce\261\316\xb2\316\277\317\x8d\xce\xbb\316\xb5\xcf\205\317\203\xce\267\xcf\202", "\x6a\141\156\x6e\x61\x68\x63\x68\151\x6c\x64"), "\156\157\164\x5f\x66\157\165\x6e\x64" => esc_html__("\xce\x94\316\xb5\xce\xbd\x20\xce\xb2\317\x81\316\255\xce\xb8\xce\267\xce\xba\316\xb1\316\275\40\316\xb1\317\x80\xce\xbf\317\x84\316\xb5\316\273\316\255\xcf\x83\xce\xbc\316\xb1\xcf\204\xce\261", "\152\141\156\x6e\x61\x68\143\150\151\x6c\x64"), "\x6e\x6f\164\137\x66\157\x75\x6e\x64\137\x69\x6e\137\x74\x72\x61\x73\x68" => esc_html__("\316\224\316\xb5\316\275\x20\xce\262\317\x81\xce\255\xce\270\316\xb7\316\272\xce\261\xce\xbd\40\xce\xb1\317\x80\xce\xbf\xcf\204\xce\265\316\xbb\xce\xad\317\203\xce\xbc\xce\261\xcf\204\xce\xb1\40\xcf\203\xcf\x84\xce\xbf\xce\xbd\40\316\232\316\254\xce\xb4\316\277\x20\316\221\317\x80\xce\277\317\201\xcf\201\xce\xb9\316\274\xce\254\xcf\x84\317\x89\316\275", "\x6a\141\x6e\156\x61\150\x63\x68\x69\x6c\144"), "\x70\x61\162\145\x6e\x74" => esc_html__("\120\141\x72\145\x6e\x74\40\x41\x72\164\151\x63\154\145\x3a", "\x6a\141\x6e\156\141\150\143\x68\151\154\144"), "\146\x65\x61\x74\165\x72\x65\144\x5f\x69\x6d\141\147\145" => esc_html__("\x46\145\x61\x74\165\162\x65\x64\40\x69\155\141\x67\145\x20\x66\x6f\162\40\164\150\151\x73\x20\101\162\164\x69\143\154\145", "\x6a\x61\156\x6e\x61\150\143\150\151\154\144"), "\x73\x65\164\x5f\146\145\141\x74\x75\162\x65\x64\137\151\x6d\x61\x67\x65" => esc_html__("\x53\145\164\40\x66\x65\141\x74\165\162\145\144\40\151\x6d\141\147\145\40\146\157\162\40\x74\x68\x69\163\40\x41\x72\164\x69\x63\x6c\x65", "\152\x61\x6e\x6e\141\150\x63\x68\151\154\x64"), "\x72\145\155\157\166\145\137\x66\x65\x61\x74\x75\162\145\x64\x5f\x69\x6d\141\x67\x65" => esc_html__("\122\145\155\x6f\166\x65\x20\x66\x65\x61\x74\x75\x72\145\x64\x20\151\155\x61\147\145\40\x66\x6f\162\40\164\x68\x69\163\x20\101\162\164\151\143\x6c\x65", "\152\x61\x6e\156\141\x68\143\x68\x69\x6c\144"), "\x75\163\145\137\146\x65\x61\164\x75\162\145\144\137\151\155\141\147\145" => esc_html__("\x55\163\x65\x20\x61\163\x20\x66\x65\141\x74\165\x72\x65\144\40\151\x6d\141\x67\x65\40\146\157\x72\x20\164\150\x69\x73\x20\101\x72\164\151\143\x6c\x65", "\152\141\156\156\x61\x68\143\150\x69\154\x64"), "\141\x72\143\x68\151\166\145\163" => esc_html__("\101\162\x74\x69\x63\154\x65\40\x61\162\143\150\151\x76\145\x73", "\152\141\156\156\141\x68\x63\150\x69\154\144"), "\x69\x6e\x73\145\x72\164\x5f\151\156\x74\x6f\137\x69\x74\x65\x6d" => esc_html__("\111\x6e\163\145\x72\x74\40\x69\156\x74\x6f\x20\101\x72\x74\x69\143\x6c\x65", "\152\x61\x6e\156\141\150\143\x68\x69\154\144"), "\165\160\154\157\141\x64\145\144\x5f\164\157\137\164\x68\x69\x73\x5f\x69\x74\x65\155" => esc_html__("\x55\x70\154\x6f\141\x64\40\x74\157\x20\x74\150\x69\163\40\101\162\164\151\x63\x6c\145", "\152\141\x6e\156\141\x68\x63\150\151\154\144"), "\146\x69\154\x74\x65\162\137\x69\164\x65\x6d\x73\x5f\154\x69\x73\164" => esc_html__("\106\151\154\x74\x65\162\x20\x41\x72\x74\151\143\154\145\163\x20\154\x69\x73\164", "\152\x61\156\x6e\x61\150\x63\150\151\154\x64"), "\151\164\145\x6d\163\x5f\x6c\151\x73\x74\137\156\141\166\151\x67\141\x74\x69\157\156" => esc_html__("\101\162\x74\x69\143\x6c\x65\x73\40\154\151\x73\164\x20\156\141\x76\151\x67\x61\164\151\x6f\156", "\152\x61\156\x6e\x61\150\143\x68\x69\x6c\x64"), "\x69\164\145\155\163\137\x6c\151\x73\x74" => esc_html__("\x41\x72\x74\151\x63\154\x65\x73\40\154\151\x73\164", "\152\x61\156\x6e\x61\x68\x63\150\x69\x6c\x64"), "\x61\x74\x74\x72\x69\x62\165\164\145\163" => esc_html__("\x41\x72\x74\151\x63\x6c\x65\163\40\x61\164\164\162\151\142\x75\164\x65\163", "\152\141\x6e\156\x61\150\143\x68\151\x6c\x64"), "\156\141\155\x65\x5f\141\144\x6d\x69\x6e\137\142\x61\162" => esc_html__("\316\x86\317\201\xce\270\317\201\xce\xbf\317\x85\40\316\224\xce\271\316\xb1\xce\xb2\xce\xbf\xcf\215\316\xbb\316\xb5\xcf\205\xcf\x83\316\xb7\317\x82", "\x6a\x61\156\156\x61\150\143\150\151\154\x64"), "\151\x74\145\155\x5f\160\165\x62\x6c\x69\x73\150\x65\x64" => esc_html__("\101\162\164\x69\143\154\145\x20\160\165\142\x6c\151\x73\x68\145\144", "\x6a\x61\156\156\141\x68\143\x68\151\x6c\x64"), "\151\164\x65\155\x5f\160\165\142\154\151\x73\150\145\x64\x5f\x70\162\x69\166\x61\x74\x65\x6c\x79" => esc_html__("\101\162\164\151\x63\154\x65\x20\160\x75\x62\x6c\151\163\150\x65\x64\40\x70\162\x69\x76\x61\x74\145\154\x79\x2e", "\152\141\x6e\x6e\x61\150\x63\150\151\x6c\144"), "\151\x74\145\x6d\x5f\162\x65\x76\x65\162\164\x65\x64\137\x74\x6f\x5f\144\x72\x61\146\164" => esc_html__("\x41\x72\164\x69\x63\154\145\x20\162\x65\x76\145\162\164\145\144\x20\164\157\40\x64\x72\141\x66\164\x2e", "\x6a\141\x6e\156\x61\150\143\x68\151\x6c\x64"), "\x69\164\x65\x6d\x5f\163\143\x68\145\144\x75\154\x65\144" => esc_html__("\x41\x72\164\x69\x63\x6c\x65\40\x73\x63\x68\x65\x64\165\154\145\x64", "\x6a\141\x6e\x6e\141\x68\143\150\151\154\144"), "\x69\x74\145\x6d\137\x75\160\144\x61\x74\145\x64" => esc_html__("\101\162\164\151\143\x6c\145\x20\165\160\x64\x61\164\x65\144\x2e", "\152\141\x6e\x6e\141\x68\x63\150\x69\x6c\x64"), "\160\x61\162\x65\x6e\164\137\151\x74\x65\155\137\x63\157\x6c\157\156" => esc_html__("\120\141\x72\x65\x6e\164\40\101\x72\x74\151\x63\x6c\x65\x3a", "\152\141\156\156\x61\x68\x63\x68\x69\154\144")); $args = array("\154\141\x62\145\x6c" => esc_html__("\xce\240\316\xb5\xcf\201\316\271\316\xb5\xcf\207\xcf\x8c\xce\274\316\xb5\xce\xbd\316\261\x20\xce\224\316\271\316\261\316\262\xce\xbf\317\205\316\273\316\xb5\317\x8d\317\x83\316\265\xcf\x89\xce\xbd", "\x6a\141\156\156\141\x68\143\x68\151\x6c\144"), "\x6c\x61\x62\x65\x6c\x73" => $labels, "\x64\145\x73\x63\x72\151\x70\x74\151\x6f\156" => '', "\x70\165\x62\x6c\151\143" => true, "\x70\165\x62\x6c\151\x63\154\171\x5f\161\x75\x65\x72\171\x61\x62\154\x65" => true, "\163\x68\x6f\167\137\165\151" => true, "\163\150\x6f\x77\x5f\x69\156\x5f\x72\x65\163\x74" => true, "\162\145\163\164\137\x62\x61\163\145" => '', "\x72\x65\163\x74\137\143\x6f\156\x74\162\x6f\x6c\x6c\x65\x72\137\143\x6c\x61\163\x73" => "\x57\x50\137\122\105\123\x54\x5f\x50\157\x73\x74\163\x5f\x43\157\156\164\x72\157\x6c\154\x65\162", "\162\145\163\164\137\156\141\155\145\x73\x70\141\143\x65" => "\167\x70\x2f\166\x32", "\150\x61\x73\137\141\x72\143\x68\151\x76\145" => false, "\163\x68\x6f\x77\137\x69\156\x5f\155\x65\x6e\x75" => true, "\163\150\157\167\137\151\x6e\137\156\x61\166\x5f\155\145\156\x75\x73" => true, "\144\145\154\145\x74\x65\137\167\x69\x74\150\137\x75\x73\x65\x72" => false, "\x65\x78\143\x6c\165\x64\x65\x5f\x66\x72\x6f\x6d\137\x73\145\141\162\x63\150" => false, "\143\141\x70\x61\x62\151\x6c\151\164\171\x5f\x74\171\160\145" => "\160\157\x73\x74", "\x6d\x61\160\137\x6d\145\164\x61\137\143\x61\x70" => true, "\150\x69\145\162\141\x72\x63\150\x69\143\x61\154" => true, "\x63\141\x6e\137\x65\x78\x70\x6f\162\164" => false, "\x72\x65\167\162\x69\x74\x65" => array("\163\154\x75\x67" => "\141\x72\164\x69\143\154\x65", "\167\x69\164\150\x5f\146\162\157\156\164" => true), "\x71\x75\145\x72\x79\137\166\x61\x72" => true, "\155\145\x6e\x75\x5f\151\143\157\x6e" => "\144\141\163\150\151\143\x6f\x6e\x73\55\155\x65\144\x69\x61\x2d\x64\x6f\143\165\155\x65\156\x74", "\x73\x75\160\x70\x6f\x72\164\x73" => array("\164\x69\164\154\145", "\145\144\151\x74\157\x72", "\143\165\x73\164\157\x6d\55\146\x69\x65\154\x64\x73", "\x63\x6f\155\x6d\145\x6e\x74\x73", "\x72\145\x76\x69\163\x69\x6f\156\163", "\141\x75\x74\x68\157\162"), "\164\x61\x78\157\x6e\x6f\x6d\151\x65\163" => array("\160\x6f\163\164\137\164\141\147"), "\x73\x68\157\x77\137\151\156\137\147\x72\141\160\x68\x71\x6c" => false); register_post_type("\141\x72\164\151\x63\154\x65", $args); } goto PdbWc; lcmYP: add_shortcode("\141\162\x74\x69\x63\x6c\x65\x5f\146\x69\145\154\x64\163", "\144\151\163\160\154\141\171\x5f\141\x72\x74\x69\x63\x6c\145\137\x66\x69\145\154\x64\163"); goto vr5ff; XeIbK: function display_diavouleusi_results($atts) { $attributes = shortcode_atts(array("\151\x64" => ''), $atts); if (get_diavouleusi_status($attributes["\151\144"]) != "\x43\157\x6d\x70\154\145\x74\145\144") { return; } $resources = get_field_object("\155\x75\x6c\164\x69\x72\145\x73\x75\x6c\x74\163", $attributes["\151\x64"]); if ($resources) { echo "\x3c\x64\x69\166\x20\x63\x6c\141\163\x73\x3d\42\x64\x69\x61\166\x6f\x75\154\x65\x75\x73\151\55\x72\x65\163\165\154\x74\x73\42\76"; echo "\74\x68\x33\40\x63\154\x61\x73\x73\75\42\144\x69\x61\x76\55\150\x65\x61\144\x69\x6e\147\x22\x3e" . $resources["\154\141\142\145\x6c"] . "\74\x2f\x68\x33\76"; if (have_rows($resources["\156\141\x6d\x65"])) { echo "\x3c\165\x6c\x3e"; while (have_rows($resources["\x6e\x61\x6d\x65"])) { the_row(); $title = get_sub_field("\x74\151\164\154\145"); $file = get_sub_field("\x66\x69\154\145"); $img = wp_get_attachment_image(get_sub_field("\111\x44")); $filetype = wp_check_filetype($file); echo "\74\154\x69\76\74\141\x20\150\x72\145\146\75\42" . $file . "\x22\40\x74\141\162\147\145\x74\75\x22\x5f\142\154\141\156\153\x22\x20\x63\x6c\141\x73\x73\x3d\42" . $filetype["\145\170\164"] . "\42\x3e" . get_filetype_favicon($filetype["\x65\170\x74"]) . "\40" . $title . "\74\x2f\x61\x3e\74\x2f\x6c\x69\x3e"; } echo "\x3c\x2f\165\154\76"; } echo "\x3c\x2f\144\x69\x76\76"; } } goto HjeJD; Vtam5: function update_articles_comment_status($diav_id, $comment_status) { $posts = get_diav_articles_bytag($diav_id); if (!$posts) { return; } if (!is_valid_comment_status($comment_status)) { error_log("\111\x6e\166\141\154\x69\144\40\x63\x6f\x6d\x6d\145\x6e\164\x20\x73\x74\141\x74\x75\x73\x3a\x20" . $comment_status . "\x2e\40\122\145\x74\165\x72\x6e\151\x6e\147\x2e\x2e\56"); return; } $update_args = array("\x49\104" => 0, "\x70\x6f\x73\164\137\x64\141\164\145" => '', "\160\157\x73\x74\x5f\x73\164\141\x74\165\163" => '', "\x70\x6f\163\x74\137\164\171\160\145" => "\141\162\x74\151\x63\x6c\145", "\160\x6f\x73\x74\137\164\151\164\x6c\x65" => '', "\x70\157\x73\164\x5f\156\141\x6d\x65" => '', "\x70\157\163\164\x5f\155\x6f\144\151\x66\151\145\x64" => '', "\160\157\163\164\x5f\x63\x6f\x6e\164\145\x6e\164" => '', "\x70\x6f\163\164\x5f\143\157\156\x74\145\156\x74\x5f\x66\x69\154\164\145\x72\x65\x64" => '', "\x70\x6f\163\x74\137\x65\x78\x63\x65\x72\x70\x74" => '', "\143\x6f\x6d\155\145\x6e\x74\x5f\x73\164\141\164\x75\163" => $comment_status, "\x70\151\156\x67\x5f\163\x74\141\164\x75\163" => '', "\x70\157\163\164\137\x70\141\163\163\x77\x6f\x72\144" => '', "\164\157\137\x70\x69\156\x67" => '', "\160\151\156\x67\145\144" => '', "\160\157\x73\164\x5f\x70\141\x72\x65\156\x74" => '', "\155\145\x6e\165\137\x6f\x72\x64\145\x72" => '', "\x70\157\x73\x74\x5f\155\x69\155\x65\x5f\x74\x79\x70\145" => '', "\147\x75\151\144" => ''); foreach ($posts as $post) { $tmpPost = null; $tmpPost = get_post($post->ID); $update_args["\x49\x44"] = $post->ID; $update_args["\160\157\163\164\x5f\144\x61\164\x65"] = $tmpPost->post_date; $update_args["\160\157\x73\164\137\x73\164\141\x74\165\163"] = $tmpPost->post_status; $update_args["\x70\157\x73\x74\x5f\x74\x69\x74\154\145"] = $tmpPost->post_title; $update_args["\160\x6f\x73\164\137\156\141\x6d\145"] = $tmpPost->post_name; $update_args["\160\x6f\163\x74\137\x6d\x6f\144\x69\146\151\x65\x64"] = $tmpPost->post_modified; $update_args["\x70\x6f\x73\x74\137\143\157\156\x74\x65\x6e\x74"] = $tmpPost->post_content; $update_args["\x70\157\163\x74\137\143\157\x6e\x74\145\156\x74\x5f\146\x69\x6c\x74\145\162\145\144"] = $tmpPost->post_content_filtered; $update_args["\x70\x6f\163\x74\137\x65\x78\143\145\x72\x70\164"] = $tmpPost->post_excerpt; $update_args["\160\x69\x6e\x67\137\x73\x74\x61\x74\165\163"] = $tmpPost->ping_status; $update_args["\x70\157\x73\x74\137\x70\x61\163\163\x77\157\162\144"] = $tmpPost->post_password; $update_args["\x74\157\x5f\x70\151\156\x67"] = $tmpPost->to_ping; $update_args["\160\x69\x6e\x67\x65\x64"] = $tmpPost->pinged; $update_args["\x70\157\163\164\137\x70\141\162\145\156\x74"] = $tmpPost->post_parent; $update_args["\155\145\x6e\x75\x5f\x6f\x72\144\x65\162"] = $tmpPost->menu_order; $update_args["\x70\x6f\163\x74\x5f\155\x69\155\x65\137\164\171\160\145"] = $tmpPost->post_mime_type; $update_args["\147\165\x69\x64"] = $tmpPost->guid; $tmp = wp_insert_post($update_args); } } goto YCkWN; tCYtg: function display_articles_related($atts) { $attributes = shortcode_atts(array("\151\144" => ''), $atts); $diavouleusi = get_field("\144\151\141\x76\157\x75\x6c\145\x75\x73\151", $attributes["\x69\x64"]); print_diavouleusi_articles($diavouleusi, false); } goto ckDZM; Z2Lp0: function update_diavouleusi($post_id) { global $post_type; if ("\144\x69\x61\x76\x6f\165\154\145\x75\x73\x69" !== $post_type) { return; } error_log("\x49\156\40\x75\160\144\x61\164\145\137\144\151\x61\166\x6f\x75\x6c\145\165\x73\x69"); if (defined("\122\105\123\124\137\x52\x45\x51\x55\x45\x53\124") && REST_REQUEST) { return; } if (wp_is_post_revision($post_id) || wp_is_post_autosave($post_id)) { return; } $tag_name = get_diavouleusi_tagname($post_id); $tag_exists = term_exists($tag_name, "\x70\x6f\163\164\x5f\164\141\147"); $tag_changed = true; if (!$tag_exists) { $tmp = wp_insert_term($tag_name, "\x70\157\163\x74\137\x74\141\147"); if ($tmp) { error_log("\x54\x41\107\40\103\x52\x45\x41\x54\x45\x44\x3a\40" . $tag_name . "\x20\x50\117\123\x54\40\151\144\x3a\x20" . $post_id); } } else { $posttags = get_the_tags($post_id); if ($posttags) { foreach ($posttags as $tag) { error_log("\x54\141\147\x3a\x20" . $tag->name); if ($tag->name == $tag_name) { $tag_changed = false; break; } } } } error_log("\124\101\x47\40\x43\x48\x41\116\x47\105\72\40" . $tag_changed); $currPostDate = get_the_date("\131\x2d\155\x2d\144\x20\110\72\x69\72\163", $post_id); $startDate = strtotime(get_field("\x73\164\141\x72\x74\137\144\x61\x74\145", $post_id)); $newPostDate = date("\131\x2d\x6d\55\x64\40\x48\72\x69\x3a\163", $startDate); $start_date_changed = $newPostDate != $currPostDate; $currPostStatus = get_post_status($post_id); $newPostStatus = calculate_diav_post_status($post_id); $status_changed = $newPostStatus != $currPostStatus; $tmpPost = get_post($post_id); $currCommentStatus = $tmpPost->comment_status; $newCommentStatus = calculate_comment_status($post_id); $comments_changed = $newCommentStatus != $currCommentStatus; if ($comments_changed) { error_log("\x43\157\x6d\x6d\x65\156\164\40\163\164\x61\x74\165\x73\x20\143\150\x61\156\147\x65\144\40\x74\x6f\x20" . $newCommentStatus); } if ($start_date_changed || $status_changed || $comments_changed || $tag_changed) { $update_args = array("\111\x44" => $post_id, "\160\157\163\164\x5f\144\x61\164\x65" => $newPostDate, "\x70\x6f\x73\x74\x5f\144\141\164\x65\137\147\155\164" => gmdate("\131\x2d\x6d\x2d\144\40\110\x3a\x69\72\x73", $startDate), "\x63\x6f\155\155\x65\156\x74\137\x73\x74\x61\x74\x75\163" => $newCommentStatus, "\x70\157\163\x74\137\163\164\141\164\165\x73" => $newPostStatus, "\164\141\x67\x73\137\x69\156\x70\165\164" => $tag_name); remove_action("\x61\143\x66\x2f\163\141\166\145\137\160\157\x73\164", "\142\165\x69\154\x64\137\x64\151\141\x76\157\165\154\145\165\x73\x69"); wp_update_post($update_args, false, true); add_action("\x61\x63\x66\x2f\x73\x61\166\145\137\160\x6f\163\164", "\x62\x75\x69\x6c\144\x5f\144\x69\x61\x76\x6f\x75\154\x65\x75\x73\151"); } update_diavouleusi_status($post_id); $articlesUpdated = update_diav_articles($post_id, $newPostDate, $newPostStatus, $newCommentStatus); if ($articlesUpdated == 0) { create_diavouleusi_articles($post_id, $newPostDate, $newPostStatus, $newCommentStatus); } } goto Jvdum; QHvnJ: function plugin_dependencies_activate() { if (!is_plugin_active("\141\x64\x76\141\x6e\143\145\144\55\x63\165\x73\164\x6f\x6d\x2d\146\x69\x65\154\x64\x73\x2f\x61\143\146\56\x70\x68\160") and current_user_can("\x61\x63\x74\x69\166\141\164\x65\137\160\x6c\165\x67\x69\156\x73")) { wp_die("\123\157\x72\162\x79\x2c\x20\x62\x75\x74\x20\164\x68\151\163\40\x70\x6c\165\x67\151\156\40\x72\145\x71\165\x69\x72\x65\163\40\164\150\145\x20\x70\x6c\165\147\x69\156\x73\40\42\x43\165\x73\x74\x6f\x6d\40\x50\x6f\x73\x74\x20\124\171\160\x65\x20\x55\111\x22\40\141\156\144\40\x22\101\x64\166\141\156\143\x65\144\40\x43\x75\x73\x74\x6f\x6d\x20\106\x69\145\154\x64\x73\x22\x20\x74\x6f\40\142\x65\40\x69\156\x73\x74\141\154\x6c\x65\x64\x20\141\x6e\144\x20\x61\143\164\151\166\145\x2e\40\74\142\x72\x3e\x3c\x61\40\x68\162\145\x66\x3d\x22" . admin_url("\x70\154\165\147\151\156\x73\x2e\160\x68\x70") . "\42\x3e\x26\x6c\141\x71\x75\157\x3b\40\122\x65\164\165\x72\156\x20\164\x6f\x20\x50\154\165\x67\x69\x6e\163\74\57\x61\x3e"); } } goto ZpOt9; YCYlT: add_action("\163\x63\150\145\x64\165\x6c\x65\137\144\x69\141\x76\x6f\165\154\x65\x75\163\151\x5f\x65\156\x64", "\165\x70\x64\141\164\x65\x5f\x64\151\x61\166\157\165\x6c\145\x75\x73\x69\x5f\145\x6e\144\164\151\x6d\145\x5f\145\x76\145\156\x74", 10, 3); goto NJ6Au; uOs8r: function get_diavouleusi_comment_count($diav_id) { $total = 0; $total = get_comments_number($diav_id); $articles = get_diav_articles_bytag($diav_id); foreach ($articles as $article) { $total = $total + get_comments_number($article->ID); } return $total; } goto uA183; ESXwZ: function filter_own_diavouleuseis($args, $field, $post_id) { $user_id = get_current_user_id(); if (current_user_can("\145\144\151\x74\137\x6f\x74\x68\x65\162\x73\x5f\160\157\163\x74\163")) { return $args; } $args = array("\141\165\164\150\157\x72" => $user_id, "\x70\x6f\x73\x74\137\x74\171\x70\x65" => "\x64\x69\141\166\x6f\x75\154\x65\x75\x73\x69"); return $args; } goto xQzbi; HjeJD: add_shortcode("\x64\x69\141\x76\x6f\x75\x6c\x65\x75\x73\151\x5f\162\x65\163\165\154\x74\x73", "\x64\151\x73\x70\x6c\x61\171\x5f\x64\151\141\166\157\x75\154\145\x75\x73\151\137\x72\145\x73\165\x6c\x74\163"); goto UZiYd; qz2s1: function generate_comments_xls($diav_id) { if (!$diav_id) { return null; } $comments = get_diavouleusi_comments($diav_id); if (!$comments) { return -1; } $data = array(array("\x43\157\x6d\155\145\x6e\164\111\x44", "\120\157\163\164", "\x41\165\164\150\157\162", "\104\141\164\x65", "\103\x6f\x6e\x74\145\156\164")); foreach ($comments as $comment) { if ($comment->comment_approved) { $tmpPost = get_post($comment->comment_post_ID); array_push($data, array($comment->comment_ID, $tmpPost->post_title, $comment->comment_author, $comment->comment_date, $comment->comment_content)); } } $path = wp_upload_dir(); $filename = "\x64\x69\x61\166" . $diav_id . "\137\143\157\x6d\x6d\x65\x6e\x74\163\x2e\x78\x6c\x73"; $f = fopen($path["\x70\x61\164\x68"] . "\57" . $filename, "\167"); if ($f === false) { die("\105\x72\162\x6f\162\x20\157\160\x65\156\x69\x6e\147\x20\164\x68\x65\x20\x66\x69\154\x65\x20" . $filename); } fputs($f, header("\x43\157\156\164\145\x6e\x74\55\x44\151\163\x70\x6f\x73\x69\164\151\x6f\156\72\40\141\x74\x74\141\x63\x68\155\145\x6e\164\x3b\x20\x66\151\x6c\145\156\141\155\x65\x3d\42{$file_name}\42")); fputs($f, header("\x43\x6f\156\164\x65\x6e\x74\55\124\171\160\145\72\x20\141\160\x70\x6c\151\143\x61\164\x69\157\156\57\x76\156\144\56\x6d\163\55\145\x78\143\145\x6c")); $column_names = false; foreach ($data as $row) { if (!$column_names) { fputs($f, implode("\11", array_keys($row)) . "\xa"); $column_names = true; } array_walk($row, "\x66\151\x6c\164\145\162\137\x78\154\163\x5f\144\141\x74\141"); fputs($f, implode("\11", array_values($row)) . "\12"); } fclose($f); return $path["\x75\162\x6c"] . "\x2f" . $filename; } goto kOINK; BPvyy: add_filter("\x61\143\146\x2f\x75\160\144\141\x74\x65\x5f\166\141\154\165\145\x2f\x6e\x61\x6d\145\75\x73\x74\141\162\164\x5f\x64\x61\164\x65", "\165\160\x64\x61\164\x65\x5f\x73\164\x61\x72\164\137\x64\x61\164\145", 10, 3); goto LzQsZ; DVHTb: function print_diavouleusi_articles($diav_id, $with_comments = true) { $posts = get_diav_articles_bytag($diav_id); if ($posts != null) { echo "\74\150\63\40\143\154\141\x73\163\75\x22\x64\x69\x61\x76\x2d\x68\145\x61\x64\x69\156\147\x22\x3e\xce\240\xce\xb5\xcf\201\316\xb9\xce\xb5\317\207\317\214\xce\xbc\xce\265\xce\275\xce\261\x3c\57\x68\63\x3e"; echo "\74\x74\141\142\x6c\145\x3e"; foreach ($posts as $post) { echo "\74\x74\162\x3e\x3c\x74\x64\76\x3c\141\40\x68\x72\145\x66\75\42" . get_permalink($post) . "\42\x3e" . $post->post_title . "\74\57\x61\76\74\57\164\x64\x3e"; if ($with_comments) { echo "\x3c\164\144\x3e\74\x69\40\141\x72\151\141\55\x68\151\144\x64\x65\156\75\x22\x74\162\x75\145\x22\x20\x63\x6c\141\163\163\75\x22\x66\141\x73\x20\x66\x61\x2d\143\x6f\155\155\x65\x6e\164\163\42\76\x3c\57\x69\x3e\x20" . $post->comment_count; if ($post->comment_count == 1) { echo "\x20\xcf\203\xcf\x87\xcf\x8c\316\xbb\316\xb9\316\xbf\x3c\x2f\x74\x64\x3e"; } else { echo "\40\xcf\x83\317\207\xcf\214\xce\xbb\xce\271\xce\261\74\57\164\x64\x3e"; } echo "\74\x2f\x74\x72\x3e"; } } echo "\74\x2f\x74\141\x62\154\x65\x3e"; } else { echo "\116\157\x20\160\157\163\164\x73"; } } goto g37CM; iKUR3: function register_hourly_update_diavouleuseis_event() { if (!wp_next_scheduled("\165\x70\144\x61\164\x65\137\144\151\141\x76\x6f\165\x6c\145\165\163\x65\151\163\x36")) { wp_schedule_event(time(), "\150\x6f\165\162\x6c\171", "\x75\x70\x64\141\164\145\137\144\x69\x61\166\157\165\x6c\x65\165\x73\145\151\x73\66"); } } goto Rgqrj; ESPZk: function get_articles_link($diavouleusi_id) { $tagname = get_diavouleusi_tagname($diavouleusi_id); $link = get_admin_url() . "\57\145\x64\x69\164\x2e\160\x68\160\77\160\157\x73\164\x5f\164\x79\160\x65\75\x61\x72\x74\151\x63\x6c\x65\x26\x74\141\147\75" . $tagname . "\46\x6f\162\144\x65\162\x62\171\x3d\x74\151\x74\154\145\46\x6f\x72\x64\145\162\x3d\x61\x73\143"; return $link; } goto EK_p8; J228e: function generate_comments_csv($diav_id) { if (!$diav_id) { return null; } $comments = get_diavouleusi_comments($diav_id); if (!$comments) { return -1; } $data = array(array("\x43\157\x6d\x6d\145\156\x74\x49\x44", "\x50\x6f\163\164", "\x41\x75\x74\150\157\162", "\x44\x61\164\145", "\103\x6f\156\164\145\x6e\164")); foreach ($comments as $comment) { if ($comment->comment_approved) { $tmpPost = get_post($comment->comment_post_ID); array_push($data, array($comment->comment_ID, $tmpPost->post_title, $comment->comment_author, $comment->comment_date, $comment->comment_content)); } } $path = wp_upload_dir(); $filename = "\144\151\x61\x76" . $diav_id . "\x5f\143\157\x6d\155\x65\x6e\164\x73\x2e\143\x73\166"; $f = fopen($path["\160\141\164\x68"] . "\57" . $filename, "\x77"); if ($f === false) { die("\x45\162\162\157\162\x20\157\x70\145\156\x69\156\147\x20\x74\150\145\40\146\x69\154\145\x20" . $filename); } fputs($f, "\xef\xbb\277"); foreach ($data as $row) { fputcsv($f, $row); } fclose($f); return $path["\165\162\154"] . "\x2f" . $filename; } goto qz2s1; TFErE: function gnstl_deliberate() { $chosen = say_hello(); $lang = ''; if ("\x65\x6e\x5f" !== substr(get_user_locale(), 0, 3)) { $lang = "\40\154\x61\x6e\147\x3d\x22\145\x6e\42"; } printf("\74\160\40\151\144\75\x22\147\145\156\x65\163\x74\151\x61\x6c\42\x3e\x3c\x73\x70\x61\156\x20\143\x6c\x61\163\x73\x3d\42\x73\x63\x72\x65\x65\x6e\x2d\x72\x65\141\x64\145\162\55\x74\145\x78\x74\42\x3e\x25\x73\40\74\57\x73\x70\x61\x6e\76\x3c\x73\160\141\156\40\x64\x69\162\x3d\x22\x6c\x74\x72\42\x25\163\76\45\163\x3c\x2f\163\160\141\156\x3e\x3c\x2f\160\x3e", __("\107\145\x6e\x65\163\x74\x69\141\x6c\72", "\147\x6e\163\x74\x6c\x2d\144\145\154\151\142\x65\x72\141\x74\x65"), $lang, $chosen); } goto eH5up; LfuF0: add_action("\167\x70\137\164\162\x61\163\150\137\x70\x6f\163\x74", "\x74\x72\141\x73\x68\137\x64\151\x61\166\x6f\165\154\145\165\163\x69\x5f\141\162\x74\151\x63\154\x65\163"); goto Lu60v; FPNnq: add_filter("\x61\x63\146\x2f\x76\x61\x6c\x69\144\x61\164\145\x5f\x76\141\154\x75\145\x2f\x6e\x61\x6d\x65\75\145\156\144\x5f\144\141\164\145", "\x76\x61\x6c\x69\144\x61\164\x65\137\x65\156\x64\x5f\x64\x61\x74\145", 10, 4); goto ghhd5; VPhMM: add_filter("\x61\x63\x66\57\x76\141\154\151\144\x61\164\x65\x5f\x76\141\154\x75\x65\x2f\x6e\x61\155\145\x3d\x6e\x75\155\137\141\x72\164\151\x63\154\145\x73", "\166\141\154\x69\x64\x61\x74\145\137\156\165\x6d\137\141\162\x74\151\x63\x6c\x65\163", 10, 4); goto g6LeK; suj3a: function get_diavouleusi_author($diav_id) { $author_id = get_post_field("\160\x6f\x73\164\137\x61\x75\164\x68\157\x72", $diav_id); return get_the_author_meta("\144\151\x73\x70\x6c\141\x79\137\x6e\141\155\x65", $author_id); } goto LCHm5; LuWBx: add_shortcode("\x64\x69\x61\166\157\165\x6c\145\x75\163\151\x5f\x61\x72\x74\x69\x63\x6c\145\163", "\x64\x69\163\160\x6c\141\171\x5f\x64\x69\x61\166\157\165\154\x65\165\x73\151\137\x61\162\164\x69\x63\154\x65\x73"); goto pPM4h; f3oJG: function set_post_comment_status($post_id, $status = "\x6f\160\145\x6e") { global $wpdb; $wpdb->update($wpdb->prefix . "\x70\157\x73\x74\163", array("\143\x6f\155\155\145\156\164\137\x73\164\x61\164\165\163" => $status), array("\x49\104" => $post_id)); } goto MkiZF; FusFu: function get_filetype_favicon($ext) { if ($ext == "\x70\x64\146") { return "\x3c\151\x20\x63\154\x61\163\163\75\42\146\x61\163\40\146\141\x2d\x66\x69\154\145\x2d\x70\x64\146\42\x3e\x3c\57\151\76"; } else { if ($ext == "\144\x6f\143" || $ext == "\x64\x6f\x63\x78") { return "\74\x69\40\143\154\x61\x73\x73\x3d\42\x66\x61\x73\40\146\x61\x2d\x66\x69\154\x65\x2d\x77\x6f\162\x64\x22\76\x3c\57\x69\x3e"; } else { if ($ext == "\x78\x6c\163" || $ext == "\170\x6c\x73\170") { return "\x3c\151\x20\x63\x6c\141\x73\x73\x3d\42\x66\x61\163\40\146\141\x2d\146\x69\x6c\145\55\145\x78\x63\x65\154\x22\76\74\57\151\76"; } } } } goto z4Mlp; EK_p8: function get_diavouleusi_tagname($post_id) { return "\144\151\x61\166\55" . $post_id; } goto FusFu; qf2p2: function has_ended($diav_id) { $curr_time = current_time("\x59\x2d\x6d\x2d\144\40\x48\x3a\x69\x3a\x73"); $end_date = date("\131\x2d\x6d\55\144\x20\x48\72\151\x3a\163", strtotime(get_field("\145\x6e\144\x5f\x64\x61\164\145", $diav_id))); if ($end_date <= $curr_time) { return true; } return false; } goto X9xig; nNphe: function calculate_comment_status($diav_id) { $comment_status = "\x63\154\x6f\x73\x65\144"; $diav_status = get_diavouleusi_status($diav_id); if ($diav_status == "\x41\143\x74\x69\x76\145") { $comment_status = "\157\x70\x65\x6e"; } return $comment_status; } goto uOs8r; j6uLm: function display_article_diav($atts) { $attributes = shortcode_atts(array("\x69\144" => ''), $atts); $diavouleusi = get_field("\x64\x69\141\166\157\165\x6c\x65\165\163\151", $attributes["\151\x64"]); $title = get_the_title($diavouleusi); return "\x3c\144\x69\x76\x20\x63\x6c\x61\163\163\75\42\x64\x69\141\166\x2d\x74\151\164\x6c\145\x2d\x69\x6e\x61\162\164\x69\143\154\x65\x22\76" . $title . "\74\x2f\x64\151\x76\76"; } goto rTFJW; Jvdum: add_action("\x61\143\146\57\x73\141\166\x65\x5f\160\x6f\163\x74", "\x75\x70\x64\141\x74\145\137\144\151\x61\166\x6f\165\154\145\x75\x73\x69"); goto JFiCQ; YgADs: function update_newstatus_field($field) { $post = get_post(); $field["\155\145\163\163\x61\147\145"] = get_diavouleusi_status($post->ID); return $field; } goto YZtmr; uA183: function is_valid_comment_status($status) { if ($status == "\143\154\x6f\163\x65\x64" || status == "\157\160\145\156") { return true; } return false; } goto zmZdY; uFneL: function get_diavouleusi_comments($diav_id) { $comments_all = get_comments(array("\160\x6f\163\x74\x5f\151\144" => $diav_id)); $articles = get_diav_articles_bytag($diav_id); foreach ($articles as $article) { $tmp_comments = null; $tmp_comments = get_comments(array("\160\157\163\x74\137\151\x64" => $article->ID)); if ($tmp_comments) { foreach ($tmp_comments as $comment) { array_push($comments_all, $comment); } } } return $comments_all; } goto J228e; JkIJv: add_action("\163\143\x68\145\144\x75\154\145\x5f\144\151\x61\x76\157\x75\x6c\145\x75\x73\151\137\163\x74\141\x72\164", "\165\x70\x64\x61\x74\x65\x5f\x64\151\x61\166\x6f\165\154\x65\x75\163\151\x5f\x73\x74\141\x72\x74\x74\151\x6d\145\137\145\166\145\x6e\x74", 10, 3); goto z0j_6; kOINK: function filter_xls_data(&$str) { $str = preg_replace("\x2f\11\x2f", "\134\x74", $str); $str = preg_replace("\57\15\77\xa\57", "\134\156", $str); if (strstr($str, "\42")) { $str = "\x22" . str_replace("\x22", "\x22\x22", $str) . "\42"; } } goto DVHTb; vr5ff: function display_diavouleusi_themes($atts) { $attributes = shortcode_atts(array("\151\144" => ''), $atts); return get_diavouleusi_themes($attributes["\151\144"]); } goto eR9CG; RuNcy: function gnstl_register_my_taxes() { $labels = array("\x6e\x61\x6d\145" => esc_html__("\316\230\316\265\xce\274\316\261\xcf\x84\316\xb9\xce\xba\xce\255\xcf\202\40\xce\x95\xce\xbd\317\x8c\317\204\xce\xb7\xcf\x84\xce\xb5\317\x82", "\x6a\x61\156\156\x61\x68\143\150\x69\x6c\x64"), "\163\x69\156\x67\165\154\141\162\137\156\141\x6d\x65" => esc_html__("\xce\x98\xce\xb5\xce\xbc\316\261\xcf\204\xce\xb9\xce\272\316\256\40\xce\225\316\275\317\214\xcf\x84\316\267\317\x84\xce\xb1", "\152\141\156\x6e\x61\150\x63\150\151\154\144")); $args = array("\154\x61\x62\145\x6c" => esc_html__("\xce\x98\316\xb5\xce\xbc\xce\261\317\x84\xce\xb9\316\272\xce\255\317\x82\x20\xce\225\316\275\317\214\317\204\316\267\xcf\x84\316\xb5\xcf\202", "\152\141\156\156\141\x68\x63\150\151\154\x64"), "\x6c\x61\142\145\x6c\163" => $labels, "\160\165\142\x6c\151\x63" => true, "\160\165\142\x6c\x69\x63\154\x79\x5f\x71\165\x65\x72\171\141\142\154\145" => true, "\x68\151\x65\x72\x61\x72\143\x68\x69\x63\x61\x6c" => true, "\163\x68\x6f\167\x5f\x75\151" => true, "\x73\x68\157\x77\137\x69\x6e\137\x6d\145\x6e\x75" => true, "\x73\150\x6f\x77\x5f\x69\156\137\x6e\x61\166\137\155\x65\156\165\x73" => true, "\161\165\145\x72\x79\137\x76\x61\162" => true, "\x72\x65\167\x72\151\x74\x65" => array("\x73\x6c\x75\x67" => "\144\154\142\137\164\150\145\155\x65", "\167\151\x74\x68\137\x66\x72\x6f\156\x74" => true), "\163\150\157\167\137\x61\144\155\151\x6e\137\143\157\154\165\x6d\156" => true, "\x73\x68\x6f\x77\137\x69\156\x5f\162\145\x73\x74" => true, "\163\150\x6f\167\137\x74\x61\x67\143\x6c\157\x75\144" => false, "\x72\x65\163\164\137\142\x61\163\145" => "\144\x6c\142\x5f\164\150\x65\155\x65", "\x72\145\x73\x74\137\143\157\x6e\164\162\x6f\154\154\145\162\x5f\x63\154\141\163\x73" => "\x57\120\x5f\122\x45\x53\x54\x5f\124\145\162\x6d\x73\137\103\x6f\x6e\x74\162\157\x6c\x6c\x65\162", "\x72\145\163\164\x5f\156\x61\155\x65\x73\160\141\143\145" => "\167\160\57\x76\x32", "\163\150\x6f\167\x5f\x69\x6e\x5f\161\x75\x69\x63\x6b\137\145\144\x69\164" => false, "\163\x6f\162\x74" => false, "\163\150\x6f\167\x5f\x69\x6e\137\x67\162\141\160\x68\x71\x6c" => false); register_taxonomy("\x64\x6c\x62\137\164\x68\x65\155\x65", array("\144\151\x61\166\157\x75\154\145\165\163\x69"), $args); $labels = array("\156\x61\x6d\145" => esc_html__("\316\225\xce\xaf\316\264\xce\267\40\316\224\xce\271\316\261\316\262\xce\xbf\xcf\x8d\316\273\xce\265\317\x85\xcf\203\316\xb7\317\202", "\152\x61\156\156\x61\x68\x63\150\x69\154\144"), "\x73\151\x6e\x67\x75\154\x61\x72\137\x6e\x61\x6d\145" => esc_html__("\316\225\316\257\316\264\316\xbf\317\202\40\xce\x94\xce\271\316\xb1\316\xb2\316\xbf\xcf\x8d\316\273\316\265\xcf\x85\xcf\x83\xce\xb7\317\202", "\x6a\x61\156\x6e\x61\x68\143\150\151\154\144")); $args = array("\154\x61\x62\145\154" => esc_html__("\xce\225\xce\257\xce\264\xce\xb7\40\xce\224\316\271\316\xb1\xce\262\xce\277\317\215\316\xbb\xce\265\xcf\x85\xcf\x83\xce\267\317\202", "\x6a\x61\156\156\141\x68\143\x68\x69\154\144"), "\154\141\x62\145\154\163" => $labels, "\160\165\x62\154\x69\143" => true, "\160\165\142\154\x69\x63\154\x79\137\161\165\145\162\x79\x61\142\154\x65" => true, "\150\151\145\162\x61\162\143\x68\151\x63\x61\x6c" => true, "\x73\150\x6f\x77\137\165\151" => true, "\163\150\157\167\137\151\x6e\x5f\x6d\x65\156\165" => true, "\163\150\157\167\137\151\156\137\156\141\166\x5f\155\x65\x6e\165\163" => true, "\161\x75\x65\x72\x79\x5f\x76\141\162" => true, "\x72\x65\x77\x72\151\164\x65" => array("\163\x6c\x75\147" => "\144\x6c\142\x5f\x74\171\160\145", "\167\x69\164\150\137\146\162\157\x6e\164" => true), "\163\150\x6f\167\137\141\x64\x6d\151\x6e\x5f\143\157\x6c\165\155\156" => true, "\163\150\x6f\167\137\151\156\137\x72\x65\163\x74" => true, "\x73\150\x6f\x77\137\164\x61\x67\x63\154\157\165\x64" => false, "\x72\x65\x73\x74\x5f\142\x61\163\145" => "\x64\154\142\x5f\x74\x79\x70\x65", "\162\x65\x73\x74\x5f\143\x6f\156\x74\162\157\154\x6c\x65\162\x5f\143\154\141\x73\163" => "\x57\120\x5f\122\105\x53\x54\x5f\124\x65\162\x6d\163\137\103\157\156\x74\162\157\x6c\x6c\145\162", "\x72\x65\x73\164\137\156\141\155\145\163\x70\x61\x63\x65" => "\167\x70\57\166\x32", "\x73\x68\157\x77\x5f\151\156\x5f\x71\x75\151\x63\x6b\x5f\145\x64\151\164" => false, "\163\x6f\x72\x74" => false, "\163\150\x6f\x77\137\x69\x6e\x5f\147\162\x61\160\150\x71\x6c" => false); register_taxonomy("\x64\154\142\137\164\171\160\x65", array("\x64\151\x61\166\157\x75\x6c\x65\165\x73\151"), $args); } goto ddMAG; I0JJi: function update_start_date($value, $post_id, $field) { $start_date = strtotime(get_field("\163\164\141\x72\164\x5f\144\x61\164\145", $post_id)); $old_value = date("\x59\55\x6d\55\144\40\x48\72\151\x3a\x73", $start_date); $new_value = $_POST["\141\143\146"]["\x66\151\145\154\144\137\66\x30\142\x37\62\x34\x63\x35\67\144\x31\x62\71"]; if ($old_value != $new_value) { error_log("\123\x54\x41\x52\124\40\x44\x41\124\x45\x20\x63\150\141\156\x67\145\x64\x20\x66\x72\157\155\x20" . $old_value . "\40\164\x6f\40" . $new_value . "\x20\164\151\155\145\163\x74\x61\155\160\72\40" . strtotime($new_value)); $timezone = "\105\165\162\157\x70\145\x2f\x41\x74\150\145\156\163"; $new_date = new DateTime($new_value, new DateTimeZone($timezone)); $new_timestamp = $new_date->format("\125"); $old_timestamp = wp_next_scheduled("\163\143\150\x65\144\165\154\x65\x5f\144\x69\141\166\x6f\165\x6c\145\165\163\x69\x5f\x73\x74\x61\x72\x74"); error_log("\x45\x78\151\x73\164\x69\x6e\147\40\163\143\x68\x65\144\x75\154\x65\x3a\40" . $old_timestamp); if ($old_timestamp) { error_log("\125\156\163\143\x68\x65\x64\165\x6c\x69\x6e\147\x20\145\166\145\156\x74"); wp_unschedule_event($old_timestamp, "\163\x63\x68\x65\x64\165\154\145\x5f\x64\151\141\166\157\165\x6c\x65\165\163\x69\x5f\x73\164\x61\x72\164", array($post_id)); } wp_schedule_single_event($new_timestamp, "\x73\x63\150\145\x64\165\154\145\x5f\144\x69\x61\166\x6f\x75\154\x65\165\163\x69\x5f\163\x74\x61\162\x74", array($post_id)); } else { error_log("\x53\x54\x41\x52\x54\x20\104\101\x54\105\x20\x64\151\144\156\x74\40\143\x68\x61\x6e\147\x65"); } return $value; } goto BPvyy; gigZQ: function has_correct_comment_status($diav_id) { $diav_status = get_diavouleusi_status($diav_id); $diav_post = get_post($diav_id); $comment_status = $diav_post->comment_status; if ($diav_status == "\x41\x63\x74\151\x76\x65") { if ($comment_status == "\x63\154\x6f\163\x65\144") { return false; } return true; } else { if ($comment_status == "\x6f\160\x65\156") { return false; } return true; } } goto qf2p2; nb4GL: function delete_diavouleusi_articles($post_id) { global $post_type; if ("\144\x69\x61\166\157\x75\154\145\165\x73\151" !== $post_type) { return; } error_log("\104\145\x6c\x65\164\145\40\x61\x72\164\151\143\154\145\x73\x20\x68\x65\x72\145"); $posts = get_diav_articles_bytag($post_id); $count = 0; if ($posts) { foreach ($posts as $post) { wp_delete_post($post->ID); $count += 1; } } else { $posts_trashed = get_diav_articles_bytag($post_id, true); if ($posts_trashed) { foreach ($posts_trashed as $post_t) { wp_delete_post($post_t->ID); $count += 1; } } } error_log("\x41\162\x74\151\x63\154\x65\x73\x20\144\x65\x6c\x65\164\x65\144\x3a\40" . $count); $tagname_todelete = get_diavouleusi_tagname($post_id); $diav_tag = get_term_by("\x6e\141\155\x65", $tagname_todelete, "\160\x6f\163\164\137\164\x61\x67"); if ($diav_tag) { error_log("\x54\145\162\x6d\x20\164\157\x20\144\145\x6c\145\164\145\72\x20" . $tagname_todelete . "\40\111\104\x3a\40" . $diav_tag->term_id); wp_delete_term($diav_tag->term_id, "\160\157\163\164\137\164\x61\x67"); error_log("\124\145\162\155\x20\x64\145\154\x65\164\x65\144"); } } goto rzM8F; xQzbi: add_filter("\141\143\146\x2f\x66\x69\x65\x6c\x64\163\x2f\x70\157\x73\164\137\157\142\152\x65\143\x74\57\x71\x75\x65\162\171\x2f\x6e\x61\x6d\145\75\144\x69\x61\166\x6f\x75\x6c\145\165\163\151", "\146\151\x6c\x74\145\x72\x5f\x6f\167\x6e\137\144\151\141\166\x6f\x75\x6c\145\x75\163\145\x69\163", 10, 3); goto US6aO; h43LL: function gnstl_profile_admin_css() { $screen_id = isset(get_current_screen()->id) ? get_current_screen()->id : null; if ("\x70\162\x6f\146\x69\x6c\145" === $screen_id || "\x75\x73\x65\x72\55\x65\144\x69\164" === $screen_id) { wp_enqueue_style("\160\162\x6f\x66\x69\x6c\145\55\x61\x64\155\151\x6e\55\143\x73\163", "\x2f\x77\x70\x2d\x63\x6f\156\x74\x65\156\164\57\x70\x6c\x75\147\x69\x6e\x73\x2f\x67\156\163\x74\154\55\x64\145\x6c\x69\142\x65\x72\x61\x74\145\57\x75\163\x65\x72\x70\x72\x6f\146\x69\154\145\56\x63\163\x73"); } } goto FAArC; kSeDv: add_shortcode("\144\151\141\x76\x6f\165\x6c\x65\x75\163\x69\137\x72\x65\163\157\165\x72\x63\145\x73", "\x64\x69\x73\160\x6c\141\x79\137\x64\x69\141\166\x6f\165\154\x65\165\163\x69\137\x72\145\163\157\165\162\143\145\163"); goto XeIbK; LCHm5: function get_diavouleusi_rss_feed($diav_id) { $link = get_site_url() . "\x2f\146\x65\145\144\x3f\164\x61\147\x3d" . get_diavouleusi_tagname($diav_id) . "\46\x70\x6f\x73\164\137\164\x79\160\x65\x3d\144\x69\141\x76\157\x75\x6c\145\x75\163\151"; return $link; } goto gigZQ; xaucG: add_shortcode("\x64\151\x61\x76\x6f\x75\154\x65\165\163\151\x5f\164\x79\160\145\x73", "\144\151\163\x70\x6c\x61\171\137\x64\151\x61\166\157\165\x6c\x65\x75\x73\151\137\x74\171\x70\145\x73"); goto tCYtg; MrpAk: function display_diavouleusi_resources($atts) { $attributes = shortcode_atts(array("\x69\144" => ''), $atts); $resources = get_field_object("\162\145\x73\x6f\x75\x72\143\x65\163", $attributes["\151\x64"]); if ($resources) { if (have_rows($resources["\x6e\x61\155\x65"])) { echo "\x3c\x64\x69\166\x20\x63\x6c\x61\x73\163\x3d\42\x64\151\141\166\157\x75\x6c\x65\x75\163\x69\55\162\145\163\157\x75\x72\143\x65\163\x22\x3e"; echo "\x3c\150\63\x20\x63\154\x61\x73\x73\x3d\x22\144\151\x61\x76\x2d\x68\x65\141\x64\151\156\147\x22\x3e\316\xa3\317\207\316\xb5\317\204\xce\271\xce\xba\xcf\x8c\x20\316\245\xce\273\316\271\xce\xba\317\x8c\x3c\57\150\x33\x3e"; echo "\74\x75\x6c\76"; while (have_rows($resources["\156\141\155\145"])) { the_row(); $title = get_sub_field("\x74\x69\164\154\x65"); $file = get_sub_field("\146\x69\x6c\x65"); $img = wp_get_attachment_image(get_sub_field("\111\104")); $filetype = wp_check_filetype($file); echo "\x3c\x6c\x69\x3e\x3c\141\x20\x68\x72\145\x66\x3d\x22" . $file . "\x22\x20\164\141\162\x67\x65\x74\x3d\42\x5f\142\x6c\141\156\153\x22\x20\x63\154\141\163\x73\75\x22" . $filetype["\145\x78\x74"] . "\x22\76" . get_filetype_favicon($filetype["\x65\x78\x74"]) . "\40" . $title . "\74\57\141\x3e\74\x2f\x6c\151\x3e"; } echo "\x3c\x2f\x75\x6c\76"; } echo "\x3c\57\144\x69\x76\76"; } } goto kSeDv; ckDZM: add_shortcode("\141\162\164\x69\x63\154\145\x73\x5f\162\x65\x6c\141\x74\145\144", "\144\x69\x73\160\x6c\x61\171\137\141\162\164\151\143\x6c\145\163\x5f\162\145\154\x61\x74\145\x64"); goto j6uLm; z0j_6: function update_diavouleusi_endtime_event($diav_id) { error_log("\x53\x43\x48\x45\x44\x55\x4c\105\104\x20\124\141\163\x6b\40\125\x70\144\x61\x74\145\105\x6e\x64\124\x69\155\x65\40\145\170\145\x63\165\164\x65\144\40\146\157\x72\40" . $diav_id . "\x20\100\x20" . current_time("\x59\55\x6d\55\x64\x20\x48\x3a\x69\72\x73")); if (has_ended($diav_id)) { update_diavouleusi_status($diav_id); set_diavouleusi_comment_status($diav_id, "\x63\x6c\x6f\163\x65\x64"); } else { error_log("\x49\147\x6e\157\x72\151\x6e\x67\40\x65\x76\x65\x6e\164"); } } goto YCYlT; ghhd5: function validate_num_articles($valid, $value, $field, $input_name) { if ($valid !== true) { return $valid; } if ($_POST) { if ($_POST["\x70\x6f\163\164\137\x69\144"] != null) { error_log("\107\145\164\164\151\156\x67\x20\156\165\155\x41\x72\164\x69\143\x6c\x65\x73\40\x76\151\x61\40\44\x5f\120\x4f\123\x54\x20" . $_POST["\160\x6f\x73\164\137\151\144"]); $posts = get_diav_articles_bytag($_POST["\x70\x6f\163\x74\137\151\144"]); } } else { $currPost = get_post(); if ($currPost) { $posts = get_diav_articles_bytagget_diav_articles_bytag($currPost->ID); } else { error_log("\105\x72\x72\x6f\x72\x20\147\x65\x74\x74\x69\156\147\x20\x63\165\x72\x72\x65\x6e\164\40\x70\157\163\164\40\x49\104"); return; } } $actualNumArticles = 0; if ($posts) { $actualNumArticles = sizeof($posts); } error_log("\114\151\x6e\x65\x20\x36\70\70\40\101\x63\x74\x75\141\x6c\x20\x6e\x75\155\72\40" . $actualNumArticles); foreach ($posts as $post) { error_log("\x50\x6f\x73\x74\x20\x49\x44\x3a\x3a\40" . $post->ID); } if ($actualNumArticles == 0) { return $valid; } else { if ($value > $actualNumArticles) { return __("\103\150\x61\x6e\147\145\x20\x6e\165\x6d\142\x65\162\40\x74\x6f\40\x20" . $actualNumArticles . "\40\x6f\x72\x20\155\x61\x6e\x75\x61\x6c\x6c\171\40\143\162\145\x61\164\x65\x20" . ($value - $actualNumArticles) . "\40\x3c\x61\40\150\x72\x65\146\75\42" . get_articles_link($_POST["\160\x6f\x73\x74\x5f\151\x64"]) . "\42\40\164\141\x72\x67\145\x74\x3d\x22\x5f\x62\154\x61\156\153\x22\x3e\x61\162\x74\x69\143\154\x65\x28\x73\51\74\x2f\141\76\56"); } else { if ($value < $actualNumArticles) { return __("\x43\150\x61\156\x67\x65\40\156\x75\155\142\x65\162\40\x74\157\40\x20" . $actualNumArticles . "\40\157\162\x20\x6d\x61\x6e\x75\x61\x6c\x6c\171\x20\144\x65\154\x65\164\145\40" . ($actualNumArticles - $value) . "\40\x3c\141\40\x68\162\x65\146\x3d\x22" . get_articles_link($_POST["\x70\157\x73\x74\x5f\151\144"]) . "\x22\x20\164\141\162\x67\145\x74\x3d\42\137\x62\x6c\x61\156\153\42\x3e\x61\x72\x74\151\x63\154\145\50\x73\51\74\x2f\x61\x3e\56\x20\x3c\x62\162\x2f\x3e\74\145\155\76\104\157\156\47\164\x20\x64\145\x6c\x65\164\x65\x20\164\x68\x65\x20\74\142\x3e\x47\145\x6e\145\x72\x61\x6c\40\x63\x6f\x6d\155\x65\x6e\x74\x73\74\57\142\x3e\x20\141\162\164\x69\x63\x6c\145\56\x3c\57\145\155\76"); } else { return $valid; } } } } goto VPhMM; yGzF5: function update_article_tag($field) { $post = get_post(); if ("\x61\162\x74\x69\143\x6c\x65" !== get_post_type()) { return $field; } $diav_id = $_POST["\x61\x63\x66"]["\146\151\x65\x6c\x64\x5f\66\x30\x62\143\71\x33\x64\66\67\x63\71\x32\71"]; if (!$diav_id) { return $field; } error_log("\x44\102\x47\x20\x44\151\x61\166\x49\104\72\40" . $diav_id); $tag = get_diavouleusi_tagname($diav_id); if ($tag) { wp_set_post_tags($post->ID, array($tag), false); } error_log("\x54\141\x67\x73\40\141\144\x64\145\x64"); connect_article_to_diav($post->ID, $diav_id); error_log("\x53\x79\x6e\143\145\144\x20\167\x69\x74\x68\40\144\151\141\166\x6f\x75\154\145\x75\163\x69"); return $field; } goto Tnu0E; P1O7r: add_action("\165\x6e\x74\162\x61\163\x68\x5f\x70\x6f\163\x74", "\x75\x6e\x74\x72\x61\163\x68\137\x64\x69\141\166\157\x75\x6c\x65\165\x73\151\137\x61\x72\x74\151\x63\x6c\145\163"); goto nb4GL; rzM8F: add_action("\142\x65\x66\157\x72\145\137\144\x65\154\145\164\x65\x5f\x70\157\x73\164", "\144\145\154\x65\164\145\137\x64\x69\141\166\157\x75\154\145\x75\163\x69\137\141\162\x74\151\143\x6c\x65\x73"); goto Gp14y; l5bPI: add_filter("\x63\x6f\x6d\155\x65\156\164\x73\137\x63\154\x61\x75\163\x65\163", "\x67\x6e\163\x74\x6c\137\x73\x68\157\x77\137\157\x77\x6e\x70\x6f\x73\x74\x5f\143\157\155\155\x65\x6e\164\x73"); goto Z2Lp0; Tnu0E: add_filter("\x61\143\x66\57\x75\x70\144\141\164\145\x5f\x76\x61\x6c\x75\145\57\156\141\155\x65\x3d\144\x69\x61\166\x6f\165\x6c\x65\x75\163\x69", "\165\160\x64\141\x74\x65\137\141\162\x74\151\x63\154\x65\137\x74\141\147"); goto v_sBd; JJI4u: add_shortcode("\x64\x69\x61\166\x6f\165\x6c\145\165\163\x69\x5f\151\156\x74\162\157\137\146\x69\x65\154\x64\163", "\x64\151\163\160\x6c\141\x79\x5f\144\x69\141\x76\x6f\165\x6c\145\165\163\x69\x5f\151\156\164\x72\x6f\x5f\146\x69\145\154\144\163"); goto MrpAk; LzQsZ: function update_end_date($value, $post_id, $field) { $end_date = strtotime(get_field("\x65\x6e\x64\x5f\144\x61\164\x65", $post_id)); $old_value = date("\x59\x2d\x6d\55\x64\40\110\x3a\151\x3a\x73", $end_date); $new_value = $_POST["\x61\x63\146"]["\x66\x69\145\154\144\x5f\66\x30\142\x37\x32\65\x30\x30\x37\x64\61\x62\141"]; if ($old_value != $new_value) { error_log("\105\x4e\104\x20\x44\x41\x54\x45\x20\x63\x68\x61\156\147\x65\144\40\x66\x72\157\155\40" . $old_value . "\40\164\157\40" . $new_value . "\40\x74\x69\155\x65\163\164\x61\155\x70\72\40" . strtotime($new_value)); $timezone = "\105\x75\x72\x6f\x70\145\x2f\101\164\x68\145\156\x73"; $new_date = new DateTime($new_value, new DateTimeZone($timezone)); $new_timestamp = $new_date->format("\x55"); $old_timestamp = wp_next_scheduled("\163\143\x68\145\x64\x75\154\145\137\144\x69\141\x76\x6f\165\x6c\145\x75\163\151\x5f\145\x6e\144"); error_log("\x45\x78\x69\163\164\x69\x6e\x67\40\x73\143\x68\x65\x64\165\154\145\72\x20" . $old_timestamp); if ($old_timestamp) { error_log("\125\156\163\x63\150\145\144\165\x6c\151\x6e\x67\40\x65\166\x65\156\164"); wp_unschedule_event($old_timestamp, "\x73\143\150\145\144\165\154\x65\137\x64\x69\141\x76\x6f\165\x6c\145\165\163\x69\x5f\x65\156\x64", array($post_id)); } wp_schedule_single_event($new_timestamp, "\x73\x63\x68\x65\x64\165\154\145\137\144\x69\141\166\x6f\165\154\145\x75\x73\151\137\x65\156\x64", array($post_id)); } else { error_log("\x45\x4e\x44\40\104\101\x54\105\40\144\151\144\156\164\40\x63\150\141\x6e\x67\x65"); } return $value; } goto UVsYJ; yNeZU: function display_diavouleusi_intro_fields($atts) { $attributes = shortcode_atts(array("\151\144" => '', "\x69\x6e\137\x65\x78\143\x65\162\x70\164" => 1), $atts); echo get_diavouleusi_intro_fields($attributes["\x69\144"], $attributes["\151\156\x5f\145\x78\143\145\x72\160\164"]); } goto JJI4u; bmO2b: add_shortcode("\x64\x69\141\x76\157\165\154\x65\165\163\151\137\146\151\x65\x6c\144\163", "\144\151\x73\x70\154\x61\171\x5f\144\x69\141\166\157\165\x6c\x65\165\163\x69\x5f\x66\151\x65\x6c\144\x73"); goto yNeZU; Cprnd: function connect_article_to_diav($article_id, $diav_id) { $article = get_post($article_id); $diav = get_post($diav_id); if (!$diav || !$article) { error_log("\116\x6f\x20\x73\165\x63\150\x20\160\x6f\163\x74\40\x66\157\x75\156\x64"); return; } $numArticles = get_field("\x6e\165\x6d\137\x61\162\x74\151\x63\x6c\x65\163", $diav_id); $update_args = array("\x49\x44" => $article_id, "\160\x6f\x73\x74\x5f\144\141\x74\145" => $diav->post_date, "\x70\x6f\163\x74\x5f\163\164\141\x74\165\163" => $diav->post_status, "\143\x6f\155\155\145\x6e\x74\x5f\x73\x74\141\164\x75\163" => $diav->comment_status); wp_update_post($update_args); update_field("\x6e\165\x6d\x5f\141\x72\x74\x69\x63\x6c\x65\x73", $numArticles + 1, $diav_id); } goto lMN2H; rTFJW: add_shortcode("\x61\162\x74\151\x63\154\x65\137\x64\151\141\166", "\x64\x69\163\x70\154\x61\171\x5f\141\x72\x74\x69\143\154\x65\x5f\x64\x69\141\166"); goto iKUR3; UVsYJ: add_filter("\141\x63\146\57\x75\160\144\141\x74\145\137\166\x61\x6c\x75\x65\x2f\156\x61\155\145\75\x65\156\x64\x5f\x64\141\x74\x65", "\x75\x70\x64\x61\x74\145\137\x65\x6e\144\137\144\141\x74\145", 10, 3); goto yGzF5; FAArC: add_action("\141\x64\x6d\x69\x6e\137\x65\x6e\161\x75\x65\x75\x65\137\x73\x63\162\x69\160\x74\x73", "\147\x6e\163\164\x6c\x5f\160\162\x6f\146\x69\x6c\145\137\141\x64\x6d\x69\156\137\x63\x73\163"); goto ESPZk; X9xig: function has_started($diav_id) { $curr_time = current_time("\131\55\x6d\x2d\x64\x20\x48\x3a\151\x3a\x73"); $start_date = date("\131\55\155\55\x64\40\x48\x3a\x69\72\x73", strtotime(get_field("\163\164\x61\x72\x74\x5f\144\x61\164\145", $diav_id))); if ($start_date > $curr_time) { return false; } return true; } goto f3oJG; YZtmr: add_filter("\141\143\x66\57\x6c\157\141\x64\x5f\x66\x69\x65\x6c\x64\57\153\145\171\75\146\x69\145\154\x64\137\66\x30\145\x33\61\x30\x31\x33\67\65\65\x62\x63", "\165\x70\144\141\164\145\x5f\156\x65\x77\x73\164\141\x74\x75\x73\137\x66\151\x65\x6c\144"); goto I0JJi; eM3XR: add_filter("\160\162\145\x5f\x67\x65\164\x5f\160\157\163\x74\163", "\x67\156\x73\164\x6c\137\162\x73\163\x5f\x66\145\x65\144"); goto ESXwZ; PdbWc: add_action("\151\156\151\164", "\x67\156\x73\164\154\x5f\162\x65\147\x69\x73\x74\x65\162\x5f\x6d\171\137\143\160\x74\163"); goto RuNcy; YCkWN: function update_diav_articles($diav_id, $post_date, $post_status, $comment_status) { $posts = get_diav_articles_bytag($diav_id); $actualArticles = 0; if ($posts) { $actualArticles = sizeof($posts); } $expectedArticles = get_field("\156\165\x6d\137\x61\x72\x74\151\143\x6c\x65\x73", $diav_id); if ($actualArticles != $expectedArticles) { return $actualArticles; } $update_args = array("\111\x44" => 0, "\160\157\x73\164\137\x64\141\x74\x65" => $post_date, "\160\157\163\x74\x5f\x73\x74\x61\164\x75\x73" => $post_status, "\x70\x6f\163\x74\137\x74\x79\160\145" => "\141\x72\x74\151\143\154\x65", "\160\x6f\163\x74\x5f\164\151\164\154\145" => "\101\x72\164\151\143\154\145", "\x70\x6f\x73\x74\137\156\141\x6d\145" => "\141\x72\x74\x69\143\154\145", "\160\x6f\x73\164\x5f\x6d\157\144\x69\x66\151\x65\144" => current_time("\x59\x2d\155\55\x64\x20\110\x3a\151\x3a\163"), "\160\157\163\x74\137\143\x6f\x6e\164\145\156\164" => '', "\160\157\x73\x74\x5f\143\x6f\x6e\164\x65\x6e\164\137\x66\x69\x6c\164\x65\162\x65\144" => '', "\x70\x6f\163\x74\137\145\x78\143\x65\x72\160\164" => '', "\143\157\x6d\155\145\x6e\x74\137\x73\x74\x61\164\x75\x73" => $comment_status, "\x70\x69\x6e\x67\x5f\163\x74\141\164\165\x73" => '', "\160\157\x73\x74\x5f\x70\141\x73\x73\x77\x6f\x72\x64" => '', "\164\157\137\160\x69\x6e\x67" => '', "\160\x69\x6e\x67\145\x64" => '', "\160\157\163\x74\137\160\x61\x72\x65\x6e\x74" => '', "\x6d\x65\x6e\165\137\x6f\x72\x64\x65\x72" => '', "\160\157\163\164\x5f\155\x69\155\x65\x5f\164\x79\x70\145" => '', "\147\165\x69\144" => ''); foreach ($posts as $post) { $tmpPost = null; $tmpPost = get_post($post->ID); $update_args["\x49\x44"] = $post->ID; $update_args["\x70\x6f\x73\x74\137\x74\151\x74\x6c\145"] = $tmpPost->post_title; $update_args["\160\157\163\164\x5f\156\141\x6d\145"] = $tmpPost->post_name; $update_args["\x70\157\x73\164\x5f\x63\x6f\156\164\x65\156\x74"] = $tmpPost->post_content; $update_args["\x70\157\163\x74\x5f\x63\x6f\x6e\164\145\156\x74\x5f\x66\151\x6c\164\x65\x72\145\144"] = $tmpPost->post_content_filtered; $update_args["\160\157\x73\164\137\145\170\143\x65\x72\160\x74"] = $tmpPost->post_excerpt; $update_args["\160\151\x6e\147\x5f\163\x74\x61\164\165\x73"] = $tmpPost->ping_status; $update_args["\x70\x6f\163\x74\137\x70\x61\163\x73\167\x6f\162\144"] = $tmpPost->post_password; $update_args["\164\157\137\160\151\x6e\x67"] = $tmpPost->to_ping; $update_args["\160\157\163\164\137\x70\x61\162\x65\x6e\x74"] = $tmpPost->post_parent; $update_args["\x6d\145\x6e\165\137\x6f\162\144\x65\162"] = $tmpPost->menu_order; $update_args["\x70\x6f\163\164\137\155\x69\155\145\x5f\x74\x79\x70\145"] = $tmpPost->post_mime_type; $update_args["\x67\x75\x69\x64"] = $tmpPost->guid; $tmp = wp_insert_post($update_args); update_field("\144\151\141\x76\157\165\x6c\x65\x75\163\151", $diav_id, $post->ID); } return $actualArticles; } goto Cprnd; Nouv2: function get_diavouleusi_intro_fields($diav_id, $in_excerpt) { $status = get_diavouleusi_status($diav_id); $diav_link = get_post_permalink($diav_id); $rss_link = get_diavouleusi_rss_feed($diav_id); $status_class = ''; $status_icon = ''; if ($status == "\x41\x63\164\x69\166\x65" || $status == "\316\x91\xce\xbd\xce\277\316\xb9\316\272\xcf\204\xce\256") { $status_text = "\xce\x91\xce\xbd\xce\277\xce\xb9\xce\272\317\x84\316\256"; $status_class = ''; $status_icon = "\x66\141\55\165\156\x6c\157\x63\153"; } else { if ($status == "\x49\x6e\40\x70\x72\157\143\x65\163\163\151\x6e\x67" || $status == "\xce\xa5\317\x80\317\x8c\x20\xce\265\xcf\x80\xce\265\316\xbe\xce\265\317\x81\316\xb3\xce\261\317\x83\xce\xaf\xce\261") { $status_text = "\316\245\317\200\xcf\x8c\40\316\xb5\317\x80\316\265\316\276\xce\xb5\xcf\201\xce\263\316\261\317\x83\xce\257\xce\xb1"; $status_class = "\163\164\x61\x74\165\x73\55\x63\x6c\x6f\x73\145\144"; $status_icon = "\x66\x61\55\154\x6f\143\153"; } else { if ($status == "\103\x6f\155\160\x6c\145\164\145\x64" || $status == "\316\x9f\316\273\316\277\xce\272\316\273\316\267\317\201\317\x89\xce\274\316\255\xce\xbd\xce\xb7") { $status_text = "\xce\237\xce\273\316\277\316\xba\316\273\xce\267\317\201\317\211\xce\xbc\316\xad\xce\xbd\316\267"; $status_class = "\x73\164\141\164\x75\163\55\143\x6f\155\160\x6c\145\164\145"; $status_icon = "\146\141\55\x63\150\145\143\x6b\55\143\x69\162\x63\154\x65"; } } } $val = "\x3c\144\151\x76\x20\x63\x6c\141\163\x73\x3d\x22\144\x69\141\166\x6f\x75\x6c\x65\x75\163\151\55\151\x6e\146\157\42\x3e\74\x75\x6c\76"; $val .= "\74\x6c\x69\40\143\154\x61\163\163\75\x22\144\x69\x61\166\x6f\x75\x6c\x65\165\x73\151\55\x73\164\141\164\165\x73\40" . $status_class . "\42\x3e\x3c\151\x20\x61\162\151\141\x2d\x68\x69\x64\144\145\156\75\x22\x74\x72\165\x65\x22\40\x63\x6c\x61\163\x73\75\x22\40\x66\x61\x73\40" . $status_icon . "\x22\x3e\x3c\57\151\x3e\x20\xa\11\x9\11\74\163\x70\141\x6e\x3e" . $status_text . "\x3c\57\163\160\x61\x6e\x3e\x3c\57\154\x69\76"; $unixtimestamp = strtotime(get_field("\163\x74\141\x72\164\x5f\144\x61\x74\145", $diav_id)); $start_date = date_i18n("\x64\40\x4d\x20\131\40\x40\40\x47\x3a\x69", $unixtimestamp); $unixtimestamp2 = strtotime(get_field("\x65\156\x64\137\x64\141\x74\145", $diav_id)); $end_date = date_i18n("\x64\x20\x4d\40\x59\x20\100\40\x47\72\x69", $unixtimestamp2); if ($in_excerpt) { $start_pre = "\74\x69\x20\x61\x72\151\x61\55\150\151\x64\144\x65\x6e\x3d\x22\164\x72\165\145\x22\40\143\x6c\x61\x73\163\75\x22\146\x61\162\40\x66\x61\55\143\x61\154\145\x6e\144\141\162\x2d\143\150\x65\x63\153\x22\x3e\74\x2f\x69\x3e"; $end_pre = "\74\151\x20\141\162\x69\141\x2d\x68\151\144\x64\x65\x6e\x3d\42\x74\162\x75\x65\x22\x20\x63\154\x61\x73\x73\x3d\x22\146\x61\x72\40\x66\141\55\x63\141\x6c\145\x6e\x64\141\x72\x2d\x74\x69\155\x65\163\x22\x3e\x3c\57\x69\x3e"; } else { $start_pre = "\x3c\145\x6d\76\316\221\xce\xbd\316\261\xcf\x81\317\204\xce\256\316\xb8\xce\xb7\316\272\xce\265\74\57\x65\155\76\74\x62\162\57\x3e"; $end_pre = "\74\x65\155\x3e\xce\x91\316\xbd\316\277\316\271\316\xba\xcf\204\xce\xae\40\317\x83\xce\265\40\317\x83\317\207\317\x8c\xce\273\xce\271\xce\261\x20\xcf\211\xcf\202\x3c\x2f\x65\x6d\x3e\74\142\162\x2f\x3e"; } $val .= "\74\154\151\40\143\x6c\x61\163\x73\75\42\144\151\x61\166\x6f\165\154\x65\x75\163\151\55\x64\141\x74\145\x22\x3e" . $start_pre . "\40\74\163\164\x72\x6f\156\147\x3e" . $start_date . "\x3c\57\163\x74\162\x6f\156\x67\x3e\x3c\57\154\x69\76"; $val .= "\74\x6c\151\40\x63\154\x61\x73\163\75\x22\144\x69\x61\166\157\x75\x6c\145\x75\x73\151\55\144\x61\x74\x65\42\x3e" . $end_pre . "\40\x3c\x73\164\162\x6f\x6e\x67\x3e" . $end_date . "\x3c\x2f\163\164\x72\x6f\x6e\x67\76\74\x2f\154\151\76"; if (!$in_excerpt) { $val .= "\x3c\154\x69\x20\x63\x6c\141\x73\163\x3d\42\145\155\x70\150\x61\x73\x69\163\x22\x3e\x3c\x69\x20\141\162\x69\x61\x2d\x68\x69\144\144\x65\156\x3d\42\x74\x72\x75\x65\x22\x20\143\x6c\x61\163\x73\x3d\42\x66\x61\163\x20\146\141\55\143\x6f\x6d\155\145\x6e\164\x73\x22\x3e\74\57\151\x3e\x20\74\163\x70\x61\156\76" . get_diavouleusi_comment_count($diav_id) . "\40\xcf\203\xcf\x87\xcf\x8c\316\273\316\271\xce\xb1\x3c\57\163\160\141\x6e\x3e\x3c\57\154\151\76"; } $val .= "\x3c\57\165\154\x3e\x3c\x2f\x64\x69\x76\76"; $val .= "\x3c\144\151\166\x20\143\154\141\163\x73\x3d\x22\144\151\141\166\157\165\x6c\145\x75\x73\x69\55\x61\x63\164\x69\x6f\x6e\x73\42\76\x3c\x75\154\x3e"; if ($status == "\101\143\164\x69\166\x65" || $status == "\xce\x91\xce\xbd\316\xbf\xce\xb9\xce\272\317\x84\xce\256") { $val .= "\74\x6c\x69\76\x3c\x61\x20\x63\x6c\x61\x73\163\75\x22\x62\x75\x74\164\x6f\x6e\x22\40\150\162\145\146\x3d\x22" . $diav_link . "\x2f" . "\43\x61\162\x74\x69\143\x6c\145\163" . "\x22\76\x3c\151\x20\141\x72\151\141\x2d\150\x69\144\x64\145\x6e\75\42\164\x72\x75\x65\42\x20\x63\x6c\x61\163\163\75\x22\146\141\163\40\x66\x61\x2d\x63\x6f\155\155\145\156\164\x2d\155\x65\x64\151\143\141\154\42\76\74\57\151\76\x20\316\243\xcf\x85\316\274\316\xbc\xce\xb5\317\x84\xce\xbf\317\x87\xce\256\74\57\141\x3e\x3c\x2f\154\x69\x3e"; } $tmpCSV = generate_comments_csv($diav_id); $action_status = ''; if (!$tmpCSV || $tmpCSV < 0) { $val .= "\x3c\154\x69\76\74\x61\40\x63\x6c\141\163\x73\x3d\42\x62\165\164\164\x6f\x6e\40\x64\x69\163\x61\x62\x6c\145\x64\42\x20\150\x72\145\x66\x3d\42\43\x22\76\x3c\145\x6d\x3e\316\xa7\xcf\211\317\x81\316\xaf\317\202\x20\317\203\xcf\207\317\214\xce\xbb\xce\xb9\xce\xb1\74\x2f\145\155\76\74\57\141\x3e\x3c\57\154\x69\76"; } else { $val .= "\74\154\151\76\x3c\141\40\143\x6c\x61\163\x73\x3d\42\x62\165\164\x74\157\156\x22\40\150\162\145\x66\75\x22" . $tmpCSV . "\42\x3e\74\151\40\141\x72\x69\141\x2d\150\151\x64\144\x65\x6e\75\x22\x74\162\x75\x65\x22\x20\x63\x6c\x61\163\163\x3d\x22\x66\141\163\x20\x66\141\x2d\x66\151\x6c\145\x2d\145\x78\160\157\162\164\x22\76\74\x2f\151\76\x20\316\225\316\276\xce\xb1\xce\xb3\xcf\x89\316\263\316\256\40\317\x83\317\207\xce\xbf\xce\xbb\xce\257\317\211\xce\275\74\57\x61\x3e\x3c\x2f\x6c\151\x3e"; } if ($status != "\x43\157\x6d\x70\154\x65\x74\145\x64") { $val .= "\x3c\x6c\151\76\74\x61\40\143\x6c\x61\163\163\75\x22\x62\x75\164\164\157\x6e\42\x20\150\162\x65\146\x3d\x22" . $rss_link . "\42\x20\164\x61\162\147\145\x74\75\x22\x5f\142\x6c\141\x6e\153\x22\x3e\x3c\151\x20\141\162\x69\141\x2d\x68\x69\x64\x64\145\x6e\x3d\42\164\x72\x75\x65\42\40\143\x6c\x61\163\x73\75\x22\x66\x61\x73\x20\146\x61\x2d\x72\x73\163\42\x3e\74\x2f\x69\x3e\40\316\xa0\xce\261\xcf\x81\xce\261\316\xba\316\xbf\xce\xbb\316\xbf\317\215\316\xb8\xce\267\xcf\203\316\xb7\x3c\57\x61\x3e\74\57\x6c\151\76"; } if ($status == "\103\157\x6d\x70\x6c\145\164\x65\x64" && $in_excerpt) { $val = $val . "\x3c\x6c\x69\76\x3c\141\x20\143\154\141\163\x73\75\x22\x62\x75\164\164\x6f\156\40\x62\165\x74\164\157\156\55\x65\155\x70\150\141\163\151\x73\42\x20\150\x72\x65\x66\75\42" . $diav_link . "\x2f\43\x72\145\x73\165\154\164\x73\42\76\x3c\151\40\141\162\151\x61\x2d\150\x69\144\x64\x65\x6e\75\x22\x74\162\165\x65\42\40\x63\x6c\x61\x73\x73\x3d\x22\146\141\x73\40\146\x61\x2d\x70\157\154\x6c\x2d\150\42\x3e\74\x2f\151\x3e\x20\xce\x91\xcf\x80\316\xbf\317\204\316\xb5\xce\xbb\316\255\317\x83\xce\xbc\316\261\317\204\xce\261\74\x2f\x61\76\74\57\x6c\151\x3e"; } $val .= "\74\x2f\x75\154\76\x3c\57\x64\151\166\76"; return $val; } goto us28k; pPM4h: function display_diavouleusi_fields($atts) { $attributes = shortcode_atts(array("\151\144" => ''), $atts); $fields = get_field_objects($attributes["\x69\144"]); if ($fields) { echo "\74\x75\x6c\x3e"; foreach ($fields as $field) { if ($field["\164\171\x70\x65"] != "\x72\145\x70\x65\141\x74\x65\162") { echo "\x3c\154\x69\76\74\x73\164\x72\157\x6e\147\x3e" . $field["\x6c\x61\x62\x65\154"] . "\x3a\x3c\57\163\164\162\x6f\156\147\x3e\40" . $field["\x76\x61\154\x75\145"] . "\74\x2f\154\x69\76"; } else { echo "\x3c\x6c\151\x3e\74\x73\x74\162\x6f\156\147\x3e" . $field["\x6c\141\142\x65\154"] . "\x3a\74\x2f\x73\x74\162\x6f\156\147\x3e"; if (have_rows($field["\156\x61\x6d\145"])) { echo "\x3c\165\154\76"; while (have_rows($field["\x6e\141\155\145"])) { the_row(); $title = get_sub_field("\x74\151\164\x6c\145"); $file = get_sub_field("\x66\151\x6c\x65"); echo "\x3c\x6c\x69\76\x3c\x61\x20\150\x72\145\146\x3d\x22" . $file . "\42\40\x74\x61\162\147\145\x74\75\x22\x5f\142\154\x61\x6e\153\42\x3e" . $title . "\x3c\x2f\x61\76\74\57\154\151\x3e"; } echo "\x3c\x2f\165\154\x3e"; } echo "\74\x2f\x6c\x69\x3e"; } } echo "\x3c\x2f\165\154\76"; } } goto bmO2b; rkZHE: add_filter("\x61\143\x66\57\x6c\157\141\x64\x5f\146\151\145\x6c\144\57\x6b\x65\x79\75\146\151\145\x6c\144\x5f\x36\60\x64\x63\x31\x65\61\143\x66\146\61\x63\65", "\165\x70\x64\141\164\145\x5f\141\x72\x74\151\x63\154\x65\x5f\154\151\156\153\x5f\x66\151\x65\154\144"); goto YgADs; ZpOt9: register_activation_hook(__FILE__, "\x70\154\x75\x67\x69\156\137\x64\x65\x70\145\156\x64\145\156\x63\151\145\163\137\141\143\164\151\166\141\x74\x65"); goto h43LL; eH5up: function genestial_css() { echo "\12\11\11\x3c\163\x74\x79\x6c\145\40\164\171\x70\x65\x3d\x27\164\x65\x78\164\57\143\163\x73\x27\x3e\xa\x9\11\x23\147\145\156\x65\x73\164\151\x61\154\40\173\xa\11\11\11\146\154\x6f\x61\x74\x3a\x20\162\x69\147\x68\164\73\xa\x9\x9\x9\x70\141\144\x64\151\156\147\72\x20\65\x70\170\x20\x31\60\160\170\73\xa\11\11\x9\x6d\141\162\147\x69\156\72\40\x30\x3b\12\11\x9\x9\146\x6f\156\164\55\163\x69\172\145\72\40\x31\x32\x70\x78\73\12\x9\x9\x9\154\x69\x6e\145\x2d\x68\x65\x69\147\150\164\x3a\x20\61\56\66\x36\66\66\x3b\12\x9\x9\x7d\xa\x9\11\56\162\x74\154\x20\x23\147\x65\x6e\145\163\x74\x69\141\154\40\173\xa\11\11\11\x66\x6c\x6f\141\x74\72\x20\154\145\x66\x74\x3b\12\11\x9\x7d\12\11\11\x2e\x62\154\x6f\x63\x6b\x2d\145\144\151\x74\157\x72\55\160\x61\147\x65\40\x23\147\145\x6e\145\x73\x74\x69\x61\x6c\x20\x7b\xa\11\11\x9\x64\151\163\160\x6c\141\x79\x3a\x20\156\x6f\x6e\x65\73\xa\11\11\175\12\11\11\x40\155\x65\x64\151\141\40\163\143\x72\145\x65\x6e\40\141\x6e\x64\x20\50\x6d\x61\x78\x2d\x77\x69\144\164\x68\72\x20\x37\70\x32\x70\170\x29\x20\173\xa\x9\11\11\x23\147\145\156\145\163\x74\151\x61\x6c\x2c\xa\x9\11\11\56\x72\164\x6c\40\x23\147\x65\156\x65\163\164\x69\141\x6c\x20\173\xa\x9\x9\x9\11\x66\154\x6f\141\x74\x3a\x20\156\157\156\x65\x3b\xa\x9\x9\11\x9\x70\x61\x64\144\x69\x6e\x67\x2d\154\x65\x66\164\72\x20\x30\73\xa\x9\11\x9\11\160\x61\144\144\x69\x6e\x67\x2d\162\151\147\x68\164\x3a\40\x30\73\12\11\x9\x9\x7d\xa\11\11\x7d\xa\11\11\74\x2f\x73\164\x79\154\x65\x3e\xa\x9\x9"; } goto FLCb6; JFiCQ: function trash_diavouleusi_articles($post_id) { global $post_type; if ("\144\x69\141\166\157\165\x6c\145\165\x73\151" !== $post_type) { return; } error_log("\x54\x72\141\x73\150\40\x61\x72\x74\151\143\154\145\163\40\x68\x65\x72\x65"); $posts = get_diav_articles_bytag($post_id); if ($posts) { foreach ($posts as $post) { wp_trash_post($post->ID); } } error_log("\x41\x72\164\x69\x63\x6c\x65\x73\40\x74\x72\x61\163\x68\145\144"); } goto LfuF0; Lu60v: function untrash_diavouleusi_articles($post_id) { global $post_type; if ("\x64\151\x61\x76\157\165\x6c\x65\165\x73\x69" !== $post_type) { return; } error_log("\x55\x6e\x74\162\x61\x73\150\x20\141\x72\164\151\143\x6c\145\163\40\x68\x65\x72\145"); $posts = get_diav_articles_bytag($post_id, true); $count = 0; if ($posts) { foreach ($posts as $post) { wp_untrash_post($post->ID); $count += 1; } } error_log("\101\162\x74\151\143\154\x65\163\x20\x75\x6e\164\162\x61\x73\x68\x65\144\72\40" . $count); } goto P1O7r; xM0gL: function gnstl_rss_feed($query) { if ($query->is_feed()) { $query->set("\x70\157\x73\x74\137\164\x79\160\145", array("\160\157\163\164", "\144\151\x61\166\x6f\165\x6c\145\165\163\x69", "\141\x72\x74\151\143\x6c\x65")); } return $query; } goto eM3XR; ddMAG: add_action("\151\156\151\164", "\x67\x6e\x73\164\154\137\162\x65\x67\151\163\x74\145\162\137\x6d\171\137\x74\x61\x78\145\x73");
Function Calls
None |
Stats
MD5 | 73ad03add0ed5ebf8c08fac5475699d5 |
Eval Count | 0 |
Decode Time | 196 ms |