HEX
Server: Apache
System: Linux server1.panigaletech.com 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //proc/self/cwd/wp-content/plugins/cf7-calendly-integration/calendly-cf7.php
<?php
/*
Plugin Name: Form To Online Booking
Description: CF7 to Calendly integration with peramters and values.This plugin required CF7 Installtion.
Author: Nabeel Tahir    
Version: 1.0
License: GPLv2 or later
Text Domain: form-to-online-booking
*/

/*  Copyright 2014-2020 Scott Paterson

    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., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

require_once('public/public-form.php');
function calendlycf7_stylesheet() 
{
    wp_enqueue_style( 'calendlycss', plugins_url( '/assets/style.css', __FILE__ ) );
}
add_action('admin_print_styles', 'calendlycf7_stylesheet');
function calendlycf7_is_active() {
    if ( is_plugin_active( 'contact-form-7/wp-contact-form-7.php' ) ) {
        // admin includes
		if (is_admin()) {
            include_once('admin/cf7_tab.php');
    } }
    else {           
        // give warning if contact form 7 is not active
        function calendlycf7_my_admin_notice() {
            ?>
            <div class="error">
                <p><?php _e( '<b>Contact Form 7 - Calendly Integration</b> Contact Form 7 is not installed and / or active! Please install or activate: <a href="'.get_admin_url().'/plugin-install.php?s=contact-form-7&tab=search&type=term">Contact Form 7</a>.', 'cf7rl' ); ?></p>
            </div>
            <?php
        }
        add_action( 'admin_notices', 'calendlycf7_my_admin_notice' );       
    } 
  }
  add_action( 'admin_init', 'calendlycf7_is_active' );

?>