HEX
Server: Apache
System: Linux d5123.usc1.stableserver.net 5.14.0-570.17.1.el9_6.x86_64 #1 SMP PREEMPT_DYNAMIC Sat May 24 12:53:17 EDT 2025 x86_64
User: d5123 (1001)
PHP: 8.4.21
Disabled: NONE
Upload Files
File: /home/d5123/myboofola_com/wp-content/plugins/cms2cms-connector/cms2cms-connector.php
<?php
/*
    Plugin Name: CMS2CMS Connector
    Plugin URI: http://www.cms2cms.com
    Description: Universal WordPress migration plugin for super-fast and fully automated website move.
    Version: 3.8
    Author: CMS2CMS
    Author URI: https://cms2cms.com
    License: GPLv2
*/
/*  Copyright 2022  CMS2CMS  (email : contact@cms2cms.com)

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License, version 2, as
    published by the Free Software Foundation.

    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 St, Fifth Floor, Boston, MA  02110-1301  USA
*/

include_once 'includes/cms2cms-functions.php';
include_once 'includes/cms2cms-bridge-loader.php';

define( 'CMS2CMS_CONNECTOR_VERSION', '3.8' );

/* ****************************************************** */

function cms2cms_connector_plugin_menu() {
    $viewProvider = new CmsPluginFunctionsConnector();
    add_submenu_page(
        'tools.php',
        $viewProvider->getPluginNameLong(),
        $viewProvider->getPluginNameShort(),
        'activate_plugins',
        'cms2cms-connector',
        'cms2cms_connector_menu_page'
    );
}
add_action('admin_menu', 'cms2cms_connector_plugin_menu');

function cms2cms_connector_menu_page(){
    include 'includes/cms2cms-view.php';
}

function cms2cms_connector_plugin_init() {
    load_plugin_textdomain( 'cms2cms-connector', false, dirname( plugin_basename( __FILE__ ) ) . '/languages/' );
}
add_action('plugins_loaded', 'cms2cms_connector_plugin_init');

function cms2cms_connector_install() {
    $dataProvider = new CmsPluginFunctionsConnector();
    $dataProvider->install();
}
register_activation_hook( __FILE__, 'cms2cms_connector_install' );

/* ******************************************************* */
/* AJAX */
/* ******************************************************* */

/**
 * Save Access key and email
 */
function cms2cms_connector_save_options() {
    $dataProvider = new CmsPluginFunctionsConnector();
    $response = $dataProvider->saveOptions();

    echo json_encode($response);
    die(); // this is required to return a proper result
}
add_action('wp_ajax_cms2cms_connector_save_options', 'cms2cms_connector_save_options');

/**
 * Get auth string
 */

function cms2cms_connector_get_options() {
    $dataProvider = new CmsPluginFunctionsConnector();
    $response = $dataProvider->getOptions();

    echo json_encode($response);
    die(); // this is required to return a proper result
}
add_action('wp_ajax_cms2cms_connector_get_options', 'cms2cms_connector_get_options');